/* ============================================
   CSS Variables & Theme System
   ============================================ */
:root {
    --bg-primary: #0d0d0d;
    --bg-secondary: #141414;
    --bg-tertiary: #1a1a1a;
    --bg-elevated: rgba(255, 255, 255, 0.04);
    --bg-overlay: rgba(0, 0, 0, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --brand: #7a9e5c;
    --brand-hover: #8fb069;
    --brand-dim: rgba(122, 158, 92, 0.15);
    --brand-dim-2: rgba(122, 158, 92, 0.08);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.14);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s var(--ease-smooth);
    --transition-slow: all 0.5s var(--ease-out);
}

[data-theme="light"] {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f0f0;
    --bg-elevated: rgba(0, 0, 0, 0.03);
    --bg-overlay: rgba(0, 0, 0, 0.08);
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #888888;
    --brand: #5d8a3c;
    --brand-hover: #4e7532;
    --brand-dim: rgba(93, 138, 60, 0.12);
    --brand-dim-2: rgba(93, 138, 60, 0.07);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-color-hover: rgba(0, 0, 0, 0.16);
}

[dir="rtl"] {
    --start: right;
    --end: left;
}
[dir="ltr"] {
    --start: left;
    --end: right;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s ease, color 0.3s ease;
}

[dir="rtl"] body {
    font-family: 'Inter', 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.8;
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ============================================
   Accessibility
   ============================================ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 10000;
    padding: 0.75rem 1.5rem;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: top 0.3s ease;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

/* ============================================
   Utility
   ============================================ */
.highlight { color: var(--brand); }

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3 {
    font-family: 'Noto Sans Arabic', 'Space Grotesk', 'Inter', sans-serif;
    letter-spacing: 0;
}

p { color: var(--text-secondary); }

.section-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    background: var(--brand-dim);
    border: 1px solid var(--brand-dim-2);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.25rem;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 4rem;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.6);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.navbar.scrolled {
    padding: 0.75rem 4rem;
    background: rgba(10, 10, 15, 0.92);
    border-bottom-color: var(--brand-dim);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.7);
}
[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: var(--brand-dim);
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.5rem;
}

.brand-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--brand);
}

.brand-text {
    color: var(--brand);
    font-weight: 800;
    letter-spacing: 1.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

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

.link-underline {
    position: absolute;
    bottom: -2px;
    inset-inline-start: 0;
    width: 0;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
    transition: width 0.35s var(--ease-out);
}

.nav-link:hover .link-underline,
.nav-link.active .link-underline { width: 100%; }

[dir="rtl"] .link-underline {
    transform-origin: right;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: var(--transition);
    font-family: inherit;
}
.lang-toggle:hover {
    border-color: var(--brand);
    color: var(--text-primary);
}

.lang-current { color: var(--brand); font-weight: 600; }

.theme-toggle {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}
.theme-toggle:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}
.theme-toggle svg { width: 18px; height: 18px; }
.sun-icon { display: none; }
[data-theme="light"] .sun-icon { display: block; }
[data-theme="light"] .moon-icon { display: none; }

/* Hamburger */
.hamburger-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}
.hamburger-toggle:hover { border-color: var(--brand); }

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.hamburger-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--brand);
}
.hamburger-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background: var(--brand);
}

.btn-nav {
    padding: 0.7rem 1.5rem;
    font-size: 0.875rem;
    background: var(--brand);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
}
.btn-nav:hover {
    background: var(--brand-hover);
    transform: translateY(-1px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 2rem 5rem;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 1300px;
    width: 100%;
    position: relative;
}

.hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
}

.hero-avatar-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2.5rem;
}

.hero-avatar-container {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-ring {
    position: absolute;
    inset: -6px;
    border: 2px solid var(--brand-dim);
    border-radius: 50%;
}

.hero-avatar {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--brand-dim);
    transition: transform 0.5s var(--ease-out), border-color 0.4s ease;
}

.hero-avatar:hover {
    transform: scale(1.04);
    border-color: var(--brand);
}

.avatar-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s var(--ease-out);
}
.hero-avatar:hover .avatar-img { transform: scale(1.08); }

.hero-greeting {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 1rem;
}

