:root {
    --primary-orange: #e20604;
    --dark-bg: #1f2329;
    --light-text: #ffffff;
    --dark-text: #333333;
    --navbar-height: 100px !important;
    --topbar-height: 40px;
    --brown: #7a1823;
}

::selection {
    background-color: var(--brown);
    color: var(--light-text)
}

@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&display=swap');

h1,
h2,
h3,
h4,
h5,
h6,
span {
    font-family: "Lexend Deca", sans-serif !important;
}

/* --- Top Bar --- */
.top-bar {
    background-color: var(--primary-orange);
    color: var(--light-text);
    padding: 8px 0;
    font-size: 0.85em;
    height: var(--topbar-height);
    display: flex;
    align-items: center;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span,
.header-right-info span {
    margin-right: 20px;
}

.carouse-build-heading {
    font-family: "Lexend Deca", sans-serif;
    color: var(--light-text) !important;
}

.header-right-info span:last-child {
    margin-right: 0;
}

.contact-info i,
.header-right-info i {
    margin-right: 5px;
}

.header-right-info a {
    text-decoration: none;
    color: var(--light-text);
}

/* --- Main Navbar --- */
.main-navbar {
    background-color: var(--light-text) !important;
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-navbar .container {
    display: flex;
    align-items: stretch;
    /* Make children full height of container */
}

.nav-logo {
    height: 120px;
}

/* .logo-area {
    background-color: var(--light-text);
    display: flex;
    align-items: center;
    padding: 0 45px 0 25px;
    position: relative;
    text-decoration: none;
} */

/* .logo-area::before,
.logo-area::after {
    content: '';
    position: absolute;
    right: 0;
    width: 22px;
    height: calc(var(--navbar-height) / 2);
    background-color: var(--dark-bg);
}

.logo-area::before {
    top: 0;
    border-bottom-left-radius: 22px;
}

.logo-area::after {
    bottom: 0;
    border-top-left-radius: 22px;
} */

.logo-icon {
    color: var(--primary-orange);
    font-size: 26px;
    margin-right: 8px;
    position: relative;
    z-index: 1;
}

.logo-text {
    font-size: 26px;
    color: var(--dark-bg);
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.logo-text b {
    font-weight: 700;
}

.nav-and-actions {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 80px !important;
    /* Space from logo curve */
}

.mobile-nav-builderhaus {
    background-color: var(--light-text) !important;
}

.main-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    background-color: var(--light-text);

}

.main-nav-links li a {
    color: var(--dark-bg) !important;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav-links li a:hover,
.main-nav-links li a.active {
    color: var(--primary-orange) !important;
}

.nav-secondary-actions {
    display: flex;
    align-items: center;
}

.search-btn {
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.1em;
    cursor: pointer;
    padding: 10px;
    margin-right: 10px;
}

.search-btn:hover {
    color: var(--primary-orange);
}

.btn-quote-nav {
    border: 2px solid var(--primary-orange);
    color: var(--dark-bg);
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-quote-nav:hover {
    background-color: var(--primary-orange);
    color: var(--light-text);
}

.mobile-menu-toggle {
    display: none;
}


/* --- Hero Slider --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--navbar-height) - var(--topbar-height));
    /* Full viewport height minus navs */
    min-height: 500px;
    /* Minimum height */
    overflow: hidden;
    background-color: #333;
    /* Fallback */
}

.slides-container {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.7s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    /* Dark overlay */
}

.slide-content {
    position: relative;
    z-index: 2;
    color: var(--light-text);
    max-width: 1000px;
}

.slide-content .sub-heading {
    font-size: 1.1em;
    font-weight: 500;
    display: inline-block;
    padding-bottom: 8px;
    margin-bottom: 15px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: "Lexend Deca", sans-serif;
}

.slide-content .sub-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-orange);
    font-family: "Lexend Deca", sans-serif;
}

.slide-content h1 {
    font-size: 70px !important;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.slide-content .description {
    font-size: 1em;
    margin-bottom: 30px;
    max-width: 600px;
    color: var(--light-text);
}

.slide-buttons .btn {
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    margin-right: 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    /* for icon alignment */
    align-items: center;
}

.slide-buttons .btn-primary {
    background-color: var(--primary-orange);
    color: var(--light-text);
    border: 2px solid var(--primary-orange);
}

.slide-buttons .btn-primary:hover {
    background-color: transparent;
    color: var(--light-text);
}

.slide-buttons .btn-play {
    color: var(--light-text);
    background: transparent;
    border: 2px solid transparent;
    /* Keep layout consistent */
}

.slide-buttons .btn-play i {
    font-size: 1.8em;
    margin-right: 8px;
    color: var(--light-text);
    /* Ensure icon color matches text */
}

.slide-buttons .btn-play:hover {
    color: var(--primary-orange);
}

.slide-buttons .btn-play:hover i {
    color: var(--primary-orange);
}


.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--light-text);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2em;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.slider-arrow:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.prev-arrow {
    left: 20px;
}

.next-arrow {
    right: 20px;
}

.bottom-right-accent {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35vw;
    max-width: 400px;
    height: 25vh;
    max-height: 250px;
    background-color: var(--primary-orange);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
    /* Diagonal shape */
    z-index: 3;
}

.slider-controls-bottom {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    z-index: 4;
    color: var(--light-text);
}

.slide-counter {
    font-size: 1.1em;
    margin-right: 15px;
    font-weight: 500;
}

.progress-bar-container {
    width: 150px;
    /* Adjust as needed */
    height: 5px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    /* JS will control this */
    background-color: var(--light-text);
    border-radius: 5px;
    transition: width 0.3s linear;
    /* Smooth fill for manual nav, immediate for auto */
}

/* --- Responsive Design --- */
@media (max-width: 992px) {

    /* Tablets and below */
    .main-navbar .container {
        position: relative;
    }

    .nav-and-actions {
        position: absolute;
        top: var(--navbar-height);
        left: 0;
        width: 100%;
        background-color: var(--light-text) !important;
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        display: none;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.527);
        border-top: 2px solid var(--primary-orange);
    }

    .nav-and-actions.active {
        display: flex;
    }

    .main-nav-links {
        flex-direction: column;
        width: 100%;
    }

    .main-nav-links li {
        width: 100%;
    }

    .main-nav-links li a {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-secondary-actions {
        margin-top: 15px;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .search-btn {
        margin-bottom: 10px;
        padding-left: 0;
    }

    .btn-quote-nav {
        display: block;
        text-align: center;
        width: auto;
        margin-top: 5px;
    }

    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--dark-bg) !important;
        font-size: 1.5em;
        cursor: pointer;
        padding: 10px;
        margin-left: auto;
    }

    .logo-area {
        padding: 0 35px 0 15px;
    }

    /* Adjust logo padding for mobile */
    .logo-area::before,
    .logo-area::after {
        width: 18px;
    }

    .logo-area::before {
        border-bottom-left-radius: 18px;
    }

    .logo-area::after {
        border-top-left-radius: 18px;
    }


    .slide-content h1 {
        font-size: 2.2em;
    }

    .slide-content .description {
        font-size: 0.9em;
    }

    .hero-slider {
        height: auto;
        min-height: 450px;
        aspect-ratio: 16/10;
    }

    .bottom-right-accent {
        width: 45vw;
        height: 20vh;
        clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
    }

}

