/*
Theme Name: Zeina Portfolio
Theme URI: https://zeinabakdouch.com
Author: Zeina Bakdouch
Author URI: https://zeinabakdouch.com
Description: قالب ووردبريس شخصي احترافي لزينة بكدتش - مختصة في تصميم وإدارة المواقع وتحسين محركات البحث وإدارة حسابات السوشال ميديا. يدعم القالب الوضع الليلي والنهاري والتصميم المتجاوب واتجاه RTL العربي.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zeina-portfolio
Tags: one-column, custom-background, custom-colors, custom-header, custom-menu, featured-images, full-width-template, rtl-language-support, theme-options, translation-ready, blog, portfolio
*/

/* ============================================
   CSS Variables - Design Tokens
   ============================================ */
:root {
    /* Primary Colors */
    --primary: #e91e8c;
    --primary-light: #f472b6;
    --primary-dark: #be185d;
    --primary-glow: rgba(233, 30, 140, 0.3);

    /* Accent Colors */
    --accent: #8b5cf6;
    --accent-light: #a78bfa;
    --accent-dark: #7c3aed;

    /* Gradient */
    --gradient-primary: linear-gradient(135deg, #e91e8c 0%, #8b5cf6 100%);
    --gradient-hero: linear-gradient(135deg, #e91e8c 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-card: linear-gradient(145deg, rgba(233, 30, 140, 0.05), rgba(139, 92, 246, 0.05));

    /* Light Mode Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fc;
    --bg-tertiary: #f1f3f8;
    --bg-card: #ffffff;
    --bg-card-hover: #faf5ff;
    --bg-overlay: rgba(255, 255, 255, 0.95);

    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-tertiary: #7a7a9a;
    --text-inverse: #ffffff;

    --border-color: #e5e7eb;
    --border-light: #f3f4f6;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 30px rgba(233, 30, 140, 0.15);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Typography */
    --font-primary: 'Tajawal', 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    --font-heading: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
    --font-mono: 'Fira Code', 'Courier New', monospace;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Container */
    --container-max: 1200px;
    --container-narrow: 800px;
}

/* ============================================
   Dark Mode Colors
   ============================================ */
[data-theme="dark"] {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16162a;
    --bg-card: #1e1e36;
    --bg-card-hover: #2a2a4a;
    --bg-overlay: rgba(15, 15, 26, 0.95);

    --text-primary: #f0f0f5;
    --text-secondary: #b0b0cc;
    --text-tertiary: #8888aa;
    --text-inverse: #0f0f1a;

    --border-color: #2a2a4a;
    --border-light: #1e1e36;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px rgba(233, 30, 140, 0.25);

    --gradient-card: linear-gradient(145deg, rgba(233, 30, 140, 0.08), rgba(139, 92, 246, 0.08));
}

/* ============================================
   Reset & Base
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    direction: rtl;
    text-align: right;
    transition: background-color var(--transition-base), color var(--transition-base);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

/* ============================================
   Container
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container-narrow {
    max-width: var(--container-narrow);
}

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    background: var(--bg-overlay);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-base);
    padding: var(--space-md) 0;
}

.site-header.scrolled {
    padding: var(--space-sm) 0;
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.site-logo:hover {
    color: var(--primary-dark);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--text-xl);
    font-weight: 800;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
}

.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: var(--text-base);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    background: rgba(233, 30, 140, 0.08);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-base);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 60%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Theme Toggle Button */
.theme-toggle {
    width: 44px;
    height: 44px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    background: var(--bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    transition: all var(--transition-base);
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(15deg);
    box-shadow: var(--shadow-glow);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    transition: all var(--transition-base);
}

[data-theme="light"] .theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

[data-theme="dark"] .theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

[data-theme="dark"] .theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* CTA Button in Header */
.btn-header-cta {
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--text-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.btn-header-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: white;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    cursor: pointer;
    gap: 5px;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: calc(80px + var(--space-4xl)) var(--space-xl) var(--space-4xl);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(233, 30, 140, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-2%, -2%); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    text-align: right;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(233, 30, 140, 0.1);
    color: var(--primary);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-xl);
    border: 1px solid rgba(233, 30, 140, 0.2);
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-size: var(--text-6xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.hero-title .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    line-height: 1.8;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: var(--space-2xl);
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: var(--text-3xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    font-weight: 500;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 380px;
    height: 380px;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.3;
    animation: rotateBorder 6s linear infinite;
}

@keyframes rotateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--gradient-primary);
    z-index: 0;
}

.hero-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    border: 4px solid var(--bg-primary);
}

/* Floating Elements around Hero Image */
.floating-element {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    box-shadow: var(--shadow-lg);
    z-index: 2;
    animation: float 3s ease-in-out infinite;
    font-size: var(--text-sm);
    font-weight: 600;
}

.floating-element:nth-child(2) {
    top: 20px;
    left: -40px;
    animation-delay: 0s;
}

.floating-element:nth-child(3) {
    bottom: 40px;
    right: -30px;
    animation-delay: 1s;
}

.floating-element:nth-child(4) {
    bottom: -10px;
    left: 20px;
    animation-delay: 2s;
}

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

.floating-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1.5;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(233, 30, 140, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(233, 30, 140, 0.4);
    color: white;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(233, 30, 140, 0.05);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-sm {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-sm);
}

.btn-lg {
    padding: var(--space-md) var(--space-2xl);
    font-size: var(--text-lg);
}

/* ============================================
   Section Styling
   ============================================ */
.section {
    padding: var(--space-4xl) 0;
    position: relative;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(233, 30, 140, 0.1);
    color: var(--primary);
    padding: var(--space-xs) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-md);
    border: 1px solid rgba(233, 30, 140, 0.2);
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   About Section
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

.about-image .experience-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.experience-badge .number {
    font-size: var(--text-4xl);
    font-weight: 800;
    display: block;
    line-height: 1;
}

.experience-badge .label {
    font-size: var(--text-sm);
    opacity: 0.9;
}

.about-content h2 {
    margin-bottom: var(--space-lg);
}

.about-content p {
    font-size: var(--text-lg);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    font-weight: 500;
    color: var(--text-primary);
}

.highlight-item .check-icon {
    color: var(--primary);
    font-size: var(--text-lg);
}

/* ============================================
   Services Section
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-base);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(233, 30, 140, 0.2);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-3xl);
    margin-bottom: var(--space-lg);
    background: rgba(233, 30, 140, 0.1);
}

.service-card:nth-child(2) .service-icon {
    background: rgba(139, 92, 246, 0.1);
}

.service-card:nth-child(3) .service-icon {
    background: rgba(6, 182, 212, 0.1);
}

.service-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
}

.service-card p {
    font-size: var(--text-sm);
    line-height: 1.7;
    color: var(--text-secondary);
}

.service-features {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.service-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.service-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
    font-size: var(--text-xs);
}

/* ============================================
   Portfolio Section
   ============================================ */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.portfolio-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.portfolio-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-thumbnail img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(233, 30, 140, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay a {
    color: white;
    font-size: var(--text-2xl);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 var(--space-xs);
    transition: background var(--transition-fast);
}

.portfolio-overlay a:hover {
    background: rgba(255, 255, 255, 0.4);
}

.portfolio-info {
    padding: var(--space-lg);
}

.portfolio-info h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xs);
}