.hero-name {
    font-size: clamp(2.5rem, 6.5vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.name-line { display: block; }
.name-line.accent { color: var(--brand); }

.hero-role {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
}

.btn {
    padding: 0.875rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-primary:hover {
    transform: translateY(-2px);
    border-color: var(--brand);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-2px);
}

/* Hero Animations */
.hero-center > * {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.7s var(--ease-out) forwards;
}

.hero-center > .hero-avatar-wrapper { animation-delay: 0.1s; }
.hero-center > .hero-greeting { animation-delay: 0.2s; }
.hero-center > .hero-name { animation-delay: 0.35s; }
.hero-center > .hero-role { animation-delay: 0.5s; }
.hero-center > .hero-buttons { animation-delay: 0.65s; }

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Side Cards */
.side-card {
    position: relative;
    background: var(--bg-elevated);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    min-width: 180px;
    max-width: 220px;
    z-index: 10;
    transition: transform 0.4s var(--ease-out), border-color 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
}

.side-card:hover {
    border-color: var(--brand-dim);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px var(--brand-dim);
}

.card-left {
    position: absolute;
    left: 3%;
    top: 50%;
    transform: translateY(-50%);
    animation: cardFloatL 5s ease-in-out infinite;
    animation-delay: 0.3s;
}

.card-right {
    position: absolute;
    right: 3%;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    animation: cardFloatR 5s ease-in-out infinite;
    animation-delay: 0.6s;
}

@keyframes cardFloatL {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(calc(-50% - 10px)) translateX(3px); }
}

@keyframes cardFloatR {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(calc(-50% - 10px)) translateX(-3px); }
}

.side-card .card-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 0.75rem;
    display: block;
    animation: tagReveal 0.6s var(--ease-out) both;
    animation-delay: 0.8s;
}

@keyframes tagReveal {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.side-card .card-text {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.side-card .card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.side-card .card-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.rating-stars {
    color: var(--brand);
    font-size: 0.9375rem;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    display: inline-block;
    animation: starPulse 3s ease-in-out infinite;
}

@keyframes starPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
}

/* Typing Animation */
.typing-cursor {
    display: inline;
    color: var(--brand);
    animation: cursorBlink 1s ease-in-out infinite;
    font-weight: 300;
}
@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}

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

/* ============================================
   Marquee Divider
   ============================================ */
.marquee-divider {
    overflow: hidden;
    padding: 1.25rem 0;
    background: var(--brand);
    color: #fff;
    position: relative;
}

.marquee-divider .marquee-container {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-divider .marquee-content {
    display: flex;
    animation: marqueeScroll 40s linear infinite;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 3px;
    will-change: transform;
}

.marquee-divider .marquee-content span {
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ticker-sep {
    display: inline-block;
    font-size: 0.6rem;
    opacity: 0.6;
    transform: rotate(15deg);
    line-height: 1;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   Section Divider
   ============================================ */
.divider-line {
    height: 1px;
    background: var(--border-color);
    width: 100%;
}

/* ============================================
   About Section
   ============================================ */
.about {
    min-height: 100vh;
    padding: 8rem 4rem;
    background: var(--bg-secondary);
    position: relative;
}

.about-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    transition: transform 0.35s var(--ease-out), border-color 0.35s ease;
}

.about-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-dim);
}

.about-bio {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}

.about-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.about-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 1rem;
}

[dir="rtl"] .about-text {
    line-height: 1.9;
}

.about-right-stack {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.about-stats { padding: 2.5rem; }

.stat-block {
    text-align: center;
    padding: 1.5rem 1.25rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: transform 0.3s var(--ease-out), border-color 0.3s ease;
}

.stat-block:hover {
    transform: translateY(-2px);
    border-color: var(--brand);
}

.stat-big {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand);
    line-height: 1;
    display: inline;
}

.stat-plus {
    font-size: 1.75rem;
    color: var(--text-muted);
    font-weight: 700;
    display: inline;
}

.stat-name {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Skills */
.about-skills {
    padding: 2.5rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.skills-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.skill-pill {
    padding: 0.5rem 1.125rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: default;
}

.skill-pill:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-dim);
}

/* ============================================
   Selected Works Section
   ============================================ */
.selected-works {
    min-height: 100vh;
    padding: 7rem 4rem 8rem;
    background: var(--bg-primary);
    position: relative;
}

