/* ============================================
   MR Digital Solutions - Main Stylesheet
   Colors derived from logo: Dark Navy + Cyan/Teal gradient
   ============================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
    /* Logo-derived Brand Colors */
    --brand-navy: #0a1628;
    --brand-dark-blue: #0d2137;
    --brand-blue: #1565a0;
    --brand-cyan: #00c6d4;
    --brand-teal: #00b4d8;
    --brand-light-cyan: #48e5f0;
    --brand-gradient: linear-gradient(135deg, #1565a0 0%, #00c6d4 50%, #48e5f0 100%);
    --brand-gradient-hover: linear-gradient(135deg, #1278b8 0%, #00d8e8 50%, #5ef0fa 100%);
    --brand-gradient-text: linear-gradient(135deg, #00b4d8, #48e5f0);

    /* Font Families */
    --font-en: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-ar: 'Cairo', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
    --nav-height: 80px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 50%;
}

/* --- Dark Theme (Default) --- */
[data-theme="dark"] {
    --bg-primary: #060d18;
    --bg-secondary: #0a1628;
    --bg-tertiary: #0d1f35;
    --bg-card: rgba(13, 31, 53, 0.6);
    --bg-card-hover: rgba(13, 31, 53, 0.9);
    --bg-glass: rgba(10, 22, 40, 0.8);
    --bg-nav: rgba(6, 13, 24, 0.85);
    --border-color: rgba(0, 198, 212, 0.12);
    --border-hover: rgba(0, 198, 212, 0.3);
    --text-primary: #edf2f7;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(0, 198, 212, 0.15);
    --shadow-glow-strong: 0 0 60px rgba(0, 198, 212, 0.25);
    --code-bg: #0b1a2e;
    --input-bg: rgba(13, 31, 53, 0.8);
    --scrollbar-bg: #0a1628;
    --scrollbar-thumb: #1565a0;
}

/* --- Light Theme --- */
[data-theme="light"] {
    --bg-primary: #f7f9fc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #edf2f7;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-hover: rgba(255, 255, 255, 1);
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-nav: rgba(247, 249, 252, 0.9);
    --border-color: rgba(21, 101, 160, 0.12);
    --border-hover: rgba(21, 101, 160, 0.3);
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(21, 101, 160, 0.08);
    --shadow-glow-strong: 0 0 60px rgba(21, 101, 160, 0.12);
    --code-bg: #1a202c;
    --input-bg: rgba(237, 242, 247, 0.8);
    --scrollbar-bg: #edf2f7;
    --scrollbar-thumb: #00b4d8;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    font-size: 16px;
}

body {
    font-family: var(--font-en);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* RTL Support */
[dir="rtl"] body {
    font-family: var(--font-ar);
}

[dir="rtl"] * {
    font-family: inherit;
}

[dir="rtl"] .hero-code-block,
[dir="rtl"] .code-content,
[dir="rtl"] .code-content * {
    font-family: var(--font-mono) !important;
    direction: ltr;
    text-align: left;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

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

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

::selection {
    background: rgba(0, 198, 212, 0.3);
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Cursor Glow --- */
.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 198, 212, 0.06) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: opacity 0.3s;
    will-change: transform;
}

[data-theme="light"] .cursor-glow {
    background: radial-gradient(circle, rgba(21, 101, 160, 0.04) 0%, transparent 70%);
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo img {
    width: 100px;
    height: auto;
    margin-bottom: 30px;
    animation: preloaderPulse 1.5s ease-in-out infinite;
}

@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto 16px;
}

.preloader-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--brand-gradient);
    border-radius: 3px;
    animation: preloaderFill 2s ease-out forwards;
}

@keyframes preloaderFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

.preloader-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-smooth);
}

.navbar.scrolled {
    height: 64px;
    box-shadow: var(--shadow-md);
}

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

.nav-logo img {
    height: 44px;
    width: auto;
    transition: transform var(--transition-base);
}

.navbar.scrolled .nav-logo img {
    height: 36px;
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    position: relative;
    transition: color var(--transition-base), background var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--brand-gradient);
    border-radius: 2px;
    transition: width var(--transition-base);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 32px);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle,
.lang-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all var(--transition-base);
}

.theme-toggle:hover,
.lang-toggle:hover {
    border-color: var(--brand-cyan);
    color: var(--brand-cyan);
    background: rgba(0, 198, 212, 0.08);
}

.lang-toggle {
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    padding: 10px;
}

.nav-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-secondary);
    transition: all var(--transition-base);
    border-radius: 2px;
}

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

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

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

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height);
}

