/* CSS Reset and Variables */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-navy: #0B1026;
    --bg-purple: #1a103c;
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.15);
    --card-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
    --text-white: #ffffff;
    --text-gray: #a0a0b0;
    --nav-bg: rgba(11, 16, 38, 0.85);
    --nav-border: rgba(255, 255, 255, 0.12);
    --nav-glow: 0 8px 32px rgba(0, 0, 0, 0.35);
    --dropdown-bg: rgba(15, 22, 48, 0.96);
    --dropdown-border: rgba(255, 255, 255, 0.16);
    --dropdown-item-hover: rgba(99, 102, 241, 0.14);
    --blue-glow: rgba(99, 102, 241, 0.4);
    --purple-glow: rgba(139, 92, 246, 0.4);
    --pink-glow: rgba(236, 72, 153, 0.3);
    --blue-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --green-gradient: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    --orange-gradient: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
    --pink-gradient: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    --font-en: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-ku: 'Vazirmatn', 'Poppins', sans-serif;
}

[data-theme="light"] {
    --bg-navy: #EEF2FF;
    --bg-purple: #F8FAFC;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(99, 102, 241, 0.2);
    --card-shadow: 0 16px 40px rgba(99, 102, 241, 0.12);
    --text-white: #0F172A;
    --text-gray: #475569;
    --nav-bg: rgba(255, 255, 255, 0.88);
    --nav-border: rgba(99, 102, 241, 0.18);
    --nav-glow: 0 8px 30px rgba(99, 102, 241, 0.12);
    --dropdown-bg: rgba(255, 255, 255, 0.98);
    --dropdown-border: rgba(99, 102, 241, 0.22);
    --dropdown-item-hover: rgba(99, 102, 241, 0.08);
    --blue-glow: rgba(99, 102, 241, 0.25);
    --purple-glow: rgba(139, 92, 246, 0.25);
    --pink-glow: rgba(236, 72, 153, 0.2);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-en);
    background: linear-gradient(135deg, var(--bg-navy) 0%, var(--bg-purple) 100%);
    color: var(--text-white);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.3s ease;
}

[dir="rtl"] body {
    font-family: var(--font-ku);
}

/* Luxury Floating Navigation Island Bar */
.hub-nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    padding: 12px 24px;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--nav-border);
    box-shadow: var(--nav-glow);
    transition: all 0.3s ease;
}

.hub-nav-inner {
    max-width: 1150px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hub-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-white);
    transition: transform 0.25s ease;
}

.hub-nav-brand:hover {
    transform: translateY(-1px) scale(1.02);
}

.hub-nav-logo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 14px rgba(99, 102, 241, 0.5);
}

.hub-nav-title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.nav-gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Luxury Language Picker */
.lang-picker {
    position: relative;
}

.lang-picker-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 999px;
    color: var(--text-white);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.lang-picker-btn:hover,
.lang-picker.active .lang-picker-btn {
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

.flag-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.flag-svg {
    display: block;
    width: 20px;
    height: 14px;
    border-radius: 3px;
}

.active-lang-text {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.picker-chevron {
    width: 14px;
    height: 14px;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.lang-picker.active .picker-chevron {
    transform: rotate(180deg);
}

/* Luxury Dropdown Menu Panel */
.lang-dropdown-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 250px;
    background: var(--dropdown-bg);
    border: 1px solid var(--dropdown-border);
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                visibility 0.25s;
    z-index: 150;
}

[dir="rtl"] .lang-dropdown-panel {
    right: auto;
    left: 0;
}

.lang-picker.active .lang-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-header {
    padding: 8px 12px 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-gray);
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 6px;
}

.lang-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--text-white);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

[dir="rtl"] .lang-item {
    text-align: right;
}

.lang-item:hover {
    background: var(--dropdown-item-hover);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(4px);
}

[dir="rtl"] .lang-item:hover {
    transform: translateX(-4px);
}

.lang-item.selected {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
}

.lang-item-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.lang-item-names {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lang-primary-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-white);
}

.lang-native-name {
    font-size: 11px;
    color: var(--text-gray);
    font-weight: 500;
}

.lang-check-icon {
    font-size: 12px;
    color: #6366f1;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.lang-item.selected .lang-check-icon {
    opacity: 1;
}

/* Luxury Light / Dark Mode Toggle Button */
.theme-toggle-btn {
    position: relative;
    width: 68px;
    height: 36px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.theme-toggle-btn:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 22px rgba(99, 102, 241, 0.35);
    transform: scale(1.05);
}

