:root {
    --color-orange: #E15C31;
    --color-white: #FFF;
    --color-light-yellow: #FFFBE3;
    --color-light-orange: #F5A074;
    --color-brown: #493A31;
    --color-black: #000;
    --color-pale-red: #FFEEE9;
    --color-gray: #D9D9D9;
    --color-gray-light: #F5F5F5;
    --color-text-light: #555;
    --font-tight: 'Inter Tight', -apple-system, Roboto, Helvetica, sans-serif;
    --font-sauce: 'Open Sans', -apple-system, Roboto, Helvetica, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-tight);
    color: var(--color-brown);
    overflow-x: hidden;
    background-color: var(--color-light-yellow);
}

/* Navbar */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-top {
    display: flex;
    align-items: center;
    padding: 5px;
    justify-content: center;
    border: 1px solid #D4D4D4;
}

.nav-logo {
    width: 200px;
    height: auto;
    display: block;
}

.navbar-bottom {
    padding: 10px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-left: 1px solid #D4D4D4;
    border-right: 1px solid #D4D4D4;
    border-bottom: 1px solid #D4D4D4;
}

.navbar-menu {
    display: flex;
    padding: 0 80px;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    list-style: none;
    gap: 0;
    height: 24px;
}

.navbar-menu li {
    display: flex;
    align-items: center;
}

.navbar-menu a {
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-sauce);
    font-size: 24px;
    font-weight: 500;
    padding: 0 20px;
}

.navbar-menu a:hover {
    opacity: 0.8;
}

.separator {
    width: 1px;
    height: 44.25px;
    background: #D4D4D4;
    margin: 0 10px;
}

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
    /* Must be above mobile menu */
    width: 30px;
    height: 24px;
    position: relative;
    margin-right: 10px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-orange);
    position: absolute;
    transition: all 0.3s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

/* Hamburger Active Animation (X shape) */
.hamburger.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-light-yellow);
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding-top: 60px;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-links {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-link {
    text-decoration: none;
    font-family: var(--font-tight);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-brown);
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: var(--color-orange);
}

@media (max-width: 900px) {

    /* Hide the desktop bottom nav links */
    .navbar-bottom {
        display: none;
    }

    /* Show hamburger button */
    .hamburger {
        display: block;
    }

    /* Adjust top nav layout for mobile */
    .navbar-top {
        justify-content: space-between;
        padding: 10px 20px;
    }

    /* Resize logo on mobile */
    .nav-logo {
        width: 150px;
    }

    .navbar-menu {
        flex-wrap: wrap;
        padding: 0 20px;
        gap: 10px;
        justify-content: center;
        height: auto;
    }

    .navbar-menu a {
        font-size: 14px;
        padding: 5px 10px;
        font-weight: 700;
    }

    .separator {
        display: none;
    }

    .navbar-bottom {
        padding: 10px 10px;
    }
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    /* Use aspect-ratio to match video dimensions (16:9) and prevent cropping */
    aspect-ratio: 16 / 9;
    /* Ensure it doesn't get too short on smaller laptops/desktops */
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 50px;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(245, 160, 116, 0.5) 75%,
            var(--color-light-yellow) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 50%, var(--color-light-yellow) 100%);
    z-index: 2;
}

.hero-content {
    margin-top: 15%; /* Adjusted slightly for better vertical positioning */
    position: relative;
    z-index: 3;
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%; 
    /* Removed fixed min-width to allow better responsiveness */
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-title {
    color: var(--color-white);
    font-size: clamp(32px, 6vw, 80px);
    font-weight: 700;
    line-height: 1.1;
    font-family: var(--font-tight);
}

.hero-subtitle {
    color: var(--color-orange);
    font-size: clamp(32px, 6vw, 50px);
    font-weight: 700;
    line-height: 1.1;
    font-style: italic;
    font-family: var(--font-tight);
}

.hero-description {
    width: 70%;
    padding: 20px 10px;
    background: rgba(109, 109, 109, 0.30);
    border-radius: 10px;
}

.hero-description p {
    color: var(--color-light-yellow);
    font-family: var(--font-sauce);
    font-size: clamp(16px, 2vw, 24px);
    font-weight: 500;
}

.btn-primary {
    display: inline-flex;
    padding: 10px;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    border: 2px solid var(--color-orange);
    background: transparent;
    color: var(--color-orange);
    font-family: var(--font-sauce);
    font-size: clamp(16px, 2vw, 24px);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
}

.btn-primary:hover {
    background: var(--color-orange);
    color: var(--color-white);
}

.hero-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.nav-arrow {
    all: unset;
    color: var(--color-orange);
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-dots {
    display: flex;
    gap: 12px;
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-pale-red);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--color-orange);
}

.hero-slide {
    display: none;
}

.hero-slide.active {
    display: block;
}