.hero-bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    opacity: 0.5;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(0, 198, 212, 0.15);
    top: -100px;
    right: -100px;
    animation: orbFloat1 15s ease-in-out infinite;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(21, 101, 160, 0.15);
    bottom: -50px;
    left: -100px;
    animation: orbFloat2 18s ease-in-out infinite;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(72, 229, 240, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 12s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-30px, 40px); }
    66% { transform: translate(20px, -30px); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(40px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--brand-cyan);
    border-radius: 50%;
    opacity: 0;
    animation: particleFade 4s ease-in-out infinite;
}

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

.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #00e676;
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(0, 230, 118, 0); }
}

.hero-title {
    margin-bottom: 16px;
}

.hero-greeting {
    display: block;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.hero-name {
    display: block;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
}

.name-text {
    color: var(--text-primary);
}

.name-highlight {
    background: var(--brand-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-typewriter {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    margin-bottom: 20px;
    min-height: 40px;
}

.typewriter-prefix {
    color: var(--text-secondary);
    font-weight: 500;
}

.typewriter-text {
    color: var(--brand-cyan);
    font-weight: 600;
}

.typewriter-cursor {
    color: var(--brand-cyan);
    animation: cursorBlink 0.8s ease-in-out infinite;
    font-weight: 300;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.btn-primary {
    background: var(--brand-gradient);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 198, 212, 0.3);
}

.btn-primary:hover {
    background: var(--brand-gradient-hover);
    box-shadow: 0 6px 30px rgba(0, 198, 212, 0.4);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

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

.btn-outline:hover {
    border-color: var(--brand-cyan);
    background: rgba(0, 198, 212, 0.08);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

[dir="rtl"] .btn i.fa-arrow-right {
    transform: rotate(180deg);
}

/* --- Hero Stats --- */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 30px;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--brand-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-cyan);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* --- Hero Code Block --- */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
}

.hero-code-block {
    background: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    animation: codeBlockFloat 6s ease-in-out infinite;
}

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

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green { background: #28c840; }

.code-filename {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

[dir="rtl"] .code-filename {
    margin-left: 0;
    margin-right: auto;
}

.code-content {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
    color: #a0aec0;
    overflow-x: auto;
}

.code-keyword { color: #c792ea; }
.code-var { color: #82aaff; }
.code-prop { color: #f78c6c; }
.code-string { color: #c3e88d; }
.code-method { color: #82aaff; }

/* --- Hero Scroll Indicator --- */
.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 2;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--border-hover);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--brand-cyan);
    border-radius: 4px;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
    0%, 100% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(16px); opacity: 0; }
}

/* --- Section Common --- */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-cyan);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--brand-gradient);
    border-radius: 4px;
    margin: 0 auto;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.about-image-frame {
    width: 300px;
    height: 300px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 3px solid transparent;
    background-image: var(--brand-gradient);
    background-origin: border-box;
    background-clip: border-box;
    padding: 3px;
    position: relative;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--radius-xl) - 3px);
    background: var(--bg-secondary);
    padding: 30px;
}

.about-experience-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: var(--brand-gradient);
    color: #ffffff;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

[dir="rtl"] .about-experience-badge {
    right: auto;
    left: -10px;
}

.exp-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.exp-text {
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
}

.about-float-icon {
    position: absolute;
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-cyan);
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.about-float-1 {
    top: 10px;
    left: 10px;
    animation: floatIcon 4s ease-in-out infinite;
}

.about-float-2 {
    top: 40%;
    right: -15px;
    animation: floatIcon 5s ease-in-out infinite 1s;
}

[dir="rtl"] .about-float-2 {
    right: auto;
    left: -15px;
}

.about-float-3 {
    bottom: 30px;
    left: 20px;
    animation: floatIcon 4.5s ease-in-out infinite 0.5s;
}

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

.about-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.4;
}

.about-text {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 28px 0;
}

.about-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition-base);
}

.about-info-item:hover {
    border-color: var(--border-hover);
}

.about-info-item i {
    color: var(--brand-cyan);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.info-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.info-value.available {
    color: #00e676;
}

/* --- Services Section --- */
.services {
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--brand-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-smooth);
}

[dir="rtl"] .service-card::before {
    transform-origin: right;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    background: var(--bg-card-hover);
}

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

.service-icon-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 198, 212, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--brand-cyan);
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    background: var(--brand-gradient);
    color: #ffffff;
    transform: scale(1.1);
}

.service-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--border-color);
    line-height: 1;
    transition: color var(--transition-base);
}

.service-card:hover .service-number {
    color: var(--border-hover);
}

