/**
 * POLYWAVE ROOF - Main Stylesheet
 * Custom styles for the roofing website
 */

/* ===== ROOT VARIABLES ===== */
:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --secondary: #f59e0b;
    --secondary-dark: #d97706;
    --accent: #10b981;
    --dark: #1f2937;
    --light: #f3f4f6;
    --white: #ffffff;
    --gray-100: #f7fafc;
    --gray-200: #edf2f7;
    --gray-300: #e2e8f0;
    --gray-400: #cbd5e0;
    --gray-500: #a0aec0;
    --gray-600: #718096;
    --gray-700: #4a5568;
    --gray-800: #2d3748;
    --gray-900: #1a202c;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ===== TEXT GRADIENT ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #2563eb 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--gray-100);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-200);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== HERO SLIDER STYLES ===== */
.hero-slider-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-slider {
    width: 100%;
    height: 85vh;
    min-height: 600px;
    max-height: 800px;
}

.hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-slide.hero-default {
    min-height: 600px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 64, 175, 0.75) 50%, rgba(30, 58, 138, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.35rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 650px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.hero-buttons .btn {
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.hero-buttons .btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
}

.hero-buttons .btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.5);
}

.btn-outline-white {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

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

/* Hero Slider Pagination */
.hero-slider .swiper-pagination {
    bottom: 40px;
}

.hero-slider .swiper-pagination-bullet {
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
    transition: var(--transition);
    margin: 0 6px !important;
}

.hero-slider .swiper-pagination-bullet-active {
    background: var(--secondary);
    width: 50px;
    border-radius: 7px;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    animation: bounce 2s infinite;
}

.hero-scroll-indicator i {
    color: rgba(255, 255, 255, 0.7);
    font-size: 28px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-8px);
    }
}

/* Hero Slider Responsive */
@media (max-width: 1024px) {
    .hero-slider {
        height: 75vh;
        min-height: 500px;
    }

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

    .hero-subtitle {
        font-size: 1.15rem;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 70vh;
        min-height: 450px;
    }

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

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

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 14px 28px;
    }

    .hero-scroll-indicator {
        bottom: 80px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 65vh;
        min-height: 400px;
    }

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

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-slider .swiper-pagination {
        bottom: 25px;
    }

    .hero-scroll-indicator {
        display: none;
    }
}

/* ===== HEADER STYLES ===== */
.nav-link {
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Dropdown Animation */
.group:hover .group-hover\:visible {
    animation: dropdownFade 0.3s ease;
}

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

/* ===== SECTION STYLES ===== */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary);
}

.section-title.text-left::after {
    left: 0;
    transform: none;
}

/* ===== PRODUCT CARDS ===== */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.15);
}

.product-card .product-image {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.15);
}

.product-card .product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.9) 0%, rgba(30, 58, 138, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(4px);
}

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