.portfolio-category {
    font-size: var(--text-sm);
    color: var(--primary);
    font-weight: 500;
}

/* ============================================
   Skills Section
   ============================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
}

.skill-category h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.skill-item {
    margin-bottom: var(--space-lg);
}

.skill-item:last-child {
    margin-bottom: 0;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
    font-size: var(--text-sm);
    font-weight: 500;
}

.skill-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 1.5s ease;
    width: 0;
}

.skill-progress.animated {
    /* Width set via inline style */
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
}

.testimonial-card .quote-icon {
    font-size: var(--text-4xl);
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: var(--space-md);
}

.testimonial-text {
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: var(--space-xl);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.testimonial-name {
    font-weight: 700;
    color: var(--text-primary);
}

.testimonial-role {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

/* ============================================
   Contact Section
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
}

.contact-info {
    padding: var(--space-2xl);
}

.contact-info h2 {
    margin-bottom: var(--space-md);
}

.contact-info > p {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: rgba(233, 30, 140, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    color: var(--primary);
    flex-shrink: 0;
}

.contact-item-text strong {
    display: block;
    color: var(--text-primary);
    font-size: var(--text-sm);
}

.contact-item-text span,
.contact-item-text a {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.social-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: var(--text-xl);
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    transition: border-color var(--transition-fast);
    direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand .site-logo {
    margin-bottom: var(--space-md);
}

.footer-brand p {
    font-size: var(--text-sm);
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-column h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.footer-column ul li {
    margin-bottom: var(--space-sm);
}

.footer-column ul a {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.footer-column ul a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

.footer-bottom a {
    color: var(--primary);
}

/* ============================================
   Blog / Posts
   ============================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.post-thumbnail {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: var(--space-lg);
}

.post-meta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

.post-category {
    color: var(--primary);
    font-weight: 600;
}

.post-content h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
    line-height: 1.5;
}

.post-content h3 a {
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.post-content h3 a:hover {
    color: var(--primary);
}

.post-excerpt {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--primary);
    font-weight: 600;
    font-size: var(--text-sm);
    margin-top: var(--space-md);
    transition: gap var(--transition-fast);
}

.read-more:hover {
    gap: var(--space-sm);
}

/* Single Post */
.single-post {
    padding: calc(80px + var(--space-3xl)) 0 var(--space-3xl);
}

.post-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.post-header h1 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-lg);
}

.post-body {
    max-width: var(--container-narrow);
    margin: 0 auto;
    font-size: var(--text-lg);
    line-height: 1.9;
}

.post-body h2 {
    font-size: var(--text-2xl);
    margin: var(--space-2xl) 0 var(--space-lg);
}

.post-body h3 {
    font-size: var(--text-xl);
    margin: var(--space-xl) 0 var(--space-md);
}

.post-body p {
    margin-bottom: var(--space-lg);
}

