@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@700&family=Inter:wght@400;500&display=swap');

:root {
    --primary-color: #0A4D3C; /* Deep Emerald Green */
    --secondary-color: #FFFFFF; /* Clean White */
    --accent-color: #B08D57; /* Muted Gold */
    --text-dark: #212121; /* Dark Grey for text */
    --text-light: #FFFFFF; /* White for text on dark backgrounds */
    --base-taupe: var(--accent-color); /* Gold for stars */
    --font-primary: 'Inter', sans-serif;
    --bs-font-sans-serif: var(--font-primary);
    --font-headings: 'Cormorant Garamond', serif;
}

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

html {
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    background-image: url('https://images.pexels.com/photos/834892/pexels-photo-834892.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1'); /* Stylish interior background */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #FDFBF6; /* Fallback Soft Beige Background */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}
.section {
    padding: 6rem 3rem;
    background-color: rgba(255, 255, 255, 0.85); /* Semi-transparent white sections */
    border-radius: 15px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.section-full-width {
    padding-left: 0;
    padding-right: 0;
}

.section-secondary {
    background-color: var(--secondary-color);
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color); /* Deep Green Title */
    text-align: center;
    margin-bottom: 3rem;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.5rem 0;
    font-size: 0.9rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1031; /* Higher than navbar */
}
.top-bar a {
    color: var(--text-light);
    text-decoration: none;
}
.top-bar .social-links a {
    margin: 0 0.5rem;
    font-size: 1rem;
}
.top-bar .social-links {
    margin: 0;
}

/* Header & Navbar */
.navbar.fixed-top {
    top: 40px; /* Positioned below the top-bar */
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar .nav-link {
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.navbar .nav-link:hover, .navbar .nav-link.active {
    color: var(--accent-color); /* Muted Gold on hover/active */
}

.btn-estimate {
    background-color: var(--accent-color);
    color: var(--text-light) !important;
    border-radius: 20px;
    padding: 0.4rem 1.2rem;
    transition: all 0.3s ease;
}
.btn-estimate:hover {
    background-color: #9a7945; /* Darker gold on hover */
    transform: translateY(-2px);
}

/* Floating Logo */
.floating-logo {
    position: absolute;
    top: 140px; /* Increased top gap by 50px */
    left: 2rem;
    z-index: 20;
    width: 180px;
    height: 180px;    
    background: rgba(255, 255, 255, 0.8); /* Light semi-transparent */
    border-radius: 50%;
    padding: 15px; /* Adds space so the square logo fits inside the circle */
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-logo img {
    width: 90%;
    height: 90%;
    object-fit: contain; /* Ensure the entire image is visible, maintaining aspect ratio */
}

/* Hero Section */
#hero-split {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background-color: #333; /* Fallback for image loading */
}

.hero-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    background-size: cover;
    background-position: center;
    display: flex; /* Added for centering caption */
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide.exiting {
    z-index: 0;
}

/* Animations for active slide */
.hero-slide.active .hero-caption-box {
    animation: fadeInFromBottom 1s ease-out 1s forwards; /* Appear after 1s */
}

@keyframes fadeInFromBottom {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Shared Caption Box */
.hero-caption-box {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    z-index: 10;
    margin: auto; /* Center vertically with flex */
    width: 90%;
    max-width: 700px;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    text-align: center;
    color: var(--text-light);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);    
    opacity: 0; /* Hidden by default */
}

.hero-caption-box h1 {
    font-size: 3rem;
    font-weight: 700;    
    margin-bottom: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-light);
    border: none;
}

.btn-primary:hover {
    background-color: #9a7945; /* Darker gold on hover */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}



/* Why Choose Us Section - Scrolling Ticker */
.scrolling-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.scrolling-content {
    display: flex;
    width: 200%; /* Total width for 12 items, where 6 are visible at 100% of wrapper */
    animation: scroll 40s linear infinite;
}

.scrolling-wrapper:hover .scrolling-content {
    animation-play-state: paused;
}

.scroll-item {
    flex: 0 0 calc(100% / 12); /* Each item is 1/12th of the 200% wide scrolling-content, effectively 1/6th of the wrapper */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    text-align: center;
}

.scroll-item img {
    height: 120px; /* Increased image size */
    margin-bottom: 1rem;
    object-fit: contain;
}

.scroll-item span {
    font-weight: 500;
    color: var(--text-dark);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 2)); /* Move by the width of the original 6 items */
    }
}

/* Services Section */
.service-card {
    background: #FDFBF6; /* Soft Beige card background */
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    height: 100%;
}

