/* ===================================
   HIND ACADEMY - Advanced 2026 UI/UX
   Premium 3D Interactive Design
   =================================== */

/* ===================================
   CSS Variables - Design System
   =================================== */

:root {
    /* Premium Color Palette */
    --primary-dark: #0a1628;
    --primary: #0f2044;
    --secondary: #1a365d;
    --accent-gold: #d4af37;
    --accent-gold-light: #f4e5a8;
    --accent-gold-dark: #b8962e;
    --white: #ffffff;
    --off-white: #f8fafc;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Gradients */
    --gradient-royal: linear-gradient(135deg, #0a1628 0%, #1a365d 50%, #0f2044 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4e5a8 50%, #d4af37 100%);
    --gradient-glow: linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(212, 175, 55, 0) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --gradient-dark-glass: linear-gradient(135deg, rgba(10, 22, 40, 0.8) 0%, rgba(15, 32, 68, 0.6) 100%);
    
    /* Typography */
    --font-display: 'Space Grotesk', 'Playfair Display', serif;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Tajawal', 'Space Grotesk', sans-serif;
    
    /* Spacing */
    --section-padding: clamp(80px, 12vh, 150px) 0;
    --container-padding: 0 clamp(20px, 5vw, 80px);
    
    /* Borders */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(212, 175, 55, 0.3);
    --shadow-glow-intense: 0 0 60px rgba(212, 175, 55, 0.5);
    
    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
    --transition-fast: 0.2s var(--ease-out-expo);
    --transition-normal: 0.4s var(--ease-out-expo);
    --transition-slow: 0.6s var(--ease-out-expo);
    
    /* Z-Index Layers */
    --z-base: 1;
    --z-elevated: 10;
    --z-sticky: 100;
    --z-overlay: 500;
    --z-modal: 1000;
    --z-cursor: 9999;
}

/* Dark Mode Variables */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: var(--primary-dark);
        --bg-secondary: var(--primary);
    }
}

/* ===================================
   Reset & Base Styles
   =================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--off-white);
    cursor: none;
}

/* RTL Support */
[dir="rtl"] body {
    direction: rtl;
}

[dir="rtl"] .nav-links,
[dir="rtl"] .hero-buttons,
[dir="rtl"] .footer-social {
    flex-direction: row-reverse;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--container-padding);
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

button {
    cursor: none;
    border: none;
    background: transparent;
    font-family: inherit;
}

/* ===================================
   Custom Cursor
   =================================== */

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: var(--z-cursor);
    mix-blend-mode: difference;
}

.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

.cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.15s ease;
    opacity: 0.5;
}

body:has(.magnetic:hover) .cursor-ring {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 1;
}

body:has(a:hover) .cursor-dot,
body:has(button:hover) .cursor-dot {
    transform: translate(-50%, -50%) scale(2);
}

@media (max-width: 768px) {
    .cursor-follower {
        display: none;
    }
    body {
        cursor: auto;
    }
}

/* ===================================
   Preloader
   =================================== */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-royal);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
}

.preloader-3d {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
}

#preloader-canvas {
    width: 100%;
    height: 100%;
}

.preloader-text {
    color: var(--white);
}

.preloader-brand {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 20px;
}

.preloader-progress {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0 auto 15px;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.preloader-percent {
    font-size: 14px;
    color: var(--gray-400);
}

/* ===================================
   Glassmorphism
   =================================== */

.glass-morphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.glass-morphism-dark {
    background: rgba(10, 22, 40, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   Language Switcher
   =================================== */

.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: var(--z-sticky);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-full);
}

[dir="rtl"] .language-switcher {
    right: auto;
    left: 20px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    transition: var(--transition-fast);
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--gradient-gold);
    color: var(--primary-dark);
}

.lang-icon {
    font-size: 16px;
}

.lang-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
}

/* Sound Toggle */
.sound-toggle {
    position: fixed;
    top: 20px;
    right: 140px;
    z-index: var(--z-sticky);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    transition: var(--transition-fast);
}

[dir="rtl"] .sound-toggle {
    right: auto;
    left: 140px;
}

