/* Residential Projects Page Styles */
:root {
    --primary-blue: #2563eb;
    --dark-blue: #1d4ed8;
    --light-blue: #dbeafe;
    --accent-blue: #3b82f6;
    --white: #ffffff;
    --off-white: #f8fafc;
    --light-gray: #f1f5f9;
    --medium-gray: #e2e8f0;
    --dark-gray: #64748b;
    --text-dark: #1e293b;
    --success-green: #10b981;
    --warning-yellow: #f59e0b;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 12px;
    --radius-lg: 20px;
}

/* Animation Classes */
.animate-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.animate-image {
    opacity: 0;
    transform: scale(0.9);
    animation: fadeInScale 0.8s ease 0.2s forwards;
}

.animate-header {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.animate-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.animate-left {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.8s ease forwards;
}

.animate-right {
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Residential Hero Section */
.residential-hero {
    padding: 140px 0 100px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--dark-blue));
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--dark-gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 5px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--dark-gray);
    font-weight: 500;
}

.hero-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--medium-gray);
    transition: var(--transition);
}

.badge:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.badge i {
    color: var(--primary-blue);
    font-size: 18px;
}

.badge span {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

/* Hero Image Slider */
.hero-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    height: 400px;
}

.image-slider {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px;
    color: var(--white);
}

.slide-overlay h3 {
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: 600;
}

.slide-overlay p {
    margin: 0;
    opacity: 0.9;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.slider-controls button {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: var(--primary-blue);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-controls button:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: scale(1.1);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
}

.scroll-down:hover {
    transform: translateY(5px);
}

.scroll-down i {
    font-size: 24px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.scroll-down span {
    font-size: 14px;
    font-weight: 500;
}

/* Project Stats */
.project-stats {
    padding: 60px 0;
    background: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--light-blue);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--light-blue), var(--white));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-blue);
    border: 2px solid var(--light-blue);
    transition: var(--transition);
}

.stat-card:hover .stat-icon {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    transform: rotate(10deg);
}

.stat-content h3 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-content p {
    color: var(--dark-gray);
    font-size: 14px;
    margin: 0;
}

/* Featured Projects */
.featured-projects {
    padding: 100px 0;
    background: var(--off-white);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 42px;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header .highlight {
    color: var(--primary-blue);
    position: relative;
}

.section-header .highlight::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-blue);
    transform: scaleX(0);
    transform-origin: left;
    animation: highlightExpand 1s ease 0.5s forwards;
}

@keyframes highlightExpand {
    to {
        transform: scaleX(1);
    }
}

.section-description {
    font-size: 18px;
    color: var(--dark-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.projects-filter {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 12px 24px;
    background: var(--white);
    border: 2px solid var(--medium-gray);
    border-radius: 50px;
    color: var(--dark-gray);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.filter-btn:hover:not(.active) {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--success-green);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-badge.premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-project {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--white);
    color: var(--primary-blue);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.view-project:hover {
    transform: scale(1.1);
    gap: 15px;
}

.project-content {
    padding: 25px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
}

.project-type, .project-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--dark-gray);
}

.project-type i, .project-location i {
    color: var(--primary-blue);
}

.project-content h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.project-content p {
    color: var(--dark-gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.project-features span {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--light-blue);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary-blue);
}

.project-features i {
    font-size: 10px;
}

.project-stats {
    display: flex;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--medium-gray);
}

.project-stats .stat {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.project-stats .stat i {
    font-size: 24px;
    color: var(--primary-blue);
    background: var(--light-blue);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-stats .stat h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.project-stats .stat small {
    display: block;
    font-size: 12px;
    color: var(--dark-gray);
}

.load-more {
    text-align: center;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-load-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4);
    gap: 15px;
}

.btn-load-more i {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Installation Process */
.installation-process {
    padding: 100px 0;
    background: var(--white);
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-blue), var(--accent-blue));
    border-radius: 3px;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    flex-shrink: 0;
    width: 80px;
    position: relative;
}

@media (max-width: 768px) {
    .timeline-marker {
        width: 60px;
    }
}

.marker {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
    position: relative;
    z-index: 2;
}

.line {
    position: absolute;
    left: 20px;
    top: 40px;
    bottom: -40px;
    width: 2px;
    background: var(--light-blue);
}

.timeline-item:last-child .line {
    display: none;
}

.timeline-content {
    flex: 1;
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--light-blue);
    transition: var(--transition);
    margin-left: 20px;
}

@media (max-width: 768px) {
    .timeline-content {
        margin-left: 10px;
        padding: 20px;
    }
}

.timeline-item:hover .timeline-content {
    transform: translateX(10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.step-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--light-blue), var(--white));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary-blue);
    border: 2px solid var(--light-blue);
    transition: var(--transition);
}

.timeline-item:hover .step-icon {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    transform: rotate(15deg);
}

.step-header h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin: 0;
    font-weight: 600;
}

.timeline-content p {
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 15px;
}

.step-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.step-features span {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--off-white);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--primary-blue);
}

.step-features i {
    font-size: 12px;
}

/* System Types */
.system-types {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--off-white) 0%, var(--light-gray) 100%);
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .systems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .systems-grid {
        grid-template-columns: 1fr;
    }
}

.system-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
}

.system-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.system-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    padding: 30px;
    color: var(--white);
    position: relative;
}

.system-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.system-header h3 {
    font-size: 24px;
    margin: 0;
    font-weight: 600;
}

.system-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.system-badge.popular {
    background: var(--warning-yellow);
    color: var(--white);
}

.system-badge.premium {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: var(--white);
}

.system-content {
    padding: 30px;
}

.system-content p {
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 25px;
}

.system-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

.system-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

.system-features i {
    color: var(--success-green);
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.system-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--off-white);
    border-radius: var(--radius);
}

