/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0077be;
    --secondary-color: #5ab9ea;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f5f5f5;
    --white: #ffffff;
    --black: #000000;
    --red: #dc2626;
    --footer-bg: #2c3e50;
    --footer-dark: #1a252f;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.header {
    background-color: var(--black);
    color: var(--white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo img {
    height: 45px;
    width: auto;
}

.nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-list li a {
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-list li a:hover,
.nav-list li a.active {
    color: var(--secondary-color);
}

.nav-list li a.active::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--secondary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-icon {
    background: transparent;
    color: var(--white);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.search-icon:hover {
    color: var(--secondary-color);
}

.language {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.flag-icon {
    width: 24px;
    height: 16px;
}

.language span.active {
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.05));
}

/* Breadcrumb */
.breadcrumb {
    background-color: #e8e8e8;
    padding: 15px 0;
}

.breadcrumb-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.breadcrumb a {
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

/* Main Content */
.main-content {
    min-height: 60vh;
    background-color: var(--white);
    padding: 60px 0;
}

.verify-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.verification-container {
    max-width: 800px;
    margin: 0 auto;
}

.verification-status {
    margin-bottom: 50px;
    padding: 30px;
    background: #fff5f5;
    border: 2px solid #fecaca;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: none !important; /* Force hidden by default */
}

.verification-status.active {
    display: block !important; /* Only show when active class is added */
}

.verification-status.success {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.verification-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.verification-icon.success svg circle {
    fill: #10b981;
    stroke: #10b981;
}

.verification-message {
    text-align: center;
}

.verification-message p {
    font-size: 16px;
    color: var(--red);
    line-height: 1.8;
    font-weight: 500;
    margin-bottom: 10px;
}

.verification-message .timestamp-info {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 400;
    margin-top: 15px;
}

.verification-status.success .verification-message p.warning-message {
    color: #10b981;
}

.verification-status.success .verification-message .timestamp-info {
    color: #059669;
}

.input-section {
    background-color: #f9fafb;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.input-title {
    font-size: 20px;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 30px;
    font-weight: 600;
    line-height: 1.5;
}

.search-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease-in-out;
}

.search-container.hidden {
    opacity: 0;
    height: 0;
    margin: 0;
    overflow: hidden;
}

.input-group {
    display: flex;
    width: 100%;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 119, 190, 0.1);
}

.input-wrapper {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.shield-icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    opacity: 0.6;
}

.security-code {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    background: transparent;
    letter-spacing: 1px;
}

.security-code::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.scan-button {
    width: 70px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scan-button:hover {
    background: linear-gradient(135deg, #006199 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 119, 190, 0.3);
}

.scan-button img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.query-button {
    width: 100%;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.query-button:hover {
    background: linear-gradient(135deg, #006199 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 119, 190, 0.3);
}

.tip {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
}

.tip-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tip-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    margin: 50px 0;
}

.loading-spinner.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 119, 190, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 500;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Verification Result Styles */
.verification-result {
    margin-top: 50px;
    width: 100%;
    max-width: 600px;
    display: none; /* Hidden by default */
    flex-direction: column;
    align-items: center;
    padding: 40px;
    border-radius: 12px;
    background: var(--white);
    text-align: center;
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease-in-out;
}

.verification-result.show {
    display: flex; /* Show when active */
    opacity: 1;
    transform: translateY(0);
}

.verify-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.verify-icon.valid {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.verify-icon.invalid {
    background: linear-gradient(135deg, var(--red) 0%, #b91c1c 100%);
}

.verify-icon.valid svg {
    width: 50px;
    height: 50px;
    fill: var(--white);
}

.verify-icon.invalid::before,
.verify-icon.invalid::after {
    content: '';
    position: absolute;
    background-color: var(--white);
    width: 50px;
    height: 8px;
    top: 46px;
}

.verify-icon.invalid::before {
    transform: rotate(45deg);
}

.verify-icon.invalid::after {
    transform: rotate(-45deg);
}

.verification-result p {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.verification-result.valid p {
    color: #10b981;
}

.verification-result.invalid p {
    color: var(--red);
}

/* QR Code Styles */
.qr-code-container {
    margin-top: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.verification-qr {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* QR Scanner Styles */
.qr-scanner-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.qr-scanner-container.active {
    opacity: 1;
    visibility: visible;
}

.scanner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: var(--white);
}

.scanner-title {
    font-size: 20px;
    font-weight: 600;
}

.close-scanner {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-scanner:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.video-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
}

#qr-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.scanner-instructions {
    text-align: center;
    padding: 25px;
    background: rgba(0, 0, 0, 0.9);
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
}

/* QR Code Notification */
.code-notification {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 12px;
    z-index: 3000;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.code-notification.fade-out {
    opacity: 0;
}

/* Custom Alert Styles */
.custom-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-alert.active {
    opacity: 1;
    visibility: visible;
}

.alert-content {
    background: var(--white);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.alert-message {
    padding: 30px;
    text-align: center;
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.6;
}

.alert-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.alert-button:hover {
    background: linear-gradient(135deg, #006199 0%, var(--primary-color) 100%);
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: var(--white);
}

.footer-top {
    background: var(--secondary-color);
    padding: 30px 0;
}

.footer-top .footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-cta h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--white);
}

.send-button {
    background: var(--black);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.send-button:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-main {
    padding: 50px 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.footer-main .footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 60px;
}

.footer-column h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-about p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.footer-logo {
    width: 150px;
    margin-bottom: 20px;
}

.read-more {
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--white);
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--secondary-color);
}

.contact-info p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    background: var(--footer-dark);
    padding: 20px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom .footer-container {
    text-align: center;
}

.footer-bottom a {
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--white);
}

.footer-products {
    margin-top: 10px;
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 20px;
    }
    
    .nav-list {
        gap: 25px;
    }
    
    .nav-list li a {
        font-size: 13px;
    }
    
    .footer-main .footer-container {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 60px;
    }
    
    .logo img {
        height: 35px;
    }
    
    .nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--black);
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .nav-list li a.active::after {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .verification-status {
        padding: 25px 20px;
        margin-bottom: 30px;
    }
    
    .verification-icon svg {
        width: 60px;
        height: 60px;
    }
    
    .verification-message p {
        font-size: 15px;
    }
    
    .verification-message .timestamp-info {
        font-size: 13px;
    }
    
    .hero {
        height: 300px;
    }
    
    .section-title {
        font-size: 32px;
        margin-bottom: 30px;
    }
    
    .main-content {
        padding: 40px 0;
    }
    
    .verify-section {
        padding: 0 20px;
    }
    
    .input-section {
        padding: 30px 20px;
    }
    
    .input-title {
        font-size: 18px;
    }
    
    .verification-message p {
        font-size: 15px;
    }
    
    .footer-main .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-top .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-cta h2 {
        font-size: 24px;
    }
    
    .verification-result {
        padding: 30px 20px;
        margin-top: 30px;
    }
    
    .verify-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 25px;
    }
    
    .verify-icon.valid svg {
        width: 40px;
        height: 40px;
    }
    
    .verify-icon.invalid::before,
    .verify-icon.invalid::after {
        width: 40px;
        height: 6px;
        top: 37px;
    }
    
    .verification-result p {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .breadcrumb-container,
    .verify-section,
    .footer-container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .input-section {
        padding: 25px 15px;
    }
    
    .input-title {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .input-group, .query-button {
        height: 55px;
    }
    
    .scan-button {
        width: 60px;
    }
    
    .verification-status {
        padding: 20px 15px;
        margin-bottom: 25px;
    }
    
    .verification-icon svg {
        width: 50px;
        height: 50px;
    }
    
    .verification-message p {
        font-size: 14px;
    }
    
    .verification-message .timestamp-info {
        font-size: 12px;
    }
    
    .verification-result {
        padding: 25px 15px;
    }
    
    .verify-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .verify-icon.valid svg {
        width: 35px;
        height: 35px;
    }
    
    .verify-icon.invalid::before,
    .verify-icon.invalid::after {
        width: 35px;
        height: 5px;
        top: 32px;
    }
    
    .verification-result p {
        font-size: 16px;
    }
    
    .verification-qr {
        max-width: 200px;
    }
    
    .footer-cta h2 {
        font-size: 20px;
    }
    
    .send-button {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .code-notification {
        width: 90%;
        font-size: 12px;
        padding: 12px 20px;
    }
}
