/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary-color: #000000;      /* Black */
    --secondary-color: #ffffff;    /* White */
    --accent-color: #FFD700;       /* Gold/Yellow */
    --accent-yellow: #FFD700;      /* Explicit yellow for boxes */
    --primary-black: #000000;
    --gray-dark: #1a1a1a;          /* Dark Gray */
    --gray-light: #eeeeee;         /* Light Gray */
    
    --font-primary: 'Montserrat', sans-serif; 
    --font-secondary: 'Playfair Display', serif; 
    
    --max-width: 1100px;
    --section-padding: 45px 0; /* Decreased vertical padding */
   
   /*padding: top, right, bottom, left*/
}

* {
    box-sizing: border-box; /* Crucial for layout stability */
}

body {
    font-family: var(--font-primary);
    background-color: var(--primary-color);
    color: var(--secondary-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* Consolidated here */
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* =========================================
   2. TYPOGRAPHY
   ========================================= */
h1, h2, h3 {
    font-family: var(--font-secondary);
    font-weight: 700;
    margin-top: 0;
}

h1 { font-size: 3.5em; letter-spacing: 2px; text-transform: uppercase; }
h2 { font-size: 2.5em; }
h3 { color: var(--accent-color); font-size: 1.5rem; margin-bottom: 15px; }
p { margin-bottom: 20px; font-size: 1.1em; color: var(--gray-light); }
a { text-decoration: none; color: inherit; transition: 0.3s; }

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

.text-center { text-align: center; }
.black-bg { background-color: var(--primary-color); }
.section-padding { padding: var(--section-padding); }

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 15px 30px;
    font-weight: 700;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--accent-color);
    cursor: pointer;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.margin-top-large { margin-top: 80px; }

/* =========================================
   4. SECTION HEADERS (Animated Yellow Bar, no number)
   ========================================= */
.section-header {
    position: relative;
    margin: 60px 0 40px;
    overflow: hidden; /* hide bar while it grows */
}

/* yellow bar – animated from left to right */
.section-header::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: var(--accent-yellow); /* rgba(255, 215, 0, 0.5);*/
    z-index: 0;

    transform-origin: left center;
    transform: scaleX(0);              /* start invisible */
    transition: transform 3.0s ease;   /* animation duration */
}

/* title text: static, always visible */
.section-header h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 10px 0 10px 20px;
    color: var(--primary-black);
    font-family: var(--font-secondary); /* Using Playfair Display */
    font-weight: 700; /* Bold */
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* when section enters view, only the bar animates */
.section-header.in-view::before {
    transform: scaleX(1);
}

/* =========================================
   5. HEADER & NAV
   ========================================= */
header {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 5px 0;              /* slightly tighter bar */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
    padding-left: 50px;   /* NEW: align logo with hero background start */
}

nav {
    display: flex;
    justify-content: flex-start;  /* Ensures content aligns to the left */
    align-items: center;          /* Centers logo + links vertically */
    max-width: none;              /* Allows nav to span full width if needed */
    margin: 0;
    padding: 0 20px 0 10px;       /* top right bottom left padding for nav content */
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 90px;                 /* slightly larger logo */
    width: auto;
    display: block;
}

/* Re-introducing nav-links and nav-links li for precise spacing and hover effects */
.nav-links {
    list-style: none; /* Removes bullet points */
    display: flex;    /* Arranges list items horizontally */
    margin: 0;        /* Removes default margin */
    padding: 0;       /* Removes default padding */
    margin-left: 40px; /* This sets the initial gap after the logo image */
}
.nav-links li {
    margin-left: 30px; /* This creates the gap between each navigation link */
}
.nav-links a {
    color: var(--secondary-color);
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.3s ease; /* Smooth animation for color and size */
    display: inline-block; /* Crucial for transform: scale to work correctly */
    transform-origin: center; /* Scales from the left, keeping links aligned */
}
.nav-links a:hover {
    color: var(--accent-color); /* Changes text color to yellow on hover */
    transform: scale(1.1); /* Enlarges the text by 10% on hover */
}

/* =========================================
   6. HERO SECTION
   ========================================= */
.full-screen-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px; /* Adjust if your fixed header height changes */
    overflow: hidden; /* Ensures any subtle animations or shadows don't cause scrollbars */
}

.hero-background {
    position: absolute;
    top: 20px; /* Slightly reduce top/bottom offset for more background visibility */
    bottom: 20px;
    left: 50px;
    right: 50px;
    background-size: cover;
    background-position: center;
    opacity: 0.4; /* Slightly darker background for better text contrast */
    z-index: 0;
    border-radius: 15px; /* Larger border radius for a softer, more modern look */
    
    /* Dark gradient overlay for more depth and text contrast */
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/hero-building.png');
    /* Fallback if image missing */
    background-color: #222; 
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    /* Initial state for fade-in animation */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 1s ease-out forwards;
    animation-delay: 0.5s; /* Delay for content to appear after background loads */
}

