/* ================================================
   CodeByze.com – Custom Styles
   ================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --green: #00C853;
    --blue: #0066FF;
    --light-blue: #00B4D8;
    --teal: #00897B;
    --dark: #0F172A;
    --darker: #020617;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.05);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f8fafc;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--green), var(--blue));
    border-radius: 999px;
}

/* ---------- Selection ---------- */
::selection {
    background: var(--green);
    color: #fff;
}

/* ---------- Loading Screen ---------- */
#loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    transition: opacity .5s, visibility .5s;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 56px;
    height: 56px;
    border: 5px solid rgba(0, 0, 0, .1);
    border-top-color: var(--green);
    border-right-color: var(--blue);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- Gradient Text ---------- */
.gradient-text {
    background: linear-gradient(135deg, var(--green), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Gradient Buttons ---------- */
.btn-gradient {
    background: linear-gradient(135deg, var(--green), var(--blue));
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform .25s, box-shadow .25s;
    box-shadow: 0 4px 20px rgba(0, 200, 83, 0.25);
}

.btn-gradient:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 30px rgba(0, 200, 83, 0.4);
}

.btn-outline {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--green), var(--blue)) 1;
    color: #fff;
    padding: 0.7rem 2rem;
    border-radius: 0;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all .25s;
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--green), var(--blue));
    opacity: 0;
    transition: opacity .25s;
    z-index: -1;
}

.btn-outline:hover::before {
    opacity: 1;
}

.btn-outline:hover {
    border-image: none;
    border-color: transparent;
}

/* ---------- Glassmorphism Card ---------- */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1.25rem;
}

/* ---------- Animated Gradient Background (Hero) ---------- */
.hero-gradient {
    background: linear-gradient(-45deg, #f8fafc, #e0f2fe, #dcfce7, #f1f5f9);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ---------- Floating Tech Icons ---------- */
.floating-icons {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.08;
    animation: floatIcon 8s ease-in-out infinite;
}

.floating-icon:nth-child(2) {
    animation-delay: 1s;
    animation-duration: 10s;
}

.floating-icon:nth-child(3) {
    animation-delay: 2s;
    animation-duration: 12s;
}

.floating-icon:nth-child(4) {
    animation-delay: 3s;
    animation-duration: 9s;
}

.floating-icon:nth-child(5) {
    animation-delay: 4s;
    animation-duration: 11s;
}

.floating-icon:nth-child(6) {
    animation-delay: 0.5s;
    animation-duration: 13s;
}

.floating-icon:nth-child(7) {
    animation-delay: 1.5s;
    animation-duration: 7s;
}

.floating-icon:nth-child(8) {
    animation-delay: 2.5s;
    animation-duration: 14s;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-30px) rotate(10deg);
    }

    50% {
        transform: translateY(-15px) rotate(-5deg);
    }

    75% {
        transform: translateY(-40px) rotate(8deg);
    }
}

/* ---------- Navbar Animated Underline ---------- */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--green), var(--blue));
    transition: width .3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ---------- Sticky Header Effect ---------- */
#main-header {
    transition: background .3s, box-shadow .3s, padding .3s;
}

#main-header.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .7s cubic-bezier(.4, 0, .2, 1), transform .7s cubic-bezier(.4, 0, .2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Stats Counter Animation ---------- */
.stat-card {
    transition: transform .3s, box-shadow .3s;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 200, 83, 0.15);
}

/* ---------- Course Card Hover ---------- */
.course-card {
    transition: transform .3s, box-shadow .3s;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 102, 255, 0.15);
}

/* ---------- Why-Choose Icon Animation ---------- */
.why-icon {
    transition: transform .4s;
}

.why-card:hover .why-icon {
    transform: scale(1.15) rotate(5deg);
}

/* ---------- Testimonial Carousel ---------- */
.testimonial-track {
    display: flex;
    transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .testimonial-slide {
        min-width: 50%;
    }
}

@media (min-width: 1024px) {
    .testimonial-slide {
        min-width: 33.333%;
    }
}

/* ---------- WhatsApp Floating Button ---------- */
.whatsapp-btn {
    position: fixed;
    bottom: 6rem;
    right: 1.5rem;
    z-index: 1000;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform .3s;
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
    }
}

/* ---------- Back‑to‑Top Button ---------- */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 200, 83, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s, transform .3s;
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

/* ---------- Background Pattern ---------- */
.bg-pattern {
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0, 200, 83, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 102, 255, 0.04) 0%, transparent 50%);
}

/* ---------- Form Focus ---------- */
.form-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.25);
    border-color: var(--green);
}

/* ---------- Enquiry Modal ---------- */
#enquiry-modal {
    transition: opacity .3s, visibility .3s;
}

#enquiry-modal.hidden {
    opacity: 0;
    visibility: hidden;
}

#enquiry-modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

/* ---------- Mobile Menu ---------- */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
}

#mobile-menu.open {
    max-height: 500px;
}

/* ---------- Hide Scrollbar for Mobile Tabs ---------- */
.hide-scroll-mobile::-webkit-scrollbar {
    display: none;
}

