/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #D4774C;
    --secondary-color: #2C3E50;
    --beige-color: #F5E6D3;
    --dark-beige: #E8D4BA;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --text-color: #2d2d2d;
    --gray-color: #6c757d;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --shadow-modern: 0 20px 60px rgba(0, 0, 0, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    overflow-x: hidden;
    letter-spacing: 0.5px;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    letter-spacing: 1px;
}

p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation - Floating White Bar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 80px);
    max-width: 1380px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 0.575rem 1.725rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    animation: slideDown 0.8s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.navbar.scrolled {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.98);
    top: 10px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 9.2px;
    font-size: 1.09rem;
    font-weight: 700;
    color: var(--text-color);
    animation: slideInLeft 0.8s ease;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    font-weight: 500;
    letter-spacing: 0.575px;
}

.logo-icon {
    font-size: 1.495rem;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.07rem;
    align-items: center;
    animation: slideInRight 0.8s ease;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.9775rem;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Active/Current page indicator */
.nav-menu a.active {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.nav-menu a.btn-primary.active {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(212, 119, 76, 0.3);
}

.nav-menu a.btn-primary.active::after {
    display: none;
}

.nav-menu a.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5175rem 1.495rem;
    border-radius: 23px;
    transition: all 0.3s ease;
    font-size: 0.92rem;
}

.nav-menu a.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 119, 76, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: all 0.3s ease;
}

/* Hero Section - New Design */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: zoomIn 1.5s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(1.1);
    }
    to {
        transform: scale(1);
    }
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-text-overlay {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    opacity: 0;
    animation: fadeInUp 1.2s ease 0.5s forwards;
}

.hero-text-overlay h1 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--white);
    margin: 0;
    font-family: 'Cinzel', serif;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.hero-text-overlay .subtitle {
    font-size: 0.65rem;
    letter-spacing: 2.5px;
    margin-top: 0.6rem;
    opacity: 0.95;
    font-weight: 300;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}

/* Hero Content Section - Complete Redesign */
.hero-content-section {
    background: #AAAC82;
    padding: 8rem 0;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    overflow: hidden;
}

.hero-content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    transform-style: preserve-3d;
    transition: transform 0.3s ease-out;
    position: relative;
    z-index: 1;
}