.works-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.works-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.works-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brand);
}

.works-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.works-highlight {
    color: var(--brand);
}

.btn-see-all {
    padding: 0.75rem 1.75rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    flex-shrink: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.btn-see-all:hover {
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-1px);
}

.works-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.work-card {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.work-card:hover {
    border-color: var(--brand-dim);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .work-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.work-visual {
    position: relative;
}

.visual-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    width: 100%;
    height: 100%;
    min-height: 260px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-card:hover .visual-wrapper {
    transform: scale(1.02);
}

.project-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    flex-shrink: 0;
}

.project-img:only-child {
    max-height: 340px;
}

/* Card slider dots */
.card-slider-dots {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
    z-index: 5;
    padding: 0.3rem 0.6rem;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 100px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
}

.card-slider-dots .cs-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transition: background 0.3s ease;
}

.card-slider-dots .cs-dot.active {
    background: var(--brand);
}

.project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--bg-overlay);
    opacity: 0;
    border-radius: var(--radius-lg);
    transition: opacity 0.4s var(--ease-out);
    cursor: pointer;
}

.work-card:hover .project-overlay {
    opacity: 1;
}

.overlay-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    border-radius: 50%;
    font-size: 1.25rem;
    color: #fff;
    transform: translateY(10px);
    transition: transform 0.4s var(--ease-out);
}

.overlay-icon svg {
    width: 22px;
    height: 22px;
}

.work-card:hover .overlay-icon {
    transform: translateY(0);
}

.overlay-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.3s var(--ease-out) 0.1s;
}

.work-card:hover .overlay-text {
    opacity: 1;
    transform: translateY(0);
}

.mockup-badge {
    position: absolute;
    bottom: -10px;
    inset-inline-end: 8px;
    padding: 0.5rem 1.2rem;
    background: var(--brand);
    color: #fff;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    z-index: 5;
    white-space: nowrap;
    pointer-events: none;
}

/* Work Content */
.work-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
    height: 100%;
    overflow-y: auto;
}

.work-categories {
    display: flex; align-items: center; gap: 0.75rem;
    font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
}
.work-category { color: var(--text-muted); }
.work-separator { color: var(--text-muted); opacity: 0.4; }
.work-category.highlight { color: var(--brand); }

.work-name {
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.work-description {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.work-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
    padding: 0;
}
.work-features li {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.85rem; color: var(--text-secondary);
}
.check-icon { color: var(--brand); font-weight: 700; }

.work-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 0.25rem;
}
.tech-tag {
    padding: 0.35rem 0.9rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}
.tech-tag:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.work-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.75rem;
}

.btn-primary-solid {
    padding: 0.8rem 1.75rem;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}
.btn-primary-solid:hover {
    background: var(--brand-hover);
    transform: translateX(3px);
    box-shadow: 0 4px 16px rgba(122, 158, 92, 0.25);
}

.btn-outline {
    padding: 0.8rem 1.75rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}
.btn-outline:hover {
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-1px);
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    padding: 7rem 4rem;
    background: var(--bg-secondary);
    position: relative;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-header .section-tag {
    margin-bottom: 1rem;
}

.contact-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.contact-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

.contact-body {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

/* Contact Info Cards */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.contact-info-card:hover {
    border-color: var(--brand-dim);
    transform: translateX(3px);
}

[dir="rtl"] .contact-info-card:hover {
    transform: translateX(-3px);
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-dim);
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.15rem;
}

.contact-info-value {
    font-size: 0.9375rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    display: block;
}

.contact-available {
    color: var(--brand);
}

