/* ========================================
   Modern Website Template - Navy & Silver Theme
   فایل کامل و نهایی استایل‌ها
   ======================================== */

/* ===== 1. CSS Variables / Theming ===== */
:root {
    /* Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-glass-border: rgba(255, 255, 255, 0.5);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --text-inverse: #ffffff;
    
    --accent-primary: #1e40af;
    --accent-secondary: #1e3a8a;
    --accent-tertiary: #2563eb;
    --accent-gradient: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    --accent-gradient-2: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    
    --silver-primary: #94a3b8;
    --silver-light: #cbd5e1;
    --silver-lighter: #e2e8f0;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    --shadow-sm: 0 1px 2px rgba(30, 58, 138, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(30, 58, 138, 0.1), 0 2px 4px -1px rgba(30, 58, 138, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(30, 58, 138, 0.1), 0 4px 6px -2px rgba(30, 58, 138, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(30, 58, 138, 0.1), 0 10px 10px -5px rgba(30, 58, 138, 0.04);
    --shadow-glow: 0 0 40px rgba(30, 64, 175, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.5s ease;
    
    --font-family: 'Vazirmatn', sans-serif;
    --header-height: 80px;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --bg-glass: rgba(15, 23, 42, 0.85);
    --bg-glass-border: rgba(148, 163, 184, 0.15);
    
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --text-inverse: #0f172a;
    
    --accent-primary: #3b82f6;
    --accent-secondary: #60a5fa;
    --accent-tertiary: #2563eb;
    --accent-gradient: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
    --accent-gradient-2: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    
    --silver-primary: #64748b;
    --silver-light: #475569;
    --silver-lighter: #334155;
    
    --border-color: #334155;
    --border-light: #1e293b;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.2);
}

/* ===== 2. Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color var(--transition-base), color var(--transition-base);
    position: relative;
    min-height: 100vh;
}

body.menu-open {
    overflow: hidden; /* Prevent scrolling when mobile menu is open */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 3. Background Effects ===== */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(var(--border-light) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.bg-gradient-orbs {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--silver-primary);
    top: 50%;
    left: 50%;
    animation-delay: -10s;
}

[data-theme="dark"] .orb {
    opacity: 0.15;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(20px, 30px) scale(1.05); }
}

/* ========================================
   4. HEADER & NAVIGATION (GLASSMORPHISM)
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    transition: all var(--transition-base);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .site-header {
    background: rgba(15, 23, 42, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header.scrolled {
    height: 64px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .site-header.scrolled {
    background: rgba(15, 23, 42, 0.9);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-primary);
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.nav-brand:hover {
    transform: scale(1.02);
}

.brand-logo {
    height: 40px;
    width: auto;
}

/* Only one logo is visible at a time, switched by the site theme.
   .logo-light-mode shows while data-theme="light" (default);
   .logo-dark-mode shows only while data-theme="dark". */
.brand-logo.logo-dark-mode { display: none; }
.brand-logo.logo-light-mode { display: inline-block; }
[data-theme="dark"] .brand-logo.logo-dark-mode { display: inline-block; }
[data-theme="dark"] .brand-logo.logo-light-mode { display: none; }

.brand-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-icon {
    color: var(--accent-primary);
    font-size: 1.6rem;
}

/* Desktop Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    position: relative;
    padding: 8px 16px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2.5px;
    background: var(--accent-gradient);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.nav-link.active {
    color: var(--accent-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Theme Toggle (Glassy & Rounded) */
.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.theme-toggle:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: scale(1.05);
}

