@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700&display=swap');

:root {
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #283548;
    --bg-glass: rgba(30, 41, 59, 0.7);
    --bg-glass-light: rgba(30, 41, 59, 0.4);
    --bg-glass-heavy: rgba(15, 23, 42, 0.75);
    --bg-glass-solid: rgba(15, 23, 42, 0.8);
    --bg-overlay: rgba(15, 23, 42, 0.6);
    --text-main: #f8fafc;
    --text-sec: #cbd5e1;
    --text-muted: #94a3b8;
    --text-footer: #64748b;
    --border-light: rgba(255, 255, 255, 0.05);
    --border-med: rgba(255, 255, 255, 0.1);
    --border-heavy: rgba(255, 255, 255, 0.2);
    --primary: #8b5cf6;
    --primary-hover: #a78bfa;
    --secondary: #38bdf8;
    --grad-hero-1: #0f172a;
    --grad-hero-2: #312e81;
    --grad-cta-1: #1e1b4b;
    --grad-cta-2: #0f172a;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

.light-mode {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-glass: rgba(255, 255, 255, 0.8);
    --bg-glass-light: rgba(255, 255, 255, 0.6);
    --bg-glass-heavy: rgba(241, 245, 249, 0.9);
    --bg-glass-solid: rgba(241, 245, 249, 0.95);
    --bg-overlay: rgba(255, 255, 255, 0.7);
    --text-main: #0f172a;
    --text-sec: #334155;
    --text-muted: #64748b;
    --text-footer: #475569;
    --border-light: rgba(0, 0, 0, 0.05);
    --border-med: rgba(0, 0, 0, 0.1);
    --border-heavy: rgba(0, 0, 0, 0.2);
    --primary: #7c3aed;
    --primary-hover: #6d28d9;
    --secondary: #0284c7;
    --grad-hero-1: #f1f5f9;
    --grad-hero-2: #e2e8f0;
    --grad-cta-1: #e2e8f0;
    --grad-cta-2: #f1f5f9;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

*::-webkit-scrollbar {
    display: none;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease, background-color 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px var(--shadow-color);
}

header.hidden {
    transform: translateY(-100%);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

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

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

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

.cart-icon {
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #ef4444;
    color: white;
    font-size: 0.8rem;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-weight: bold;
}

.hero {
    min-height: 90vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--grad-hero-1) 0%, var(--grad-hero-2) 100%);
    padding: 5rem 5%;
    gap: 3rem;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary-hover), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-sec);
}

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

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.hero-placeholder {
    width: 100%;
    max-width: 500px;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.4));
    transform: translateZ(30px);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.logo-animated {
    animation: float 2.5s ease-in-out infinite;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.logo-animated:hover {
    transform: rotate(5deg) scale(1.05);
    filter: brightness(1.2);
}

.btn {
    background-color: var(--primary);
    color: #ffffff;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.3rem;
}

.about-section {
    padding: 5rem 5%;
    text-align: center;
}

.about-section h1, .courses-section h1 {
    margin-bottom: 2rem;
    color: var(--primary);
    text-align: center;
}

.courses-section {
    padding: 5rem 5%;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.course-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-glass-light);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color), 0 0 20px var(--shadow-color);
    border-color: var(--primary);
}

.course-img-wrapper {
    position: relative;
    overflow: hidden;
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.3);
}

.course-rating {
    margin-bottom: 0.5rem;
}

.course-img-placeholder {
    width: 100%;
    height: 200px;
    background-color: var(--bg-card-hover);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: transform 0.5s ease;
}

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

.course-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.course-info p {
    color: var(--text-sec);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}


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

.cart-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-overlay);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    background: var(--bg-glass-heavy);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--primary);
    box-shadow: -10px 0 30px var(--shadow-color);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.cart-sidebar.active {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-glass-light);
}

.cart-title-wrapper h2 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}

.cart-title-wrapper p {
    font-size: 0.85rem;
    color: var(--primary-hover);
}