.post-body img {
    border-radius: var(--radius-lg);
    margin: var(--space-xl) 0;
}

.post-body ul, .post-body ol {
    padding-right: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.post-body ul {
    list-style: disc;
}

.post-body ol {
    list-style: decimal;
}

.post-body li {
    margin-bottom: var(--space-sm);
}

.post-body blockquote {
    border-right: 4px solid var(--primary);
    padding: var(--space-lg) var(--space-xl);
    background: rgba(233, 30, 140, 0.05);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    margin: var(--space-xl) 0;
    font-style: italic;
}

.post-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar {
    position: sticky;
    top: 100px;
}

.widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.widget-title {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient-primary);
}

.widget ul li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-light);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul a {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.widget ul a:hover {
    color: var(--primary);
}

/* ============================================
   Page Templates
   ============================================ */
.page-content {
    padding: calc(80px + var(--space-3xl)) 0 var(--space-3xl);
}

.page-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    padding: var(--space-3xl) 0;
    background: var(--bg-secondary);
    border-radius: var(--radius-2xl);
    margin-bottom: var(--space-3xl);
}

.page-header h1 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-md);
}

.page-header p {
    font-size: var(--text-lg);
    color: var(--text-secondary);
}

/* ============================================
   404 Page
   ============================================ */
.error-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-4xl) 0;
}

.error-404 h1 {
    font-size: 8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.error-404 p {
    font-size: var(--text-xl);
    margin-bottom: var(--space-xl);
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-3xl);
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.pagination a:hover,
.pagination .current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ============================================
   Scroll to Top Button
   ============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(233, 30, 140, 0.4);
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger animations */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Loading / Spinner
   ============================================ */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-2xl);
    }

    .hero-text {
        text-align: center;
    }

    .hero-description {
        margin: 0 auto var(--space-2xl);
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image-wrapper {
        width: 280px;
        height: 280px;
    }

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

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

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

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

/* Mobile */
@media (max-width: 768px) {
    :root {
        --text-5xl: 2.25rem;
        --text-6xl: 2.75rem;
        --text-4xl: 1.875rem;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .section {
        padding: var(--space-2xl) 0;
    }

    /* Mobile Navigation */
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        padding: var(--space-2xl);
        transition: right var(--transition-base);
        box-shadow: var(--shadow-xl);
        z-index: 1001;
    }

    .main-navigation.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: var(--space-sm);
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: var(--space-md);
        font-size: var(--text-lg);
        border-radius: var(--radius-md);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

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

    /* Hero */
    .hero-section {
        padding-top: calc(70px + var(--space-2xl));
        min-height: auto;
    }

    .hero-image-wrapper {
        width: 220px;
        height: 220px;
    }

    .floating-element {
        display: none;
    }

    .hero-stats {
        gap: var(--space-lg);
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    /* Skills */
    .skills-grid {
        grid-template-columns: 1fr;
    }

    /* About */
    .about-highlights {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    /* Posts */
    .posts-grid {
        grid-template-columns: 1fr;
    }

    /* Section */
    .section-header {
        margin-bottom: var(--space-xl);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    :root {
        --text-5xl: 1.875rem;
        --text-6xl: 2.25rem;
        --text-4xl: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-md);
    }

    .portfolio-filters {
        gap: var(--space-xs);
    }

    .filter-btn {
        padding: var(--space-xs) var(--space-md);
        font-size: var(--text-xs);
    }
}

/* ============================================
   WordPress Specific Styles
   ============================================ */

/* Caption */
.wp-caption {
    max-width: 100%;
    margin-bottom: var(--space-xl);
}

.wp-caption-text {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    text-align: center;
    padding: var(--space-sm) 0;
}

/* Gallery */
.gallery {
    display: grid;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }

.gallery-item {
    margin: 0;
}

.gallery-item img {
    border-radius: var(--radius-md);
    width: 100%;
}

/* Alignments */
.alignleft {
    float: right;
    margin-left: var(--space-xl);
    margin-bottom: var(--space-md);
}

.alignright {
    float: left;
    margin-right: var(--space-xl);
    margin-bottom: var(--space-md);
}

.aligncenter {
    display: block;
    margin-right: auto;
    margin-left: auto;
}

.alignwide {
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-right: calc(-50vw + 50%);
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* WordPress Comments */
.comments-area {
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--border-color);
}

.comments-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-xl);
}

.comment-list {
    list-style: none;
}

.comment {
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-lg);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.comment-author img {
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 700;
    color: var(--text-primary);
}

.comment-content p {
    font-size: var(--text-sm);
    line-height: 1.7;
}

.comment-reply-link {
    color: var(--primary);
    font-size: var(--text-sm);
    font-weight: 600;
}

/* Sticky Post */
.sticky .post-card {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   Customizer Preview Styles
   ============================================ */
.customize-partial-edit-shortcut {
    z-index: 9999;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .site-header,
    .site-footer,
    .scroll-to-top,
    .theme-toggle,
    .mobile-menu-toggle,
    .sidebar {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .container {
        max-width: 100%;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}
