/**
 * Improved Homepage CSS
 * Fixes all requested issues and adds better styling
 */

/* Hero Slider - Full width, no border radius */
.hero-slider-section {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #475569 0%, #64748B 100%);
}

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

.hero-slider {
    width: 100%;
    position: relative;
    min-height: 600px;
}

.slide {
    display: none;
    width: 100%;
    min-height: 600px;
    position: relative;
}

.slide.active {
    display: block;
    animation: slideIn 0.8s ease;
}

@keyframes slideIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(71, 85, 105, 0.40) 0%, rgba(30, 41, 59, 0.50) 100%);
}

.slide-content {
    position: relative;
    z-index: 10;
    padding: 120px 0;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    margin-bottom: 24px;
    animation: iconPulse 2s ease infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.slide-title {
    font-size: 56px;
    font-weight: 800;
    color: white;
    margin: 0 0 16px 0;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* WHITE COLOR FOR SUBTITLE - AS REQUESTED */
.slide-description {
    font-size: 22px;
    color: #FFFFFF !important; /* WHITE COLOR */
    margin: 0 0 32px 0;
    line-height: 1.6;
    max-width: 700px;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.slide-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.slide-features {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.feature-item i {
    color: #10B981;
    font-size: 20px;
}

/* CIRCULAR SLIDER DOTS - AS REQUESTED */
.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.slider-dots .dot {
    width: 14px !important; /* CIRCULAR */
    height: 14px !important; /* CIRCULAR */
    border-radius: 50% !important; /* CIRCULAR - NOT ELLIPTICAL */
    border: 2px solid white;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dots .dot.active {
    background: white;
    transform: scale(1.2);
}

.slider-dots .dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 20;
    pointer-events: none;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

/* Quick Contact & Offers - WHITE BACKGROUND - CHANGED FROM BLUE */
.quick-contact-section {
    width: 100%;
    background: #FFFFFF;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    /* NO BORDER RADIUS - AS REQUESTED */
}

.quick-contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="rgba(100,116,139,0.05)"/></svg>') repeat;
    opacity: 0.3;
}

.contact-offers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    position: relative;
    z-index: 10;
    align-items: stretch;
}

.contact-form-box,
.offer-box {
    background: #FFFFFF;
    backdrop-filter: blur(20px);
    border: 2px solid #E2E8F0;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact-form-box h3,
.offer-box h3 {
    color: #1E293B;
    font-size: 28px;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.contact-form-box > p,
.offer-box > p {
    color: #64748B;
    margin: 0 0 28px 0;
}

/* IMPROVED WHY CHOOSE US - WITH HOVER EFFECTS & TRANSPARENCY - AS REQUESTED */
.highlights-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
    position: relative;
}

.highlights-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><path d="M30 30 L31 30 L31 31 L30 31 Z" fill="rgba(59,130,246,0.05)"/></svg>') repeat;
    opacity: 0.3;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

/* ATTRACTIVE CARDS WITH HOVER EFFECTS */
.highlight-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(59, 130, 246, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.highlight-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(255, 255, 255, 1);
}

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

.highlight-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82F6 0%, #1E40AF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    margin: 0 auto 24px;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    transition: all 0.4s ease;
}

.highlight-card:hover .highlight-icon {
    transform: rotateY(360deg) scale(1.1);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.5);
}

.highlight-card h3 {
    font-size: 22px;
    color: #1E293B;
    margin: 0 0 12px 0;
    font-weight: 700;
    position: relative;
    z-index: 10;
    transition: color 0.3s ease;
}

.highlight-card:hover h3 {
    color: #3B82F6;
}

.highlight-card p {
    font-size: 15px;
    color: #64748B;
    line-height: 1.7;
    margin: 0;
    position: relative;
    z-index: 10;
}

/* ABOUT SECTION - FIXED OVERLAPPING TEXT - AS REQUESTED */
.about-preview-section {
    padding: 100px 0;
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px;
}

.about-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(59, 130, 246, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 24px 32px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.badge-number {
    display: block;
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 4px;
}

.badge-text {
    display: block;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.95;
}

.about-content {
    padding: 20px 0;
}

.about-content .section-header h2 {
    font-size: 42px;
    color: #1E293B;
    margin: 0 0 16px 0;
    font-weight: 800;
    line-height: 1.2;
}

.about-content .section-header p {
    font-size: 18px;
    color: #3B82F6;
    margin: 0 0 24px 0;
    font-weight: 600;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: #475569;
    margin: 0 0 32px 0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.stat-item {
    text-align: center;
    padding: 24px;
    background: #F8FAFC;
    border-radius: 16px;
    border: 2px solid #E2E8F0;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: #3B82F6;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
}

.stat-item h3 {
    font-size: 36px;
    color: #3B82F6;
    margin: 0 0 8px 0;
    font-weight: 800;
}

.stat-item p {
    font-size: 14px;
    color: #64748B;
    margin: 0;
    font-weight: 600;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0 40px 0; /* ADDED BOTTOM MARGIN TO PREVENT BUTTON OVERLAP */
    padding-bottom: 24px; /* EXTRA PADDING FOR SAFETY */
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #F0F9FF;
    border-radius: 10px;
    color: #1E40AF;
    font-weight: 600;
    font-size: 15px;
}

.feature i {
    color: #10B981;
    font-size: 18px;
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.service-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

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

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(30, 64, 175, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-content {
    padding: 30px;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82F6 0%, #1E40AF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-bottom: 20px;
}

.service-content h3 {
    font-size: 22px;
    color: #1E293B;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.service-content p {
    font-size: 15px;
    color: #64748B;
    line-height: 1.7;
    margin: 0 0 20px 0;
}

.service-link {
    color: #3B82F6;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 12px;
}

/* Gallery Section */
.gallery-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E2E8F0 0%, #CBD5E1 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748B;
}

.gallery-placeholder i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.gallery-placeholder p {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 0 0 8px 0;
}

.gallery-overlay p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
}

/* FAQs Section */
.faqs-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
}

.faqs-grid {
    max-width: 900px;
    margin: 60px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: white;
    border-radius: 16px;
    border: 2px solid #E2E8F0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #3B82F6;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.faq-item.active {
    border-color: #3B82F6;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.faq-question {
    width: 100%;
    padding: 24px 28px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: #1E293B;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #3B82F6;
}

.faq-question i {
    font-size: 16px;
    color: #3B82F6;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 28px 24px;
}

.faq-answer p {
    font-size: 16px;
    line-height: 1.8;
    color: #64748B;
    margin: 0;
}

/* Reviews Section Styling */
.reviews-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
}

.reviews-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.review-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.customer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82F6 0%, #1E40AF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
}

.customer-info {
    flex: 1;
}

.customer-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    color: #1E293B;
}

