/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #e02741;
    --primary-dark: #e02741;
    --secondary-color: #2f3542;
    --accent-color: #ff6b7a;
    --text-primary: #2f3542;
    --text-secondary: #747d8c;
    --background-light: #ffffff;
    --background-gray: #f8f9fa;
    --border-color: #e9ecef;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 30px rgba(255, 71, 87, 0.3);
    --border-radius: 12px;
    --border-radius-large: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    /* Responsive sizing tokens */
    --size-hero-shape: 300px;
    --size-hero-shape-inner: 260px;
    --size-service-icon: 80px;
    --spacing-section-y: 80px;
}

/* Dark theme variables */
[data-theme="dark"] {
    --text-primary: #ffffff;
    --text-secondary: #b0b8c1;
    --background-light: #1a1a1a;
    --background-gray: #2d2d2d;
    --border-color: #404040;
    --glass-bg: rgba(0, 0, 0, 0.2);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Light theme variables */
[data-theme="light"] {
    --text-primary: #e02741;
    --text-secondary: #747d8c;
    --background-light: #ffffff;
    --background-gray: #f8f9fa;
    --border-color: #e9ecef;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(0, 0, 0, 0.1);
}

/* Device-aware overrides via body classes added by scripts/responsive.js */
body.mobile {
    --size-hero-shape: 220px;
    --size-hero-shape-inner: 190px;
    --size-service-icon: 70px;
    --spacing-section-y: 64px;
}

body.desktop {
    --size-hero-shape: 320px;
    --size-hero-shape-inner: 280px;
    --size-service-icon: 90px;
    --spacing-section-y: 96px;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-light);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    animation: neonPulse 2s ease-in-out infinite;
}

.btn-secondary {
    background: #e02741;
    color: white;
    border: 1px solid #e02741;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-activate {
    background: var(--primary-color);
    color: white;
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
    position: relative;
}

.btn-activate:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-activate.loading {
    pointer-events: none;
}

.btn-activate.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.95);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
    position: relative;
}

.nav-brand h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.nav-brand:hover h2::after {
    width: 100%;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.hamburger:hover {
    background: var(--glass-bg);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

/* Navigation controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.nav-auth-btn {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.4rem 0.8rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    font-size: 0.8rem;
}

.nav-auth-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

[data-theme="light"] .nav-auth-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.nav-auth-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
    color: white;
}

.nav-auth-btn.primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    box-shadow: var(--shadow-glow);
}

/* Theme toggle button */
.theme-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(180deg);
}

.theme-toggle i {
    transition: var(--transition);
}

[data-theme="light"] .theme-toggle i {
    transform: rotate(180deg);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 20px var(--spacing-section-y);
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2d2d2d 100%);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 71, 87, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 122, 0.1) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,71,87,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.7;
}

[data-theme="light"] .hero::before {
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 71, 87, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 122, 0.05) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,71,87,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo {
    max-width: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    background: transparent;
}

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

[data-theme="light"] .hero-logo {
    background: transparent;
}

.abstract-shape::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

/* ===== PLANS SECTION ===== */
.plans {
    padding: var(--spacing-section-y) 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    position: relative;
}

[data-theme="light"] .plans {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.plans::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(255, 71, 87, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 107, 122, 0.05) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(255, 71, 87, 0.03) 50%, transparent 70%);
    animation: slide 20s linear infinite;
}

[data-theme="light"] .plans::before {
    background: 
        radial-gradient(circle at 30% 70%, rgba(255, 71, 87, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 107, 122, 0.02) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(255, 71, 87, 0.015) 50%, transparent 70%);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.plan-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: var(--border-radius-large);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
    opacity: 0;
    transform: translateY(30px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .plan-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.plan-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.plan-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.1), rgba(255, 107, 122, 0.05));
    border: 2px solid var(--primary-color);
}

[data-theme="light"] .plan-card.featured {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.05), rgba(255, 107, 122, 0.02));
}

.plan-card.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.05), rgba(255, 107, 122, 0.05));
}

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-light);
}

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

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
    text-shadow: 0 2px 4px rgba(255, 71, 87, 0.2);
}

