/* CSS Variables for easy color/font management */
:root {
    --color-primary: #1a1a1a; /* Dark background/text */
    --color-secondary: #f0f0f0; /* Light background */
    --color-accent: #008080; /* Teal accent */
    --color-text-light: #ffffff;
    --color-text-dark: #333333;
    --color-shadow: rgba(0, 0, 0, 0.1);

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;

    --max-width: 1200px;
    --padding-section: 80px 20px;
}

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-secondary);
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
p { margin-bottom: 1rem; }

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease, border-color 0.3s ease;
}

a:hover {
    color: #006666; /* Darker teal on hover */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
    color: var(--color-primary);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

/* Header & Navigation */
.main-header {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--color-shadow);
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.main-header.scrolled {
    background-color: rgba(26, 26, 26, 0.95); /* Slightly transparent when scrolled */
    padding: 0.7rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--color-text-light);
    letter-spacing: 0.05em;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--color-text-light);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* HERO SECTION: GRID OVERLAY */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px; /* Offset for fixed header */
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.4); /* Darken background image */
}

.hero-content-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 0.8fr; /* Asymmetrical grid */
    gap: 40px;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    color: var(--color-text-light);
}

.hero-text {
    background-color: rgba(26, 26, 26, 0.7); /* Semi-transparent dark overlay */
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px var(--color-shadow);
}

.hero-text h1 {
    font-size: 4rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.hero-image-overlay {
    /* This div is part of the asymmetrical grid, styled to create a visual presence */
    min-height: 300px; /* Ensure it takes up space */
    background: linear-gradient(to bottom right, rgba(0, 128, 128, 0.4), rgba(0, 128, 128, 0.1));
    border-radius: 8px;
    box-shadow: 0 10px 30px var(--color-shadow);
    align-self: flex-start; /* Example of asymmetrical positioning */
    margin-top: 50px; /* Example of asymmetrical positioning */
}

/* SERVICES SECTION: FEATURE HIGHLIGHTS */
.offerings-section {
    padding: var(--padding-section);
    max-width: var(--max-width);
    margin: 0 auto;
}

.feature-block-container {
    display: grid;
    gap: 60px;
}

.feature-block {
    display: flex;
    align-items: center;
    gap: 40px;
    background-color: var(--color-text-light);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px var(--color-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-block.left-aligned .feature-image {
    order: 1;
}

.feature-block.left-aligned .feature-content {
    order: 2;
}

.feature-block.right-aligned .feature-image {
    order: 2;
}

.feature-block.right-aligned .feature-content {
    order: 1;
}

.feature-image {
    flex: 1;
    min-width: 300px; /* Ensure image has some base width */
}

.feature-image img {
    border-radius: 6px;
    filter: brightness(0.95);
    transition: filter 0.3s ease;
}

.feature-block:hover .feature-image img {
    filter: brightness(1);
}

.feature-content {
    flex: 1.5; /* Content takes more space */
}

.feature-content h3 {
    color: var(--color-accent);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.feature-content p {
    font-size: 1.1rem;
    color: var(--color-text-dark);
}

/* PORTFOLIO/GALLERY: MASONRY GRID */
.gallery-section {
    padding: var(--padding-section);
    max-width: var(--max-width);
    margin: 0 auto;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 3 cards per row on wider screens, responsive */
    grid-gap: 20px;
    grid-auto-rows: minmax(auto, auto); /* Allow varying row heights */
}

.masonry-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px var(--color-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masonry-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.masonry-item:hover img {
    transform: scale(1.03);
}

/* CONTACT SECTION: MAP INTEGRATION (Informational) */
.experience-section {
    padding: var(--padding-section);
    max-width: var(--max-width);
    margin: 0 auto;
}

.map-container {
    position: relative;
    height: 500px; /* Fixed height for the map section */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--color-shadow);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.8) brightness(0.4); /* Map-like style */
}

.contact-info-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(26, 26, 26, 0.85); /* Dark semi-transparent overlay */
    color: var(--color-text-light);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.contact-info-overlay h3 {
    color: var(--color-accent);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-info-overlay p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.info-item {
    margin-bottom: 0.8rem;
}

/* Footer */
.main-footer {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    text-align: center;
    padding: 2.5rem 20px;
    font-size: 0.9rem;
    margin-top: 60px;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }

    .navbar {
        flex-direction: column;
        text-align: center;
    }
    .nav-links {
        margin-top: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }
    .nav-links li {
        margin: 0 15px 10px;
    }
    .logo {
        margin-bottom: 10px;
    }

    .hero-content-grid {
        grid-template-columns: 1fr; /* Stack on smaller screens */
        text-align: center;
        padding: 0 40px;
    }
    .hero-text {
        padding: 30px;
    }
    .hero-image-overlay {
        display: none; /* Hide for simplicity on mobile as it's an empty div */
    }
    .hero-text h1 {
        font-size: 3rem;
    }

    .feature-block {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    /* Reset order for stacking in alternating layouts on mobile */
    .feature-block.right-aligned .feature-image {
        order: 1;
    }
    .feature-block.right-aligned .feature-content {
        order: 2;
    }
    .feature-image {
        min-width: unset; /* Remove min-width for mobile */
        width: 100%;
        margin-bottom: 20px;
    }

    .masonry-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adjust min card width */
    }

    .map-container {
        height: 400px;
    }
    .contact-info-overlay {
        padding: 30px;
        width: 85%;
    }
    .contact-info-overlay h3 {
        font-size: 2rem;
    }
    .contact-info-overlay p {
        font-size: 1rem;
    }

    --padding-section: 60px 15px;
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }

    .nav-links li {
        margin: 0 10px 8px;
    }
    .nav-links a {
        font-size: 0.9rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
    .hero-text p {
        font-size: 1rem;
    }

    .feature-block {
        padding: 25px;
    }
    .feature-content h3 {
        font-size: 1.8rem;
    }
    .feature-content p {
        font-size: 1rem;
    }

    .masonry-grid {
        grid-template-columns: 1fr; /* 1 card per row on small mobile */
        grid-auto-rows: auto; /* Revert for stacking */
    }

    .map-container {
        height: 350px;
    }
    .contact-info-overlay {
        padding: 25px;
    }
    .contact-info-overlay h3 {
        font-size: 1.8rem;
    }
    .contact-info-overlay p {
        font-size: 0.95rem;
    }

    --padding-section: 40px 10px;
}

/* Visible state helpers */
+ .animate-fade-in-up.visible,
+ .animate-fade-in-left.visible,
+ .animate-fade-in-right.visible,
+ .animate-bounce-y.visible,
+ .section-scroll-animate.visible,
+ .text-animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