.customer-info p {
    margin: 0;
    font-size: 13px;
    color: #64748B;
}

.review-rating i {
    color: #FCD34D;
    font-size: 14px;
}

.review-text {
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    margin: 0 0 16px 0;
}

.review-service {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #EFF6FF;
    border-radius: 20px;
    font-size: 13px;
    color: #3B82F6;
    font-weight: 600;
}

/* Blogs Section Styling */
.blogs-section {
    padding: 100px 0;
    background: white;
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.blog-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

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

.blog-content {
    padding: 28px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #64748B;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-content h3 {
    font-size: 20px;
    color: #1E293B;
    margin: 0 0 12px 0;
    font-weight: 700;
    line-height: 1.4;
}

.blog-content p {
    font-size: 15px;
    color: #64748B;
    line-height: 1.7;
    margin: 0 0 16px 0;
}

.blog-link {
    color: #3B82F6;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.blog-link:hover {
    gap: 12px;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #3B82F6 0%, #1E40AF 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.5;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

.cta-content h2 {
    font-size: 42px;
    color: white;
    margin: 0 0 16px 0;
    font-weight: 800;
}

.cta-content p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 40px 0;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 items per row on tablets */
    }
}

@media (max-width: 768px) {
    /* ── Hero slider: 1:1 square ratio on mobile ────────────────── */
    .hero-slider-section {
        min-height: unset !important;
    }
    .slider-container {
        height: 100vw !important;   /* width = viewport width → perfect square */
        min-height: unset !important;
        max-height: none !important;
    }
    .hero-slider {
        height: 100% !important;
        min-height: unset !important;
    }
    .slide {
        height: 100% !important;
        min-height: unset !important;
    }
    .slide.active {
        height: 100% !important;
    }
    .slide-content {
        min-height: unset !important;
        padding: 24px 18px !important;
        justify-content: center;
    }
    .slide-icon {
        width: 52px !important;
        height: 52px !important;
        font-size: 22px !important;
        margin-bottom: 14px !important;
    }
    /* ──────────────────────────────────────────────────── */

    .slide-title {
        font-size: 30px;
    }
    
    .slide-description {
        font-size: 15px;
        margin-bottom: 18px !important;
    }
    
    .contact-offers-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr; /* 1 item per row on mobile */
    }
    
    .cta-content h2 {
        font-size: 32px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}