/* Contact Form */
.contact-form {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.form-body {
    padding: 2.5rem 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-footer {
    padding: 1.5rem 2.5rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
    transition: color 0.25s ease;
}

.form-input:focus + .form-label,
.form-textarea:focus + .form-label {
    color: var(--brand);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1.125rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    line-height: 1.5;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: opacity 0.25s ease;
}

.form-input:focus::placeholder,
.form-textarea:focus::placeholder {
    opacity: 0.5;
}

.form-input:hover,
.form-textarea:hover {
    border-color: var(--border-color-hover);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-dim);
    background: var(--bg-elevated);
}

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

.form-input-error {
    border-color: #d32f2f !important;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.12) !important;
}

.form-error {
    font-size: 0.75rem;
    color: #d32f2f;
    display: none;
    margin-top: 0.15rem;
}
.form-error.visible { display: block; }

.form-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.btn-submit {
    background: var(--brand);
    color: #fff;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.35s var(--ease-out);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent);
    pointer-events: none;
}

.btn-submit:hover {
    background: var(--brand-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(122, 158, 92, 0.25);
}

.btn-submit:active {
    transform: translateY(0);
    transition-duration: 0.1s;
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-submit.form-submitting {
    pointer-events: none;
}

.submit-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s var(--ease-out);
}

.btn-submit:hover .submit-arrow {
    transform: translateX(4px);
}

[dir="rtl"] .btn-submit:hover .submit-arrow {
    transform: translateX(-4px);
}

/* Form Success */
.form-success-msg {
    text-align: center;
    padding: 3rem 2rem;
    font-size: 1.125rem;
    color: var(--brand);
    font-weight: 600;
    background: var(--brand-dim);
    border: 1px solid var(--brand-dim-2);
    border-radius: var(--radius-md);
    margin: 0 2.5rem 2.5rem;
}

/* Form Error */
.form-error-msg {
    text-align: center;
    padding: 3rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #d32f2f;
    background: rgba(211, 47, 47, 0.06);
    border: 1px solid rgba(211, 47, 47, 0.2);
    border-radius: var(--radius-md);
    margin: 0 2.5rem 2.5rem;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* ============================================
   Footer
   ============================================ */
.footer {
    position: relative;
    background: var(--bg-primary);
    padding: 5rem 4rem 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-divider {
    display: none;
}

.footer-container { max-width: 1300px; margin: 0 auto; }

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 6rem;
    margin-bottom: 4rem;
}

.footer-brand-section { max-width: 380px; }

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.footer-logo .logo-icon {
    color: var(--brand);
    display: flex;
    align-items: center;
}
.footer-logo .logo-icon svg { width: 36px; height: 36px; }
.footer-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
}

.footer-tagline {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.75rem;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-social-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.footer-social-icons {
    display: flex;
    gap: 0.625rem;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: transform 0.3s var(--ease-out), background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.social-link:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(122, 158, 92, 0.25);
}
.social-link svg { width: 19px; height: 19px; transition: transform 0.3s var(--ease-out); }
.social-link:hover svg { transform: scale(1.1); }

.footer-links-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.footer-column h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-link:hover { color: var(--brand); }

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}
.contact-icon { font-size: 1rem; }

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

/* ============================================
   Educational Journey Section
   ============================================ */
.journey {
    padding: 8rem 4rem 6rem;
    background: var(--bg-secondary);
    position: relative;
}

.journey-container {
    max-width: 820px;
    margin: 0 auto;
}

.journey-header {
    text-align: center;
    margin-bottom: 4.5rem;
}

.journey-header .section-tag {
    margin-bottom: 1rem;
}

.journey-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.journey-desc {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Timeline Track */
.timeline {
    position: relative;
    padding: 0;
}

.timeline-track {
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-start: 32px;
    width: 2px;
    background: linear-gradient(180deg, var(--brand-dim) 0%, var(--brand) 50%, var(--brand-dim) 100%);
    opacity: 0.4;
}

[dir="rtl"] .timeline-track {
    inset-inline-start: auto;
    inset-inline-end: 32px;
}

/* Timeline Item */
.timeline-item {
    position: relative;
    padding-inline-start: 76px;
    padding-bottom: 2.5rem;
}

[dir="rtl"] .timeline-item {
    padding-inline-start: 0;
    padding-inline-end: 76px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

/* Marker + Year Label */
.tl-marker {
    position: absolute;
    inset-inline-start: 0;
    top: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 64px;
}

[dir="rtl"] .tl-marker {
    inset-inline-start: auto;
    inset-inline-end: 0;
}

.tl-dot {
    width: 20px;
    height: 20px;
    background: var(--brand);
    border: 4px solid var(--bg-secondary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--brand-dim), 0 4px 12px rgba(122, 158, 92, 0.2);
    z-index: 2;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
    flex-shrink: 0;
}

.timeline-item:hover .tl-dot {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px var(--brand-dim), 0 6px 20px rgba(122, 158, 92, 0.3);
}

.tl-year-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: 1px;
    white-space: nowrap;
}

/* Timeline Card */
.tl-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.75rem;
    transition: transform 0.4s var(--ease-out), border-color 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}

.tl-card::before {
    content: '';
    position: absolute;
    inset-inline-start: -8px;
    top: 1.75rem;
    width: 14px;
    height: 14px;
    background: var(--bg-elevated);
    border-inline-start: 1px solid var(--border-color);
    border-block-start: 1px solid var(--border-color);
    transform: rotate(-45deg);
    transition: border-color 0.4s ease;
}

[dir="rtl"] .tl-card::before {
    inset-inline-start: auto;
    inset-inline-end: -8px;
    transform: rotate(135deg);
}

.tl-card:hover {
    transform: translateX(6px);
    border-color: var(--brand-dim);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

[dir="rtl"] .tl-card:hover {
    transform: translateX(-6px);
}

.tl-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.625rem;
}

.tl-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-dim);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-out);
}

