/* 
    GuardCore Consulting Group - Design System v1.0
    Author: Antigravity AI
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Premium Light */
    --clr-bg: #ffffff;
    --clr-bg-alt: #f8fafc;
    --clr-surface: #ffffff;
    --clr-primary: #635bff;
    --clr-primary-glow: rgba(99, 91, 255, 0.15);
    --clr-accent: #059669;
    --clr-accent-glow: rgba(5, 150, 105, 0.1);
    --clr-text: #0f172a;
    --clr-text-muted: #475569;
    --clr-border: #e2e8f0;
    --clr-glass: rgba(255, 255, 255, 0.9);
    
    /* Spacing & Radii */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --container-max: 1280px;
    
    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 1s ease;
}

.glass-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    background: var(--clr-bg-alt);
    overflow: hidden;
}

.glass-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    animation: floatUp 25s linear infinite;
    z-index: 1;
}

.shape-1 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    left: 10%;
    bottom: -150px;
    animation-duration: 22s;
    background: linear-gradient(135deg, rgba(99, 91, 255, 0.1), rgba(255, 255, 255, 0.5));
}

.shape-2 {
    width: 150px;
    height: 150px;
    border-radius: 24px;
    left: 30%;
    bottom: -200px;
    animation-duration: 28s;
    animation-delay: 2s;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(255, 255, 255, 0.5));
}

.shape-3 {
    width: 80px;
    height: 200px;
    border-radius: 40px;
    left: 60%;
    bottom: -250px;
    animation-duration: 35s;
    animation-delay: 5s;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(255, 255, 255, 0.5));
}

.shape-4 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    left: 80%;
    bottom: -200px;
    animation-duration: 30s;
    animation-delay: 1s;
    background: linear-gradient(135deg, rgba(99, 91, 255, 0.05), rgba(255, 255, 255, 0.4));
}

.shape-5 {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    left: 50%;
    bottom: -120px;
    animation-duration: 20s;
    animation-delay: 7s;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.15), rgba(255, 255, 255, 0.5));
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-120vh) rotate(360deg);
        opacity: 0;
    }
}

h1, h2, h3, h4, h5, .font-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* --- Layout Utilities --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

.glass {
    background: var(--clr-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Typography --- */
.text-gradient {
    background: linear-gradient(135deg, var(--clr-text) 0%, var(--clr-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.label-caps {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--clr-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.label-caps::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--clr-primary);
    display: inline-block;
}

/* --- Buttons --- */
.btn {
    padding: 0.8rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--clr-primary);
    color: var(--clr-bg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--clr-primary-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--clr-border);
    color: var(--clr-text);
}

.btn-outline:hover {
    background: var(--clr-border);
    border-color: var(--clr-primary);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    z-index: 1000;
    padding: 1rem 2rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    top: 1rem;
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--clr-border);
    box-shadow: 0 15px 40px -10px rgba(0,0,0,0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--clr-text);
    text-decoration: none;
    letter-spacing: -0.05em;
    mix-blend-mode: screen;
}

.logo img {
    height: 56px;
    border-radius: 6px;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

.logo span {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

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

/* Dropdown Menu Styles */
.nav-links li {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--clr-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0;
    width: 220px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-top: 0.5rem;
    z-index: 1010;
}

/* Add an invisible bridge to prevent dropdown from closing when moving mouse */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 0.6rem 1.5rem;
    color: var(--clr-text-muted) !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: var(--clr-primary-glow);
    color: var(--clr-primary) !important;
    padding-left: 1.8rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--clr-primary);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-logo-wrapper {
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.hero-logo-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.4) 0%, transparent 70%);
    filter: blur(25px);
    z-index: -1;
    border-radius: 50%;
}

.hero-logo-big {
    height: 280px;
    width: auto;
    mask-image: radial-gradient(ellipse at center, black 65%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 65%, transparent 100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
}

.hero-logo-big:hover {
    transform: translateY(-5px) scale(1.02);
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--clr-primary-glow) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* --- Certification Badges --- */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.cert-item {
    text-align: center;
    padding: 2rem;
    transition: var(--transition);
}

.cert-badge {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--clr-primary-glow), transparent);
    border: 1px solid var(--clr-primary);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--clr-primary);
    font-size: 0.9rem;
}

