/* ==========================================================================
   GLOBAL VARIABLES & RESET
   ========================================================================== */
:root {
    --bg: #FFFFFF;
    --surface: #F5F5F7;
    --text-main: #1D1D1F;
    --text-muted: #86868B;
    --accent: #2563EB;
    --accent-hover: #1D4ED8;
    --border: #E5E5EA;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.08);
    
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html,body{scrollbar-width:none;-ms-overflow-style:none} html::-webkit-scrollbar,body::-webkit-scrollbar,*::-webkit-scrollbar{display:none;width:0;height:0}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

/* ==========================================================================
   ANIMATION UTILITIES & INTERACTION
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.fade-content {
    transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

.fade-content.hidden {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

/* Ripple effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple-span {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-anim 0.6s linear;
    background-color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

@keyframes ripple-anim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    height: 72px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    display: flex;
    align-items: center;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;    height: 32px;
    background: var(--text-main);
    color: var(--bg);
    border-radius: var(--radius-sm);
}

.company-name {
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #10B981; /* Green for verified */
    border-radius: 50%;
}

.status-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    padding: 80px 0 60px;
    text-align: center;
}

.hero-container {
    max-width: 720px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
    background: var(--surface);
    padding: 8px 16px;
    border-radius: 100px;
}

.badge svg {
    color: var(--accent);
}

/* ==========================================================================
   DOCUMENT VIEWER SECTION
   ========================================================================== */
.doc-viewer {
    padding-bottom: 100px;
}

/* Segmented Control */
.segmented-control-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 48px;
}

.segmented-control {
    position: relative;
    display: flex;
    background: var(--surface);
    padding: 6px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.sc-indicator {
    position: absolute;
    top: 6px;
    left: 6px;
    height: calc(100% - 12px);
    background: var(--bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.sc-btn {
    position: relative;
    z-index: 2;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.sc-btn.active {
    color: var(--text-main);
}

/* Document Content Layout */
.doc-header {
    text-align: center;
    margin-bottom: 40px;
}

.doc-title {
    font-size: 2rem;
}

.doc-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 991px) {
    .doc-body {
        grid-template-columns: 1fr;
    }
}

/* Glass Panels */
.glass-panel {
    background: var(--bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* Left: Media Area */
.cert-card {
    padding: 24px;
    background: var(--surface);
}

.cert-img-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg);
    cursor: zoom-in;
    group: zoom;
}

.cert-img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cert-img-wrapper:hover .cert-img {
    transform: scale(1.02);
}

.zoom-hint {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    font-weight: 500;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.cert-img-wrapper:hover .zoom-hint {
    opacity: 1;
}

/* Right: Info Area */
.info-card {
    padding: 32px;
}

.details-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--surface);
}

.detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.detail-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
}

/* Actions */
.actions-panel {
    margin-top: 24px;
    display: flex;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 24px;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--accent);
    color: white;
    flex: 1;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary .ripple-span {
    background-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background-color: var(--surface);
    color: var(--text-main);
    border: 1px solid var(--border);
    flex: 1;
}

.btn-secondary:hover {
    background-color: #EAEAEA;
}

.btn-secondary .ripple-span {
    background-color: rgba(0, 0, 0, 0.1);
}

.btn-icon {
    background-color: var(--surface);
    color: var(--text-main);
    border: 1px solid var(--border);
    width: 48px;
    padding: 0;
    flex-shrink: 0;
}

.btn-icon:hover {
    background-color: #EAEAEA;
}

@media (max-width: 640px) {
    .actions-panel {
        flex-direction: column;
    }
    .btn-icon {
        width: 100%;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-separator {
    color: var(--border);
}

.footer-portal {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-copy {
    font-size: 0.875rem;
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   MODAL (IMAGE ZOOM)
   ========================================================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-content {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
    transform: scale(0.95);
    transition: transform var(--transition-smooth);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-content img {
    max-height: 90vh;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
}