.service-card i {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.service-card-img {
    height: 80px;
    width: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
    color: var(--accent-color); /* Fallback color for SVGs */
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.portfolio-item img {
    display: block;
    transition: transform 0.4s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 128, 128, 0.8);
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Full Portfolio Page Styles */
.portfolio-category {
    margin-bottom: 1rem; /* Reduced gap between sections */
    padding-left: 2rem; /* Added horizontal padding */
    padding-right: 2rem; /* Added horizontal padding */
}

.category-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

.image-title {
    font-size: 1.1rem; /* Decreased font size */
    margin-top: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.portfolio-carousel-item img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-carousel-item:hover img {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Portfolio Carousel Styles */
.portfolio-carousel-wrapper {
    position: relative;
    overflow: hidden;
    margin: 0 -0.5rem; /* Counteract item padding */
}

.portfolio-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.portfolio-carousel-item {
    flex: 0 0 25%; /* Show 4 items */
    padding: 0 0.5rem; /* Gutter between items */
    text-align: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Easy Steps Section */
.steps-container {
    position: relative;
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.step-slide {
    display: none;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.step-slide.active {
    display: grid;
    animation: fadeIn 0.8s ease-in-out;
}

.step-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.step-content {
    padding: 2rem 3rem;
}

.step-content h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.step-buttons {
    display: flex;
    gap: 1rem;
}

.steps-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0;
    background-color: #f8f9fa;
}

.step-arrow {
    background: none;
    border: 1px solid #ddd;
    color: var(--text-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-arrow:hover:not(:disabled) {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.step-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.step-indicators {
    display: flex;
    margin: 0 2rem;
}

.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: var(--text-dark);
}

.step-indicator:hover, .step-indicator.active {
    background-color: var(--accent-color);
    color: white;
}

/* Contact Section */
#contact.section {
    padding: 4rem 0; /* Reduced section padding */
}

.contact-subtitle {
    text-align: center;
    max-width: 800px;
    margin: -2rem auto 3rem;
}

.contact-info-item i {
    color: var(--accent-color);
    margin-right: 1.5rem; /* Added space between icon and text */
}
.contact-info-item a {
    color: var(--text-dark);
    text-decoration: none;
}
.contact-info-item a:hover {
    color: var(--accent-color);
}

/* Contact Section - Google Map */
.map-container {
    border-radius: 10px;
    overflow: hidden;
    height: 380px; /* Decreased map height */
    border: 1px solid #ddd; /* Added border around map */
}
.map-container iframe {
    width: 100%;
    height: 100%;
}

.contact-card-title {
    font-family: var(--font-headings);
    color: var(--primary-color);
}

.contact-details-wrapper {
    padding: 2rem;
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    height: 100%;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    text-align: left;
}

/* Testimonials Section */
.testimonial-video-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.testimonial-video-content {
    padding: 1.5rem;
}

.testimonial-client-name {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.testimonial-location {
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 1rem;
}

.testimonial-brief {
    font-style: italic;
    text-align: center;
}

/* FAQ Section */
#faq .accordion-item {
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

#faq .accordion-button {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

#faq .accordion-button:not(.collapsed) {
    color: var(--accent-color);
    background-color: #f8f8f8;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}

/* --- ISOLATED TESTIMONIAL SLIDER STYLES --- */
.testimonial-slider-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 40px; /* Make space for the arrows */
}

.testimonial-slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide-item {
    flex: 0 0 100%; /* Default for mobile */
    padding: 0 0.75rem;
    box-sizing: border-box;
}

/* Specific positioning for testimonial arrows */
.carousel-btn.testimonial-arrow-prev {
    left: 0;
}

.carousel-btn.testimonial-arrow-next {
    right: 0;
}
/* --- END OF ISOLATED STYLES --- */


/* Floating Buttons */
.whatsapp-float {
  position: fixed;
  bottom: 100px; /* Positioned above the back-to-top button */
  right: 12px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-decoration: none;
}

.whatsapp-float i {
  background-color: #25d366;
  color: #fff;
  width: 50px;
  height: 50px;
  font-size: 24px;
  border-radius: 50%;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-text {
  visibility: hidden;
  opacity: 0;
  background-color: #fff;
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  margin-right: -20px; /* Overlap with icon */
  white-space: nowrap;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
  transform: translateX(20px);
  transition: all 0.3s ease;
}

.whatsapp-float:hover .whatsapp-text {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
  margin-right: 10px;
}

.back-to-top {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 30px;
    right: 12px;
    background-color: var(--accent-color);
    color: var(--text-light);
    border-radius: 50%;
    text-align: center;
    font-size: 20px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    padding-bottom: 2rem;
}

.footer-logo {
    max-height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 5px;
}

.footer-heading {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.footer-brief, .footer-contact-info {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact-info i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a, .footer-contact-info a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover, .footer-contact-info a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

/* Footer Social Links */
.social-links {
    margin: 1.5rem 0;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.5rem;
    margin: 0 0.8rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--base-taupe);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* Media Queries for Responsiveness */
@media screen and (max-width: 768px) {
    body {
        padding-top: 60px; /* Adjusted for only fixed navbar on mobile */
    }
    .top-bar { display: none; } /* Hide top-bar on mobile */
    .section {
        padding: 4rem 0;
    }
    .section-title { font-size: 2rem; }
    .navbar.fixed-top {
        top: 0; /* Navbar back to top on mobile */
    }

    .floating-logo {
        width: 100px;
        height: 100px;
        top: 6rem; /* Approx 96px, increased top margin for mobile */
        left: 1.5rem;
    }
    .footer-content {
        text-align: left;
    }
    #hero-split { height: 60vh; } /* Adjusted for better mobile proportion */

    .portfolio-carousel-item {
        flex: 0 0 50%; /* Show 2 items on mobile */
    }

    .step-slide.active {
        grid-template-columns: 1fr;
    }
    .step-image img {
        height: 300px;
    }
    .step-content {
        padding: 1.5rem;
    }
    .step-content h3 {
        font-size: 1.5rem;
    }

    /* Ensure testimonial columns stack correctly on small screens */
    .col-md-6 { /* Bootstrap default for medium screens */
        flex: 0 0 auto; /* Reset flex-basis to auto for stacking */
    }

    /* On medium screens, show 2 testimonials */
    .testimonial-slide-item {
        flex: 0 0 50%;
    }
}

@media screen and (min-width: 992px) {
    /* On large screens, show 3 testimonials */
    .testimonial-slide-item {
        flex: 0 0 calc(100% / 3);
    }
}