/* --- FAQ Accordion --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-header {
    width: 100%;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    color: var(--clr-text);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-header:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--clr-primary);
}

.faq-body {
    max-height: 0;
    padding: 0 2rem;
    background: transparent;
    transition: all 0.3s ease-out;
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

.faq-item.active .faq-body {
    max-height: 200px;
    padding: 1.5rem 2rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-icon {
    transition: var(--transition);
}

/* --- Payment Methods --- */
.payment-methods {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    opacity: 0.7;
    transition: var(--transition);
}

.payment-methods:hover {
    opacity: 1;
}

.payment-badge {
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    filter: grayscale(1);
    transition: var(--transition);
    border: 1px solid var(--clr-border);
}

.payment-badge:hover {
    filter: grayscale(0);
    border-color: var(--clr-primary);
    transform: translateY(-3px);
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--clr-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* --- Pillar Cards --- */
.pillars-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.pillar-card {
    flex: 1 1 calc(25% - 1.5rem);
    min-width: 280px;
    max-width: 400px;
    padding: 0;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-left: 2px solid transparent;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--clr-primary);
    border-left: 2px solid var(--clr-primary);
    opacity: 0.5;
}

.pillar-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--clr-primary);
    border-right: 2px solid var(--clr-primary);
    opacity: 0.5;
}

.pillar-card:hover {
    background: var(--clr-surface);
    border-left: 2px solid var(--clr-primary);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.pillar-content {
    padding: 0 2rem 2rem;
}

.pillar-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--clr-border);
}

.pillar-icon {
    width: 48px;
    height: 48px;
    background: var(--clr-surface);
    color: var(--clr-primary);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -24px;
    margin-bottom: 1rem;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.pillar-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.pillar-card p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}
/* --- Threat Scanner Section --- */
.scanner-container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    padding: 2.5rem;
    position: relative;
    z-index: 10;
}

.scanner-input-box {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.scanner-input-box:focus-within {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 4px var(--clr-primary-glow);
}

.scanner-icon {
    color: var(--clr-text-muted);
    width: 20px;
    height: 20px;
}

.scanner-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    color: var(--clr-text);
    outline: none;
    font-family: 'Space Grotesk', sans-serif;
}