.tl-card:hover .tl-icon {
    transform: scale(1.08);
}

.tl-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.tl-text {
    font-size: 0.925rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   Project Card — Preview Slider
   ============================================ */
.work-card-slider {
    width: 100%;
    overflow: hidden;
}

.work-card-slider .slider-track {
    display: flex;
    transition: transform 0.5s var(--ease-out);
}

/* ============================================
   Project Modal
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 2rem;
    overflow-y: auto;
}

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

.modal-container {
    position: relative;
    max-width: 1000px;
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-rows: minmax(0, 1fr);
    max-height: 85vh;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.4s var(--ease-out);
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    inset-inline-end: 1rem;
    z-index: 20;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.modal-close:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-muted);
    transform: rotate(90deg);
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

/* Slider inside modal */
.modal-slider {
    position: relative;
    overflow: hidden;
}

.slider-main {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-elevated);
    touch-action: pan-y;
    min-height: 200px;
}

.slider-main-track {
    display: flex;
    height: 100%;
    transition: transform 0.45s var(--ease-out);
    touch-action: pan-y;
    will-change: transform;
}

.slider-main-img {
    flex: 0 0 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    width: 100%;
    user-select: none;
    -webkit-user-select: none;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.7;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.slider-main .slider-arrow {
    opacity: 0.7;
}

.slider-main:hover .slider-arrow {
    opacity: 1;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.slider-prev { inset-inline-start: 1rem; }
.slider-next { inset-inline-end: 1rem; }

.slider-arrow svg {
    width: 20px;
    height: 20px;
}

.slider-counter {
    position: absolute;
    bottom: 1rem;
    inset-inline-end: 1rem;
    padding: 0.35rem 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    z-index: 10;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.slider-thumbs {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    overflow-x: auto;
    background: var(--bg-tertiary);
    scrollbar-width: thin;
}

.slider-thumb {
    width: 64px;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.25s ease, transform 0.25s ease;
    flex-shrink: 0;
    border: 2px solid transparent;
}

.slider-thumb.active {
    opacity: 1;
    border-color: var(--brand);
}

.slider-thumb:hover {
    opacity: 0.8;
}

.slider-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 1rem;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
    padding: 0.35rem 0.75rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 100px;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    padding: 0;
}

.slider-dot.active {
    background: var(--brand);
    transform: scale(1.3);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Modal content */
.modal-content {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    min-height: 0;
    height: 100%;
}

.modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.modal-title {
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.modal-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.modal-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.modal-section {
    margin-bottom: 1.25rem;
}

.modal-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.625rem;
}

.modal-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modal-tech .tech-tag {
    padding: 0.3rem 0.75rem;
    font-size: 0.7rem;
}

.modal-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.modal-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.modal-features li::before {
    content: '✓';
    color: var(--brand);
    font-weight: 700;
    flex-shrink: 0;
}

.modal-goals,
.modal-challenges {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}





/* Honeypot */
.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    pointer-events: none;
}

/* Works header update */
.works-header {
    justify-content: flex-start;
    margin-bottom: 3.5rem;
}

.works-header-left {
    gap: 0.35rem;
}

.works-label {
    display: none;
}

/* ============================================
   Contact Section — WhatsApp Integration
   ============================================ */
.contact-whatsapp-card {
    border-color: rgba(37, 211, 102, 0.15) !important;
    background: rgba(37, 211, 102, 0.04) !important;
    transition: transform 0.4s var(--ease-out), border-color 0.4s ease, box-shadow 0.4s ease !important;
}

.contact-whatsapp-card:hover {
    border-color: rgba(37, 211, 102, 0.3) !important;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.1) !important;
}

.contact-whatsapp-card .contact-info-icon {
    background: rgba(37, 211, 102, 0.12) !important;
    color: #25d366;
}

.contact-whatsapp-card .whatsapp-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-whatsapp-link {
    color: #25d366 !important;
    font-weight: 600;
    transition: gap 0.3s var(--ease-out), color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.contact-whatsapp-link:hover {
    gap: 0.5rem;
    color: #20bd5a !important;
}

/* ============================================
   Scroll Reveal
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--ease-out);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

/* Ultrawide */
@media (min-width: 1600px) {
    .hero-container { max-width: 1500px; }
    .card-left { left: 8%; }
    .card-right { right: 8%; }
}

@media (min-width: 2000px) {
    .hero-container { max-width: 1600px; }
    .card-left { left: 12%; }
    .card-right { right: 12%; }
}

/* Desktop + Laptop */
@media (max-width: 1200px) {
    .hero-container { gap: 3rem; }
    .card-left { left: 2%; }
    .card-right { right: 2%; }
    .work-card { gap: 2.5rem; padding: 2rem; }
    .work-name { font-size: 1.75rem; }
    .side-card { max-width: 190px; padding: 1.25rem; }
}

/* Tablet */
@media (max-width: 1024px) {
    .navbar { padding: 1rem 1.5rem; }
    .navbar.scrolled { padding: 0.75rem 1.5rem; }

    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 80%; max-width: 360px;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        background: rgba(10, 10, 15, 0.98);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        transition: right 0.4s var(--ease-smooth);
        z-index: 999;
        border-inline-start: 1px solid var(--brand-dim);
    }
    [dir="rtl"] .nav-links {
        right: auto;
        left: -100%;
        border-inline-start: none;
        border-inline-end: 1px solid var(--brand-dim);
    }
    [dir="rtl"] .nav-links.open {
        left: 0;
        right: auto;
    }
    [data-theme="light"] .nav-links {
        background: rgba(255, 255, 255, 0.98);
    }
    .nav-links.open { right: 0; }
    .nav-link { font-size: 1.125rem; }

    .nav-controls .btn-nav { display: none; }
    .hamburger-toggle { display: flex; }

    .hero { padding: 5rem 1.5rem 3rem; }
    .hero-container { flex-direction: column; gap: 2rem; }
    .hero-avatar-container { width: 180px; height: 180px; }

    .side-card,
    .card-left, .card-right {
        position: relative; left: auto; right: auto;
        top: auto; transform: none; animation: none;
        max-width: 100%;
    }

    .about { padding: 6rem 2rem; }
    .about-container { grid-template-columns: 1fr; gap: 2rem; }
    .about-bio { grid-row: span 1; }
    .about-right-stack { flex-direction: row; flex-wrap: wrap; }
    .about-stats, .about-skills { flex: 1; min-width: 260px; }

    .selected-works { padding: 5rem 2rem; }
    .works-title { font-size: 2.25rem; }
    .work-card { grid-template-columns: 1fr; gap: 2rem; padding: 2rem; }
    .work-visual { order: -1; }
    .works-grid { gap: 2rem; }

    .journey { padding: 5rem 2rem 4rem; }
    .timeline-item { padding-inline-start: 64px; padding-bottom: 2rem; }
    .tl-marker { width: 52px; }
    .tl-card { padding: 1.25rem 1.5rem; }
    .tl-card::before { top: 1.5rem; }

    .modal-container { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); max-height: 90vh; }
    .slider-main { aspect-ratio: 16/10; }
    .modal-content { padding: 1.5rem; height: 100%; }
    .modal-body { overflow-y: auto; }
    .contact { padding: 5rem 2rem; }
    .contact-body { grid-template-columns: 1fr; gap: 2rem; }
    .contact-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .form-footer { flex-direction: column; align-items: flex-start; }
    .form-success-msg,
    .form-error-msg { margin: 0 2rem 2rem; }

    .footer-main { grid-template-columns: 1fr; gap: 3rem; }
    .footer-brand-section { max-width: 100%; }
    .footer-links-section { gap: 2rem; }
}

