/* ============================================
   OPTIMIZED INDEX.CSS - Cleaned Version
   ============================================ */

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--button-bg), var(--button-hover));
    z-index: 10000;
    transition: width 0.3s ease;
    width: 0%;
}

/* ============================================
   ENHANCED NAVIGATION
   ============================================ */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(var(--nav-bg-rgb), 0.95) !important;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-items {
    display: flex;
    gap: 1rem;
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-link:hover {
    background: rgba(var(--button-bg-rgb), 0.1);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--button-bg);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-icon {
    display: inline-block;
    margin-right: 0.25rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-btn.primary {
    background: linear-gradient(135deg, var(--button-bg), var(--button-hover));
    color: white;
}

.nav-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(var(--button-bg-rgb), 0.3);
}

.nav-btn.secondary {
    background: transparent;
    color: var(--button-bg);
    border-color: var(--button-bg);
}

.nav-btn.secondary:hover {
    background: var(--button-bg);
    color: white;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.icon-btn:hover {
    background: rgba(var(--button-bg-rgb), 0.1);
    transform: scale(1.1);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Profile Dropdown System */
.profile-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 25px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.profile-dropdown-toggle:hover,
.profile-dropdown-toggle.active {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.profile-name {
    font-size: 14px;
    font-weight: 500;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 280px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.profile-dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
}

.dropdown-header {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 8px;
}

.dropdown-header:hover {
    background-color: var(--hover-bg);
}

.dropdown-divider {
    height: 1px;
    background: rgba(var(--border-rgb), 0.2);
    margin: 0.5rem 0;
}

.dropdown-item,
.mobile-menu-item {
    display: block;
    padding: 1rem;
    color: var(--text);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover,
.mobile-menu-item:hover {
    background: rgba(var(--button-bg-rgb), 0.1);
    transform: translateX(5px);
}

.dropdown-item.logout-item {
    color: #ef4444;
}

.role-option {
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.role-option:hover {
    background: rgba(var(--button-bg-rgb), 0.1);
}

.role-option.active {
    background: rgba(var(--button-bg-rgb), 0.15);
    font-weight: 600;
}

.role-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: var(--button-bg);
    color: white;
    border-radius: 12px;
}

.add-role-option {
    border-top: 1px solid var(--border-color);
    margin-top: 0.5rem;
    padding-top: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-role-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

/* Mobile Menu */
.hamburger {
    width: 28px;
    height: 20px;
    position: relative;
    cursor: pointer;
    display: none;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

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

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

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

.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--background);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu:not(.hidden) {
    transform: translateY(0);
}

.mobile-menu-content {
    padding: 1rem;
}

.mobile-menu-divider {
    height: 1px;
    background: rgba(var(--border-rgb), 0.2);
    margin: 1rem 0;
}

.mobile-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    margin: 10px 20px;
    color: white;
}

.mobile-profile-info {
    display: flex;
    flex-direction: column;
}

.mobile-profile-name {
    font-weight: 600;
    font-size: 16px;
}

.mobile-profile-role {
    font-size: 12px;
    opacity: 0.9;
    text-transform: capitalize;
}

.mobile-profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.particle {
    position: absolute;
    background: var(--button-bg);
    opacity: 0.3;
    border-radius: 50%;
    animation: float-particle 20s infinite linear;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-text {
    font-size: clamp(1.25rem, 5vw, 4rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

/* Counter Cards */
.counter-grid-wrapper {
    margin: 3rem auto;
    max-width: 1400px;
}

.counter-grid-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.counter-grid-bottom {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 320px));
    gap: 2rem;
    justify-content: center;
}

.counter-card-enhanced {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    padding: 2rem;
    border-radius: 16px;
    height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.counter-card-enhanced::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(var(--button-bg-rgb), 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
    opacity: 0;
}

.counter-card-enhanced:hover::before {
    animation: shine 0.5s ease-in-out;
}

.counter-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--button-bg);
    margin-bottom: 0.5rem;
}

.counter-label {
    font-size: 1rem;
    color: var(--text-muted);
    text-align: center;
}

/* CTA Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--button-bg), var(--button-hover));
    color: white;
    box-shadow: 0 4px 15px rgba(var(--button-bg-rgb), 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--button-bg-rgb), 0.4);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--button-bg);
    border-color: var(--button-bg);
}

.cta-button.secondary:hover {
    background: var(--button-bg);
    color: white;
}

.cta-button.ghost {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-button.ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    position: relative;
    margin: 0 auto;
}

.wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

.arrows {
    width: 60px;
    height: 72px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -30px;
}

.arrows path {
    stroke: rgba(255, 255, 255, 0.8);
    fill: transparent;
    stroke-width: 2px;
    animation: arrow-animation 2s infinite;
}

.arrows path.arrow-1 { animation-delay: -1s; }
.arrows path.arrow-2 { animation-delay: -0.5s; }
.arrows path.arrow-3 { animation-delay: 0s; }

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    background: var(--background);
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    color: var(--heading);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(var(--border-rgb), 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--button-bg), var(--button-hover));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: translateX(0);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(var(--button-bg-rgb), 0.1), rgba(var(--button-hover-rgb), 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon {
    font-size: 2.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--heading);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   PREMIUM AD SECTION
   ============================================ */
.ad-section.premium {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(var(--button-bg-rgb), 0.05), rgba(var(--button-hover-rgb), 0.05));
}

.premium-ad-container {
    position: relative;
    background: linear-gradient(135deg, var(--button-bg), var(--button-hover));
    border-radius: 30px;
    overflow: hidden;
    min-height: 400px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.ad-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.ad-content-wrapper {
    position: relative;
    z-index: 2;
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 400px;
}

.ad-text-content {
    flex: 1;
    max-width: 600px;
}

.ad-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.ad-headline {
    font-size: clamp(2rem, 4vw, 3rem);
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.ad-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.ad-primary-btn,
.ad-secondary-btn {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ad-primary-btn {
    background: white;
    color: var(--button-bg);
}

.ad-primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.ad-secondary-btn {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.ad-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.ad-visual-content {
    position: relative;
    width: 400px;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.floating-card.card-1 {
    width: 200px;
    height: 150px;
    top: 50px;
    left: 50px;
    animation: float-1 6s ease-in-out infinite;
}

.floating-card.card-2 {
    width: 150px;
    height: 200px;
    top: 100px;
    right: 50px;
    animation: float-2 8s ease-in-out infinite;
}

.floating-card.card-3 {
    width: 180px;
    height: 120px;
    bottom: 50px;
    left: 100px;
    animation: float-3 7s ease-in-out infinite;
}

/* ============================================
   NEWS SECTION ENHANCED
   ============================================ */
.news-section {
    background: var(--background);
}

.news-container {
    display: grid;
    gap: 2rem;
}

.news-main-card-enhanced {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.news-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

.news-title-enhanced {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.news-text-enhanced {
    font-size: 1.375rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.news-cta {
    display: inline-flex;
    align-items: center;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--button-bg), var(--button-hover));
    color: white;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.news-cta:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(var(--button-bg-rgb), 0.3);
}

.quick-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.quick-news-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid rgba(var(--border-rgb), 0.1);
    transition: all 0.3s ease;
}

.quick-news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.quick-news-icon {
    font-size: 1.5rem;
}

/* ============================================
   VIDEO SHOWCASE
   ============================================ */
.video-showcase {
    background: linear-gradient(180deg, var(--background) 0%, rgba(var(--button-bg-rgb), 0.05) 100%);
}

.video-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 60px;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
}

.carousel-control:hover {
    background: var(--button-bg);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev { left: 0; }
.carousel-control.next { right: 0; }

.video-carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s ease;
    padding: 1rem 0;
}

.video-card {
    flex: 0 0 320px;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%;
    background: linear-gradient(135deg, var(--button-bg), var(--button-hover));
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-card:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.2);
    background: white;
}

.video-info {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 0.5rem;
}

.video-description {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.video-duration {
    padding: 0.25rem 0.5rem;
    background: rgba(var(--button-bg-rgb), 0.1);
    border-radius: 12px;
}

.video-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.625rem 1.25rem;
    background: transparent;
    color: var(--text);
    border: 2px solid rgba(var(--border-rgb), 0.2);
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background: var(--button-bg);
    color: white;
    border-color: var(--button-bg);
}

/* ============================================
   COURSES SECTION
   ============================================ */
.courses-section {
    background: var(--background);
}

.course-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 0.5rem 1rem;
    background: rgba(var(--button-bg-rgb), 0.1);
    color: var(--button-bg);
    border: 1px solid var(--button-bg);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-chip:hover,
.filter-chip.active {
    background: var(--button-bg);
    color: white;
}

.courses-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 320px));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.course-flip-card {
    background-color: transparent;
    width: 100%;
    height: 240px;
    perspective: 1000px;
    cursor: pointer;
}

.course-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.course-flip-front,
.course-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.course-flip-front {
    transform: rotateY(0deg);
}

.course-flip-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--button-bg), var(--button-hover));
}

.course-flip-card:hover .course-flip-inner {
    transform: rotateY(180deg);
}

.course-flip-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--heading);
    transition: transform 0.3s ease;
}

