/* ===== EIMC BRAND IDENTITY CSS v2.0 ===== */
/* Based on official brand guidelines: Red (#F30124) → Magenta (#A61A9B) → Blue (#0D46E7) */

:root {
    /* ===== BRAND PRIMARY COLORS (Official Palette) ===== */
    --brand-red: #F30124;
    --brand-deep-red: #D6003E;
    --brand-purple: #7D1FB8;
    --brand-magenta: #A61A9B;
    --brand-blue: #0D46E7;
    --brand-deep-blue: #0839C9;
    
    /* ===== THEME VARIABLES (Using Official Brand Colors) ===== */
    --patriot-blue: var(--brand-blue);
    --secondary: var(--brand-magenta);
    --ambition-red: var(--brand-red);
    --stellar-gold: #c6a43f;
    --bg-primary: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-off-white: #F8F9FC;
    --text-dark: #1A1A2E;
    --text-muted: #6B7280;
    
    /* ===== BRAND GRADIENTS ===== */
    --gradient-primary: linear-gradient(135deg, var(--brand-red), var(--brand-magenta), var(--brand-blue));
    --gradient-horizontal: linear-gradient(90deg, var(--brand-red), var(--brand-magenta), var(--brand-blue));
    --gradient-vertical: linear-gradient(180deg, var(--brand-red), var(--brand-magenta), var(--brand-blue));
    --gradient-red-magenta: linear-gradient(135deg, var(--brand-red), var(--brand-magenta));
    --gradient-magenta-blue: linear-gradient(135deg, var(--brand-magenta), var(--brand-blue));
    --gradient-red-blue: linear-gradient(135deg, var(--brand-red), var(--brand-blue));
    
    /* ===== STATUS COLORS ===== */
    --success: #10B981;
    --warning: #F59E0B;
    --error: var(--brand-red);
    --info: var(--brand-blue);
    
    /* ===== TYPOGRAPHY ===== */
    --font-heading: 'Nexagon', 'Poppins', 'Montserrat', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 16px;
    --font-nexagon: 'Nexagon', 'Poppins', 'Montserrat', sans-serif;
    --font-adobe-arabic: 'Adobe Arabic', 'Times New Roman', serif;
    
    /* ===== 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;
    
    /* ===== BORDER RADIUS ===== */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* ===== SHADOWS ===== */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 30px rgba(13, 70, 231, 0.3);
    
    /* ===== ANIMATIONS ===== */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* ===== LAYOUT ===== */
    --header-height: 70px;
    --container-width: 1280px;
    
    /* ===== GRID ===== */
    --grid-columns: 3;
}

/* ===== DARK THEME SUPPORT ===== */
body.dark-theme {
    --patriot-blue: #2d3436;
    --secondary: #636e72;
    --ambition-red: #e17055;
    --stellar-gold: #fdcb6e;
    --bg-primary: #1a1a2e;
    --bg-card: #16213e;
    --bg-white: #1a1a2e;
    --bg-off-white: #16213e;
    --text-dark: #f5f5f5;
    --text-muted: #a0aec0;
}

/* ===== NEXAGON FONT (Custom Font Loading) ===== */
@font-face {
    font-family: 'Nexagon';
    src: url('fonts/Nexagon-Bold.woff2') format('woff2'),
         url('fonts/Nexagon-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nexagon';
    src: url('fonts/Nexagon-Regular.woff2') format('woff2'),
         url('fonts/Nexagon-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Adobe Arabic';
    src: url('fonts/AdobeArabic-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

.section-title {
    text-align: center;
    margin-bottom: var(--space-md);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--brand-blue);
    border: 2px solid var(--brand-blue);
}

.btn-secondary:hover {
    background: var(--brand-blue);
    color: white;
    border-color: var(--brand-blue);
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--text-muted);
}

.btn-outline:hover {
    border-color: var(--brand-magenta);
    color: var(--brand-magenta);
}

.btn-calculate, .btn-generate, .btn-save, .btn-download, .btn-share {
    background: var(--gradient-primary);
    color: white;
}

.btn-calculate:hover, .btn-generate:hover, .btn-save:hover, .btn-download:hover, .btn-share:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.logo img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text h1 {
    font-size: 1.25rem;
    margin: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-text .tagline {
    font-family: var(--font-adobe-arabic);
    font-size: 0.7rem;
    color: var(--brand-magenta);
    margin: 0;
}

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

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    background: var(--gradient-primary);
    color: white;
}

/* ===== DROPDOWN MENU ===== */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 0.75rem;
    transition: transform var(--transition-fast);
}

.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 260px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.dropdown-header {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all var(--transition-fast);
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
}

.dropdown-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.dropdown-shortcut {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0.5rem 0;
}

/* Theme presets in dropdown */
.theme-presets-dropdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0.5rem;
}

.theme-preset {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.75rem;
}