.hero-text-content {
    opacity: 0;
    transform: translateY(50px) translateZ(-50px) rotateX(5deg);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-text-content.scroll-animate {
    opacity: 1;
    transform: translateY(0) translateZ(0) rotateX(0deg);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-main-title {
    font-size: 5rem;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #2d2d2d;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.title-highlight {
    color: #ffffff;
    display: block;
    font-style: normal;
    font-weight: 700;
    letter-spacing: -0.5px;
    font-family: 'Space Grotesk', sans-serif;
    margin-top: 0.5rem;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.7;
    color: rgba(45, 45, 45, 0.85);
    margin-bottom: 3rem;
    font-weight: 400;
    letter-spacing: 0.2px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Lora', serif;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 1.3rem 3.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    letter-spacing: 2px;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
}

.btn-primary-modern {
    background: #2d2d2d;
    color: #ffffff;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 2px solid #2d2d2d;
}

.btn-primary-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.btn-outline-modern {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
}

.btn-outline-modern:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Stats Cards Modern with Flying Animation */
.hero-stats-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-stats-modern .stat-card {
    opacity: 0;
    transform: translateY(150px) translateX(var(--fly-x)) rotate(var(--fly-rotate));
}

.hero-stats-modern.scroll-animate .stat-card {
    animation: flyIntoPosition 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes flyIntoPosition {
    0% {
        opacity: 0;
        transform: translateY(150px) translateX(var(--fly-x)) translateZ(-150px) rotate(var(--fly-rotate));
    }
    50% {
        opacity: 0.5;
        transform: translateY(30px) translateX(calc(var(--fly-x) * 0.3)) translateZ(-30px) rotate(calc(var(--fly-rotate) * 0.4));
    }
    75% {
        transform: translateY(-8px) translateX(0) translateZ(15px) rotate(0deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) translateX(0) translateZ(0) rotate(0deg);
    }
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2.5rem 1.5rem;
    border-radius: 0;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.stat-card:nth-child(1) {
    --fly-x: -150px;
    --fly-rotate: -15deg;
}

.stat-card:nth-child(2) {
    --fly-x: 150px;
    --fly-rotate: 15deg;
}

.stat-card:nth-child(3) {
    --fly-x: -150px;
    --fly-rotate: -12deg;
}

.stat-card:nth-child(4) {
    --fly-x: 150px;
    --fly-rotate: 12deg;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.stat-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.25);
}

.stat-number-modern {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 0.8rem;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -2px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.stat-number-modern::after {
    content: '';
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    border-radius: 50%;
}

.stat-card:hover .stat-number-modern {
    transform: scale(1.1);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-card:hover .stat-number-modern::after {
    opacity: 1;
}

.stat-label-modern {
    display: block;
    font-size: 0.7rem;
    color: rgba(45, 45, 45, 0.9);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-family: 'Space Grotesk', sans-serif;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-card:hover .stat-label-modern {
    color: #2d2d2d;
}

/* Section Styles */
section {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
}

.section-tag.animate {
    animation: slideUp 0.6s ease forwards;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--dark-color);
    opacity: 0;
    transform: translateY(20px);
}

.section-title.animate {
    animation: slideUp 0.6s ease 0.1s forwards;
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
}

.section-description.animate {
    animation: slideUp 0.6s ease 0.2s forwards;
}

/* About Section - Complete Redesign */
.about {
    background: var(--white);
    position: relative;
    padding: 8rem 0;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><rect width="60" height="60" fill="none" stroke="%23F5E6D3" stroke-width="1"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.about .container {
    position: relative;
    z-index: 1;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: start;
}

.about-text-block {
    position: sticky;
    top: 120px;
}

.about-text-block p {
    font-size: 1.15rem;
    line-height: 2;
    color: #666;
    margin-bottom: 2rem;
    font-family: 'Lora', serif;
}

.about-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.about-feature-card {
    padding: 2rem 2rem;
    background: rgba(170, 172, 130, 0.05);
    border-left: 4px solid #AAAC82;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.about-feature-card:hover {
    background: rgba(170, 172, 130, 0.1);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.feature-number {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(170, 172, 130, 0.15);
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1;
}

.about-feature-card h4 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

.about-feature-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.85rem;
}

/* Services Section - COMPLETE REWRITE */
.services {
    background: #f9f9f9;
    padding: 8rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    position: relative;
    height: 500px;
    overflow: hidden;
    cursor: pointer;
    background: #2d2d2d;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card.animate {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.service-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.1);
}

.service-card[data-service="residential"] .service-image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)),
                      url('assets/images/services/residential-construction.jpg');
}

.service-card[data-service="commercial"] .service-image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)),
                      url('assets/images/services/commercial-building.jpg');
}

.service-card[data-service="renovation"] .service-image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)),
                      url('assets/images/services/renovation-remodeling.jpg');
}

.service-card[data-service="design"] .service-image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)),
                      url('assets/images/services/design-planning.jpg');
}

.service-card:hover .service-image {
    transform: scale(1);
    filter: brightness(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.service-card:hover .service-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.service-number {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-20px);
    opacity: 0;
}

.service-card:hover .service-number {
    transform: translateY(0);
    opacity: 1;
    color: rgba(255, 255, 255, 0.15);
}

.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    z-index: 10;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-content {
    transform: translateY(0);
}

.service-content h3 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.service-content p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
    opacity: 0.8;
    transform: translateY(10px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.service-card:hover .service-content p {
    opacity: 1;
    transform: translateY(0);
}

.service-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.service-card:hover .service-link {
    opacity: 1;
    transform: translateX(0);
}

.service-link {
    background: none;
    border: none;
    cursor: pointer;
}

.service-link svg {
    transition: all 0.3s ease;
    stroke-width: 2;
}

.service-link:hover {
    gap: 1rem;
    letter-spacing: 2px;
}

.service-link:hover svg {
    transform: translateX(5px);
}

/* Service Subcategories Container - Redesigned with Images */
.services-subcategories-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
    padding: 4rem 2rem;
}

.services-subcategories-container.active {
    opacity: 1;
    visibility: visible;
}

.subcategories-close-btn {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #AAAC82;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.subcategories-close-btn:hover {
    background: #8a8c62;
    transform: rotate(90deg) scale(1.1);
}

.subcategories-close-btn svg {
    stroke: white;
    width: 24px;
    height: 24px;
}

.subcategories-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    align-items: start;
}

