/* Variables */
:root {
    /* Colors */
    --color-primary-bg: #FFFFFF;
    --color-secondary-bg: #F8F8F8;
    --color-text-dark: #333333;
    --color-text-medium: #666666;
    --color-accent: #008080; /* Teal */
    --color-accent-hover: #006666; /* Slightly darker teal */
    --color-border: #E0E0E0;
    --color-white: #FFFFFF;

    /* Fonts */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;

    /* Max Width */
    --container-max-width: 1200px;

    /* Shadow */
    --shadow-subtle: 0 4px 8px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Global Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: var(--color-primary-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-padding {
    padding: var(--spacing-xxl) 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-dark);
}

.section-description {
    font-family: var(--font-body);
    font-size: 1.15rem;
    text-align: center;
    color: var(--color-text-medium);
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

/* Header */
.site-header {
    background-color: var(--color-primary-bg);
    padding: var(--spacing-md) 0;
    box-shadow: var(--shadow-subtle);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.site-logo a {
    color: var(--color-text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-logo a:hover {
    color: var(--color-accent);
}

.main-nav .nav-list {
    list-style: none;
    display: flex;
    gap: var(--spacing-lg);
}

.main-nav .nav-list a {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-medium);
    position: relative;
    padding-bottom: 5px;
}

.main-nav .nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.main-nav .nav-list a:hover::after {
    width: 100%;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 1100;
}

.nav-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-dark);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--color-white);
    text-align: center;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6); /* Darken image for better text contrast */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    animation: fadeInDown 1s ease-out;
}

.hero-subheading {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: both; /* Keep the end state of the animation */
}

.hero-cta {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-lg);
    background-color: var(--color-accent);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 5px;
    box-shadow: var(--shadow-subtle);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    animation: zoomIn 1s ease-out 0.6s;
    animation-fill-mode: both;
    /* Ensure it's not interactive as per requirements */
    cursor: default; 
}

/* Services Section */
.services-section {
    background-color: var(--color-secondary-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    justify-content: center; /* Center items if they don't fill the row completely */
}

.service-card {
    background-color: var(--color-primary-bg);
    padding: var(--spacing-xl);
    border-radius: 8px;
    box-shadow: var(--shadow-subtle);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-card .icon-wrapper {
    background-color: var(--color-accent);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.service-card .icon {
    width: 32px;
    height: 32px;
    color: var(--color-white);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-dark);
}

.service-card p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-medium);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
    color: var(--color-white);
    padding: var(--spacing-md);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 1;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Section (Informational) */
.contact-section {
    background-color: var(--color-primary-bg);
    text-align: center;
}

.contact-info-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-text-dark);
    max-width: 700px;
    margin: var(--spacing-md) auto 0;
}

/* Footer */
.site-footer {
    background-color: var(--color-text-dark);
    color: var(--color-white);
    padding: var(--spacing-md) 0;
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 1;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 1;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 1;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }
    .hero-headline {
        font-size: 3rem;
    }
    .hero-subheading {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-wrap: wrap; 
        padding: 0 var(--spacing-md);
    }

    .site-logo {
        flex-grow: 1; 
        text-align: left; 
    }

    .main-nav {
        order: 1; 
        width: 100%; 
        text-align: right; 
    }

    .nav-toggle {
        display: block; /* Show hamburger icon */
        position: absolute; 
        top: var(--spacing-md);
        right: var(--spacing-md);
    }

    .main-nav .nav-list {
        flex-direction: column;
        background-color: var(--color-primary-bg);
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        box-shadow: var(--shadow-hover);
        padding: var(--spacing-md) 0;
        border-top: 1px solid var(--color-border);
        transform: translateY(-100%);
        opacity: 1;
        pointer-events: none;
        transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    }

    .main-nav .nav-list.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .main-nav .nav-list li {
        text-align: center;
        margin: var(--spacing-xs) 0;
    }

    .main-nav .nav-list a {
        display: block;
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 1.1rem;
    }
    .main-nav .nav-list a::after {
        display: none; /* No underline effect on mobile menu items */
    }


    .hero-section {
        height: 70vh;
    }
    .hero-headline {
        font-size: 2.5rem;
    }
    .hero-subheading {
        font-size: 1.1rem;
    }
    .hero-cta {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 1rem;
    }

    .services-grid, .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    }
    .section-padding {
        padding: var(--spacing-xl) 0;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    .section-description {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }
    .hero-headline {
        font-size: 2rem;
    }
    .hero-subheading {
        font-size: 1rem;
    }
    .services-grid, .gallery-grid {
        grid-template-columns: 1fr; /* Stack on single column for very small screens */
    }
    .service-card {
        padding: var(--spacing-md);
    }
}

/* 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;
}
