:root {
    --primary-color: #8b5cf6;
    --primary-hover: #7c3aed;
    --secondary-color: #3b82f6;
    --accent-color: #f43f5e;
    --bg-dark: #ffffff;
    --bg-card: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #475569;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

img, video {
    max-width: 100%;
    height: auto;
}

/* Glassmorphism utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 5%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 1rem;
    background-color: transparent;
    color: var(--text-main);
}

.btn:hover {
    background-color: var(--bg-card);
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary-color);
    color: white !important;
    border: none;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
    position: relative;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.15), transparent 40%),
                radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.15), transparent 40%);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 900;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2rem;
}

/* Grid Layouts */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 5%;
}

.card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    object-position: center center;
    display: block;
    background: #f1f5f9;
    padding: 0.5rem;
}

.card-content {
    padding: 1.5rem;
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 4rem auto;
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

input, textarea, select {
    width: 100%;
    padding: 0.75rem;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    outline: none;
}

input:focus {
    border-color: var(--primary-color);
}

/* Footer */
footer {
    padding: 4rem 5%;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
    animation: fadeIn 0.8s ease forwards;
}

/* Mobile Menu Toggle Styling */
.menu-toggle {
    display: none;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: rgba(0,0,0,0.05);
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger .bar {
    width: 22px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

.mobile-auth {
    display: none;
}

/* Animations for Toggle */
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile responsive */
@media (max-width: 992px) {
    .auth-buttons {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        right: 0;
        transform: translateX(105%);
        top: 0;
        height: 100vh;
        width: 80%;
        max-width: 400px;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 6rem 2rem 2rem;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -15px 0 35px rgba(0,0,0,0.1);
        z-index: 1000;
        overflow-y: auto;
        gap: 0;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        margin: 0;
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 0.4rem 0;
        font-size: 1.1rem;
    }

    .nav-links a i {
        margin-right: 15px;
        width: 20px;
        text-align: center;
        color: var(--primary-color);
    }

    .mobile-auth-divider {
        display: block;
        width: 100%;
        height: 1px;
        background: var(--glass-border);
        margin: 2rem 0;
    }

    .mobile-auth {
        display: block;
        width: 100%;
        padding-top: 0;
        text-align: left;
    }
}

/* Socials in Footer */
.socials {
    display: flex;
    align-items: center;
}

.socials a {
    color: var(--text-muted);
    transition: var(--transition);
    display: inline-block;
    margin: 0 10px;
}

.socials a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #ffffff !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    font-size: 30px;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    background-color: #22c35e;
}

@media (max-width: 768px) {
    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-btns .btn {
        margin: 0.5rem 0 !important;
    }

    .hero h1 { 
        font-size: 2.5rem; 
    }
    
    .hero p {
        font-size: 1.1rem;
    }

    .grid {
        grid-template-columns: 1fr;
        padding: 2rem 5%;
    }

    footer {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .form-container {
        padding: 1.5rem;
        margin: 2rem 5%;
    }
}

@media (max-width: 480px) {
    .hero h1 { 
        font-size: 2rem; 
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    nav {
        padding: 1rem 5%;
    }
}
/* Responsive video wrapper */
.video-responsive {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
}
.video-responsive video,
.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Ensure lesson flex items adapt on mobile */
@media (max-width: 768px) {
  .lesson-flex > div {
    flex: 1 1 100%;
    margin-bottom: 1.5rem;
  }
}

/* Profile Page Styles */
.profile-section {
    padding: 6rem 5%;
}

.profile-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.profile-sidebar {
    flex: 1;
    min-width: 300px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.25);
    text-transform: uppercase;
}

.profile-info-list {
    width: 100%;
    margin-top: 1.5rem;
    text-align: left;
}

.profile-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
}

.profile-info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.profile-info-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.profile-info-text {
    flex: 1;
}

.profile-info-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.profile-info-value {
    color: var(--text-main);
    font-weight: 500;
    word-break: break-all;
}

.profile-main {
    flex: 2;
    width: 100%;
}

@media (max-width: 992px) {
    .profile-layout {
        flex-direction: column;
        align-items: stretch;
    }
    
    .profile-sidebar {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .profile-section {
        padding: 3rem 5%;
    }
}

@media (max-width: 480px) {
    .profile-sidebar {
        padding: 1.5rem;
    }
    .profile-section {
        padding: 2rem 3%;
    }
}