/* Scanner Terminal */
.scanner-terminal {
    background: #0f172a;
    border-radius: var(--radius-md);
    margin-top: 2rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(15,23,42,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.terminal-header {
    background: #1e293b;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.terminal-dots {
    display: flex;
    gap: 6px;
    margin-right: 1rem;
}

.terminal-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.terminal-dots span:nth-child(1) { background: #ef4444; }
.terminal-dots span:nth-child(2) { background: #eab308; }
.terminal-dots span:nth-child(3) { background: #22c55e; }

.terminal-title {
    color: #94a3b8;
    font-size: 0.8rem;
    font-family: monospace;
    flex: 1;
    text-align: center;
    margin-right: 48px; /* Offset to center title */
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #38bdf8;
    min-height: 150px;
    max-height: 300px;
    overflow-y: auto;
    line-height: 1.6;
}

.terminal-line { margin-bottom: 0.5rem; }
.terminal-line.success { color: #22c55e; }
.terminal-line.warning { color: #eab308; }
.terminal-line.danger { color: #ef4444; }
.terminal-line.info { color: #94a3b8; }

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: #38bdf8;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Scanner Summary Executive View */
.scanner-summary {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--clr-border);
}

.summary-card {
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.summary-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summary-icon.safe { background: rgba(34,197,94,0.1); color: #22c55e; }
.summary-icon.risk { background: rgba(239,68,68,0.1); color: #ef4444; }
.summary-icon.info { background: rgba(56,189,248,0.1); color: #38bdf8; }

.summary-content h4 { margin-bottom: 0.25rem; font-size: 1.1rem; }
.summary-content p { color: var(--clr-text-muted); font-size: 0.9rem; margin-bottom: 0; }

.ports-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.port-badge {
    background: rgba(15,23,42,0.05);
    border: 1px solid var(--clr-border);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: monospace;
    color: var(--clr-text);
}

.cve-badge {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.2);
    color: #ef4444;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-top: 0.5rem;
    margin-right: 0.5rem;
}


/* --- Case Filtering & Bento Layout --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.bento-large {
    grid-column: span 2;
}

.filter-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    border: 1px solid var(--clr-border);
    background: transparent;
    color: var(--clr-text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active {
    background: var(--clr-primary);
    color: var(--clr-bg);
    border-color: var(--clr-primary);
}

/* --- Terminal Form / Checkout --- */
#checkout-form {
    background: #ffffff;
    padding: 2rem;
    border-radius: var(--radius-sm);
    position: relative;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--clr-accent);
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--clr-border);
    border-radius: 0;
    color: var(--clr-text);
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--clr-primary);
    background: rgba(56, 189, 248, 0.05);
}

/* --- HUD Cursor --- */
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--clr-primary);
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--clr-primary);
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline.hover {
    width: 60px;
    height: 60px;
    background-color: var(--clr-primary-glow);
    border-style: dashed;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Animations */
.reveal-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-bottom: 0.1em;
    margin-bottom: -0.1em;
}

.reveal-text {
    display: inline-block;
    transform: translateY(120%);
    animation: revealUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes revealUp {
    0% { transform: translateY(120%); }
    100% { transform: translateY(0); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-large {
        grid-column: span 1;
    }
}

/* Hamburger Button (hidden on desktop) */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 100;
}

.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--clr-text);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .navbar {
        top: 1rem;
        width: 95%;
        padding: 1rem;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-top: 0.75rem;
        background: var(--clr-surface);
        border: 1px solid var(--clr-border);
        border-radius: var(--radius-md);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        animation: mobileMenuSlide 0.3s ease-out forwards;
    }

    @keyframes mobileMenuSlide {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links.mobile-open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        transition: background 0.2s ease;
    }

    .nav-links li a:hover {
        background: rgba(99, 91, 255, 0.08);
    }

    .nav-links .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: rgba(255, 255, 255, 0.02);
        margin-top: 0;
        padding-left: 1rem;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-content .btn-sm {
        display: none;
    }

    .hero { padding-top: 120px; text-align: center; }
    .hero p { margin: 0 auto 2.5rem; }
    .container { padding: 0 1.5rem; }
}

#tech-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    opacity: 0.35;
}

/* --- Team Modal Section --- */
.team-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--clr-surface) 0%, var(--clr-bg-alt) 100%);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4rem 0;
    backdrop-filter: blur(20px);
}

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

.modal-close-btn {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(15, 23, 42, 0.2);
    color: var(--clr-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 3100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    outline: none;
}

.modal-close-btn:hover {
    background: var(--clr-primary);
    color: #ffffff;
    border-color: var(--clr-primary);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(99, 91, 255, 0.5);
}

.team-overlay .container {
    max-width: 1700px;
}

.team-header {
    text-align: left;
    margin-bottom: 4rem;
    max-width: 500px;
}

.team-grid-layout {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

/* CEO Card */
.ceo-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
}

.team-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    width: 100%;
    max-width: 270px;
    transition: var(--transition);
    position: relative;
    text-align: center;
    margin: 0 auto;
}

.team-card:hover {
    background: var(--clr-surface);
    border-color: var(--clr-primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.card-main {
    max-width: 560px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
    text-align: left;
}

.card-main .team-photo {
    width: 210px;
    height: 280px;
    object-fit: cover;
    border-bottom: none;
    border-right: 3px solid var(--clr-primary);
}

.card-main .card-content {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--clr-surface);
}

.card-main h3 {
    font-size: 1.25rem;
    margin-top: 0.5rem;
}

.card-main .role-badge {
    background: var(--clr-primary);
    color: var(--clr-bg);
    padding: 0.25rem 1rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    position: absolute;
    top: 2rem;
    left: 2rem;
    transform: none;
}

.team-photo-wrapper {
    position: relative;
    margin-bottom: 1.1rem;
    display: inline-block;
}

.team-photo {
    width: 100%;
    height: 165px;
    object-fit: cover;
    border-radius: 12px;
}

.member-icon {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--clr-bg);
    border: 2px solid var(--clr-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-primary);
    box-shadow: 0 0 15px var(--clr-primary-glow);
}

