/* ============================================================
   ROOT VARIABLES
============================================================ */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #7c3aed;
    --secondary-light: #8b5cf6;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --text-dark: #0f172a;
    --text-gray: #475569;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 30px 60px rgba(0, 0, 0, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-full: 50px;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-soft: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    /* Compatibility aliases */
    --bg-secondary: var(--bg-light);
    --card-bg: var(--bg-white);
    --text-primary: var(--text-dark);
    --text-muted: var(--text-gray);
    --radius-lg: var(--radius);
}

/* ============================================================
   ALTERNATIVE THEMES
============================================================ */
body[data-theme="cyberpunk"] {
    --primary: #22d3ee;
    --primary-dark: #06b6d4;
    --primary-light: #67e8f9;
    --secondary: #a855f7;
    --secondary-light: #c084fc;
    --bg-white: #090611;
    --bg-light: #140d20;
    --bg-dark: #05030a;
    --text-dark: #f5f3ff;
    --text-gray: #c4b5fd;
    --text-light: #8b7fb3;
    --border-color: #34224a;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.38);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.48);
    --shadow-xl: 0 30px 60px rgba(0, 0, 0, 0.58);
}

body[data-theme="space"] {
    --primary: #60a5fa;
    --primary-dark: #3b82f6;
    --primary-light: #93c5fd;
    --secondary: #8b5cf6;
    --secondary-light: #a78bfa;
    --bg-white: #070b18;
    --bg-light: #11182d;
    --bg-dark: #030611;
    --text-dark: #eef2ff;
    --text-gray: #a5b4fc;
    --text-light: #64748b;
    --border-color: #263457;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.42);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.52);
    --shadow-xl: 0 30px 60px rgba(0, 0, 0, 0.62);
}

body[data-theme="minimal"] {
    --primary: #111827;
    --primary-dark: #030712;
    --primary-light: #374151;
    --secondary: #4b5563;
    --secondary-light: #6b7280;
    --bg-white: #ffffff;
    --bg-light: #f3f4f6;
    --bg-dark: #111827;
    --text-dark: #111827;
    --text-gray: #4b5563;
    --text-light: #9ca3af;
    --border-color: #e5e7eb;
}

body[data-theme="luxury"] {
    --primary: #b8860b;
    --primary-dark: #8b6508;
    --primary-light: #d4af37;
    --secondary: #7c5c1b;
    --secondary-light: #a67c24;
    --bg-white: #fffdf7;
    --bg-light: #f7f2e7;
    --bg-dark: #1c1710;
    --text-dark: #2b2418;
    --text-gray: #665a46;
    --text-light: #9b8d73;
    --border-color: #e8dcc5;
}


/* ============================================================
   CUSTOM THEME
   User-defined theme variables are controlled by JavaScript
============================================================ */
body[data-theme="custom"] {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary: #7c3aed;
    --secondary-light: #a78bfa;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --text-dark: #0f172a;
    --text-gray: #475569;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
}

/* ============================================================
   DARK THEME
============================================================ */
body[data-theme="dark"] {
    --bg-white: #0f172a;
    --bg-light: #1e293b;
    --text-dark: #e2e8f0;
    --text-gray: #94a3b8;
    --text-light: #64748b;
    --border-color: #334155;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 30px 60px rgba(0, 0, 0, 0.6);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-light);
}

body {
    font-family: 'Poppins', 'Vazirmatn', Tahoma, sans-serif;
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 0 50px;
    line-height: 1.6;
    transition: var(--transition);
}

body[data-theme="dark"] {
    scrollbar-color: #60a5fa #0b1120;
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-left: 1px solid var(--border-color);
}
::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 20px;
    border: 2px solid var(--bg-light);
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.25);
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-light), var(--secondary-light));
    box-shadow: 0 0 14px rgba(37, 99, 235, 0.45);
}

body[data-theme="dark"]::-webkit-scrollbar-track {
    background: #0b1120;
    border-left-color: #1e293b;
}
body[data-theme="dark"]::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #60a5fa, #a78bfa);
    border-color: #0b1120;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
}
body[data-theme="dark"]::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #93c5fd, #c4b5fd);
    box-shadow: 0 0 16px rgba(96, 165, 250, 0.5);
}

