/* Global Styles */
:root {
    --primary-color: #ff5722; /* Orange from logo */
    --primary-rgb: 255, 87, 34; /* RGB values for primary color */
    --secondary-color: #e91e63; /* Red/Pink from logo */
    --secondary-rgb: 233, 30, 99; /* RGB values for secondary color */
    --accent-color: #4caf50; /* Green from logo */
    --accent-color-2: #673ab7; /* Purple from logo */
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --text-color: #555555;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: -10px;
    left: 25%;
    border-radius: 5px;
}

.section-title p {
    color: var(--gray-color);
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

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

.primary-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

.company-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-left: 10px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color), var(--accent-color-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
    transition: var(--transition);
}

.logo:hover .company-name {
    letter-spacing: 1.5px;
}

.nav-links ul {
    display: flex;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color), var(--accent-color-2));
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 100;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-color);
    transition: var(--transition);
}

/* Home Section */
.home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 5%;
    background: linear-gradient(135deg, #fff8f0 0%, #ffebe0 100%);
    min-height: 100vh;
}

.home-content {
    flex: 1;
    padding-right: 50px;
}

.home-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    animation: fadeInUp 1s ease;
}

.home-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--gray-color);
    animation: fadeInUp 1.2s ease;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    animation: fadeInUp 1.4s ease;
}

.social-icons {
    display: flex;
    gap: 15px;
    animation: fadeInUp 1.6s ease;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    color: var(--primary-color);
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.home-image {
    flex: 1;
    animation: float 3s ease-in-out infinite;
}

.home-image img {
    border-radius: 10px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}

/* Services Section */
.services {
    background-color: white;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 5%;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-card:nth-child(2) .service-icon {
    background-color: var(--secondary-color);
}

.service-card:nth-child(3) .service-icon {
    background-color: var(--accent-color);
}

.service-icon i {
    color: white;
    font-size: 30px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-card p {
    color: var(--gray-color);
    margin-bottom: 25px;
    flex-grow: 1;
}

.service-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    margin-top: auto;
    align-self: center;
}

.service-card:nth-child(2) .service-btn {
    background-color: var(--secondary-color);
}

.service-card:nth-child(3) .service-btn {
    background-color: var(--accent-color);
}

.service-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card:nth-child(2) .service-btn:hover {
    background-color: var(--primary-color);
}

.service-card:nth-child(3) .service-btn:hover {
    background-color: var(--accent-color-2);
}

/* Reviews Section */
.reviews {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f2 100%);
    overflow: hidden;
    position: relative;
    padding: 60px 0;
}

.reviews::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color), var(--accent-color-2));
}

.reviews .section-title {
    position: relative;
}

.reviews .section-title h2 {
    color: var(--primary-color); /* Fallback for browsers that don't support background-clip */
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent; /* Standard property alternative */
    animation: colorChange 8s infinite alternate;
}

@keyframes colorChange {
    0% { color: var(--primary-color); }
    33% { color: var(--secondary-color); }
    66% { color: var(--accent-color); }
    100% { color: var(--accent-color-2); }
}

