/* Reset and Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@300;400;500;600;700&display=swap');

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

:root {
    /* Original dark theme colors */
    --background: hsl(222, 47%, 11%);
    --foreground: hsl(210, 40%, 98%);
    --card: hsl(222, 47%, 14%);
    --card-foreground: hsl(210, 40%, 98%);
    --primary: hsl(340, 82%, 61%);
    --primary-foreground: hsl(210, 40%, 98%);
    --secondary: hsl(217, 33%, 25%);
    --secondary-foreground: hsl(210, 40%, 98%);
    --muted: hsl(217, 33%, 17%);
    --muted-foreground: hsl(215, 20%, 65%);
    --accent: hsl(260, 82%, 71%);
    --accent-foreground: hsl(210, 40%, 98%);
    --border: hsl(217, 33%, 20%);
    --input: hsl(217, 33%, 22%);
    --ring: hsl(340, 82%, 61%);
    --radius: 0.75rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Additional colors */
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.25), 0 8px 16px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.3), 0 12px 24px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(236, 72, 153, 0.3), 0 0 40px rgba(139, 92, 246, 0.2);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.7;
    color: var(--foreground);
    background: linear-gradient(135deg, var(--background) 0%, hsl(222, 47%, 9%) 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.site-header {
    background: rgba(34, 47, 62, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, 
        rgba(236, 72, 153, 0.05) 0%, 
        rgba(139, 92, 246, 0.05) 50%, 
        rgba(59, 130, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.site-header:hover::before {
    opacity: 1;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--foreground);
    font-size: 1.5rem;
    font-weight: 700;
    transition: var(--transition);
    position: relative;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-icon-wrapper {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 50%, var(--accent) 100%);
    border-radius: calc(var(--radius) * 1.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3), 0 2px 4px rgba(59, 130, 246, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.logo-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo:hover .logo-icon-wrapper {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4), 0 4px 8px rgba(59, 130, 246, 0.3);
}

.logo:hover .logo-icon-wrapper::before {
    opacity: 1;
}

.logo-icon {
    font-size: 1.75rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-text {
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--muted-foreground);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--radius);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--foreground);
    transform: translateY(-1px);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, #3b82f6 100%);
    background-size: 200% 200%;
    color: var(--primary-foreground);
    border: none;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3), 0 2px 4px rgba(139, 92, 246, 0.2);
    position: relative;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.4), 0 4px 8px rgba(139, 92, 246, 0.3);
    background-position: 100% 50%;
    animation: gradient-shift 2s ease infinite;
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--foreground);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.2);
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    padding: 7rem 0;
    text-align: center;
    background: radial-gradient(ellipse at top, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at bottom left, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--background) 0%, transparent 100%);
    z-index: 10;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.5; }
    50% { transform: scale(1.1) translate(5%, 5%); opacity: 0.8; }
}

.hero .container {
    position: relative;
    z-index: 20;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, #3b82f6 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
    letter-spacing: -0.02em;
    line-height: 1.1;
    filter: drop-shadow(0 4px 8px rgba(236, 72, 153, 0.2));
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.75rem);
    margin-bottom: 2.5rem;
    color: var(--muted-foreground);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fade-in-up 0.8s ease 0.3s both;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Language Grid */
.language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .language-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .language-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 2.25rem;
    }
}

@media (min-width: 1280px) {
    .language-grid {
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    }
}

.language-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: calc(var(--radius) * 2);
    padding: 1.75rem;
    color: var(--card-foreground);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    min-height: 0;
}

.language-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

@media (max-width: 639px) {
    .language-card {
        padding: 1.5rem;
    }
}

.language-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.language-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent), #3b82f6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-card:hover,
.language-card:focus-within {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(236, 72, 153, 0.25), 0 6px 16px rgba(139, 92, 246, 0.2);
    border-color: rgba(236, 72, 153, 0.5);
    background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 639px) {
    .language-card:hover,
    .language-card:focus-within {
        transform: translateY(-4px) scale(1.01);
        box-shadow: 0 8px 24px rgba(236, 72, 153, 0.2), 0 4px 12px rgba(139, 92, 246, 0.15);
    }
}

.language-card:hover::before,
.language-card:focus-within::before {
    opacity: 1;
}

.language-card:hover::after,
.language-card:focus-within::after {
    transform: scaleX(1);
}