.theme-sun-ico,
.theme-moon-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    z-index: 1;
    transition: all 0.3s ease;
}

.theme-sun-ico {
    color: #f59e0b;
}

.theme-moon-ico {
    color: #a78bfa;
}

.theme-thumb {
    position: absolute;
    top: 3px;
    left: 4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.5);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
    z-index: 0;
}

/* When in Dark mode, thumb sits over moon (right side in LTR) */
[data-theme="dark"] .theme-thumb {
    transform: translateX(30px);
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

[data-theme="light"] .theme-thumb {
    transform: translateX(0);
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.5);
}

/* Header Adjustments */
.hub-header {
    text-align: center;
    padding: 38px 20px 32px;
    animation: fadeInDown 1s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* RTL Arrow Support */
[dir="rtl"] .card-button .arrow {
    transform: scaleX(-1);
}

[dir="rtl"] .card-button:hover .arrow {
    transform: scaleX(-1) translateX(4px);
}

/* Background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-navy);
    transition: background 0.4s ease;
}

[data-theme="light"] .background {
    background: #EEF2FF;
}

[data-theme="light"] .card {
    background: var(--card-bg);
    border-color: var(--card-border);
    box-shadow: 0 12px 36px rgba(99, 102, 241, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .card-title {
    color: #0F172A;
}

[data-theme="light"] .card-description {
    color: #475569;
}

[data-theme="light"] footer {
    border-top-color: rgba(99, 102, 241, 0.15);
    color: #475569;
}

[data-theme="light"] .glow {
    opacity: 0.25;
}

/* Grid Pattern */
.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    pointer-events: none;
}

/* Mesh Gradient */
.mesh-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(99, 102, 241, 0.12) 0%, transparent 50%);
    animation: meshMove 25s ease-in-out infinite;
    pointer-events: none;
}

@keyframes meshMove {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -20px) scale(1.02);
    }
    50% {
        transform: translate(-20px, 30px) scale(1.01);
    }
    75% {
        transform: translate(-30px, -10px) scale(1.03);
    }
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(250px);
    opacity: 0.5;
    animation: floatGlow 20s ease-in-out infinite;
    pointer-events: none;
}

.glow-tl {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.6) 0%, rgba(99, 102, 241, 0.3) 50%, transparent 70%);
    top: -300px;
    left: -300px;
    animation-delay: 0s;
}

.glow-tr {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.6) 0%, rgba(168, 85, 247, 0.3) 50%, transparent 70%);
    top: -250px;
    right: -250px;
    animation-delay: 5s;
}

.glow-bl {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.5) 0%, rgba(168, 85, 247, 0.25) 50%, transparent 70%);
    bottom: -250px;
    left: -250px;
    animation-delay: 10s;
}

.glow-br {
    width: 680px;
    height: 680px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.55) 0%, rgba(99, 102, 241, 0.28) 50%, transparent 70%);
    bottom: -280px;
    right: -280px;
    animation-delay: 15s;
}

@keyframes floatGlow {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    25% {
        transform: translate(40px, -30px) scale(1.05);
        opacity: 0.6;
    }
    50% {
        transform: translate(60px, -50px) scale(1.1);
        opacity: 0.55;
    }
    75% {
        transform: translate(30px, -20px) scale(1.05);
        opacity: 0.6;
    }
}

.dots {
    position: absolute;
    width: 250px;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    opacity: 0.5;
    pointer-events: none;
}

.dots-left {
    left: 0;
    top: 0;
}

.dots-right {
    right: 0;
    top: 0;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: floatParticle 15s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

/* Header */
header {
    text-align: center;
    padding: 48px 20px 40px;
    animation: fadeInDown 1s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    animation: fadeIn 1.5s ease-out;
}

.logo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    animation: logoFloat 3s ease-in-out infinite;
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.4), 0 0 50px rgba(99, 102, 241, 0.45), 0 12px 40px rgba(139, 92, 246, 0.35);
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.title {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 22px;
    font-weight: 400;
    color: var(--text-gray);
    margin-bottom: 24px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto;
    animation: fadeIn 1s ease-out 0.7s both;
}

.divider-line {
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
}

.divider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6366f1;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.8);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.8);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px rgba(99, 102, 241, 1);
        transform: scale(1.2);
    }
}

/* Main Content */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px 24px;
    width: 100%;
    box-sizing: border-box;
}

.cards-container {
    width: 100%;
    max-width: 1150px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
    animation: fadeInUp 1s ease-out 0.7s both;
}