.reviews .section-title::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.reviews .section-title p {
    margin-top: 20px;
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.reviews-slider {
    position: relative;
    max-width: 1200px;
    margin: 30px auto;
    overflow: hidden;
    padding: 0 20px;
}

.reviews-container {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    padding: 10px 0 30px;
    margin-left: auto;
    margin-right: auto;
}

.review-card {
    flex: 0 0 auto; /* Prevent cards from shrinking */
    width: 300px;
    min-height: 320px;
    max-height: 320px;
    margin: 10px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border-top: 4px solid var(--primary-color); /* Fallback border */
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
    will-change: transform; /* Optimize animations */
    transform: translateZ(0); /* Hardware acceleration */
}

/* Card variations with fallbacks */
.review-card:nth-child(3n+1) {
    background: linear-gradient(145deg, #ffffff, #fff8f5);
    border-top: 4px solid var(--primary-color); /* Fallback for browsers without border-image support */
}

.review-card:nth-child(3n+2) {
    background: linear-gradient(145deg, #ffffff, #fff5fa);
    border-top: 4px solid var(--secondary-color); /* Fallback for browsers without border-image support */
}

.review-card:nth-child(3n+3) {
    background: linear-gradient(145deg, #ffffff, #f5fff8);
    border-top: 4px solid var(--accent-color); /* Fallback for browsers without border-image support */
}

/* Support for modern browsers that can handle border-image */
@supports (border-image: linear-gradient(to right, red, blue) 1) {
    .review-card:nth-child(3n+1) {
        border-image: linear-gradient(to right, var(--primary-color), var(--secondary-color));
        border-image-slice: 1;
    }
    
    .review-card:nth-child(3n+2) {
        border-image: linear-gradient(to right, var(--secondary-color), var(--accent-color));
        border-image-slice: 1;
    }
    
    .review-card:nth-child(3n+3) {
        border-image: linear-gradient(to right, var(--accent-color), var(--accent-color-2));
        border-image-slice: 1;
    }
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 6rem;
    font-family: Georgia, serif;
    color: rgba(255, 87, 34, 0.08);
    line-height: 1;
}

.review-card:nth-child(odd) {
    transform: rotate(-1deg);
}

.review-card:nth-child(even) {
    transform: rotate(1deg);
}

.review-card:hover {
    transform: translateY(-7px) rotate(0deg) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.reviews-container .review-card.active {
    opacity: 1;
}

.reviews-container .review-card:nth-child(3n+1)::before {
    color: rgba(255, 87, 34, 0.08);
}

.reviews-container .review-card:nth-child(3n+2)::before {
    color: rgba(233, 30, 99, 0.08);
}

.reviews-container .review-card:nth-child(3n+3)::before {
    color: rgba(76, 175, 80, 0.08);
}

.review-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-top: auto;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    line-clamp: 7;
    -webkit-box-orient: vertical;
    max-height: 11.2em; /* Fallback: 1.6em (line-height) × 7 lines = 11.2em */
    position: relative;
    z-index: 1;
    font-style: italic;
    text-align: left;
    padding-bottom: 5px;
}

.review-card p::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,1) 100%);
    z-index: 2;
    pointer-events: none;
}

.review-card:nth-child(3n+1) p::after {
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,248,245,0.8) 50%, rgba(255,248,245,1) 100%);
}

.review-card:nth-child(3n+2) p::after {
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,245,250,0.8) 50%, rgba(255,245,250,1) 100%);
}

.review-card:nth-child(3n+3) p::after {
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(245,255,248,0.8) 50%, rgba(245,255,248,1) 100%);
}

