/* Custom styles for Professor Adda */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@500;600;700&display=swap');

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

html,
body {
    max-width: 100%;
    overflow-x: hidden !important;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

/* Prevent horizontal scroll on focus */
*:focus {
    outline-offset: -2px;
}

*:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Prevent horizontal scroll from focus */
html {
    scroll-padding-top: 80px;
    overflow-x: hidden !important;
}

body {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
    max-width: 100vw;
}

/* Prevent all horizontal scrolling */
* {
    max-width: 100%;
}

/* Ensure containers don't cause horizontal scroll */
.container,
section,
div {
    max-width: 100%;
    overflow-x: hidden;
}

custom-navbar {
    box-sizing: content-box;
}

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    min-height: 100vh;
}

/* Mobile-first improvements */
@media (max-width: 640px) {
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Improve touch targets */
    button,
    a.btn-hover,
    .whatsapp-btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1rem;
    }

    /* Better spacing on mobile */
    section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Prevent text overflow */
    h1,
    h2,
    h3 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Prevent horizontal scroll on focus for mobile */
    *:focus-visible {
        outline-offset: 1px;
        max-width: calc(100vw - 2px);
    }

    /* Aggressive horizontal scroll prevention on mobile */
    html,
    body {
        overflow-x: hidden !important;
        position: relative;
        max-width: 100vw;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #2563eb, #7c3aed);
}

/* Animation classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Button hover effects */
.btn-hover {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.btn-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

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

/* Razorpay Button Customization */
.razorpay-payment-button {
    background: #f3f3f3 !important;
    color: silver !important;
    /* blue-600 */
    font-weight: 600 !important;
    padding: 10px 24px !important;
    border-radius: 50px !important;
    border: none !important;
    font-size: 15px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    min-width: 130px !important;
    min-height: 40px !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.2) !important;
    white-space: nowrap !important;
}

.razorpay-payment-button:hover {
    background: #1d4ed8 !important;
    /* darker blue */
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 15px rgba(37, 99, 235, 0.3) !important;
}

.razorpay-payment-button:active {
    transform: translateY(0) !important;
}

/* Container for the form to ensure centered button */
.payment-form-container {
    width: 100%;
    margin-top: auto;
    display: flex;
    /* Enable flexbox */
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    padding-top: 1rem;
    /* Add some spacing from content */
}

.payment-form-container form {
    width: auto;
    /* Allow form to shrink to button size */
}

/* Modern Marquee / Scrolling Text */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    /* Start from right edge */
    animation: marquee-scroll 25s linear infinite;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    max-width: none;
    /* Override global max-width: 100% */
    overflow: visible;
    /* Override global overflow-x: hidden */
}

/* Pause animation on hover for better readability */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Product List Animations */
.bg-size-200 {
    background-size: 200% 200%;
}

@keyframes gradient-x {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient-x {
    animation: gradient-x 6s ease infinite;
}

@keyframes pulse-subtle {
    0% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4);
    }

    70% {
        box-shadow: 0 0 0 5px rgba(249, 115, 22, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
    }
}