.subcategories-main-card {
    position: sticky;
    top: 2rem;
}

.subcategories-info {
    margin-bottom: 2rem;
}

.subcategories-content h3 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    opacity: 0;
    transform: translateY(30px);
}

.services-subcategories-container.active .subcategories-content h3 {
    animation: slideUp 0.6s ease 0.2s forwards;
}

.subcategories-content h4 {
    color: #AAAC82;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 3rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    opacity: 0;
    transform: translateY(30px);
}

.services-subcategories-container.active .subcategories-content h4 {
    animation: slideUp 0.6s ease 0.3s forwards;
}

.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.subcategory-item {
    position: relative;
    height: 350px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    opacity: 0;
    transform: scale(0.9);
}

.services-subcategories-container.active .subcategory-item:nth-child(1) {
    animation: scaleIn 0.6s ease 0.4s forwards;
}

.services-subcategories-container.active .subcategory-item:nth-child(2) {
    animation: scaleIn 0.6s ease 0.5s forwards;
}

.services-subcategories-container.active .subcategory-item:nth-child(3) {
    animation: scaleIn 0.6s ease 0.6s forwards;
}

.services-subcategories-container.active .subcategory-item:nth-child(4) {
    animation: scaleIn 0.6s ease 0.7s forwards;
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.subcategory-item-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: all 0.6s ease;
}

.subcategory-item:hover .subcategory-item-image {
    transform: scale(1.1);
}

.subcategory-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transition: all 0.4s ease;
}

.subcategory-item:hover .subcategory-item-overlay {
    padding-bottom: 2.5rem;
}

.subcategory-item h5 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.subcategory-item:hover h5 {
    color: #AAAC82;
}

.subcategory-item p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-subcategories {
    display: none;
}

/* Projects Section - Automatic Horizontal Scrolling Collage */
.projects {
    background: #f5f5f5;
    padding: 8rem 0;
    overflow: hidden;
}

/* Current Projects Section - Different background to distinguish */
.current-projects {
    background: #fafafa;
    border-top: 3px solid var(--primary-color);
    position: relative;
}

.current-projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #e67e5a);
}

.projects-collage {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
    animation: autoScroll 60s linear infinite;
    width: max-content;
}

.projects-collage:hover {
    animation-play-state: paused;
}

@keyframes autoScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.project-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

/* Varied sizes for collage effect - width and height - REDUCED FOR BETTER DISPLAY */
.project-card:nth-child(1) {
    width: 280px;
    height: 400px;
}

.project-card:nth-child(2) {
    width: 240px;
    height: 300px;
    margin-top: 80px;
}

.project-card:nth-child(3) {
    width: 300px;
    height: 450px;
}

.project-card:nth-child(4) {
    width: 260px;
    height: 350px;
    margin-top: 60px;
}

.project-card:nth-child(5) {
    width: 290px;
    height: 380px;
    margin-top: 40px;
}

.project-card:nth-child(6) {
    width: 280px;
    height: 480px;
}

.project-card:nth-child(7) {
    width: 250px;
    height: 320px;
    margin-top: 90px;
}

.project-card:nth-child(8) {
    width: 300px;
    height: 420px;
    margin-top: 30px;
}

.project-card:nth-child(9) {
    width: 270px;
    height: 360px;
    margin-top: 70px;
}

.project-card:nth-child(10) {
    width: 290px;
    height: 440px;
}

.project-card:nth-child(11) {
    width: 250px;
    height: 310px;
    margin-top: 85px;
}

.project-card:nth-child(12) {
    width: 290px;
    height: 390px;
    margin-top: 50px;
}

.project-card:nth-child(13) {
    width: 260px;
    height: 340px;
    margin-top: 55px;
}

.project-card:nth-child(14) {
    width: 280px;
    height: 380px;
    margin-top: 75px;
}

.project-card:nth-child(15) {
    width: 300px;
    height: 430px;
}

.project-card:nth-child(16) {
    width: 250px;
    height: 330px;
    margin-top: 95px;
}

