/* ========================================
   KENAWY.SYSTEM — ACTIVATION EXPERIENCE
   ======================================== */

:root {
    --black: #000000;
    --near-black: #0a0a0a;
    --charcoal: #111111;
    --dark: #1a1a1a;
    --gray-dark: #222222;
    --gray: #555555;
    --gray-light: #888888;
    --off-white: #cccccc;
    --white: #e5e5e5;
    --terminal-green: #4ade80;
    --terminal-blue: #60a5fa;
    --terminal-amber: #fbbf24;
    
    --font-mono: 'IBM Plex Mono', monospace;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-arabic: 'IBM Plex Sans Arabic', 'Inter', sans-serif;
    
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 48px;
    --space-xl: 80px;
    --space-2xl: 120px;
    --space-3xl: 160px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--black);
    color: var(--off-white);
    line-height: 1.6;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background: var(--white);
    color: var(--black);
}

/* ========================================
   TERMINAL OVERLAY
   ======================================== */
.terminal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 1.5s ease;
}

.terminal.fade-out {
    opacity: 0;
    pointer-events: none;
}

.terminal.hidden {
    display: none;
}

.terminal-content {
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 2;
    color: var(--gray-light);
    max-width: 480px;
    padding: var(--space-lg);
}

.terminal-line {
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    white-space: nowrap;
}

.terminal-line.visible {
    opacity: 1;
    transform: translateY(0);
}

.terminal-line.command {
    color: var(--white);
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.prompt {
    color: var(--terminal-green);
    margin-right: 8px;
}

.dim {
    color: var(--gray);
}

.dots {
    color: var(--gray-dark);
    letter-spacing: 1px;
}

.status {
    margin-left: 8px;
    font-weight: 500;
}

.status.ok {
    color: var(--terminal-green);
}

.status.enabled {
    color: var(--terminal-blue);
}

.status.active {
    color: var(--terminal-amber);
}

.status-line {
    margin-top: var(--space-md);
}

.status-final {
    color: var(--gray-light);
}

.online {
    color: var(--terminal-green);
    font-weight: 500;
}

.cursor-block {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--gray-light);
    margin-top: var(--space-sm);
    animation: blink 1s step-end infinite;
}

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

/* ========================================
   PORTRAIT TRANSITION
   ======================================== */
.portrait {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.5s ease;
}

.portrait.visible {
    opacity: 1;
}

.portrait.fade-out {
    opacity: 0;
}

.portrait.hidden {
    display: none;
}

.portrait-image {
    position: relative;
    max-width: 320px;
    max-height: 80vh;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 2s ease, transform 3s ease;
    border-radius: 4px;
    overflow: hidden;
}

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

.portrait-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%) contrast(1.1);
}

.portrait-grain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ========================================
   LOGO INTRO ANIMATION
   ======================================== */
.logo-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    z-index: 850;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.logo-intro.visible {
    opacity: 1;
}

.logo-intro.hidden {
    display: none;
}

.logo-intro-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-intro-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.logo-intro-img {
    width: 200px;
    height: auto;
    display: block;
    opacity: 0;
    transform: scale(0.3) rotate(-10deg);
    animation: logoReveal 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    filter: brightness(1.1);
    z-index: 2;
    position: relative;
}

/* Shimmer/Shine effect inside logo */
.logo-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.1) 75%,
        transparent 100%
    );
    transform: skewX(-20deg);
    animation: shimmerSlide 2.5s ease-in-out infinite;
    animation-delay: 1.5s;
    z-index: 10;
    pointer-events: none;
}

@keyframes shimmerSlide {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-10deg);
        filter: brightness(2) blur(10px);
    }
    50% {
        opacity: 1;
        transform: scale(1.15) rotate(3deg);
        filter: brightness(1.5) blur(0);
    }
    70% {
        transform: scale(0.95) rotate(-2deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: brightness(1.1) blur(0);
    }
}

.logo-intro-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.3) 0%, transparent 70%);
    filter: blur(40px);
    animation: glowPulse 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes glowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Logo shrink to header animation */