.product-card .product-overlay .btn {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

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

/* Touch devices - show overlay on focus */
@media (hover: none) {
    .product-card .product-overlay {
        opacity: 0;
        background: linear-gradient(135deg, rgba(30, 64, 175, 0.95) 0%, rgba(30, 58, 138, 0.9) 100%);
    }

    .product-card:active .product-overlay {
        opacity: 1;
    }
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.product-card .p-4 {
    padding: 1.5rem !important;
}

.product-card .p-4 span {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card .p-4 h3 {
    font-size: 1.1rem;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* ===== CATEGORY CARDS ===== */
.category-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 280px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(30, 64, 175, 0.25);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.7s ease;
    position: relative;
    z-index: 2;
}

.category-card:hover img {
    transform: scale(1.15);
}

/* Category Placeholder - shown when no image or image fails to load */
.category-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    z-index: 1;
}

.category-placeholder i {
    font-size: 72px;
    color: rgba(255, 255, 255, 0.25);
    transition: all 0.5s ease;
}

.category-card:hover .category-placeholder i {
    transform: scale(1.2) rotate(5deg);
    color: rgba(255, 255, 255, 0.45);
}

/* Hide placeholder when image is present and loaded */
.category-card:not(.no-image) .category-placeholder {
    display: none;
}

.category-card.no-image img {
    display: none;
}

.category-card.no-image .category-placeholder {
    display: flex;
}

.category-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    color: white;
    z-index: 3;
}

.category-card .overlay h3 {
    font-size: 1.4rem;
    font-weight: 700;
    transform: translateY(0);
    transition: all 0.4s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.category-card .overlay p {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.category-card .overlay p i {
    transition: transform 0.3s ease;
}

.category-card:hover .overlay h3 {
    transform: translateY(-8px);
}

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

.category-card:hover .overlay p i {
    transform: translateX(5px);
}

/* Touch devices - always show text */
@media (hover: none) {
    .category-card .overlay p {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== HOME PAGE SERVICES SECTION (What We Offer) ===== */

/* Home Services Grid - 2 columns layout */
.home-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 50px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .home-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px 35px;
    }
}

@media (max-width: 640px) {
    .home-services-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* Home Service Item */
.home-service-item {
    position: relative;
    padding: 32px;
    padding-left: 32px;
    background: white;
    border-radius: 20px;
    border-left: 4px solid transparent;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.home-service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 20px 0 0 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.home-service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(30, 64, 175, 0.12);
}

.home-service-item:hover::before {
    opacity: 1;
}

/* Home Service Icon */
.home-service-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.home-service-item:hover .home-service-icon {
    background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
    transform: scale(1.1);
}

.home-service-icon i {
    font-size: 26px;
    color: var(--primary);
    line-height: 1;
    display: block;
    transition: color 0.3s ease;
}

.home-service-item:hover .home-service-icon i {
    color: white;
}

/* Home Service Title */
.home-service-title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

/* Home Service Description */
.home-service-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-600);
    margin: 0;
}

/* View All Services Button */
.view-all-services-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    padding: 16px 36px;
    border: 2px solid var(--primary);
    border-radius: 50px;
    color: var(--primary);
    font-weight: 600;
    font-size: 16px;
    background: transparent;
    transition: all 0.4s ease;
}

.view-all-services-btn:hover {
    background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.3);
}

.view-all-services-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.view-all-services-btn:hover i {
    transform: translateX(6px);
}

/* Mobile Responsive for Home Services */
@media (max-width: 768px) {
    .home-service-item {
        padding: 24px;
    }

    .home-service-icon {
        width: 48px;
        height: 48px;
    }

    .home-service-icon i {
        font-size: 22px;
    }

    .home-service-title {
        font-size: 17px;
    }

    .home-service-desc {
        font-size: 14px;
    }

    .view-all-services-btn {
        padding: 14px 28px;
        font-size: 15px;
    }
}

/* ===== SERVICES PAGE SECTION ===== */

/* Services Grid Container - 2 columns layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    align-items: stretch;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Service Card */
.service-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Service Card Image */
.service-card-image {
    width: 100%;
    height: 192px;
    overflow: hidden;
    flex-shrink: 0;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

/* Service Card Placeholder (when no image) */
.service-card-placeholder {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-placeholder > i {
    font-size: 64px;
    color: rgba(255, 255, 255, 0.3);
}

/* Service Card Content */
.service-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 24px;
}

/* Service Icon Container */
.service-icon-container {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background-color: #2563EB;
    overflow: hidden;
    margin-top: -52px;
    margin-bottom: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.service-icon-container i {
    font-size: 24px;
    color: #ffffff;
    line-height: 1;
}

.service-icon-container img,
.service-icon-container svg {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Service Card Title */
.service-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.3;
    flex-shrink: 0;
}

/* Service Card Description */
.service-card-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-600);
    margin-bottom: 20px;
    flex-grow: 0;
}

/* Service Card Link */
.service-card-link {
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    margin-top: auto;
    transition: var(--transition);
}

.service-card-link:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.service-card-link i {
    font-size: 12px;
    margin-left: 8px;
    transition: var(--transition);
}

