/* Critical CSS for above-the-fold content */
:root {
    --primary-color: #4A2C2A; /* Darker Brown */
    --secondary-color: #8B4513; /* Saddle Brown */
    --accent-color: #D4AF37; /* Metallic Gold */
    --text-color: #333;
    --bg-light: #FDF8F0; /* Light Cream */
    --white: #ffffff;
    --dark-gray: #555;
    --light-gray: #eee;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    scroll-behavior: smooth;
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Header styles */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.cta-button {
    background: linear-gradient(45deg, var(--accent-color), #FFD700);
    color: var(--primary-color);
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(74, 44, 42, 0.85), rgba(139, 69, 19, 0.85)), url('batik-pattern.webp');
    background-size: cover;
    background-position: center;
    padding: 180px 0 100px;
    text-align: center;
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('batik-pattern.webp');
    background-repeat: repeat;
    opacity: 0.1;
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    line-height: 1.1;
}

.hero .subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 400;
}

.hero-cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.hero-cta-primary {
    background: linear-gradient(45deg, var(--accent-color), #FFD700);
    color: var(--primary-color);
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
    font-size: 1.1rem;
}

.hero-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.hero-cta-secondary {
    background: transparent;
    color: var(--white);
    padding: 15px 35px;
    border: 2px solid var(--white);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.hero-cta-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

/* General Section Styles */
.section-padding {
    padding: 100px 0;
}

/* Custom Carousel Styles */
.custom-carousel {
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    /* Removed padding here, will add to inner container */
}

.custom-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 2.5rem; /* Added gap */
}

.custom-carousel-slide {
    flex: 0 0 auto;
    width: 100%; /* Default to full width */
    padding: 1.5rem;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--white);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    height: auto;
}

.custom-carousel-navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0 25px; /* Added padding here for arrows */
}

.custom-carousel-button {
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    /* Removed margin: 0 10px; as padding on parent handles spacing */
}

.custom-carousel-button:hover {
    background: var(--primary-color);
}

.custom-carousel-pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding: 0;
    list-style: none;
}

.custom-carousel-dot {
    background: var(--dark-gray);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    border: none;
    transition: background 0.3s ease;
}

.custom-carousel-dot.active {
    background: var(--primary-color);
}

/* Responsive adjustments for custom carousel */
@media (min-width: 640px) {
    .client-carousel .custom-carousel-slide {
        width: calc(100% / 3 - (2.5rem * 2 / 3)); /* 3 items per view with gaps */
    }
    .portfolio-carousel .custom-carousel-slide {
        width: calc(100% / 2 - (2.5rem * 1 / 2)); /* 2 items per view with gaps */
    }
}

@media (min-width: 768px) {
    .client-carousel .custom-carousel-slide {
        width: calc(100% / 4 - (2.5rem * 3 / 4)); /* 4 items per view with gaps */
    }
    .portfolio-carousel .custom-carousel-slide {
        width: calc(100% / 3 - (2.5rem * 2 / 3)); /* 3 items per view with gaps */
    }
}

@media (min-width: 1024px) {
    .client-carousel .custom-carousel-slide {
        width: calc(100% / 6 - (2.5rem * 5 / 6)); /* 6 items per view with gaps */
    }
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(74, 44, 42, 0.15);
}

.portfolio-item img {
    width: 100%;
    height: 250px; /* Fixed height for portfolio images */
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(74, 44, 42, 0.8);
    color: var(--white);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
}

.client-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.client-logos-grid img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.client-logos-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.section-title {
    font-family: 'Playfair Display', serif;
    text-align: center;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 4rem;
    color: var(--dark-gray);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.grid-2-cols-responsive {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: 2.5rem; /* Ensure consistent gap for grid layouts */
}

@media (min-width: 768px) {
    .grid-2-cols-responsive {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--light-gray);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(74, 44, 42, 0.15);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 3.5rem; /* Ensure consistent height for icons */
}

.card-icon svg {
    width: 3.5rem;
    height: 3.5rem;
}

.card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.card p, .card ul {
    color: var(--dark-gray);
    font-size: 1rem;
    text-align: left;
}

.card ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.card ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.8rem;
}

.card ul li::before {
    content: '✓';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: 600;
}

/* About Section */
.about-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
    text-align: left;
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.about-content h2 {
    text-align: left;
    margin-bottom: 1rem;
}

.about-content .section-subtitle {
    text-align: left;
    margin-bottom: 2rem;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('batik-pattern.webp');
    background-repeat: repeat;
    opacity: 0.1;
    z-index: -1;
}

.cta-section .section-title {
    color: var(--white);
}

.cta-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.contact-options {
    margin-top: 3rem;
}

.contact-options h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.contact-options p {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.contact-options a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-options a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    font-size: 0.95rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    font-family: 'Playfair Display', serif;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section ul {
    list-style: none;
    padding-left: 0;
}

.footer-section ul li {
    margin-bottom: 0.6rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 40px; /* Adjusted to be below Back to Top button */
    right: 40px;
    background-color: #25d366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    flex-direction: column;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 5px 0;
    transition: 0.3s;
}

/* Media Queries */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: rgba(74, 44, 42, 0.95);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        margin: 0.5rem 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .about-section {
        flex-direction: column;
        text-align: center;
    }

    .about-content h2, .about-content .section-subtitle {
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
.back-to-top {
    position: fixed;
    bottom: 100px; /* Adjust to be above WhatsApp button */
    right: 40px;
    background-color: var(--secondary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    background-color: var(--primary-color);
}