.close-cart {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-cart:hover {
    color: #ef4444;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-glass-light);
    border: 1px solid var(--border-light);
    padding: 1rem;
    border-radius: 12px;
    animation: cartPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: all 0.3s ease;
}

.cart-item.removing {
    animation: cartSlideOut 0.4s ease forwards;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-info h4 {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.cart-item-info span {
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.1rem;
}

.remove-item-btn {
    background: rgba(239, 68, 68, 0.1);
    border: none;
    color: #ef4444;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.remove-item-btn:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1);
}

.cart-footer {
    border-top: 1px solid var(--border-light);
    padding: 1.5rem 2rem 2rem;
    background: var(--bg-glass-light);
    backdrop-filter: blur(10px);
}

.cart-footer p {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.checkout-btn {
    width: 100%;
    animation: pulseCheckout 2s infinite;
}

.empty-cart-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--text-muted);
    gap: 1rem;
}

.empty-cart-state svg {
    width: 80px;
    height: 80px;
    color: var(--text-footer);
    margin-bottom: 1rem;
}

@keyframes cartPopIn {
    from { opacity: 0; transform: scale(0.9) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes cartSlideOut {
    to { opacity: 0; transform: translateX(-50px); }
}

@keyframes pulseCheckout {
    0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(139, 92, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { animation: fadeUp 0.8s ease forwards 0.2s; opacity: 0; }
.stagger-2 { animation: fadeUp 0.8s ease forwards 0.4s; opacity: 0; }
.stagger-3 { animation: fadeUp 0.8s ease forwards 0.6s; opacity: 0; }
.stagger-4 { animation: fadeUp 0.8s ease forwards 0.8s; opacity: 0; }

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-main);
}

.features-section, .how-it-works, .testimonials {
    padding: 5rem 5%;
    background-color: var(--bg-main);
    transition: background-color 0.3s ease;
}

.features-grid, .steps-grid, .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card, .step-card, .testimonial-card {
    background-color: var(--bg-card);
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s ease, background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.feature-card:hover, .step-card:hover, .testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px var(--shadow-color);
    background-color: var(--bg-card-hover);
}

.icon-placeholder {
    width: 60px;
    height: 60px;
    background-color: var(--bg-card-hover);
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.feature-card h3, .step-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p, .step-card p {
    color: var(--text-sec);
}

.popular-courses {
    padding: 5rem 0;
    background-color: var(--bg-main);
    transition: background-color 0.3s ease;
}

.custom-padding {
    padding: 0 5%;
    margin-bottom: 3rem;
}

.center-btn {
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem auto;
}

.quote {
    font-style: italic;
    color: var(--text-sec);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.student-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.avatar-placeholder {
    width: 50px;
    height: 50px;
    background-color: var(--bg-card-hover);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.student-info h4 {
    color: var(--text-main);
}

.cta-section {
    background: linear-gradient(135deg, var(--grad-cta-1) 0%, var(--grad-cta-2) 100%);
    padding: 6rem 5%;
    text-align: center;
    border-top: 1px solid var(--border-light);
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--text-sec);
}

.main-footer {
    background-color: var(--bg-main);
    text-align: center;
    padding: 2rem 5%;
    border-top: 1px solid var(--border-light);
    color: var(--text-footer);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: var(--bg-card);
    color: var(--text-main);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-color);
    border-right: 4px solid var(--primary);
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.error {
    border-right-color: #ef4444;
}

.toast.success {
    border-right-color: #10b981;
}

.course-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-glass-solid);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
}

.course-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-modal-content {
    background-color: var(--bg-card);
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.3);
    animation: modalFadeScale 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
}

@keyframes modalFadeScale {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.custom-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--primary);
    transform: translateZ(20px);
    position: relative;
}

.custom-modal-header h3 {
    color: var(--primary);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    padding-right: 30px;
}

.close-modal-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    padding: 0;
}

.close-modal-btn:hover {
    color: var(--primary-hover);
}

.custom-modal-body {
    padding: 2rem;
    line-height: 1.8;
    transform: translateZ(30px);
}

.custom-modal-body p {
    color: var(--text-sec);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.custom-modal-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-modal-body li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--text-main);
    font-size: 1.05rem;
}

.custom-modal-body li svg {
    color: var(--primary);
    flex-shrink: 0;
}

.auth-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.auth-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--primary-hover);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    transition: color 0.3s;
}

.mobile-menu-btn:hover {
    color: var(--primary);
}

.mobile-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-glass-solid);
    backdrop-filter: blur(4px);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 0; right: -100%; width: 70%; max-width: 300px; height: 100vh;
    background: var(--bg-glass-heavy);
    backdrop-filter: blur(12px);
    z-index: 200;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: -5px 0 25px var(--shadow-color);
}

.mobile-sidebar.active {
    right: 0;
}

.close-mobile-menu {
    align-self: flex-end;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2.5rem;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: color 0.3s;
}

.close-mobile-menu:hover {
    color: #ef4444;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-links li {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
}

.mobile-sidebar.active .mobile-nav-links li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-sidebar.active .mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-sidebar.active .mobile-nav-links li:nth-child(2) { transition-delay: 0.2s; }
.mobile-sidebar.active .mobile-nav-links li:nth-child(3) { transition-delay: 0.3s; }
.mobile-sidebar.active .mobile-nav-links li:nth-child(4) { transition-delay: 0.4s; }

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background-color: var(--primary);
    width: 0%;
    z-index: 1000;
    transition: width 0.1s ease;
}

.floating-controls {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.control-btn {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.back-to-top {
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.control-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-5px);
}

.control-btn svg {
    width: 24px;
    height: 24px;
}
.mobile-nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: color 0.3s;
    display: block;
}

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