.team-card h3 {
    font-size: 1rem;
    margin: 1.25rem 0 0.25rem;
    color: var(--clr-text);
    text-transform: uppercase;
}

.team-card .role {
    color: var(--clr-primary);
    font-size: 0.74rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: block;
}

.team-card .bio {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    line-height: 1.4;
}

/* Specialists Grid */
.specialists-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    justify-content: center;
    gap: 0.85rem;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
}

@media (max-width: 1250px) {
    .specialists-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .specialists-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .specialists-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 450px) {
    .specialists-row {
        grid-template-columns: 1fr;
    }
}

.specialists-row .team-card {
    padding: 0.9rem;
    max-width: none;
}

.specialists-row .team-photo {
    height: 125px;
}

.specialists-row h3 {
    font-size: 0.82rem;
}

.specialists-row .bio {
    font-size: 0.68rem;
}

/* === ENHANCEMENT 1: Staggered Reveal Animation === */
@keyframes teamCardReveal {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.team-overlay.active .team-card,
.team-overlay.active .card-main {
    opacity: 0;
    animation: teamCardReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--card-index, 0) * 120ms + 200ms);
}

.team-overlay.active .team-footer {
    opacity: 0;
    animation: teamCardReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--card-index, 8) * 120ms + 200ms);
}

.team-overlay.active .team-header {
    opacity: 0;
    animation: teamCardReveal 0.5s ease-out forwards;
    animation-delay: 100ms;
}

/* === ENHANCEMENT 2: Hover Expand with Detail Reveal === */
.team-card .card-detail {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin 0.3s ease;
    margin-top: 0;
}

.team-card:hover .card-detail {
    max-height: 80px;
    opacity: 1;
    margin-top: 0.6rem;
}

.card-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    justify-content: center;
}

.card-detail-tag {
    background: rgba(99, 91, 255, 0.08);
    border: 1px solid rgba(99, 91, 255, 0.15);
    color: var(--clr-primary);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.58rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.team-card:hover .card-detail-tag {
    background: rgba(99, 91, 255, 0.12);
    border-color: rgba(99, 91, 255, 0.3);
}

.team-card.ai-card .card-detail-tag {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

.team-card.ai-card:hover .card-detail-tag {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.3);
}

/* === ENHANCEMENT 4: Experience Badge with Counter === */
.exp-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    margin-top: 0.4rem;
    margin-bottom: 0.2rem;
    padding: 0.2rem 0.6rem;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 20px;
    font-size: 0.65rem;
    color: #10b981;
    font-weight: 700;
    transition: all 0.3s ease;
}

