/* =========================================
   1. CSS VARIABLES, FONTS & RESET
   ========================================= */

/* IMPORT GOOGLE FONTS (Inter & Montserrat) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Montserrat:wght@700;800;900&display=swap');

:root {
    /* Color Palette */
    --primary-yellow: #FFD100;
    --primary-hover: #e6bc00;
    --dark-slate: #1a1a1a;
    --medium-slate: #2d2d2d;
    --light-grey: #f4f4f4;
    --text-body: #4a4a4a;
    --text-white: #ffffff;
    
    /* Utilities */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #fff;
}

body.no-scroll {
    overflow: hidden; /* Prevents scrolling when mobile menu is open */
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: var(--transition); 
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

/* =========================================
   2. GLOBAL COMPONENTS
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-yellow);
    color: var(--dark-slate);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 209, 0, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--dark-slate);
    color: var(--dark-slate);
}

.btn-secondary:hover {
    background-color: var(--dark-slate);
    color: var(--text-white);
}

/* =========================================
   3. HEADER & NAVIGATION (UPDATED)
   ========================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
    background-color: transparent; 
}

.header-container {
    padding: 0 50px;
    display: flex;
    /* Pushes content to the right so absolute logo can sit on left */
    justify-content: flex-end; 
    align-items: center;
    /* Acts as the anchor for the absolute logo */
    position: relative; 
}

/* Scrolled State */
header.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* UPDATED LOGO STYLE - "BREAKOUT" EFFECT */
.logo {
    background-color: var(--primary-yellow);
    color: var(--dark-slate);
    
    /* Increased size/padding */
    padding: 2px 2px; 
    
    /* Typography */
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    
    /* Layout for Image + Text */
    display: flex;
    align-items: center;
    gap: 15px;

    /* ABSOLUTE POSITIONING */
    position: absolute;
    top: 0;         /* Stick to top of screen/header */
    left: 50px;     /* Align with container padding */
    z-index: 1100;  /* Sit on top of header */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); /* Slight shadow for depth */
}

/* The Logo Image inside Nav */
.nav-logo-icon {
    height: 50px; /* Increased Size */
    width: auto;
    display: block;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-select {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.lang-select option { color: #333; }

/* Mobile Menu Trigger */
.mobile-toggle {
    display: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--dark-slate);
    z-index: 2000;
    transition: right 0.4s ease-in-out;
    padding: 30px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.mobile-nav-overlay.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

.close-btn {
    cursor: pointer;
    font-size: 2rem;
    color: var(--primary-yellow);
}

.mobile-nav-links li {
    margin-bottom: 20px;
}

.mobile-nav-links a {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
}

.mobile-nav-links a:hover {
    color: var(--primary-yellow);
    padding-left: 10px;
}

/* =========================================
   4. HOME HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.7)), 
                url('/img/IMG_2708.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    padding: 0 20px;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero h1 span {
    color: var(--primary-yellow);
    position: relative;
    display: inline-block;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(255, 209, 0, 0.3);
    z-index: -1;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
}

/* Bottom Nav (Desktop Only) */
.hero-bottom-nav {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    overflow-x: auto;
}

.hero-bottom-nav ul {
    display: flex;
    justify-content: center;
    gap: 60px;
    min-width: max-content;
    padding: 0 20px;
}

.hero-bottom-nav a {
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
}

.hero-bottom-nav a:hover {
    color: var(--primary-yellow);
}

.hero-bottom-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-yellow);
    transition: var(--transition);
}

.hero-bottom-nav a:hover::after { width: 100%; }

/* =========================================
   5. PAGE HERO (For Projects.html)
   ========================================= */
.page-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?q=80&w=2089&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    /* Offset fixed header */
    margin-top: 70px; 
}

.page-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
}

.page-hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   6. INTRO & STATS SECTION (UPDATED COLOR)
   ========================================= */
