/* index.css */

/* Font Setup */
body {
    margin: 0;
    padding: 0;
    font-family: 'Rajdhani', sans-serif;
    background: #f5f9ff;
    color: #1c1c1c;
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Hero Section */
.hero-section {
    background: url("/pattern.jpg");
    background-size: cover;
    animation: animatedGradient 15s ease infinite;
    text-align: center;
    padding: 4rem 2rem 6rem;
    position: relative;
    border-bottom: 2px solid #d0e4ff;
    animation: fadeIn 1.5s ease;
    color: #003366;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: #000000;
    margin: 0.5rem 0;
    text-shadow: 0 0 1px #00bfa6, 0 0 1px #00bfa6, 0 0 2px #00bfa6;
    animation: neonPulse 2.5s infinite alternate ease-in-out;
}

.hero-content h4 {
    font-size: 1.8rem;
    color: #000000;
    margin-bottom: 1rem;
}

.blink {
    animation: pulse 1s ease-in-out infinite;
    color: #ab0000;
    font-weight: 700;
}

@keyframes pulse {

    0%,
    100% {
        transform: none;
        text-shadow: none;
        opacity: 1;
    }

    50% {
        transform: translateY(-1px);
        text-shadow: 0 0 8px rgb(255, 255, 0);
        opacity: .85;
    }
}

/* Greeting & Paid Info */
.greeting {
    font-size: 1.5rem;
    font-weight: 600;
    color: #FF4500;
}

.paid-until,
.unpaid-warning {
    font-size: 1.1rem;
    color: #000000;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding: 5rem 3rem;
    background: rgb(255, 255, 255);
}

/* === New: animated soft backdrop for the features grid === */
.features {
    position: relative;
    overflow: hidden;
}

.features::before {
    content: "";
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(40% 25% at 20% 10%, rgba(0, 191, 166, .14), transparent 60%),
        radial-gradient(36% 22% at 80% 0%, rgba(0, 71, 171, .12), transparent 60%);
    filter: blur(20px);
    animation: featuresGlow 12s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes featuresGlow {
    0% {
        transform: translateY(0) scale(1);
        opacity: .7;
    }

    100% {
        transform: translateY(6px) scale(1.03);
        opacity: 1;
    }
}

.feature {
    background: #e6f7ff;
    border-radius: 1.2rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: featureReveal 0.8s ease forwards;
    position: relative;
    z-index: 1;
    /* above backdrop */
}

.feature:nth-child(1) {
    animation-delay: 0.2s;
}

.feature:nth-child(2) {
    animation-delay: 0.4s;
}

.feature:nth-child(3) {
    animation-delay: 0.6s;
}

/* === New: gentle edge glow + spotlight on hover === */
.feature::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    padding: 1px;
    background: linear-gradient(180deg, rgba(0, 191, 166, .35), rgba(0, 71, 171, .25));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .3s ease;
}

.feature::after {
    content: "";
    position: absolute;
    top: -20%;
    left: 50%;
    width: 140%;
    height: 140%;
    transform: translateX(-50%);
    background: radial-gradient(40% 30% at 50% 20%, rgba(0, 191, 166, .10), transparent 60%);
    opacity: 0;
    transition: opacity .3s ease, transform .35s ease;
    pointer-events: none;
}

.feature:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 14px 36px rgba(0, 102, 204, 0.18);
}

.feature:hover::before {
    opacity: 1;
}

.feature:hover::after {
    opacity: .16;
    transform: translateX(-50%) translateY(-4px);
}

/* === New: keyboard focus parity === */
.feature:focus-within {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 14px 36px rgba(0, 102, 204, 0.18);
}

.feature:focus-within::before {
    opacity: 1;
}

.feature:focus-within::after {
    opacity: .16;
}

/* === New: icons float subtly (pause on hover for stability) === */
.feature i {
    font-size: 2.8rem;
    color: #00bfa6;
    margin-bottom: 1rem;
    animation: floatY 3.2s ease-in-out infinite;
}

.feature:hover i {
    animation-play-state: paused;
}

@keyframes floatY {

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

    50% {
        transform: translateY(-6px);
    }
}

/* === New: heading underline grows on hover === */
.feature h2 {
    font-size: 1.8rem;
    color: #0047ab;
    margin-bottom: 0.5rem;
    position: relative;
}

.feature h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    height: 3px;
    width: 0%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #00bfa6, #0047ab);
    border-radius: 2px;
    transition: width .28s ease;
}

.feature:hover h2::after,
.feature:focus-within h2::after {
    width: 52%;
}