.project-card:nth-child(17) {
    width: 290px;
    height: 410px;
    margin-top: 40px;
}

.project-card:nth-child(18) {
    width: 270px;
    height: 360px;
    margin-top: 65px;
}

.project-card:nth-child(19) {
    width: 290px;
    height: 450px;
}

.project-card:nth-child(20) {
    width: 260px;
    height: 320px;
    margin-top: 100px;
}

.project-card:nth-child(21) {
    width: 280px;
    height: 410px;
    margin-top: 50px;
}

.project-card:nth-child(22) {
    width: 280px;
    height: 390px;
    margin-top: 70px;
}

.project-card:nth-child(23) {
    width: 270px;
    height: 350px;
    margin-top: 90px;
}

.project-card:nth-child(24) {
    width: 290px;
    height: 450px;
    margin-top: 35px;
}

.project-image {
    width: 100%;
    height: 100%;
    min-height: 250px;
    max-height: 480px;
    position: relative;
    overflow: hidden;
}

.project-image img,
.project-image video {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image img,
.project-card:hover .project-image video {
    transform: scale(1.15);
}

.project-card:hover {
    transform: translateY(-5px);
    z-index: 10;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-overlay {
    opacity: 1;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.9) 100%);
}

.project-content {
    width: 100%;
}

.project-category {
    display: inline-block;
    font-size: 0.75rem;
    color: #AAAC82;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.project-overlay h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.project-card:hover .project-overlay h3 {
    transform: translateY(0);
}

.project-overlay p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.1s;
}

.project-card:hover .project-overlay p {
    opacity: 1;
    transform: translateY(0);
}

.project-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease 0.2s;
}

.project-card:hover .project-link {
    opacity: 1;
    transform: translateX(0);
}

.project-link:hover {
    gap: 1rem;
}

.project-link svg {
    transition: all 0.3s ease;
}

/* Responsive Auto-Scroll Layout */
@media (max-width: 768px) {
    .projects-collage {
        animation: autoScroll 40s linear infinite;
    }

    .project-card {
        width: 280px !important;
        height: 400px !important;
        margin-top: 0 !important;
    }
}

/* Testimonials Section */
.testimonials {
    background: linear-gradient(135deg, var(--beige-color) 0%, var(--light-color) 100%);
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M10 10 Q 30 30, 50 10" stroke="%23D4774C" fill="none" opacity="0.05"/></svg>');
    z-index: 0;
}

.testimonials .container {
    position: relative;
    z-index: 1;
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    min-height: 300px;
}

.testimonial-card {
    background: var(--white);
    padding: 3.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-modern);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.5s ease;
    pointer-events: none;
    border: 1px solid var(--dark-beige);
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: relative;
}

.testimonial-card.prev {
    transform: translateX(-100px);
}

.quote-icon {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
}

.author-info h4 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 0.2rem;
}

.author-info p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Contact Section */
.contact {
    background: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--gray-color);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.info-icon {
    font-size: 1.5rem;
    min-width: 40px;
}

.info-item h4 {
    color: var(--dark-color);
    margin-bottom: 0.3rem;
}

.info-item p {
    color: var(--gray-color);
}

.contact-form-wrapper {
    background: var(--light-color);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid transparent;
    border-radius: 10px;
    background: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.2);
}