.team-card:hover .exp-badge {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.exp-badge .exp-number {
    font-size: 0.85rem;
    font-weight: 800;
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    letter-spacing: -0.5px;
}

.exp-badge .exp-label {
    font-weight: 600;
    opacity: 0.85;
}

.team-card.ai-card .exp-badge {
    background: rgba(99, 91, 255, 0.06);
    border-color: rgba(99, 91, 255, 0.15);
    color: var(--clr-primary);
}

.team-card.ai-card:hover .exp-badge {
    background: rgba(99, 91, 255, 0.12);
    border-color: rgba(99, 91, 255, 0.3);
}

/* Connection Lines */
.team-connectors {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.team-connectors line, .team-connectors path {
    stroke: rgba(255,255,255,0.1);
    stroke-width: 1;
    fill: none;
}

/* Side Stats */
.team-side-info {
    position: absolute;
    top: 0;
    right: 0;
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
}

.info-item i {
    color: var(--clr-primary);
    margin-top: 3px;
}

.info-item h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.info-item p {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
}

/* Footer text */
.team-footer {
    margin-top: 4rem;
    padding: 1.5rem 3rem;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.team-footer p {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

.team-footer strong {
    color: var(--clr-primary);
}

@media (max-width: 1600px) {
    .specialists-row {
        grid-template-columns: repeat(auto-fit, minmax(170px, 185px));
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 992px) {
    .card-main {
        flex-direction: column;
        max-width: 400px;
    }
    .card-main .team-photo {
        width: 100%;
        height: 300px;
        border-right: none;
        border-bottom: 3px solid var(--clr-primary);
    }
    .card-main .role-badge {
        top: auto;
        bottom: 200px;
    }
    .team-side-info {
        position: static;
        width: 100%;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 2rem;
    }
}

@media (max-width: 600px) {
    .specialists-row {
        grid-template-columns: minmax(0, 270px);
    }
}

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

.process-step {
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border-top: 3px solid transparent;
}

.process-step:hover {
    transform: translateY(-5px);
    border-top-color: var(--clr-primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.process-step .step-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--clr-bg-alt);
    -webkit-text-stroke: 1px var(--clr-border);
    position: absolute;
    top: 10px;
    right: 10px;
    line-height: 1;
    z-index: 0;
    transition: var(--transition);
}

.process-step:hover .step-number {
    color: var(--clr-primary-glow);
    -webkit-text-stroke: 1px transparent;
}

.process-step h3, .process-step p {
    position: relative;
    z-index: 1;
}

.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.process-step p {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.process-step .step-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    color: var(--clr-primary);
    opacity: 0.2;
    transition: var(--transition);
}

.process-step:hover .step-icon {
    opacity: 1;
    transform: scale(1.2);
}

/* --- Cert Tags --- */
.cert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cert-tag {
    background: var(--clr-bg-alt);
    border: 1px solid var(--clr-border);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--clr-text-muted);
    transition: var(--transition);
    cursor: default;
}

.cert-tag:hover {
    border-color: var(--clr-primary);
    background: var(--clr-primary-glow);
    color: var(--clr-primary);
}

.cert-tag.fortinet {
    border-color: rgba(220, 38, 38, 0.2);
    color: #dc2626;
}
.cert-tag.fortinet:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: #dc2626;
}

/* --- CyberOps Mockup --- */
.cyberops-mockup {
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cyberops-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-10px);
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.7);
}

.mockup-header {
    background: #0f172a;
    padding: 10px 15px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mockup-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* --- Guard Sensitivity V3 (Dynamic 3D) --- */
.guard-sensitivity-section {
    background-color: #030712;
}

.gs-shape-divider-top, .gs-shape-divider-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 5;
}
.gs-shape-divider-top {
    top: 0;
    transform: translateY(-1px);
}
.gs-shape-divider-bottom {
    bottom: 0;
    transform: translateY(1px) rotate(180deg);
}
.gs-shape-divider-top svg, .gs-shape-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 150px;
}
.gs-shape-divider-top .shape-fill {
    fill: var(--clr-bg-alt); /* Matches the section above */
}
.gs-shape-divider-bottom .shape-fill {
    fill: var(--clr-bg); /* Matches the section below */
}