.course-flip-back .course-flip-icon {
    color: white;
}

.course-flip-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    margin-bottom: 1rem;
}

.course-flip-back .course-flip-title {
    color: white;
}

.course-flip-level {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.course-flip-back .course-flip-level {
    color: rgba(255, 255, 255, 0.9);
}

.course-flip-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.course-flip-stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.course-flip-back .course-flip-stat {
    color: rgba(255, 255, 255, 0.95);
}

/* Auto-flip animation */
@keyframes autoFlip {
    0%, 40% {
        transform: rotateY(0deg);
    }
    50%, 90% {
        transform: rotateY(180deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.course-flip-card:nth-child(1) .course-flip-inner { animation: autoFlip 24s infinite 0s; }
.course-flip-card:nth-child(2) .course-flip-inner { animation: autoFlip 24s infinite 3s; }
.course-flip-card:nth-child(3) .course-flip-inner { animation: autoFlip 24s infinite 6s; }
.course-flip-card:nth-child(4) .course-flip-inner { animation: autoFlip 24s infinite 9s; }
.course-flip-card:nth-child(5) .course-flip-inner { animation: autoFlip 24s infinite 12s; }
.course-flip-card:nth-child(6) .course-flip-inner { animation: autoFlip 24s infinite 15s; }
.course-flip-card:nth-child(7) .course-flip-inner { animation: autoFlip 24s infinite 18s; }
.course-flip-card:nth-child(8) .course-flip-inner { animation: autoFlip 24s infinite 21s; }

.view-more-btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--button-bg), var(--button-hover));
    color: white;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(var(--button-bg-rgb), 0.3);
}

.view-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(var(--button-bg-rgb), 0.4);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
    background: linear-gradient(135deg, rgba(var(--button-bg-rgb), 0.05), rgba(var(--button-hover-rgb), 0.05));
    position: relative;
    overflow: hidden;
    padding: 4rem 2rem;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.testimonial-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: zoomInOut 9s infinite;
    width: 100%;
}