.intro {
    background-color: var(--light-grey);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.intro-text {
    padding: 100px 80px;
    /* Match the Story/Legacy Section Color */
    background: var(--medium-slate); 
    color: white;
}

.intro-text h2 {
    font-size: 1.8rem;
    color: white; 
    margin-bottom: 30px;
    line-height: 1.4;
}

/* Force paragraph to be white */
.intro-text p {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Update Button to be White Outline */
.intro-text .btn-secondary {
    border-color: white;
    color: white;
}

.intro-text .btn-secondary:hover {
    background-color: white;
    color: var(--dark-slate);
}

.button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.intro-stats {
    background-color: var(--dark-slate);
    color: white;
    padding: 100px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.intro-stats::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border: 20px solid rgba(255,255,255,0.05);
    border-radius: 50%;
}

.stat-item {
    margin-bottom: 40px;
    border-left: 4px solid var(--primary-yellow);
    padding-left: 30px;
}

.stat-value {
    font-size: 3.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    color: var(--primary-yellow);
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
    opacity: 0.7;
}

/* =========================================
   7. SERVICES SECTION
   ========================================= */
.services-section {
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--light-grey);
    padding: 30px;
    border-radius: 4px;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    background-color: white;
    box-shadow: var(--shadow);
    border-bottom: 3px solid var(--primary-yellow);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-yellow);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.2rem;
    color: var(--dark-slate);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* =========================================
   8. PROJECTS SECTION
   ========================================= */
.projects-header {
    text-align: center;
    margin-bottom: 60px;
}

.projects-header h2 {
    font-size: 2.5rem;
    color: var(--dark-slate);
}

.projects-header .line {
    width: 60px;
    height: 4px;
    background-color: var(--primary-yellow);
    margin: 20px auto 0;
}

/* STANDARD GRID (Used on Projects Page) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* FULL-WIDTH GRID (Used on Home Page) */
.projects-grid-full {
    display: grid;
    grid-template-columns: 50% 50%;
    width: 100%;
    margin-top: 50px;
    gap: 0; /* Seamless connection */
}

/* STANDARD CARD STYLE */
.project-card {
    height: 550px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: var(--shadow);
}

/* FULL SPAN CARD VARIATION (No radius) */
.full-span-card {
    border-radius: 0 !important;
    height: 600px; /* Slightly taller for cinematic look */
}

.project-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.project-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0));
    opacity: 0.8;
    transition: var(--transition);
}

.project-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    z-index: 10;
}