.login-section {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.glass-card {
    background: var(--bg-glass-light);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-med);
    padding: 3rem 2rem;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px var(--shadow-color);
    text-align: center;
    position: relative;
    z-index: 10;
}

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

.form-group input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    background: var(--bg-glass-light);
    border: 1px solid var(--border-heavy);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--border-heavy);
    background: var(--bg-glass-solid);
}

.floating-group label {
    position: absolute;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.floating-group input:focus ~ label,
.floating-group input:not(:placeholder-shown) ~ label {
    top: 0;
    right: 1.2rem;
    transform: translateY(-50%) scale(0.85);
    background-color: var(--bg-card);
    padding: 0 0.4rem;
    color: var(--primary);
    border-radius: 4px;
}

.input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: color 0.3s ease;
    pointer-events: none;
}

.floating-group input:focus ~ .input-icon {
    color: var(--primary);
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.forgot-pass {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-pass:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-sec);
    position: relative;
    padding-right: 28px;
    user-select: none;
}

.remember-me input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: var(--bg-glass-light);
    border: 1px solid var(--border-heavy);
    border-radius: 4px;
    transition: all 0.3s;
}

.remember-me:hover input ~ .checkmark { border-color: var(--primary); }
.remember-me input:checked ~ .checkmark { background-color: var(--primary); border-color: var(--primary); }

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 4px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.remember-me input:checked ~ .checkmark:after { display: block; }

.btn-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
    z-index: -1;
}

.btn-gradient:hover::before { left: 200%; }

.register-link {
    margin-top: 1.5rem;
    color: var(--text-sec);
    font-size: 0.95rem;
}

.register-link a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.register-link a:hover {
    color: #bae6fd;
    text-decoration: underline;
}

.bg-shapes {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    animation: floatShape 10s infinite alternate ease-in-out;
}

.shape-1 {
    width: 350px; height: 350px;
    background: rgba(139, 92, 246, 0.25);
    top: -100px; right: -100px;
}

.shape-2 {
    width: 300px; height: 300px;
    background: rgba(56, 189, 248, 0.2);
    bottom: -100px; left: -50px;
    animation-delay: -5s;
}

@keyframes floatShape {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(40px) scale(1.1); }
}

@keyframes shakeCard {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
    20%, 40%, 60%, 80% { transform: translateX(6px); }
}

.shake {
    animation: shakeCard 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

.courses-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.courses-controls {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border-radius: 50px;
    background: var(--bg-glass-light);
    border: 1px solid var(--border-med);
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--shadow-color);
}

.search-box svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: var(--bg-glass-light);
    border: 1px solid var(--border-med);
    color: var(--text-sec);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--shadow-color);
}

.wow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.wow-card {
    opacity: 0;
    transform: translateY(30px);
    animation: wowSlideUp 0.6s forwards;
}

@keyframes wowSlideUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cartBump {
    0% { transform: scale(1); }
    50% { transform: scale(0.9); background-color: #10b981; }
    100% { transform: scale(1); }
}

.cart-bump {
    animation: cartBump 0.3s ease-out;
}

.skeleton-card { pointer-events: none; }
.skeleton {
    background: linear-gradient(90deg, rgba(51, 65, 85, 0.5) 25%, rgba(71, 85, 105, 0.5) 50%, rgba(51, 65, 85, 0.5) 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
    border-radius: 4px;
}
.skeleton-img { height: 200px; width: 100%; border-radius: 0; }
.skeleton-title { height: 24px; width: 70%; margin-bottom: 1rem; }
.skeleton-text { height: 16px; width: 100%; margin-bottom: 1rem; }
.skeleton-footer { height: 36px; width: 100%; margin-top: auto; }

@keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.about-portfolio {
    padding: 5rem 5%;
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
    background: var(--bg-glass-light);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 4rem;
    box-shadow: 0 25px 50px -12px var(--shadow-color);
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px var(--shadow-color);
    border: 3px solid var(--primary);
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.about-name {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.about-title {
    color: var(--text-sec);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.skills-section h3, .experience-section h3 {
    color: var(--text-main);
    margin-bottom: 1rem;
}

.experience-section {
    margin-top: 2.5rem;
}

.bio-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.skills-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-badge {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--secondary);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.skill-badge:hover {
    background: var(--secondary);
    color: var(--bg-main);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
    transform: translateY(-2px);
}

.glass-box {
    background: var(--bg-glass-light);
    padding: 1.5rem;
    border-radius: 12px;
    border-right: 4px solid var(--primary);
    color: var(--text-sec);
    line-height: 1.7;
}

.social-section {
    text-align: center;
    width: 100%;
}

.social-section h3 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-icon {
    width: 35px;
    height: 35px;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
    color: var(--primary);
    transform: scale(1.2) translateY(-3px);
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.fade-in-left { animation: fadeInLeft 1s ease-out forwards; }
.fade-in-right { animation: fadeInRight 1s ease-out forwards; }
@keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
