/* ============================================
   CSS Variables & Color Palette
   ============================================ */

:root {
    --dark-color: #212121;
    --light-color: #FFFFFF;
    --light-accent-color: #0f9d6b;
    --dark-accent-color: #2D5016;
    --heading-font: 'Outfit', sans-serif;
    --body-font: 'DM Sans', sans-serif;
    --header-bg-opacity: 0.9;
}

/* ============================================
   Reset & Base Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--dark-color);
}

/* ============================================
   Typography
   ============================================ */

h1,
h2,
h3 {
    font-family: var(--heading-font);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-accent-color);
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--dark-color);
}

a {
    color: var(--light-accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--light-accent-color);
    text-decoration: none;
}


/* ============================================
   Container Utility
   ============================================ */

.container {
    margin: 0 auto;
    padding-block: clamp(1rem, 10vw, 4rem);
    padding-inline: clamp(1rem, 5vw, 2rem);
    text-align: center;
}

/* ============================================
   Header & Navigation
   ============================================ */

.header {
    background-color: rgba(33, 33, 33, var(--header-bg-opacity));
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-color);
    margin: 0;
}

/* Navigation Menu */
.nav {
    display: none;
}

.nav.active {
    display: block;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0;
    flex-direction: column;
}

.nav-list li {
    border-bottom: 1px solid rgba(226, 232, 206, 0.2);
}

.nav-list li:last-child {
    border-bottom: none;
}

.nav-link {
    display: block;
    padding: 0.75rem 2rem;
    color: var(--light-color);
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.burger-menu {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 0.35rem;
    padding: 0.5rem;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 2.5px;
    background-color: var(--light-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Language Selector */
.lang-selector {
    display: flex !important;
    border-bottom: none !important;
}

.lang-buttons {
    display: flex;
    width: 100%;
    padding: 0.75rem 2rem;
    gap: 0;
}

.lang-btn {
    flex: 1;
    background: none;
    border: 1px solid rgba(226, 232, 206, 0.3);
    color: var(--light-color);
    padding: 0.5rem;
    cursor: pointer;
    font-family: var(--body-font);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-btn:first-child {
    border-right: none;
    border-radius: 4px 0 0 4px;
}

.lang-btn:last-child {
    border-radius: 0 4px 4px 0;
}

.lang-btn.active {
    background-color: var(--light-accent-color);
    color: var(--dark-color);
    border-color: var(--light-accent-color);
}

.lang-btn:hover:not(.active) {
    background-color: rgba(226, 232, 206, 0.1);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2)), url('img/hero-image.jpg');
    background-size: cover;
    background-position: center;
    /* background-attachment: fixed; */
    text-align: center;
    height: clamp(20em, 60vh, 40em);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero .container {
    max-width: 1000px;
}

.hero h2,
.hero p {
    color: var(--light-color);
    text-shadow: 0px 0px 20px rgba(0, 0, 0, 0.99);
}

.hero h2 {
    font-size: clamp(3rem, 10vw, 5rem);
    margin-bottom: 1rem;
}

.hero p {
    font-size: clamp(1rem, 5vw, 1.5rem);
}

/* ============================================
   About Section
   ============================================ */

#about p {
    text-align: justify;
}

/* ============================================
   Services Section
   ============================================ */

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    padding: clamp(1rem, 5vw, 1.5rem);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border-left: 5px solid var(--light-accent-color);
    background-size: cover;
    background-position: center;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(27, 44, 27, 0.75), rgba(27, 44, 27, 0.75));
    border-radius: 8px;
    z-index: 1;
}

.service-card>* {
    position: relative;
    z-index: 2;
}

.service-card:nth-child(1) {
    background-image: url('https://images.unsplash.com/photo-1758380410961-89bf3dfe6110?w=400&fit=crop');
}

.service-card:nth-child(2) {
    background-image: url('https://images.unsplash.com/photo-1715534246270-e573599ebff3?w=400&fit=crop');
}

.service-card:nth-child(3) {
    background-image: url('https://images.unsplash.com/photo-1700689807667-82630348b301?w=400&fit=crop');
}

.service-card h3 {
    color: var(--light-color);
}

.service-card p {
    color: var(--light-color);
}

/* ============================================
   Work Showcase Section
   ============================================ */

.carousel-wrapper {
    position: relative;
    /* max-width: 600px; */
    margin: 0 auto 2rem;
}

.carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--light-color);
    border: none;
    padding: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 4px;
    z-index: 10;
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    cursor: pointer;
    background-color: var(--dark-accent-color);
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--light-accent-color);
}

/* ============================================
   Contact Section
   ============================================ */

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--dark-accent-color);
}

.contact-item:hover {
    color: var(--light-accent-color);
}

.contact-item i {
    font-size: 2.5rem;
}

.contact-item p {
    margin-bottom: 0;
}

.contact-item a {
    font-weight: 500;
}

footer {
    margin-top: 3rem;
    border-top: 1px solid var(--dark-accent-color);
}

footer .container {
    padding: 1rem;
}

footer p {
    font-size: 0.8em;
}

/* ============================================
   Responsive Design (Mobile-First)
   ============================================ */

/* Tablet (768px and up) */
@media (min-width: 768px) {
    .header-content {
        padding: 0 3rem;
    }

    .burger-menu {
        display: none;
    }

    .nav {
        display: flex !important;
        position: static;
        flex-direction: row;
        gap: 0;
        background-color: transparent;
    }

    .nav-list {
        flex-direction: row;
        gap: 0;
    }

    .nav-list li {
        border-bottom: none;
    }

    .nav-link {
        padding: 0.5rem 1.5rem;
        border-bottom: 3px solid transparent;
    }

    .nav-link:hover {
        border-bottom-color: var(--light-accent-color);
        background-color: transparent;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-info {
        flex-direction: row;
        justify-content: center;
        gap: 3rem;
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .container {
        max-width: 1000px;
    }
}