@media (max-width: 768px) {

    /* Smaller tablets / Large phones */
    .top-bar .container {
        flex-direction: column;
        align-items: center;
    }

    .top-bar {
        height: auto;
        padding: 10px 0;
    }

    .contact-info,
    .header-right-info {
        margin-bottom: 5px;
        text-align: center;
    }

    .header-right-info span {
        margin-right: 10px;
    }

    .hero-slider {
        height: calc(100vh - var(--navbar-height));
    }

    /* Adjust if topbar visible */
    .slide-content {
        padding: 0 20px;
        max-width: 90%;
    }

    .slide-content h1 {
        font-size: 1.8em;
    }

    .slide-buttons .btn {
        padding: 10px 18px;
        font-size: 0.9em;
    }

    .slide-buttons .btn-play i {
        font-size: 1.5em;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1em;
    }

    .prev-arrow {
        left: 10px;
    }

    .next-arrow {
        right: 10px;
    }

    .slider-controls-bottom {
        bottom: 15px;
        right: 15px;
    }

    .slide-counter {
        font-size: 1em;
    }

    .progress-bar-container {
        width: 100px;
    }
}

@media (max-width: 480px) {

    /* Small phones */
    .logo-text,
    .logo-icon {
        font-size: 20px;
    }

    .logo-area {
        padding: 0 30px 0 10px;
    }

    .logo-area::before,
    .logo-area::after {
        width: 15px;
    }

    .logo-area::before {
        border-bottom-left-radius: 15px;
    }

    .logo-area::after {
        border-top-left-radius: 15px;
    }

    .slide-content h1 {
        font-size: 1.6em;
    }

    .slide-content .sub-heading {
        font-size: 0.9em;
    }

    .slide-content .description {
        display: none;
    }

    /* Hide description on very small screens */
    .slide-buttons {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .slide-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
        justify-content: center;
    }

    .slide-buttons .btn:last-child {
        margin-bottom: 0;
    }
}