.animate-pulse-subtle {
    animation: pulse-subtle 2s infinite;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Premium Silver-Gold Gradient Animation */
.premium-card-gradient {
    /* Silver and Gold Mix Gradient */
    background: linear-gradient(120deg,
            #fdfbf7 0%,
            /* Off-white silver */
            #e2e8f0 20%,
            /* bluish silver */
            #ffffff 40%,
            /* shine */
            #fde047 50%,
            /* Gold */
            #eab308 60%,
            /* Darker Gold */
            #ffffff 80%,
            /* shine */
            #fdfbf7 100%
            /* Off-white silver */
        );
    background-size: 200% 200%;
    animation: luxury-shine 4s ease-in-out infinite;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

@keyframes luxury-shine {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Premium Silver Page Background with Golden Touch */
.bg-silver-page {
    background: linear-gradient(135deg,
            #f1f5f9 0%,
            /* Silver */
            #e2e8f0 40%,
            /* Darker Silver */
            #fef9c3 80%,
            /* Light Gold/Cream */
            #fde047 100%
            /* Touch of Gold */
        );
    min-height: 100vh;
    background-attachment: fixed;
    /* Parallax effect */
}

/* Gold Border Animation for Buttons */
.gold-border-animate {
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: all 0.3s ease;
    overflow: hidden;
}

.gold-border-animate::before {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    bottom: -4px;
    left: -4px;
    background: linear-gradient(45deg, #ffd700, #fbf2c0, #f6e05e, #b7791f, #ffd700);
    z-index: -1;
    border-radius: inherit;
    animation: goldBorderRotate 3s linear infinite;
    background-size: 400% 400%;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.gold-border-animate:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* Popup Styles */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.5s ease-out forwards;
}

.popup-content {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    width: 90%;
    max-width: 450px;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    text-align: center;
    animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    border: 4px solid #ffffff;
    outline: 2px solid #22c55e;
}

.popup-close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #ef4444;
    color: white;
    border: 2px solid white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    z-index: 10000;
}

.popup-close-btn:hover {
    transform: scale(1.1);
    background: #dc2626;
}

.popup-header {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #16a34a, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.popup-subtext {
    color: #4b5563;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.popup-icon {
    margin-bottom: 1rem;
    display: inline-block;
    color: #facc15;
    animation: ring 4s .7s ease-in-out infinite;
    transform-origin: 50% 4px;
}

@keyframes ring {
    0% {
        transform: rotate(0);
    }

    1% {
        transform: rotate(30deg);
    }

    3% {
        transform: rotate(-28deg);
    }

    5% {
        transform: rotate(34deg);
    }

    7% {
        transform: rotate(-32deg);
    }

    9% {
        transform: rotate(30deg);
    }

    11% {
        transform: rotate(-28deg);
    }

    13% {
        transform: rotate(26deg);
    }

    15% {
        transform: rotate(-24deg);
    }

    17% {
        transform: rotate(22deg);
    }

    19% {
        transform: rotate(-20deg);
    }

    21% {
        transform: rotate(18deg);
    }

    23% {
        transform: rotate(-16deg);
    }

    25% {
        transform: rotate(14deg);
    }

    27% {
        transform: rotate(-12deg);
    }

    29% {
        transform: rotate(10deg);
    }

    31% {
        transform: rotate(-8deg);
    }

    33% {
        transform: rotate(6deg);
    }

    35% {
        transform: rotate(-4deg);
    }

    37% {
        transform: rotate(2deg);
    }

    39% {
        transform: rotate(-1deg);
    }

    41% {
        transform: rotate(1deg);
    }

    43% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleUp {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}


/* Floating WhatsApp Button */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9990;
    /* Highest priority */
    /* Below popup (9999) but high enough */
    width: 60px;
    height: 60px;
    background-color: #25D366;
    /* WhatsApp Green */
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: jump-interval 5s infinite;
    /* Jump every 5 seconds */
}

.floating-whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
    background-color: #20bd5a;
}

.floating-whatsapp-btn svg {
    width: 35px;
    height: 35px;
    fill: white;
    stroke: white;
}

/* Notification Badge on Floating Button */
.notification-badge-float {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ef4444;
    /* Red */
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid white;
    animation: pulse-badge 5s infinite;
}

/* Jump Animation (Active for first ~1s of 5s cycle) */
@keyframes jump-interval {

    0%,
    20%,
    100% {
        transform: translateY(0);
    }

    5% {
        transform: translateY(-15px);
    }

    10% {
        transform: translateY(0);
    }

    15% {
        transform: translateY(-7px);
    }
}

/* Badge Pulse Animation synced */
@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
    }

    5%,
    15% {
        transform: scale(1.2);
    }
}