/* ===================================
   Hero Section Styles
   =================================== */

.hero {
    padding: 30px 0;
    /* background: linear-gradient(135deg, #000072 0%, #1a1a8e 50%, #000072 100%); */
    /* Background color is now controlled from admin panel via inline styles */
    overflow: hidden;
    position: relative;
    background-size: 200% 200%;
    /* animation: gradientShift 15s ease infinite; */
}

/* Commented out to allow clean admin-controlled background colors */
/* .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(185, 212, 50, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(185, 212, 50, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 30%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(185, 212, 50, 0.03) 2px, rgba(185, 212, 50, 0.03) 4px),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(185, 212, 50, 0.03) 2px, rgba(185, 212, 50, 0.03) 4px);
    pointer-events: none;
    opacity: 0.5;
} */

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

.hero-carousel {
    position: relative;
    border-radius: 20px;
    overflow: visible;
    z-index: 1;
}

.carousel-item {
    transition: transform 0.8s ease-in-out;
    padding: 20px 0;
    position: relative;
}

.carousel-item::before,
.carousel-item::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.15;
    animation: floatDecorative 8s ease-in-out infinite;
    pointer-events: none;
}

.carousel-item::before {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #b9d432 0%, transparent 70%);
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.carousel-item::after {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 0, 114, 0.6) 0%, transparent 70%);
    bottom: 10%;
    right: -5%;
    animation-delay: 1s;
}

@keyframes floatDecorative {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Hero Content Styles */
.hero-content {
    padding: 30px;
    animation: fadeInUp 0.8s ease-out;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(185, 212, 50, 0.05) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(185, 212, 50, 0.1) 50%, transparent 70%);
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    /* background: linear-gradient(135deg, #ffffff 0%, #b9d432 50%, #ffffff 100%); */
    /* background-size: 200% auto; */
    /* -webkit-background-clip: text; */
    /* -webkit-text-fill-color: transparent; */
    /* background-clip: text; */
    /* Color is now controlled from admin panel via inline styles */
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: slideInLeft 0.8s ease-out; /* Removed shimmerText animation */
    /* filter: drop-shadow(0 2px 10px rgba(185, 212, 50, 0.3)); */
    position: relative;
    z-index: 1;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #b9d432 0%, transparent 100%);
    border-radius: 2px;
    animation: expandLine 0.8s ease-out 0.3s both;
}

/* Commented out - no longer needed with admin-controlled colors */
/* @keyframes shimmerText {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
} */

@keyframes expandLine {
    from { width: 0; }
    to { width: 80px; }
}

.hero-subtitle {
    font-size: 1.25rem;
    /* color: #ffffff; */
    /* Color is now controlled from admin panel via inline styles */
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 400;
    animation: slideInLeft 0.9s ease-out;
    /* text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); */
    /* background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(185, 212, 50, 0.9) 100%); */
    /* -webkit-background-clip: text; */
    /* -webkit-text-fill-color: transparent; */
    /* background-clip: text; */
    position: relative;
    z-index: 1;
}

/* Hero Image Styles */
.hero-image-wrapper {
    position: relative;
    animation: fadeInRight 0.8s ease-out, floatImage 6s ease-in-out infinite;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, rgba(185, 212, 50, 0.4) 0%, rgba(0, 0, 114, 0.4) 100%);
    border-radius: 30px;
    filter: blur(30px);
    opacity: 0.6;
    animation: pulse 3s ease-in-out infinite;
    z-index: -1;
}

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

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.hero-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(185, 212, 50, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 15px;
    border: 3px solid transparent;
    background-clip: padding-box;
    aspect-ratio: 4 / 3; /* Changed from 1/1 to 4/3 to reduce height relative to width */
    max-width: 550px; /* Added max-width to prevent it from getting too large on big screens */
    margin: 0 auto; /* Center the capped container */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 20px;
    padding: 3px;
    background: linear-gradient(135deg, #b9d432 0%, #000072 50%, #b9d432 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotateBorder 3s linear infinite;
    background-size: 200% 200%;
}

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

.hero-image:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 30px 80px rgba(185, 212, 50, 0.6),
        0 0 0 1px rgba(185, 212, 50, 0.3),
        inset 0 0 30px rgba(185, 212, 50, 0.1);
}

.hero-image img {
    width: 100%;
    height: 100%; /* Changed from auto to 100% */
    display: block;
    border-radius: 15px;
    object-fit: contain; /* Changed from cover to contain to avoid cropping while rescaling */
    transition: all 0.4s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
    filter: brightness(1.05) saturate(1.1);
}

