 /* ================================
   HERO CAROUSEL - FULLY RESPONSIVE CSS
   Optimized for all devices
   ================================ */

/* Hero Carousel Container */
.hero-carousel {
    position: relative;
    width: 100%;
    min-height: 520px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Animated Background Layer */
.hero-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 119, 115, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(138, 201, 38, 0.3) 0%, transparent 50%);
    animation: bgAnimation 15s ease-in-out infinite;
    z-index: 1;
}

@keyframes bgAnimation {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
        opacity: 0.8;
    }
}

/* Floating Particles */
.hero-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent),
        radial-gradient(1px 1px at 70% 40%, white, transparent);
    background-size: 200% 200%;
    animation: particles 20s linear infinite;
    opacity: 0.4;
    z-index: 1;
}

@keyframes particles {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

/* Carousel Slides */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Slide Content */
.slide-content {
    text-align: center;
    color: white;
    padding: clamp(15px, 3vw, 20px);
    max-width: clamp(300px, 90vw, 900px);
    animation: slideIn 1s ease-out;
    position: relative;
    z-index: 3;
}

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

.slide-content h1 {
    font-size: clamp(1.5rem, 5vw, 4rem);
    margin-bottom: clamp(15px, 3vw, 20px);
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

/* H2 styled to look like H1 for carousel slides */
.slide-content h2 {
    font-size: clamp(1.5rem, 5vw, 4rem);
    margin-bottom: clamp(15px, 3vw, 20px);
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.slide-content p {
    font-size: clamp(0.9rem, 2.5vw, 1.5rem);
    margin-bottom: clamp(20px, 4vw, 30px);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Optional: Style for hero subtitle if you use it */
.hero-subtitle {
    font-size: clamp(1rem, 2.8vw, 1.6rem);
    font-weight: 500;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: clamp(12px, 2.5vw, 15px) clamp(25px, 5vw, 40px);
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.cta-button:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.cta-button:active {
    transform: translateY(-1px);
}

/* Navigation Buttons */
.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: clamp(10px, 2vw, 15px);
    z-index: 10;
}

.nav-btn {
    width: clamp(40px, 8vw, 50px);
    height: clamp(40px, 8vw, 50px);
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.nav-btn:active {
    transform: scale(0.95);
}

.nav-btn svg {
    width: clamp(18px, 4vw, 24px);
    height: clamp(18px, 4vw, 24px);
    fill: white;
}

/* Slide Indicators */
.slide-indicators {
    position: absolute;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: clamp(8px, 1.5vw, 10px);
    z-index: 10;
}

.indicator {
    width: clamp(10px, 2vw, 12px);
    height: clamp(10px, 2vw, 12px);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.indicator.active {
    background: white;
    width: clamp(25px, 5vw, 30px);
    border-radius: 6px;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.indicator:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Gradient Overlays for Different Slides */
.slide-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.slide-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.slide-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.slide-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.slide-5 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.slide-6 { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }

/* ================================
   RESPONSIVE BREAKPOINTS
   ================================ */

/* Large Desktop (1440px+) */
@media (min-width: 1441px) {
    .hero-carousel {
        min-height: 600px;
    }
    
    .slide-content {
        max-width: 1000px;
    }
}

/* Desktop (1024px - 1440px) */
@media (min-width: 1024px) and (max-width: 1440px) {
    .hero-carousel {
        min-height: 550px;
    }
}

/* Tablet Landscape (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-carousel {
        min-height: 500px;
    }
    
    .slide-content {
        padding: 20px;
    }
    
    .carousel-nav {
        bottom: 25px;
    }
    
    .slide-indicators {
        bottom: 90px;
    }
}

/* Tablet Portrait (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .hero-carousel {
        min-height: 450px;
    }
    
    .slide-content {
        padding: 15px;
        max-width: 95%;
    }
    
    .slide-content h1 {
        margin-bottom: 15px;
    }
    
    .slide-content p {
        margin-bottom: 20px;
    }
    
    .carousel-nav {
        bottom: 20px;
        gap: 10px;
    }
    
    .nav-btn {
        width: 45px;
        height: 45px;
    }
    
    .nav-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .slide-indicators {
        bottom: 80px;
    }
    
    .cta-button {
        padding: 12px 30px;
    }
}

/* Mobile (320px - 480px) */
@media (max-width: 480px) {
    .hero-carousel {
        min-height: 450px;
    }
    
    .slide-content {
        padding: 15px 10px;
    }
    
    .slide-content h1 {
        margin-bottom: 12px;
    }
    
    .slide-content p {
        margin-bottom: 18px;
        max-width: 95%;
    }
    
    .carousel-nav {
        bottom: 15px;
        gap: 8px;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        border-width: 1.5px;
    }
    
    .nav-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .slide-indicators {
        bottom: 70px;
        gap: 8px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .indicator.active {
        width: 25px;
    }
    
    .cta-button {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile (below 360px) */
@media (max-width: 360px) {
    .hero-carousel {
        min-height: 400px;
    }
    
    .slide-content {
        padding: 12px 8px;
    }
    
    .carousel-nav {
        bottom: 12px;
        gap: 6px;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
    }
    
    .nav-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .slide-indicators {
        bottom: 60px;
        gap: 6px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
    
    .indicator.active {
        width: 20px;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* Landscape Orientation (Mobile/Tablet) */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-carousel {
        min-height: 480px;
    }
    
    .slide-content h1 {
        font-size: clamp(1.3rem, 4vw, 2.5rem);
        margin-bottom: 10px;
    }
    
    .slide-content p {
        font-size: clamp(0.8rem, 2vw, 1.1rem);
        margin-bottom: 15px;
    }
    
    .carousel-nav {
        bottom: 15px;
    }
    
    .slide-indicators {
        bottom: 65px;
    }
    
    .cta-button {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
}

/* Very Short Landscape */
@media (max-height: 450px) and (orientation: landscape) {
    .hero-carousel {
        min-height: 420px;
    }
    
    .slide-content h1 {
        font-size: clamp(1.2rem, 3.5vw, 2rem);
        margin-bottom: 8px;
    }
    
    .slide-content p {
        font-size: clamp(0.75rem, 1.8vw, 1rem);
        margin-bottom: 12px;
    }
    
    .carousel-nav {
        bottom: 12px;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
    }
    
    .slide-indicators {
        bottom: 55px;
    }
    
    .cta-button {
        padding: 7px 18px;
        font-size: 0.8rem;
    }
}

/* ================================
   ACCESSIBILITY & PERFORMANCE
   ================================ */

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-carousel::before,
    .hero-carousel::after,
    .slide-content,
    .carousel-slide {
        animation: none !important;
        transition: opacity 0.3s ease-in-out !important;
    }
    
    .nav-btn,
    .indicator,
    .cta-button {
        transition: none !important;
    }
    
    .nav-btn:hover,
    .cta-button:hover {
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .nav-btn {
        border-width: 3px;
        background: rgba(255, 255, 255, 0.5);
    }
    
    .indicator {
        border: 2px solid white;
    }
    
    .cta-button {
        border: 2px solid #667eea;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .hero-carousel {
        background: linear-gradient(135deg, #2d3561 0%, #3a2051 100%);
    }
    
    .slide-1 { background: linear-gradient(135deg, #2d3561 0%, #3a2051 100%); }
    .slide-2 { background: linear-gradient(135deg, #702a5f 0%, #7b2b36 100%); }
    .slide-3 { background: linear-gradient(135deg, #275680 0%, #00788f 100%); }
    .slide-4 { background: linear-gradient(135deg, #21733d 0%, #1c7868 100%); }
    .slide-5 { background: linear-gradient(135deg, #7d384e 0%, #7f7020 100%); }
    .slide-6 { background: linear-gradient(135deg, #186768 0%, #1a0433 100%); }
}

/* Print Styles */
@media print {
    .hero-carousel::before,
    .hero-carousel::after,
    .carousel-nav,
    .slide-indicators {
        display: none;
    }
    
    .hero-carousel {
        height: auto;
        min-height: auto;
    }
    
    .carousel-slide {
        position: relative;
        opacity: 1 !important;
        visibility: visible !important;
        height: auto;
        page-break-inside: avoid;
    }
    
    .slide-content {
        color: black;
        text-shadow: none;
    }
    
    .cta-button {
        display: none;
    }
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {
    .nav-btn {
        width: 48px;
        height: 48px;
    }
    
    .indicator {
        width: 12px;
        height: 12px;
    }
    
    .indicator.active {
        width: 32px;
    }
    
    .cta-button {
        padding: 14px 35px;
        font-size: 1rem;
    }
    
    .carousel-nav {
        bottom: 18px;
    }
    
    .slide-indicators {
        bottom: 80px;
    }
}

/* Ultra Wide Screens */
@media (min-width: 1920px) {
    .slide-content {
        max-width: 1200px;
    }
}

/* Small Height Screens (Netbooks) */
@media (max-height: 500px) and (min-width: 768px) {
    .hero-carousel {
        min-height: 460px;
    }
    
    .slide-content h1 {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }
    
    .carousel-nav {
        bottom: 15px;
    }
    
    .slide-indicators {
        bottom: 65px;
    }
}

 
 
 
/* ================================
  Hero section end
   ================================ */

/* ================================
   PRODUCT SECTIONS - FULLY RESPONSIVE start
   ================================ */
/* ================================
   COMPLETE PRODUCT SECTION CSS
   Works on ALL devices with flip cards
   ================================ */

.product-section {
    max-width: 1400px;
    margin: clamp(40px, 8vh, 80px) auto 0;
    padding: 0 clamp(15px, 3vw, 20px);
}

.product-section h2 {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #2d5016;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #4a7c23;
    display: block;
    width: 100%;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(20px, 3vw, 30px);
    margin-top: clamp(20px, 5vh, 40px);
    justify-content: center;
}

/* ================================
   FLIP CARD STRUCTURE
   ================================ */

.product-card {
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    height: clamp(380px, 50vh, 420px);
    width: 100%;
    max-width: 300px;
    flex: 0 0 auto;
    perspective: 1000px;
}

.product-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

/* Hover flip for desktop */
.product-card:hover .product-card-inner {
    transform: rotateY(180deg);
}

/* Click flip for touch devices */
.product-card.flipped .product-card-inner {
    transform: rotateY(180deg);
}

.product-front,
.product-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.product-front {
    background: white;
    display: flex;
    flex-direction: column;
    transform: rotateY(0deg);
    z-index: 2;
}

.product-back {
    background: linear-gradient(135deg, #4a7c23 0%, #2d5016 100%);
    color: white;
    transform: rotateY(180deg);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1;
}

.product-card:hover .product-front,
.product-card:hover .product-back,
.product-card.flipped .product-front,
.product-card.flipped .product-back {
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ================================
   PRODUCT CARD CONTENT
   ================================ */

.product-image {
    width: 100%;
    height: 70%;
    object-fit: contain;
    background: #f5f5f5;
    padding: 10px;
}

.product-info {
    padding: clamp(15px, 3vh, 20px);
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.product-info h3 {
    color: #2d5016;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin: 0;
}

.product-back h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin: 0 auto;
    padding: clamp(20px, 4vw, 25px) 0;
    padding-left: 15px;
    padding-right: 15px;
    color: white;
    text-align: center;
    width: 100%;
    display: block;
    box-sizing: border-box;
}

.product-back p {
    line-height: 1.8;
    font-size: clamp(0.85rem, 2vw, 1rem);
    padding: 0 clamp(20px, 4vw, 30px);
    padding-right: 15px;
    margin: 0;
    padding-bottom: clamp(15px, 3vw, 20px);
}

.product-back strong {
    display: block;
    margin-top: 0.8rem;
    color: #a3d977;
    font-size: 1.05em;
}

/* ================================
   SCROLLBAR STYLING
   ================================ */

.product-back::-webkit-scrollbar {
    width: 12px;
}

.product-back::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0 10px 10px 0;
}

.product-back::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    border: 2px solid rgba(0, 0, 0, 0.3);
}

.product-back::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.8);
}

.product-back {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.6) rgba(0, 0, 0, 0.3);
}

/* ================================
   RESPONSIVE BREAKPOINTS
   ================================ */

@media (min-width: 1441px) {
    .product-section {
        max-width: 1400px;
    }
    .product-grid {
        gap: 30px;
    }
}

@media (max-width: 1440px) {
    .product-section {
        max-width: 1200px;
    }
}

@media (max-width: 1024px) {
    .product-grid {
        gap: clamp(20px, 3vw, 25px);
    }
    .product-card {
        max-width: 280px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .product-card {
        max-width: 280px;
    }
    .product-section h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .product-section {
        margin-top: 40px;
    }
    .product-grid {
        gap: 20px;
    }
    .product-card {
        max-width: 100%;
    }
    .product-section h2 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .product-card {
        max-width: 350px;
    }
    .product-grid {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .product-section {
        padding: 0 15px;
        margin-top: 30px;
    }
    .product-grid {
        gap: 15px;
    }
    .product-card {
        height: 380px;
        max-width: 100%;
    }
    .product-section h2 {
        font-size: 1.8rem;
        padding-bottom: 0.8rem;
    }
    .product-back::-webkit-scrollbar {
        width: 10px;
    }
}

@media (max-width: 360px) {
    .product-card {
        height: 360px;
    }
    .product-section h2 {
        font-size: 1.6rem;
    }
    .product-back h3 {
        font-size: 1.2rem;
        padding: 15px 12px;
    }
    .product-back p {
        font-size: 0.85rem;
        padding: 0 15px;
        padding-bottom: 12px;
    }
}

@media (max-width: 320px) {
    .product-card {
        height: 350px;
    }
    .product-section {
        padding: 0 10px;
    }
    .product-grid {
        gap: 12px;
    }
    .product-back::-webkit-scrollbar {
        width: 8px;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    .product-card {
        height: 350px;
    }
    .product-section {
        margin-top: 30px;
    }
    .product-grid {
        gap: 15px;
    }
}

@media (max-height: 450px) and (orientation: landscape) {
    .product-card {
        height: 320px;
    }
    .product-section h2 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

@media (hover: none) and (pointer: coarse) {
    .product-card {
        -webkit-tap-highlight-color: transparent;
        min-height: 380px;
    }
}

@media print {
    .product-section {
        page-break-inside: avoid;
    }
    .product-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    .product-back {
        display: none;
    }
}

@media (prefers-contrast: high) {
    .product-front,
    .product-back {
        border: 2px solid #4a7c23;
    }
    .product-section h2 {
        border-bottom-width: 4px;
    }
    .product-back::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.9);
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-card-inner {
        transition: none !important;
    }
    .product-card:hover .product-card-inner,
    .product-card.flipped .product-card-inner {
        transition: none;
    }
}

@media (prefers-color-scheme: dark) {
    .product-front {
        background: #2d2d2d;
    }
    .product-image {
        background: #1f1f1f;
    }
    .product-info {
        background: #2d2d2d;
    }
    .product-info h3 {
        color: #a3d977;
    }
    .product-section h2 {
        color: #a3d977;
        border-bottom-color: #6b9c3b;
    }
}