/* Mobile Large */
@media (max-width: 768px) {
    .navbar { padding: 0.875rem 1.25rem; }

    .hero { padding: 5rem 1.25rem 3rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-avatar-container { width: 160px; height: 160px; }
    .hero-greeting { font-size: 0.75rem; letter-spacing: 3px; }
    .hero-name { font-size: 2rem; }
    .hero-role { font-size: 1rem; }

    .side-card,
    .card-left, .card-right {
        position: relative; left: auto; right: auto;
        top: auto; transform: none; animation: none;
        min-width: 140px; padding: 1rem;
    }

    .about { padding: 4rem 1.25rem; }
    .about-card { padding: 1.75rem; }
    .about-title { font-size: 1.5rem; }
    .about-text { font-size: 0.9375rem; }
    .about-right-stack { flex-direction: column; }
    .about-stats, .about-skills { min-width: 100%; }
    .stats-grid { grid-template-columns: 1fr; gap: 0.875rem; }
    .stat-big { font-size: 2rem; }
    .skill-pill { padding: 0.45rem 0.9rem; font-size: 0.75rem; }

    .selected-works { padding: 4rem 1.25rem; }
    .works-title { font-size: 1.75rem; }
    .work-card { padding: 1.5rem; gap: 1.5rem; }
    .work-name { font-size: 1.5rem; }
    .work-features { grid-template-columns: 1fr; }
    .mockup-badge { font-size: 0.6rem; padding: 0.35rem 0.9rem; }
    .visual-wrapper { min-height: 200px; }
    .project-img { max-height: 280px; }

    .journey { padding: 4rem 1.25rem; }
    .journey-header { margin-bottom: 3rem; }
    .timeline-track { inset-inline-start: 24px; }
    .timeline-item { padding-inline-start: 52px; padding-bottom: 1.75rem; }
    .tl-marker { width: 40px; top: 1rem; }
    .tl-dot { width: 16px; height: 16px; border-width: 3px; }
    .tl-year-label { font-size: 0.625rem; }
    .tl-card { padding: 1.125rem 1.25rem; }
    .tl-card::before { top: 1.25rem; inset-inline-start: -6px; width: 12px; height: 12px; }
    .tl-title { font-size: 0.9375rem; }
    .tl-text { font-size: 0.875rem; }
    .tl-icon { width: 30px; height: 30px; font-size: 0.85rem; }

    .modal-overlay { padding: 0.75rem; }
    .modal-container { max-height: 94vh; border-radius: var(--radius-lg); }
    .slider-main { aspect-ratio: 4/3; min-height: 160px; }
    .slider-arrow { width: 32px; height: 32px; }
    .slider-arrow svg { width: 14px; height: 14px; }
    .slider-thumb { width: 44px; height: 36px; }
    .modal-title { font-size: 1.25rem; }
    .modal-content { padding: 1.25rem; gap: 1rem; }
    .modal-desc { font-size: 0.875rem; }
    .modal-section-title { font-size: 0.75rem; }

    .contact { padding: 4rem 1.25rem; }
    .contact-header { margin-bottom: 2.5rem; }
    .contact-description { font-size: 1rem; }
    .contact-info { grid-template-columns: 1fr; }
    .form-body { padding: 1.75rem 1.75rem 0; }
    .form-footer { padding: 1.25rem 1.75rem 1.75rem; flex-direction: column; align-items: flex-start; }
    .form-row { grid-template-columns: 1fr; gap: 1.25rem; }
    .form-success-msg,
    .form-error-msg { margin: 0 1.75rem 1.75rem; }

    .footer { padding: 3rem 1.25rem 1.5rem; }
    .footer-main { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-links-section { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-bottom-content { flex-direction: column; gap: 0.75rem; text-align: center; }

    .marquee-divider { padding: 1rem 0; }
    .marquee-divider .marquee-content { font-size: 0.8125rem; }
    .marquee-divider .marquee-content span { padding: 0 1rem; }
}

/* Mobile Medium */
@media (max-width: 576px) {
    .works-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .works-title { font-size: 1.5rem; }
    .work-card { padding: 1.25rem; }
    .work-name { font-size: 1.25rem; }
    .work-actions { flex-direction: column; }
    .btn-primary-solid, .btn-outline { width: 100%; justify-content: center; }
    .works-grid { gap: 1.5rem; }
    .selected-works { padding: 3rem 1rem; }
    .btn-see-all { display: none; }
    .works-header { margin-bottom: 2rem; }

    .contact { padding: 3rem 1rem; }
    .form-body { padding: 1.5rem 1.5rem 0; }
    .form-footer { padding: 1rem 1.5rem 1.5rem; }
    .btn-submit { width: 100%; justify-content: center; }
    .form-success-msg,
    .form-error-msg { margin: 0 1.5rem 1.5rem; }

    .footer { padding: 3rem 1rem 1.5rem; }
    .footer-links-section { grid-template-columns: 1fr; }
}

/* Mobile Small */
@media (max-width: 480px) {
    .hero { padding: 4.5rem 1rem 2rem; }
    .hero-name { font-size: 1.75rem; letter-spacing: -0.01em; }
    .hero-avatar-container { width: 140px; height: 140px; }
    .side-card { padding: 0.75rem; min-width: 120px; }
    .btn { padding: 0.75rem 1.5rem; font-size: 0.85rem; }
    .work-card { gap: 1rem; padding: 1rem; }
    .work-content { gap: 0.75rem; }
    .work-name { font-size: 1.125rem; }
    .work-description { font-size: 0.85rem; }
    .tech-tag { font-size: 0.65rem; padding: 0.3rem 0.65rem; }
    .visual-wrapper { border-radius: var(--radius-sm); }

    .slider-main { aspect-ratio: 4/3; }
    .slider-thumb { width: 44px; height: 34px; }
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
    .hero-center > * {
        opacity: 1;
        transform: none;
        animation: none;
    }
    .side-card.card-left,
    .side-card.card-right {
        animation: none;
    }
    .tl-dot {
        transition: none;
    }
    .tl-card:hover {
        transform: none !important;
    }
    .tl-card::before {
        transition: none;
    }
    .tl-icon {
        transition: none;
    }
    .modal-container,
    .modal-overlay {
        transition: none;
    }
    .slider-main-track {
        transition: none;
    }
    .slider-arrow {
        opacity: 1;
    }
}

/* ============================================
   RTL arrow flip for slider
   ============================================ */
[dir="rtl"] .slider-arrow svg {
    transform: scaleX(-1);
}

/* ============================================
   Scroll to Top
   ============================================ */
/* Scroll-to-top sentinel — invisible, used by IntersectionObserver */
#scrollSentinel {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
    opacity: 0;
}

.scroll-top {
    position: fixed;
    bottom: 2rem;
    inset-inline-end: 2rem;
    z-index: 9999;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(16px) scale(0.9);
    transition:
        opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.4s ease,
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s ease,
        background 0.3s ease;
    box-shadow:
        0 4px 20px rgba(122, 158, 92, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    outline: none;
}

.scroll-top:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 4px;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.scroll-top:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow:
        0 12px 32px rgba(122, 158, 92, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: var(--brand-hover);
}

.scroll-top:active {
    transform: translateY(0) scale(0.95);
    transition-duration: 0.08s;
    box-shadow: 0 2px 8px rgba(122, 158, 92, 0.2);
}

.scroll-top svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.scroll-top:hover svg {
    transform: translateY(-2px);
}

.scroll-top.visible:active svg {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .scroll-top {
        bottom: 1.5rem;
        inset-inline-end: 1.5rem;
        width: 44px;
        height: 44px;
    }
    .scroll-top svg { width: 20px; height: 20px; }
}

@media (max-width: 480px) {
    .scroll-top {
        bottom: 1.25rem;
        inset-inline-end: 1.25rem;
        width: 40px;
        height: 40px;
    }
    .scroll-top svg { width: 18px; height: 18px; }
}