/* ============================================================
   SCROLL PROGRESS
============================================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.05);
    overflow: hidden;
    pointer-events: none;
}
.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: 0 6px 6px 0;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.45), 0 0 16px rgba(124, 58, 237, 0.25);
    transition: width 0.1s linear;
}
body[data-theme="dark"] .scroll-progress { background: rgba(255, 255, 255, 0.05); }
body[data-theme="dark"] .scroll-progress-bar {
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.5), 0 0 20px rgba(167, 139, 250, 0.3);
}

/* ============================================================
   SPLASH SCREEN
============================================================ */
#splashScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a, #1e1b4b);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}
#splashScreen.fade-out { opacity: 0; pointer-events: none; }
.splash-content { text-align: center; color: white; }
.splash-logo img { width: 80px; height: auto; animation: splashPulse 1.5s ease-in-out infinite; }
@keyframes splashPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.splash-loader { width: 200px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 4px; margin: 20px auto; overflow: hidden; }
.splash-bar { width: 0%; height: 100%; background: linear-gradient(90deg, #2563eb, #7c3aed); border-radius: 4px; animation: splashLoad 1.8s ease-in-out forwards; }
@keyframes splashLoad { 0% { width: 0%; } 100% { width: 100%; } }
.splash-content p { color: rgba(255,255,255,0.6); font-size: 14px; font-weight: 300; }

/* ============================================================
   HEADER
============================================================ */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-top: 20px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 20px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}
body[data-theme="dark"] header { background: rgba(15, 23, 42, 0.9); border-color: #1e293b; }

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    -webkit-text-decoration: none;
}

.logo:hover,
.logo:focus,
.logo:visited {
    text-decoration: none;
    color: inherit;
}

.logo-img { height: 40px; width: auto; display: block; }
.logo-name {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition);
}
body[data-theme="dark"] .logo-name {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

 .header-controls { display: flex; align-items: center; gap: 12px; }

/* ============================================================
   THEME SELECTOR
============================================================ */
.theme-select {
    appearance: none;
    -webkit-appearance: none;
    min-width: 145px;
    height: 42px;
    padding: 0 40px 0 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background:
        linear-gradient(45deg, transparent 50%, var(--primary) 50%) right 15px center / 6px 6px no-repeat,
        linear-gradient(135deg, var(--primary) 50%, transparent 50%) right 11px center / 6px 6px no-repeat,
        var(--bg-light);
    color: var(--text-dark);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.theme-select:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.theme-select:focus-visible {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent);
}

.theme-select option {
    background: var(--bg-white);
    color: var(--text-dark);
    font-weight: 600;
}

body[data-theme="dark"] .theme-select,
body[data-theme="space"] .theme-select,
body[data-theme="cyberpunk"] .theme-select {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

body[data-theme="luxury"] .theme-select {
    border-color: #d4af37;
}

body[data-theme="cyberpunk"] .theme-select {
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.12);
}

body[data-theme="space"] .theme-select {
    box-shadow: 0 0 18px rgba(96, 165, 250, 0.12);
}

body[data-theme="custom"] .theme-select {
    border-color: var(--primary);
    box-shadow: 0 0 18px color-mix(in srgb, var(--primary) 12%, transparent);
}


/* ============================================================
   THEME TOGGLE
============================================================ */
.theme-toggle {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
body[data-theme="dark"] .theme-toggle { background: #1e293b; border-color: #334155; color: #e2e8f0; }
.theme-toggle:hover { transform: rotate(30deg); border-color: var(--primary); }
body[data-theme="dark"] .theme-toggle:hover { border-color: #60a5fa; }

/* ============================================================
   LANGUAGE TOGGLE
============================================================ */
.lang-toggle {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--text-dark);
    font-weight: 600;
}
body[data-theme="dark"] .lang-toggle { background: #1e293b; border-color: #334155; color: #e2e8f0; }
.lang-toggle:hover { transform: scale(1.05); border-color: var(--primary); }
body[data-theme="dark"] .lang-toggle:hover { border-color: #60a5fa; }
.lang-toggle i { font-size: 16px; color: var(--primary); }
body[data-theme="dark"] .lang-toggle i { color: #60a5fa; }
.lang-toggle #langLabel { font-size: 11px; font-weight: 700; }

/* ============================================================
   NAVIGATION
============================================================ */
nav { display: flex; gap: 30px; }
nav a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}
nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}
body[data-theme="dark"] nav a::after { background: linear-gradient(135deg, #60a5fa, #a78bfa); }
nav a:hover { color: var(--primary); }
body[data-theme="dark"] nav a:hover { color: #60a5fa; }
nav a:hover::after { width: 100%; }

.hamburger {
    display: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}
body[data-theme="dark"] .hamburger { color: #e2e8f0; }
.hamburger:hover { color: var(--primary); }
body[data-theme="dark"] .hamburger:hover { color: #60a5fa; }

/* ============================================================
   HERO
============================================================ */
.hero { padding: 60px 0 40px; }
.hero-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}
.hero-content { flex: 1; }
.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 16px;
    transition: var(--transition);
}
body[data-theme="dark"] .hero-content h1 { color: #e2e8f0; }
.hero-content h1 .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
body[data-theme="dark"] .hero-content h1 .highlight {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 32px;
    max-width: 480px;
    transition: var(--transition);
}
body[data-theme="dark"] .hero-description { color: #94a3b8; }

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}
body[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4); }

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    transition: var(--transition);
}
body[data-theme="dark"] .btn-secondary { background: #1e293b; color: #e2e8f0; border-color: #334155; }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); }
body[data-theme="dark"] .btn-secondary:hover { border-color: #60a5fa; color: #60a5fa; }

.hero-image { flex: 1; display: flex; justify-content: center; position: relative; }
.image-frame {
    width: 340px;
    height: 340px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary);
    box-shadow: 0 0 0 12px rgba(37, 99, 235, 0.08), 0 20px 50px rgba(37, 99, 235, 0.15);
    position: relative;
    transition: var(--transition);
}
body[data-theme="dark"] .image-frame {
    border-color: #60a5fa;
    box-shadow: 0 0 0 12px rgba(96, 165, 250, 0.1), 0 20px 50px rgba(96, 165, 250, 0.15);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; }

.floating-badge {
    position: absolute;
    bottom: 20px;
    right: 10px;
    background: var(--bg-white);
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    animation: float 3s ease-in-out infinite;
    transition: var(--transition);
}
body[data-theme="dark"] .floating-badge { background: #1e293b; color: #e2e8f0; border: 1px solid #334155; }
.floating-badge i { color: var(--primary); font-size: 18px; }
body[data-theme="dark"] .floating-badge i { color: #60a5fa; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ============================================================
   SECTIONS COMMON
============================================================ */
section {
    padding: 60px 0 40px;
    border-top: 1px solid var(--border-color);
    transition: var(--transition);
}
.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    transition: var(--transition);
}
body[data-theme="dark"] .section-title { color: #e2e8f0; }
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 12px auto 0;
    border-radius: 4px;
    transition: var(--transition);
}
body[data-theme="dark"] .section-title::after { background: linear-gradient(135deg, #60a5fa, #a78bfa); }
.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 40px;
    transition: var(--transition);
}
body[data-theme="dark"] .section-subtitle { color: #94a3b8; }

/* ============================================================
   STATS
============================================================ */
.stats-section { padding: 60px 0 40px; border-top: 1px solid var(--border-color); }
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}
.stat-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
}
body[data-theme="dark"] .stat-card { background: #1e293b; border-color: #334155; }
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--primary); }
body[data-theme="dark"] .stat-card:hover { border-color: #60a5fa; }
.stat-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 10px;
    transition: var(--transition);
}
body[data-theme="dark"] .stat-icon { color: #60a5fa; }
.stat-card .stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition);
}
body[data-theme="dark"] .stat-card .stat-number {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-card .stat-label {
    font-size: 14px;
    color: var(--text-gray);
    margin-top: 4px;
    transition: var(--transition);
}
body[data-theme="dark"] .stat-card .stat-label { color: #94a3b8; }

/* ============================================================
   ABOUT
============================================================ */
.about { padding: 60px 0 40px; border-top: 1px solid var(--border-color); }
.about-container {
    display: flex;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}
.about-text { flex: 2; }
.about-text p {
    font-size: 17px;
    color: var(--text-gray);
    margin-bottom: 16px;
    line-height: 1.8;
    transition: var(--transition);
}
body[data-theme="dark"] .about-text p { color: #94a3b8; }
.about-text strong { color: var(--primary); transition: var(--transition); }
body[data-theme="dark"] .about-text strong { color: #60a5fa; }

.about-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: var(--bg-light);
    padding: 36px 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
body[data-theme="dark"] .about-stats { background: #1e293b; border-color: #334155; }
.stat-item { text-align: center; }
.stat-item .stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition);
}
body[data-theme="dark"] .stat-item .stat-number {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-item .stat-label {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
    transition: var(--transition);
}
body[data-theme="dark"] .stat-item .stat-label { color: #94a3b8; }

/* ============================================================
   SERVICES
============================================================ */
.services { padding: 60px 0 40px; border-top: 1px solid var(--border-color); }
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}
.service-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
body[data-theme="dark"] .service-card { background: #1e293b; border-color: #334155; }
.service-card:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: var(--shadow-md); }
body[data-theme="dark"] .service-card:hover { border-color: #60a5fa; }
.service-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 16px;
    transition: var(--transition);
}
body[data-theme="dark"] .service-icon { color: #60a5fa; }
.service-card:hover .service-icon { transform: scale(1.1) rotate(-5deg); }
.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    transition: var(--transition);
}
body[data-theme="dark"] .service-card h3 { color: #e2e8f0; }
.service-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    transition: var(--transition);
}
body[data-theme="dark"] .service-card p { color: #94a3b8; }
.service-tag {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 14px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
}
body[data-theme="dark"] .service-tag { background: linear-gradient(135deg, #2563eb, #7c3aed); }

/* ============================================================
   SKILLS
============================================================ */
.skills { padding: 60px 0 40px; border-top: 1px solid var(--border-color); }
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}
.skill-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px 20px 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
body[data-theme="dark"] .skill-card { background: #1e293b; border-color: #334155; }
.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius);
    opacity: 0;
    transition: var(--transition);
}
.skill-card:hover::before { opacity: 1; }
#skill-html::before { background: linear-gradient(135deg, #e44d26, #f16529); }
#skill-css::before { background: linear-gradient(135deg, #264de4, #2965f1); }
#skill-js::before { background: linear-gradient(135deg, #f7df1e, #f0db4f); }
#skill-python::before { background: linear-gradient(135deg, #3776ab, #4b8bbe); }
#skill-ai::before { background: linear-gradient(135deg, #6c3cb4, #8b5cf6); }
#skill-git::before { background: linear-gradient(135deg, #f05033, #e94e31); }

.skill-card .skill-icon,
.skill-card .skill-name,
.skill-card .skill-desc,
.skill-card .progress-bar { position: relative; z-index: 1; }

.skill-icon { font-size: 40px; margin-bottom: 10px; transition: var(--transition); }
#skill-html .skill-icon { color: #e44d26; }
#skill-css .skill-icon { color: #264de4; }
#skill-js .skill-icon { color: #f7df1e; }
#skill-python .skill-icon { color: #3776ab; }
#skill-ai .skill-icon { color: #6c3cb4; }
#skill-git .skill-icon { color: #f05033; }
.skill-card:hover .skill-icon { color: white !important; transform: scale(1.15); }

.skill-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    transition: var(--transition);
}
body[data-theme="dark"] .skill-name { color: #e2e8f0; }
.skill-desc {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 14px;
    transition: var(--transition);
}
body[data-theme="dark"] .skill-desc { color: #94a3b8; }
.skill-card:hover .skill-name,
.skill-card:hover .skill-desc { color: white !important; }

.progress-bar {
    background: var(--bg-light);
    border-radius: 20px;
    height: 24px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}
body[data-theme="dark"] .progress-bar { background: #0f172a; }
.progress-fill {
    height: 100%;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
}
#skill-html .progress-fill { background: linear-gradient(90deg, #e44d26, #f16529); }
#skill-css .progress-fill { background: linear-gradient(90deg, #264de4, #2965f1); }
#skill-js .progress-fill { background: linear-gradient(90deg, #f7df1e, #f0db4f); }
#skill-python .progress-fill { background: linear-gradient(90deg, #3776ab, #4b8bbe); }
#skill-ai .progress-fill { background: linear-gradient(90deg, #6c3cb4, #8b5cf6); }
#skill-git .progress-fill { background: linear-gradient(90deg, #f05033, #e94e31); }

.progress-text { font-size: 11px; font-weight: 700; color: white; text-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.skill-card:hover .progress-bar { background: rgba(255,255,255,0.25); }
.skill-card:hover .progress-fill { background: rgba(255,255,255,0.9) !important; }
.skill-card:hover .progress-text { color: var(--text-dark); text-shadow: none; }
.skill-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }

/* ============================================================
   ACHIEVEMENTS
============================================================ */
.achievements { padding: 60px 0 40px; border-top: 1px solid var(--border-color); }
.achievements-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}
.achievement-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    transition: var(--transition);
}
body[data-theme="dark"] .achievement-card { background: #1e293b; border-color: #334155; }
.achievement-card:hover { transform: translateY(-8px) scale(1.02); border-color: var(--primary); box-shadow: var(--shadow-md); }
body[data-theme="dark"] .achievement-card:hover { border-color: #60a5fa; }
.achievement-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 12px;
    transition: var(--transition);
}
body[data-theme="dark"] .achievement-icon { color: #60a5fa; }
.achievement-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    transition: var(--transition);
}
body[data-theme="dark"] .achievement-card h3 { color: #e2e8f0; }
.achievement-card p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 10px;
    transition: var(--transition);
}
body[data-theme="dark"] .achievement-card p { color: #94a3b8; }
.achievement-date {
    display: inline-block;
    padding: 4px 14px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}
body[data-theme="dark"] .achievement-date { background: #0f172a; color: #60a5fa; }

/* =========================================================
   PROJECTS
   ========================================================= */

.projects {
    position: relative;
    background: var(--bg-secondary);
    overflow: hidden;
}

/* subtle background glow */
.projects::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    top: 5%;
    left: -180px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.projects::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    bottom: 5%;
    right: -160px;
    background: rgba(124, 58, 237, 0.07);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.projects-container {
    position: relative;
    z-index: 1;

    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* =========================================================
   PROJECT CARD
   ========================================================= */

.project-card {
    position: relative;
    overflow: hidden;

    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, rgba(15, 23, 42, 0.08));
    border-radius: var(--radius-lg, 20px);

    box-shadow: var(--shadow-sm, 0 8px 25px rgba(15, 23, 42, 0.06));

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.06),
            transparent 45%,
            rgba(124, 58, 237, 0.04)
        );

    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-8px);

    border-color: rgba(37, 99, 235, 0.25);

    box-shadow:
        0 20px 45px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(37, 99, 235, 0.04);
}

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

/* =========================================================
   PROJECT IMAGE
   ========================================================= */

.project-image {
    position: relative;

    width: 100%;
    height: 220px;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            #f8fafc,
            #eef2f7
        );

    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.project-image::before {
    content: "";

    position: absolute;
    width: 170px;
    height: 170px;

    background: rgba(37, 99, 235, 0.08);

    border-radius: 50%;
    filter: blur(45px);

    pointer-events: none;
}

.project-image img {
    position: relative;
    z-index: 1;

    width: 100%;
    height: 100%;

    object-fit: contain;

    padding: 32px;

    transition:
        transform 0.5s ease,
        filter 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.06);
    filter: brightness(1.03);
}

/* =========================================================
   PROJECT OVERLAY
   ========================================================= */

.project-overlay {
    position: absolute;
    z-index: 2;

    left: 16px;
    bottom: 16px;

    display: inline-flex;
    align-items: center;

    padding: 7px 12px;

    border-radius: 9px;

    background: rgba(15, 23, 42, 0.82);
    color: #ffffff;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, 0.12);

    font-size: 11px;
    font-weight: 600;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);

    transition: 0.3s ease;
}

.project-card:hover .project-overlay {
    transform: translateY(-3px);
}

/* =========================================================
   PROJECT INFO
   ========================================================= */

.project-info {
    position: relative;
    z-index: 2;

    padding: 24px;
}

.project-info h3 {
    margin: 0 0 9px;

    color: var(--text-primary, #0f172a);

    font-size: 19px;
    line-height: 1.4;
    font-weight: 700;
}

.project-info p {
    min-height: 55px;
    margin: 0;

    color: var(--text-muted, #64748b);

    font-size: 13px;
    line-height: 1.7;
}

/* =========================================================
   PROJECT TAGS
   ========================================================= */

.project-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 7px;

    margin: 17px 0;
}

.tag {
    display: inline-flex;
    align-items: center;

    padding: 5px 9px;

    border-radius: 7px;

    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.10);

    color: var(--primary, #2563eb);

    font-size: 10px;
    font-weight: 700;

    transition: 0.25s ease;
}

.tag:hover {
    background: rgba(37, 99, 235, 0.14);
    border-color: rgba(37, 99, 235, 0.20);

    transform: translateY(-2px);
}

/* =========================================================
   PROJECT RATING
   ========================================================= */

.project-rating {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 18px;
}

.stars {
    display: inline-flex;
    align-items: center;

    gap: 2px;

    color: #f59e0b;

    font-size: 12px;
}

.rating-text {
    color: var(--text-muted, #64748b);

    font-size: 12px;
    font-weight: 600;
}

/* =========================================================
   PROJECT BUTTON
   ========================================================= */

.project-btn {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: var(--primary, #2563eb);

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;

    transition:
        gap 0.3s ease,
        color 0.3s ease;
}

.project-btn i {
    font-size: 11px;

    transition: transform 0.3s ease;
}

.project-btn:hover {
    gap: 13px;

    color: #1d4ed8;
}

.project-btn:hover i {
    transform: translateX(2px);
}

/* =========================================================
   DARK MODE
   ========================================================= */

[data-theme="dark"] .project-card,
.dark .project-card {
    background: #111827;

    border-color: rgba(255, 255, 255, 0.08);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .project-card:hover,
.dark .project-card:hover {
    border-color: rgba(59, 130, 246, 0.35);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(37, 99, 235, 0.08);
}

[data-theme="dark"] .project-image,
.dark .project-image {
    background:
        linear-gradient(
            145deg,
            #111827,
            #1e293b
        );

    border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .project-info h3,
.dark .project-info h3 {
    color: #f8fafc;
}

[data-theme="dark"] .project-info p,
.dark .project-info p {
    color: #94a3b8;
}

[data-theme="dark"] .rating-text,
.dark .rating-text {
    color: #94a3b8;
}

[data-theme="dark"] .tag,
.dark .tag {
    background: rgba(59, 130, 246, 0.10);
    border-color: rgba(59, 130, 246, 0.14);
}

/* =========================================================
   CYBERPUNK / SPACE COMPATIBILITY
   ========================================================= */

[data-theme="cyberpunk"] .project-card {
    border-color: rgba(168, 85, 247, 0.18);
}

[data-theme="cyberpunk"] .project-card:hover {
    border-color: rgba(168, 85, 247, 0.5);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(168, 85, 247, 0.12);
}

[data-theme="space"] .project-card {
    border-color: rgba(59, 130, 246, 0.18);
}

[data-theme="space"] .project-card:hover {
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35),
        0 0 35px rgba(59, 130, 246, 0.12);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {
    .projects-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .projects-container {
        width: min(100% - 28px, 500px);

        grid-template-columns: 1fr;

        gap: 18px;
    }

    .project-image {
        height: 210px;
    }

    .project-info {
        padding: 21px;
    }

    .project-info p {
        min-height: auto;
    }
}

@media (max-width: 420px) {
    .project-image {
        height: 190px;
    }

    .project-image img {
        padding: 25px;
    }

    .project-info h3 {
        font-size: 17px;
    }

    .project-info p {
        font-size: 12px;
    }
}

/* ============================================================
   IN-PROGRESS
============================================================ */
.inprogress { padding: 60px 0 40px; border-top: 1px solid var(--border-color); }
.inprogress-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}
.inprogress-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}
body[data-theme="dark"] .inprogress-card { background: #1e293b; border-color: #334155; }
.inprogress-card:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: var(--shadow-md); }
body[data-theme="dark"] .inprogress-card:hover { border-color: #60a5fa; }

.inprogress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.inprogress-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    transition: var(--transition);
}
body[data-theme="dark"] .inprogress-header h3 { color: #e2e8f0; }
.inprogress-status {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    background: var(--bg-light);
    padding: 4px 12px;
    border-radius: 20px;
    transition: var(--transition);
}
body[data-theme="dark"] .inprogress-status { color: #60a5fa; background: #0f172a; }

.inprogress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    transition: var(--transition);
}
body[data-theme="dark"] .inprogress-bar { background: #0f172a; }
.inprogress-fill {
    height: 100%;
    border-radius: 10px;
    background: var(--gradient-primary);
    transition: width 1.5s ease;
}
body[data-theme="dark"] .inprogress-fill { background: linear-gradient(135deg, #2563eb, #7c3aed); }

.inprogress-card p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 12px;
    transition: var(--transition);
}
body[data-theme="dark"] .inprogress-card p { color: #94a3b8; }
.inprogress-tech { display: flex; flex-wrap: wrap; gap: 6px; }
.inprogress-tech span {
    padding: 2px 12px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 11px;
    color: var(--text-gray);
    transition: var(--transition);
}
body[data-theme="dark"] .inprogress-tech span { background: #0f172a; border-color: #334155; color: #94a3b8; }

/* ============================================================
   TIMELINE — هماهنگ با بقیه بخش‌ها
============================================================ */
.timeline { padding: 60px 0 40px; border-top: 1px solid var(--border-color); }
.timeline-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.timeline-item {
    flex: 1;
    min-width: 200px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}
body[data-theme="dark"] .timeline-item { background: #1e293b; border-color: #334155; }
.timeline-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--primary); }
body[data-theme="dark"] .timeline-item:hover { border-color: #60a5fa; }

.timeline-year {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    transition: var(--transition);
}
body[data-theme="dark"] .timeline-year {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.timeline-content h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 4px;
    transition: var(--transition);
}
body[data-theme="dark"] .timeline-content h3 { color: #e2e8f0; }
.timeline-content p {
    font-size: 14px;
    color: var(--text-gray);
    transition: var(--transition);
}
body[data-theme="dark"] .timeline-content p { color: #94a3b8; }

/* ============================================================
   CONTACT — هماهنگ با بقیه بخش‌ها
============================================================ */
.contact { padding: 60px 0 40px; border-top: 1px solid var(--border-color); }
.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
body[data-theme="dark"] .contact-container { background: #1e293b; border-color: #334155; }

.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 16px;
    color: var(--text-gray);
    transition: var(--transition);
}
body[data-theme="dark"] .contact-item { color: #94a3b8; }
.contact-item i {
    font-size: 20px;
    color: var(--primary);
    width: 28px;
    transition: var(--transition);
}
body[data-theme="dark"] .contact-item i { color: #60a5fa; }

.social-links { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-white);
    border-radius: 50%;
    color: var(--text-gray);
    font-size: 20px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}
body[data-theme="dark"] .social-links a { background: #0f172a; border-color: #334155; color: #94a3b8; }
.social-links a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}
body[data-theme="dark"] .social-links a:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
}

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input,
.contact-form textarea {
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-white);
    color: var(--text-dark);
}
body[data-theme="dark"] .contact-form input,
body[data-theme="dark"] .contact-form textarea { background: #0f172a; border-color: #334155; color: #e2e8f0; }
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}
body[data-theme="dark"] .contact-form input:focus,
body[data-theme="dark"] .contact-form textarea:focus { border-color: #60a5fa; }
.contact-form textarea { resize: vertical; }
.contact-form button {
    padding: 14px 32px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
body[data-theme="dark"] .contact-form button { background: linear-gradient(135deg, #2563eb, #7c3aed); }
.contact-form button:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(37, 99, 235, 0.35); }

/* ============================================================
   PROJECT REQUEST — هماهنگ با بقیه بخش‌ها
============================================================ */
.project-request { padding: 60px 0 40px; border-top: 1px solid var(--border-color); }
.request-container { max-width: 700px; margin: 0 auto; }
.request-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
body[data-theme="dark"] .request-form { background: #1e293b; border-color: #334155; }
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}
.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}
body[data-theme="dark"] .form-group label { color: #e2e8f0; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: var(--transition);
}
body[data-theme="dark"] .form-group input,
body[data-theme="dark"] .form-group select,
body[data-theme="dark"] .form-group textarea { background: #0f172a; border-color: #334155; color: #e2e8f0; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.request-form .btn { width: 100%; justify-content: center; }

/* ============================================================
   COMMENTS
============================================================ */
.comments-section { padding: 60px 0 40px; border-top: 1px solid var(--border-color); }
.comments-container { max-width: 800px; margin: 0 auto; }
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
body[data-theme="dark"] .comment-form { background: #1e293b; border-color: #334155; }
.comment-form input,
.comment-form textarea {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-white);
    color: var(--text-dark);
}
body[data-theme="dark"] .comment-form input,
body[data-theme="dark"] .comment-form textarea { background: #0f172a; border-color: #334155; color: #e2e8f0; }
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}
body[data-theme="dark"] .comment-form input:focus,
body[data-theme="dark"] .comment-form textarea:focus { border-color: #60a5fa; }

.comment-form button {
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
body[data-theme="dark"] .comment-form button { background: linear-gradient(135deg, #2563eb, #7c3aed); }
.comment-form button:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(37, 99, 235, 0.35); }

.comments-list { display: flex; flex-direction: column; gap: 16px; }
.comment-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    transition: var(--transition);
}
body[data-theme="dark"] .comment-item { background: #1e293b; border-color: #334155; }
.comment-item:hover { border-color: var(--primary); }
body[data-theme="dark"] .comment-item:hover { border-color: #60a5fa; }
.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.comment-author {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 16px;
    transition: var(--transition);
}
body[data-theme="dark"] .comment-author { color: #e2e8f0; }
.comment-time {
    font-size: 12px;
    color: var(--text-light);
    transition: var(--transition);
}
body[data-theme="dark"] .comment-time { color: #64748b; }
.comment-text {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.6;
    transition: var(--transition);
}
body[data-theme="dark"] .comment-text { color: #94a3b8; }
.comment-actions { margin-top: 10px; display: flex; gap: 12px; }
.comment-actions button {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
}
body[data-theme="dark"] .comment-actions button { color: #64748b; }
.comment-actions button:hover { color: var(--primary); }
body[data-theme="dark"] .comment-actions button:hover { color: #60a5fa; }
.comment-empty {
    text-align: center;
    color: var(--text-light);
    padding: 40px 20px;
    font-size: 16px;
    transition: var(--transition);
}
body[data-theme="dark"] .comment-empty { color: #64748b; }

/* ============================================================
   FOOTER — هماهنگ با بقیه بخش‌ها
============================================================ */
footer {
    margin-top: 40px;
    padding: 40px 0 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-white);
    transition: var(--transition);
}
body[data-theme="dark"] footer { background: #0f172a; border-color: #1e293b; }

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 3fr 2fr;
    gap: 40px;
    align-items: start;
}
.footer-brand { text-align: left; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.footer-logo-img { height: 36px; width: auto; display: block; }
.footer-logo-name {
    font-size: 22px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition);
}
body[data-theme="dark"] .footer-logo-name {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.footer-tagline {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0;
    transition: var(--transition);
}
body[data-theme="dark"] .footer-tagline { color: #94a3b8; }

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.footer-links-column h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    transition: var(--transition);
}
body[data-theme="dark"] .footer-links-column h4 { color: #e2e8f0; }
.footer-links-column a {
    display: block;
    font-size: 13px;
    color: var(--text-gray);
    text-decoration: none;
    padding: 4px 0;
    transition: var(--transition);
}
body[data-theme="dark"] .footer-links-column a { color: #94a3b8; }
.footer-links-column a:hover { color: var(--primary); transform: translateX(4px); }
body[data-theme="dark"] .footer-links-column a:hover { color: #60a5fa; }

.footer-version { text-align: right; }
.version-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}
.version-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 16px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
}
body[data-theme="dark"] .version-badge { background: linear-gradient(135deg, #2563eb, #7c3aed); }
.version-badge i { font-size: 14px; }

.version-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #22c55e;
    padding: 4px 12px;
    background: #dcfce7;
    border-radius: 20px;
}
body[data-theme="dark"] .version-status { color: #34d399; background: #1a3a2e; }

.version-details {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.version-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-gray);
    transition: var(--transition);
}
body[data-theme="dark"] .version-date { color: #94a3b8; }
.version-date i { color: var(--primary); }
body[data-theme="dark"] .version-date i { color: #60a5fa; }

.version-commit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-gray);
    transition: var(--transition);
}
body[data-theme="dark"] .version-commit { color: #94a3b8; }
.version-commit i { color: var(--primary); }
body[data-theme="dark"] .version-commit i { color: #60a5fa; }

.version-tech {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
.version-tech span {
    padding: 2px 12px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-gray);
    transition: var(--transition);
}
body[data-theme="dark"] .version-tech span { background: #1e293b; border-color: #334155; color: #94a3b8; }
.version-tech span:hover { border-color: var(--primary); color: var(--primary); }
body[data-theme="dark"] .version-tech span:hover { border-color: #60a5fa; color: #60a5fa; }

.footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 10px;
    transition: var(--transition);
}
body[data-theme="dark"] .footer-bottom { border-color: #1e293b; }

.footer-copyright {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 8px;
    transition: var(--transition);
}
body[data-theme="dark"] .footer-copyright { color: #94a3b8; }

.footer-marquee { overflow: hidden; white-space: nowrap; }
.footer-marquee p {
    display: inline-block;
    font-size: 13px;
    color: var(--text-light);
    animation: marquee 20s linear infinite;
    transition: var(--transition);
}
body[data-theme="dark"] .footer-marquee p { color: #64748b; }
@keyframes marquee { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* ============================================================
   WHATSAPP FLOAT
============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    text-decoration: none;
}
body[data-theme="dark"] .whatsapp-float { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.3); }
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
    color: white;
}
.whatsapp-float::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    animation: whatsappPulse 2s ease-in-out infinite;
    z-index: -1;
}
@keyframes whatsappPulse { 0%, 100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.3); opacity: 0; } }

/* ============================================================
   BACK TO TOP
============================================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    transition: var(--transition);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
}
body[data-theme="dark"] .back-to-top {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 4px 30px rgba(37, 99, 235, 0.3);
}
.back-to-top:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 8px 30px rgba(37, 99, 235, 0.6); }
.back-to-top.show { display: flex; }

/* ============================================================
   INTERACTIVE SPACE
============================================================ */
.interactive-space {
    padding: 60px 0 40px;
    border-top: 1px solid var(--border-color);
    transition: var(--transition);
    background: var(--bg-white);
}
body[data-theme="dark"] .interactive-space { background: #0a0a1a; }

.space-container {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--border-color);
    position: relative;
    background: #050510;
    height: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    cursor: grab;
}
.space-container:active { cursor: grabbing; }
#spaceCanvas { width: 100%; height: 100%; display: block; }

.space-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 10px 18px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.space-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: 0.3s;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.space-btn:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255,255,255,0.4); transform: scale(1.05); }
.space-btn.active { background: rgba(137, 180, 250, 0.3); border-color: var(--primary); color: var(--primary); }
.space-info {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    padding: 0 10px;
    border-left: 1px solid rgba(255,255,255,0.1);
    padding-left: 14px;
    font-weight: 600;
}
.space-info span { color: white; font-size: 14px; }

.planet-tooltip {
    position: absolute;
    pointer-events: none;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 12px 18px;
    opacity: 0;
    transition: 0.3s;
    transform: translateY(10px);
    max-width: 200px;
    z-index: 10;
}
.planet-tooltip.show { opacity: 1; transform: translateY(0); }
.planet-tooltip-name { font-size: 14px; font-weight: 700; color: white; }
.planet-tooltip-desc { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 2px; }
.planet-tooltip-detail { font-size: 10px; color: rgba(255,255,255,0.5); margin-top: 4px; font-weight: 400; }


/* =========================================================
   CUSTOM THEME — PROJECTS
========================================================= */

body[data-theme="custom"] .projects {
    background: var(--bg-secondary);
}

body[data-theme="custom"] .project-card {
    background: var(--card-bg);
    border-color: color-mix(in srgb, var(--primary) 18%, var(--border-color));
    box-shadow: var(--shadow-md);
}

body[data-theme="custom"] .project-card:hover {
    border-color: color-mix(in srgb, var(--primary) 45%, var(--border-color));
    box-shadow: var(--shadow-lg), 0 0 30px color-mix(in srgb, var(--primary) 10%, transparent);
}

body[data-theme="custom"] .project-info h3 {
    color: var(--text-primary);
}

body[data-theme="custom"] .project-info p,
body[data-theme="custom"] .rating-text {
    color: var(--text-muted);
}

body[data-theme="custom"] .tag {
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    border-color: color-mix(in srgb, var(--primary) 18%, transparent);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1200px) { body { padding: 0 40px; } }

@media (max-width: 992px) {
    body { padding: 0 30px; }
    .hero-container { flex-direction: column; text-align: center; }
    .hero-content h1 { font-size: 38px; }
    .hero-description { margin: 0 auto 32px; }
    .hero-buttons { justify-content: center; }
    .image-frame { width: 280px; height: 280px; }
    .about-container { flex-direction: column; text-align: center; }
    .about-stats { flex-direction: row; justify-content: center; flex-wrap: wrap; }
    .contact-container { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-brand { text-align: center; }
    .footer-logo { justify-content: center; }
    .footer-version { text-align: center; }
    .version-info { justify-content: center; }
    .version-details { justify-content: center; }
    .version-tech { justify-content: center; }
    .footer-bottom { grid-column: 1 / -1; }
    .timeline-container { flex-direction: column; }
}

@media (max-width: 768px) {
    .theme-select { min-width: 120px; height: 40px; padding-left: 10px; padding-right: 34px; font-size: 13px; }
    body { padding: 0 16px; }
    header { padding: 12px 20px; flex-wrap: wrap; gap: 12px; }
    .hamburger { display: block; }
    nav {
        display: none;
        flex-direction: column;
        gap: 16px;
        padding: 20px;
        background: var(--bg-white);
        border-radius: var(--radius-sm);
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        position: absolute;
        top: 80px;
        left: 16px;
        right: 16px;
        z-index: 999;
        width: auto;
    }
    body[data-theme="dark"] nav { background: #1e293b; border-color: #334155; }
    nav.active { display: flex; }
    nav a { font-size: 16px; }
    .header-controls .theme-toggle { order: -1; }
    .hero-content h1 { font-size: 30px; }
    .image-frame { width: 220px; height: 220px; }
    .floating-badge { display: none; }
    .skills-container { grid-template-columns: repeat(2, 1fr); }
    .projects-container { grid-template-columns: 1fr; }
    .services-container { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .service-card { padding: 20px 16px; }
    .service-icon { font-size: 36px; }
    .stats-container { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stat-card { padding: 20px 16px; }
    .stat-card .stat-number { font-size: 28px; }
    .achievements-container { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .achievement-card { padding: 20px 16px; }
    .inprogress-container { grid-template-columns: 1fr; }
    .back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; font-size: 18px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .request-form { padding: 24px; }
    .space-container { height: 350px; }
    .whatsapp-float { width: 50px; height: 50px; font-size: 26px; bottom: 20px; left: 20px; }
    .footer-container { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-links { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .footer-brand { text-align: center; }
    .footer-logo { justify-content: center; }
    .footer-version { text-align: center; }
    .version-info { justify-content: center; }
    .version-details { justify-content: center; flex-direction: column; align-items: center; gap: 6px; }
    .version-tech { justify-content: center; }
    .contact-container { padding: 24px; }
    .comment-form { padding: 20px; }
}

@media (max-width: 480px) {
    .theme-select { min-width: 110px; height: 38px; font-size: 12px; }
    .section-title { font-size: 28px; }
    .logo-name { font-size: 18px; }
    .logo-img { height: 30px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
    .about-stats { flex-direction: column; }
    .skills-container { grid-template-columns: 1fr; }
    .services-container { grid-template-columns: 1fr; }
    .stats-container { grid-template-columns: 1fr; }
    .stat-card { padding: 16px; }
    .stat-card .stat-number { font-size: 24px; }
    .achievements-container { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: 1fr; gap: 20px; }
    .footer-links-column { text-align: center; }
    .footer-links-column a { display: inline-block; padding: 4px 12px; }
    .footer-links-column a:hover { transform: translateX(0); }
    .version-badge { font-size: 12px; padding: 3px 14px; }
    .version-status { font-size: 11px; padding: 3px 10px; }
    .version-date { font-size: 11px; }
    .version-commit { font-size: 11px; }
    .version-tech span { font-size: 9px; padding: 2px 10px; }
    .whatsapp-float { width: 44px; height: 44px; font-size: 22px; bottom: 16px; left: 16px; }
    .space-container { height: 250px; }
    .comment-form { padding: 16px; }
    .request-form { padding: 20px; }
}

/* ============================================================
   ACCESSIBILITY / REDUCED MOTION
============================================================ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 3px;
}

/* ============================================================
   ZENVERIX CUSTOM STUDIO
============================================================ */

.custom-studio {
    position: fixed;
    top: 90px;
    right: 24px;

    width: min(390px, calc(100vw - 32px));
    max-height: calc(100vh - 115px);

    padding: 22px;

    overflow-y: auto;

    background: var(--bg-white);
    color: var(--text-dark);

    border: 1px solid var(--border-color);
    border-radius: 22px;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.18);

    z-index: 9998;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(.97);

    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .25s ease;
}

.custom-studio.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}


/* ---------- Header ---------- */

.custom-studio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 20px;
}

.custom-studio-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-studio-title i {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    color: #fff;

    background:
        var(--gradient-primary);

    border-radius: 12px;
}

.custom-studio-title h3 {
    font-size: 17px;
    font-weight: 700;
}

.custom-studio-title span {
    display: block;

    margin-top: 2px;

    font-size: 11px;
    color: var(--text-gray);
}


/* ---------- Close ---------- */

.custom-studio-close {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border-color);
    border-radius: 10px;

    background: var(--bg-light);
    color: var(--text-gray);

    cursor: pointer;

    transition: .2s ease;
}

.custom-studio-close:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}


/* ---------- Presets ---------- */

.custom-presets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 8px;

    margin-bottom: 22px;
}

.custom-preset {
    min-height: 54px;

    padding: 7px;

    border: 1px solid var(--border-color);
    border-radius: 12px;

    background: var(--bg-light);

    cursor: pointer;

    transition: .2s ease;
}

.custom-preset:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.custom-preset-preview {
    height: 24px;

    border-radius: 7px;

    margin-bottom: 5px;
}

.custom-preset span {
    display: block;

    font-size: 9px;
    font-weight: 600;

    color: var(--text-gray);
}


/* ---------- Color Controls ---------- */

.custom-control {
    margin-bottom: 15px;
}

.custom-control-label {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 7px;

    font-size: 12px;
    font-weight: 600;
}

.custom-color-value {
    font-family: monospace;
    font-size: 11px;

    color: var(--text-light);
}

.custom-color-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-color-input {
    width: 48px;
    height: 38px;

    padding: 3px;

    border: 1px solid var(--border-color);
    border-radius: 10px;

    background: var(--bg-light);

    cursor: pointer;
}

.custom-text-input {
    flex: 1;

    height: 38px;

    padding: 0 10px;

    border: 1px solid var(--border-color);
    border-radius: 10px;

    background: var(--bg-light);
    color: var(--text-dark);

    font-family: monospace;
    font-size: 12px;

    outline: none;
}

.custom-text-input:focus {
    border-color: var(--primary);
}


/* ---------- Range ---------- */

.custom-range {
    width: 100%;
    accent-color: var(--primary);
    cursor: pointer;
}

.custom-range-value {
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
}


/* ---------- Preview ---------- */

.custom-live-preview {
    position: relative;

    min-height: 105px;

    padding: 18px;

    margin-top: 20px;

    overflow: hidden;

    background: var(--bg-secondary, var(--bg-light));

    border:
        1px solid var(--border-color);

    border-radius:
        var(--radius, 16px);
}

.custom-live-preview::before {
    content: "";

    position: absolute;

    width: 120px;
    height: 120px;

    right: -40px;
    top: -50px;

    background: var(--primary);

    opacity: .15;

    border-radius: 50%;

    filter: blur(25px);
}

.custom-preview-card {
    position: relative;

    width: 70%;

    padding: 13px;

    background:
        var(--card-bg, var(--bg-white));

    border:
        1px solid var(--border-color);

    border-radius:
        var(--radius-sm, 10px);

    box-shadow:
        var(--shadow-sm);

}

.custom-preview-card strong {
    display: block;

    color: var(--text-dark);

    font-size: 13px;
}

.custom-preview-card span {
    color: var(--text-gray);

    font-size: 10px;
}


/* ---------- Buttons ---------- */

.custom-studio-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 10px;

    margin-top: 18px;
}

.custom-studio-btn {
    height: 42px;

    border: 0;
    border-radius: 11px;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition: .2s ease;
}

.custom-save {
    color: #fff;
    background: var(--gradient-primary);
}

.custom-reset {
    color: var(--text-dark);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
}

.custom-studio-btn:hover {
    transform: translateY(-2px);
}


/* ---------- Mobile ---------- */

@media (max-width: 600px) {

    .custom-studio {
        top: 70px;
        right: 16px;

        width: calc(100vw - 32px);

        max-height: calc(100vh - 85px);
    }

    .custom-presets {
        grid-template-columns: repeat(2, 1fr);
    }
}