/* Enhanced Custom Styles with Professional Animations and Responsive Design */
body {
    background: linear-gradient(135deg, #000000, #1a1a1a);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* Background Pattern for Visual Depth */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

/* Improved Loader Animation */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    position: relative;
    transform: scale(0.8);
    animation: loader-appear 0.3s ease forwards;
}

@keyframes loader-appear {
    to { transform: scale(1); }
}

.loader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 5px solid rgba(232, 192, 125, 0.1);
    border-top-color: #e8c07d;
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.65, 0.05, 0.36, 1) infinite;
    box-shadow: 0 0 20px rgba(232, 192, 125, 0.3);
}

.loader::after {
    content: '♪';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #e8c07d;
    animation: pulse 1.5s infinite;
    text-shadow: 0 0 10px rgba(232, 192, 125, 0.7);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.9); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* Enhanced Glow Animation */
.glow-effect {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.glow-effect:hover {
    transform: translateY(-5px);
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(232, 192, 125, 0.3) 0%, rgba(232, 192, 125, 0) 70%);
    opacity: 0;
    animation: glow 3s infinite;
    pointer-events: none;
}

@keyframes glow {
    0% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.8); }
}

/* Improved Sound Wave Animation */
.sound-wave {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 15px auto;
}

.sound-wave span {
    display: block;
    width: 4px;
    height: 35px;
    background-color: rgba(232, 192, 125, 0.7);
    border-radius: 4px;
    animation: wave 1.5s infinite ease-in-out;
    box-shadow: 0 0 5px rgba(232, 192, 125, 0.5);
}

.sound-wave span:nth-child(1) { animation-delay: 0.0s; height: 10px; }
.sound-wave span:nth-child(2) { animation-delay: 0.2s; height: 15px; }
.sound-wave span:nth-child(3) { animation-delay: 0.4s; height: 30px; }
.sound-wave span:nth-child(4) { animation-delay: 0.6s; height: 20px; }
.sound-wave span:nth-child(5) { animation-delay: 0.8s; height: 25px; }
.sound-wave span:nth-child(6) { animation-delay: 0.6s; height: 15px; }
.sound-wave span:nth-child(7) { animation-delay: 0.4s; height: 30px; }
.sound-wave span:nth-child(8) { animation-delay: 0.2s; height: 10px; }

@keyframes wave {
    0%, 100% { height: 10px; }
    50% { height: 35px; }
}

/* Enhanced Indian Ornamental Border */
.ornamental-border {
    position: relative;
    padding: 20px 15px;
    margin: 30px 0;
}

.ornamental-border::before,
.ornamental-border::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 4 Q 5 0, 10 4 T 20 4 T 30 4 T 40 4' stroke='%23e8c07d' fill='none' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    left: 0;
    filter: drop-shadow(0 0 2px rgba(232, 192, 125, 0.5));
    animation: border-shine 3s infinite linear;
}

.ornamental-border::before {
    top: -12px;
}

.ornamental-border::after {
    bottom: -12px;
    transform: rotate(180deg);
}

@keyframes border-shine {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Enhanced Navigation Animation */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, #e8c07d, transparent);
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.nav-link:hover {
    color: #e8c07d;
}

/* Enhanced Feature Card Animation */
.feature-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(232, 192, 125, 0.2), transparent);
    transition: left 0.7s ease;
    z-index: 1;
}

.feature-card:hover::before {
    left: 100%;
}

/* Enhanced Testimonial Slider */
.testimonial-slider {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.testimonial-slider::before,
.testimonial-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.testimonial-slider::before {
    left: 0;
    background: linear-gradient(90deg, rgba(26, 26, 26, 1), transparent);
}

.testimonial-slider::after {
    right: 0;
    background: linear-gradient(-90deg, rgba(26, 26, 26, 1), transparent);
}

.testimonial-slide {
    display: inline-block;
    width: 100%;
    animation: slide 25s linear infinite;
    white-space: normal;
}

.testimonial-slide:hover {
    animation-play-state: paused;
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Enhanced Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #e8c07d, #f1c465);
    z-index: 9999;
    width: 0%;
    box-shadow: 0 0 10px rgba(232, 192, 125, 0.5);
    transition: width 0.2s ease-out;
}

/* Text Gradient Animation */
.text-gradient {
    background: linear-gradient(90deg, #e8c07d, #fff8e7, #e8c07d);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

/* Musical Notes Animation */
.musical-notes-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.musical-note {
    position: absolute;
    font-size: 2rem;
    color: rgba(232, 192, 125, 0.3);
    animation: float-note 15s linear infinite;
    text-shadow: 0 0 5px rgba(232, 192, 125, 0.2);
    z-index: -1;
}

.delay-1 { animation-delay: 2s; left: 10%; }
.delay-2 { animation-delay: 4s; left: 30%; }
.delay-3 { animation-delay: 6s; left: 50%; }
.delay-4 { animation-delay: 8s; left: 70%; }
.delay-5 { animation-delay: 10s; left: 90%; }

@keyframes float-note {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(20deg);
        opacity: 0;
    }
}

/* Pulse Animation */
.pulse-animation {
    animation: pulse-effect 2s infinite;
}

@keyframes pulse-effect {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* Floating Animation */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

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

/* Button Hover Effects */
.btn-effect {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.btn-effect::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: rgba(232, 192, 125, 0.2);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn-effect:hover::before {
    height: 100%;
}

.btn-effect:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive Design Enhancements */
@media (max-width: 992px) {
    .sound-wave {
        height: 30px;
        gap: 3px;
    }
    
    .sound-wave span {
        width: 3px;
    }
    
    .feature-card:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .sound-wave {
        height: 24px;
        gap: 2px;
    }
    
    .sound-wave span {
        width: 2px;
    }
    
    .ornamental-border {
        padding: 15px 10px;
        margin: 20px 0;
    }
    
    .musical-note {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .loader {
        width: 80px;
        height: 80px;
    }
    
    .loader::after {
        font-size: 18px;
    }
    
    .sound-wave {
        height: 20px;
        gap: 2px;
    }
}

/* Animation Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    .loader::before,
    .sound-wave span,
    .glow-effect::after,
    .testimonial-slide,
    .text-gradient,
    .musical-note,
    .float-animation {
        animation: none !important;
        transition: none !important;
    }
    
    .feature-card:hover,
    .nav-link::after,
    .btn-effect:hover {
        transform: none !important;
    }
}