.logo-intro.shrink-to-header {
    background: transparent;
    pointer-events: none;
}

.logo-intro.shrink-to-header .logo-intro-container {
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-intro.shrink-to-header .logo-intro-container::after {
    opacity: 0 !important;
    animation: none;
}

.logo-intro.shrink-to-header .logo-intro-glow {
    animation: glowFade 0.5s ease forwards;
}

@keyframes glowFade {
    to {
        opacity: 0;
        transform: scale(0.5);
    }
}

/* ========================================
   MAIN SITE
   ======================================== */
.site {
    opacity: 0;
    transition: opacity 1.5s ease;
    min-height: 100vh;
}

.site.visible {
    opacity: 1;
}

.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

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

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-md) 0;
    background: transparent;
    transition: background 0.5s ease;
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-wrapper {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    filter: brightness(0.9);
    transition: all 0.3s ease;
}

.logo:hover img {
    filter: brightness(1);
    transform: scale(1.05);
}

/* Header logo shimmer effect */
.header-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 25%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 100%
    );
    transform: skewX(-20deg);
    animation: headerShimmer 3s ease-in-out infinite;
    animation-delay: 2s;
    z-index: 10;
    pointer-events: none;
}

@keyframes headerShimmer {
    0%, 100% {
        left: -100%;
    }
    50% {
        left: 200%;
    }
}

.nav {
    display: flex;
    gap: var(--space-lg);
}

.nav a {
    color: var(--gray);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav a i {
    font-size: 12px;
    color: var(--gray-dark);
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav a:hover {
    color: var(--off-white);
}

.nav a:hover i {
    color: var(--terminal-green);
    transform: translateY(-1px);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--gray-dark);
    border-radius: 8px;
    padding: 4px;
}

.lang-btn {
    padding: 6px 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn .flag {
    font-size: 20px;
    filter: grayscale(100%) opacity(0.5);
    transition: all 0.3s ease;
}

.lang-btn:hover .flag {
    filter: grayscale(50%) opacity(0.8);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.08);
}

.lang-btn.active .flag {
    filter: grayscale(0%) opacity(1);
}

/* RTL Support */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] body {
    font-family: var(--font-arabic);
}

html[dir="rtl"] .hero-text h1,
html[dir="rtl"] .about .section-main p,
html[dir="rtl"] .expertise-item h3,
html[dir="rtl"] .expertise-item p,
html[dir="rtl"] .work-item h4,
html[dir="rtl"] .work-item p,
html[dir="rtl"] .philosophy blockquote,
html[dir="rtl"] .contact-intro,
html[dir="rtl"] .nav a {
    font-family: var(--font-arabic);
}

html[dir="rtl"] .hero-layout {
    direction: rtl;
}

html[dir="rtl"] .section-grid {
    direction: rtl;
}

html[dir="rtl"] .phone-box {
    direction: ltr;
}

html[dir="rtl"] .hero-meta {
    flex-direction: row-reverse;
}

html[dir="rtl"] .profile-status {
    flex-direction: row-reverse;
}

html[dir="rtl"] .footer .container {
    flex-direction: row-reverse;
}

html[dir="rtl"] .header .container {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav {
    flex-direction: row-reverse;
}

/* ========================================
   HERO
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-3xl) 0 var(--space-2xl);
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-2xl);
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--gray-light);
    margin-bottom: var(--space-lg);
}

.hero-greeting {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--terminal-green);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-greeting::before {
    content: '>';
    color: var(--terminal-green);
}

.name-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.hero-name-big {
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Name shimmer effect */
.name-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 25%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 100%
    );
    transform: skewX(-20deg);
    animation: nameShimmer 4s ease-in-out infinite;
    animation-delay: 1s;
    z-index: 10;
    pointer-events: none;
}

@keyframes nameShimmer {
    0%, 100% {
        left: -100%;
    }
    50% {
        left: 200%;
    }
}

