/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --bg-dark: #0a0a0c;
    --primary-orange: #f84d35;
    --primary-hover: #ff6b57;
    --text-light: #ffffff;
    --text-muted: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* =========================================
   2. TYPOGRAPHY & UTILITIES
   ========================================= */
h1, h2, h3 {
    line-height: 1.1;
    font-weight: 700;
}

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

/* =========================================
   3. NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 12, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

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

/* =========================================
   4. BUTTONS
   ========================================= */
.btn-primary, .btn-outline {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-orange);
    color: #fff;
    border: 1px solid var(--primary-orange);
    cursor: pointer;
}

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

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background-color: var(--glass-bg);
    border-color: var(--text-light);
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, var(--bg-dark));
}

.hero-content {
    max-width: 800px;
    margin-top: 5rem;
}

.hero-title {
    font-size: clamp(4rem, 8vw, 7rem);
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
}

/* =========================================
   6. GLASSMORPHISM CARDS & FEATURES
   ========================================= */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.features {
    padding: 8rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

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

.feature-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-top: 2rem;
}

.feature-grid h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

/* =========================================
   7. WORK / PORTFOLIO SECTION
   ========================================= */
.work-section {
    padding: 8rem 5%;
}

.text-muted {
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-size: 1.2rem;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    display: block;
    aspect-ratio: 4/3;
    text-decoration: none;
    color: var(--text-light);
    border: 1px solid var(--glass-border);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,12,0.9) 0%, rgba(10,10,12,0) 60%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.project-info p {
    color: var(--primary-orange);
    font-size: 0.9rem;
    font-weight: 500;
}

.project-arrow {
    font-size: 2rem;
    font-weight: 300;
    transform: translate(-10px, 10px);
    transition: transform 0.4s ease;
}

.project-card:hover .project-arrow {
    transform: translate(0, 0);
}

/* =========================================
   8. GLOBAL REACH (PHYSICS SECTION)
   ========================================= */
.global-reach {
    position: relative;
    height: 100vh; /* Fallback */
    height: 100dvh; /* CRITICAL FIX: True mobile screen height */
    width: 100%;
    overflow: hidden;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.physics-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* CRITICAL FIX: Prevents scroll trapping on mobile */
}

.global-content {
    position: relative;
    z-index: 2;
    text-align: center;
    pointer-events: none; 
}

.title-massive {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 700;
    color: var(--text-light);
    line-height: 1;
    letter-spacing: -2px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
    margin-bottom: 1rem;
}

.subtitle-massive {
    font-size: clamp(1rem, 2vw, 2rem);
    font-weight: 500;
    letter-spacing: 4px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* =========================================
   9. CONTACT & BOOKING FORM
   ========================================= */
.contact {
    padding: 5rem 5% 8rem;
    display: flex;
    justify-content: center;
}

.contact-container {
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.contact-container h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 2rem;
    text-align: left;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.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-orange);
    background: rgba(255, 255, 255, 0.08);
}

.form-submit {
    width: 100%;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 1rem;
    margin-top: 0.5rem;
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
}

/* =========================================
   10. MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
    /* Navbar fixes */
    .navbar {
        flex-direction: column;
        padding: 1rem 5%;
        gap: 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .btn-primary {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }

    /* Hero fixes */
    .hero-ctas {
        flex-direction: column;
    }

    /* Global Reach text scaling */
    .title-massive {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }
    
    .subtitle-massive {
        font-size: clamp(0.8rem, 3vw, 1.2rem);
        letter-spacing: 2px;
    }

    .contact-container h2 {
        font-size: 2rem;
    }
}