:root {
    --primary-orange: #e20604;
    --dark-bg: #1f2329;
    --light-text: #ffffff;
    --dark-text: #333333;
    --navbar-height: 100px !important;
    --topbar-height: 40px;
    --brown: #7a1823;
}

.design-content-panel {
    /* ... மத்த styles எல்லாம் அப்படியே ... */
    
    /* Pazhasu: box-shadow: 0 5px 15px #fff; */
    
    /* Pudhusu: */
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1); /* White color la oru chinna glow effect */
}


.design-section-wrapper{
    color: var(--light-text);
}

.dark-bg-section{
    background-color: var(--dark-text);
}


/* Section Title - Rendu edathulayum use aagum */
.section-title {
    text-align: center;
    /* margin-bottom: 40px; */
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    font-weight: 700;
    /* Title konjam bold ah irukattum */
}

.section-title h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* =================================== */
/*        CONSTRUCTION SECTION         */
/* =================================== */

.construction-container {
    display: flex;
    align-items: center;
    gap: 30px;
    background: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    /* Inga thaan andha rendu section-kum naduvula space varudhu */
    margin-bottom: 40px;
}

.service-image-slider {
    flex: 1;
    min-width: 300px;
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1);
}

.slider-image.active {
    opacity: 1;
    animation: kenburnsZoom 7s linear infinite;
    /* Animation name, duration */
}

/* Zoom in aagura animation - Ken Burns Effect */
@keyframes kenburnsZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

.service-content {
    flex: 1;
}

.service-content h3 {
    font-size: 2rem;
    color: var(--primary-orange) !important;
    margin-bottom: 15px;
}

/* =================================== */
/*          DESIGN SECTION             */
/* =================================== */

.design-section-wrapper {
    /* Mela, keezha space kaga PADDING use panrom. Idhu thaan nee ketta maatham */
    padding-top: 50px;
    padding-bottom: 20px;
    margin-top: 0;
}

/* Dark background-la heading color-ah maathurom */
.design-section-wrapper .section-title h2,
.design-section-wrapper .section-title p {
    color: var(--white-color);
    /* White color */
}

.design-title {
    margin-bottom: 30px;
}

.design-types-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.design-type-card {
    background: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(206, 202, 202, 0.493);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.design-type-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px var(--brown);
}

.design-type-card.active-card {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.design-type-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.design-type-card h4 {
    padding: 20px;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

/* Design Content Panel (Click pannathum varadhu) */
.design-content-display {
    margin-top: 30px;
}

.design-content-panel {
    display: none;
    /* Default ah hide panni vekkanum */
    gap: 20px;
    background: var(--white-color);
    padding: 0;
    /* Active aagum bodhu thaan padding varanum */
    border-radius: 10px;
    box-shadow: 0 5px 15px #fff;
    /* Smooth-ah open aaga idhu thaan mukkiyam */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.7s ease-in-out, opacity 0.5s ease-in-out, padding 0.5s ease;
}

.design-content-panel.active {
    display: flex;
    /* Active aana flex la kaatanum */
    max-height: 800px;
    /* Oru periya value */
    opacity: 1;
    padding: 25px;
    /* Re-apply padding */
}

.design-content-panel img {
    flex: 1;
    max-width: 40%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.panel-text {
    flex: 1.5;
}

.panel-text h5 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.learn-more-btn {
  position: relative;
  display: inline-block;
  padding: 12px 54px;
  font-size: 16px;
  color: white;
  background-color: var(--primary-orange); /* initial background color */
  border: none;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
  margin-bottom: 30px;
}

.learn-more-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%; /* start from right */
  width: 100%;
  height: 100%;
  background-color: var(--brown); /* hover color */
  transition: left 0.4s ease;
  z-index: -1;
}

.learn-more-btn:hover::before {
  left: 0; /* slide to left */
}

.learn-more-btn:focus {
  outline: none;
}


/* =================================== */
/*     RESPONSIVE DESIGN (Mobile)      */
/* =================================== */

@media (max-width: 992px) {
    .construction-container {
        flex-direction: column;
    }

    .service-image-slider {
        height: 300px;
        width: 100%;
    }

    .design-content-panel {
        flex-direction: column;
    }

    .design-content-panel.active {
        max-height: 1500px;
    }

    .design-content-panel img {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem;
    }

    .design-types-container {
        grid-template-columns: 1fr;
    }
}


