/* Gilbert Technical - Main Stylesheet */

:root {
    --primary-dark: #0F1419;
    --secondary-dark: #1A1F2E;
    --accent-gold: #D4AF37;
    --accent-bronze: #B8860B;
    --text-primary: #F5F5F5;
    --text-secondary: #A8B2C1;
    --surface: #1E2530;
    --border: rgba(212, 175, 55, 0.2);
}

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

body { 
    font-family: 'Jost', sans-serif; 
    background: var(--primary-dark); 
    color: var(--text-primary); 
    line-height: 1.7; 
}

/* Typography */
h1, h2, h3, h4, h5, h6 { 
    font-weight: 500; 
    line-height: 1.2; 
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

.mono { 
    font-family: 'JetBrains Mono', monospace; 
}

/* Navigation */
nav { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    z-index: 1000; 
    padding: 1.5rem 2rem; 
    background: rgba(15, 20, 25, 0.9); 
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid var(--border); 
}

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

.logo { 
    font-size: 1.2rem; 
    font-weight: 600; 
    color: var(--accent-gold); 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
}

.logo-text { 
    display: flex; 
    flex-direction: column; 
    line-height: 1.1; 
}

.logo-main { font-size: 1.2rem; }
.logo-sub { font-size: 0.75rem; opacity: 0.9; }

.logo-icon { 
    width: 32px; 
    height: 32px; 
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-bronze)); 
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); 
}

.nav-links { 
    display: flex; 
    gap: 2.5rem; 
    list-style: none; 
}

.nav-links a { 
    color: var(--text-secondary); 
    text-decoration: none; 
    transition: color 0.3s; 
}

.nav-links a:hover { 
    color: var(--accent-gold); 
}

.cta-btn { 
    padding: 0.75rem 1.8rem; 
    background: transparent; 
    border: 1px solid var(--accent-gold); 
    color: var(--accent-gold); 
    text-decoration: none; 
    transition: all 0.3s; 
}

.cta-btn:hover { 
    background: var(--accent-gold); 
    color: var(--primary-dark); 
}

.mobile-toggle { 
    display: none; 
    flex-direction: column; 
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span { 
    width: 28px; 
    height: 2px; 
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Mobile toggle animation when active */
.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero { 
    min-height: 85vh; 
    display: flex; 
    align-items: center; 
    padding: 8rem 2rem 4rem; 
}

.hero-content { 
    max-width: 1400px; 
    margin: 0 auto; 
    width: 100%; 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 6rem; 
    align-items: center; 
}

.hero-label { 
    display: inline-block; 
    padding: 0.5rem 1rem; 
    background: rgba(212, 175, 55, 0.1); 
    border: 1px solid var(--border); 
    font-size: 0.85rem; 
    color: var(--accent-gold); 
    margin-bottom: 2rem; 
}

.hero h1 { 
    margin-bottom: 1.5rem; 
    background: linear-gradient(135deg, var(--text-primary), var(--accent-gold)); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
}

.hero p { 
    font-size: 1.2rem; 
    color: var(--text-secondary); 
    margin-bottom: 3rem; 
}

.hero-actions { 
    display: flex; 
    gap: 1.5rem; 
}

.btn-primary { 
    padding: 1rem 2.5rem; 
    background: var(--accent-gold); 
    color: var(--primary-dark); 
    text-decoration: none; 
    font-weight: 600; 
    transition: transform 0.3s; 
    display: inline-block;
}

.btn-primary:hover { 
    transform: translateY(-2px); 
}

.btn-secondary { 
    padding: 1rem 2.5rem; 
    background: transparent; 
    color: var(--text-primary); 
    text-decoration: none; 
    border: 1px solid var(--border); 
    transition: all 0.3s; 
}

.btn-secondary:hover { 
    border-color: var(--accent-gold); 
    color: var(--accent-gold); 
}

.hero-visual { 
    position: relative; 
    height: 400px; 
}

.data-grid { 
    position: absolute; 
    inset: 0; 
    display: grid; 
    grid-template-columns: repeat(8, 1fr); 
    grid-template-rows: repeat(8, 1fr); 
    gap: 1px; 
    opacity: 0.15; 
}

.data-cell { 
    background: var(--accent-gold); 
    animation: flicker 4s ease-in-out infinite; 
}

.data-cell:nth-child(3n) { animation-delay: 0.2s; }
.data-cell:nth-child(5n) { animation-delay: 0.5s; }
.data-cell:nth-child(7n) { animation-delay: 0.8s; }

@keyframes flicker { 
    0%, 100% { opacity: 0.1; } 
    50% { opacity: 0.6; } 
}

.floating-card { 
    position: absolute; 
    background: var(--surface); 
    border: 1px solid var(--border); 
    padding: 1.5rem; 
    animation: float 6s ease-in-out infinite; 
}

@keyframes float { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-20px); } 
}