/* Hero Responsive Fix */
@media (max-width: 900px) {
    .hero {
        /* On mobile, disable aspect ratio and use fixed height to fit content */
        aspect-ratio: unset;
        min-height: 100vh; /* Use full viewport height */
        height: auto;
        /* Increase bottom padding to prevent text from hitting arrows */
        padding-bottom: 120px;
        padding-top: 100px;
        justify-content: center; /* Center content vertically */
        align-items: flex-start; /* Align content to the left */
    }

    .hero-content {
        margin-top: 0; /* Remove top margin to rely on flexbox centering */
        padding: 20px 30px; /* Adjust padding for mobile */
        /* Ensure content doesn't get cut off */
        width: 100%; 
        max-width: 100%;
        min-width: auto; /* Fix for small screens */
        align-items: flex-start; /* Left align elements */
        text-align: left; /* Left align text */
    }

    .hero-text {
        align-items: flex-start;
        width: 100%;
    }

    .hero-title, 
    .hero-subtitle {
        font-size: clamp(32px, 8vw, 50px); /* Adjust font scaling */
        text-align: left;
    }

    .hero-description {
        width: 100%;
        max-width: 500px; /* Improve readability */
    }
    
    .btn-primary {
        width: auto;
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .hero-title, 
    .hero-subtitle {
        font-size: 32px; /* Ensure titles fit on very small screens */
    }

    .btn-primary {
        width: 100%; /* Full width button for better touch target */
    }
}

/* Section Common */
.section-container {
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    color: var(--color-orange);
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 700;
    padding: 20px 74px 0;
}

@media (max-width: 768px) {
    .section-title {
        padding: 20px 20px 0;
    }
}

/* About Section */
.about {
    background: linear-gradient(to bottom, var(--color-light-yellow) 0%, var(--color-light-yellow) 60%, #FAD4B0 100%);
    padding-top: 50px;
    padding-bottom: 20px;
}

.about-content {
    padding: 0 120px 40px 80px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

.about-text {
    flex: 1;
    color: var(--color-brown);
    font-family: var(--font-sauce);
    font-size: clamp(16px, 2vw, 24px);
    font-weight: 500;
    line-height: 0.6;
    white-space: pre-wrap;
}

.btn-secondary {
    height: 50px;
    padding: 10px 16px;
    background: var(--color-orange);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    font-family: var(--font-sauce);
    font-size: clamp(16px, 2vw, 24px);
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

@media (max-width: 900px) {
    .about-content {
        flex-direction: column;
        padding: 0 20px 40px 20px;
        align-items: flex-start;
    }
}

/* Portfolio */
.portfolio {
    background: linear-gradient(to bottom, transparent 0%, var(--color-light-yellow) 50%);
}

/* Portfolio Carousel */
.carousel {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
    z-index: 1;
}

.portfolio-slide {
    display: none;
    /* Hide all slides by default */
}

.portfolio-slide.active {
    display: block;
    /* Show only the active slide */
}

.portfolio-slide img {
    width: 100%;
    height: auto;
    max-height: 500px;
    /* Limit the height for larger screens */
    object-fit: cover;
    /* Ensure the image covers the container proportionally */
}

@media (max-width: 768px) {
    .portfolio-slide img {
        max-height: 300px;
        /* Adjust height for smaller screens */
    }
}

@media (max-width: 400px) {
    .portfolio-slide img {
        max-height: 200px;
        /* Further adjust height for very small screens */
    }
}

/* Services */
.services {
    background: var(--color-light-yellow);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    margin-top: 20px;
}

.service-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    aspect-ratio: 1/1;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover img {
    transform: scale(1.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(225, 92, 49, 0.7);
    opacity: 0;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card::after {
    content: var(--alt-text);
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: var(--color-white);
    font-family: var(--font-sauce);
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.3s ease;
    text-align: right;
}

.service-card:hover::after {
    opacity: 1;
}

/* Service Responsive Fix */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Articles */
.articles {
    padding: 20px 0 40px 0;
    background-color: var(--color-pale-red);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 80px;
    margin-top: 20px;
}

.article-card {
    padding: 20px;
    border: 1px solid var(--color-white);
    background: rgba(212, 212, 212, 0.15);
    backdrop-filter: blur(17.5px);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s ease;
}

.article-card:hover {
    background-color: white;
}

.article-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
}

.article-badge {
    display: inline-flex;
    padding: 2px 4px;
    background: var(--color-orange);
    color: var(--color-black);
    font-family: var(--font-tight);
    font-size: 13px;
    font-weight: 600;
    width: fit-content;
}

.article-title {
    color: var(--color-black);
    font-family: var(--font-tight);
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 700;
    line-height: 1.3;
}

.article-date {
    color: var(--color-text-light);
    font-family: var(--font-sauce);
    font-size: 12px;
}

.article-text {
    color: var(--color-black);
    font-family: var(--font-tight);
    font-size: 16px;
    line-height: 1.5;
    flex-grow: 1;
}

.article-link {
    color: var(--color-black);
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
}

@media (max-width: 900px) {
    .articles-grid {
        padding: 20px;
    }
}

/* Contact Section */
.contact {
    padding: 0px 20px;
    background-color: #FFEEE9;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 20px;
    max-width: 1920px;
    margin: 0 auto;
    padding: 20px;
}

.contact-info {
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-info h3 {
    color: var(--color-orange);
    font-family: var(--font-tight);
    font-size: 36px;
    font-weight: 700;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.info-item svg {
    color: var(--color-orange);
    flex-shrink: 0;
}

.info-title {
    color: var(--color-orange);
    font-family: var(--font-sauce);
    font-size: 20px;
    font-weight: 500;
}

.info-value {
    color: var(--color-brown);
    font-family: var(--font-sauce);
    font-size: 16px;
}

.contact-form-wrapper {
    padding: 40px;
    border: 1px solid var(--color-white);
    background: rgba(212, 212, 212, 0.15);
    backdrop-filter: blur(17.5px);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s ease;
}

.contact-form-wrapper:hover {
    background-color: white;
}

/* Contact Form */
.contact-form {
    padding: 40px;
    border: 1px solid var(--color-white);
    background: rgba(212, 212, 212, 0.15);
    backdrop-filter: blur(17.5px);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s ease;
}

.contact-form:hover {
    background-color: white;
}

.contact-form h3 {
    color: var(--color-orange);
    font-family: var(--font-tight);
    font-size: 32px;
    font-weight: 700;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--color-orange);
    font-family: var(--font-tight);
    font-size: 18px;
}

.form-group input,
.form-group textarea {
    padding: 10px;
    border: 1px solid var(--color-orange);
    background: transparent;
    color: var(--color-black);
    font-family: var(--font-tight);
    font-size: 16px;
}

.btn-form {
    height: 60px;
    border: 2px solid var(--color-orange);
    background: transparent;
    color: var(--color-orange);
    font-family: var(--font-tight);
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-form:hover {
    background: var(--color-orange);
    color: var(--color-white);
}

/* Contact Social Fix */
.contact-social {
    display: flex;
    align-items: stretch;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.consultation {
    flex: 2;
}

.btn-consultation {
    height: 100%;
    width: 100%;
    min-height: 80px;
    border: 2px solid var(--color-orange);
    background: transparent;
    color: var(--color-orange);
    font-family: var(--font-tight);
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.btn-consultation:hover {
    background: var(--color-orange);
    color: var(--color-white);
}

.social-links {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Layout Breakpoints */
@media (max-width: 1200px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

/* The Critical Fix for 700px screens */
@media (max-width: 900px) {
    .contact-social {
        flex-direction: column;
    }

    .btn-consultation {
        padding: 20px;
        height: auto;
    }

    .contact-layout {
        padding: 0;
    }

    .contact-form,
    .contact-info {
        padding: 20px;
    }
}

/* Footer */
.footer {
    background: var(--color-brown);
    color: var(--color-white);
    padding: 40px;
}

.footer-content {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-social {
    display: flex;
    gap: 30px;
}

.footer-social a {
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1920px;
    margin: 20px auto 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.portfolio-nav {
    display: none;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    /* Optional: Adds spacing between the links */
}

.footer-left a {
    text-decoration: none;
}

.footer-top-btn {
    width: 50px;
    height: 50px;
    border: 1px solid var(--color-white);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Hide hero navigation when mobile menu is active */
.mobile-menu.active~.hero-nav {
    display: none;
}

/* Terms and Conditions Page Styling */
.terms-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: var(--color-light-yellow);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.terms-container h1 {
    color: var(--color-orange);
    font-family: var(--font-tight);
    font-size: 36px;
    text-align: center;
    margin-bottom: 20px;
}

.terms-container h2 {
    color: var(--color-brown);
    font-family: var(--font-tight);
    font-size: 24px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.terms-container p, .terms-container li {
    color: var(--color-text-light);
    font-family: var(--font-sauce);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.terms-container ul {
    padding-left: 20px;
    list-style: disc;
}

.terms-container ul li {
    margin-bottom: 5px;
}

.terms-footer {
    text-align: center;
    margin-top: 40px;
    color: var(--color-brown);
    font-family: var(--font-sauce);
    font-size: 14px;
}

/* Privacy Policy Page Styling */
.privacy-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: var(--color-light-yellow);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.privacy-container h1 {
    color: var(--color-orange);
    font-family: var(--font-tight);
    font-size: 36px;
    text-align: center;
    margin-bottom: 20px;
}

.privacy-container h2 {
    color: var(--color-brown);
    font-family: var(--font-tight);
    font-size: 24px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.privacy-container p, .privacy-container li {
    color: var(--color-text-light);
    font-family: var(--font-sauce);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.privacy-container ul {
    padding-left: 20px;
    list-style: disc;
}

.privacy-container ul li {
    margin-bottom: 5px;
}

.privacy-footer {
    text-align: center;
    margin-top: 40px;
    color: var(--color-brown);
    font-family: var(--font-sauce);
    font-size: 14px;
}
.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}