.hero-sub {
    font-size: 16px;
    color: var(--gray-light);
    max-width: 480px;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.hero-location {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--gray);
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-location i {
    color: var(--terminal-green);
    opacity: 0.7;
}

.hero-divider {
    color: var(--gray-dark);
}

.hero-exp {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--gray-dark);
    letter-spacing: 0.05em;
}

/* Phone Box */
.phone-box {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--gray-dark);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.phone-number {
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--off-white);
    letter-spacing: 0.02em;
}

.phone-actions {
    display: flex;
    gap: 8px;
    margin-left: var(--space-sm);
    padding-left: var(--space-md);
    border-left: 1px solid var(--gray-dark);
}

.phone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--gray-dark);
    border-radius: 8px;
    color: var(--gray-light);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.phone-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gray);
    color: var(--white);
    transform: translateY(-2px);
}

.phone-btn.whatsapp:hover {
    background: rgba(37, 211, 102, 0.15);
    border-color: #25d366;
    color: #25d366;
}

/* Hero Profile */
.hero-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.profile-frame {
    position: relative;
    max-width: 280px;
    border-radius: 12px;
    overflow: hidden;
}

.profile-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
}

.profile-border {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 1px solid var(--gray-dark);
    border-radius: 14px;
    z-index: 1;
    pointer-events: none;
}

/* Profile Loading Effect */
.profile-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--near-black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.profile-loader.loaded {
    background: transparent;
}

.profile-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-scanline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--terminal-green), transparent);
    box-shadow: 0 0 10px var(--terminal-green), 0 0 20px var(--terminal-green);
    animation: scanline 1.5s linear infinite;
    z-index: 20;
}

.profile-loader.loaded .loader-scanline {
    opacity: 0.7;
}

@keyframes scanline {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0.5; }
}

.loader-glitch {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.03) 2px,
        rgba(255, 255, 255, 0.03) 4px
    );
    animation: glitchLines 0.5s steps(1) infinite;
}

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

.loader-text {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--terminal-green);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    z-index: 2;
}

.loader-dots::after {
    content: '';
    animation: loaderDots 1.5s steps(4, end) infinite;
}

@keyframes loaderDots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: ''; }
}

.profile-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    filter: grayscale(20%) contrast(1.05) brightness(1.02) blur(20px);
    opacity: 0;
    transition: all 1s ease;
}

.profile-img.loaded {
    filter: grayscale(20%) contrast(1.05) brightness(1.02) blur(0);
    opacity: 1;
}

.profile-frame:hover .profile-img.loaded {
    filter: grayscale(0%) contrast(1.1) brightness(1.05) blur(0);
    transform: scale(1.02);
}

.profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.4) 100%);
    border-radius: 12px;
    pointer-events: none;
}

.profile-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

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

/* ========================================
   SECTIONS
   ======================================== */
section {
    padding: var(--space-2xl) 0;
}

.section-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--space-xl);
}

.section-side {
    position: relative;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray);
    position: sticky;
    top: 120px;
}

.section-label i {
    font-size: 14px;
    color: var(--terminal-green);
    opacity: 0.7;
}

.section-main {
    max-width: 700px;
}

/* ========================================
   ABOUT
   ======================================== */
.about {
    border-top: 1px solid var(--gray-dark);
}

.about .section-main p {
    font-size: 17px;
    line-height: 1.85;
    color: var(--gray-light);
    margin-bottom: var(--space-md);
}

.about .section-main p.lead {
    font-size: 20px;
    color: var(--off-white);
    margin-bottom: var(--space-lg);
}

.about .section-main p.subtle {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--gray-dark);
    font-style: italic;
    margin-top: var(--space-lg);
    margin-bottom: 0;
}

/* ========================================
   SIGNAL (LIFESTYLE INDICATORS)
   ======================================== */
/* Removed - integrated into sections */

/* ========================================
   EXPERTISE
   ======================================== */
.expertise {
    border-top: 1px solid var(--gray-dark);
}

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

.expertise-item {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--gray-dark);
    transition: all 0.3s ease;
}

.expertise-item:hover {
    background: rgba(255, 255, 255, 0.02);
    padding-left: var(--space-sm);
    margin-left: calc(-1 * var(--space-sm));
    border-radius: 8px;
}