.sound-toggle:hover {
    background: var(--gradient-gold);
    color: var(--primary-dark);
}

/* ===================================
   Navigation
   =================================== */

.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-sticky);
    padding: 12px 30px;
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
    width: auto;
    max-width: 90%;
}

.navbar .container {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 44px;
    height: 44px;
}

.brand-svg {
    width: 100%;
    height: 100%;
    animation: rotateSlow 20s linear infinite;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.brand-text {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    position: relative;
    padding: 10px 16px;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.nav-link-text {
    position: relative;
    z-index: 2;
}

.nav-link-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out-expo);
    z-index: 1;
}

.nav-link:hover .nav-link-hover {
    transform: scaleX(1);
}

.nav-link:hover .nav-link-text {
    color: var(--primary-dark);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--accent-gold);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-overlay);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.mobile-menu.active {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.mobile-menu-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-royal);
    transform: translateY(-100%);
    transition: transform 0.6s var(--ease-out-expo);
}

.mobile-menu.active .mobile-menu-bg {
    transform: translateY(0);
}

.mobile-menu-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    color: var(--white);
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-normal);
}

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-link:hover {
    color: var(--accent-gold);
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-royal);
    overflow: hidden;
}

.hero-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#hero-canvas {
    width: 100%;
    height: 100%;
}

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

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, var(--primary-dark) 70%);
    z-index: 3;
}

.animated-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 2;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(80px, 80px); }
}

.floating-3d-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

.float-element {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-gold);
    opacity: 0.1;
    filter: blur(60px);
    animation: floatElement 8s ease-in-out infinite;
}

.float-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.float-2 {
    width: 300px;
    height: 300px;
    top: 60%;
    right: -5%;
    animation-delay: 2s;
}

.float-3 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    left: 20%;
    animation-delay: 4s;
}

.float-4 {
    width: 250px;
    height: 250px;
    top: 30%;
    right: 20%;
    animation-delay: 6s;
}

@keyframes floatElement {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    max-width: 1000px;
    padding-top: 100px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    margin-bottom: 30px;
    animation: fadeInUp 1s var(--ease-out-expo) 0.2s both;
    cursor: pointer;
    transition: var(--transition-fast);
    user-select: none;
}

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

.hero-badge:active {
    transform: scale(0.98);
}

.badge-icon {
    font-size: 20px;
}

.badge-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(60px);
    animation: titleReveal 1s var(--ease-out-expo) forwards;
}

.title-line:nth-child(1) { animation-delay: 0.3s; }
.title-line:nth-child(2) { animation-delay: 0.5s; }
.title-line:nth-child(3) { animation-delay: 0.7s; }

.title-highlight {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--gray-300);
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s var(--ease-out-expo) 0.9s both;
}

/* Hero Interaction Hint */
.hero-interaction-hint {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--accent-gold);
    opacity: 0;
    animation: fadeInUp 1s var(--ease-out-expo) 1s both, pulseHint 2s ease-in-out 2s infinite;
    cursor: pointer;
    transition: var(--transition-fast);
}

.hero-interaction-hint:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.hero-interaction-hint i {
    animation: pointerMove 1.5s ease-in-out infinite;
}

@keyframes pointerMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

@keyframes pulseHint {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s var(--ease-out-expo) 1.1s both;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0;
    animation: fadeInUp 1s var(--ease-out-expo) 1.5s both;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--accent-gold);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.3; }
}

.scroll-text {
    font-size: 12px;
    color: var(--gray-400);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Hero Stats */
.hero-stats {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px 30px;
    border-radius: var(--radius-lg);
    z-index: 10;
}

[dir="rtl"] .hero-stats {
    right: auto;
    left: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-gold);
}

.stat-label {
    font-size: 12px;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* ===================================
   Buttons
   =================================== */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: var(--transition-normal);
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-icon {
    position: relative;
    z-index: 2;
    transition: transform 0.3s var(--ease-out-expo);
}

.btn:hover .btn-icon {
    transform: translateX(5px);
}

[dir="rtl"] .btn:hover .btn-icon {
    transform: translateX(-5px);
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--primary-dark);
}