.card-1 { top: 10%; right: 10%; }
.card-2 { bottom: 20%; left: 5%; animation-delay: 1s; }
.card-3 { top: 50%; right: 20%; animation-delay: 2s; }

.card-label { 
    font-size: 0.75rem; 
    color: var(--text-secondary); 
    margin-bottom: 0.5rem; 
    text-transform: uppercase; 
}

.card-value { 
    font-size: 1.5rem; 
    font-weight: 600; 
    color: var(--accent-gold); 
    font-family: 'JetBrains Mono', monospace; 
}

/* Sections */
.section { 
    padding: 5rem 2rem; 
}

.section-container { 
    max-width: 1400px; 
    margin: 0 auto; 
}

.section-header { 
    text-align: center; 
    margin-bottom: 5rem; 
}

.section-label { 
    font-size: 0.9rem; 
    color: var(--accent-gold); 
    font-weight: 600; 
    text-transform: uppercase; 
    margin-bottom: 1rem; 
}

.section-title { 
    margin-bottom: 1.5rem; 
}

.section-description { 
    font-size: 1.1rem; 
    color: var(--text-secondary); 
    max-width: 700px; 
    margin: 0 auto; 
}

/* Page Header (for subpages) */
.page-header { 
    padding: 10rem 2rem 5rem; 
    text-align: center; 
    background: linear-gradient(180deg, var(--secondary-dark), var(--primary-dark)); 
}

.page-header h1 { 
    margin-bottom: 1.5rem; 
    background: linear-gradient(135deg, var(--text-primary), var(--accent-gold)); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
}

.page-header p { 
    font-size: 1.2rem; 
    color: var(--text-secondary); 
    max-width: 800px; 
    margin: 0 auto; 
}

/* Content Sections */
.content-section { 
    max-width: 900px; 
    margin: 0 auto 4rem; 
}

.content-section h2 { 
    margin-bottom: 1.5rem; 
    color: var(--accent-gold); 
}

.content-section p { 
    color: var(--text-secondary); 
    margin-bottom: 1.5rem; 
    font-size: 1.1rem; 
}

/* Services Grid */
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 2rem; 
}

.service-card { 
    background: var(--surface); 
    border: 1px solid var(--border); 
    padding: 3rem 2.5rem; 
    transition: all 0.4s; 
}

.service-card:hover { 
    border-color: var(--accent-gold); 
    transform: translateY(-8px); 
}

.service-icon { 
    width: 60px; 
    height: 60px; 
    background: rgba(212, 175, 55, 0.1); 
    border: 1px solid var(--border); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 2rem; 
    font-size: 1.8rem; 
    color: var(--accent-gold); 
}

.service-card h3 { 
    margin-bottom: 1rem; 
}

.service-card p { 
    color: var(--text-secondary); 
    margin-bottom: 1.5rem; 
}

.service-features { 
    list-style: none; 
    margin-top: 1.5rem; 
}

.service-features li { 
    padding: 0.5rem 0; 
    color: var(--text-secondary); 
    font-size: 0.95rem; 
}

.service-features li::before { 
    content: '▹'; 
    color: var(--accent-gold); 
    font-size: 1.2rem; 
    margin-right: 0.75rem; 
}

/* Feature Cards */
.features-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem; 
    margin: 3rem 0; 
}

.feature-card, .threat-card, .credential-card { 
    background: var(--surface); 
    border: 1px solid var(--border); 
    padding: 2.5rem; 
    transition: all 0.3s; 
}

.feature-card:hover, .threat-card:hover, .credential-card:hover { 
    border-color: var(--accent-gold); 
    transform: translateY(-5px); 
}

.feature-card h3, .threat-card h3, .credential-card h3 { 
    margin-bottom: 1rem; 
    color: var(--accent-gold); 
}

.feature-card p, .threat-card p, .credential-card p { 
    color: var(--text-secondary); 
}

.credential-card h3 { 
    font-size: 1.3rem; 
}

.credential-card .year { 
    font-family: 'JetBrains Mono', monospace; 
    color: var(--accent-gold); 
    font-size: 0.9rem; 
}

/* Process Timeline */
.process-timeline { 
    position: relative; 
    padding: 2rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 39px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-gold), var(--accent-bronze));
}

.process-step { 
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number { 
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: var(--primary-dark);
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-gold);
    font-family: 'JetBrains Mono', monospace;
    position: relative;
    z-index: 1;
}

.step-content { 
    background: var(--surface); 
    border: 1px solid var(--border); 
    padding: 2rem;
    flex: 1;
    transition: all 0.4s; 
}

.step-content:hover { 
    border-color: var(--accent-gold); 
}