.review-profile {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.review-profile img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Fallback for missing profile images */
.profile-initials {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

/* Color variations for initials based on classes */
.initial-color-1 { background: linear-gradient(135deg, #ff7e5f, #feb47b); }
.initial-color-2 { background: linear-gradient(135deg, #7474BF, #348AC7); }
.initial-color-3 { background: linear-gradient(135deg, #11998e, #38ef7d); }
.initial-color-4 { background: linear-gradient(135deg, #F2994A, #F2C94C); }
.initial-color-5 { background: linear-gradient(135deg, #6190E8, #A7BFE8); }
.initial-color-6 { background: linear-gradient(135deg, #c471f5, #fa71cd); }
.initial-color-7 { background: linear-gradient(135deg, #00b09b, #96c93d); }

.review-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 600;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stars {
    color: #ffc107;
    display: inline-flex;
    gap: 2px;
    position: relative;
    z-index: 1;
}

.stars i {
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.1));
    transition: transform 0.2s ease;
}

.stars i:nth-child(1) { animation: star-pulse 2s infinite 0.2s; }
.stars i:nth-child(2) { animation: star-pulse 2s infinite 0.4s; }
.stars i:nth-child(3) { animation: star-pulse 2s infinite 0.6s; }
.stars i:nth-child(4) { animation: star-pulse 2s infinite 0.8s; }
.stars i:nth-child(5) { animation: star-pulse 2s infinite 1.0s; }

@keyframes star-pulse {
    0% { transform: scale(1); }
    5% { transform: scale(1.2); }
    10% { transform: scale(1); }
    100% { transform: scale(1); }
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    position: relative;
}

.slider-controls::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 25%;
    right: 25%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 87, 34, 0.2), transparent);
    z-index: 0;
}

.prev-btn, .next-btn {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.prev-btn:disabled, .next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.prev-btn:hover:not(:disabled), .next-btn:hover:not(:disabled) {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-3px) scale(1.1);
}

.review-dots {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 80%;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #ddd;
    border-radius: 50%;
    margin: 0 4px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    width: 25px;
    border-radius: 10px;
}

/* About Section */
.about {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.about .section-title {
    position: relative;
    margin-bottom: 50px;
    text-align: center;
}

.about .section-title h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent; /* Standard property alternative */
    animation: colorChange 8s infinite alternate;
}

.about .section-title p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.about .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 0 5%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

.about-content {
    flex: 1;
    min-width: 350px;
    animation: fadeIn 1s ease;
}

.about-content h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 10px;
}

.about-content h3:first-of-type {
    margin-top: 0;
    color: var(--secondary-color);
}

.about-content h3:nth-of-type(2) {
    color: var(--primary-color);
}

.about-content h3:nth-of-type(3) {
    color: var(--accent-color);
}

.about-content p {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.about-gallery {
    flex: 1;
    min-width: 350px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    animation: fadeIn 1s ease 0.3s backwards;
}

.about-gallery .gallery-item {
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    background-color: #f5f5f5; /* Light background as placeholder */
    opacity: 0.9;
    transform: scale(1);
}

.about-gallery .gallery-item.image-loaded {
    opacity: 1;
    animation: fadeIn 0.5s ease forwards;
}

.about-gallery .gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.about-gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    display: block; /* Remove any extra space */
    backface-visibility: hidden; /* Smoother transitions */
}

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

@media (max-width: 992px) {
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links ul {
        flex-direction: column;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    /* About section layout for tablets and below */
    .about-container {
        flex-direction: column;
        align-items: center;
    }
    
    .about-content, .about-gallery {
        min-width: 100%;
    }
    
    /* Services layout for tablets */
    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Review slider adjustments */
    .reviews-slider {
        max-width: 95%;
    }
    
    .review-card {
        margin: 10px 8px;
    }
}

@media (max-width: 768px) {
    .about {
        padding: 60px 0;
    }
    
    .about .section-title h2 {
        font-size: 2rem;
    }
    
    .about-content h3 {
        font-size: 1.3rem;
    }
    
    .about-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .about-gallery .gallery-item {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .about {
        padding: 40px 0;
    }
    
    .about .section-title h2 {
        font-size: 1.8rem;
    }
    
    .about-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .about-gallery .gallery-item {
        height: 220px;
    }
}

/* Gallery Section */
.gallery-section {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.gallery-section .section-title {
    position: relative;
    margin-bottom: 50px;
}

.gallery-section .section-title h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent; /* Standard property alternative */
    animation: colorChange 8s infinite alternate;
}

.gallery-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 250px;
    grid-auto-flow: dense;
    gap: 15px;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.4s ease;
    transform-origin: center;
    background-color: #f5f5f5; /* Light background as placeholder */
    opacity: 0.9;
}

.gallery-item.image-loaded {
    opacity: 1;
    animation: fadeIn 0.5s ease forwards;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

/* Fixed aspect ratio handling without :has selector */
.gallery-item[data-aspect="portrait"] {
    grid-row: span 2;
}

.gallery-item[data-aspect="landscape"] {
    grid-column: span 2;
}

.gallery-item[data-aspect="square"] {
    grid-column: span 1;
    grid-row: span 1;
}

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

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

/* Mobile Gallery Fixes */
@media screen and (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
    
    .gallery-item[data-aspect="landscape"] {
        grid-column: span 2;
    }
    
    .gallery-item[data-aspect="portrait"] {
        grid-row: span 2;
    }
    
    .about-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .about-gallery .gallery-item {
        height: 150px;
    }
    
    .reviews-container .review-card {
        width: calc(100vw - 80px);
        max-width: 300px;
    }
}

@media screen and (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    
    .gallery-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        height: 200px;
    }
    
    .gallery-item[data-aspect="landscape"] {
        height: 200px;
    }
    
    .gallery-item[data-aspect="portrait"] {
        height: 300px;
    }
    
    .about-gallery {
        grid-template-columns: 1fr;
    }
    
    .about-gallery .gallery-item {
        height: 180px;
    }
    
    .reviews-container .review-card {
        width: calc(100vw - 60px);
        min-height: 300px;
    }
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(245,248,255,1) 100%);
    padding: 80px 0;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.contact .section-title {
    position: relative;
    margin-bottom: 50px;
    text-align: center;
}

.contact .section-title h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent; /* Standard property alternative */
    animation: colorChange 8s infinite alternate;
}

.contact .section-title p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.contact .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-info {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-right: 30px;
    margin-bottom: 30px;
    animation: fadeIn 1s ease;
}

.contact-form {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    animation: fadeIn 1s ease 0.3s backwards;
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
}

.info-item i {
    font-size: 22px;
    color: var(--primary-color);
    margin-right: 15px;
    padding: 12px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    height: 50px;
    width: 50px;
}

.info-item:hover i {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

.info-item h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.info-item p {
    color: var(--text-color);
    line-height: 1.5;
}

.info-item p a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item p a:hover {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    outline: none;
    background: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
    padding: 12px 25px;
    border: none;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form .btn i {
    margin-right: 8px;
    animation: bounce 2s infinite;
}

.contact-form .btn:hover {
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
    transform: translateY(-2px);
}

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

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info {
        margin-right: 0;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .home-content h1 {
        font-size: 1.75rem;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .review-card {
        padding: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Footer */
footer {
    background: linear-gradient(135deg, #222831 0%, #393e46 100%);
    color: white;
    padding: 60px 0 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color), var(--accent-color-2));
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    gap: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-logo .company-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-logo p {
    color: #ddd;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h3, .footer-social h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.footer-links h3::after, .footer-social h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 5px;
}

.footer-links ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
}

.footer-links a {
    color: #ddd;
    transition: var(--transition);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-links a::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 8px;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.footer-social {
    flex: 1;
    min-width: 200px;
}

.footer-social .social-icons {
    display: flex;
    gap: 15px;
}

.footer-social .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.footer-social .social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-social .social-icons i {
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding: 25px 5%;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    color: #aaa;
}

.copyright-text {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.copyright-text i {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin: 0 5px;
}

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

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

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Improvements */
@media (max-width: 1200px) {
    .home-content h1 {
        font-size: 2.5rem;
    }
    
    .home-content p {
        font-size: 1rem;
        max-width: 90%;
    }
    
    .about-container {
        flex-direction: column;
        align-items: center;
    }
    
    .about-content {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .about-gallery {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo, .footer-links, .footer-social {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .home {
        flex-direction: column-reverse;
        text-align: center;
        padding: 6rem 1rem 2rem;
    }
    
    .home-content, .home-image {
        width: 100%;
    }
    
    .home-content {
        align-items: center;
    }
    
    .home-content h1 {
        font-size: 2rem;
        margin-top: 2rem;
    }
    
    .home-content p {
        font-size: 0.95rem;
        margin: 1rem auto;
    }
    
    .home-image img {
        width: 100%;
        height: auto;
        max-height: 350px;
        object-fit: cover;
        margin-bottom: 1.5rem;
    }
    
    .services-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .about-gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item.large, .gallery-item.wide, .gallery-item.tall {
        grid-column: span 2;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info, .contact-form {
        width: 100%;
    }
    
    .contact-info {
        margin-bottom: 2rem;
    }
    
    .footer-links ul {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .home-content h1 {
        font-size: 1.75rem;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .review-card {
        padding: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item.large, .gallery-item.wide, .gallery-item.tall {
        grid-column: span 1;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Improved Success Message */
.success-message {
    background-color: rgba(76, 175, 80, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 15px 20px;
    margin-top: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: var(--accent-color);
    animation: slideDown 0.5s ease forwards;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.success-message i {
    font-size: 1.8rem;
    margin-right: 15px;
}

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

/* Button States */
.contact-form button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.contact-form button[type="submit"] i {
    margin-right: 5px;
}

.contact-form button[type="submit"] i.fa-check {
    color: #2ecc71;
}

.contact-form button[type="submit"] i.fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* Gallery Lightbox */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    animation: zoom 0.3s ease;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: -10px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 9999;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-lightbox:hover {
    transform: scale(1.2);
    background-color: var(--primary-color);
}

.lightbox-caption {
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 1.1rem;
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transform: translateY(-10px);
    opacity: 0.9;
}

@keyframes zoom {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media screen and (max-width: 768px) {
    .gallery-overlay h3 {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 480px) {
    .gallery-overlay h3 {
        font-size: 1rem;
    }
    
    .gallery-overlay {
        padding: 15px;
    }
}

/* Essential Cross-Browser Animation Fallbacks */

/* Fade-In Animation with fallback for older browsers */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Star Pulse Animation with fallback */
@keyframes star-pulse {
    0% { transform: scale(1); }
    5% { transform: scale(1.2); }
    10% { transform: scale(1); }
    100% { transform: scale(1); }
}

@-webkit-keyframes star-pulse {
    0% { -webkit-transform: scale(1); }
    5% { -webkit-transform: scale(1.2); }
    10% { -webkit-transform: scale(1); }
    100% { -webkit-transform: scale(1); }
}

/* Color Change Animation with fallback */
@keyframes colorChange {
    0% { color: var(--primary-color); }
    33% { color: var(--secondary-color); }
    66% { color: var(--accent-color); }
    100% { color: var(--accent-color-2); }
}

@-webkit-keyframes colorChange {
    0% { color: var(--primary-color); }
    33% { color: var(--secondary-color); }
    66% { color: var(--accent-color); }
    100% { color: var(--accent-color-2); }
}

/* Ensure gradient text works in all browsers */
.reviews .section-title h2,
.about .section-title h2,
.gallery-section .section-title h2,
.contact .section-title h2,
.review-info h3 {
    /* Fallback for browsers that don't support background-clip */
    color: var(--primary-color);
    /* Set up your gradient */
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    /* Set the background to text only */
    -webkit-background-clip: text;
    background-clip: text;
    /* Make the text transparent to show the background */
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}

/* Styles for Mobile Responsiveness */
@media (max-width: 992px) {
    .reviews-slider {
        max-width: 95%;
    }
    
    .review-card {
        margin: 10px 8px;
    }
}

@media (max-width: 576px) {
    .reviews {
        padding: 40px 0;
    }
    
    .reviews-slider {
        max-width: 100%;
        padding: 0 10px;
        will-change: transform;
        contain: content;
    }
    
    .review-card {
        width: calc(100vw - 40px);
        min-height: 230px;
        max-height: none;
        padding: 15px;
        margin: 5px;
        will-change: transform;
        contain: content;
    }
    
    .review-profile img {
        width: 40px;
        height: 40px;
    }
    
    .review-card p {
        font-size: 0.9rem;
        -webkit-line-clamp: 5;
        line-clamp: 5;
        max-height: 8em;
    }
    
    .review-info h3 {
        font-size: 1rem;
    }
    
    .stars i {
        font-size: 0.9rem;
    }
    
    /* Hide dots and only show arrows on mobile */
    .review-dots {
        display: none;
    }
    
    /* Make the arrows more prominent */
    .slider-controls {
        margin-top: 20px;
    }
    
    .prev-btn, .next-btn {
        width: 40px;
        height: 40px;
        margin: 0 15px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    }
    
    .prev-btn:hover:not(:disabled), .next-btn:hover:not(:disabled) {
        transform: translateY(-3px) scale(1.05);
    }
}

/* Further optimizations for very small screens */
@media (max-width: 400px) {
    .reviews {
        padding: 30px 0;
    }
    
    .reviews-slider {
        margin: 15px auto;
        contain: strict;
    }
    
    .review-card {
        width: calc(100vw - 30px);
        min-height: 180px;
        padding: 10px;
    }
    
    .review-profile {
        margin-bottom: 8px;
    }
    
    .review-card p {
        font-size: 0.8rem;
        -webkit-line-clamp: 4;
        line-clamp: 4;
        max-height: 6.4em;
    }
    
    /* Bigger arrows for very small screens */
    .slider-controls .prev-btn,
    .slider-controls .next-btn {
        width: 38px;
        height: 38px;
        margin: 0 10px;
    }
    
    /* Remove text gradient on small screens for better performance */
    .review-info h3 {
        background: none;
        -webkit-background-clip: initial;
        background-clip: initial;
        -webkit-text-fill-color: var(--primary-color);
        text-fill-color: var(--primary-color);
        font-size: 0.9rem;
    }
}

/* Responsive improvements for very small screens */
@media (max-width: 480px) {
    /* Smaller text for very small screens */
    .home-content h1 {
        font-size: 1.75rem;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    /* Improve touch targets for mobile */
    .nav-links a, 
    .btn,
    .info-item i,
    .prev-btn, 
    .next-btn,
    .dot {
        padding: 10px;
        min-height: 44px; /* Minimum touch target size */
        min-width: 44px; /* Minimum touch target size */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Ensure forms are usable on small screens */
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Adjust padding for smaller screens */
    section {
        padding: 60px 0;
    }
    
    .service-card,
    .review-card {
        padding: 1rem;
    }
    
    /* Single column layouts */
    .about-gallery,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Touch device improvements */
@media (hover: none) {
    /* Remove hover effects that don't work well on touch */
    .service-card:hover,
    .about-gallery .gallery-item:hover,
    .gallery-item:hover {
        transform: none !important;
    }
    
    /* Make buttons more touch-friendly */
    .btn,
    .service-btn {
        padding: 12px 25px;
    }
    
    /* Ensure touch targets are large enough */
    .nav-links a,
    .info-item i,
    .social-icons a,
    .prev-btn, 
    .next-btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Mobile responsiveness for reviews slider */
@media (max-width: 768px) {
    .reviews-slider {
        max-width: 90%;
    }
    
    .review-card {
        width: calc(100vw - 80px);
        max-width: 300px;
        min-height: 280px;
    }
    
    .review-profile img {
        width: 50px;
        height: 50px;
    }
    
    .slider-controls {
        margin-top: 15px;
    }
    
    .prev-btn, .next-btn {
        width: 40px;
        height: 40px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
}

@media (max-width: 576px) {
    .reviews {
        padding: 40px 0;
    }
    
    .reviews-slider {
        max-width: 100%;
        padding: 0 10px;
        will-change: transform;
        contain: content;
    }
    
    .review-card {
        width: calc(100vw - 40px);
        min-height: 230px;
        max-height: none;
        padding: 15px;
        margin: 5px;
        will-change: transform;
        contain: content;
    }
    
    .review-profile img {
        width: 40px;
        height: 40px;
    }
    
    .review-card p {
        font-size: 0.9rem;
        -webkit-line-clamp: 5;
        line-clamp: 5;
        max-height: 8em;
    }
    
    .review-info h3 {
        font-size: 1rem;
    }
    
    .stars i {
        font-size: 0.9rem;
    }
    
    /* Always show navigation controls on mobile */
    .review-dots {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none; /* Firefox */
        max-width: 90%;
    }
    
    .review-dots::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }
} 