.btn-primary .btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.5) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s var(--ease-out-expo);
    z-index: 1;
}

.btn-primary:hover .btn-glow {
    transform: translate(-50%, -50%) scale(2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

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

.btn-secondary .btn-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-gold);
    border-radius: var(--radius-full);
    transform: scale(1.1);
    opacity: 0;
    transition: var(--transition-normal);
}

.btn-secondary:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.btn-secondary:hover .btn-border {
    transform: scale(1);
    opacity: 1;
}

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

.btn-outline:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #20b858;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

/* Submit Button States */
.btn-submit .btn-loading,
.btn-submit .btn-success {
    display: none;
}

.btn-submit.loading .btn-text,
.btn-submit.loading .btn-icon {
    display: none;
}

.btn-submit.loading .btn-loading {
    display: block;
}

.btn-submit.success .btn-text,
.btn-submit.success .btn-icon {
    display: none;
}

.btn-submit.success .btn-success {
    display: block;
}

/* ===================================
   Section Styles
   =================================== */

section {
    position: relative;
    padding: var(--section-padding);
}

.section-transition-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, var(--primary-dark), transparent);
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.section-title.light {
    color: var(--white);
}

.section-line {
    width: 100px;
    height: 4px;
    margin: 0 auto 30px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.section-line.light {
    background: rgba(255, 255, 255, 0.2);
}

.line-inner {
    display: block;
    width: 0;
    height: 100%;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    transition: width 1s var(--ease-out-expo);
}

.section-header.in-view .line-inner {
    width: 100%;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray-500);
    max-width: 700px;
    margin: 0 auto;
}

.section-subtitle.light {
    color: var(--gray-300);
}

/* ===================================
   About Section - Bento Grid
   =================================== */

.about {
    background: var(--off-white);
    position: relative;
    z-index: 5;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto auto;
    gap: 24px;
}

.bento-item {
    padding: 30px;
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.bento-main {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-cert { grid-column: span 1; }
.bento-exp { grid-column: span 1; }
.bento-royal { grid-column: span 1; }
.bento-champions { grid-column: span 1; }
.bento-quote { grid-column: span 2; }

.bento-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-avatar {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
}

.avatar-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    animation: rotateSlow 15s linear infinite;
}

.avatar-inner {
    width: 100%;
    height: 100%;
    background: var(--gradient-royal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-inner i {
    font-size: 60px;
    color: var(--accent-gold);
}

.avatar-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-gold);
    color: var(--primary-dark);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.bento-title {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--primary-dark);
    margin-bottom: 20px;
    text-align: center;
}

.bento-description {
    color: var(--gray-500);
    line-height: 1.8;
    text-align: center;
}

.bento-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.bento-icon i {
    font-size: 28px;
    color: var(--primary-dark);
}

.bento-item h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.bento-item > p {
    font-size: 14px;
    color: var(--gray-500);
}

.pulse-icon {
    animation: pulse 2s ease-in-out infinite;
}

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

.crown-icon {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #d4af37 100%);
}

.bento-quote {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--gradient-royal);
    color: var(--white);
}

.quote-marks {
    font-family: var(--font-heading);
    font-size: 80px;
    color: var(--accent-gold);
    line-height: 0.5;
    margin-bottom: 20px;
}

.bento-quote blockquote {
    font-size: 20px;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
}

.bento-quote cite {
    font-size: 14px;
    color: var(--accent-gold);
    font-style: normal;
    font-weight: 600;
}

/* Tilt Card Effect */
.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.tilt-card:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

/* ===================================
   Programs Section
   =================================== */

.programs {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.section-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--gray-200) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
}

.programs-3d-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

.program-card-3d {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 50px 35px;
    text-align: center;
    transition: var(--transition-normal);
    overflow: hidden;
}

.card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s var(--ease-out-expo);
}

.program-card-3d:hover .card-shine {
    left: 150%;
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: var(--radius-xl);
    transition: var(--transition-normal);
}

.program-card-3d:hover .card-border {
    border-color: var(--accent-gold);
}

