/* Ours Academy State-of-the-Art Premium Design System */

:root {
    --brand-primary: #F28B00;
    --brand-primary-rgb: 242, 139, 0;
    --brand-secondary: #F92400;
    --brand-secondary-rgb: 249, 36, 0;
    --brand-dark: #0f172a;
    --brand-dark-rgb: 15, 23, 42;
    --brand-light: #f8fafc;
    --brand-gray: #64748b;
    --brand-border: rgba(242, 139, 0, 0.12);
    --accent-blue: #2563eb;
    --accent-gold: #f59e0b;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Base resets & smooth scrolling */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-body);
    color: #334155;
    background-color: var(--brand-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--brand-dark);
    letter-spacing: -0.02em;
}

/* Custom modern scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    border-radius: 10px;
    border: 2px solid #f1f5f9;
}
::-webkit-scrollbar-thumb:hover {
    filter: brightness(0.9);
}

/* Float Glow Backgrounds */
.bg-glow-1 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--brand-primary-rgb), 0.12) 0%, transparent 70%);
    filter: blur(60px);
    top: 15%;
    left: -150px;
    pointer-events: none;
    z-index: 0;
}
.bg-glow-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--brand-secondary-rgb), 0.08) 0%, transparent 70%);
    filter: blur(80px);
    bottom: 25%;
    right: -200px;
    pointer-events: none;
    z-index: 0;
}

/* Premium Buttons with subtle shadows and animations */
.btn-brand-primary {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: #fff !important;
    border: none;
    font-weight: 700;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(242, 139, 0, 0.35);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-brand-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-primary) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    border-radius: 50px;
}
.btn-brand-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(242, 139, 0, 0.5);
}
.btn-brand-primary:hover::before {
    opacity: 1;
}

.btn-brand-secondary {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.1);
    font-weight: 700;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.btn-brand-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.35);
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    border-color: transparent;
}

.btn-brand-outline {
    background: transparent;
    color: var(--brand-primary) !important;
    border: 2.5px solid var(--brand-primary);
    font-weight: 700;
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.btn-brand-outline:hover {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: #fff !important;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(242, 139, 0, 0.25);
}

.btn-brand-light-outline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 700;
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.btn-brand-light-outline:hover {
    background: #fff;
    color: var(--brand-dark) !important;
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255,255,255,0.25);
}

/* Scrolling News/Updates Ticker */
.bp-header-updates {
    background: #0f172a;
    border-bottom: 2px solid var(--brand-primary);
    color: #fff;
    overflow: hidden;
    position: relative;
    z-index: 1040;
}
.bp-header-updates__inner {
    align-items: center;
    display: flex;
    gap: 15px;
    min-height: 46px;
    padding: 0 20px;
}
.bp-header-updates__label {
    align-items: center;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    border-radius: 4px;
    color: #fff;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 6px 12px;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(242, 139, 0, 0.35);
}
.bp-header-updates__viewport {
    flex: 1;
    overflow: hidden;
}
.bp-header-updates__track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 28s linear infinite;
}
.bp-header-updates__track:hover {
    animation-play-state: paused;
}
.bp-header-updates__group {
    display: flex;
    gap: 50px;
    padding-right: 50px;
    white-space: nowrap;
}
.bp-header-updates__item {
    color: #e2e8f0 !important;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}
.bp-header-updates__item:hover {
    color: var(--brand-primary) !important;
}

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

/* Topbar contact details */
.topbar {
    background-color: #0b0f19;
}
.topbar a {
    font-weight: 500;
    font-size: 0.82rem;
}
.topbar a:hover {
    color: var(--brand-primary) !important;
}

/* Navbar styles */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.navbar.scrolled {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
}
.navbar-nav .nav-link {
    color: #334155 !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1.1rem !important;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin: 0 0.1rem;
}
.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
    color: var(--brand-primary) !important;
    background-color: rgba(var(--brand-primary-rgb), 0.08);
}

/* Immersive Hero Carousel - Fade animation & slide reveals */
.hero-carousel {
    background-color: var(--brand-dark);
}
.hero-slide {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 0 100px 0;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(11, 15, 25, 0.95) 0%, rgba(15, 23, 42, 0.75) 50%, rgba(242, 139, 0, 0.15) 100%);
    z-index: 1;
}
.hero-content-box {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

/* Glassmorphic Container for Hero text so it pops on dark/busy images */
.hero-glass-panel {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 3rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.hero-badge {
    background: linear-gradient(90deg, rgba(242, 139, 0, 0.2) 0%, rgba(249, 36, 0, 0.2) 100%);
    border: 1.5px solid rgba(242, 139, 0, 0.4);
    color: #ffa826;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 8px 18px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Hero Carousel Slide Elements Animation */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}
.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* Slide Entry Animations */
.carousel-item .hero-badge,
.carousel-item h1,
.carousel-item p,
.carousel-item .hero-btns {
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease;
}
.carousel-item.active .hero-badge {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.05s;
}
.carousel-item.active h1 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}
.carousel-item.active p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
}
.carousel-item.active .hero-btns {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

/* Hero Title clamp */
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 60%, #ffa826 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(241, 245, 249, 0.85);
    line-height: 1.6;
}

/* Premium Statistics Bar */
.stats-bar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 28px;
    padding: 3rem 2rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    border: 1.5px solid rgba(242, 139, 0, 0.25);
    position: relative;
    z-index: 10;
}
.stat-item h3 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.3rem;
}
.stat-item p {
    font-size: 0.95rem;
    font-weight: 700;
    color: #94a3b8;
}