.testimonial-card:nth-child(1) { animation-delay: 0s; }
.testimonial-card:nth-child(2) { animation-delay: 0.3s; }
.testimonial-card:nth-child(3) { animation-delay: 0.6s; }

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
}

.testimonial-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote-icon {
    font-size: 3rem;
    color: var(--button-bg);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 1rem;
}

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

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--button-bg);
}

.author-info h4 {
    font-size: 1.125rem;
    color: var(--heading);
    margin-bottom: 0.25rem;
}

.author-info p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.rating {
    color: #ffc107;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(var(--button-bg-rgb), 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 30px;
    border-radius: 5px;
    background: var(--button-bg);
}

/* ============================================
   PARTNERS SECTION
   ============================================ */
.partners-section {
    background: var(--background);
}

.partners-wrapper {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.partners-track {
    display: flex;
    animation: scroll-partners 30s linear infinite;
}

.partner-logo {
    flex: 0 0 200px;
    height: 100px;
    background: var(--card-bg);
    border-radius: 16px;
    margin: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
}

.partner-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--button-bg), var(--button-hover));
    color: white;
}

.become-partner-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(var(--button-bg-rgb), 0.05);
    border-radius: 20px;
}

.become-partner-cta p {
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.partner-btn {
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--button-bg), var(--button-hover));
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.partner-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(var(--button-bg-rgb), 0.3);
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--modal-bg);
    border-radius: 24px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-content.enhanced {
    max-width: 480px;
}

.modal-close,
.modal-close-enhanced {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(var(--button-bg-rgb), 0.1);
    border: 2px solid rgba(var(--button-bg-rgb), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: var(--text);
}

.modal-close:hover,
.modal-close-enhanced:hover {
    background: var(--button-bg);
    border-color: var(--button-bg);
    color: white;
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-title {
    font-size: 2rem;
    color: var(--heading);
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--text-muted);
}

.social-login-section {
    margin-bottom: 1.5rem;
}

.social-btn {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid rgba(var(--border-rgb), 0.2);
    border-radius: 12px;
    background: var(--background);
    color: var(--text);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.social-btn.google:hover {
    border-color: #4285F4;
    background: rgba(66, 133, 244, 0.1);
}

.social-btn.facebook:hover {
    border-color: #1877F2;
    background: rgba(24, 119, 242, 0.1);
}

.divider {
    text-align: center;
    position: relative;
    margin: 2rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(var(--border-rgb), 0.2);
}

.divider span {
    background: var(--modal-bg);
    padding: 0 1rem;
    position: relative;
    color: var(--text-muted);
    font-size: 0.875rem;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(var(--border-rgb), 0.2);
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--button-bg);
    box-shadow: 0 0 0 3px rgba(var(--button-bg-rgb), 0.1);
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
}

.password-strength {
    height: 4px;
    background: rgba(var(--border-rgb), 0.2);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.password-strength::after {
    content: '';
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #eab308, #22c55e);
    width: var(--strength, 0%);
    transition: width 0.3s ease;
}

.phone-input-group {
    display: flex;
    gap: 0.5rem;
}

.country-code {
    flex: 0 0 120px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.forgot-link {
    color: var(--button-bg);
    font-size: 0.875rem;
}

.submit-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--button-bg), var(--button-hover));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(var(--button-bg-rgb), 0.3);
}