/* Card Styles */
.card {
    width: 100%;
    max-width: 100%;
    min-height: 275px;
    height: auto;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-radius: 30px;
    padding: 36px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3), 
                0 0 60px rgba(99, 102, 241, 0.15),
                inset 0 2px 0 rgba(255, 255, 255, 0.25),
                inset 0 -2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 28px;
    animation: cardFloat 6s ease-in-out infinite;
    box-sizing: border-box;
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.card[data-card="1"] {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3), 
                0 0 20px rgba(59, 130, 246, 0.5),
                0 0 40px rgba(59, 130, 246, 0.3),
                inset 0 2px 0 rgba(255, 255, 255, 0.25),
                inset 0 -2px 0 rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(59, 130, 246, 0.4);
}

.card[data-card="1"]::before {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.04));
}

.card[data-card="2"] {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3), 
                0 0 20px rgba(34, 197, 94, 0.5),
                0 0 40px rgba(34, 197, 94, 0.3),
                inset 0 2px 0 rgba(255, 255, 255, 0.25),
                inset 0 -2px 0 rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(34, 197, 94, 0.4);
}

.card[data-card="2"]::before {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.04));
}

.card[data-card="3"] {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3), 
                0 0 20px rgba(245, 158, 11, 0.5),
                0 0 40px rgba(245, 158, 11, 0.3),
                inset 0 2px 0 rgba(255, 255, 255, 0.25),
                inset 0 -2px 0 rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(245, 158, 11, 0.4);
}

.card[data-card="3"]::before {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.04));
}

.card[data-card="4"] {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3), 
                0 0 20px rgba(244, 63, 94, 0.45),
                0 0 40px rgba(225, 29, 72, 0.28),
                inset 0 2px 0 rgba(255, 255, 255, 0.25),
                inset 0 -2px 0 rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(244, 63, 94, 0.4);
}

.card[data-card="4"]::before {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.12), rgba(225, 29, 72, 0.04));
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

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

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.4), 
                0 0 70px rgba(99, 102, 241, 0.2),
                inset 0 2px 0 rgba(255, 255, 255, 0.3),
                inset 0 -2px 0 rgba(0, 0, 0, 0.05);
}

.card[data-card="1"]:hover {
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.4), 
                0 0 26px rgba(59, 130, 246, 0.65),
                0 0 52px rgba(59, 130, 246, 0.4),
                inset 0 2px 0 rgba(255, 255, 255, 0.3),
                inset 0 -2px 0 rgba(0, 0, 0, 0.05);
    border-color: rgba(59, 130, 246, 0.6);
}

.card[data-card="2"]:hover {
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.4), 
                0 0 26px rgba(34, 197, 94, 0.65),
                0 0 52px rgba(34, 197, 94, 0.4),
                inset 0 2px 0 rgba(255, 255, 255, 0.3),
                inset 0 -2px 0 rgba(0, 0, 0, 0.05);
    border-color: rgba(34, 197, 94, 0.6);
}

.card[data-card="3"]:hover {
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.4), 
                0 0 26px rgba(245, 158, 11, 0.65),
                0 0 52px rgba(245, 158, 11, 0.4),
                inset 0 2px 0 rgba(255, 255, 255, 0.3),
                inset 0 -2px 0 rgba(0, 0, 0, 0.05);
    border-color: rgba(245, 158, 11, 0.6);
}

.card[data-card="4"]:hover {
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.4), 
                0 0 26px rgba(244, 63, 94, 0.6),
                0 0 52px rgba(225, 29, 72, 0.35),
                inset 0 2px 0 rgba(255, 255, 255, 0.3),
                inset 0 -2px 0 rgba(0, 0, 0, 0.05);
    border-color: rgba(244, 63, 94, 0.6);
}

.card[data-card="5"] {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(99, 102, 241, 0.5),
                0 0 40px rgba(139, 92, 246, 0.3),
                inset 0 2px 0 rgba(255, 255, 255, 0.25),
                inset 0 -2px 0 rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(99, 102, 241, 0.45);
}

.card[data-card="5"]::before {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(139, 92, 246, 0.05));
}

.card[data-card="5"]:hover {
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.4),
                0 0 26px rgba(99, 102, 241, 0.65),
                0 0 52px rgba(139, 92, 246, 0.4),
                inset 0 2px 0 rgba(255, 255, 255, 0.3),
                inset 0 -2px 0 rgba(0, 0, 0, 0.05);
    border-color: rgba(99, 102, 241, 0.65);
}

