:root {
    --primary-blue: #0052FF;
    --navy: #0F172A;
    --gray: #64748B;
    --white: #FFFFFF;
    --green-bg: #DCFCE7;
    --green-text: #15803D;
    --blue-bg: #F0F9FF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #F8FAFC;
    color: var(--navy);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    touch-action: pan-x pan-y;
}

/* HEADER: ALWAYS 100% SIZE */
.navbar {
    background: var(--white);
    padding: 1.25rem 2rem;
    border-bottom: 1px solid #E2E8F0;
    z-index: 100;
    width: 100%;
    position: relative;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--navy);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2000;
    position: relative;
}

.hamburger span.line {
    width: 30px;
    height: 3px;
    background-color: var(--navy);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.hamburger.active span.line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span.line:nth-child(2) {
    opacity: 0;
}

.hamburger.active span.line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.logo-img {
    height: 75px;
    width: auto;
    display: block;
}


/* BODY CONTENT: 80% ZOOM VIEW */
.zoom-container {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero {
    text-align: center;
    margin: 4rem 0;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero p {
    color: var(--gray);
    font-size: 1.2rem;
    line-height: 1.6;
}

.search-container {
    max-width: 800px;
    margin: 0 auto 4rem;
    width: 100%;
}

.search-bar {
    background: var(--white);
    border: 1px solid #BFDBFE;
    border-radius: 100px;
    padding: 0.6rem;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 1.5rem;
    font-size: 1.2rem;
}

.btn-search {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.9rem 3rem;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1.1rem;
}

.result-card {
    max-width: 1000px;
    margin: 0 auto 4rem;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    width: 100%;
    position: relative;
}

.card-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.verify-badge {
    background: var(--green-bg);
    color: var(--green-text);
    font-size: 0.85rem;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
}

.search-date {
    font-size: 0.9rem;
    color: #94A3B8;
}

.card-body {
    padding: 2.5rem;
    min-height: 300px;
}

.result-layout {
    display: flex;
    gap: 3rem;
}

.cert-preview {
    width: 280px;
    height: 300px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.cert-preview img,
.cert-preview iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.cert-details {
    flex: 1;
}

.company-name {
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.detail-icon {
    width: 42px;
    height: 42px;
    background: var(--blue-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-content span {
    display: block;
    font-size: 0.8rem;
    color: var(--gray);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.detail-content p {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    margin-top: 4px;
}

.status-badge {
    padding: 0.2rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 800;
}

.status-badge.active {
    background: #DCFCE7;
    color: #15803D;
}

.status-badge.expired {
    background: #FEE2E2;
    color: #991B1B;
}

.result-footer {
    background: var(--blue-bg);
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid #E0F2FE;
    margin: 2.5rem -2.5rem -2.5rem -2.5rem;
}

.footer-text {
    font-size: 1rem;
    color: #0369A1;
    font-weight: 600;
}

.global-footer {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--gray);
    border-top: 1px solid #E2E8F0;
    margin-top: auto;
}

.global-footer p {
    font-size: 1rem;
    line-height: 1.6;
}

.global-footer b {
    color: var(--navy);
}

.empty-state {
    text-align: center;
    padding: 4rem 0;
}

.btn-try-again {
    margin-top: 2rem;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 0.8rem 2.5rem;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
}

.hidden {
    display: none !important;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #E2E8F0;
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 5rem auto;
}

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

/* SHARED CONTENT CLASSES */
.content-card {
    max-width: 1000px;
    margin: 0 auto 4rem;
    background: var(--white);
    padding: 4rem;
    border-radius: 20px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.info-box {
    background: var(--blue-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #E0F2FE;
}

@media (max-width: 768px) {
    .content-card {
        padding: 2rem 1.5rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .info-box {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 1.25rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        padding: 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.25rem;
    }

    .logo-img {
        height: 48px;
    }

    .hero {
        margin: 2.5rem 0;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
    }

    .search-bar {
        flex-direction: column;
        border-radius: 20px;
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .search-bar input {
        width: 100%;
        padding: 0.75rem;
        text-align: center;
        font-size: 16px;
    }

    .btn-search {
        width: 100%;
        padding: 0.8rem;
        border-radius: 12px;
        font-size: 1rem;
    }

    .card-header {
        padding: 1.25rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .card-title {
        flex-direction: column;
        gap: 0.5rem;
    }

    .result-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .cert-preview {
        width: 100%;
        max-width: 100%;
        height: 280px;
    }

    .company-name {
        font-size: 1.5rem;
        text-align: center;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .result-footer {
        flex-direction: column;
        text-align: center;
        margin: 2.5rem -2.5rem -2.5rem -2.5rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .logo-img {
        height: 40px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    .global-footer {
        padding: 2rem 1rem;
    }

    .global-footer p {
        font-size: 0.85rem;
    }
}