.system-stats .stat {
    text-align: center;
}

.stat-label {
    font-size: 12px;
    color: var(--dark-gray);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-blue);
}

.system-btn {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius);
    color: var(--primary-blue);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.system-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background: var(--white);
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 50px;
}

.testimonial-track {
    display: flex;
    gap: 30px;
    animation: slide 30s linear infinite;
    width: 200%;
}

.testimonial-track:hover {
    animation-play-state: paused;
}

.testimonial-card {
    flex: 0 0 calc(25% - 22.5px);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 30px;
    border: 2px solid var(--light-blue);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.customer-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--light-blue), var(--white));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-blue);
    border: 2px solid var(--light-blue);
}

.customer-info {
    flex: 1;
}

.customer-info h4 {
    font-size: 18px;
    color: var(--text-dark);
    margin: 0 0 5px;
    font-weight: 600;
}

.customer-info p {
    font-size: 14px;
    color: var(--dark-gray);
    margin: 0 0 5px;
}

.customer-rating {
    color: var(--warning-yellow);
}

.testimonial-content p {
    color: var(--dark-gray);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--medium-gray);
}

.project-info, .project-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--dark-gray);
}

.project-info i, .project-date i {
    color: var(--primary-blue);
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.slider-controls button {
    pointer-events: auto;
    width: 50px;
    height: 50px;
    background: var(--white);
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    color: var(--primary-blue);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-controls button:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: scale(1.1);
}

.testimonial-stats {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    border-radius: var(--radius-lg);
    padding: 40px;
    color: var(--white);
}

.testimonial-stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .testimonial-stats .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .testimonial-stats .stats-grid {
        grid-template-columns: 1fr;
    }
}

.testimonial-stats .stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

.testimonial-stats .stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
}

.testimonial-stats .stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Subsidy Information */
.subsidy-info {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--off-white) 0%, var(--light-gray) 100%);
}

.subsidy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 992px) {
    .subsidy-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.subsidy-text h2 {
    font-size: 42px;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.subsidy-text h2 .highlight {
    color: var(--primary-blue);
    position: relative;
}

.subsidy-text h2 .highlight::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-blue);
}

.subsidy-description {
    font-size: 18px;
    color: var(--dark-gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

.subsidy-features {
    margin-bottom: 40px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--light-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 18px;
    color: var(--text-dark);
    margin: 0 0 8px;
    font-weight: 600;
}

.feature-content p {
    color: var(--dark-gray);
    margin: 0;
    line-height: 1.5;
}

.eligibility-check {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.eligibility-check h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.eligibility-check h4 i {
    color: var(--primary-blue);
}

.eligibility-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.eligibility-list span {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--off-white);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--primary-blue);
}

.eligibility-list i {
    font-size: 12px;
}

.subsidy-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--success-green), #059669);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.subsidy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.4);
    gap: 15px;
}

.subsidy-image {
    position: relative;
}

.subsidy-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: float 6s ease-in-out infinite;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    padding: 30px;
    text-align: center;
    color: var(--white);
}

.card-header i {
    font-size: 60px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.card-header h3 {
    font-size: 28px;
    margin: 0;
    font-weight: 600;
}

.card-body {
    padding: 30px;
}

.calculator {
    background: var(--off-white);
    padding: 25px;
    border-radius: var(--radius);
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-weight: 500;
}

.input-group input[type="range"] {
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
}

.input-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--white);
    border: 3px solid var(--primary-blue);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.range-value {
    text-align: center;
    margin-top: 10px;
}

.range-value span {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-blue);
}

.results {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed var(--medium-gray);
}

.result-item:last-child {
    border-bottom: none;
}

.result-item.highlight {
    background: var(--light-blue);
    margin: -20px;
    padding: 12px 20px;
    border-radius: var(--radius);
}

.result-item .label {
    color: var(--dark-gray);
    font-size: 14px;
}

.result-item .value {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 18px;
}

.result-item.highlight .value {
    color: var(--success-green);
}

.disclaimer {
    text-align: center;
    font-size: 12px;
    color: var(--dark-gray);
}

/* CTA Section */
.residential-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    position: relative;
    overflow: hidden;
}

.residential-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="500" cy="500" r="400" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/></svg>');
    background-size: 600px 600px;
    opacity: 0.3;
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: 60px;
    text-align: center;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .cta-content {
        padding: 40px;
    }
}

.cta-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 48px;
    color: var(--white);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { 
        box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
    }
    50% { 
        box-shadow: 0 20px 60px rgba(37, 99, 235, 0.5);
    }
}

.cta-content h2 {
    font-size: 42px;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-content p {
    font-size: 18px;
    color: var(--dark-gray);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cta-features .feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--off-white);
    padding: 12px 24px;
    border-radius: 50px;
    color: var(--primary-blue);
    font-weight: 500;
}

.cta-features .feature i {
    color: var(--success-green);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
}

.cta-btn.primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.cta-btn.primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4);
    gap: 15px;
}

.cta-btn.secondary {
    background: transparent;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.cta-btn.secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-5px);
}

.cta-guarantee {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding-top: 30px;
    border-top: 1px dashed var(--medium-gray);
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-gray);
    transition: var(--transition);
}

.guarantee-item:hover {
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.guarantee-item i {
    font-size: 20px;
    color: var(--primary-blue);
}

/* Project Modal */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.project-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 2px solid var(--medium-gray);
    border-radius: 50%;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-body {
    padding: 40px;
}

/* Footer Adjustments */
.footer {
    background: var(--text-dark);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 42px;
    }
    
    .section-header h2 {
        font-size: 36px;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 36px;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .section-description {
        font-size: 16px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .stat-number {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 28px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .projects-filter {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-marker {
        width: 40px;
    }
    
    .marker {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}