/* Mesh Background */
.gs-mesh-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}
.gs-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: orb-float 25s infinite alternate ease-in-out;
}
.orb-1 {
    width: 600px;
    height: 600px;
    background: #38bdf8;
    top: -150px;
    left: -150px;
}
.orb-2 {
    width: 550px;
    height: 550px;
    background: #818cf8;
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
    animation-duration: 30s;
}
.orb-3 {
    width: 450px;
    height: 450px;
    background: #10b981;
    top: 30%;
    left: 30%;
    animation-delay: -10s;
    animation-duration: 35s;
}
.gs-noise {
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.08;
    mix-blend-mode: overlay;
    z-index: 1;
}
@keyframes orb-float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(15vw, 15vh) scale(1.1); }
    66% { transform: translate(-10vw, 20vh) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.feature-list-3d {
    display: grid;
    gap: 1rem;
}
.feat-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    transform-origin: left center;
}
.feat-item:hover {
    transform: scale(1.02) translateX(10px);
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.feat-item h4 {
    color: #f8fafc;
    margin-bottom: 0.2rem;
    font-size: 1.05rem;
}
.feat-item p {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 0;
}

/* 3D Exploded Mockup */
.perspective-container {
    perspective: 1200px;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.exploded-mockup {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 300px;
    transform-style: preserve-3d;
    transform: rotateX(15deg) rotateY(-15deg);
    transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.perspective-container:hover .exploded-mockup {
    transform: rotateX(5deg) rotateY(-5deg);
}

.mockup-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.layer-1 {
    background: linear-gradient(135deg, rgba(56,189,248,0.3), rgba(129,140,248,0.3));
    filter: blur(30px);
    transform: translateZ(-40px);
    opacity: 0.7;
}
.perspective-container:hover .layer-1 {
    transform: translateZ(-80px) scale(0.95);
    opacity: 0.9;
}

.layer-2 {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transform: translateZ(0px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.perspective-container:hover .layer-2 {
    border-color: rgba(56, 189, 248, 0.4);
}
.layer-2 .mockup-body {
    padding: 1.5rem;
}

.layer-3 {
    transform: translateZ(40px);
    pointer-events: none;
}
.perspective-container:hover .layer-3 {
    transform: translateZ(100px);
}

.floating-widget {
    position: absolute;
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    transition: transform 1s ease;
}
.widget-1 {
    top: 30px;
    right: -30px;
    animation: float 6s ease-in-out infinite;
}
.widget-2 {
    bottom: 20px;
    left: -40px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: float 5s ease-in-out infinite reverse;
}
.widget-3 {
    top: 100px;
    left: 40px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.pulse-ring {
    width: 60px;
    height: 60px;
    border: 2px solid #38bdf8;
    border-radius: 50%;
    animation: ripple 2s linear infinite;
}
@keyframes ripple {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Glitch Text Effect */
.glitch-text {
    position: relative;
    display: inline-block;
}
.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}
.glitch-text.is-glitching::before {
    left: 2px;
    text-shadow: -1px 0 #ef4444;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 0.2s infinite linear alternate-reverse;
    opacity: 1;
}
.glitch-text.is-glitching::after {
    left: -2px;
    text-shadow: -1px 0 #38bdf8;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 0.25s infinite linear alternate-reverse;
    opacity: 1;
}
@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 44px, 0); }
    20% { clip: rect(80px, 9999px, 20px, 0); }
    40% { clip: rect(30px, 9999px, 90px, 0); }
    60% { clip: rect(90px, 9999px, 30px, 0); }
    80% { clip: rect(40px, 9999px, 70px, 0); }
    100% { clip: rect(60px, 9999px, 10px, 0); }
}

/* Presentation Modal Overlay */
.pres-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

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



.pres-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0;
    margin: 0;
}

.pres-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #ffffff;
}

/* Custom Select Dropdown Styles */
.custom-select-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem 0.8rem 0;
    border-bottom: 1px solid var(--clr-border);
    color: var(--clr-text);
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
}

.custom-select-trigger span {
    user-select: none;
}

.custom-select-trigger i {
    color: var(--clr-accent);
    transition: transform 0.3s ease;
    width: 16px;
    height: 16px;
}

.custom-select.active .custom-select-trigger i {
    transform: rotate(180deg);
}

.custom-select.active .custom-select-trigger {
    border-color: var(--clr-primary);
}