/* Premium Card Component with Double-border and Glass effect */
.premium-card {
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    height: 100%;
}
.premium-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 24px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(242, 139, 0, 0.3) 0%, rgba(249, 36, 0, 0) 50%, rgba(255, 255, 255, 0.6) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(242, 139, 0, 0.12);
    border-color: rgba(242, 139, 0, 0.2);
}

.feature-icon-box {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}
.premium-card:hover .feature-icon-box {
    transform: scale(1.1) rotate(5deg);
}

/* About Us elements */
.about-frame {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.about-badge {
    position: absolute;
    bottom: 25px;
    right: 25px;
    background: #ffffff;
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.15);
    z-index: 10;
    max-width: 190px;
    border: 1px solid rgba(242, 139, 0, 0.15);
}

/* Course Cards with custom visuals */
.course-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 28px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}
.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(242, 139, 0, 0.12);
    border-color: rgba(242, 139, 0, 0.2);
}
.course-card-visual {
    height: 210px;
    position: relative;
    overflow: hidden;
}
.course-card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    color: var(--brand-primary);
    font-weight: 800;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 14px;
    border-radius: 50px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.course-card-body {
    padding: 2.2rem 2rem;
}
.branch-pill {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 5px 12px;
    border-radius: 50px;
    display: inline-block;
}

/* Testimonials Carousel */
.testimonial-card-premium {
    background: #ffffff;
    border: 1px solid rgba(242, 139, 0, 0.15);
    border-radius: 30px;
    padding: 3.5rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
    position: relative;
}
.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    box-shadow: 0 8px 16px rgba(242,139,0,0.3);
}

/* Forms & Map layout */
.form-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 28px;
    padding: 3rem;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.04);
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(242, 139, 0, 0.15);
}

/* Responsive Overrides to Fix glitched margins & padding overlapping */
@media (min-width: 992px) {
    /* Neg Margin only on Desktop to float stats bar beautifully */
    .stats-bar-wrapper {
        margin-top: -85px;
    }
}

@media (max-width: 991.98px) {
    .hero-slide {
        min-height: auto;
        height: auto;
        padding: 80px 0 60px 0;
    }
    .hero-glass-panel {
        padding: 2rem;
        border-radius: 20px;
    }
    .stats-bar-wrapper {
        margin-top: 30px; /* Reset overlap completely on tablet/mobile */
        padding: 0 15px;
    }
    .stats-bar {
        padding: 2rem 1rem;
        border-radius: 20px;
    }
    .navbar-collapse {
        background: #ffffff;
        padding: 1.5rem;
        border-radius: 20px;
        box-shadow: 0 15px 40px rgba(0,0,0,0.12);
        margin-top: 1rem;
        border: 1px solid rgba(0,0,0,0.05);
    }
}

@media (max-width: 575.98px) {
    .hero-slide {
        padding: 60px 0 40px 0;
    }
    .hero-glass-panel {
        padding: 1.5rem 1.25rem;
    }
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }
    .hero-btns .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    .testimonial-card-premium {
        padding: 2rem 1.5rem;
    }
    .form-card {
        padding: 2rem 1.5rem;
    }
}

/* Premium Card Zoom & Hover Styles */
.course-card-visual {
    height: 210px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}
.course-card-img-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 0;
}
.course-card:hover .course-card-img-bg {
    transform: scale(1.15) rotate(1deg);
}
.course-card-visual i {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.course-card:hover .course-card-visual i {
    transform: scale(1.2) rotate(10deg);
}

/* Brand Utility Overrides (Orange/Red theme alignment) */
.text-primary, .text-primary-hover:hover {
    color: var(--brand-primary) !important;
}
.bg-primary {
    background-color: var(--brand-primary) !important;
}
.border-primary {
    border-color: var(--brand-primary) !important;
}

/* Premium Footer Styles */
.footer {
    background-color: #0b0f19 !important; /* Rich deep slate background */
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(242, 139, 0, 0.2) 50%, transparent);
}
.footer h5 {
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.03em;
}
.footer-links li {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.footer-links li a {
    color: #94a3b8 !important;
    transition: all 0.3s ease;
    display: inline-block;
}
.footer-links li:hover {
    transform: translateX(6px);
}
.footer-links li:hover a {
    color: var(--brand-primary) !important;
}
.footer-links li:hover i {
    color: var(--brand-secondary) !important;
}
.footer .btn-brand-outline {
    background-color: rgba(255, 255, 255, 0.03);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.footer .btn-brand-outline:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 5px 15px rgba(242, 139, 0, 0.35);
    transform: translateY(-3px) scale(1.05);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.94);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal.active,
.reveal-left.active,
.reveal-right.active,
.reveal-scale.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