.program-card-3d.featured {
    background: var(--gradient-royal);
    color: var(--white);
    transform: scale(1.05);
}

.featured-ribbon {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--gradient-gold);
    color: var(--primary-dark);
    padding: 8px 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(45deg);
    z-index: 3;
}

[dir="rtl"] .featured-ribbon {
    right: auto;
    left: -35px;
    transform: rotate(-45deg);
}

.featured-border {
    border-color: var(--accent-gold) !important;
}

.program-icon-wrap {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-gold);
    border-radius: 50%;
    animation: glowPulse 2s ease-in-out infinite;
}

.featured-glow {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.3; }
}

.program-icon-wrap i {
    position: relative;
    font-size: 36px;
    color: var(--primary-dark);
    z-index: 2;
}

.program-card-3d.featured .program-icon-wrap i {
    color: var(--white);
}

.program-card-3d h3 {
    font-family: var(--font-heading);
    font-size: 26px;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.program-card-3d.featured h3 {
    color: var(--accent-gold-light);
}

.program-age {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 600;
    margin-bottom: 30px;
}

.program-card-3d.featured .program-age {
    color: var(--gray-300);
}

.program-features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

[dir="rtl"] .program-features {
    text-align: right;
}

.program-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-600);
    font-size: 15px;
}

.program-card-3d.featured .program-features li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    color: var(--gray-200);
}

.program-features li i {
    color: var(--accent-gold);
    font-size: 14px;
}

.program-features li:last-child {
    border-bottom: none;
}

.program-card-3d .btn {
    width: 100%;
}

/* ===================================
   Skills Section
   =================================== */

.skills {
    background: var(--gradient-royal);
    position: relative;
    overflow: hidden;
}

.skills-3d-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#skills-canvas {
    width: 100%;
    height: 100%;
}

.skills .container {
    position: relative;
    z-index: 2;
}

.light-header .section-tag {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.skills-hexagon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.skill-hexagon {
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-normal);
    overflow: hidden;
}

.skill-hexagon:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-gold);
    transform: translateY(-10px);
}

.hex-inner {
    position: relative;
    z-index: 2;
}

.hex-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hex-icon i {
    font-size: 32px;
    color: var(--primary-dark);
}

.skill-hexagon h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--accent-gold-light);
    margin-bottom: 15px;
}

.skill-hexagon p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.hex-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s var(--ease-out-expo);
    z-index: 1;
}

.skill-hexagon:hover .hex-glow {
    transform: translate(-50%, -50%) scale(1.5);
}

/* ===================================
   Achievements Section
   =================================== */

.achievements {
    background: var(--off-white);
}

.achievements-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.achievement-stat {
    position: relative;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-normal);
    overflow: hidden;
}

.achievement-stat:hover {
    transform: translateY(-10px);
}

.stat-3d {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.stat-canvas {
    width: 100%;
    height: 100%;
}

.achievement-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-gold);
    display: inline;
}

.achievement-plus {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-gold);
}

.achievement-stat h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--primary-dark);
    margin: 15px 0 10px;
}

.achievement-stat p {
    font-size: 14px;
    color: var(--gray-500);
}

.achievement-icon {
    font-size: 48px;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.stat-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    border: 2px solid var(--gray-200);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s var(--ease-out-expo);
    opacity: 0.5;
}

.achievement-stat:hover .stat-ring {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
}

.gold-ring {
    border-color: var(--accent-gold);
}

/* Gallery */
.gallery-section {
    margin-top: 60px;
}

.gallery-title {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 40px;
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
}

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

.gallery-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-royal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.gallery-placeholder i {
    font-size: 48px;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.gallery-placeholder span {
    font-size: 14px;
    color: var(--white);
    font-weight: 500;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 22, 40, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 24px;
    color: var(--white);
}

/* ===================================
   Contact Section
   =================================== */

.contact {
    background: var(--white);
    position: relative;
}

.contact-bg-gradient {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(212, 175, 55, 0.05));
    pointer-events: none;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    transition: var(--transition-normal);
}

.contact-card:hover {
    transform: translateX(10px);
}