.step-content h3 { 
    margin-bottom: 0.75rem; 
    color: var(--accent-gold);
    font-size: 1.25rem;
}

.step-content p { 
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.7;
}

/* Process Section (for subpages) */
.process-section { 
    background: var(--surface); 
    padding: 4rem; 
    border: 1px solid var(--border); 
    margin: 3rem 0; 
}

.process-section h2 { 
    margin-bottom: 2rem; 
    text-align: center; 
}

.process-steps { 
    display: grid; 
    gap: 2rem; 
}

.process-steps .process-step { 
    grid-template-columns: 80px 1fr; 
    margin-bottom: 0;
}

/* Expertise Grid */
.expertise-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 1.5rem; 
}

.expertise-item { 
    background: var(--surface); 
    border: 1px solid var(--border); 
    padding: 2rem; 
    text-align: center; 
    transition: all 0.3s; 
}

.expertise-item:hover { 
    border-color: var(--accent-gold); 
    background: rgba(212, 175, 55, 0.05); 
}

.expertise-number { 
    font-size: 2.5rem; 
    font-weight: 600; 
    color: var(--accent-gold); 
    font-family: 'JetBrains Mono', monospace; 
    margin-bottom: 0.5rem; 
}

.expertise-label { 
    color: var(--text-secondary); 
}

/* Capabilities / Indicators */
.capabilities, .indicators { 
    background: var(--primary-dark); 
    padding: 4rem; 
    border-left: 4px solid var(--accent-gold); 
    margin: 3rem 0; 
}

.capabilities h2, .indicators h2 { 
    margin-bottom: 2rem; 
}

.capabilities ul, .indicators ul { 
    list-style: none; 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 1.5rem; 
}

.capabilities li, .indicators li { 
    color: var(--text-secondary); 
    padding-left: 2rem; 
    position: relative; 
}

.capabilities li::before, .indicators li::before { 
    content: '▹'; 
    color: var(--accent-gold); 
    font-size: 1.5rem; 
    position: absolute; 
    left: 0; 
}

/* Methodology */
.methodology { 
    background: var(--surface); 
    padding: 4rem; 
    border: 1px solid var(--border); 
    margin: 3rem 0; 
}

.methodology h2 { 
    margin-bottom: 2rem; 
    text-align: center; 
}

.methodology-steps { 
    display: grid; 
    gap: 2rem; 
}

.methodology-step { 
    display: grid; 
    grid-template-columns: 80px 1fr; 
    gap: 2rem; 
    align-items: start; 
}

/* About Page Specific */
.profile-section { 
    display: grid; 
    grid-template-columns: 350px 1fr; 
    gap: 4rem; 
    margin-bottom: 5rem; 
    align-items: start; 
}

.profile-image { 
    width: 100%; 
    aspect-ratio: 1; 
    background: var(--surface); 
    border: 2px solid var(--border); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--text-secondary); 
    font-size: 0.9rem; 
}

.profile-content h2 { 
    margin-bottom: 1rem; 
    color: var(--accent-gold); 
}

.profile-content p { 
    color: var(--text-secondary); 
    margin-bottom: 1.5rem; 
    font-size: 1.1rem; 
}

.credentials-grid, .threat-types { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem; 
    margin: 3rem 0; 
}

.timeline { 
    position: relative; 
    padding: 2rem 0; 
    max-width: 900px; 
    margin: 3rem auto; 
}

.timeline::before { 
    content: ''; 
    position: absolute; 
    left: 40px; 
    top: 0; 
    bottom: 0; 
    width: 2px; 
    background: linear-gradient(180deg, var(--accent-gold), var(--accent-bronze)); 
}

.timeline-item { 
    display: grid; 
    grid-template-columns: 80px 1fr; 
    gap: 2rem; 
    margin-bottom: 3rem; 
    position: relative; 
}

.timeline-year { 
    width: 80px; 
    height: 80px; 
    background: var(--surface); 
    border: 2px solid var(--accent-gold); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1rem; 
    font-weight: 600; 
    color: var(--accent-gold); 
    font-family: 'JetBrains Mono', monospace; 
    position: relative; 
    z-index: 2; 
}

.timeline-content { 
    background: var(--surface); 
    border: 1px solid var(--border); 
    padding: 2rem; 
}

.timeline-content h3 { 
    margin-bottom: 0.5rem; 
    color: var(--text-primary); 
}

.timeline-content h4 { 
    margin-bottom: 1rem; 
    color: var(--accent-gold); 
    font-size: 1rem; 
    font-weight: 500; 
}

.timeline-content p { 
    color: var(--text-secondary); 
}

.certifications { 
    background: var(--primary-dark); 
    padding: 4rem; 
    border-left: 4px solid var(--accent-gold); 
    margin: 3rem 0; 
}

.certifications h2 { 
    margin-bottom: 2rem; 
}