.language-icon {
    width: 56px;
    height: 56px;
    border-radius: calc(var(--radius) * 1.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.875rem;
    font-weight: bold;
    flex-shrink: 0;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

@media (max-width: 639px) {
    .language-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
}

.language-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.language-card:hover .language-icon,
.language-card:focus-within .language-icon {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.language-card:hover .language-icon::before,
.language-card:focus-within .language-icon::before {
    opacity: 1;
}

.language-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

@media (max-width: 639px) {
    .language-header {
        gap: 0.875rem;
        margin-bottom: 1rem;
    }
}

.language-header-content {
    flex: 1;
    min-width: 0;
}

.language-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.375rem 0;
    color: var(--card-foreground);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

@media (max-width: 639px) {
    .language-name {
        font-size: 1.125rem;
        margin-bottom: 0.25rem;
    }
}

.language-category {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-transform: capitalize;
}

.language-description {
    color: var(--muted-foreground);
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
    flex: 1 1 auto;
    min-height: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

@media (max-width: 639px) {
    .language-description {
        font-size: 0.875rem;
        margin-bottom: 1rem;
        -webkit-line-clamp: 2;
    }
}

.language-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    margin-bottom: 1.25rem;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

@media (max-width: 639px) {
    .language-meta {
        font-size: 0.75rem;
        margin-bottom: 1rem;
        padding: 0.625rem 0;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

.language-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.language-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

@media (max-width: 639px) {
    .language-actions {
        gap: 0.5rem;
        flex-direction: column;
    }
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    min-height: 42px;
    border-radius: calc(var(--radius) * 1.2);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-decoration: none;
    z-index: 10;
    pointer-events: auto;
}

.btn-sm::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.btn-sm:hover::before {
    opacity: 1;
}

.btn-sm span {
    font-size: 1rem;
    line-height: 1;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.btn-sm:hover span {
    transform: scale(1.1);
}

.btn-sm.btn-primary {
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.25), 0 1px 3px rgba(139, 92, 246, 0.15);
}

.btn-sm.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.35), 0 3px 6px rgba(139, 92, 246, 0.25);
}

.btn-sm.btn-secondary {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-sm.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 639px) {
    .btn-sm {
        width: 100%;
        padding: 0.75rem 1.5rem;
        min-height: 48px;
        font-size: 0.9375rem;
    }
    
    .btn-sm span {
        font-size: 1.125rem;
    }
}

/* Stats Section */
.stats-section {
    padding: 4rem 0;
    background-color: var(--card);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: calc(var(--radius) * 2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 32px rgba(236, 72, 153, 0.2), 0 4px 12px rgba(139, 92, 246, 0.15);
    border-color: rgba(236, 72, 153, 0.3);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: var(--transition);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.stat-card:hover .stat-icon {
    transform: scale(1.15) rotate(5deg);
}

.stat-value {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, #3b82f6 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    animation: gradient-shift 3s ease infinite;
    letter-spacing: -0.02em;
}

.stat-label {
    color: var(--muted-foreground);
    font-size: 1rem;
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

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

.courses-section,
.features-section {
    padding: 4rem 0;
}

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

.feature-card {
    text-align: center;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: calc(var(--radius) * 2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(236, 72, 153, 0.2), 0 8px 16px rgba(139, 92, 246, 0.15);
    border-color: rgba(236, 72, 153, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, #3b82f6 100%);
    background-size: 200% 200%;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.3), 0 4px 8px rgba(139, 92, 246, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotate(10deg) scale(1.1);
    animation: gradient-shift 2s ease infinite;
    box-shadow: 0 12px 32px rgba(236, 72, 153, 0.4), 0 6px 12px rgba(139, 92, 246, 0.3);
}

.feature-card:hover .feature-icon::before {
    opacity: 1;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.feature-card p {
    color: var(--muted-foreground);
}

/* Footer */
.site-footer {
    background: linear-gradient(to top, rgba(34, 47, 62, 0.8) 0%, var(--background) 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4rem 0 1.5rem;
    margin-top: 6rem;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    display: inline-block;
}

.footer-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.footer-section a:hover {
    color: var(--foreground);
    transform: translateX(4px);
}

.footer-section a:hover::after {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--muted-foreground);
}

/* Error Page */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

.error-content {
    text-align: center;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.error-title {
    font-size: 2rem;
    margin: 1rem 0;
}

.error-message {
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--muted);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    border: 2px solid var(--muted);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent), #3b82f6);
}

/* Selection Styling */
::selection {
    background: rgba(236, 72, 153, 0.3);
    color: var(--foreground);
}

::-moz-selection {
    background: rgba(236, 72, 153, 0.3);
    color: var(--foreground);
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius);
}

/* Responsive */
@media (max-width: 639px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .language-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    .stat-card {
        padding: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .language-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
}

