/* -------------------------------------------------------------
 * MADHAVA SECURITY - DESIGN SYSTEM & LAYOUT
 * ------------------------------------------------------------- */

/* Variables & Design Tokens */
:root {
    --bg-primary: #030712;
    --bg-secondary: #0b1329;
    --bg-tertiary: #111e3b;
    --bg-card: rgba(15, 27, 54, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(6, 182, 212, 0.2);
    
    --color-text-main: #f3f4f6;
    --color-text-muted: #9ca3af;
    
    --color-primary: #06b6d4;     /* Cyber Cyan */
    --color-primary-rgb: 6, 182, 212;
    --color-accent: #8b5cf6;      /* Electric Violet */
    --color-accent-rgb: 139, 92, 246;
    
    --color-success: #10b981;     /* Neon Green */
    --color-error: #ef4444;       /* Neon Red */
    --color-warning: #f59e0b;     /* Neon Amber */
    --color-info: #3b82f6;        /* Info Blue */
    
    --font-sans: 'Inter', sans-serif;
    --font-header: 'Space Grotesk', sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-cyan: 0 0 20px rgba(6, 182, 212, 0.25);
    --shadow-violet: 0 0 20px rgba(139, 92, 246, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

/* Reset & Base Elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--color-text-main);
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background: radial-gradient(circle at 50% 0%, var(--bg-secondary) 0%, var(--bg-primary) 70%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
    border: 1px solid var(--border-color);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Typography & Headers */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text-main);
    line-height: 1.2;
}

p {
    font-weight: 400;
    color: var(--color-text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

/* Helper Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-muted { color: var(--color-text-muted); }

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Section Common Styles */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: #fff;
    box-shadow: var(--shadow-cyan);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.45);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--color-text-main);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-block {
    width: 100%;
}

/* Badge Tags */
.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--color-primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: inline-block;
    animation: pulseDot 2s infinite;
}

/* -------------------------------------------------------------
 * NAVIGATION (NAVBAR)
 * ------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-normal);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.05em;
    color: #fff;
}

.logo span span {
    color: var(--color-primary);
    text-shadow: var(--shadow-cyan);
}

.logo-icon {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-primary);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
}

.logo-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    filter: blur(10px);
    opacity: 0.4;
    border-radius: 50%;
    z-index: -1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a,
.dropdown-toggle {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-links a:hover,
.nav-links a.active,
.dropdown-toggle:hover,
.dropdown-toggle.active {
    color: var(--color-primary);
    text-shadow: var(--shadow-cyan);
}

.nav-links a.active {
    color: var(--color-primary) !important;
}

.nav-cta-mobile {
    display: none;
}

/* Dropdown Sub-menu styling */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--bg-secondary);
    border: var(--border-color);
    border-radius: 12px;
    padding: 12px 0;
    min-width: 250px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(6, 182, 212, 0.05);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    z-index: 1001;
}

.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background-color: var(--bg-secondary);
    border-left: var(--border-color);
    border-top: var(--border-color);
}

.dropdown-menu a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    font-size: 0.88rem;
    color: var(--color-text-muted) !important;
    text-shadow: none !important;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.dropdown-menu a i {
    font-size: 0.95rem;
    color: var(--color-primary);
    width: 16px;
    text-align: center;
}

.dropdown-menu a:hover {
    background-color: var(--bg-tertiary) !important;
    color: var(--color-primary) !important;
    text-shadow: var(--shadow-cyan) !important;
}

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

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--color-text-main);
    font-size: 1.3rem;
    cursor: pointer;
}

/* -------------------------------------------------------------
 * HERO SECTION
 * ------------------------------------------------------------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    z-index: 0;
}

.hero-glow-1 {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 70%);
    z-index: 0;
}

.hero-glow-2 {
    position: absolute;
    bottom: 10%;
    right: 15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 36px;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-frame {
    position: relative;
    padding: 10px;
    background: rgba(11, 19, 41, 0.35);
    border: var(--border-color);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    max-width: 460px;
    width: 100%;
    animation: floatAnimation 6s ease-in-out infinite;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Cyber corner decors */
.frame-border-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--color-primary);
    border-style: solid;
    z-index: 2;
}
.frame-border-corner.top-left {
    top: -2px; left: -2px;
    border-width: 2px 0 0 2px;
    border-top-left-radius: 4px;
}
.frame-border-corner.top-right {
    top: -2px; right: -2px;
    border-width: 2px 2px 0 0;
    border-top-right-radius: 4px;
}
.frame-border-corner.bottom-left {
    bottom: -2px; left: -2px;
    border-width: 0 0 2px 2px;
    border-bottom-left-radius: 4px;
}
.frame-border-corner.bottom-right {
    bottom: -2px; right: -2px;
    border-width: 0 2px 2px 0;
    border-bottom-right-radius: 4px;
}

