/* ============================================
   Cyber Secure Solutions - Main Stylesheet
   Dark Theme - Defense Industry Focused
   ============================================ */

/* CSS Variables - Dark Theme */
:root {
    --primary: #00d4aa;
    --primary-dark: #00b894;
    --primary-glow: rgba(0, 212, 170, 0.3);
    --secondary: #0a0a12;
    --bg-dark: #0a0a12;
    --bg-card: #12121c;
    --bg-card-hover: #1a1a28;
    --bg-elevated: #1e1e2e;
    --text: #e0e0e0;
    --text-muted: #888899;
    --text-white: #ffffff;
    --border: #2a2a3a;
    --border-light: #3a3a4a;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(0, 212, 170, 0.2);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-dark);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-white);
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 18, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
    transition: var(--transition);
}

.logo-img:hover {
    filter: drop-shadow(0 0 8px var(--primary));
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 16px;
}

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

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

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-white);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 140px 0 100px;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Hero video background */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--bg-dark) 0%,
        rgba(10, 10, 18, 0.7) 50%,
        rgba(10, 10, 18, 0.4) 100%
    );
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 650px;
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 5rem);
    line-height: 1.05;
    margin-bottom: 32px;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero .highlight {
    color: var(--primary);
    text-shadow: 0 0 80px var(--primary-glow);
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 48px;
    color: var(--text-muted);
    max-width: 480px;
}

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

.hero-buttons .btn-large {
    padding: 18px 36px;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 64px;
    color: var(--text-muted);
}

/* Services */
.services {
    background: var(--secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.service-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

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

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 0 20px var(--primary-glow);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: var(--bg-dark);
}

.service-card h3 {
    margin-bottom: 12px;
    color: var(--text-white);
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* AegisPrime Section */
.aegisprime {
    background: var(--bg-elevated);
    position: relative;
}

.aegisprime-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.aegisprime-text h2,
.aegisprime-text p {
    color: var(--text-white);
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 212, 170, 0.15);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 212, 170, 0.3);
}

.aegisprime-text h2 {
    margin-bottom: 16px;
}

.aegisprime-text > p {
    opacity: 0.8;
    margin-bottom: 32px;
    color: var(--text-muted);
}

.feature-list {
    list-style: none;
    margin-bottom: 32px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 1.0625rem;
    color: var(--text);
}

.feature-list svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

/* Browser Mockup */
.browser-mockup {
    background: #0d0d15;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.browser-header {
    padding: 12px 16px;
    background: #1a1a24;
    display: flex;
    gap: 8px;
}

.browser-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
}

.browser-dot:nth-child(2) { background: #ffbd2e; }
.browser-dot:nth-child(3) { background: #27ca40; }

.browser-content {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #0a0a12, #12121c);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.browser-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-content {
    color: var(--text-muted);
    font-size: 1.25rem;
    position: absolute;
}

.browser-content img + .placeholder-content {
    display: none;
}

/* Mission Section */
.mission {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.mission-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.mission-content h2 {
    margin-bottom: 24px;
    color: var(--primary);
}

.mission-statement {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text);
    font-style: italic;
}

/* About Section */
.about {
    background: var(--bg-dark);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h2 {
    margin-bottom: 16px;
    text-align: center;
}

.about-text > p {
    font-size: 1.125rem;
    margin-bottom: 48px;
    text-align: center;
    color: var(--text-muted);
}

.about-points {
    display: grid;
    gap: 32px;
}

.about-point {
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.about-point:hover {
    border-color: var(--primary);
}

.about-point h4 {
    margin-bottom: 8px;
    color: var(--primary);
}

.about-point p {
    color: var(--text-muted);
}

/* Contact Section */
.contact {
    background: var(--secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-card);
    color: var(--text-white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
}

.info-item h4 {
    color: var(--primary);
    margin-bottom: 4px;
}

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

/* Footer */
.footer {
    background: #050508;
    color: var(--text);
    padding: 64px 0 32px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

.footer-brand p {
    margin-top: 16px;
    opacity: 0.6;
    max-width: 300px;
}

.footer-links h4 {
    color: var(--text-white);
    margin-bottom: 16px;
}

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

.footer-links li {
    margin-bottom: 8px;
}

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

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

.footer-bottom {
    padding-top: 32px;
    text-align: center;
}

.footer-bottom p {
    opacity: 0.5;
    font-size: 0.875rem;
}

/* Trust Badges Section */
.trust-badges {
    padding: 40px 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.badges-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.7;
    transition: var(--transition);
}

.badge-item:hover {
    opacity: 1;
}

.badge-item span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 992px) {
    .aegisprime-content {
        grid-template-columns: 1fr;
    }

    .aegisprime-image {
        order: -1;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        margin: 16px auto 0;
    }

    .badges-container {
        gap: 32px;
    }
}

/* ===== SCROLL ANIMATIONS ===== */

/* Hero entrance animation */
.hero-content.animate-in {
    animation: heroFadeIn 1s ease-out forwards;
}

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

/* Navbar scroll state */
.navbar.scrolled {
    background: rgba(10, 10, 18, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Base scroll animation class */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scale-in variant for browser mockup */
.scroll-animate.scale-in {
    transform: translateY(40px) scale(0.95);
}

.scroll-animate.scale-in.visible {
    transform: translateY(0) scale(1);
}

/* Fade-in from left (for text blocks) */
.scroll-animate.from-left {
    transform: translateX(-40px);
}

.scroll-animate.from-left.visible {
    transform: translateX(0);
}

/* Fade-in from right (for images) */
.scroll-animate.from-right {
    transform: translateX(40px);
}

.scroll-animate.from-right.visible {
    transform: translateX(0);
}

/* Service cards hover enhancement */
.service-card {
    transition: opacity 0.7s ease-out, transform 0.5s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Feature list items */
.feature-list li.scroll-animate {
    transform: translateX(-20px);
}

.feature-list li.scroll-animate.visible {
    transform: translateX(0);
}

/* Mission statement special treatment */
.mission-statement.scroll-animate {
    transform: none;
    transition: opacity 1s ease-out;
}

.mission-statement.scroll-animate.visible {
    opacity: 1;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .scroll-animate,
    .hero-content.animate-in {
        animation: none;
        transition: none;
        opacity: 1;
        transform: none;
    }
}