/* Sparkle Effects */
.hero-carousel::before,
.hero-carousel::after {
    content: '✦';
    position: absolute;
    font-size: 20px;
    color: #b9d432;
    text-shadow: 0 0 10px rgba(185, 212, 50, 0.8);
    animation: sparkle 3s ease-in-out infinite;
    opacity: 0;
    z-index: 10;
}

.hero-carousel::before {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.hero-carousel::after {
    top: 70%;
    right: 15%;
    animation-delay: 1.5s;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
}

/* Carousel Indicators */
.hero-indicators {
    bottom: -50px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
}

.hero-indicators button {
    width: 35px;
    height: 10px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0%, rgba(185, 212, 50, 0.3) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.6;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 5px;
    padding: 0;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.hero-indicators button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.hero-indicators button:hover::before {
    left: 100%;
}

.hero-indicators button.active {
    width: 50px;
    height: 12px;
    border-radius: 10px;
    background: linear-gradient(90deg, #b9d432 0%, #a8c52d 50%, #b9d432 100%);
    background-size: 200% 100%;
    opacity: 1;
    box-shadow:
        0 0 20px rgba(185, 212, 50, 0.6),
        0 0 40px rgba(185, 212, 50, 0.4),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: indicatorGlow 2s ease-in-out infinite;
}

@keyframes indicatorGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-indicators button:hover {
    opacity: 1;
    background: linear-gradient(90deg, rgba(185, 212, 50, 0.6) 0%, rgba(185, 212, 50, 0.8) 100%);
    border-color: rgba(185, 212, 50, 0.8);
    transform: scale(1.1);
}

/* Carousel Controls */
.hero-control-prev,
.hero-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.hero-carousel:hover .hero-control-prev,
.hero-carousel:hover .hero-control-next {
    opacity: 1;
}

.hero-control-prev {
    left: -75px;
}

.hero-control-next {
    right: -75px;
}

.carousel-control-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(185, 212, 50, 0.1) 100%);
    border-radius: 50%;
    box-shadow:
        0 5px 20px rgba(185, 212, 50, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.carousel-control-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, #b9d432 0%, #000072 50%, #b9d432 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.carousel-control-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(185, 212, 50, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transition: transform 0.5s ease;
}

.carousel-control-icon:hover::after {
    transform: translate(-50%, -50%) scale(1.5);
}

.carousel-control-icon i {
    font-size: 18px;
    color: #000072;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.carousel-control-icon:hover {
    background: linear-gradient(135deg, #b9d432 0%, #a8c52d 100%);
    transform: scale(1.15) rotate(5deg);
    box-shadow:
        0 10px 30px rgba(185, 212, 50, 0.6),
        0 0 0 3px rgba(255, 255, 255, 0.3),
        0 0 60px rgba(185, 212, 50, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
}

.carousel-control-icon:hover::before {
    opacity: 1;
}

.carousel-control-icon:active {
    transform: scale(1.05) rotate(0deg);
}

.carousel-control-icon:hover i {
    color: #fff;
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Tablet Styles */
@media (max-width: 991px) {
    .hero {
        padding: 20px 0;
    }

    .carousel-item {
        padding: 15px 0;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .hero-content {
        text-align: center;
        padding: 20px;
    }

    .hero-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-image {
        margin-bottom: 20px;
    }

    .hero-control-prev {
        left: 10px;
    }

    .hero-control-next {
        right: 10px;
    }

    .hero-control-prev,
    .hero-control-next {
        opacity: 1;
    }
}

/* Mobile Styles */
@media (max-width: 767px) {
    .hero {
        padding: 15px 0;
    }

    .carousel-item {
        padding: 10px 0;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

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

    .hero-content {
        padding: 15px;
    }

    .hero-title::after {
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
    }

    .hero-image {
        padding: 10px;
        box-shadow: 0 10px 30px rgba(185, 212, 50, 0.3);
    }

    .carousel-item::before,
    .carousel-item::after {
        width: 200px;
        height: 200px;
        opacity: 0.1;
    }

    .carousel-control-icon {
        width: 40px;
        height: 40px;
    }

    .carousel-control-icon i {
        font-size: 14px;
    }

    .hero-indicators {
        bottom: -40px;
    }

    .hero-indicators button {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }

    .hero-indicators button.active {
        width: 28px;
        height: 8px;
    }

    .hero-control-prev {
        left: 5px;
    }

    .hero-control-next {
        right: 5px;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

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

    .carousel-control-icon {
        width: 35px;
        height: 35px;
    }

    .carousel-control-icon i {
        font-size: 12px;
    }
}

/* ===================================
   Product Section Styles
   =================================== */

@media (min-width: 576px) {
    .product-card {
        width: calc(50% - 6px);
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}