.plan-highlight {
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    margin: 1rem auto 0;
    border-radius: 2px;
    transition: var(--transition);
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.plan-features li:hover {
    background: var(--glass-bg);
    transform: translateX(5px);
}

.plan-features i {
    color: var(--primary-color);
    font-size: 0.875rem;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: var(--spacing-section-y) 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    position: relative;
}

[data-theme="light"] .services {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

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

.service-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius-large);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    transition: var(--transition);
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

[data-theme="light"] .service-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 71, 87, 0.1), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.1), rgba(255, 107, 122, 0.05));
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

[data-theme="light"] .service-card:hover {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.05), rgba(255, 107, 122, 0.02));
}

.service-card:active {
    transform: translateY(-2px) scale(0.98);
}

.service-icon {
    width: var(--size-service-icon);
    height: var(--size-service-icon);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
    position: relative;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite;
}

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

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== PROMOTIONAL SECTION ===== */
.promotional {
    padding: var(--spacing-section-y) 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    position: relative;
    overflow: hidden;
}

.promotional::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.promotional .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.promo-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    color: white;
}

.promo-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.promo-visual {
    position: relative;
    height: 300px;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: float 4s ease-in-out infinite;
    backdrop-filter: blur(5px);
}

.floating-element:nth-child(1) {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 40px;
    height: 40px;
    top: 60%;
    right: 30%;
    animation-delay: 1s;
}

.floating-element:nth-child(3) {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 50%;
    animation-delay: 2s;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
}

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

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

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

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.25rem 0;
    border-radius: var(--border-radius);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    padding-left: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

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

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

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

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

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.3);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

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

@keyframes slide {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 71, 87, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 71, 87, 0.6);
    }
}

@keyframes neonPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 71, 87, 0.5), 0 0 10px rgba(255, 71, 87, 0.3), 0 0 15px rgba(255, 71, 87, 0.1);
    }
    50% {
        box-shadow: 0 0 10px rgba(255, 71, 87, 0.8), 0 0 20px rgba(255, 71, 87, 0.5), 0 0 30px rgba(255, 71, 87, 0.3);
    }
}

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

/* Animation classes for scroll-triggered animations */
.animate-in {
    animation: slideInUp 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

.animate-rotate-in {
    animation: rotateIn 0.8s ease-out forwards;
}

/* Stagger animations for grid items */
.plans-grid .plan-card:nth-child(1) { animation-delay: 0.1s; }
.plans-grid .plan-card:nth-child(2) { animation-delay: 0.2s; }
.plans-grid .plan-card:nth-child(3) { animation-delay: 0.3s; }

.services-grid .service-card:nth-child(1) { animation-delay: 0.1s; }
.services-grid .service-card:nth-child(2) { animation-delay: 0.2s; }
.services-grid .service-card:nth-child(3) { animation-delay: 0.3s; }
.services-grid .service-card:nth-child(4) { animation-delay: 0.4s; }
.services-grid .service-card:nth-child(5) { animation-delay: 0.5s; }

/* ===== FREELANCER SHOWCASE ===== */
.freelancers-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.freelancer-showcase-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: var(--border-radius-large);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
    opacity: 0;
    transform: translateY(30px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

[data-theme="light"] .freelancer-showcase-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.freelancer-showcase-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.freelancer-showcase-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.freelancer-showcase-header {
    margin-bottom: 1.5rem;
}

.freelancer-showcase-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-glow);
}