/* Preloder Css  */

/*--------------------------------------------------------------
# Preloader Styles
--------------------------------------------------------------*/

/* .content {
  display: none;
}

body.loaded .preloader-content {
  display: none;
}

body.loaded .content {
  display: block;
}

body.preloader-active {
  overflow: hidden !important;
  min-height: 100vh;
}

.preloader {
  background-color: #f7f7f7;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999999;
  -webkit-transition: .6s;
  -o-transition: .6s;
  transition: .6s;
  margin: 0 auto;
}

.preloader .preloader-circle {
  width: 150px;
  height: 150px;
  position: relative;
  border-style: solid;
  border-width: 3px;
  border-top-color: darkblue;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-right-color: transparent;
  z-index: 10;
  border-radius: 50%;
  -webkit-box-shadow: 0 1px 5px 0 rgba(35, 181, 185, 0.15);
  box-shadow: 0 1px 5px 0 rgba(35, 181, 185, 0.15);
  background-color: #ffffff;
  -webkit-animation: zoom 2000ms infinite ease;
  animation: zoom 2000ms infinite ease;
  -webkit-transition: .6s;
  -o-transition: .6s;
  transition: .6s;
}

.preloader .preloader-img {
  position: absolute;
  top: 50%;
  z-index: 200;
  left: 0;
  right: 0;
  margin: 0 auto;
  text-align: center;
  display: inline-block;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  padding: 0.5rem;
  -webkit-transition: .6s;
  -o-transition: .6s;
  transition: .6s;
}


.preloader .pere-text strong {
  font-weight: 800;
  color: var(--primary-color);
  text-transform: uppercase;
}

@keyframes zoom {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .6s;
    -o-transition: .6s;
    transition: .6s;
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
    -webkit-transition: .6s;
    -o-transition: .6s;
    transition: .6s;
  }
} */

.name-heading {
    margin-top: 32px;
    color: var(--primary-orange);
    text-decoration: none;
    font-size: 25px;
}

@media(max-width:1199px) {
    .name-heading {
        margin-top: 25px;
        font-size: 20px;
    }
}

@media(max-width:425px) {
    .name-heading {
        margin-top: 45px;
        font-size: 15px;
    }
}

@media(max-width:320px) {
    .name-heading {
        margin-top: 40px;
        font-size: 13px;
    }
}


/* ================================================= */
/*          SERVICES SECTION - PUTHU VERSION         */
/* ================================================= */

/* ===== ITHU THAAN MAIN CONTAINER MAPLA ===== */
.category-header-container {
    width: 100%;
    /* max-width: 600px; */
    /* Periya screen la romba neelama pogama irukka */
}

.category-header {
    display: flex;
    /* Flexbox thaan inga hero */
    justify-content: space-between;
    /* Idhu thaan onnu left, onnu right nu pirikkum */
    align-items: center;
    /* Rendum sariya naduvula align aagum */
    padding-bottom: 15px;
    /* Keela oru chinna line varathukku */
    border-bottom: 2px solid #e0e0e0;
    /* Antha chinna line */
    text-align: center;
}

/* ===== Title "Shop By Category" ===== */
.category-title {
    /* Antha image la irukura maari oru dark teal color */
    color: var(--light-text);
    font-size: 2.2rem;
    /* Periya screen la nalla perusa theriyum */
    font-weight: 700;
    text-align: center;
}

/* ===== "View All" Button ===== */
.view-all-btn {
    background-color: var(--light-text);
    /* Title color eh button kum use pannurom */
    color: var(--primary-orange);
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    /* Azhagana pill shape button */
    text-decoration: none;
    /* Link la vara underline ah eduka */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    /* Hover panna smooth ah maarum */
    white-space: nowrap;
    /* Button text break aagama irukka */
}

.view-all-btn:hover {
    border: 2px solid var(--light-text);
    background-color: var(--brown);
    color: var(--light-text);
    /* Hover panna konjam lighter shade */
    transform: translateY(-3px);
    /* Konjam mela pogura effect */
    box-shadow: 0 4px 15px rgba(0, 77, 64, 0.3);
}


