/* Custom Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lexend', sans-serif;
    scroll-behavior: smooth;
}

/* Glass Navigation */
.glass-nav {
    backdrop-filter: blur(12px);
    background-color: rgba(246, 246, 248, 0.85);
}

/* Tilt Card Animation */
.tilt-card {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.tilt-card:hover {
    transform: translateY(-8px) scaleX(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Floating Animation */
.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Background Mesh */
.bg-mesh {
    background-color: #f6f6f8;
    background-image: 
        radial-gradient(at 0% 0%, hsla(220,100%,90%,1) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(30,100%,90%,1) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(220,100%,90%,1) 0, transparent 50%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #135bec;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0d47a1;
}

/* Fade In Up Animation */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay for staggered animations */
.delay-300 {
    animation-delay: 0.3s;
}

/* Slide in from right */
.animate-in.fade-in.slide-in-from-right-4 {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Zoom in animation */
.animate-in.zoom-in-95 {
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Fade in animation */
.animate-in.fade-in.duration-300 {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Form input focus styles */
input[type="email"]:focus,
input[type="text"]:focus {
    outline: none;
}

/* Button active state */
button.active-level {
    background-color: rgba(19, 91, 236, 0.1);
    border-left: 4px solid #135bec;
}

/* Smooth transitions for interactive elements */
.transition-colors {
    transition: color 0.3s ease;
}

.transition-all {
    transition: all 0.3s ease;
}

.transition-transform {
    transition: transform 0.3s ease;
}

/* Material Symbols Outlined: fill variant */
.material-symbols-outlined.fill-1 {
    font-variation-settings: 'FILL' 1;
}

/* Utility classes for common patterns */
.group:hover .group-hover\:w-full {
    width: 100%;
}

.group:hover .group-hover\:translate-x-1 {
    transform: translateX(0.25rem);
}

.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

.group:hover .group-hover\:bg-white {
    background-color: white;
}

.group:hover .group-hover\:bg-black\/10 {
    background-color: rgba(0, 0, 0, 0.1);
}

.group:hover .group-hover\:scale-102 {
    transform: scale(1.02);
}

/* FAQ Transitions */
.faq-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

.faq-content.open {
    max-height: 200px;
    opacity: 1;
}

/* Level button active state */
.level-btn {
    cursor: pointer;
}

.level-btn.active-level {
    background-color: rgba(19, 91, 236, 0.1);
    border-left: 4px solid #135bec;
}

.level-btn.active-level .material-symbols-outlined {
    color: #135bec;
}

.level-btn.active-level h4 {
    color: #0d121b;
}

.level-btn.active-level p {
    color: #6b7280;
}

.level-btn:not(.active-level):hover {
    background-color: #f9fafb;
}

.level-btn:not(.active-level) .material-symbols-outlined {
    color: #9ca3af;
}

.level-btn:not(.active-level) h4 {
    color: #9ca3af;
}

.level-btn:not(.active-level) p {
    color: #d1d5db;
}

/* Search container transitions */
#searchContainer {
    transition: width 0.3s ease;
}

#searchContainer.active {
    width: 12rem;
}

#searchInput.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

/* Newsletter popup animations */
#newsletter-popup.visible {
    display: flex;
}

/* Curriculum content animation */
#curriculum-content {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Icon material symbols styling */
.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24
    ;
}

/* Utility for gradient text */
.text-gradient {
    background: linear-gradient(135deg, #135bec, #4caf50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Responsive padding adjustments */
@media (max-width: 768px) {
    .text-5xl {
        font-size: 3rem;
    }
    
    .text-6xl {
        font-size: 3rem;
    }
}