.auth-footer {
    text-align: center;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--button-bg);
    font-weight: 500;
}

/* Video Modal */
.video-modal .video-modal-content {
    max-width: 1200px;
    width: 90%;
    background: var(--modal-bg);
    border-radius: 24px;
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.video-player-container {
    position: relative;
    background: #000;
}

.main-video {
    width: 100%;
    max-height: 60vh;
}

.video-info-panel {
    padding: 2rem;
}

.video-modal-title {
    font-size: 1.5rem;
    color: var(--heading);
    margin-bottom: 0.5rem;
}

.video-modal-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.video-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(var(--border-rgb), 0.2);
    flex-wrap: wrap;
}

.video-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(var(--button-bg-rgb), 0.1);
    color: var(--button-bg);
    border: 1px solid var(--button-bg);
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-action-btn:hover {
    background: var(--button-bg);
    color: white;
}

/* Comments Section */
.video-comments-section {
    padding: 0 2rem 2rem;
    border-top: 1px solid rgba(var(--border-rgb), 0.2);
    margin-top: 2rem;
}

.add-comment-enhanced {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-input-wrapper {
    flex: 1;
}

.comment-input-enhanced {
    width: 100%;
    padding: 0.5rem 0;
    border: none;
    border-bottom: 1px solid rgba(var(--border-rgb), 0.3);
    background: transparent;
    color: var(--text);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.comment-input-enhanced:focus {
    border-bottom-color: var(--button-bg);
    border-bottom-width: 2px;
}

.comment-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

.cancel-comment,
.submit-comment {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cancel-comment {
    background: transparent;
    color: var(--text-muted);
}

.submit-comment {
    background: var(--button-bg);
    color: white;
}

/* Share Modal */
.share-modal-content {
    max-width: 600px;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.share-btn {
    padding: 1rem;
    background: transparent;
    border: 1px solid rgba(var(--border-rgb), 0.2);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    color: var(--text);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* ============================================
   UTILITIES
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--button-bg), var(--button-hover));
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(var(--button-bg-rgb), 0.3);
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(var(--button-bg-rgb), 0.4);
}

.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10001;
}

.toast {
    background: var(--card-bg);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
}

.toast.success { border-left: 4px solid #22c55e; }
.toast.error { border-left: 4px solid #ef4444; }
.toast.warning { border-left: 4px solid #eab308; }
.toast.info { border-left: 4px solid #3b82f6; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes float-particle {
    from {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    to {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% { opacity: 1; }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

@keyframes scroll-wheel {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(15px);
        opacity: 0;
    }
}

@keyframes arrow-animation {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    50% { opacity: 1; }
    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

@keyframes float-1 {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-2 {
    0%, 100% { transform: translateY(0) rotate(5deg); }
    50% { transform: translateY(-30px) rotate(-5deg); }
}

@keyframes float-3 {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-25px) rotate(3deg); }
}

@keyframes zoomInOut {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    10%, 90% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

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

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(var(--button-bg-rgb), 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(var(--button-bg-rgb), 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(var(--button-bg-rgb), 0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes scroll-partners {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .testimonials-slider {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-items,
    .nav-actions { display: none; }
    
    .hero-text { font-size: 2rem; }
    .hero-buttons { flex-direction: column; width: 100%; padding: 0 1rem; }
    .cta-button { width: 100%; }
    
    .counter-grid-top,
    .counter-grid-bottom {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .counter-card-enhanced { height: 200px; }
    
    .news-title-enhanced { font-size: 1.75rem; }
    .news-text-enhanced { font-size: 1.125rem; }
    
    .features-grid,
    .courses-grid-enhanced { grid-template-columns: 1fr; }
    
    .ad-content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .ad-visual-content { display: none; }
    
    .video-carousel-wrapper { padding: 0 20px; }
    
    .video-modal .video-modal-content {
        max-width: 100%;
        width: 100%;
        border-radius: 0;
    }
    
    .video-actions { flex-wrap: wrap; }
    
    .share-buttons { grid-template-columns: repeat(2, 1fr); }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .testimonials-section { padding: 3rem 1rem; }
    
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .counter-grid-top { grid-template-columns: 1fr; }
    .quick-news-grid { grid-template-columns: 1fr; }
    .share-buttons { grid-template-columns: 1fr; }
}

/* Dark theme adjustments */
[data-theme="dark"] .profile-dropdown-toggle {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .profile-dropdown-toggle:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

[data-theme="dark"] .mobile-profile-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Footer Link External Indicator */
.footer-link[target="_blank"]::after {
    content: 'â†—';
    margin-left: 4px;
    font-size: 0.8em;
    opacity: 0.7;
}