/* Gradient text for logo */
.gradient-text {
    /* Fallback color for browsers that don't support gradients */
    color: #171c30;
    background: linear-gradient(135deg, #303238 0%, #764ba2 100%);
    background: -webkit-linear-gradient(135deg, #303238 0%, #764ba2 100%);
    background: -moz-linear-gradient(135deg, #303238 0%, #764ba2 100%);
    background: -o-linear-gradient(135deg, #303238 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
}

body {
    
            font-family: 'Inter', sans-serif;
            background-color: #ffffff; /* Cleaner white background */
            color: #1a202c; /* Tailwind gray-900 for primary text */
}
.navbar {
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}
.nav-link {
            color: #000000; /* Tailwind gray-700 */
            font-weight: 500;
            padding: 0.75rem 1.25rem;
            border-radius: 0.375rem;
            transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.nav-link:hover, .nav-link.active {
            background-color: #000000; /* Tailwind gray-200 */
            color: #ffffff; /* Tailwind blue-800 */

 }

.hero-section {
    /* Optimized: WebP (59KB) vs JPEG (1.6MB) = 96.3% size reduction for slow connections! */
    /* Fallback for older browsers */
    background-image: url('/static/images/zyra_background.jpg');
    /* Modern browsers with WebP support - 27x faster loading! */
    background-image: url('/static/images/zyra_background.webp');
    background-size: cover;
    background-position: center 10%;
    background-repeat: no-repeat;
    /* Performance optimization for slow connections */
    background-attachment: scroll;
    height: 120vh;
    min-height: 600px; /* Ensure minimum height on small screens */
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: 120vh;
        min-height: 500px;
        background-position: center top;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 120vh;
        min-height: 200px;
        padding: 1rem;
        /* Fallback gradient for very slow connections instead of removing background entirely */
        background-image: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e0 100%);
        /* Remove actual background image on very small screens to save bandwidth */
        /* background-image: none; */
        background-color: #ffffff; /* white background fallback */   
    }
}

@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        height: 100vh;
        min-height: 400px;
    }
}


.background_text {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1200px;
    text-align: center;
    z-index: 2;
    pointer-events: none;
    padding: 0 1rem;
}

.background_text h1 {
    font-size: 3.5 rem; /* Larger, more impactful */
    font-weight: 800; /* Extra bold for impact */
    line-height: 1.15;
    background: linear-gradient(135deg, #303238 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    padding-bottom: 1rem;
}

.background_text p {
    font-size: 2.5 rem; /* Slightly larger paragraph */
    color: rgba(3, 22, 36, 0.728);
    max-width: 700px; /* Control line length for readability */
    padding-bottom: 2%;
    margin: 0 auto;
}

 .btn-primary {
            background-color: #4f4f55; /* Indigo-600 */
            color: white;
            font-weight: 600;
            padding: 1rem 2.5rem; /* Larger button */
            border-radius: 0.5rem; /* More rounded */
            transition: background-color 0.2s ease-in-out, transform 0.15s ease-out;
            box-shadow: 0 4px 14px rgba(76, 81, 191, 0.3);
            pointer-events: auto; /* Enable click events */

}

.btn-primary:hover {
            background-color: #000000; /* Darker Indigo */
            transform: translateY(-3px) scale(1.03);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.btn-secondary {
            background-color: transparent;
            color: #4c51bf; /* Indigo-600 */
            border: 2px solid #4c51bf; /* Indigo-600 */
            font-weight: 600;
            padding: 0.875rem 2rem;
            border-radius: 0.5rem;
            transition: all 0.2s ease-in-out;
 }
        
 .btn-secondary:hover {
            background-color: #4c51bf;
            color: white;
            transform: translateY(-2px);
}
        
.section-title {
            font-size: 2.75rem; /* Larger section titles */
            font-weight: 800;
            color: #2d3748; /* Tailwind gray-800 */
            margin-bottom: 3.5rem;  
}
        
.feature-card, .course-card {
            background-color: white;
            border-radius: 1rem; /* More pronounced rounding */
            box-shadow: 0 10px 25px rgba(0,0,0,0.07); /* Softer, more diffused shadow */
            transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
            overflow: hidden;
            border: 1px solid #e2e8f0; /* Subtle border */

        }
        .feature-card:hover, .course-card:hover {
            transform: translateY(-10px); /* More lift */
            box-shadow: 0 15px 35px rgba(0,0,0,0.1); /* Enhanced shadow on hover */
        }
        .course-card img {
            height: 240px; /* Taller images */
            object-fit: cover;
            width: 100%;
            border-bottom: 1px solid #e2e8f0;
        }
        .icon-bg {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 4.5rem;
            height: 4.5rem;
            border-radius: 0.75rem; /* Rounded square */
            background-color: #ebf4ff; /* Tailwind blue-100 */
            margin-bottom: 1.5rem;
        }
        .icon-bg svg, .icon-bg i {
            width: 2.25rem;
            height: 2.25rem;
            color: #4299e1; /* Tailwind blue-500 */
        }
        .footer {
            color: #a0aec0; /* Lighter text for footer (gray-500) */
            padding-top: 4rem;
            padding-bottom: 4rem;
        }
        .footer a {
            color: #cbd5e0; /* gray-400 */
            transition: color 0.2s ease-in-out;
        }
        .footer a:hover {
            color: #63b3ed; /* Tailwind blue-400 */
        }
        .content-section {
            padding-top: 6rem;
            padding-bottom: 6rem;
        }


.typing-text {
            overflow: hidden;
            white-space: nowrap;
            margin: 0 auto;
            opacity: 0;
        }
        
        .typing-text.active {
            opacity: 1;
            animation: typing 2.5s steps(40, end);
        }
        
        .typing-text.typing::after {
            content: '|';
            animation: blink-caret 0.15s step-end infinite;
        }
        
        @keyframes typing {
            from { width: 0; }
            to { width: 100%; }
        }
        
        @keyframes blink-caret {
            from, to { border-color: transparent; }
            50% { border-color: rgba(99, 102, 241, 0.8); }
        }
        
        .fade-in {
            animation: fadeIn 1s ease-in forwards;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

/* Modern Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate-right.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animations for cards */
.stagger-animation {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-animation.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Enhanced hero section with parallax effect */
.hero-parallax {
    transform: translateY(0);
    transition: transform 0.1s ease-out;
}

/* Floating animation for CTA buttons */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating-animation {
    animation: float 3s ease-in-out infinite;
}

/* Modern hover effects for feature cards */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 81, 191, 0.1), transparent);
    transition: left 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}

/* Enhanced course card animations */
.course-card {
    position: relative;
    overflow: hidden;
}

.course-card img {
    transition: transform 0.4s ease, filter 0.4s ease;
}

.course-card:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Gradient overlay for course cards */
.course-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(135deg, rgba(76, 81, 191, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.course-card:hover::after {
    opacity: 1;
}

/* Progress bar for scroll indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #4c51bf, #8b5cf6);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Smooth scaling animation */
.scale-on-hover {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Text reveal animations */
.text-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-reveal.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Icon pulse animation */
.icon-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Background gradient animation */
.gradient-bg-animate {
    background: linear-gradient(-45deg, #4c51bf, #8b5cf6, #ec4899, #f59e0b);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

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




/* Modern button animations */
.btn-modern {
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-modern::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: left 0.6s ease;
}

.btn-modern:hover::before {
    left: 100%;
}

/* Gradient text for logo */
.gradient-text {
    background: linear-gradient(135deg, #303238 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Mobile menu styles */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger {
    display: flex;
    flex-direction: column;
    width: 24px;
    height: 18px;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #000;
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.mobile-menu-btn.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.mobile-nav-link {
    color: #4a5568;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 4px;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    text-decoration: none;
}

.mobile-nav-link:hover {
    background-color: #f7fafc;
    color: #2d3748;
}

/* Responsive navbar improvements */
@media (max-width: 768px) {
    .navbar {
        padding: 0;
    }
    
    .navbar .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 640px) {
    .navbar .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Enhanced responsive background section */
@media (max-width: 768px) {
    .background_text {
        top: 30%;
        padding: 0 1rem;
    }
    
    .background_text h1 {
        font-size: 3.5 rem;
        line-height: 1.2;
    }
    
    .background_text p {
        font-size: 2.5rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .background_text {
        top: 32%;
        padding: 0 0.75rem;
    }
    
    .background_text h1 {
        font-size: 2.75rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }
    
    .background_text p {
        font-size: 1.125rem;
        margin-bottom: 1.25rem;
        line-height: 1.4;
    }
    
    .btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 375px) {
    .background_text h1 {
        font-size: 1.5rem;
    }
    
    .background_text p {
        font-size: 1rem;
    }
}