.card-featured {
    grid-column: 1 / -1;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.card:nth-child(1) { animation-delay: 0s; }
.card:nth-child(2) { animation-delay: 0.5s; }
.card:nth-child(3) { animation-delay: 1s; }
.card:nth-child(4) { animation-delay: 1.5s; }
.card:nth-child(5) { animation-delay: 2s; }

.card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.card-icon {
    width: 90px;
    height: 90px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: iconPulse 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.blue-icon {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
    box-shadow: 0 12px 48px rgba(59, 130, 246, 0.7), 0 0 60px rgba(59, 130, 246, 0.5);
}

.green-icon {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 50%, #16a34a 100%);
    box-shadow: 0 12px 48px rgba(34, 197, 94, 0.7), 0 0 60px rgba(34, 197, 94, 0.5);
}

.orange-icon {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #ea580c 100%);
    box-shadow: 0 12px 48px rgba(249, 115, 22, 0.7), 0 0 60px rgba(249, 115, 22, 0.5);
}

.pink-icon,
.rose-icon {
    background: linear-gradient(135deg, #fb7185 0%, #f43f5e 50%, #e11d48 100%);
    box-shadow: 0 12px 48px rgba(244, 63, 94, 0.65), 0 0 60px rgba(225, 29, 72, 0.4);
}

.indigo-icon {
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 45%, #8b5cf6 100%);
    box-shadow: 0 12px 48px rgba(99, 102, 241, 0.7), 0 0 60px rgba(139, 92, 246, 0.5);
}

.card-icon i {
    color: white;
    font-size: 2.1rem;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.card-icon-svg {
    width: 52px;
    height: 52px;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.28));
}

.card-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-white);
    line-height: 1.2;
}

.card-accent {
    width: 60px;
    height: 5px;
    border-radius: 3px;
    margin-bottom: 14px;
}