/* -------------------------------------------------------------
 * SCANNER SIMULATOR SECTION
 * ------------------------------------------------------------- */
.scanner-section {
    background-color: var(--bg-secondary);
}

.simulator-card {
    max-width: 850px;
    margin: 0 auto;
    background: var(--bg-card);
    border: var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(6, 182, 212, 0.03);
}

.simulator-header {
    background-color: #050b18;
    border-bottom: var(--border-color);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.control.close { background-color: #ff5f56; }
.control.minimize { background-color: #ffbd2e; }
.control.maximize { background-color: #27c93f; }

.window-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.status-dot.green {
    background-color: var(--color-success);
    box-shadow: 0 0 8px var(--color-success);
    animation: statusPulse 1.5s infinite;
}

.simulator-body {
    padding: 24px;
}

.input-panel {
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    background-color: #030712;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition-fast);
}

.input-group:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.input-prefix {
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.02);
    border-right: 1px solid var(--border-color);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--color-primary);
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    padding: 12px 16px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

.btn-input {
    border-radius: 0;
    padding: 0 24px;
}

.terminal-screen {
    background-color: #020617;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 20px;
    min-height: 250px;
    max-height: 250px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #34d399; /* emerald-400 */
    position: relative;
}

.terminal-screen::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 6px 100%;
    z-index: 2;
    pointer-events: none;
}

.terminal-line {
    margin-bottom: 8px;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.5;
}

.terminal-line.system-msg {
    color: #94a3b8; /* slate-400 */
}

.terminal-line.warning {
    color: var(--color-warning);
}

.terminal-line.danger {
    color: var(--color-error);
    font-weight: 500;
}

.terminal-line.success {
    color: var(--color-success);
}

/* Result Panel Output styling */
.simulator-result-panel {
    border-top: 1px solid var(--border-color);
    background-color: #060d1d;
    padding: 30px 24px;
    animation: slideDown 0.4s ease-out forwards;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.result-title {
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-title i {
    color: var(--color-primary);
}

.risk-badge {
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    font-family: var(--font-header);
}

.critical-risk {
    background-color: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--color-error);
    color: var(--color-error);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.stat-card.critical { border-left: 4px solid var(--color-error); }
.stat-card.high { border-left: 4px solid var(--color-warning); }
.stat-card.medium { border-left: 4px solid var(--color-info); }
.stat-card.low { border-left: 4px solid var(--color-text-muted); }

.stat-num {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
    font-family: var(--font-header);
}

.critical .stat-num { color: var(--color-error); }
.high .stat-num { color: var(--color-warning); }
.medium .stat-num { color: var(--color-info); }
.low .stat-num { color: var(--color-text-muted); }

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    font-weight: 600;
}

.report-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.tab-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-text-muted);
    padding: 10px 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-header);
    position: relative;
}

.tab-btn.active {
    color: var(--color-primary);
}

.tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
}

.tab-content {
    animation: fadeIn 0.3s ease;
}