/* Keyframe animation for content */
@keyframes fadeInSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 4.5em; /* Made H1 larger for more impact */
    letter-spacing: 3px; /* Slightly more letter spacing */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* Text shadow for depth */
    margin-bottom: 20px; /* Some space below H1 */
}

.hero-subtitle {
    font-size: 1.4rem; /* Made subtitle larger */
    letter-spacing: 5px; /* More letter spacing for emphasis */
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 50px; /* More space below subtitle */
    font-weight: 600; /* Made subtitle a bit bolder */
}

.cta-button {
    /* Existing CTA styles are good, but you might want to add a subtle hover */
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: scale(1.05); /* Subtle grow effect on hover */
    box-shadow: 0 0 15px var(--accent-color); /* Glow effect on hover */
}

/* =========================================
   7. ABOUT SECTION 
   ========================================= */

.about-content {
    display: flex;
    flex-direction: row; /* MODIFIED: Text left, Image column right */
    flex-wrap: wrap;
    align-items: stretch; /* Image column and text block stretch to match taller content */
    gap: 5px 40px; /* 5px vertical space between rows, 40px horizontal space between columns */
    justify-content: flex-start;
}

/* Container for images (this will be the flex item that sits right of text) */
.about-image-column {
    display: flex; /* Makes this a flex container itself */
    flex-direction: column; /* Stacks its children (images) vertically */
    flex: 0 0 350px; /* This column will have a fixed width for the images */
    max-width: 50%; /* Ensures it doesn't get too wide on large screens */
    gap: 20px; /* Space between the two images stacked vertically */
}

/* General styling for all images within the column */
.about-image {
    width: 100%; /* Image fills the width of its parent column */
    height: 100%; /* Image fills the height of its allocated flex space */
    object-fit: cover; /* Ensures the image covers the area, cropping if aspect ratio doesn't match */
    box-shadow: 15px 15px 0px rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    transition: transform 0.3s ease; /* ADDED: Smooth transition for hover effect */
    position: relative; /* ADDED: To ensure z-index works if needed */
    z-index: 1; /* ADDED: To bring image forward on hover */
}

/* Hover effect for all images */
.about-image:hover {
    transform: scale(1.05); /* ADDED: Enlarges the image by 5% on hover */
    z-index: 2; /* ADDED: Brings the hovered image slightly above others */
}

/* Specific sizing for the two images to make one larger than the other */
.about-image.main-image {
    flex: 2; /* The first image takes 2 parts of the available vertical space */
}

.about-image.secondary-image {
    flex: 1; /* The second image takes 1 part of the available vertical space (making it smaller) */
}


.about-text {
    flex: 1; /* Takes up remaining space on the left */
    min-width: 300px;
}

.about-text p {
    font-size: 1.2em; /* Adjusted font size */
    margin-bottom: 20px;
}

/* This rule ensures the first paragraph starts at the very top */
.about-text p:first-child {
    margin-top: 0; /* Removes the top margin from the very first paragraph */
}

/* Keeping the citation style for <p1> underneath everything */
.about-content p1 {
    display: block;
    width: 100%; /* Forces it to a new line */
    flex-basis: 100%;
    margin-top: 20px;
    
    /* Citation Styling */
    font-family: 'PT Serif', serif; /* Corrected syntax for PT Serif */
    font-weight: 400;   
    font-size: 1.5em;
    color: var(--gray-light); /* Light grey color */
    border-left: 6px solid var(--accent-color);
    padding-left: 15px;
}

/* =========================================
   8. INNOVATION SECTION 
   ========================================= */
.innovation-intro-text {
    max-width: 800px;
    margin: 0 auto 40px auto; /* Centers the intro text and adds bottom margin */
    text-align: center; /* Centers the text within its max-width */
}

.innovation-intro-text p {
    font-size: 1.15em; /* Slightly larger text for the intro */
}

/* Ensure the "We offer" H3 is centered above the grid */
#innovation h3 {
    text-align: center;
    margin-bottom: 30px; /* Space between H3 and the grid */
    font-size: 2em; /* Make "We offer" more prominent */
    color: var(--secondary-color); /* Make it white */
}


.innovation-grid { /* This is the container for your service items */
    display: grid;
    /* Creates a responsive 3-column grid. Items will shrink down to 280px minimum before wrapping */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px; /* Space between the grid items (cards) */
}

.innovation-item { /* Each individual service card */
    background: var(--gray-dark); /* Dark grey background for the card */
    padding: 30px;
    border: 1px solid #333; /* Subtle border */
    border-radius: 5px; /* Slightly rounded corners */
    text-align: center; /* Centers icon, title, and text within the card */
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effects */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Subtle initial shadow */
}

.innovation-item:hover {
    transform: translateY(-8px); /* Card lifts up on hover */
    border-color: var(--accent-color); /* Border highlights yellow on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); /* Shadow becomes more pronounced */
}

