/* RESET & VARIABLES */
:root {
    --primary: #172C59;
    --secondary-bg: #1E293B;
    --dark-bg: #0B0F19;
    --light-bg: #E5E7EB;
    --accent-yellow: #FACC15;
    --accent-red: #DC2626;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

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

body {
    background-color: var(--dark-bg);
    color: var(--text-secondary);
    font-family: var(--font-main);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

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

ul {
    list-style: none;
}

/* UTILITIES */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

.text-center { text-align: center; }
.text-accent { color: var(--accent-yellow); }

/* NAVIGATION */
nav {
    background-color: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--secondary-bg);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Needed for absolute positioning of mobile menu */
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-primary);
    z-index: 1002; /* Ensure brand stays on top */
}

/* Desktop Links */
.nav-links {
    display: flex;
    gap: 30px;
    transition: var(--transition);
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--accent-yellow);
}

/* Mobile Toggle (Hidden by default on Desktop) */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1002; /* Ensure button stays on top */
    padding: 0 10px;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    /* Show Hamburger */
    .mobile-toggle {
        display: block;
    }

    /* Hide Nav Links initially */
    .nav-links {
        position: fixed; /* Takes it out of flow */
        top: 0;
        right: 0;
        width: 100%;
        height: auto;
        background-color: var(--secondary-bg);
        flex-direction: column;
        align-items: center;
        padding-top: 80px; /* Space for the header */
        padding-bottom: 40px;
        gap: 25px;
        border-bottom: 1px solid var(--accent-yellow);
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        
        /* Animation State: Hidden */
        transform: translateY(-150%);
        opacity: 0;
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s ease;
        z-index: 1001; /* Behind brand/toggle but above content */
    }

    /* Animation State: Visible */
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    /* Mobile Link Styling */
    .nav-links a {
        font-size: 1.25rem;
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* HERO SECTION */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 15, 25, 0.6); /* Overlay for text readability */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    margin: 5px;
    border: 2px solid transparent;
}

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

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

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

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

/* GRID LAYOUTS */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

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

/* CARDS */
.card {
    background-color: var(--secondary-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
}

.card-content {
    padding: 20px;
}

.card-caption {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 10px;
    font-style: italic;
}

/* APP SPECIFIC */
.mockup-frame {
    border: 8px solid #333;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* FOOTER */
footer {
    background-color: var(--secondary-bg);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #333;
    margin-top: auto;
}

.footer-manifesto {
    color: var(--accent-yellow);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-top: 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Simple hiding for brevity, JS handles toggle in real deploy */
    }
    .grid-2 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
    
    /* Mobile Menu Logic */
    .mobile-menu-btn { display: block; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--secondary-bg);
        padding: 20px;
    }
}

/* LIGHTBOX STYLES */

/* The hidden container */
.lightbox {
    position: fixed;
    z-index: 2000; /* Higher than nav (1000) */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 15, 25, 0.95); /* Deep dark blue/black overlay */
    backdrop-filter: blur(5px); /* Cinematic blur effect */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* When active (via JS) */
.lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* The Image itself */
.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

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

/* Caption Text */
#lightbox-caption {
    text-align: center;
    color: var(--text-primary);
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Close Button (X) */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--text-primary);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2001;
}

.lightbox-close:hover {
    color: var(--accent-yellow);
}

/* Make gallery images look clickable */
.gallery-img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    opacity: 0.9;
}

/* --- LOGO & BRAND STYLES --- */

/* Container for Logo + Text */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between logo and text */
    text-decoration: none;
}

/* The Logo Image */
.nav-logo img {
    height: 40px; /* Adjusted for balance with text */
    width: auto;
    transition: transform 0.3s ease;
}

/* The "SKY CHASING" Text */
.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-primary);
    white-space: nowrap; /* Prevents text from breaking onto two lines */
    text-transform: uppercase;
}

/* Hover Effect */
.nav-logo:hover img {
    transform: rotate(10deg); /* Subtle rotation for the logo */
}

.nav-logo:hover .brand-text {
    color: var(--accent-yellow); /* Text lights up on hover */
}

/* App Page Hero Logo (Keep existing) */
.app-hero-logo {
    display: block;
    height: 150px;
    width: auto;
    margin: 0 auto 28px auto;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    /* Shrink logo and text to fit small screens */
    .nav-logo img {
        height: 30px;
    }
    
    .brand-text {
        font-size: 1.1rem; /* Smaller text on mobile */
        letter-spacing: 1px;
    }

    .app-hero-logo {
        height: 90px;
        margin: 0 auto 15px auto;
    }
}

/* --- APP PAGE SPECIFIC STYLES --- */

/* Hero Typography */
.hero-subhead {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
}

.status-badge {
    display: inline-block;
    color: var(--accent-yellow);
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid var(--accent-yellow);
    padding: 8px 16px;
    border-radius: 4px;
    margin-bottom: 30px;
}

/* Comparison Section */
.comparison-section {
    background-color: var(--secondary-bg);
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.comparison-box {
    padding: 30px;
    height: 100%;
    transition: transform 0.3s ease;
}

.old-way {
    border-left: 3px solid var(--text-secondary); /* Dim styling */
    color: var(--text-secondary);
}

.new-way {
    border-left: 3px solid var(--accent-yellow); /* Premium/Active styling */
    background: linear-gradient(90deg, rgba(250, 204, 21, 0.05) 0%, transparent 100%);
}

.comp-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-white {
    color: var(--text-primary);
    font-weight: 600;
}

/* Why Different Blocks */
.section-title {
    font-size: 2.2rem;
    margin-bottom: 60px;
}

.feature-card {
    background-color: transparent;
    padding: 20px 10px;
    border-top: 1px solid #333; /* Clean line above each item */
}

.feature-card h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.7;
}

.highlight-text {
    color: var(--accent-yellow) !important;
    font-style: italic;
}

/* Mobile Adjustments for App Page */
@media (max-width: 768px) {
    .hero-subhead { font-size: 1.25rem; }
    .section-title { font-size: 1.8rem; margin-bottom: 40px; }
    .comparison-box { margin-bottom: 30px; }
}