/* Custom Styles for OnlineClassHelps */

:root {
    --primary-color: #4361ee;
    /* Vibrant Blue */
    --primary-dark: #3a0ca3;
    --secondary-color: #f72585;
    /* Vibrant Pink/Orange for CTA */
    --accent-color: #4cc9f0;
    --dark-bg: #1a1a2e;
    --light-bg: #f8f9fa;
    --font-main: 'Poppins', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --card-hover-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
    /* Add padding to account for fixed navbar and discount bar */
    scroll-padding-top: 120px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.1);
}

body {
    font-family: var(--font-main);
    color: #444;
    overflow-x: hidden;
    background-color: #fff;
    /* Add margin-top to body to accommodate the discount bar */
    margin-top: 60px;
}

/* Ensure main content is visible */
#main-content {
    position: relative;
    z-index: 1;
    background: #fff;
}

h2 {
    color: #000000 !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(247, 37, 133, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(247, 37, 133, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(247, 37, 133, 0);
    }
}

@keyframes slideInText {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes bounceText {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

@keyframes sparkle {
    0% {
        transform: scale(1);
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }

    50% {
        transform: scale(1.2);
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    }

    100% {
        transform: scale(1);
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
}

/* Animated Gift Icon */
.gift-icon {
    color: #ffd700;
    font-size: 1.5em;
    margin-right: 10px;
    animation: sparkle 1.5s infinite;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.carousel-item {
    display: block;
    opacity: 1;
}

.carousel-control-prev,
.carousel-control-next {
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    transform: scale(1.1);
}

/* CTA Button Styles */
.liveChatBtn {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 15px 35px;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.liveChatBtn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.5);
}

/* Phone Button Styles */
.btn-phone {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    margin-right: 15px;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
}

.btn-phone:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.5);
}

@media (max-width: 991px) {
    .btn-phone {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.fade-up {
    opacity: 0;
}

.fade-up.visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Delay utility */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* --- Discount Bar --- */
.discount-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1002;
    transform: translateY(-100%);
    animation: slideDown 0.5s ease-out 0.5s forwards;
}

.discount-bar {
    background: linear-gradient(90deg, var(--secondary-color) 0%, #ff5c8a 50%, var(--secondary-color) 100%);
    background-size: 200% auto;
    color: white;
    text-align: center;
    padding: 15px 0;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.discount-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.discount-bar:hover {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.discount-bar:hover::before {
    left: 100%;
}

.discount-text {
    display: inline-block;
    animation: bounceText 2s infinite;
}

/* --- Navbar --- */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--primary-dark) !important;
    letter-spacing: -0.5px;
}

.navbar-brand img {
    height: 60px;
    width: auto;
    display: inline-block;
    vertical-align: text-top;
    margin-top: 25px;
}

@media (max-width: 991px) {
    .navbar-brand img {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .navbar-brand img {
        margin-top: 35px;
    }
}

.nav-link {
    font-weight: 500;
    color: #000000 !important;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    padding: 120px 0 160px;
    position: relative;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-headline {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (min-width: 992px) {
    .hero-headline {
        font-size: 4rem;
    }
}

/* Wave Separator */
.custom-shape-divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
    transform: rotateY(180deg);
}

.custom-shape-divider-bottom .shape-fill {
    fill: #FFFFFF;
}

/* --- Buttons --- */
.btn-cta {
    background-color: var(--secondary-color);
    background-image: linear-gradient(45deg, var(--secondary-color) 0%, #ff5c8a 100%);
    border: none;
    color: white;
    padding: 15px 35px;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(247, 37, 133, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-cta:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px rgba(247, 37, 133, 0.5);
    color: white;
}

.btn-cta-pulse {
    animation: pulse-glow 2s infinite;
}

.btn-outline-light-custom {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-light-custom:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

/* --- Services Cards --- */
.service-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    background: #fff;
    transition: all 0.4s ease;
    height: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
    transition: height 0.3s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
    border-color: transparent;
}

.service-card:hover::before {
    height: 5px;
    background: var(--secondary-color);
}

.service-icon-wrapper {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img {
    transform: scale(1.1);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2b2d42;
}

/* --- Steps / How it Works --- */
.step-wrapper {
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 80px;
    height: 80px;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.step-col:hover .step-circle {
    background: var(--primary-color);
    color: white;
    transform: rotate(360deg);
}

/* --- Testimonials --- */
.testimonial-carousel-container {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    border-radius: 30px;
    padding: 4rem 3rem;
    position: relative;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

.testimonial-quote-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    opacity: 0.3;
    margin-bottom: 0.8rem;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 1rem;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: auto;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    flex-shrink: 0;
}

.testimonial-author-info h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #2b2d42;
}

.testimonial-author-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

@media (max-width: 992px) {
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .testimonial-carousel-container {
        padding: 3rem 1.5rem;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
        aspect-ratio: auto;
        min-height: 280px;
    }

    .testimonial-text {
        -webkit-line-clamp: 6;
    }
}

/* --- Sticky WhatsApp --- */
.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 30px;
    left: 30px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(10deg);
    color: white;
    background: #20b858;
}

/* --- Custom Scrollbar Styling --- */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

::-webkit-scrollbar-corner {
    background: rgba(0, 0, 0, 0.1);
}

body::-webkit-scrollbar-track {
    background: rgba(67, 97, 238, 0.05);
}

body::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--secondary-color), var(--primary-color));
}

/* --- Scroll to Top Button --- */
.scroll-to-top {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
}

@media (max-width: 767px) {
    .scroll-to-top {
        bottom: 100px;
    }
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.scroll-to-top:hover {
    transform: translateX(-50%) translateY(-5px) scale(1.1);
    background: var(--primary-dark);
    color: white;
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.6);
}

.scroll-to-top:active {
    transform: translateX(-50%) translateY(0) scale(1.05);
}

.scroll-to-top i {
    transition: transform 0.3s ease;
}

.scroll-to-top:hover i {
    transform: translateY(-3px);
}

/* --- Footer --- */
footer {
    background: #111;
    color: #aaa;
}

.footer-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: all 0.3s;
    margin-right: 10px;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    color: white;
}

/* --- About Section Specifics --- */
.about-us-feature {
    background: var(--light-bg);
    border-left: 5px solid var(--primary-color);
    transition: all 0.3s;
}

.about-us-feature:hover {
    border-left-color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* --- Promo Banner Specifics --- */
#promo-banner {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    padding: 50px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

#promo-banner::before {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 100%;
    background-image: url('images/uk-female.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center left;
    z-index: 0;
    pointer-events: none;
}

#promo-banner .container {
    position: relative;
    z-index: 1;
}

@media (max-width: 767px) {
    #promo-banner::before {
        display: none;
    }
}

.hover-white:hover {
    color: white !important;
}