.service-card-link:hover i {
    transform: translateX(4px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .service-card-content {
        padding: 20px;
    }

    .service-icon-container {
        width: 48px;
        height: 48px;
        margin-top: -44px;
    }

    .service-icon-container i {
        font-size: 20px;
    }

    .service-card-title {
        font-size: 18px;
    }

    .service-card-description {
        font-size: 14px;
    }

    .service-card-image {
        height: 160px;
    }
}

/* ===== GALLERY GRID ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 64, 175, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .overlay i {
    color: white;
    font-size: 40px;
    transform: scale(0);
    transition: var(--transition);
}

.gallery-item:hover .overlay i {
    transform: scale(1);
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    background: white;
    padding: 36px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.testimonial-card::before {
    content: '\201C';
    font-family: Georgia, serif;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 100px;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.15;
}

.testimonial-card .rating {
    color: var(--secondary);
    margin-bottom: 18px;
    font-size: 18px;
    letter-spacing: 3px;
}

.testimonial-card .rating i {
    margin-right: 3px;
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}

.testimonial-card .testimonial-text {
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--gray-700);
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    margin-top: auto;
    padding-top: 24px;
    border-top: 2px solid var(--gray-100);
}

.testimonial-card .author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 16px;
    flex-shrink: 0;
    border: 4px solid var(--gray-100);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-card .author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin-right: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.testimonial-card .author-info h4 {
    font-size: 17px;
    margin-bottom: 4px;
    font-weight: 700;
    color: var(--dark);
}

.testimonial-card .author-info p {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 500;
}

/* Testimonial Slider Specific */
.testimonial-slider {
    padding-bottom: 60px;
}

.testimonial-slider .swiper-slide {
    height: auto;
}

.testimonial-slider .swiper-wrapper {
    align-items: stretch;
}

.testimonial-slider .swiper-pagination {
    bottom: 0;
}

.testimonial-slider .swiper-pagination-bullet {
    background: var(--gray-300);
    opacity: 1;
    width: 12px;
    height: 12px;
    margin: 0 6px !important;
    transition: all 0.3s ease;
}

.testimonial-slider .swiper-pagination-bullet-active {
    background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
    width: 40px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

/* Testimonial card hover effect */
.testimonial-card:hover {
    box-shadow: 0 25px 60px rgba(30, 64, 175, 0.12);
    transform: translateY(-10px);
}

/* Mobile responsive for testimonials */
@media (max-width: 768px) {
    .testimonial-card {
        padding: 24px;
        min-height: 260px;
        border-radius: 20px;
    }

    .testimonial-card::before {
        font-size: 70px;
        top: 12px;
        right: 18px;
    }

    .testimonial-card .author-avatar,
    .testimonial-card .author img {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    .testimonial-card .testimonial-text {
        -webkit-line-clamp: 4;
        font-size: 15px;
    }
}

/* ===== COUNTER SECTION ===== */
.counter-box {
    text-align: center;
    padding: 30px;
}

.counter-box .counter-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--secondary);
    font-family: 'Poppins', sans-serif;
}

.counter-box .counter-label {
    color: white;
    font-size: 18px;
    margin-top: 10px;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: url('/saveimages/pattern.png') repeat;
    opacity: 0.1;
    animation: float 20s linear infinite;
}

@keyframes float {
    from {
        transform: translateX(0) translateY(0);
    }
    to {
        transform: translateX(100px) translateY(-100px);
    }
}

/* ===== CONTACT CARDS ===== */

/* Contact Cards Container */
.contact-cards-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Contact Card */
.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 200px;
    min-width: 250px;
    flex: 1;
    max-width: 280px;
    padding: 30px 20px;
    text-align: center;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.contact-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

/* Contact Icon */
.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 24px;
    line-height: 1;
}

.contact-icon.blue {
    background-color: #EEF2FF;
    color: #3B5BDB;
}

.contact-icon.green {
    background-color: #E6F9F0;
    color: #25D366;
}

/* Contact Card Title */
.contact-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
}

/* Contact Card Details */
.contact-card-details {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
}

.contact-card-details a {
    display: block;
    color: #666666;
    transition: color 0.3s ease;
    word-break: break-word;
}

.contact-card-details a:hover {
    color: var(--primary);
}

.contact-card:nth-child(3) .contact-card-details a:hover {
    color: #25D366;
}