.feature h4 {
    font-size: 1rem;
    color: #333;
}

/* Why XamBook Section */
.why-section {
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 6rem 3rem;
    background: url("/pattern.jpg");
    background-size: cover;
    position: relative;
    overflow: hidden;
    animation: fadeSlideUp 1.5s ease both;
}

.why-img {
    flex: 1;
    text-align: center;
    padding: 0%;
    transform: scale(0.95);
    transition: transform 0.5s ease;
}

.why-img img {
    max-width: 500px;
    width: 80%;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
    transition: transform 0.4s ease;
}

.why-img img:hover {
    transform: scale(1.05);
}

.why-content {
    flex: 1;
    padding: 0%;
    animation: fadeSlideRight 1.2s ease both;
}

.why-content h2 {
    font-size: 2.4rem;
    color: #003366;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.why-content h2::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 4px;
    background: #78bd01;
    bottom: -3px;
    left: 0;
    border-radius: 2px;
    animation: expandBar 1s ease forwards;
}

.why-content ul {
    list-style: none;
    padding: 0;
}

.why-content li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #333;
    padding-left: 1.5rem;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.3s;
}

.why-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00bfa6;
    font-weight: bold;
}

.why-content li:nth-child(2) {
    animation-delay: 0.5s;
}

.why-content li:nth-child(3) {
    animation-delay: 0.7s;
}

.why-content li:nth-child(4) {
    animation-delay: 0.9s;
}

.reviews-section {
    padding: 80px 20px;
    background: #f2f7ff;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.reviews-section h2 {
    font-size: 2.8rem;
    color: #222;
    margin-bottom: 50px;
    font-weight: 700;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.review {
    background: #fff;
    border-radius: 16px;
    padding: 25px 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s ease forwards;
}

.review:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.review p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

.review h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Animation */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* AOS fallback */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 0.8s;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: none;
}

/* Button Effects */
.btn-primary,
.btn-outline {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 1.2rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: #ffc001;
    color: rgb(0, 0, 0);
    border: none;
    box-shadow: 0 3px 10px rgba(0, 191, 166, 0.2);
}

.btn-primary:hover {
    background: #FF6F61;
    box-shadow: 0 6px 15px rgba(0, 191, 166, 0.3);
    filter: drop-shadow(0 0 8px rgba(0, 191, 166, 0.5));
}

.btn-outline {
    border: 2px solid #000000;
    color: #000000;
    background-color: #78bd01;
}

.btn-outline:hover {
    background: #00bfa6;
    color: white;
    box-shadow: 0 6px 15px rgba(0, 191, 166, 0.2);
    filter: drop-shadow(0 0 8px rgba(0, 191, 166, 0.5));
}

/* Floating CTA Button */
.floating-cta {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #ffcc00;
    color: #003366;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.3);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    z-index: 1000;
    transition: background 0.3s ease;
    animation: bounceIn 1s ease-in-out;
    position: fixed;
    overflow: visible;
}

.floating-cta:hover {
    background: #e6b800;
}

.floating-cta::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: rgba(255, 204, 0, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    animation: pulseCta 2.5s infinite;
    z-index: -1;
}

.floating-cta.hidden {
    display: none;
}

/* Doctor Runner Animation */
.doctor-runner {
    position: fixed;
    bottom: 10px;
    left: -150px;
    width: 100px;
    height: auto;
    z-index: 1001;
    animation: runAcross 15s ease-in-out 10000;
    pointer-events: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

@keyframes fadeSlideRight {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes expandBar {
    from {
        width: 0;
    }

    to {
        width: 60%;
    }
}

@keyframes runAcross {
    0% {
        left: -150px;
        transform: scaleX(1) rotate(0deg);
        opacity: 1;
    }

    30% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        left: 110%;
        transform: scaleX(1) rotate(0deg);
        opacity: 0;
    }
}

@keyframes neonPulse {
    from {
        text-shadow: 0 0 5px #00bfa6, 0 0 10px #00bfa6, 0 0 20px #00bfa6;
    }

    to {
        text-shadow: 0 0 10px #00ffd0, 0 0 20px #00ffd0, 0 0 40px #00ffd0;
    }
}

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

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

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

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    70% {
        transform: scale(0.9);
    }

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

@keyframes pulseCta {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

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

/* Reduced motion respect for new effects */
@media (prefers-reduced-motion: reduce) {

    .features::before,
    .feature i {
        animation: none !important;
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .why-section {
        flex-direction: column;
    }

    .floating-cta {
        right: 15px;
        bottom: 15px;
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content h4 {
        font-size: 1.2rem;
    }
}