.hide-scroll-mobile {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ---------- Search Bar ---------- */
.search-wrapper {
    transition: width .3s, opacity .3s;
}

/* ---------- Hiring Partner Logo Marquee ---------- */
.marquee {
    display: flex;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ---------- Subtle Glow Circles (Decorative) ---------- */
.glow-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
}

/* =========================================
   NEW COURSE MODULE STYLES (COLORFUL & MODERN)
   ========================================= */

/* Sidebar Category Tabs */
.course-tab {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-tab:hover {
    transform: translateX(4px);
    background: #f8fafc;
}

@media (max-width: 1023px) {
    .course-tab:hover {
        transform: translateY(-2px);
    }
}

.course-tab.active-tab {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.04), rgba(0, 200, 83, 0.04));
    border-color: rgba(0, 102, 255, 0.2) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
}

.course-tab.active-tab .font-semibold {
    color: #0066FF;
}

/* Course Cards */
.course-card-new {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    z-index: 1;
    overflow: hidden;
}

/* Vibrant Hover border top effect */
.course-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0066FF, #00C853);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-card-new:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 102, 255, 0.15);
    z-index: 10;
}

.course-card-new:hover::before {
    opacity: 1;
}

/* Card Elements */
.course-card-new .icon {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    width: max-content;
    display: inline-flex;
    border-radius: 0.75rem;
    background: #f8fafc;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.course-card-new:hover .icon {
    transform: scale(1.1) rotate(5deg);
    background: #f1f5f9;
}

.course-card-new h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.course-card-new:hover h4 {
    color: #0066FF;
}

.course-card-new p {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    flex-grow: 1;
    line-height: 1.5;
}

/* Colorful Tags */
.course-card-new .tag {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    width: max-content;
    transition: transform 0.2s ease;
}

.course-card-new:hover .tag {
    transform: scale(1.05);
}

.tag.green {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.tag.blue {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.tag.pink {
    background: #fce7f3;
    color: #9d174d;
    border: 1px solid #fbcfe8;
}

.tag.purple {
    background: #f3e8ff;
    color: #6b21a8;
    border: 1px solid #e9d5ff;
}

.tag.teal {
    background: #ccfbf1;
    color: #115e59;
    border: 1px solid #99f6e4;
}

.tag.red {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.tag.orange {
    background: #ffedd5;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

/* Enroll Button styling */
.course-card-new .enroll {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0066FF;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    transition: all 0.3s ease;
    border-top: 1px dashed #e2e8f0;
}

.course-card-new:hover .enroll {
    color: #00C853;
    padding-left: 0.5rem;
    letter-spacing: 0.3px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.4s ease-out forwards;
}

.ref-tab-inactive {
    background: white;
    color: #334155;
    border-color: #e2e8f0;
}

.ref-tab-active {
    background: linear-gradient(135deg, #00C853, #0066FF) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 8px 16px rgba(0, 102, 255, 0.25) !important;
}

.ref-tab-active svg {
    color: white !important;
}

/* ---------- Banner 3D Buttons ---------- */
.banner-btn-3d {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transform: translateY(0);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
    border: none;
    position: relative;
    user-select: none;
}

.banner-btn-green {
    background: linear-gradient(135deg, #00C853, #00A040);
    box-shadow: 0 8px 0 #006625, 0 12px 18px rgba(0, 200, 83, 0.4);
}

.banner-btn-green:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 0 #006625, 0 18px 28px rgba(0, 200, 83, 0.5);
}

.banner-btn-green:active {
    transform: translateY(6px);
    box-shadow: 0 2px 0 #006625, 0 4px 8px rgba(0, 200, 83, 0.3);
}

.banner-btn-blue {
    background: linear-gradient(135deg, #0066FF, #004DCC);
    box-shadow: 0 8px 0 #002A80, 0 12px 18px rgba(0, 102, 255, 0.4);
}

.banner-btn-blue:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 0 #002A80, 0 18px 28px rgba(0, 102, 255, 0.5);
}

.banner-btn-blue:active {
    transform: translateY(6px);
    box-shadow: 0 2px 0 #002A80, 0 4px 8px rgba(0, 102, 255, 0.3);
}

/* Global Scroll Behavior */
html {
    scroll-behavior: smooth;
}@ k e y f r a m e s   p u l s e - s l o w   {   0 % ,   1 0 0 %   {   o p a c i t y :   1 ;   t r a n s f o r m :   s c a l e ( 1 ) ;   f i l t e r :   d r o p - s h a d o w ( 0   0   0   r g b a ( 0 ,   2 0 0 ,   8 3 ,   0 ) ) ;   }   5 0 %   {   o p a c i t y :   0 . 8 ;   t r a n s f o r m :   s c a l e ( 1 . 0 5 ) ;   f i l t e r :   d r o p - s h a d o w ( 0   0   8 p x   r g b a ( 0 ,   2 0 0 ,   8 3 ,   0 . 4 ) ) ;   }   }   . a n i m a t e - p u l s e - s l o w   {   a n i m a t i o n :   p u l s e - s l o w   2 . 5 s   i n f i n i t e   e a s e - i n - o u t ;   }  
 