.theme-preset:hover {
    background: rgba(0, 0, 0, 0.05);
}

.preset-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-3xl);
    background: linear-gradient(135deg, rgba(243, 1, 36, 0.05), rgba(166, 26, 155, 0.05), rgba(13, 70, 231, 0.05));
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(243, 1, 36, 0.08), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 70%;
    height: 100%;
    background: radial-gradient(circle, rgba(13, 70, 231, 0.08), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2xl);
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
}

.hero-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: var(--space-lg);
}

.stellar-gold {
    background: linear-gradient(135deg, #c6a43f, #f5d76e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

.hero-stats {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

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

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseGlow 3s ease-in-out infinite;
}

.image-placeholder i {
    font-size: 5rem;
    color: white;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(13, 70, 231, 0.4); }
    50% { box-shadow: 0 0 0 20px rgba(13, 70, 231, 0); }
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: var(--space-3xl) 0;
    background: var(--bg-off-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.service-card {
    background: var(--bg-card);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

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

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

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

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    color: white;
    font-size: 1.75rem;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: var(--space-md);
}

.service-tags span {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--bg-off-white);
    border-radius: var(--radius-full);
    color: var(--text-muted);
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
    padding: var(--space-3xl) 0;
}

.portfolio-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    max-width: var(--container-width);
    margin: 0 auto var(--space-xl);
    padding: 0 var(--space-lg);
}

.filter-tabs {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    transition: all var(--transition-fast);
}

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

.view-toggle {
    display: flex;
    gap: var(--space-xs);
}

.view-btn {
    padding: 0.5rem;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.portfolio-grid.list {
    grid-template-columns: 1fr;
}

.portfolio-item {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.portfolio-image {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

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

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

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

.portfolio-info h3 {
    margin-bottom: var(--space-sm);
}

.portfolio-info p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portfolio-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: var(--bg-off-white);
    border-radius: var(--radius-full);
    color: var(--text-muted);
}

.portfolio-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    max-width: var(--container-width);
    margin: var(--space-xl) auto 0;
    padding: 0 var(--space-lg);
}

.projects-count {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.btn-load-more {
    background: transparent;
    border: 2px solid var(--brand-blue);
    color: var(--brand-blue);
}

.btn-load-more:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.loading {
    text-align: center;
    padding: var(--space-3xl);
    color: var(--text-muted);
}

.loading i {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-lg);
}

.lightbox-caption {
    text-align: center;
    color: white;
    padding: var(--space-md);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

/* ===== THEME LAB ===== */
.theme-lab {
    padding: var(--space-3xl) 0;
    background: var(--bg-off-white);
}

.theme-lab-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-xl);
}

.theme-presets-panel h3,
.theme-custom-panel h3 {
    margin-bottom: var(--space-lg);
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-md);
}

.theme-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.theme-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.theme-preview {
    height: 80px;
}

.theme-info {
    padding: var(--space-sm);
    text-align: center;
}

.theme-info h4 {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.theme-info p {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.color-item label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
    color: var(--text-muted);
}

.color-input-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.color-input-wrapper input[type="color"] {
    width: 40px;
    height: 40px;
    border: 2px solid var(--bg-card);
    border-radius: var(--radius-md);
    cursor: pointer;
}

.color-hex {
    font-size: 0.75rem;
    font-family: monospace;
}

.typography-panel {
    margin-bottom: var(--space-xl);
}

.typography-panel h4 {
    margin-bottom: var(--space-md);
}

.font-controls {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-md);
}

.font-item label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
    color: var(--text-muted);
}

.font-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    font-family: var(--font-body);
}

.range-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.range-wrapper input {
    flex: 1;
}

.theme-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.theme-preview-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.theme-preview-box h4 {
    margin-bottom: var(--space-md);
}

.preview-card {
    background: var(--bg-off-white);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
}

.preview-header h5 {
    margin-bottom: var(--space-sm);
}

.preview-button {
    margin-top: var(--space-md);
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
}

/* ===== CODE LAB ===== */
.code-lab {
    padding: var(--space-3xl) 0;
}

.code-lab-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.code-templates-panel {
    margin-bottom: var(--space-xl);
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.template-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.template-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand-magenta);
    box-shadow: var(--shadow-md);
}

.template-card i {
    font-size: 1.5rem;
    color: var(--brand-blue);
}

