:root {
    --primary: #0f172a;
    --accent: #38bdf8;
    --text-slate: #94a3b8;
    --glass: rgba(255, 255, 255, 0.03);
}

* { box-sizing: border-box; }

html, body {
    overflow-x: hidden; /* Prevents side-scroll on mobile */
    width: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    background-color: #020617;
    color: #f8fafc;
    line-height: 1.6;
}

header {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    padding: 1.2rem 8%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1200px; 
    margin: auto; 
}

/* Updated logo styles to handle text and icon correctly */
.logo { 
    font-size: 1.4rem; 
    font-weight: 800; 
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo span { color: var(--accent); }

nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
nav ul li a { color: #fff; text-decoration: none; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
nav ul li a:hover { color: var(--accent); }

.hero {
    height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(to bottom, rgba(2,6,23,0.5), #020617),
                url('https://images.unsplash.com/photo-1581094288338-2314dddb7bc3?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    padding: 0 10%;
    margin-top: 0; /* Ensure no white gap at top */
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1rem; line-height: 1.1; font-weight: 800; }
.hero p { font-size: 1.2rem; color: var(--text-slate); max-width: 700px; }

.section { padding: 100px 10%; max-width: 1400px; margin: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }

.card {
    background: var(--glass);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 20px;
    transition: 0.4s;
}
.card:hover { background: rgba(255,255,255,0.08); border-color: var(--accent); transform: translateY(-5px); }

.img-container {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}
.img-container img { width: 100%; height: 100%; object-fit: cover; }

.btn {
    background: var(--accent);
    color: #020617;
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    transition: 0.3s;
    border: none;
}
.btn:hover { box-shadow: 0 0 20px rgba(56, 189, 248, 0.4); }

footer { padding: 40px; text-align: center; border-top: 1px solid rgba(255,255,255,0.1); color: var(--text-slate); font-size: 0.9rem; }

input, textarea {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 15px;
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
    font-family: inherit;
}



/* --- MOBILE RESPONSIVENESS FIXES (Revised) --- */
@media (max-width: 768px) {
    
    /* 1. Make the header "solid" so it pushes content down instead of floating over it */
    header {
        position: relative; 
        height: auto;
    }

    /* 2. Remove the desktop padding offset */
    body {
        padding-top: 0 !important;
    }

    /* 3. Stack the logo and menu */
    header nav {
        flex-direction: column;
        gap: 20px;
        padding: 10px 0;
    }

    header nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        width: 100%;
    }

    .logo {
        justify-content: center;
        width: 100%;
    }

    /* 4. Adjust Hero section to fit nicely below the new relative header */
    .hero {
        height: auto;       /* Let it grow with content */
        min-height: 60vh;   /* Ensure it's still tall enough */
        padding: 60px 5%;
        margin-top: 0;
    }

    /* 5. General padding fixes */
    .section {
        padding: 60px 5%;
    }

    h1 {
        font-size: 2.2rem;
    }
}