.finding-item {
    background-color: rgba(3, 7, 18, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.finding-item.critical { border-left: 3px solid var(--color-error); }
.finding-item.high { border-left: 3px solid var(--color-warning); }

.finding-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.severity-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}
.severity-tag.crit { background-color: var(--color-error); color: #fff; }
.severity-tag.high { background-color: var(--color-warning); color: #000; }

.finding-cve {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.finding-title {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.finding-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.remediation-step {
    background-color: rgba(3, 7, 18, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.remediation-step h5 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.remediation-step p {
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.remediation-step pre {
    background-color: #020617;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
    overflow-x: auto;
}

.remediation-step code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #34d399;
}

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

.disclaimer {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* -------------------------------------------------------------
 * SERVICES SECTION
 * ------------------------------------------------------------- */
.services-section {
    background-color: var(--bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border: var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05), rgba(139, 92, 246, 0.05));
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-cyan);
}

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

.service-icon {
    position: relative;
    z-index: 1;
    width: 60px;
    height: 60px;
    background-color: rgba(6, 182, 212, 0.06);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 24px;
    transition: var(--transition-fast);
}

.service-card:hover .service-icon {
    background-color: var(--color-primary);
    color: #000;
    box-shadow: 0 0 15px var(--color-primary);
}

.service-card-title {
    position: relative;
    z-index: 1;
    font-size: 1.25rem;
    margin-bottom: 14px;
}

.service-card-desc {
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* -------------------------------------------------------------
 * TIMELINE / WORKFLOW SECTION
 * ------------------------------------------------------------- */
.workflow-section {
    background-color: var(--bg-secondary);
    overflow: hidden;
}

.workflow-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.workflow-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}

.workflow-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 45px;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-primary) 0%, var(--color-accent) 50%, var(--bg-tertiary) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 100px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-number {
    position: absolute;
    left: 20px;
    top: 0;
    width: 52px;
    height: 52px;
    background-color: var(--bg-primary);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-primary);
    box-shadow: var(--shadow-cyan);
    z-index: 2;
    transition: var(--transition-fast);
}

.timeline-item:hover .timeline-number {
    background-color: var(--color-primary);
    color: #000;
    box-shadow: 0 0 20px var(--color-primary);
}

.timeline-content {
    background-color: var(--bg-card);
    border: var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: var(--transition-normal);
}

.timeline-item:hover .timeline-content {
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateX(8px);
}

.timeline-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 0.95rem;
}

/* -------------------------------------------------------------
 * ABOUT US SECTION
 * ------------------------------------------------------------- */
.about-section {
    background-color: var(--bg-primary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.about-stats-container {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.about-stat {
    flex: 1;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    font-family: var(--font-header);
    color: var(--color-primary);
    margin-bottom: 4px;
    text-shadow: var(--shadow-cyan);
}

.stat-text {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    font-weight: 600;
}

.badges-frame {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.badge-card {
    background-color: var(--bg-secondary);
    border: var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 16px;
    transition: var(--transition-normal);
}

.badge-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-4px);
}

.badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background-color: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--color-accent);
}

.badge-card h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.badge-card p {
    font-size: 0.9rem;
}

/* -------------------------------------------------------------
 * TESTIMONIALS SECTION
 * ------------------------------------------------------------- */
.testimonials-section {
    background-color: var(--bg-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: var(--bg-card);
    border: var(--border-color);
    border-radius: 16px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-normal);
}

.testimonial-card:hover {
    border-color: rgba(6, 182, 212, 0.25);
    transform: scale(1.02);
}

.quote-icon {
    font-size: 1.8rem;
    color: rgba(6, 182, 212, 0.15);
    margin-bottom: 20px;
}

.testimonial-text {
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.client-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-primary);
}

.client-name {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.client-role {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* -------------------------------------------------------------
 * CONTACT US SECTION
 * ------------------------------------------------------------- */
.contact-section {
    background-color: var(--bg-primary);
    overflow: hidden;
}

.contact-bg-glow {
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.contact-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.contact-desc {
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 16px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--color-primary);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.05);
}

.contact-item h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.9rem;
}

.contact-form-wrapper {
    background-color: var(--bg-secondary);
    border: var(--border-color);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.form-title {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.form-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

.form-group select option {
    background-color: var(--bg-secondary);
    color: #fff;
}

/* Success Overlay */
.form-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-secondary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-normal);
    z-index: 10;
}

.form-success-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.success-box {
    text-align: center;
    max-width: 380px;
}

.success-icon {
    font-size: 4rem;
    color: var(--color-success);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.success-box h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.success-box p {
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* -------------------------------------------------------------
 * FOOTER
 * ------------------------------------------------------------- */
.footer {
    background-color: #02050c;
    border-top: var(--border-color);
    padding: 80px 0 0;
}

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

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

.footer-desc {
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #000;
    box-shadow: var(--shadow-cyan);
    transform: translateY(-2px);
}

.footer-links-col h4 {
    font-size: 1.05rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-links-col h4::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer-links-col a {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

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

.footer-links-col p.legal-text {
    font-size: 0.8rem;
    line-height: 1.5;
}

.footer-bottom {
    border-top: var(--border-color);
    padding: 24px 0;
}

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

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

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

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

/* -------------------------------------------------------------
 * KEYFRAME ANIMATIONS & TRANSITIONS
 * ------------------------------------------------------------- */
@keyframes floatAnimation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

@keyframes pulseDot {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.4; }
    100% { transform: scale(0.9); opacity: 1; }
}

@keyframes statusPulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scroll Animation Hooks (Controlled by JS) */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Pre-animated Hero Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUpDone 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-content .fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.hero-content .fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.hero-content .fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.hero-content .fade-in-up:nth-child(4) { animation-delay: 0.4s; }
.hero-image-wrapper.fade-in-up { animation-delay: 0.5s; }

@keyframes fadeInUpDone {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------------------------------------------
 * RESPONSIVE ADJUSTMENTS (BREAKPOINTS)
 * ------------------------------------------------------------- */

/* Tablet & Smaller Laptops */
@media (max-width: 1024px) {
    h1.hero-title {
        font-size: 2.8rem;
    }
    
    .hero-container {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 24px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Navigation Toggle */
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 73px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 73px);
        background-color: var(--bg-primary);
        border-top: var(--border-color);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 60px;
        gap: 30px;
        transition: var(--transition-normal);
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a,
    .dropdown-toggle {
        font-size: 1.15rem;
    }

    .dropdown {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .dropdown-toggle {
        justify-content: center;
        width: 100%;
        padding: 5px 0;
    }

    .dropdown-menu {
        position: static;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        background: rgba(255, 255, 255, 0.02);
        border: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        min-width: 100%;
        transition: max-height 0.3s ease-out;
        z-index: 1;
    }

    .dropdown-menu::before {
        display: none;
    }

    .dropdown:hover .dropdown-menu,
    .dropdown.active .dropdown-menu {
        max-height: 350px;
        padding: 10px 0;
    }

    .dropdown-menu a {
        justify-content: center;
        font-size: 0.95rem;
        padding: 8px 20px;
    }
    
    .nav-cta-mobile {
        display: block !important;
        background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
        color: #fff !important;
        padding: 10px 30px;
        border-radius: var(--border-radius);
    }
    
    .nav-actions .btn {
        display: none; /* Hide top right btn on mobile, use mobile link inside menu */
    }
    
    /* Hero layout stack */
    .hero-section {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        margin-top: 20px;
    }
    
    .image-frame {
        max-width: 320px;
    }
    
    /* Scanner console stack */
    .input-group {
        flex-direction: column;
        border: none;
        gap: 10px;
        background: transparent;
    }
    
    .input-prefix {
        border-right: none;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        text-align: center;
    }
    
    .input-group input {
        border: 1px solid var(--border-color);
        border-radius: 8px;
        text-align: center;
        background-color: #030712;
    }
    
    .btn-input {
        border-radius: 8px;
        padding: 12px 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .result-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    /* Grids to single column */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .workflow-timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 55px;
    }
    
    .timeline-number {
        left: 0;
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }
    
    .about-stats-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 24px 16px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
}



/* -------------------------------------------------------------
 * TEAM SECTION / ACTIVE AGENT DOSSIERS
 * ------------------------------------------------------------- */
.team-section {
    background-color: var(--bg-primary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.team-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.team-card:hover {
    border-color: var(--color-primary);
    background-color: rgba(15, 27, 54, 0.95);
    transform: translateY(-5px);
    box-shadow: var(--shadow-cyan);
}

.team-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    border-bottom: 1px dashed rgba(6, 182, 212, 0.15);
    padding-bottom: 20px;
}

.avatar-wrapper {
    width: 78px;
    height: 78px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-glow);
    position: relative;
    flex-shrink: 0;
    background-color: #020306;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0) contrast(1.1) brightness(0.95);
    transition: var(--transition-slow);
}

.team-card:hover .avatar-img {
    filter: saturate(0.75) contrast(1.15) brightness(1.02);
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    box-shadow: 0 0 6px var(--color-primary);
    opacity: 0.5;
    animation: scanline 2.5s linear infinite;
    pointer-events: none;
}

@keyframes scanline {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

.clearance-level {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.clearance-tag {
    font-family: var(--font-header);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    align-self: flex-start;
}

.clearance-tag.level-5 {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--color-error);
    color: var(--color-error);
}

.clearance-tag.level-4 {
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--color-warning);
    color: var(--color-warning);
}

.clearance-status {
    font-family: var(--font-header);
    font-size: 0.7rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

.team-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.member-name {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 4px;
}

.member-role {
    font-family: var(--font-header);
    font-size: 0.82rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.member-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.member-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--color-text-muted);
}

.member-meta i {
    color: var(--color-primary);
}

.member-bio {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
    line-height: 1.6;
}

.member-socials {
    display: flex;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
}

.member-socials a {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.member-socials a:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background-color: rgba(6, 182, 212, 0.05);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
    transform: translateY(-2px);
}

/* Responsive Team Section */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}
