:root {
    --primary-color: #C84630;
    --secondary-color: #8B3A1A;
    --accent-color: #E8A76F;
    --dark-bg: #0f0f0f;
    --light-bg: #f8f8f8;
    --text-color: #333;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-lg: 0 15px 40px rgba(200, 70, 48, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

/* ============= HEADER & NAVIGATION ============= */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 0.8rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    letter-spacing: -0.5px;
    animation: slideInDown 0.6s ease;
}

.logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
    border-radius: 6px;
}

@media (max-width: 480px) {
    .logo-img { width: 36px; height: 36px; }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo-subtext {
    font-size: 0.65rem;
    opacity: 0.9;
    letter-spacing: 1px;
    font-weight: 600;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

nav a:hover,
nav a.active {
    color: var(--accent-color);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    transition: var(--transition);
    border-radius: 3px;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 0.35rem;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============= HERO SECTION ============= */
.hero {
    background: linear-gradient(135deg, rgba(200, 70, 48, 0.95) 0%, rgba(139, 58, 26, 0.95) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="%23C84630"/><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
    background-attachment: fixed;
    background-size: cover;
    color: white;
    padding: 70px 2rem 100px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
    z-index: 0;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
    animation: slideInDown 0.8s ease;
    font-weight: 800;
    letter-spacing: -1px;
    word-spacing: 0.2em;
}

.hero-content .tagline {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    margin-bottom: 1rem;
    opacity: 0.95;
    animation: slideInUp 0.8s ease 0.2s backwards;
    font-weight: 300;
    letter-spacing: 1px;
}

.hero-content .subtagline {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    margin-bottom: 2.5rem;
    opacity: 0.85;
    animation: slideInUp 0.8s ease 0.4s backwards;
    background: rgba(255,255,255,0.15);
    padding: 1rem 2rem;
    border-radius: 50px;
    display: inline-block;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease 0.6s backwards;
}

.btn {
    padding: 14px 35px;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--secondary-color);
    box-shadow: 0 8px 20px rgba(232, 167, 111, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(232, 167, 111, 0.5);
    background: #f0b07a;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2.5px solid white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-4px);
}

/* ============= STATS SECTION ============= */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 2rem;
}

.stat-hero {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    animation: slideInUp 0.8s ease 0.8s backwards;
    transition: var(--transition);
}

.stat-hero:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.stat-hero h3 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--accent-color);
}

.stat-hero p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* Animated counter number styling */
.counter {
    display: inline-block;
    font-weight: 900;
    letter-spacing: -0.5px;
    will-change: transform;
    transform-origin: center;
}

.stat-hero .counter.animate {
    animation: popIn 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes popIn {
    0% { transform: scale(0.9); opacity: 0; }
    60% { transform: scale(1.04); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* ============= ABOUT SECTION ============= */
.about {
    padding: 100px 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
    box-shadow: 0 4px 15px rgba(200, 70, 48, 0.3);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-weight: 800;
}

.about-text p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
    color: #555;
    font-size: 1.05rem;
}

.about-text ul {
    list-style: none;
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.about-text li {
    padding: 0.8rem 0;
    padding-left: 2.5rem;
    position: relative;
    color: #555;
    font-weight: 500;
}

.about-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.4rem;
    animation: popIn 0.5s ease;
}

@keyframes popIn {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.about-image {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Ensure video behaves same as image: fully responsive and covers area */
.about-image video.hero-video {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* When the video errors out, hide it and show a static background image */
.about-image.video-error {
    background: url('assets/quarry.jpg') center/cover no-repeat;
}

.about-image.video-error video.hero-video {
    display: none;
}

/* Make the video match image height on smaller screens */
@media (max-width: 768px) {
    .about-image img,
    .about-image video.hero-video {
        height: 260px;
    }
}

.about-stat {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-box {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #fff9f5, #ffe8d6);
    border-radius: 15px;
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--shadow-md);
    animation: slideInUp 0.6s ease;
    transition: var(--transition);
}

/* Hover effect for stat-box */
.stat-box:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--accent-color);
}

.stat-box:hover .stat-number,
.stat-box:hover .stat-number i {
    color: white;
}

.stat-box:hover .stat-label {
    color: rgba(255,255,255,0.9);
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.stat-number i {
    font-size: 2.5rem;
    margin-right: 0.5rem;
    transition: var(--transition);
}

.stat-label {
    color: #666;
    margin-top: 0.8rem;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
}

/* ============= PRODUCTS SECTION ============= */
.products {
    padding: 100px 2rem;
    background: linear-gradient(180deg, var(--light-bg) 0%, #ffffff 100%);
}

.products-container {
    max-width: 1400px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    grid-auto-rows: 1fr; /* make rows equal height so cards align */
    align-items: stretch;  /* ensure items stretch to fill the row */
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    display: flex; /* Make card a flex column so content can align to bottom */
    flex-direction: column; /* Stack image and info */
    height: 100%; /* Make sure the card fills the grid row */
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: 1;
    transition: var(--transition);
}

/* Enhanced hover effect for product cards */
.product-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(200, 70, 48, 0.25);
}

/* Provide the same visual feedback for keyboard users */
.product-card:focus-within {
    transform: translateY(-12px);
    box-shadow: 0 18px 44px rgba(200, 70, 48, 0.22);
}

.product-card:hover::before {
    height: 6px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color), var(--accent-color));
}

.product-card:hover {
    background: linear-gradient(135deg, #fff5f0, #ffe8d6);
}

.product-card:hover .product-info h3 {
    color: var(--secondary-color);
}
.product-card:focus-within .product-info h3 {
    color: var(--secondary-color);
}

/* Ensure the info block does not keep a white background that hides the hover gradient */
.product-card:hover .product-info {
    background: transparent;
}

/* Make sure the card gradient covers the entire area including the rounded corners */
.product-card {
    background-clip: padding-box;
}

.product-image {
    height: 280px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1) rotate(2deg);
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(200, 70, 48, 0.8), rgba(139, 58, 26, 0.8));
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-image::after {
    opacity: 0.3;
}

.product-label {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: var(--secondary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    z-index: 2;
    animation: slideInRight 0.6s ease;
    transition: var(--transition);
}

.product-card:hover .product-label {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.product-info {
    padding: 2.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    flex: 1 1 auto; /* Grow to take available space so button sits at bottom */
}

.product-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.product-info p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.product-features {
    list-style: none;
    margin-bottom: 2rem;
}

.product-features li {
    padding: 0.6rem 0;
    padding-left: 2rem;
    position: relative;
    color: #555;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.product-features li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    transition: var(--transition);
}

.product-card:hover .product-features li::before {
    color: var(--accent-color);
    transform: rotate(45deg);
}

.btn-more {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 700;
    width: 100%;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(200, 70, 48, 0.2);
}

.btn-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(200, 70, 48, 0.4);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.product-info .btn-more { margin-top: auto; align-self: stretch; }

/* Position button absolutely inside the card to ensure consistent alignment */
.product-card { position: relative; }
/* keep button in document flow and align using margin-top:auto */
.product-card .btn-more { position: static; width: 100%; }

/* ============= WHY US SECTION ============= */
.why-us {
    padding: 100px 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem;
    border-radius: 20px;
    background: white;
    border: 2px solid var(--light-bg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

/* Enhanced hover effect for feature cards */
.feature-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover .feature-icon {
    background: rgba(255,255,255,0.2);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.feature-card:hover h4 {
    color: white;
}

.feature-card:hover p {
    color: rgba(255,255,255,0.9);
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(200, 70, 48, 0.1), rgba(232, 167, 111, 0.1));
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.feature-card h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-weight: 800;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.feature-card p {
    color: #666;
    line-height: 1.7;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

/* ============= TESTIMONIALS SECTION ============= */
.testimonials {
    padding: 100px 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.testimonials-container {
    max-width: 1400px;
    margin: 0 auto;
}

.testimonials .section-title {
    color: white;
}

.testimonials .section-title::after {
    background: linear-gradient(90deg, var(--accent-color), white);
}

.testimonials .section-subtitle {
    color: rgba(255,255,255,0.8);
}

.testimonials-grid {
    margin-top: 3rem;
}

/* Carousel structure */
.testimonial-carousel {
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    gap: 2.5rem;
    /* slower, smooth transform for sliding in non-continuous mode */
    transition: transform 1200ms cubic-bezier(0.22, 0.83, 0.2, 1);
    will-change: transform;
    transform: translate3d(0,0,0);
    backface-visibility: hidden;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.carousel-btn, .carousel-dot { pointer-events: auto; }

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 1.25rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background 180ms ease;
}




.carousel-dot.active { background: white; }

/* Adjust card width using JS via flex-basis or CSS var */
.testimonial-track .testimonial-card {
    /* Default: show 2 cards per view. Gap is 2.5rem, so allocate half width minus half gap */
    min-width: calc((100% - 2.5rem) / 2);
    box-sizing: border-box;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* On small devices, show 1 card per view */
@media (max-width: 480px) {
    .testimonial-track .testimonial-card { min-width: 100%; }
}

/* When continuous mode is enabled, hide controls and dots */
.testimonial-carousel.continuous .carousel-btn,
.testimonial-carousel.continuous .carousel-dots {
    display: none;
}

/* Remove transition on track while in continuous mode to avoid visual lag */
.testimonial-carousel.continuous .testimonial-track { transition: none; }

/* Ensure continuous track doesn't wrap the cards */
.testimonial-track {
    flex-wrap: nowrap;
}

.testimonial-card {
    background: rgba(255,255,255,0.1);
    padding: 1.2rem; /* reduced padding */
    border-radius: 12px; /* smaller radius */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition);
    animation: slideInUp 0.6s ease;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y; /* allow vertical scroll and prevent horizontal gestures from triggering clicks */
    pointer-events: none; /* disable interactions on testimonial cards */
}

    /* Testimonial fade/replace animation */
    .testimonial-card {
        transition: opacity 250ms ease, transform 250ms ease;
    }

    .testimonial-card.fade-out {
        opacity: 0;
        transform: translateY(20px);
    }

    .testimonial-card.fade-in {
        opacity: 1;
        transform: translateY(0);
    }

    /* ensure avatar and text animation is smooth */
    .testimonial-avatar {
        background: linear-gradient(135deg, var(--accent-color), white);
        color: var(--secondary-color);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        font-weight: 700;
        transition: var(--transition);
    }

    @keyframes testimonialPulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.02); }
        100% { transform: scale(1); }
    }

    .testimonial-card:hover {
        animation: testimonialPulse 1.8s ease-in-out infinite;
    }

/* Enhanced hover effect for testimonial cards */
.testimonial-card:hover {
    /* Disabled hover effect to prevent visual hiding or layout shifts */
    background: rgba(255,255,255,0.1);
    transform: none;
    border-color: rgba(255,255,255,0.2);
}

.testimonial-card:hover .stars {
    color: var(--primary-color);
}

.testimonial-card:hover .testimonial-text {
    color: var(--text-color);
}

.testimonial-card:hover .testimonial-name {
    color: var(--secondary-color);
}

.testimonial-card:hover .testimonial-title {
    color: #666;
}

.stars {
    color: var(--accent-color);
    font-size: 1rem; /* smaller */
    margin-bottom: 0.6rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

.testimonial-text {
    font-style: italic;
    line-height: 1.6; /* tighter */
    margin-bottom: 1rem; /* less spacing */
    font-size: 0.95rem; /* smaller text */
    opacity: 0.95;
    transition: var(--transition);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 40px; /* reduced avatar size */
    height: 40px;
    background: linear-gradient(135deg, var(--accent-color), white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--secondary-color);
    transition: var(--transition);
}

.testimonial-card:hover .testimonial-avatar {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    transform: none; /* prevent scaling */
}

/* constrain overall card width so it's not full width on wide screens */
.testimonial-card { max-width: 420px; margin: 0 auto; }

.testimonial-name {
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.testimonial-title {
    font-size: 0.9rem;
    opacity: 0.8;
    transition: var(--transition);
}

/* ============= CONTACT SECTION ============= */
.contact {
    padding: 100px 2rem;
    background: linear-gradient(135deg, var(--light-bg), #ffffff);
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

/* Enhanced hover effect for contact items */
.contact-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.contact-item:hover i {
    background: rgba(255,255,255,0.2);
    color: white;
}

.contact-item:hover h4 {
    color: white;
}

.contact-item:hover p,
.contact-item:hover a {
    color: rgba(255,255,255,0.9);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    min-width: 50px;
    text-align: center;
    background: linear-gradient(135deg, rgba(200, 70, 48, 0.1), rgba(232, 167, 111, 0.1));
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    transition: var(--transition);
}

.contact-item p {
    opacity: 0.8;
    transition: var(--transition);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* ============= WHATSAPP CONTACT STYLES ============= */
.whatsapp-contact {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.whatsapp-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 3px solid #25D366;
    position: relative;
    overflow: hidden;
}

.whatsapp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #25D366, #128C7E, #25D366);
}

.whatsapp-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.whatsapp-header i {
    font-size: 3rem;
    color: #25D366;
    animation: pulse 2s ease-in-out infinite;
}

.whatsapp-header h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    font-weight: 800;
}

.whatsapp-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.whatsapp-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.whatsapp-feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 10px;
    transition: var(--transition);
}

.whatsapp-feature:hover {
    transform: translateX(5px);
    background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
}

.whatsapp-feature i {
    color: #25D366;
    font-size: 1.2rem;
}

.whatsapp-feature span {
    font-weight: 600;
    color: var(--secondary-color);
}

.whatsapp-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 16px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.whatsapp-btn i {
    font-size: 1.5rem;
}

.whatsapp-btn-primary {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
    background: linear-gradient(135deg, #128C7E, #25D366);
}

.whatsapp-btn-secondary {
    background: white;
    color: #25D366;
    border: 3px solid #25D366;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.whatsapp-btn-secondary:hover {
    background: #25D366;
    color: white;
    transform: translateY(-5px);
}

.whatsapp-qr {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f5f5f5, #eeeeee);
    border-radius: 15px;
    margin-bottom: 2rem;
}

.whatsapp-qr p {
    color: #666;
    margin-bottom: 1rem;
    font-weight: 600;
}

.qr-placeholder {
    width: 150px;
    height: 150px;
    background: white;
    border: 3px dashed #25D366;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    gap: 0.5rem;
}

.qr-placeholder i {
    font-size: 4rem;
    color: #25D366;
}

.qr-placeholder span {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

/* QR image styling */
.whatsapp-qr-image {
    display: block;
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 12px;
}

@media (max-width: 480px) {
    .whatsapp-qr-image { width: 120px; height: 120px; }
    .qr-placeholder { width: 120px; height: 120px; }
}

.quick-messages {
    border-top: 2px dashed #e0e0e0;
    padding-top: 1.5rem;
}

.quick-messages > p {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.quick-message-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.quick-msg-btn {
    padding: 12px 15px;
    background: linear-gradient(135deg, #fff9f5, #ffe8d6);
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    color: var(--secondary-color);
    transition: var(--transition);
    font-size: 0.9rem;
}

.quick-msg-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* ============= FLOATING WHATSAPP BUTTON ============= */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: floatWhatsApp 3s ease-in-out infinite;
    -webkit-tap-highlight-color: transparent; /* remove blue tap highlight on mobile */
    -webkit-touch-callout: none;
}

@keyframes floatWhatsApp {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating-whatsapp i {
    font-size: 2rem;
    color: white;
}

/* Remove default link underline/decoration and ensure there is no unexpected blue line */
.floating-whatsapp,
.floating-whatsapp:visited,
.floating-whatsapp:hover,
.floating-whatsapp:active,
.floating-whatsapp:focus {
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important; /* ensure no default focus shadow appears */
}

.floating-whatsapp, .floating-whatsapp:visited { color: white; }

/* Block any default underline on the inner icon */
.floating-whatsapp i { display: block; }

/* Add an accessible focus-visible state for keyboard users */
.floating-whatsapp:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.35);
    outline-offset: 4px;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
    position: absolute;
    right: 80px;
    background: #333;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: #333;
}

.floating-whatsapp:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ============= FOOTER ============= */
footer {
    background: var(--dark-bg);
    color: white;
    padding: 4rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.footer-section p {
    opacity: 0.8;
    margin-bottom: 0.7rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.7rem;
}

.footer-section a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.footer-section a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    color: white;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(200, 70, 48, 0.2);
}

.social-links a:hover {
    transform: translateY(-5px) rotate(10deg);
    box-shadow: 0 8px 25px rgba(200, 70, 48, 0.4);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    opacity: 0.7;
    font-size: 0.95rem;
}

/* ============= SCROLL ANIMATIONS ============= */
.scroll-animation {
    opacity: 0;
    transform: translateY(30px);
    animation: scrollFadeInUp 0.6s ease-out forwards;
}

@keyframes scrollFadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============= RESPONSIVE ============= */

/* Large tablets and small desktops */
@media (max-width: 1200px) {
    .navbar {
        padding: 0 1.5rem;
    }
    
    .about-content,
    .contact-content {
        gap: 3rem;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        animation: none;
    }
    
    .about-image img {
        height: 350px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        gap: 1.5rem;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav {
        display: none;
        position: absolute;
        top: 65px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        flex-direction: column;
        padding: 2rem 1rem;
        z-index: 999;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }

    nav.active {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    nav a {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
    }

    .hero {
        padding: 100px 1.5rem 60px;
        margin-top: 65px;
        min-height: auto;
    }
    
    .hero-content .subtagline {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-hero {
        padding: 1rem;
    }

    .about-stat {
        grid-template-columns: 1fr;
    }

    .about-text ul {
        grid-template-columns: 1fr;
    }

    /* Center contact icons vertically on smaller screens for better alignment */
    .contact-item {
        align-items: center; /* vertical center icon relative to the content */
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        padding: 12px 25px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 220px;
    }
    
    .product-info {
        padding: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-card {
        padding: 2rem;
    }
    
    .whatsapp-features {
        grid-template-columns: 1fr;
    }
    
    .quick-message-buttons {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .about,
    .products,
    .why-us,
    .testimonials,
    .contact {
        padding: 60px 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .floating-whatsapp i {
        font-size: 1.6rem;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .navbar {
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 1.4rem;
        gap: 0.5rem;
    }
    
    .logo-img {
        width: 36px; height: 36px;
    }
    
    .logo-subtext {
        display: none;
    }
    
    .hero {
        padding: 80px 1rem 50px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        margin: 0 auto;
        max-width: 100%;
    }

    /* For mobile, revert to normal flow so buttons are not absolute */
    .product-card .btn-more {
        position: static;
        width: 100%;
        margin-top: 1rem;
    }
    .product-info { padding-bottom: 1rem; }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .whatsapp-card {
        padding: 1.5rem;
    }
    
    .whatsapp-header h3 {
        font-size: 1.4rem;
    }
    
    .whatsapp-btn {
        font-size: 1rem;
        padding: 14px 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-number i {
        font-size: 1.8rem;
    }
    
    footer {
        padding: 3rem 1rem 1rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .product-info h3 {
        font-size: 1.4rem;
    }
}

/* ============= LOADING ANIMATION ============= */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============= SMOOTH SCROLLING ============= */
html {
    scroll-behavior: smooth;
}

/* ============= SELECTION STYLES ============= */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* Respect system reduced-motion setting */
@media (prefers-reduced-motion: reduce) {
    .testimonial-track { transition: none !important; }
    .testimonial-card { animation: none !important; }
}

/* ============= PRODUCT PAGE / SINGLE-PAGE STYLES ============= */
/* Sub page header that sits at top of product pages (smaller variant of header) */
.sub-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.sub-header .back {
    display: inline-block;
    color: white;
    text-decoration: none;
    background: rgba(255,255,255,0.06);
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 700;
    transition: var(--transition);
}

.sub-header .back:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

.sub-header h1 { color: white; margin: 0; font-weight: 800; font-size: 1.4rem; }

.product-page {
    background: linear-gradient(180deg, var(--light-bg), #ffffff);
    min-height: 100vh;
    padding-top: 70px; /* give room under the sub header */
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

.product {
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 1rem;
}

.product-hero {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: block;
    margin-bottom: 1.25rem;
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1.75rem;
    align-items: start;
}

.product-desc, .specs {
    background: white;
    padding: 1.6rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.product-desc h2, .specs h2 { color: var(--primary-color); margin-bottom: 0.75rem; }
.specs table { width: 100%; border-collapse: collapse; }
.specs th { text-align: left; padding: 0.6rem 0; color: var(--secondary-color); font-weight: 700; width: 40%; }
.specs td { padding: 0.6rem 0; color: #555; }

.product-actions { display: flex; gap: 0.75rem; margin-top: 1rem; flex-direction: column; }
.product-actions .btn { max-width: 360px; }

@media (max-width: 992px) {
    .product-content { grid-template-columns: 1fr; }
    .product-hero { max-height: 340px; }
    .product-actions { flex-direction: row; }
}

/* Small helper for translations / Marathi text shown in product pages */
.mr { display: inline-block; font-size: 0.95rem; color: rgba(0,0,0,0.7); margin-left: 0.4rem; }

/* Simple footer variation used on product pages */
.site-footer.lite { background: var(--dark-bg); color: white; padding: 1.25rem 2rem; border-top: 1px solid rgba(255,255,255,0.06); text-align: center; }
.site-footer.lite p { margin: 0; opacity: 0.8; }