.innovation-icon {
    width: 60px; /* Size of the icon */
    height: 60px;
    margin: 0 auto 20px auto; /* Centers the icon and adds space below it */
    filter: brightness(0) invert(1) grayscale(1); /* Optional: If icons are black, this makes them white */
    /* If your icons are already white/light, you can remove the filter line */
}

.innovation-item h4 {
    font-family: var(--font-secondary); /* Use Playfair Display for the title */
    font-size: 1.6rem; /* Size of the item title */
    color: var(--secondary-color); /* White color for the title */
    margin-top: 0; /* Remove default top margin */
    margin-bottom: 10px; /* Space between title and description */
}

.innovation-item p {
    font-size: 1em; /* Slightly smaller for the description text */
    color: var(--gray-light); /* Light grey for descriptions */
    margin-bottom: 0; /* Remove default bottom margin */
}

/* =========================================
   9. TECHNICAL & DESIGN GRIDS
   ========================================= */
.specs-grid, .design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.spec-item, .design-item {
    background: #111;
    padding: 30px;
    border: 1px solid #333;
    transition: transform 0.3s;
}

.spec-item:hover, .design-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.spec-icon, .design-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

.spec-image-container, .design-image-container {
    margin-top: 15px;
    height: 200px;
    overflow: hidden;
}

.spec-detail-image, .design-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(50%);
    transition: 0.3s;
}

.spec-item:hover .spec-detail-image, 
.design-item:hover .design-detail-image {
    filter: grayscale(0%);
}

/* =========================================
   10. CROSS SECTION (Full Width Image)
   ========================================= */
.full-width-image-section {
    width: 100%;
    background-color: #050505;
    padding: 40px 0;
}

.cross-section-image-wrap {
    text-align: center;
}

.full-width-image {
    width: 100%;
    max-height: 600px; /* Prevents it from being too tall on huge screens */
    object-fit: contain;
}

.image-caption {
    font-style: italic;
    opacity: 0.7;
    margin-top: 10px;
}

/* =========================================
   11. ASSETS SECTION
   ========================================= */
.assets-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px; /* Adds space between the bullet and the text */
    font-size: 1.1rem;
    margin-bottom: 20px; /* Explicit margin between list items */
}

.assets-list p { /* Ensures paragraphs inside list items don't have excessive margin */
    margin-bottom: 0;
}

.assets-list .list-bullet {
    flex-shrink: 0; /* Prevents the bullet from shrinking */
    line-height: 1; /* Ensures consistent vertical alignment */
}

/* =========================================
   12. CONTACT SECTION
   ========================================= */
.contact-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}
.contact-background { background-color: #111; }

.contact-content {
    position: relative;
    z-index: 2;
    padding: 60px 20px;
    max-width: 600px; /* Narrower for better reading form */
    margin: 0 auto;
}

.contact-details p { margin-bottom: 10px; }
.contact-link { color: var(--accent-color); border-bottom: 1px solid var(--accent-color); }
.contact-person { font-size: 1.2rem; margin-top: 15px; color: #fff; }

.contact-form {
    background: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border: 1px solid #333;
    margin-top: 40px;
    text-align: left;
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; color: #aaa; font-size: 0.9em; }

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: #222;
    border: 1px solid #444;
    color: #fff;
    font-family: var(--font-primary);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-submit-button { width: 100%; margin-top: 10px; }
.form-note { font-size: 0.8em; text-align: center; margin-top: 15px; opacity: 0.5; }

/* =========================================
   13. FOOTER
   ========================================= */
footer {
    background-color: #000;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #222;
}

/* =========================================
   14. RESPONSIVE DESIGN (Mobile)
   ========================================= */
@media (max-width: 900px) { /* Consolidated media query */
    /* Navigation */
    .nav-links { display: none; }
    
    /* About Section */
    .about-content {
        flex-direction: column; /* On mobile, stack normally (text then image column) */
        text-align: left; /* Aligned left on mobile */
    }
    .about-image-column {
        flex: auto; /* Allow column to size naturally on mobile */
        max-width: 90%; /* Limit its width */
        margin: 30px auto 20px auto; /* Center it and add margins */
        gap: 15px; /* Adjust gap between images on mobile */
    }
    .about-image-column .about-image {
        flex: none; /* No longer force proportional height on mobile */
        height: auto; /* Let images scale naturally (proportional to their intrinsic ratio) */
        width: 100%; /* Fill the column width */
    }
    .about-content p1 {
        text-align: left; /* Align citation text left on mobile */
    }
    /* Section Headers */
    .section-header h2 {
        font-size: 1.4em;
        padding: 15px 20px;
        width: 100%;
        text-align: center;
    }
    
    /* Typography */
    h1 { font-size: 2.5em; }
    
    /* Grids */
    .specs-grid, .design-grid { grid-template-columns: 1fr; }
}