.certifications ul { 
    list-style: none; 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 1.5rem; 
}

.certifications li { 
    color: var(--text-secondary); 
    padding-left: 2rem; 
    position: relative; 
}

.certifications li::before { 
    content: '▹'; 
    color: var(--accent-gold); 
    font-size: 1.5rem; 
    position: absolute; 
    left: 0; 
}

.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 2rem; 
    margin: 3rem 0; 
}

.stat-item { 
    text-align: center; 
    padding: 2rem; 
    background: var(--surface); 
    border: 1px solid var(--border); 
}

.stat-number { 
    font-size: 3rem; 
    font-weight: 600; 
    color: var(--accent-gold); 
    font-family: 'JetBrains Mono', monospace; 
    margin-bottom: 0.5rem; 
}

.stat-label { 
    color: var(--text-secondary); 
    font-size: 0.95rem; 
}

/* CTA Section */
.cta-section { 
    background: var(--surface); 
    border: 1px solid var(--border); 
    padding: 5rem 3rem; 
    text-align: center; 
    margin-top: 5rem; 
}

.cta-section h2 { 
    margin-bottom: 1.5rem; 
}

.cta-section p { 
    font-size: 1.2rem; 
    color: var(--text-secondary); 
    margin-bottom: 2.5rem; 
    max-width: 700px; 
    margin-left: auto; 
    margin-right: auto; 
}

/* Footer */
footer { 
    background: var(--secondary-dark); 
    border-top: 1px solid var(--border); 
    padding: 4rem 2rem 2rem; 
    margin-top: 5rem; 
}

.footer-content { 
    max-width: 1400px; 
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1fr; 
    gap: 4rem; 
    margin-bottom: 3rem; 
}

.footer-brand { 
    max-width: 350px; 
}

.footer-brand .logo { 
    margin-bottom: 1.5rem; 
    font-size: 1.5rem; 
}

.footer-brand p { 
    color: var(--text-secondary); 
}

.footer-column h4 { 
    margin-bottom: 1.5rem; 
}

.footer-links { 
    list-style: none; 
}

.footer-links li { 
    margin-bottom: 0.75rem; 
}

.footer-links a { 
    color: var(--text-secondary); 
    text-decoration: none; 
    transition: color 0.3s; 
}

.footer-links a:hover { 
    color: var(--accent-gold); 
}

.footer-bottom { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding-top: 2rem; 
    border-top: 1px solid var(--border); 
    text-align: center; 
    color: var(--text-secondary); 
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content { 
        grid-template-columns: 1fr; 
    }
    
    .hero-visual { 
        height: 300px; 
    }
    
    .footer-content { 
        grid-template-columns: 1fr 1fr; 
    }
    
    .process-step { 
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .step-number { 
        margin: 0 auto 1rem; 
    }
}

@media (max-width: 768px) {
    .nav-links { 
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 20, 25, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1000;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        font-size: 1.5rem;
        color: var(--text-primary);
    }
    
    .nav-links a:hover {
        color: var(--accent-gold);
    }
    
    .mobile-toggle { 
        display: flex; 
    }

    .cta-btn {
        display: none;
    }
    
    .hero { 
        padding: 5rem 1.5rem 2rem; 
    }
    
    .hero-visual { 
        display: none; 
    }
    
    .section { 
        padding: 3rem 1.5rem; 
    }
    
    .page-header { 
        padding: 7rem 1.5rem 3rem; 
    }
    
    .services-grid, 
    .footer-content, 
    .features-grid, 
    .capabilities ul, 
    .indicators ul, 
    .credentials-grid, 
    .threat-types { 
        grid-template-columns: 1fr; 
    }
    
    .expertise-grid, 
    .stats-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .footer-bottom { 
        flex-direction: column; 
        gap: 1.5rem; 
    }
    
    .hero-actions { 
        flex-direction: column; 
    }
    
    .btn-primary, 
    .btn-secondary { 
        width: 100%; 
        text-align: center; 
    }
    
    .profile-section { 
        grid-template-columns: 1fr; 
    }
    
    .profile-image { 
        max-width: 300px; 
        margin: 0 auto; 
    }
    
    .process-step { 
        flex-direction: column;
        text-align: center; 
    }

    .methodology-step, 
    .timeline-item,
    .process-steps .process-step { 
        display: block;
        text-align: center; 
    }

    .methodology-step .step-number,
    .timeline-item .timeline-year,
    .process-steps .step-number { 
        margin: 0 auto 1rem; 
    }

    .methodology-step .step-content,
    .timeline-item .timeline-content,
    .process-steps .step-content {
        margin-top: 1rem;
    }
    
    .step-number, 
    .timeline-year { 
        margin: 0 auto 1rem; 
    }
    
    .timeline::before { 
        display: none; 
    }
}