.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--clr-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.custom-select.active .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-option {
    padding: 0.75rem 1.5rem;
    color: var(--clr-text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.custom-option:hover {
    background: var(--clr-primary-glow);
    color: var(--clr-primary);
    padding-left: 1.8rem;
}

.custom-option.selected {
    background: var(--clr-primary);
    color: #ffffff;
}

/* --- Sara Stratel AI Assistant Widget --- */
.ai-assistant {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 2500;
    pointer-events: auto;
}

.ai-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.25rem 0.5rem 0.5rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(99, 91, 255, 0.3);
    border-radius: 40px;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 10px rgba(99, 91, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-badge:hover {
    border-color: var(--clr-primary);
    box-shadow: 0 4px 25px rgba(99, 91, 255, 0.4), 0 0 15px rgba(99, 91, 255, 0.3);
    transform: translateY(-2px);
}

.ai-avatar-badge {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(99, 91, 255, 0.2);
    border: 1px solid rgba(99, 91, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ai-avatar-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-badge-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 6px #10b981;
    animation: pulse 1.5s infinite;
}

.ai-panel {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 340px;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(99, 91, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 91, 255, 0.15);
    margin-bottom: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ai-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.ai-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
}

.ai-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ai-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--clr-primary);
    box-shadow: 0 0 10px rgba(99, 91, 255, 0.3);
}

.ai-info {
    display: flex;
    flex-direction: column;
}

.ai-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
}

.ai-status {
    font-size: 0.65rem;
    color: var(--clr-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.ai-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
}

.ai-close {
    background: none;
    border: none;
    color: var(--clr-text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
}

.ai-close:hover {
    color: #ffffff;
}

.ai-chat-body {
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ai-message {
    background: rgba(99, 91, 255, 0.1);
    border: 1px solid rgba(99, 91, 255, 0.2);
    padding: 0.75rem 1rem;
    border-radius: 0 12px 12px 12px;
    color: #ffffff;
    font-size: 0.8rem;
    line-height: 1.4;
}

.ai-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ai-option-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.6rem 1rem;
    color: var(--clr-text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
}

.ai-option-btn:hover {
    background: rgba(99, 91, 255, 0.15);
    border-color: var(--clr-primary);
    color: #ffffff;
    transform: translateX(5px);
}

.ai-input-area {
    display: flex;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    gap: 0.5rem;
}

.ai-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: #ffffff;
    font-size: 0.75rem;
    outline: none;
}

.ai-send-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--clr-primary);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* --- Magnetic Glow Effect --- */
.magnetic-card {
    position: relative;
    overflow: hidden;
}

.magnetic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        600px circle at var(--mouse-x, 0) var(--mouse-y, 0),
        rgba(99, 91, 255, 0.08),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}

.magnetic-card:hover::before {
    opacity: 1;
}

.magnetic-card > * {
    position: relative;
    z-index: 1;
}

/* Custom Glass Avatars */
.team-avatar-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.03), 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-avatar-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 91, 255, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-card:hover .team-avatar-wrapper {
    border-color: rgba(99, 91, 255, 0.4);
    box-shadow: 0 0 20px rgba(99, 91, 255, 0.2), inset 0 0 15px rgba(99, 91, 255, 0.05);
    transform: translateY(-2px);
}

.team-card:hover .team-avatar-wrapper::after {
    opacity: 1;
}

.team-avatar-wrapper i {
    width: 36px;
    height: 36px;
    color: var(--clr-primary);
    z-index: 2;
    transition: transform 0.4s ease;
}

.team-card:hover .team-avatar-wrapper i {
    transform: scale(1.1);
}

/* AI Specialist Specific Avatar Style */
.team-card.ai-card .team-avatar-wrapper i {
    color: #38bdf8;
}

.team-card.ai-card:hover .team-avatar-wrapper {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2), inset 0 0 15px rgba(56, 189, 248, 0.05);
}

/* CEO Main Avatar Style */
.team-avatar-wrapper-main {
    width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1.5rem;
    transition: all 0.4s ease;
}

.team-avatar-wrapper-main .ceo-badge {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(245, 158, 11, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.03), 0 0 20px rgba(245, 158, 11, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.team-card.card-main:hover .team-avatar-wrapper-main .ceo-badge {
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.35), inset 0 0 15px rgba(245, 158, 11, 0.1);
    transform: scale(1.05);
}

.team-avatar-wrapper-main i {
    width: 40px;
    height: 40px;
    color: #f59e0b;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.4));
    z-index: 3;
    transition: transform 0.4s ease;
}

.team-card.card-main:hover .team-avatar-wrapper-main i {
    transform: scale(1.1);
}

.card-main .role-badge {
    position: static !important;
    display: inline-block !important;
    margin-bottom: 0.75rem !important;
    width: max-content;
    transform: none !important;
}

@media (max-width: 768px) {
    .card-main {
        flex-direction: column !important;
        max-width: 400px;
    }
    .team-avatar-wrapper-main {
        width: 100% !important;
        height: auto !important;
        padding: 1.5rem 1.5rem 0.5rem 1.5rem !important;
    }
}

/* === Preloader === */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.preloader-logo {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(99, 91, 255, 0.4));
    animation: pulseLogo 2s infinite ease-in-out;
}