[dir="rtl"] .contact-card:hover {
    transform: translateX(-10px);
}

.contact-icon-wrap {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon-wrap i {
    font-size: 24px;
    color: var(--primary-dark);
}

.contact-card-content h3 {
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.contact-card-content p {
    color: var(--gray-500);
    margin-bottom: 15px;
}

/* Contact Form */
.contact-form {
    padding: 50px;
}

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

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.floating-label {
    position: relative;
}

.floating-label input,
.floating-label select,
.floating-label textarea {
    width: 100%;
    padding: 18px 20px;
    padding-top: 28px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-family: var(--font-body);
    background: var(--white);
    transition: var(--transition-fast);
}

.floating-label label {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--gray-400);
    pointer-events: none;
    transition: var(--transition-fast);
}

[dir="rtl"] .floating-label label {
    left: auto;
    right: 20px;
}

.floating-label textarea ~ label {
    top: 28px;
}

.floating-label input:focus,
.floating-label select:focus,
.floating-label textarea:focus {
    border-color: var(--accent-gold);
    outline: none;
}

.floating-label input:focus ~ label,
.floating-label input:valid ~ label,
.floating-label select:focus ~ label,
.floating-label select:valid ~ label,
.floating-label textarea:focus ~ label,
.floating-label textarea:valid ~ label {
    top: 12px;
    font-size: 12px;
    color: var(--accent-gold);
}

.input-highlight {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transform: translateX(-50%);
    transition: width 0.3s var(--ease-out-expo);
}

.floating-label input:focus ~ .input-highlight,
.floating-label select:focus ~ .input-highlight,
.floating-label textarea:focus ~ .input-highlight {
    width: 100%;
}

.select-wrapper select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
}

[dir="rtl"] .select-wrapper select {
    background-position: left 20px center;
}

.btn-submit {
    width: 100%;
    margin-top: 10px;
    min-height: 56px;
}

/* ===================================
   Footer
   =================================== */

.footer {
    background: var(--gradient-royal);
    color: var(--white);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#footer-canvas {
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.footer .container {
    position: relative;
    z-index: 2;
}

.footer-main {
    text-align: center;
    margin-bottom: 50px;
}

.footer .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.footer .brand-logo {
    width: 50px;
    height: 50px;
}

.footer .brand-name {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 3px;
}

.footer-tagline {
    font-size: 16px;
    color: var(--gray-300);
    margin-bottom: 30px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 20px;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    transform: translateY(-5px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 14px;
    color: var(--gray-400);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    font-size: 14px;
    color: var(--gray-400);
}

.footer-links a:hover {
    color: var(--accent-gold);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    z-index: var(--z-sticky);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-normal);
}

[dir="rtl"] .back-to-top {
    right: auto;
    left: 30px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--gradient-gold);
    color: var(--primary-dark);
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1200px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bento-main {
        grid-column: span 2;
    }
    
    .bento-quote {
        grid-column: span 2;
    }
    
    .programs-3d-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .program-card-3d.featured {
        transform: scale(1);
    }
    
    .achievements-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .navbar {
        width: calc(100% - 40px);
        max-width: none;
        padding: 12px 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-stats {
        bottom: auto;
        top: auto;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        position: relative;
        margin-top: 40px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .skills-hexagon-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .language-switcher {
        top: 15px;
        right: 15px;
    }
    
    .sound-toggle {
        display: none;
    }
    
    .hero-title {
        font-size: clamp(32px, 8vw, 48px);
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-main,
    .bento-quote {
        grid-column: span 1;
    }
    
    .programs-3d-container {
        grid-template-columns: 1fr;
    }
    
    .skills-hexagon-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-showcase {
        grid-template-columns: 1fr;
    }
    
    .gallery-masonry {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-badge {
        padding: 10px 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .stat-divider {
        width: 40px;
        height: 1px;
    }
}

/* ===================================
   Print Styles
   =================================== */

@media print {
    .preloader,
    .cursor-follower,
    .language-switcher,
    .sound-toggle,
    .navbar,
    .back-to-top,
    .mobile-menu {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    section {
        page-break-inside: avoid;
    }
}