.btn-full {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Responsive Design */
@media (max-width: 968px) {
    .navbar {
        width: calc(100% - 40px);
        top: 15px;
        padding: 0.8rem 1.5rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 90px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        width: calc(100% - 40px);
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-radius: 30px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        left: 50%;
        transform: translateX(-50%) translateY(-100vh);
        backdrop-filter: blur(20px);
    }

    .nav-menu.active {
        transform: translateX(-50%) translateY(0);
    }

    .hamburger {
        display: flex;
    }

    .hero-text-overlay h1 {
        font-size: 3rem;
        letter-spacing: 4px;
    }

    .hero-text-overlay .subtitle {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-main-title {
        font-size: 2.5rem;
    }

    .hero-stats-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }

    .stat-number-modern {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-text-block {
        position: relative;
        top: 0;
    }

    .about-features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .project-card {
        height: 400px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        height: 450px;
    }

    .service-content h3 {
        font-size: 1.6rem;
    }

    .service-number {
        font-size: 4rem;
        top: 1.5rem;
        right: 1.5rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        width: calc(100% - 30px);
        padding: 0.7rem 1.2rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .hero {
        height: 70vh;
        min-height: 500px;
    }

    .hero-text-overlay h1 {
        font-size: 2.2rem;
        letter-spacing: 3px;
    }

    .hero-text-overlay .subtitle {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
    }

    .hero-main-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .stat-number-modern {
        font-size: 1.8rem;
    }

    .btn {
        padding: 0.9rem 2rem;
        font-size: 0.9rem;
    }

    .about-features-grid {
        grid-template-columns: 1fr;
    }

    .about-feature-card {
        padding: 2rem;
    }

    .feature-number {
        font-size: 3rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        height: 350px;
    }

    .service-card {
        height: 400px;
    }

    .service-content {
        padding: 2rem;
    }

    .service-content h3 {
        font-size: 1.4rem;
    }

    .service-content p {
        font-size: 0.85rem;
    }

    .service-number {
        font-size: 3rem;
        top: 1rem;
        right: 1rem;
    }

    .service-overlay {
        padding: 2rem;
    }

    .testimonial-card {
        padding: 2rem;
    }
}

/* Estimate Calculator Section */
.estimate-calculator {
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    padding: 4rem 0;
    position: relative;
    margin-top: 100px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.calculator-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    position: relative;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    min-height: 400px !important;
}

.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.progress-step.active .step-number {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(212, 119, 76, 0.3);
}

.progress-step.completed .step-number {
    background: #28a745;
    color: var(--white);
}

.step-label {
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.progress-step.active .step-label {
    color: var(--primary-color);
}

.progress-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 1rem;
    margin-top: -25px;
}

.progress-step.active ~ .progress-step .progress-line,
.progress-step.completed ~ .progress-step .progress-line {
    background: var(--primary-color);
}

.calculator-step {
    display: none;
    animation: fadeIn 0.5s ease;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.calculator-step.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

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

.step-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.step-header h3 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-family: 'Cormorant Garamond', serif;
}

.step-header p {
    color: var(--gray-color);
    font-size: 1rem;
}

.step-content {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-select {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
    color: var(--text-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 119, 76, 0.1);
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.material-card {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.material-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.material-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.material-card.mandatory {
    background: #fff5f0;
    border-color: var(--primary-color);
}

.material-card.mandatory .material-image {
    background: #ffe8e0;
}

.material-card.recommended {
    background: #f0f9ff;
}

.material-card.recommended .material-image {
    background: #d0e8ff;
}

.material-card.optional {
    background: #f9f9f9;
}

.material-card.optional .material-image {
    background: #e8e8e8;
}

.material-checkbox {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}

.material-options {
    padding: 0 1.5rem 1rem 1.5rem;
}

.material-select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: inherit;
    background: var(--white);
    color: var(--text-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.material-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(212, 119, 76, 0.1);
}

.material-card.mandatory .material-select {
    background: #fff;
    border-color: var(--primary-color);
}

.material-card.recommended .material-select {
    background: #fff;
}

.material-card.optional .material-select {
    background: #fff;
}

/* Brand Selector Styles */
.brand-selector {
    position: relative;
    width: 100%;
}

.brand-selector-trigger {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: inherit;
    background: var(--white);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.brand-selector-trigger:hover {
    border-color: var(--primary-color);
}

.brand-selector.active .brand-selector-trigger {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(212, 119, 76, 0.1);
}

.selected-brand {
    flex: 1;
    text-align: left;
}

.brand-arrow {
    font-size: 0.7rem;
    color: var(--gray-color);
    transition: transform 0.3s ease;
}

.brand-selector.active .brand-arrow {
    transform: rotate(180deg);
}

.brand-options-grid {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 1rem;
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.brand-selector.active .brand-options-grid {
    display: grid;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.brand-option:hover {
    border-color: var(--primary-color);
    background: #fff5f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 119, 76, 0.2);
}

.brand-option.selected {
    border-color: var(--primary-color);
    background: #fff5f0;
    box-shadow: 0 0 0 3px rgba(212, 119, 76, 0.1);
}

.brand-option img {
    width: 80px;
    height: 50px;
    object-fit: contain;
    background: var(--white);
    padding: 0.3rem;
    border-radius: 4px;
}

.brand-option span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark-color);
    text-align: center;
}

/* Brand Selector Button */
.brand-selector-btn {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: inherit;
    background: var(--white);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.brand-selector-btn:hover {
    border-color: var(--primary-color);
    background: #fff5f0;
}

.brand-selector-btn .brand-arrow {
    font-size: 0.7rem;
    color: var(--gray-color);
    transition: transform 0.3s ease;
}

/* Brand Modal */
.brand-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.brand-modal.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Force brand modal visibility when display is set via inline style */
.brand-modal[style*="display: flex"] {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: rgba(0, 0, 0, 0.7) !important;
}

/* Ensure modal content is always visible when modal is shown */
.brand-modal.active .brand-modal-content,
.brand-modal[style*="display: flex"] .brand-modal-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure modal body is visible */
.brand-modal.active .brand-modal-body,
.brand-modal[style*="display: flex"] .brand-modal-body {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure brand grid is visible */
.brand-modal-grid {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure brand cards are visible */
.brand-modal-card {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.brand-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.brand-modal-content {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    animation: modalSlideIn 0.3s ease;
}

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

.brand-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), #e67e5a);
    color: var(--white);
}

.brand-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.brand-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.brand-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.brand-modal-body {
    padding: 2rem;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.brand-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.brand-modal-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border: 3px solid #e0e0e0;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9f9f9;
    text-align: center;
}

.brand-modal-card:hover {
    border-color: var(--primary-color);
    background: #fff5f0;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 119, 76, 0.2);
}

.brand-modal-card.selected {
    border-color: var(--primary-color);
    background: #fff5f0;
    box-shadow: 0 0 0 4px rgba(212, 119, 76, 0.1);
}

.brand-modal-card img {
    width: 120px;
    height: 80px;
    object-fit: contain;
    background: var(--white);
    padding: 0.5rem;
    border-radius: 8px;
}

.brand-modal-card span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-color);
}

.material-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.material-checkbox label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    cursor: pointer;
}

.material-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--primary-color);
}

.material-card.recommended .material-label {
    color: #0066cc;
}

.material-card.optional .material-label {
    color: #666;
}

.material-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.material-card input[type="checkbox"]:checked + label .material-name {
    color: var(--primary-color);
}

.step-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-next,
.btn-prev {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

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

.btn-next:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 119, 76, 0.3);
}

.btn-prev {
    background: #e0e0e0;
    color: var(--text-color);
}

.btn-prev:hover {
    background: #d0d0d0;
}

.estimate-results {
    margin-bottom: 2rem;
}

.estimate-summary {
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item.highlight {
    background: rgba(212, 119, 76, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
    border: 2px solid var(--primary-color);
}

.summary-label {
    font-size: 1rem;
    color: var(--gray-color);
    font-weight: 500;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    font-family: 'Space Grotesk', sans-serif;
}

.summary-value.total {
    font-size: 2rem;
    color: var(--primary-color);
}

.estimate-details {
    background: #f9f9f9;
    border-radius: 15px;
    padding: 2rem;
}

.estimate-details h4 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem;
    background: var(--white);
    border-radius: 8px;
}

.detail-label {
    font-weight: 600;
    color: var(--gray-color);
}

.detail-value {
    font-weight: 600;
    color: var(--dark-color);
}

.btn-primary-estimate {
    background: #D4774C !important;
    color: #ffffff !important;
    padding: 1rem 2.5rem !important;
    border: 3px solid #333 !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease;
    font-family: inherit !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    min-height: 50px !important;
}

.btn-primary-estimate:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 119, 76, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

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

/* Contact Form Styles */
.contact-form-wrapper-simple {
    max-width: 600px !important;
    width: 100% !important;
    margin: 2rem auto !important;
    background: #f0f0f0 !important;
    border: 3px solid #333 !important;
    border-radius: 15px !important;
    padding: 2.5rem !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 500px !important;
    position: relative !important;
    z-index: 10 !important;
    overflow: visible !important;
}

.contact-form-simple {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    min-height: 400px !important;
    position: relative !important;
    z-index: 10 !important;
}

.form-input {
    width: 100% !important;
    min-width: 200px !important;
    padding: 1rem 1.2rem !important;
    border: 2px solid #333 !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    font-family: inherit !important;
    background: #ffffff !important;
    color: #000000 !important;
    transition: all 0.3s ease;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 119, 76, 0.1);
}

.otp-input-group {
    display: flex !important;
    gap: 0.5rem;
    margin-top: 0.5rem;
    align-items: stretch;
    visibility: visible !important;
    opacity: 1 !important;
}

.otp-input-group .form-input {
    flex: 1;
    min-width: 0;
}

.otp-input-group .form-input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 1;
    border: 2px dashed #d0d0d0;
}

.otp-input-group .form-input:not(:disabled) {
    background-color: var(--white);
    cursor: text;
    opacity: 1;
}

.btn-otp {
    padding: 1rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
    min-width: 120px;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.btn-otp:hover {
    background: #c0664a;
    border-color: #c0664a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 119, 76, 0.3);
}

.btn-otp:disabled {
    background: #ccc;
    border-color: #ccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
}

.btn-full {
    width: 100%;
}

.form-footer {
    text-align: center;
    margin-top: 1rem;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-help-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray-color);
    font-style: italic;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1.5rem;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.form-group label {
    display: block !important;
    margin-bottom: 0.5rem !important;
    font-weight: 600 !important;
    color: #000000 !important;
    font-size: 0.95rem !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
}

.form-note {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray-color);
    line-height: 1.6;
}

/* Responsive Design for Calculator */
@media (max-width: 968px) {
    .calculator-wrapper {
        padding: 2rem;
    }

    .materials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .material-image {
        height: 120px;
    }

    .material-select {
        font-size: 0.8rem;
        padding: 0.5rem 0.6rem;
    }

    .brand-options-grid {
        grid-template-columns: repeat(2, 1fr);
        max-height: 250px;
    }

    .brand-option img {
        width: 60px;
        height: 40px;
    }

    .brand-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .brand-modal-header {
        padding: 1rem 1.5rem;
    }

    .brand-modal-header h3 {
        font-size: 1.2rem;
    }

    .brand-modal-body {
        padding: 1.5rem;
    }

    .brand-modal-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
    }

    .brand-modal-card {
        padding: 1rem;
    }

    .brand-modal-card img {
        width: 100px;
        height: 60px;
    }

    .brand-modal-card span {
        font-size: 0.8rem;
    }

    .contact-form-wrapper-simple {
        padding: 1.5rem;
    }

    .otp-input-group {
        flex-direction: column;
    }

    .btn-otp {
        width: 100%;
    }

    .estimate-calculator {
        margin-top: 80px;
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .calculator-wrapper {
        padding: 1.5rem;
    }

    .materials-grid {
        grid-template-columns: 1fr;
    }

    .material-image {
        height: 150px;
    }

    .material-select {
        font-size: 0.75rem;
        padding: 0.5rem;
    }

    .brand-options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0.8rem;
        max-height: 200px;
    }

    .brand-option {
        padding: 0.6rem;
    }

    .brand-option img {
        width: 50px;
        height: 35px;
    }

    .brand-option span {
        font-size: 0.7rem;
    }

    .brand-modal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .brand-modal-card {
        padding: 0.8rem;
    }

    .brand-modal-card img {
        width: 80px;
        height: 50px;
    }

    .brand-modal-card span {
        font-size: 0.75rem;
    }

    .material-checkbox {
        padding: 1rem;
        padding-top: 0.8rem;
        padding-bottom: 0.3rem;
    }

    .material-options {
        padding: 0 1rem 0.8rem 1rem;
    }

    .contact-form-wrapper-simple {
        padding: 1rem;
    }

    .otp-input-group {
        flex-direction: column;
    }

    .btn-otp {
        width: 100%;
        margin-top: 0.5rem;
    }

    .step-actions {
        flex-direction: column;
    }

    .btn-next,
    .btn-prev,
    .btn-primary-estimate,
    .btn-secondary {
        width: 100%;
    }

    .estimate-calculator {
        margin-top: 70px;
        padding: 2rem 0;
    }
}