.blue-accent {
    background: linear-gradient(90deg, #60a5fa, #3b82f6, #2563eb);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
}

.green-accent {
    background: linear-gradient(90deg, #4ade80, #22c55e, #16a34a);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.8);
}

.orange-accent {
    background: linear-gradient(90deg, #fb923c, #f97316, #ea580c);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.8);
}

.pink-accent,
.rose-accent {
    background: linear-gradient(90deg, #fb7185, #f43f5e, #e11d48);
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.75);
}

.indigo-accent {
    background: linear-gradient(90deg, #818cf8, #6366f1, #8b5cf6);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.8);
}

.card-description {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-gray);
    margin-bottom: 24px;
    line-height: 1.4;
}

/* Button Styles */
.card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 230px;
    height: 62px;
    border-radius: 999px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.button-blue {
    background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 30%, #3b82f6 70%, #2563eb 100%);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.6), 0 0 40px rgba(59, 130, 246, 0.4);
    animation: buttonPulseBlue 4s ease-in-out infinite;
}

.button-green {
    background: linear-gradient(135deg, #86efac 0%, #4ade80 30%, #22c55e 70%, #16a34a 100%);
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.6), 0 0 40px rgba(34, 197, 94, 0.4);
    animation: buttonPulseGreen 4s ease-in-out infinite;
}

.button-orange {
    background: linear-gradient(135deg, #fdba74 0%, #fb923c 30%, #f97316 70%, #ea580c 100%);
    box-shadow: 0 8px 32px rgba(249, 115, 22, 0.6), 0 0 40px rgba(249, 115, 22, 0.4);
    animation: buttonPulseOrange 4s ease-in-out infinite;
}

.button-pink {
    background: linear-gradient(135deg, #fda4af 0%, #fb7185 30%, #f43f5e 70%, #e11d48 100%);
    box-shadow: 0 8px 32px rgba(244, 63, 94, 0.55), 0 0 40px rgba(225, 29, 72, 0.35);
    animation: buttonPulsePink 4s ease-in-out infinite;
}

/* Social icons inside Social Media card */
.social-btns {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 5;
}

.social-btn {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.35rem;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
    z-index: 6;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.social-btn:hover,
.social-btn:focus-visible {
    transform: translateY(-3px) scale(1.06);
    outline: none;
}

.social-btn:active {
    transform: scale(0.96);
}

.social-wa {
    background: linear-gradient(135deg, #4ade80, #22c55e 45%, #16a34a);
    box-shadow: 0 8px 22px rgba(34, 197, 94, 0.45);
}

.social-ig {
    background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af);
    box-shadow: 0 8px 22px rgba(221, 42, 123, 0.45);
}

.social-fb {
    background: linear-gradient(135deg, #4d9fff, #1877f2 55%, #0d5bb8);
    box-shadow: 0 8px 22px rgba(24, 119, 242, 0.45);
}

.social-tt {
    background: linear-gradient(135deg, #25f4ee, #000 42%, #fe2c55);
    box-shadow: 0 8px 22px rgba(254, 44, 85, 0.4);
}

.button-indigo {
    background: linear-gradient(135deg, #a5b4fc 0%, #818cf8 25%, #6366f1 65%, #8b5cf6 100%);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.6), 0 0 40px rgba(139, 92, 246, 0.4);
    animation: buttonPulseIndigo 4s ease-in-out infinite;
}

@keyframes buttonPulseBlue {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(59, 130, 246, 0.6), 0 0 40px rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 8px 32px rgba(59, 130, 246, 0.7), 0 0 45px rgba(59, 130, 246, 0.45);
    }
}

@keyframes buttonPulseGreen {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(34, 197, 94, 0.6), 0 0 40px rgba(34, 197, 94, 0.4);
    }
    50% {
        box-shadow: 0 8px 32px rgba(34, 197, 94, 0.7), 0 0 45px rgba(34, 197, 94, 0.45);
    }
}

@keyframes buttonPulseOrange {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(249, 115, 22, 0.6), 0 0 40px rgba(249, 115, 22, 0.4);
    }
    50% {
        box-shadow: 0 8px 32px rgba(249, 115, 22, 0.7), 0 0 45px rgba(249, 115, 22, 0.45);
    }
}

@keyframes buttonPulsePink {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(244, 63, 94, 0.55), 0 0 40px rgba(225, 29, 72, 0.35);
    }
    50% {
        box-shadow: 0 8px 32px rgba(244, 63, 94, 0.7), 0 0 48px rgba(225, 29, 72, 0.45);
    }
}

@keyframes buttonPulseIndigo {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(99, 102, 241, 0.6), 0 0 40px rgba(139, 92, 246, 0.4);
    }
    50% {
        box-shadow: 0 8px 32px rgba(99, 102, 241, 0.75), 0 0 48px rgba(139, 92, 246, 0.5);
    }
}

.card-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.card-button:hover::before {
    width: 300px;
    height: 300px;
}

.card-button:hover {
    transform: translateY(-4px) scale(1.03);
}

.button-blue:hover {
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.8), 0 0 50px rgba(59, 130, 246, 0.6);
}

.button-green:hover {
    box-shadow: 0 12px 40px rgba(34, 197, 94, 0.8), 0 0 50px rgba(34, 197, 94, 0.6);
}

.button-orange:hover {
    box-shadow: 0 12px 40px rgba(249, 115, 22, 0.8), 0 0 50px rgba(249, 115, 22, 0.6);
}

.button-pink:hover {
    box-shadow: 0 12px 40px rgba(244, 63, 94, 0.8), 0 0 50px rgba(225, 29, 72, 0.55);
}

.button-indigo:hover {
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.85), 0 0 50px rgba(139, 92, 246, 0.65);
}

.arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.card-button:hover .arrow {
    transform: translateX(4px);
}

.green-icon {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 50%, #16a34a 100%);
    box-shadow: 0 12px 48px rgba(34, 197, 94, 0.7), 0 0 60px rgba(34, 197, 94, 0.5);
}

.orange-icon {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #ea580c 100%);
    box-shadow: 0 12px 48px rgba(249, 115, 22, 0.7), 0 0 60px rgba(249, 115, 22, 0.5);
}

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

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

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

/* Responsive Design */
@media (max-width: 1200px) {
    .cards-container {
        width: 100%;
        max-width: 980px;
        gap: 24px;
    }
}

@media (max-width: 900px) {
    .cards-container {
        grid-template-columns: 1fr;
        max-width: 520px;
        gap: 20px;
    }

    .card {
        min-height: auto;
        padding: 28px 22px;
        gap: 20px;
        border-radius: 24px;
    }

    .card-title {
        font-size: 28px;
    }

    .card-description {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .card-button {
        width: 100%;
        max-width: 280px;
    }

    .social-btns {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    header {
        padding: 28px 16px 20px;
    }

    .logo {
        width: 72px;
        height: 72px;
        border-radius: 18px;
    }

    .title {
        font-size: 40px;
        margin-bottom: 10px;
    }

    .subtitle {
        font-size: 15px;
        margin-bottom: 16px;
        padding: 0 8px;
    }

    main {
        padding: 0 14px 20px;
    }

    .cards-container {
        grid-template-columns: 1fr;
        gap: 16px;
        width: 100%;
        max-width: 100%;
    }

    .card {
        width: 100%;
        height: auto;
        min-height: 0;
        flex-direction: row;
        text-align: start;
        align-items: center;
        gap: 16px;
        padding: 20px 18px;
        border-radius: 22px;
    }

    .card-icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
        flex-shrink: 0;
    }

    .card-icon i {
        font-size: 1.45rem;
    }

    .card-icon-svg {
        width: 40px;
        height: 40px;
    }

    .card-content {
        align-items: flex-start;
        gap: 6px;
    }

    .card-title {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .card-accent {
        width: 40px;
        height: 3px;
        margin-bottom: 6px;
    }

    .card-description {
        font-size: 13px;
        margin-bottom: 10px;
        line-height: 1.35;
    }

    .card-button {
        width: auto;
        min-width: 140px;
        height: 44px;
        font-size: 13px;
        gap: 8px;
        padding: 0 16px;
    }

    .arrow {
        width: 16px;
        height: 16px;
    }

    .social-btns {
        gap: 10px;
    }

    .social-btn {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        font-size: 1.15rem;
    }

    footer {
        padding: 18px 16px 28px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 22px 14px 16px;
    }

    .logo {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }

    .title {
        font-size: 32px;
    }

    .subtitle {
        font-size: 13px;
    }

    .card {
        flex-direction: column;
        text-align: center;
        padding: 22px 16px;
        gap: 12px;
    }

    .card-content {
        align-items: center;
        width: 100%;
    }

    .card-icon {
        width: 60px;
        height: 60px;
    }

    .card-icon i {
        font-size: 1.35rem;
    }

    .card-title {
        font-size: 22px;
    }

    .card-description {
        font-size: 13px;
        text-align: center;
    }

    .card-button {
        width: 100%;
        max-width: 100%;
        height: 48px;
        font-size: 14px;
    }

    .social-btns {
        justify-content: center;
        width: 100%;
    }

    .social-btn {
        width: 48px;
        height: 48px;
    }
}

/* Performance Optimizations */
.card-button,
.card,
.logo {
    will-change: transform;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-container {
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-close svg {
    width: 24px;
    height: 24px;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.modal-content {
    flex: 1;
    overflow: hidden;
    padding: 0;
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        height: 90vh;
        border-radius: 16px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .modal-close {
        width: 40px;
        height: 40px;
        top: 16px;
        right: 16px;
    }
}

/* Social Links Styles */
.social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin: 36px auto 8px;
    width: 100%;
}

.social-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-gray);
}

.social-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.social-link {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-link:hover {
    transform: translateY(-4px) scale(1.08);
}

.social-link[aria-label="WhatsApp"] {
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-color: transparent;
}

.social-link[aria-label="Instagram"] {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
    border-color: transparent;
}

.social-link[aria-label="Facebook"] {
    background: linear-gradient(135deg, #1877f2, #0d5bb8);
    border-color: transparent;
}

.facebook-link {
    background: linear-gradient(135deg, #1877f2 0%, #0d5bb8 100%);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.facebook-link:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.6);
}

.tiktok-link {
    background: linear-gradient(135deg, #000000 0%, #25f4ee 50%, #fe2c55 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.tiktok-link:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.instagram-link {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 4px 12px rgba(225, 48, 108, 0.4);
}

.instagram-link:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(225, 48, 108, 0.6);
}

@media (max-width: 768px) {
    .social-links {
        gap: 12px;
    }

    .social-link {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
}

/* Footer Styles */
footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-top: 60px;
}

@media (max-width: 600px) {
    .hub-nav {
        padding: 10px 14px;
    }
    .hub-nav-title {
        font-size: 15px;
    }
    .hub-nav-logo {
        width: 28px;
        height: 28px;
    }
    .lang-picker-btn {
        padding: 6px 10px;
        font-size: 12px;
        gap: 6px;
    }
    .theme-toggle-btn {
        width: 58px;
        height: 32px;
    }
    .theme-thumb {
        width: 24px;
        height: 24px;
        top: 3px;
        left: 4px;
    }
    [data-theme="dark"] .theme-thumb {
        transform: translateX(24px);
    }
    [data-theme="light"] .theme-thumb {
        transform: translateX(0);
    }
    .lang-dropdown-panel {
        width: min(260px, calc(100vw - 28px));
    }
}