/* ===== RESPONSIVE MAGIC INGA THAAN ===== */
/* Tablet & Mobile view (768px kulla pona) */
@media (max-width: 768px) {
    .category-header {
        /* Onnu keela onnu varathukku */
        flex-direction: column;
        /* Oru item ku innoru item ku gap */
        gap: 20px;
        /* Title, button ellam center la varum */
        align-items: center;
        border-bottom: none;
        /* Mobile la antha line theva illa */
        text-align: center;
    }

    .category-title {
        font-size: 1.8rem;
        /* Mobile la konjam chinna font size */
    }

    .view-all-btn {
        padding: 10px 25px;
    }
}

.services-container {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Itha flex-start nu maathikalam, un ishtam */
    flex-wrap: wrap;
    width: 100%;
    /* Nee ketta maari naduvula gap varathukku */
    gap: 50px 40px;
    /* row-gap | column-gap */
    background-color: var(--brown);
    /* Unnoda color variable */
    padding: 60px 20px;
    /* Top/Bottom | Left/Right */
}

/* ===== Oru Oru Service kum Wrapper ===== */
.service-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    /* Default ah (Mobile view ku) full width */
    max-width: 500px;
    /* Tablet la romba perusa theriyama irukka */
}

/* ===== Service Card Style ===== */
.service-card {
    width: 100%;
    height: 400px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    background-color: var(--light-text);
    /* Unnoda color variable */
    padding: 10px;
}

.service-card.construction {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(255, 165, 0, 0.3);
}

.service-card.designs {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(0, 206, 209, 0.3);
}

.service-card .card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease, filter 0.5s ease;
    border-radius: 20px;
}

/* ===== Default Title (Responsive Font Size Magic Ippo Inga Thaan) ===== */
.service-title-default {
    font-family: 'Teko', sans-serif;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    /* Chinna screen la nalla irukka */
    transition: color 0.4s ease;

    /* Smooth ah font size maarurathukku aana magic */
    /* clamp(MINIMUM-SIZE, PREFERRED-DYNAMIC-SIZE, MAXIMUM-SIZE) */
    font-size: clamp(2rem, 1.5rem + 3vw, 3.5rem);
}

/* ===== Hover Effects ===== */
.service-wrapper:hover .service-title-default {
    color: #ffae00;
}

.service-wrapper.designs:hover .service-title-default {
    color: #00e5e9;
}

.service-card:hover {
    transform: scale(1.05) translateY(-10px);
}

.service-card.construction:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7),
        0 0 45px rgba(255, 165, 0, 0.6);
}

.service-card.designs:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7),
        0 0 45px rgba(0, 206, 209, 0.7);
}

.service-card:hover .card-image {
    transform: scale(1.15);
    filter: brightness(0.7);
}

/* ===== Hover la Ulla Vara Content ===== */
.card-content-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.5s ease;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 30%, transparent);
}

.service-card:hover .card-content-hover {
    transform: translateY(0);
    opacity: 1;
}

.card-content-hover h2 {
    font-family: 'Teko', sans-serif;
    color: #fff;
    font-size: 2.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}


.card-content-hover .btn {
    font-family: 'Poppins', sans-serif;
    padding: 8px 25px;
    background-color: #ffae00;
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.service-card.designs .btn {
    background-color: #00e5e9;
}

.card-content-hover .btn:hover {
    background-color: #fff;
    transform: scale(1.1);
}

/* ===== IPPO ITHU THAAN RESPONSIVE SETUP ===== */
/* Laptop and Desktop view (1024px mela) */
@media (min-width: 1024px) {
    .service-wrapper {
        width: calc(50% - 40px);
        max-width: 550px;
        /* Romba periya desktop la over ah viriyama irukka */
    }
}

@media(max-width:450px) {
    .card-content-hover h2 {
        font-size: 30px !important;
    }
}

.home-contact-button {
    /* Basic button styles */
    background-color: var(--primary-orange);
    /* Default background color */
    color: var(--light-text);
    /* Text color */
    padding: 12px 25px;
    /* Padding for button size */
    border: none;
    /* Remove default border */
    border-radius: 5px;
    /* Slightly rounded corners */
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    /* Pointer on hover */
    overflow: hidden;
    /* This is crucial for the animation to work */
    position: relative;
    /* For positioning the pseudo-element */
    z-index: 1;
    /* Make sure button content is above the hover effect */
    transition: color 0.4s ease-in-out;
    /* Smooth transition for text color */
}

.home-contact-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-text);
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    z-index: -1;
}

.home-contact-button:hover {
    color: var(--light-text);
    /* Change text color on hover if needed (optional) */
}

.home-contact-button:hover::before {
    transform: translateY(0);
    /* On hover, move it up to cover the button */
}