.expertise-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 8px;
    margin-bottom: var(--space-sm);
    transition: all 0.3s ease;
}

.expertise-icon i {
    font-size: 16px;
    color: var(--terminal-green);
    opacity: 0.8;
}

.expertise-item:hover .expertise-icon {
    background: rgba(74, 222, 128, 0.15);
    border-color: rgba(74, 222, 128, 0.4);
    transform: scale(1.05);
}

.expertise-item:hover .expertise-icon i {
    opacity: 1;
}

.expertise-item h3 {
    font-size: 15px;
    font-weight: 500;
    color: var(--off-white);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.01em;
}

.expertise-item p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
}

/* ========================================
   WORK
   ======================================== */
.work {
    border-top: 1px solid var(--gray-dark);
}

.work-list {
    display: flex;
    flex-direction: column;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.portfolio-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--gray-dark);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: var(--gray);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    background: var(--black);
    cursor: pointer;
}

.portfolio-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
    filter: grayscale(100%);
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.08);
    filter: grayscale(0%);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: var(--space-md);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.portfolio-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--terminal-green);
    background: rgba(74, 222, 128, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

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

.portfolio-content h4 {
    font-size: 18px;
    font-weight: 500;
    color: var(--off-white);
    margin-bottom: var(--space-xs);
}

.portfolio-content p {
    font-size: 14px;
    color: var(--gray-light);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.portfolio-tech {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.portfolio-tech i {
    color: var(--terminal-green);
    font-size: 10px;
}

/* Portfolio Grid Responsive */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

.work-item {
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--gray-dark);
    transition: opacity 0.3s ease;
}

.work-item:first-child {
    padding-top: 0;
}

.work-item:last-child {
    border-bottom: none;
}

.work-list:hover .work-item {
    opacity: 0.4;
}

.work-list:hover .work-item:hover {
    opacity: 1;
}

.work-item h4 {
    font-size: 16px;
    font-weight: 500;
    color: var(--off-white);
    margin-bottom: var(--space-xs);
}

.work-item p {
    font-size: 15px;
    color: var(--gray-light);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.work-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--gray-dark);
    letter-spacing: 0.05em;
}

/* ========================================
   PHILOSOPHY
   ======================================== */
.philosophy {
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(74, 222, 128, 0.02) 50%, transparent 100%);
}

.philosophy-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-2xl);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--gray-dark);
    border-radius: 20px;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--black);
    border: 1px solid var(--gray-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-icon i {
    color: var(--terminal-green);
    font-size: 14px;
}

.philosophy blockquote {
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 300;
    line-height: 1.6;
    color: var(--off-white);
    margin: 0 0 var(--space-xl);
    letter-spacing: -0.02em;
    font-style: italic;
}

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

.philosophy-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-dark), transparent);
}

.philosophy-attr {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--terminal-green);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.active .lightbox-content {
    transform: scale(1) translateY(0);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    display: block;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--white);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-info {
    text-align: center;
    margin-top: var(--space-md);
}

.lightbox-info h4 {
    font-size: 18px;
    font-weight: 500;
    color: var(--white);
}

/* ========================================
   CONTACT
   ======================================== */
.contact {
    padding: var(--space-3xl) 0;
    background: var(--black);
}

.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-header {
    margin-bottom: var(--space-xl);
}

.contact-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--terminal-green);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: var(--space-md);
}

.contact-label i {
    font-size: 10px;
}

.contact-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 500;
    color: var(--white);
    letter-spacing: -0.03em;
}

.contact-content {
    text-align: center;
}

.contact-intro {
    font-size: 16px;
    color: var(--gray-light);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.contact-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--gray-dark);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--gray);
    transform: translateX(8px);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--off-white);
    transition: all 0.3s ease;
}

.contact-card:hover .contact-card-icon {
    background: rgba(74, 222, 128, 0.1);
    color: var(--terminal-green);
}

.contact-card-icon.whatsapp {
    color: #25d366;
}

