/* --- 1. CORE VARIABLES (Easy to change colors) --- */
    :root {
        --primary: #0f172a;       /* Dark Navy Background */
        --accent: #ef4444;        /* Energetic Red */
        --accent-hover: #dc2626;  /* Darker Red for interaction */
        --text-main: #e2e8f0;     /* Light Grey Text */
        --text-muted: #94a3b8;    /* Muted Text */
        --card-bg: #1e293b;       /* Slightly lighter navy for cards */
        --white: #ffffff;
        --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth Physics */
        --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    }

    /* --- 2. GLOBAL RESET & TYPOGRAPHY --- */
    * { box-sizing: border-box; margin: 0; padding: 0; }

    body {
        font-family: 'Inter', sans-serif;
        background-color: var(--primary);
        color: var(--text-main);
        line-height: 1.6;
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    a { text-decoration: none; transition: var(--transition); }
    ul { list-style: none; }
    img { display: block; max-width: 100%; border-radius: 8px; }

    /* --- 3. DYNAMIC SCROLL ANIMATIONS --- */
    .reveal {
        opacity: 0;
        transform: translateY(50px);
        transition: all 1s ease-out;
    }
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

    /* --- 4. UTILITY COMPONENTS --- */
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

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

    /* Dynamic Buttons */
    .btn {
        display: inline-block;
        padding: 14px 35px;
        border-radius: 50px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-size: 0.9rem;
        cursor: pointer;
        border: none;
        transition: var(--transition);
    }

    .btn-primary {
        background: var(--accent);  
        color: var(--white);
        box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    }

    .btn-primary:hover {
        background: var(--accent-hover);
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(239, 68, 68, 0.6);
    }

    .btn-outline {
        background: transparent;
        border: 2px solid var(--white);
        color: var(--white);
    }

    .btn-outline:hover {
        background: var(--white);
        color: var(--primary);
        transform: translateY(-5px);
    }

    /* --- 5. NAVIGATION --- */
    header {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000;
        transition: var(--transition);
        background: rgba(15, 23, 42, 0.9);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    nav {
        height: 90px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo { font-size: 1.8rem; font-weight: 800; color: var(--white); letter-spacing: -1px; }
    .logo span { color: var(--accent); }

    .nav-links { display: flex; gap: 40px; }
    .nav-links a { color: var(--text-main); font-weight: 500; position: relative; }
    .nav-links a::after {
        content: ''; position: absolute; width: 0; height: 2px;
        bottom: -5px; left: 0; background: var(--accent); transition: 0.3s;
    }
    .nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

    /* --- 6. HERO SECTION --- */
    .hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        background: linear-gradient(135deg, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.8) 100%), 
                    url('https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
        background-size: cover;
        background-attachment: fixed;
        padding-top: 80px;
    }

    .hero-content h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 25px; }
    .hero-content p { font-size: 1.25rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 40px; }

    /* --- 7. CARDS --- */
    .grid-3 {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 40px;
    }

    .card {
        background: var(--card-bg);
        padding: 40px;
        border-radius: 16px;
        border: 1px solid rgba(255,255,255,0.05);
        transition: var(--transition);
    }

    .card:hover {
        transform: translateY(-15px);
        border-color: var(--accent);
        box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    }

    .icon-box { 
        font-size: 2.5rem; 
        color: var(--accent); 
        margin-bottom: 25px; 
        /* Ensure icon box has space */
        display: inline-block;
    }
    .card h3 { 
        font-size: 1.5rem; 
        margin-bottom: 15px; 
        color: var(--white); 
        line-height: 1.3;
    }

    /* --- 8. ABOUT/FOUNDER --- */
    .split-layout { display: flex; align-items: center; gap: 60px; }
    .split-image img { box-shadow: -20px 20px 0 var(--accent); transition: var(--transition); }
    .split-image:hover img { transform: scale(1.02); }
    .split-text h2 { font-size: 3rem; margin-bottom: 20px; color: var(--white); }
    .split-text h4 { color: var(--accent); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; }

    /* --- CONTACT ICONS FIX --- */
    /* Target the container of the contact icon specifically */
    /* We assume the structure is <div style="display: flex..."> <div>ICON</div> <div>TEXT</div> </div> inside .split-text */
    
    .split-text > div[style*="display: flex"] > div:first-child {
        flex-shrink: 0 !important; /* Prevents shrinking */
        width: 50px !important;    /* Fixed width */
        height: 50px !important;   /* Fixed height */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255,255,255,0.08) !important;
        border-radius: 50% !important; /* Circle shape */
        font-size: 1.5rem !important;
        color: var(--accent) !important;
    }

    /* --- 9. FORM --- */
    .form-wrapper {
        background: var(--card-bg); padding: 50px;
        border-radius: 16px; border: 1px solid rgba(255,255,255,0.05);
        max-width: 700px; margin: 0 auto;
    }
    .form-group { margin-bottom: 25px; }
    .form-group label { display: block; margin-bottom: 10px; font-weight: 600; }
    .form-group input, .form-group textarea {
        width: 100%; padding: 15px; background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
        color: var(--white); font-family: inherit;
    }
    .form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,0.1); }

    /* --- 10. FOOTER --- */
    footer {
        background: #0b1120; padding: 80px 0 30px;
        border-top: 1px solid rgba(255,255,255,0.05); margin-top: auto;
    }
    .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 50px; margin-bottom: 60px; }
    .footer-col h4 { color: var(--white); margin-bottom: 25px; font-size: 1.2rem; }
    .footer-col a { color: var(--text-muted); display: block; margin-bottom: 12px; }
    .footer-col a:hover { color: var(--accent); transform: translateX(5px); display: inline-block; }

    /* --- RESPONSIVE MOBILE FIXES --- */
    .menu-toggle { display: none; color: var(--white); font-size: 1.8rem; cursor: pointer; }
    
    @media (max-width: 768px) {
        /* FIX: Reset container to prevent clipping */
        .container {
            width: 100%;
            padding-left: 20px !important;
            padding-right: 20px !important;
            margin: 0;
            max-width: 100%; /* Avoid 100vw scroll issues */
            overflow-x: visible; /* Changed from hidden to allow text rendering */
            box-sizing: border-box;
        }

        /* FIX: Ensure long text wraps nicely */
        h1, h2, h3, h4, p {
            word-wrap: break-word;
            overflow-wrap: break-word;
            hyphens: auto;
        }

        /* FIX: Ensure split-text respects padding */
        .split-text {
            width: 100%;
            padding: 0;
        }

        .hero-content h1 { 
            font-size: 2.2rem; /* Reduced font size to prevent clipping on mobile */
            line-height: 1.3; /* Increased line-height for better spacing */
            padding-bottom: 10px; /* Safety padding */
        }
        
        /* Fix nav overlap and visibility */
        .nav-links {
            display: none; position: absolute; top: 90px; left: 0; width: 100%;
            background: var(--card-bg); flex-direction: column; padding: 30px;
            text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1);
            z-index: 1001; /* Ensure on top */
        }
        .nav-links.active { display: flex; }
        .menu-toggle { display: block; }
        
        /* Stack split layouts vertically */
        .split-layout { flex-direction: column; gap: 40px; }
        .split-image img { box-shadow: none; margin-bottom: 20px; width: 100%; }
        
        /* Fix Card Text Visibility and Spacing */
        .card {
            padding: 30px 20px; /* Reduce padding to give text more room */
        }
        
        .icon-box {
            margin-bottom: 20px; /* Add space below icon */
        }
        
        .card h3 {
            font-size: 1.3rem; /* Slightly smaller title to prevent wrapping issues */
        }
        
        /* Fix Button Spacing in Hero/Sections */
        .btn {
            display: block; /* Stack buttons */
            width: 100%;    /* Full width buttons on mobile look cleaner */
            margin: 0 auto 15px auto; /* Center and add gap */
        }
        
        /* Remove margin-left for second buttons on mobile since they stack */
        .btn-outline[style*="margin-left"] {
            margin-left: 0 !important;
        }
        
        /* Center Footer Text */
        .footer-grid { text-align: center; }
        
        /* FIX: Adjust form wrapper padding for mobile to prevent clipping */
        .form-wrapper {
            padding: 30px 20px;
            width: 100%;
            box-sizing: border-box; /* Include padding in width calculation */
        }
        
        /* Fix contact icon stacking on mobile - only for contact rows, NOT value-boxes */
        .split-text > div:not(.value-box) {
            flex-wrap: nowrap; /* Keep icon next to text */
        }
        
        /* Ensure value boxes stack normally */
        .value-box {
            display: block !important; /* Force block to override flex if inherited */
            width: 100% !important;
            margin-bottom: 20px;
        }
    }