.template-note {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.code-editor-panel {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.editor-tabs {
    display: flex;
    background: var(--bg-off-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.editor-tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.editor-tab.active {
    background: var(--bg-card);
    color: var(--brand-blue);
    border-bottom: 2px solid var(--brand-blue);
}

.editors-container {
    padding: var(--space-lg);
}

.code-editor {
    display: none;
    width: 100%;
    min-height: 250px;
    padding: var(--space-md);
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    background: var(--bg-off-white);
    color: var(--text-dark);
    resize: vertical;
}

.code-editor.active {
    display: block;
}

.editor-controls {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.preview-container {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-off-white);
}

.preview-controls {
    display: flex;
    gap: var(--space-sm);
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    color: var(--brand-blue);
}

.preview-frame {
    min-height: 300px;
    background: white;
    border-radius: var(--radius-md);
    margin: 0 var(--space-lg) var(--space-lg);
    overflow: auto;
}

/* ===== NAME ART GENERATOR ===== */
.name-art {
    padding: var(--space-3xl) 0;
    background: var(--bg-off-white);
}

.art-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.art-controls {
    background: var(--bg-card);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
}

.input-group {
    margin-bottom: var(--space-xl);
}

.input-group label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: var(--bg-off-white);
    color: var(--text-dark);
}

.style-selector h4 {
    margin-bottom: var(--space-md);
}

.style-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.style-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm);
    background: var(--bg-off-white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.style-option.active {
    border-color: var(--brand-magenta);
    background: rgba(166, 26, 155, 0.1);
}

.style-preview {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
}

.btn-generate {
    width: 100%;
    margin-bottom: var(--space-md);
}

.art-preview {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.preview-area {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-off-white);
    margin: var(--space-lg);
    border-radius: var(--radius-lg);
}

.art-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.art-placeholder i {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.generated-art {
    width: 100%;
    height: 100%;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.art-actions {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
}

/* ===== CALCULATOR SECTION ===== */
.calculator {
    padding: var(--space-3xl) 0;
}

.calculator-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.currency-selector {
    margin-bottom: var(--space-lg);
}

.calc-form {
    background: var(--bg-card);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-xs);
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    background: var(--bg-off-white);
    color: var(--text-dark);
}

.btn-calculate {
    width: 100%;
    margin-bottom: var(--space-xl);
}

.calc-result {
    display: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: var(--space-xl);
}

.calc-result.active {
    display: block;
}

.result-header {
    margin-bottom: var(--space-md);
}

.result-details {
    margin-bottom: var(--space-md);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
}

.result-total {
    display: flex;
    justify-content: space-between;
    padding-top: var(--space-md);
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: var(--space-3xl) 0;
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1), transparent);
    border-radius: 50%;
}

.contact .section-title,
.contact .section-subtitle {
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 1;
}

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

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

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.info-text h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.info-text p {
    opacity: 0.9;
    font-size: 0.875rem;
}

.social-section {
    text-align: center;
}

.social-section h3 {
    margin-bottom: var(--space-lg);
}

.social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: white;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-btn:hover {
    background: white;
    transform: translateY(-2px);
}

.social-btn.whatsapp:hover { color: #25D366; }
.social-btn.facebook:hover { color: #1877F2; }
.social-btn.linkedin:hover { color: #0077B5; }
.social-btn.instagram:hover { color: #E4405F; }

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-card);
    padding: var(--space-2xl) 0 var(--space-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
}

.footer-brand {
    display: flex;
    gap: var(--space-md);
}

.footer-logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-info h2 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.footer-info .motto {
    font-family: var(--font-adobe-arabic);
    font-size: 0.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-xl);
}

.link-group h3 {
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
}

.link-group a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: var(--space-sm);
    transition: all var(--transition-fast);
}

.link-group a:hover {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-xl);
    margin-top: var(--space-xl);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== DEVLAB SIDEBAR ===== */
.devlab-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    background: var(--bg-card);
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    transition: right var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.devlab-sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background: var(--gradient-primary);
    color: white;
}

.sidebar-content {
    flex: 1;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.sidebar-tabs {
    display: flex;
    gap: var(--space-sm);
}

.sidebar-tab {
    padding: 0.5rem 1rem;
    background: var(--bg-off-white);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.sidebar-tab.active {
    background: var(--gradient-primary);
    color: white;
}

.sidebar-panels {
    flex: 1;
}

.sidebar-panel {
    display: none;
    height: 100%;
}

.sidebar-panel.active {
    display: block;
}

.sidebar-panel textarea {
    width: 100%;
    height: 300px;
    padding: var(--space-md);
    font-family: monospace;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    background: var(--bg-off-white);
    color: var(--text-dark);
    resize: vertical;
}

/* ===== NOTIFICATION ===== */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    z-index: 3000;
    animation: slideIn 0.3s ease;
    box-shadow: var(--shadow-lg);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .art-container {
        grid-template-columns: 1fr;
    }
    
    .theme-lab-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - var(--header-height));
        background: var(--bg-card);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-lg);
        transition: left var(--transition-normal);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-link {
        width: 100%;
    }
    
    .dropdown {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        margin-top: var(--space-sm);
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
        align-items: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .info-item {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .color-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .theme-actions {
        flex-direction: column;
    }
    
    .art-actions {
        flex-direction: column;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--bg-off-white);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-blue);
}

/* ===== SELECTION STYLING ===== */
::selection {
    background: var(--brand-magenta);
    color: white;
}