.project-cat {
    color: var(--primary-yellow);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.project-title {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
}

/* Project Description (Hidden by default, shown on hover/mobile) */
.project-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-top: 10px;
    max-width: 90%;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

/* Hover Effects */
.project-card:hover .project-bg { transform: scale(1.1); }
.project-card:hover .project-overlay { opacity: 0.6; }
.project-card:hover .project-cat { opacity: 1; transform: translateY(0); }
.project-card:hover .project-desc { opacity: 1; transform: translateY(0); }

/* =========================================
   9. CONTACT SECTION & FORM
   ========================================= */
.contact-section {
    background-color: var(--dark-slate);
    color: white;
    padding: 100px 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.contact-info p {
    margin-bottom: 40px;
    opacity: 0.8;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    color: var(--primary-yellow);
    font-size: 24px;
    margin-top: 5px;
}

.info-item strong {
    display: block;
    margin-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
    color: white;
}

.contact-form-wrapper {
    background-color: white;
    padding: 40px;
    border-radius: 4px;
    color: var(--dark-slate);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    background-color: var(--light-grey);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-yellow);
    background-color: white;
}

/* =========================================
   10. STORY / LEGACY SECTION
   ========================================= */
.story-section {
    background-color: var(--medium-slate);
    color: white;
    text-align: center;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.story-card {
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: 8px;
    text-align: left;
    border-top: 3px solid transparent;
    transition: var(--transition);
}

.story-card:hover {
    background: rgba(255,255,255,0.1);
    border-top: 3px solid var(--primary-yellow);
    transform: translateY(-10px);
}

.story-year {
    font-size: 3rem;
    font-weight: 900;
    color: rgb(255, 255, 255);
    line-height: 1;
    margin-bottom: 10px;
}

.story-card:hover .story-year { color: var(--primary-yellow); }

.story-card h3 { font-size: 1.2rem; margin-bottom: 15px; }
.story-card p { font-size: 0.95rem; opacity: 0.7; }

/* =========================================
   11. FOOTER (WHITE BG, BLACK TEXT)
   ========================================= */
.simple-footer {
    background-color: #ffffff;
    color: #000000;
    padding: 60px 0 30px;
    border-top: 4px solid var(--primary-yellow);
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

/* Brand & Contact Area */
.footer-contact-details p {
    color: #000000;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact-details i {
    color: var(--primary-yellow);
    width: 20px;
    text-align: center;
}

/* LOGO Center Style (Footer) */
.footer-logo-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo-center img {
    max-width: 150px;
    height: auto;
    display: block;
}

/* Simple Navigation Links */
.footer-nav-simple {
    display: flex;
    gap: 30px;
}

.footer-nav-simple a {
    color: #000000;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
}

.footer-nav-simple a:hover {
    color: var(--primary-yellow);
}

.footer-nav-simple a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-yellow);
    transition: var(--transition);
}

.footer-nav-simple a:hover::after { width: 100%; }

/* Copyright Bar */
.footer-copyright {
    border-top: 1px solid #e5e5e5;
    padding-top: 30px;
    text-align: center;
    font-size: 0.8rem;
    color: #333333;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   12. RESPONSIVE MEDIA QUERIES (UPDATED)
   ========================================= */

/* Tablet & Smaller Laptops (Max Width 992px) */
@media (max-width: 992px) {
    .intro {
        grid-template-columns: 1fr;
    }
    .intro-text, .intro-stats {
        padding: 60px 40px;
    }
    .story-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 3rem;
    }
    .project-card, .full-span-card {
        height: 400px;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    /* Reveal Project Text on Tablets/Mobile without hover */
    .project-desc { 
        opacity: 1; 
        transform: translateY(0); 
        display: block; 
    }
    .project-info {
        background: linear-gradient(transparent, rgba(0,0,0,0.8));
        padding: 20px;
        width: 100%;
        bottom: 0;
        left: 0;
    }
    .project-cat {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Footer responsiveness */
    .footer-flex {
        justify-content: center;
        text-align: center;
    }
    .footer-identity, .footer-nav-simple {
         align-items: center;
    }
    .footer-contact-details p {
        justify-content: center;
    }
}

/* Mobile Phones (Max Width 768px) */
@media (max-width: 768px) {
    
    /* ADDED: FIXED MOBILE BACKGROUND */
    .hero {
        background-attachment: scroll; /* Disables parallax to fix jitter */
        background-position: center center;
        height: 100vh;
    }
    
    /* --- RESET BREAKOUT LOGO FOR MOBILE --- */
    /* Return to standard spacing */
    .header-container {
        justify-content: space-between; 
    }

    /* Reset logo to normal block flow */
    .logo {
        position: relative; /* Puts it back in the flow */
        top: auto;
        left: auto;
        padding: 10px 15px; /* Smaller padding */
        font-size: 18px;    /* Smaller font */
        box-shadow: none;   /* Remove shadow */
    }
    
    .nav-logo-icon {
        height: 22px; /* Smaller icon */
    }
    /* -------------------------------------- */

    .section-padding {
        padding: 60px 0;
    }
    .header-container {
        padding: 0 20px;
    }
    .mobile-toggle {
        display: block;
    }
    .lang-select {
        display: block; 
        padding: 5px 10px;
        font-size: 12px;
    }
    .hero-bottom-nav {
        display: none;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .projects-grid, .projects-grid-full {
        /* Stack projects on mobile */
        grid-template-columns: 1fr;
    }
    .services-grid {
        /* Stack services on mobile */
        grid-template-columns: 1fr;
    }
    .service-card {
        text-align: center;
    }
    /* Footer Responsive Styles */
    .simple-footer {
        padding: 50px 0 20px;
    }
    .footer-flex {
        flex-direction: column;
        align-items: center; 
        gap: 30px;
        text-align: center;
    }
    /* Order change: Logo first on mobile */
    .footer-logo-center {
        order: -1;
        margin-bottom: 20px;
    }
    .footer-contact-details p {
         justify-content: center;
    }
    .footer-nav-simple {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        border-top: 1px solid #e5e5e5; /* Light gray border */
        padding-top: 20px;
        align-items: center;
    }
    .footer-nav-simple a {
        display: block;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .page-hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Small Phones (Max Width 480px) */
@media (max-width: 480px) {
    .logo {
        font-size: 16px;
        padding: 8px 12px;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .btn {
        width: 100%;
    }
    .intro-text, .intro-stats {
        padding: 50px 20px;
    }
    .stat-value {
        font-size: 2.8rem;
    }
}