.freelancer-showcase-level {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.freelancer-showcase-level.senior {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.freelancer-showcase-level.mid-level {
    background: linear-gradient(135deg, #17a2b8, #20c997);
    color: white;
}

.freelancer-showcase-level.junior {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.freelancer-showcase-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.freelancer-showcase-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.freelancer-showcase-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stat-item i {
    color: var(--primary-color);
}

.freelancer-contact-btn {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
    position: relative;
}

.freelancer-contact-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Stagger animations for freelancer cards */
.freelancers-showcase .freelancer-showcase-card:nth-child(1) { animation-delay: 0.1s; }
.freelancers-showcase .freelancer-showcase-card:nth-child(2) { animation-delay: 0.2s; }
.freelancers-showcase .freelancer-showcase-card:nth-child(3) { animation-delay: 0.3s; }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 0.3rem 8px;
        position: relative;
    }
    
    .nav-auth-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
        gap: 0.1rem;
    }
    
    .nav-auth-btn i {
        font-size: 0.65rem;
    }
    
    .theme-toggle {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.25rem 5px;
    }
    
    .nav-auth-btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.65rem;
        gap: 0.08rem;
    }
    
    .nav-auth-btn i {
        font-size: 0.6rem;
    }
    
    .theme-toggle {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }
    
    .nav-brand img {
        height: 28px;
    }
}

    .hamburger {
        display: flex;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--text-primary);
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 8px;
        transition: background-color 0.3s ease;
    }

    .hamburger:hover {
        background-color: var(--glass-bg);
    }

    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background-light);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-medium);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        backdrop-filter: blur(20px);
        z-index: 1000;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu a {
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 1.1rem;
        text-align: center;
    }

    .nav-menu a:last-child {
        border-bottom: none;
    }

    .nav-auth-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-auth-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: 120px 20px 80px;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1.1rem;
        margin: 1.5rem 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero-visual {
        height: 300px;
    }

    .hero-logo {
        height: 250px;
    }

    .plans-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .plan-card.featured {
        transform: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .promotional .container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 1rem;
    }

    .footer-links {
        justify-items: center;
    }

    /* تحسين البطاقات للموبايل */
    .plan-card,
    .service-card {
        padding: 2rem 1.5rem;
        margin: 0 auto;
        max-width: 400px;
    }

    /* تحسين الأقسام للموبايل */
    .section {
        padding: 4rem 1rem;
    }

    .section-title {
        text-align: center;
        margin-bottom: 3rem;
        font-size: 2rem;
    }


@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .navbar {
        padding: 0.75rem 15px;
    }

    .hero {
        padding: 100px 15px 60px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .plan-card,
    .service-card {
        padding: 1.5rem;
        margin: 0.5rem 0;
    }

    /* تحسينات إضافية للموبايل */
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .section {
        padding: 3rem 0;
    }

    /* تحسين النماذج للموبايل */
    input, textarea, select {
        font-size: 16px; /* منع التكبير التلقائي في iOS */
        padding: 1rem;
    }

    /* تحسين الجداول للموبايل */
    table {
        font-size: 0.9rem;
    }

    /* تحسين الصور للموبايل */
    img {
        max-width: 100%;
        height: auto;
    }

    /* تحسين المسافات للموبايل */
    .hero-visual {
        height: 250px;
        margin-top: 2rem;
    }
    
    /* تحسينات إضافية للموبايل */
    
    /* تحسين القائمة الجانبية للموبايل */
    .nav-menu {
        max-height: 70vh;
        overflow-y: auto;
    }
    
    /* تحسين الأزرار للموبايل */
    .btn {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    /* تحسين النصوص للموبايل */
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    /* تحسين الكروت للموبايل */
    .service-card,
    .plan-card {
        margin-bottom: 1rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    /* تحسين النماذج للموبايل */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-control {
        border-radius: 8px;
        border: 2px solid #e9ecef;
        transition: border-color 0.3s ease;
    }
    
    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(224, 39, 65, 0.1);
    }
    
    /* تحسين التنقل للموبايل */
    .pagination {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .pagination a {
         margin: 2px;
         min-width: 40px;
         min-height: 40px;
     }

    .hero-logo {
        height: 200px;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

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

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== LOADING ANIMATIONS ===== */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.3);
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

[data-theme="light"] .loading-overlay {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-overlay p {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Loading error state */
.loading-error {
    text-align: center;
    color: white;
}

.loading-error i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.loading-error p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #ccc;
}

.loading-error .btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.loading-error .btn:hover {
    background: var(--primary-dark);
}

.loading-error-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.loading-error .btn.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.loading-error .btn.btn-secondary:hover {
    background: var(--text-primary);
}

/* ===== CUSTOM CURSOR ===== */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
    opacity: 0;
    filter: blur(0.5px);
}

.custom-cursor.visible {
    opacity: 1;
}

.custom-cursor.hover {
    transform: scale(2);
    background: var(--accent-color);
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.5);
}

/* Logo Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(220, 53, 69, 0.3));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px rgba(220, 53, 69, 0.5));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(220, 53, 69, 0.3));
    }
}