.preloader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.preloader-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--clr-primary);
    box-shadow: 0 0 10px var(--clr-primary);
    animation: loadingBar 1.5s ease-out forwards;
}

.preloader-text {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--clr-text-muted);
    animation: blinkText 1.5s infinite;
}

@keyframes pulseLogo {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

@keyframes loadingBar {
    0% { width: 0%; }
    50% { width: 60%; }
    100% { width: 100%; }
}

@keyframes blinkText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* === Footer === */
.site-footer {
    border-top: 1px solid var(--clr-border);
    padding-top: 80px;
    background: var(--clr-bg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-logo {
    display: inline-flex;
    margin-bottom: 1.5rem;
}

.footer-desc {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--clr-border);
    color: var(--clr-text-muted);
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--clr-primary);
    background: rgba(99, 91, 255, 0.1);
    border-color: rgba(99, 91, 255, 0.3);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--clr-text);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--clr-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links a i {
    width: 14px;
    height: 14px;
    margin-right: 8px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--clr-primary);
}

.footer-links a:hover {
    color: var(--clr-primary);
    transform: translateX(5px);
}

.footer-links a:hover i {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--clr-primary);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.footer-contact a {
    color: var(--clr-text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--clr-primary);
}

.footer-bottom {
    border-top: 1px solid var(--clr-border);
    padding: 1.5rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-flex p {
    color: var(--clr-text-muted);
    font-size: 0.85rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-legal a {
    color: var(--clr-text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: var(--clr-text);
}

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

/* ==========================================================================
   MOBILE RESPONSIVENESS & MEDIA QUERIES
   ========================================================================== */

/* --- Nav Hamburger (Hidden by default on Desktop) --- */
.nav-hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 1011;
}

.nav-hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--clr-text);
    border-radius: 3px;
    transition: var(--transition);
}

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

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

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

@media (max-width: 992px) {
    /* Navbar adjustments */
    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100vw;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1005;
        padding: 2rem;
    }

    .nav-links.mobile-open {
        left: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        border: none;
        display: none;
        text-align: center;
        padding-top: 1rem;
    }
    
    .dropdown.active .dropdown-menu,
    .dropdown:hover .dropdown-menu {
        display: block;
    }

    .dropdown-trigger i {
        display: none;
    }

    /* Container adjustments */
    .container {
        padding: 0 1.5rem;
    }

    .section-padding {
        padding: 60px 0;
    }
    
    /* Grids & Cards */
    .pillars-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .pillar-card {
        width: 100%;
        max-width: 100%;
    }
    
    .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* Guard Sensitivity 3D */
    .guard-sensitivity-section {
        padding: 120px 0 !important;
    }
    
    .perspective-container {
        transform: scale(0.8);
        margin-top: 2rem;
    }
    
    .glitch-text {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 768px) {
    /* Hero Section */
    .hero {
        padding: 100px 0 60px;
    }

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

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

    .hero-logo-big {
        height: 180px;
    }

    .flex-center {
        flex-direction: column;
        width: 100%;
    }

    .flex-center .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Typography adjustments */
    h2 {
        font-size: 1.8rem !important;
    }
    
    /* Scanner section */
    .scanner-input-box {
        flex-direction: column;
        padding: 1rem;
    }
    
    .scanner-input {
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    #scanner-btn {
        width: 100%;
        justify-content: center;
    }
    
    .terminal-body {
        font-size: 0.8rem;
    }

    /* Certs & Process grids */
    .cert-grid, .process-grid, .bento-grid {
        grid-template-columns: 1fr;
    }

    /* AI Widget */
    .ai-panel {
        width: calc(100vw - 4rem);
        max-width: 340px;
    }
}