.theme-icon-light,
.theme-icon-dark {
    position: absolute;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .theme-icon-light {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-icon-dark {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

[data-theme="dark"] .theme-icon-light {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

[data-theme="dark"] .theme-icon-dark {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* User Menu (Glassy & Rounded) */
.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-family);
    backdrop-filter: blur(4px);
}

.user-btn:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge-notification {
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    font-weight: 700;
    position: absolute;
    top: -4px;
    left: -4px;
    border: 2px solid var(--bg-card);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}

.user-menu:hover .user-dropdown,
.user-menu.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.user-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.user-dropdown .dropdown-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: translateX(-4px);
}

.user-dropdown .dropdown-item.text-danger {
    color: #ef4444;
}

.user-dropdown .dropdown-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-sm-mobile {
    padding: 8px 14px;
    font-size: 0.85rem;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.btn-primary-gradient {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

[data-theme="dark"] .btn-primary-gradient {
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

[data-theme="dark"] .btn-primary-gradient:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* ========================================
   5. MOBILE MENU (ADVANCED & GLASSY)
   ======================================== */
.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: all var(--transition-fast);
    backdrop-filter: blur(4px);
}

.mobile-menu-toggle:hover {
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
}

.hamburger-line {
    width: 100%;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Panel (Glassy & Rounded) */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%; /* RTL: slides from right */
    width: 100%;
    max-width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-left: 1px solid var(--border-color);
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 100px 24px 40px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .mobile-nav {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    height: 100%;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s, color 0.2s;
    transition-delay: calc(0.05s * var(--i));
    opacity: 0;
    transform: translateX(30px);
}

.mobile-nav-link i {
    width: 24px;
    text-align: center;
    color: var(--accent-primary);
    font-size: 1.1rem;
}

.mobile-nav.active .mobile-nav-link {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: translateX(-5px);
}

.mobile-nav-link.mobile-auth-link.primary {
    background: var(--accent-gradient);
    color: white;
    justify-content: center;
    margin-top: 8px;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.mobile-nav-divider {
    height: 1px;
    background: var(--border-color);
    margin: 12px 0;
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.4s ease;
    transition-delay: calc(0.05s * var(--i));
}

.mobile-nav.active .mobile-nav-divider {
    opacity: 1;
    transform: scaleX(1);
}

/* ===== 6. Main Content Offset ===== */
main {
    position: relative;
    z-index: 1;
    padding-top: var(--header-height);
}

/* ===== 7. Messages / Toasts ===== */
.messages-container {
    position: fixed;
    top: calc(var(--header-height) + 16px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 500px;
    width: calc(100% - 48px);
}

.toast-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
}

.toast-success { border-right: 4px solid #10b981; }
.toast-error { border-right: 4px solid #ef4444; }
.toast-warning { border-right: 4px solid #f59e0b; }
.toast-info { border-right: 4px solid var(--accent-primary); }

.toast-message i:first-child { font-size: 1.2rem; }
.toast-success i:first-child { color: #10b981; }
.toast-error i:first-child { color: #ef4444; }
.toast-warning i:first-child { color: #f59e0b; }
.toast-info i:first-child { color: var(--accent-primary); }

.toast-close {
    margin-right: auto;
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 4px;
    transition: color var(--transition-fast);
}

.toast-close:hover { color: var(--text-primary); }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 8. Hero Section ===== */
.hero-section {
    min-height: calc(100vh - var(--header-height));
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 60px 24px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.hero-stat { text-align: center; }

.hero-stat .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat .stat-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-mockup {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.mockup-browser {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: floatMockup 6s ease-in-out infinite;
}

@keyframes floatMockup {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.browser-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.browser-dots { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.browser-url {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.browser-url i { color: #10b981; font-size: 0.75rem; }
.browser-body { padding: 24px; }

.code-lines { display: flex; flex-direction: column; gap: 12px; }

.code-line {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    animation: codeLine 2s ease-in-out infinite;
}

.code-line:nth-child(1) { animation-delay: 0s; }
.code-line:nth-child(2) { animation-delay: 0.1s; }
.code-line:nth-child(3) { animation-delay: 0.2s; }
.code-line:nth-child(4) { animation-delay: 0.3s; }
.code-line:nth-child(5) { animation-delay: 0.4s; }
.code-line:nth-child(6) { animation-delay: 0.5s; }
.code-line:nth-child(7) { animation-delay: 0.6s; }

@keyframes codeLine {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; background: var(--accent-gradient-2); }
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.85rem;
    font-weight: 600;
    animation: floatCard 4s ease-in-out infinite;
}

.floating-card i { color: var(--accent-primary); }
.card-1 { top: 10%; right: -20px; animation-delay: 0s; }
.card-2 { bottom: 30%; left: -30px; animation-delay: -1.5s; }
.card-3 { bottom: 5%; right: 10%; animation-delay: -3s; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ===== 9. Brands Section ===== */
.brands-section {
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

.brands-title {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.brands-scroll {
    overflow: hidden;
    mask-image: linear-gradient(to left, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to left, transparent, black 20%, black 80%, transparent);
}

.brands-track {
    display: flex;
    gap: 60px;
    animation: scrollBrands 30s linear infinite;
    width: max-content;
}

.brand-item {
    font-size: 2.5rem;
    color: var(--text-tertiary);
    opacity: 0.5;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.brand-item:hover {
    opacity: 1;
    color: var(--accent-primary);
}

@keyframes scrollBrands {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== 10. Section Styles ===== */
section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(30, 64, 175, 0.1);
    color: var(--accent-primary);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

[data-theme="dark"] .section-badge {
    background: rgba(59, 130, 246, 0.1);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== 11. Services Section ===== */
.services-section { background: var(--bg-secondary); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    position: relative;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.service-card:hover .service-glow { opacity: 1; }

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: white;
}

.service-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.service-description { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 20px; line-height: 1.7; }

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap var(--transition-fast);
}

.service-link:hover { gap: 12px; }

.service-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-base);
}

/* ===== 12. Features Section ===== */
.features-showcase { display: flex; flex-direction: column; gap: 80px; }

.feature-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-item.reverse { direction: ltr; }
.feature-item.reverse .feature-content { direction: rtl; }

.feature-icon-wrap {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    font-size: 1.5rem;
    color: white;
    margin-bottom: 24px;
}

.feature-content h3 { font-size: 1.75rem; font-weight: 700; margin-bottom: 16px; }
.feature-content p { color: var(--text-secondary); margin-bottom: 24px; line-height: 1.8; }

.feature-list { display: flex; flex-direction: column; gap: 12px; }
.feature-list li { display: flex; align-items: center; gap: 10px; color: var(--text-secondary); }
.feature-list li i { color: #10b981; font-size: 0.9rem; }

.feature-visual { display: flex; align-items: center; justify-content: center; }
.speed-meter { width: 200px; height: 200px; }
.meter-circle { position: relative; width: 100%; height: 100%; }
.meter-circle svg { width: 100%; height: 100%; }

.meter-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.meter-label {
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.color-palette { display: flex; gap: 12px; }

.color-swatch {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    animation: colorBounce 2s ease-in-out infinite;
}

.color-swatch:nth-child(1) { animation-delay: 0s; }
.color-swatch:nth-child(2) { animation-delay: 0.1s; }
.color-swatch:nth-child(3) { animation-delay: 0.2s; }
.color-swatch:nth-child(4) { animation-delay: 0.3s; }
.color-swatch:nth-child(5) { animation-delay: 0.4s; }

@keyframes colorBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== 13. Portfolio Section ===== */
.portfolio-section { background: var(--bg-secondary); }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.portfolio-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }

.portfolio-image { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.portfolio-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.portfolio-card:hover .portfolio-image img { transform: scale(1.05); }

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 64, 175, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

[data-theme="dark"] .portfolio-overlay { background: rgba(59, 130, 246, 0.8); }
.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.portfolio-view-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    color: var(--accent-primary);
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: transform var(--transition-fast);
}

.portfolio-view-btn:hover { transform: scale(1.05); }

.portfolio-info { padding: 24px; }
.portfolio-info h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.portfolio-info p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 16px; }
.portfolio-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
    padding: 4px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ===== 14. Process Section ===== */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    position: relative;
}

.process-step {
    position: relative;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.process-step:hover { border-color: var(--accent-primary); box-shadow: var(--shadow-glow); }

.step-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    margin-bottom: 16px;
    line-height: 1;
}

.step-content h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.step-content p { color: var(--text-secondary); font-size: 0.95rem; }

/* ===== 15. Stats Section ===== */
.stats-section {
    background: var(--accent-gradient);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    position: relative;
    z-index: 1;
}

.stat-card {
    text-align: center;
    padding: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.stat-card:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-5px); }
.stat-icon { font-size: 2rem; color: white; margin-bottom: 16px; opacity: 0.8; }
.stat-card .stat-number { display: block; font-size: 3rem; font-weight: 800; color: white; margin-bottom: 8px; }
.stat-card .stat-label { color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; }

/* ===== 16. Testimonials Section ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--accent-primary); }
.testimonial-stars { display: flex; gap: 4px; margin-bottom: 16px; color: #f59e0b; }
.testimonial-text { color: var(--text-secondary); font-size: 1rem; line-height: 1.8; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.author-info h4 { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.author-info span { font-size: 0.85rem; color: var(--text-tertiary); }

/* ===== 17. Blog Section ===== */
.blog-section { background: var(--bg-secondary); position: relative; overflow: hidden; }
.blog-carousel-wrapper { position: relative; padding: 0 0 60px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.blog-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 22px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

[data-theme="dark"] .blog-card { background: rgba(30, 41, 59, 0.6); border: 1px solid rgba(51, 65, 85, 0.5); }
.blog-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(30, 64, 175, 0.15); border-color: var(--accent-primary); }
[data-theme="dark"] .blog-card:hover { box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2); }
.blog-card:hover .blog-image img { transform: scale(1.08); }

.blog-image { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.blog-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }

.blog-category {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--accent-primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

[data-theme="dark"] .blog-category { background: rgba(30, 41, 59, 0.9); color: #60a5fa; }
.blog-category i { font-size: 0.7rem; }

.blog-content { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.blog-meta { display: flex; gap: 14px; margin-bottom: 12px; font-size: 0.78rem; color: var(--text-tertiary); }
.blog-meta span { display: inline-flex; align-items: center; gap: 5px; }
.blog-meta i { font-size: 0.72rem; color: var(--accent-primary); }

.blog-title { font-size: 1.15rem; font-weight: 700; line-height: 1.5; margin-bottom: 10px; letter-spacing: -0.01em; }
.blog-title a { color: var(--text-primary); transition: color var(--transition-fast); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card:hover .blog-title a { color: var(--accent-primary); }

.blog-excerpt { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }

.blog-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-primary); font-weight: 600; font-size: 0.88rem; transition: gap var(--transition-fast); align-self: flex-start; }
.blog-link:hover { gap: 12px; }

.blog-nav-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--accent-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.blog-carousel-wrapper:hover .blog-nav-btn { opacity: 1; visibility: visible; }
.blog-nav-btn:hover { background: var(--accent-gradient); color: white; border-color: transparent; transform: translateY(-50%) scale(1.1); }
.blog-nav-prev { right: -24px; }
.blog-nav-next { left: -24px; }

.blog-scroll-indicator { display: none; margin-top: 20px; height: 3px; background: var(--border-color); border-radius: var(--radius-full); overflow: hidden; }
.scroll-progress-bar { height: 100%; width: 0%; background: var(--accent-gradient); border-radius: var(--radius-full); transition: width 0.2s ease; }
.blog-dots { display: none; justify-content: center; gap: 8px; margin-top: 20px; }

.blog-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-color); border: none; cursor: pointer; padding: 0; transition: all var(--transition-fast); }
.blog-dot.active { width: 28px; border-radius: var(--radius-full); background: var(--accent-gradient); }
.blog-dot:hover:not(.active) { background: var(--accent-primary); transform: scale(1.2); }

/* ===== 18. Team Section ===== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: center;
    transition: all var(--transition-base);
}

.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); border-color: var(--accent-primary); }

.team-image { position: relative; padding: 32px 32px 0; }

.team-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    border: 4px solid var(--bg-card);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-base);
}

.team-card:hover .team-image img { transform: scale(1.05); }

.team-social {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: all var(--transition-base);
}

.team-card:hover .team-social { bottom: 0; opacity: 1; }

.team-social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.team-social-link:hover { background: var(--accent-primary); color: white; border-color: var(--accent-primary); }

.team-info { padding: 32px 24px 24px; }
.team-info h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.team-position { color: var(--accent-primary); font-size: 0.9rem; font-weight: 600; margin-bottom: 12px; }
.team-bio { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

/* ===== 19. FAQ Section ===== */
.faq-section { background: var(--bg-secondary); }
.faq-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover { border-color: var(--accent-primary); }
.faq-item.active { border-color: var(--accent-primary); box-shadow: var(--shadow-glow); }

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    transition: color var(--transition-fast);
}

.faq-question:hover { color: var(--accent-primary); }
.faq-toggle-icon { color: var(--accent-primary); transition: transform var(--transition-base); flex-shrink: 0; }
.faq-item.active .faq-toggle-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--transition-base); }
.faq-item.active .faq-answer { max-height: 500px; }
.faq-answer-content { padding: 0 24px 20px; color: var(--text-secondary); line-height: 1.8; }

/* ===== 20. CTA Section ===== */
.cta-section { padding: 60px 0 100px; }

.cta-card {
    position: relative;
    padding: 60px;
    background: var(--accent-gradient);
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-align: center;
}

.cta-content { position: relative; z-index: 1; }
.cta-content h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 800; color: white; margin-bottom: 16px; }
.cta-content p { color: rgba(255, 255, 255, 0.8); font-size: 1.1rem; margin-bottom: 32px; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

.cta-decoration { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; }
.cta-orb { position: absolute; width: 300px; height: 300px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; top: -100px; left: -100px; filter: blur(60px); }

/* ===== 21. Footer ===== */
.site-footer {
    position: relative;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 32px;
    z-index: 1;
}

.footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: var(--accent-gradient);
    filter: blur(1px);
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; margin-bottom: 48px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .brand-text { font-size: 1.25rem; font-weight: 700; }
.footer-logo { height: 40px; }
.footer-description { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 20px; line-height: 1.7; }

.footer-contact-info p { display: flex; align-items: center; gap: 10px; color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 8px; }
.footer-contact-info i { color: var(--accent-primary); width: 20px; }

.footer-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; color: var(--text-primary); }
.footer-links { display: flex; flex-direction: column; gap: 12px; }

.footer-links a { color: var(--text-secondary); font-size: 0.9rem; transition: all var(--transition-fast); display: inline-flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: var(--accent-primary); transform: translateX(-4px); }

.social-links { display: flex; gap: 12px; margin-bottom: 24px; }

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}

.social-link:hover { background: var(--accent-gradient); color: white; border-color: transparent; transform: translateY(-3px); }

.newsletter-form { margin-top: 16px; }

.input-group-modern {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.input-group-modern:focus-within { border-color: var(--accent-primary); box-shadow: var(--shadow-glow); }

.input-group-modern input {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.9rem;
    outline: none;
}

.input-group-modern input::placeholder { color: var(--text-tertiary); }

.btn-subscribe {
    padding: 12px 16px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.btn-subscribe:hover { opacity: 0.9; }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 32px; border-top: 1px solid var(--border-color); font-size: 0.9rem; color: var(--text-tertiary); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: var(--text-tertiary); transition: color var(--transition-fast); }
.footer-bottom-links a:hover { color: var(--accent-primary); }

/* ===== 22. Scroll to Top ===== */
.scroll-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 100;
}

.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-xl); }

/* ===== 23. Empty State ===== */
.empty-state { text-align: center; padding: 60px 24px; grid-column: 1 / -1; }
.empty-state i { font-size: 3rem; color: var(--text-tertiary); margin-bottom: 16px; }
.empty-state p { color: var(--text-secondary); font-size: 1.1rem; }

/* ===== 24. Animations ===== */
[data-animate] { opacity: 0; transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
[data-animate="fade-up"] { transform: translateY(30px); }
[data-animate="fade-down"] { transform: translateY(-30px); }
[data-animate="fade-right"] { transform: translateX(30px); }
[data-animate="fade-left"] { transform: translateX(-30px); }
[data-animate="scale-up"] { transform: scale(0.9); }
[data-animate].animated { opacity: 1; transform: translate(0) scale(1); }

/* ========================================
   25. RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding: 40px 24px;
        min-height: auto;
    }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { order: -1; }
    .hero-mockup { max-width: 400px; }
    
    .feature-item { grid-template-columns: 1fr; gap: 40px; }
    .feature-item.reverse { direction: rtl; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-nav-prev { right: -16px; }
    .blog-nav-next { left: -16px; }
}

@media (max-width: 768px) {
    :root { --header-height: 64px; }
    
    .nav-links { display: none; }

    .brand-text { font-size: 17px; }

    /* FORCE HAMBURGER TO SHOW ON MOBILE */
    .mobile-menu-toggle { display: flex !important; }
    
    .nav-actions .btn { display: none; }
    .user-btn .user-name { display: none; }
    .user-btn { padding: 10px; border-radius: 50%; width: 42px; height: 42px; justify-content: center; }
    
    section { padding: 60px 0; }
    .section-header { margin-bottom: 40px; }
    
    .services-grid, .portfolio-grid, .team-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .process-timeline { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    
    .cta-card { padding: 40px 24px; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .hero-stat-divider { width: 40px; height: 1px; }
    .floating-card { display: none; }
    
    /* Mobile Blog Carousel */
    .blog-grid {
        display: flex;
        grid-template-columns: none;
        gap: 16px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding: 4px 4px 20px;
        margin: 0 -4px;
    }
    .blog-grid::-webkit-scrollbar { display: none; }
    .blog-grid { -ms-overflow-style: none; scrollbar-width: none; }
    
    .blog-card { flex: 0 0 85%; min-width: 85%; max-width: 85%; scroll-snap-align: center; scroll-snap-stop: always; }
    
    .blog-nav-btn { opacity: 1; visibility: visible; width: 42px; height: 42px; top: 50%; }
    .blog-nav-prev { right: 8px; }
    .blog-nav-next { left: 8px; }
    
    .blog-scroll-indicator { display: block; }
    .blog-dots { display: flex; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-title { font-size: 2rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .stats-grid { grid-template-columns: 1fr; }
    .cta-actions { flex-direction: column; }
    .cta-actions .btn { width: 100%; }
    
    .blog-card { flex: 0 0 90%; min-width: 90%; max-width: 90%; }
    .blog-nav-btn { width: 38px; height: 38px; font-size: 0.9rem; }
    .blog-content { padding: 18px; }
    .blog-title { font-size: 1.05rem; }
    
    .nav-actions { gap: 8px; }
    .theme-toggle { width: 38px; height: 38px; }
    .btn-sm-mobile { padding: 8px 10px; font-size: 0.8rem; }
}

/* ===== 26. Utility Classes ===== */
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 48px; }
.text-center { text-align: center; }
.d-none { display: none !important; }

@media (min-width: 768px) {
    .d-md-inline-flex { display: inline-flex !important; }
}