.contact-card-details p {
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-cards-container {
        gap: 20px;
    }

    .contact-card {
        min-width: 220px;
        max-width: 260px;
    }
}

@media (max-width: 768px) {
    .contact-cards-container {
        gap: 16px;
    }

    .contact-card {
        min-width: calc(50% - 16px);
        max-width: calc(50% - 16px);
        min-height: 180px;
        padding: 24px 16px;
    }

    .contact-icon {
        width: 52px;
        height: 52px;
    }

    .contact-icon i {
        font-size: 20px;
    }

    .contact-card-title {
        font-size: 16px;
    }

    .contact-card-details {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .contact-cards-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-card {
        min-width: 100%;
        max-width: 100%;
        min-height: auto;
        padding: 24px 20px;
    }
}

/* ===== CONTACT FORM ===== */
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
    background: white;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-700);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

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

.btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

/* ===== THREE.JS SCENE ===== */
#three-scene-container {
    width: 100%;
    height: 400px;
    position: relative;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border-radius: 12px;
    overflow: hidden;
}

#three-scene-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ===== PAGE BANNER ===== */
.page-banner {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.9) 0%, rgba(30, 64, 175, 0.7) 100%);
}

.page-banner-content {
    position: relative;
    z-index: 1;
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== WHY CHOOSE US ===== */
.why-us-item {
    display: flex;
    align-items: flex-start;
    padding: 28px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.why-us-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    transition: height 0.4s ease;
    border-radius: 0 4px 4px 0;
}

.why-us-item:hover::before {
    height: 100%;
}

.why-us-item:hover {
    transform: translateX(12px) translateY(-5px);
    box-shadow: 0 20px 50px rgba(30, 64, 175, 0.12);
}

.why-us-item .icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin-right: 24px;
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
    transition: all 0.4s ease;
}

.why-us-item:hover .icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.4);
}

.why-us-item h4 {
    font-size: 1.2rem !important;
    margin-bottom: 8px !important;
}

.why-us-item p {
    line-height: 1.7;
}

/* Why Choose Us Image Container */
.why-choose-image-container {
    position: relative;
    border-radius: 20px;
    overflow: visible;
}

.why-choose-image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.why-choose-image-container:hover img {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(30, 64, 175, 0.2);
}

.why-choose-placeholder {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(30, 64, 175, 0.2);
}

@media (max-width: 768px) {
    .why-choose-image-container img {
        border-radius: 16px;
    }

    .why-choose-placeholder {
        min-height: 250px;
    }
}

/* ===== PRICE TAG ===== */
.price-tag {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.price-tag .old-price {
    font-size: 16px;
    color: var(--gray-500);
    text-decoration: line-through;
    margin-left: 10px;
}

/* ===== STOCK STATUS ===== */
.stock-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.stock-status.in-stock {
    background: #d1fae5;
    color: #059669;
}

.stock-status.out-of-stock {
    background: #fee2e2;
    color: #dc2626;
}

.stock-status.on-demand {
    background: #fef3c7;
    color: #d97706;
}

/* ===== FEATURE LIST ===== */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li i {
    color: var(--accent);
    margin-right: 12px;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    .category-card {
        height: 200px;
    }

    .counter-box .counter-number {
        font-size: 32px;
    }

    .counter-box .counter-label {
        font-size: 14px;
    }

    .page-banner {
        height: 200px;
    }

    .why-us-item {
        padding: 15px;
    }

    .why-us-item .icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 20px;
        margin-right: 15px;
    }

    .service-card {
        padding: 20px;
    }

    .service-card .icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .testimonial-card {
        padding: 20px;
    }

    #three-scene-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .product-card .product-image {
        height: 180px;
    }

    .counter-box {
        padding: 15px 10px;
    }

    .counter-box .counter-number {
        font-size: 28px;
    }

    .counter-box .counter-label {
        font-size: 12px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .category-card {
        height: 180px;
    }

    .section-title {
        font-size: 24px;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
}

.shadow-primary {
    box-shadow: 0 10px 40px rgba(30, 64, 175, 0.3);
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease;
}

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

.slide-up {
    animation: slideUp 0.5s ease;
}

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