.contact-card:hover .contact-card-icon.whatsapp {
    background: rgba(37, 211, 102, 0.15);
}

.contact-card-info {
    flex: 1;
    text-align: left;
}

.contact-card-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--gray);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.contact-card-value {
    display: block;
    font-size: 16px;
    color: var(--off-white);
    font-weight: 500;
}

.contact-card-arrow {
    color: var(--gray-dark);
    font-size: 14px;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-card-arrow {
    color: var(--terminal-green);
    transform: translateX(4px);
}

.contact-note {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-note i {
    color: var(--terminal-green);
    font-size: 11px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: var(--space-2xl) 0 var(--space-xl);
    background: linear-gradient(180deg, var(--black) 0%, rgba(10, 10, 10, 1) 100%);
    border-top: 1px solid var(--gray-dark);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
}

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

.footer-logo {
    height: 32px;
    width: auto;
    filter: grayscale(100%) brightness(0.8);
    transition: all 0.3s ease;
}

.footer-brand:hover .footer-logo {
    filter: grayscale(0%) brightness(1);
}

.footer-name {
    font-size: 18px;
    font-weight: 500;
    color: var(--off-white);
    letter-spacing: -0.02em;
}

.footer-locations {
    text-align: center;
}

.footer-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--gray-dark);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: block;
    margin-bottom: var(--space-sm);
}

.footer-markets {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    justify-content: center;
}

.market {
    font-size: 13px;
    color: var(--gray-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.market i {
    color: var(--terminal-green);
    font-size: 10px;
    opacity: 0.7;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--gray-dark);
}

.footer-tagline {
    font-size: 12px;
    color: var(--gray);
    font-style: italic;
}

@media (max-width: 768px) {
    .contact-card:hover {
        transform: none;
    }
    
    .footer-markets {
        gap: var(--space-md);
    }
}

.footer .markets {
    letter-spacing: 0.05em;
}

/* ========================================
   REVEAL ANIMATIONS
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   TOAST
   ======================================== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--gray-dark);
    border-radius: 8px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 9999;
}

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

.toast i {
    color: var(--terminal-green);
    font-size: 16px;
}

.toast span {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--off-white);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .hero-profile {
        order: -1;
    }
    
    .profile-frame {
        max-width: 220px;
    }
    
    .section-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .section-label {
        position: static;
        margin-bottom: var(--space-lg);
    }
    
    /* Keep phone box inline on all screen sizes */
    .phone-box {
        flex-direction: row;
        align-items: center;
        gap: var(--space-sm);
        padding: 10px 14px;
        flex-wrap: nowrap;
    }
    
    .phone-actions {
        margin-left: var(--space-xs);
        padding-left: var(--space-sm);
        border-left: 1px solid var(--gray-dark);
        gap: 4px;
    }
    
    .phone-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    :root {
        --space-lg: 32px;
        --space-xl: 60px;
        --space-2xl: 80px;
        --space-3xl: 100px;
    }
    
    .nav {
        display: none;
    }
    
    /* Keep language switcher in header on mobile */
    .lang-switcher {
        position: static;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    
    .terminal-content {
        font-size: 12px;
        padding: var(--space-md);
    }
    
    .portrait-image {
        max-width: 200px;
    }
    
    .hero-text h1 {
        font-size: 28px;
    }
    
    .hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }
    
    .hero-divider {
        display: none;
    }
    
    .profile-frame {
        max-width: 180px;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .footer .container {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
    
    html[dir="rtl"] .hero-meta {
        align-items: flex-end;
    }
    
    html[dir="rtl"] .footer .container {
        flex-direction: column;
    }
    
    /* Phone box mobile adjustments */
    .phone-box {
        padding: 8px 12px;
    }
    
    .phone-btn {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero-text h1 {
        font-size: 24px;
    }
    
    .about .section-main p {
        font-size: 15px;
    }
    
    .about .section-main p.lead {
        font-size: 17px;
    }
    
    .philosophy blockquote {
        font-size: 18px;
    }
    
    .phone-number {
        font-size: 14px;
    }
}