.service-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-techs span {
    padding: 4px 12px;
    background: rgba(0, 198, 212, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* --- Skills Section --- */
.skills-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.skills-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition-smooth);
}

.skills-category:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.skills-cat-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.skills-cat-title i {
    color: var(--brand-cyan);
    font-size: 1.2rem;
}

.skills-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.skill-percent {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-cyan);
    font-family: var(--font-mono);
}

.skill-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    width: 0%;
    background: var(--brand-gradient);
    border-radius: 6px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-fill.animated {
    width: var(--fill);
}

/* --- Portfolio Section --- */
.portfolio {
    background: var(--bg-secondary);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 24px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: inherit;
}

.filter-btn:hover {
    border-color: var(--brand-cyan);
    color: var(--brand-cyan);
}

.filter-btn.active {
    background: var(--brand-gradient);
    border-color: transparent;
    color: #ffffff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

.portfolio-card.hidden {
    display: none;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--border-hover);
}

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

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: transform var(--transition-smooth);
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 13, 24, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.portfolio-actions {
    display: flex;
    gap: 12px;
}

.portfolio-action-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all var(--transition-base);
    transform: translateY(20px);
}

.portfolio-card:hover .portfolio-action-btn {
    transform: translateY(0);
}

.portfolio-action-btn:hover {
    background: var(--brand-gradient);
    border-color: transparent;
}

.portfolio-info {
    padding: 24px;
}

.portfolio-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.portfolio-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.portfolio-tech span {
    padding: 3px 10px;
    background: rgba(0, 198, 212, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

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

.testimonials-track {
    display: flex;
    transition: transform var(--transition-smooth);
}

.testimonial-card {
    min-width: 100%;
    padding: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
}

.testimonial-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 24px;
    color: #fbbf24;
    font-size: 1.1rem;
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 28px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.testimonial-avatar {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-full);
    background: var(--brand-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.8rem;
}

.testimonial-author h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: left;
}

[dir="rtl"] .testimonial-author h4 {
    text-align: right;
}

.testimonial-author span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.testimonials-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.test-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.test-nav-btn:hover {
    border-color: var(--brand-cyan);
    color: var(--brand-cyan);
    background: rgba(0, 198, 212, 0.08);
}

.test-dots {
    display: flex;
    gap: 8px;
}

.test-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--border-color);
    cursor: pointer;
    transition: all var(--transition-base);
}

.test-dot.active {
    background: var(--brand-gradient);
    width: 30px;
    border-radius: 5px;
}

/* --- Contact Section --- */
.contact {
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info-col h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.contact-info-col > p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
}

.method-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: rgba(0, 198, 212, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-cyan);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.method-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.contact-method a,
.contact-method span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.contact-method a:hover {
    color: var(--brand-cyan);
}

.contact-socials {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all var(--transition-base);
}

.social-link:hover {
    border-color: var(--brand-cyan);
    color: #ffffff;
    background: var(--brand-gradient);
    transform: translateY(-3px);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px 14px 46px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all var(--transition-base);
    outline: none;
}

[dir="rtl"] .form-group input,
[dir="rtl"] .form-group textarea {
    padding: 14px 46px 14px 16px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--brand-cyan);
    box-shadow: 0 0 0 3px rgba(0, 198, 212, 0.1);
}

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

.form-icon {
    position: absolute;
    left: 16px;
    bottom: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
    transition: color var(--transition-base);
}

[dir="rtl"] .form-icon {
    left: auto;
    right: 16px;
}

.form-icon.textarea-icon {
    bottom: auto;
    top: 46px;
}

.form-group input:focus ~ .form-icon,
.form-group textarea:focus ~ .form-icon {
    color: var(--brand-cyan);
}

/* --- Footer --- */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-socials-col h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 4px 0;
    transition: all var(--transition-base);
}

.footer-links a:hover {
    color: var(--brand-cyan);
    transform: translateX(5px);
}

[dir="rtl"] .footer-links a:hover {
    transform: translateX(-5px);
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.footer-socials a:hover {
    border-color: var(--brand-cyan);
    color: #ffffff;
    background: var(--brand-gradient);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--brand-gradient);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 198, 212, 0.3);
}

[dir="rtl"] .back-to-top {
    right: auto;
    left: 30px;
}

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

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 198, 212, 0.4);
}

/* --- Toast Notification --- */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    border: 1px solid var(--brand-cyan);
    border-radius: var(--radius-md);
    padding: 16px 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transition: transform var(--transition-spring);
    backdrop-filter: blur(20px);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast-icon {
    color: var(--brand-cyan);
    font-size: 1.2rem;
}

.toast-message {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}