﻿/* =============================================
   AMR KHALED PORTFOLIO - Neo-Brutalist Design
   ============================================= */
:root {
    --bg: #0A0A0A;
    --accent: #CFF7EE;
    --teal-dark: #004D5A;
    --text-dark: #04323A;
    --text-muted: #4E717A;
    --white: #FFFFFF;
    --font-body: 'Inter', 'Cairo', sans-serif;
    --font-heading: 'Bricolage Grotesque', 'Cairo', sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; scrollbar-width: thin; scrollbar-color: var(--accent) var(--bg); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
body { font-family: var(--font-body); background: var(--bg); color: var(--white); overflow-x: hidden; -webkit-font-smoothing: antialiased; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: var(--bg); }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.scroll-progress { position: fixed; top: 0; left: 0; width: 0%; height: 3px; background: var(--accent); z-index: 10001; transition: width 0.1s; }

/* PAGE LOADER */
.loader { position: fixed; inset: 0; background: var(--bg); z-index: 99999; display: flex; align-items: center; justify-content: center; transition: opacity 0.6s var(--ease), visibility 0.6s; }
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__inner { text-align: center; }
.loader__logo { font-family: var(--font-heading); font-size: 3rem; font-weight: 900; color: var(--accent); margin-bottom: 24px; animation: loaderPulse 1.2s ease-in-out infinite; }
@keyframes loaderPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.95); } }
.loader__bar { width: 200px; height: 4px; background: rgba(207,247,238,0.15); border-radius: 9999px; overflow: hidden; margin: 0 auto 16px; }
.loader__fill { height: 100%; background: var(--accent); border-radius: 9999px; animation: loaderFill 1.8s var(--ease) forwards; }
@keyframes loaderFill { from { width: 0%; } to { width: 100%; } }
.loader__text { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 3px; text-transform: uppercase; }
.light .loader { background: var(--bg); }
.light .loader__logo { color: var(--accent); }
.light .loader__bar { background: rgba(0,107,122,0.12); }
.light .loader__fill { background: var(--accent); }

/* GRAIN OVERLAY */
.grain-overlay { position: fixed; inset: 0; pointer-events: none; z-index: 9998; opacity: 0.035; 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"); background-repeat: repeat; }

/* CUSTOM CURSOR */
.cursor { position: fixed; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; pointer-events: none; z-index: 99998; transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s, background 0.2s; mix-blend-mode: difference; }
.cursor.hover { width: 40px; height: 40px; background: rgba(207,247,238,0.3); }
.cursor-follower { position: fixed; width: 32px; height: 32px; border: 1.5px solid var(--accent); border-radius: 50%; pointer-events: none; z-index: 99997; transform: translate(-50%, -50%); transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s; opacity: 0.5; }
.cursor-follower.hover { width: 50px; height: 50px; border-color: var(--accent); opacity: 0.8; }

/* SKIP LINK */
.skip-link { position: fixed; top: -100%; left: 50%; transform: translateX(-50%); padding: 12px 24px; background: var(--accent); color: var(--bg); font-weight: 700; border-radius: 0 0 12px 12px; z-index: 100000; transition: top 0.3s var(--ease); }
.skip-link:focus { top: 0; }
.light .skip-link { background: var(--accent); color: var(--white); }
.light .skip-link { background: var(--accent); color: var(--white); }

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* SERVICE CARDS THEME CLASSES */
.service-card--mint { background: #CFF7EE; }
.service-card--white { background: #fff; }
.service-card--mint .service-card__title { color: #0A0A0A; }
.service-card--mint .service-card__desc { color: #04323A; }
.service-card--mint .service-card__tags span { border-color: #04323A; color: #04323A; background: var(--white); }
.service-card--white .service-card__title { color: #0A0A0A; }
.service-card--white .service-card__desc { color: #4E717A; }
.service-card--white .service-card__tags span { border-color: #004D5A; color: #004D5A; background: #CFF7EE; }
.service-card__icon--dark { background: #0A0A0A; color: #CFF7EE; }

/* THEME TOGGLE */
.theme-toggle { width: 38px; height: 38px; min-width: 38px; border-radius: 50%; border: 2px solid var(--teal-dark); background: var(--white); color: var(--bg); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s var(--ease); pointer-events: auto; padding: 0; }
.theme-toggle:hover { background: var(--bg); color: var(--accent); border-color: var(--accent); }
.theme-toggle__sun { display: none; }
.theme-toggle__moon { display: block; }
.light .theme-toggle__sun { display: block; }
.light .theme-toggle__moon { display: none; }

/* LANGUAGE TOGGLE */
.lang-toggle { width: auto; height: 38px; min-width: 38px; border-radius: 9999px; border: 2px solid var(--teal-dark); background: var(--accent); color: var(--bg); display: flex; align-items: center; justify-content: center; gap: 4px; cursor: pointer; transition: all 0.3s var(--ease); pointer-events: auto; padding: 0 14px; font-family: var(--font-heading); font-weight: 700; }
.lang-toggle svg { flex-shrink: 0; }
.lang-toggle__flag { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.lang-toggle__flag--en { display: none; }
.lang-toggle__flag--ar { display: block; }
[dir="rtl"] .lang-toggle__flag--en { display: block; }
[dir="rtl"] .lang-toggle__flag--ar { display: none; }
.lang-toggle:hover { background: var(--bg); color: var(--accent); border-color: var(--accent); }
.lang-toggle__text { font-size: 12px; font-weight: 700; line-height: 1; }
.lang-toggle--mobile { margin-top: 16px; }

/* LIGHT MODE */
.light {
    --bg: #FAFAF8;
    --accent: #006B7A;
    --teal-dark: #005A68;
    --text-dark: #1A2E33;
    --text-muted: #5A7A82;
    --white: #FFFFFF;
    --card-bg: #FFFFFF;
    --border: rgba(0,0,0,0.08);
    --shadow: rgba(0,0,0,0.04);
}
.light body, body.light { background: var(--bg); color: var(--text-dark); }
.light ::-webkit-scrollbar-track { background: var(--bg); }
.light ::selection { background: var(--accent); color: var(--white); }

/* Light Nav */
.light .nav__logo, .light .nav__links, .light .nav__actions { background: var(--white); border-color: var(--border); box-shadow: 0 4px 24px var(--shadow); }
.light .nav__logo a { color: var(--text-dark); }
.light .nav__links a { color: var(--text-muted); }
.light .nav__links a:hover, .light .nav__links a.active { background: var(--accent); color: var(--white); }
.light .theme-toggle { border-color: var(--border); background: var(--white); color: var(--text-dark); }
.light .theme-toggle:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }
.light .lang-toggle { border-color: var(--border); background: var(--accent); color: var(--white); }
.light .lang-toggle:hover { background: var(--teal-dark); color: var(--white); border-color: var(--teal-dark); }

/* Light Buttons */
.light .btn--cta { background: var(--accent); color: var(--white); border-color: var(--teal-dark); box-shadow: 3px 3px 0px 0px var(--teal-dark); }
.light .btn--cta:hover { background: var(--teal-dark); }
.light .btn--primary { background: var(--accent); color: var(--white); border-color: var(--teal-dark); box-shadow: 5px 5px 0px 0px var(--teal-dark); }
.light .btn--primary:hover { background: var(--teal-dark); box-shadow: 7px 7px 0px 0px var(--teal-dark); }
.light .btn--secondary { background: var(--white); color: var(--text-dark); border-color: var(--border); box-shadow: 5px 5px 0px 0px rgba(0,0,0,0.06); }
.light .btn--secondary:hover { border-color: var(--accent); color: var(--accent); }
.light .btn--project { background: var(--accent); color: var(--white); border-color: var(--teal-dark); box-shadow: 3px 3px 0px 0px var(--teal-dark); }
.light .btn--project:hover { background: var(--teal-dark); }
.light .btn--submit { background: var(--accent); color: var(--white); border-color: var(--teal-dark); box-shadow: 5px 5px 0px 0px var(--teal-dark); }
.light .btn--submit:hover { background: var(--teal-dark); }

/* Light Hero */
.light .hero__bg-text { color: rgba(0,0,0,0.03); }
.light .hero__badge { background: var(--white); border-color: var(--border); color: var(--text-dark); box-shadow: 0 4px 16px var(--shadow); }
.light .hero__title { color: var(--text-dark); }
.light .hero__eyebrow { color: var(--text-muted); }
.light .hero__main { color: var(--text-dark); }
.light .hero__typed { color: var(--accent); }
.light .hero__cursor { color: var(--accent); }
.light .hero__grid { background-image: linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px); }
.light .hero__glow { background: radial-gradient(ellipse at center, rgba(0,107,122,0.07) 0%, transparent 70%); }
.light .hero__subtitle { color: var(--text-muted); }

/* Light Marquee */
.light .marquee-pill { background: var(--accent); color: var(--white); border-color: var(--teal-dark); }
.light .marquee-star { color: var(--accent); }

/* Light About */
.light .about__script, .light .about__heading { color: var(--text-dark); }
.light .about__photo-card { border-color: var(--border); background: var(--white); box-shadow: 0 20px 60px var(--shadow); }
.light .about__card-info { background: var(--white); }
.light .about__location { color: var(--text-muted); }
.light .about__location svg { color: var(--accent); }
.light .about__card-stat-num { color: var(--text-dark); }
.light .about__card-stat-label { color: var(--text-muted); }
.light .btn--card-cta { background: var(--accent); color: var(--white); border-color: var(--teal-dark); box-shadow: 3px 3px 0px 0px var(--teal-dark); }
.light .btn--card-cta:hover { background: var(--teal-dark); }
.light .about__bio { color: var(--text-muted); }

/* Light Float Pills */
.light .float-pill--tiktok { background: #010101; border: 1px solid #333; }
.light .float-pill--snapchat { background: #FFFC00; color: #000; }
.light .float-pill--react { background: #61DAFB; color: #000; }

/* Light Services */
.light .services__script, .light .services__heading { color: var(--text-dark); }
.light .service-card--mint { background: #E8F6F3; }
.light .service-card--white { background: var(--white); border-color: var(--border); }
.light .service-card--mint .service-card__title, .light .service-card--white .service-card__title { color: var(--text-dark); }
.light .service-card--mint .service-card__desc { color: var(--text-muted); }
.light .service-card--white .service-card__desc { color: var(--text-muted); }
.light .service-card--mint .service-card__tags span { border-color: var(--teal-dark); color: var(--teal-dark); }
.light .service-card--white .service-card__tags span { border-color: var(--text-muted); color: var(--text-muted); }
.light .service-card__icon--dark { background: var(--text-dark); color: var(--white); }
.light .service-card { border-color: var(--border); }
.light .service-card:hover { border-color: var(--accent); box-shadow: 6px 6px 0px 0px var(--accent); }

/* Light HIW */
.light .how-i-work .hiw__script, .light .how-i-work .hiw__heading { color: var(--text-dark); }
.light .hiw__line { background: rgba(0,0,0,0.08); }
.light .hiw__step { border-color: rgba(0,0,0,0.06); }
.light .hiw__step-title { color: var(--text-dark); }
.light .hiw__step:hover .hiw__step-title { color: var(--accent); }
.light .hiw__step-sub { color: var(--accent); }
.light .hiw__step-desc { color: var(--text-muted); }
.light .hiw__step-tags span { background: rgba(0,107,122,0.06); color: var(--accent); border-color: rgba(0,107,122,0.15); }
.light .hiw__step-num { color: var(--accent); }

/* Light Contact */
.light .contact__heading { color: var(--text-dark); }
.light .contact__desc { color: var(--text-muted); }

/* Light Work */
.light .work__script, .light .work__heading { color: var(--text-dark); }

/* Light Project Cards */
.light .proj-item { border-color: var(--border); background: var(--white); }
.light .proj-item--white { background: var(--white); }
.light .proj-item__title { color: var(--text-dark); }
.light .proj-item__desc { color: var(--text-muted); }
.light .proj-item--white .proj-item__desc { color: var(--text-muted); }
.light .proj-item__tags span { border-color: var(--teal-dark); color: var(--teal-dark); }
.light .proj-item--white .proj-item__tags span { border-color: var(--text-muted); color: var(--text-muted); }
.light .proj-item__deliverables span { color: var(--text-muted); }
.light .proj-item__deliverables .dot { background: var(--accent); }
.light .proj-item__badges span { background: var(--white); color: var(--text-dark); border-color: var(--border); }
.light .github-cta { border-color: rgba(0,0,0,0.06); }
.light .github-cta .btn--primary { background: var(--text-dark); color: var(--white); border-color: var(--text-dark); box-shadow: 5px 5px 0px 0px rgba(0,0,0,0.1); }

/* Light Stats */
.light .stats__script { color: var(--accent); }
.light .stats__heading { color: var(--text-dark); }
.light .stat-card { background: var(--white); border-color: var(--border); }
.light .stat-card:hover { background: var(--white); border-color: var(--accent); box-shadow: 0 8px 32px var(--shadow); }
.light .stat-card__icon { border-color: var(--border); color: var(--accent); background: rgba(0,107,122,0.05); }
.light .stat-card__number { color: var(--text-dark); }
.light .stat-card__label { color: var(--text-dark); }
.light .stat-card__sub { color: var(--text-muted); }

/* Light Built Different */
.light .built-different__heading { color: var(--text-dark); }
.light .bd-gradient { background: linear-gradient(90deg, #004D5A 0%, #006B7A 50%, #004D5A 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.light .bd-star--lg { background: linear-gradient(135deg, #004D5A 15%, #006B7A 45%, #004D5A 75%, #004D5A 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 6px rgba(0,107,122,0.15)); }
.light .bd-star--sm { color: #006B7A; }

/* Light Contact */
.light .contact__script, .light .contact__heading { color: var(--text-dark); }
.light .contact__desc { color: var(--text-muted); }
.light .contact__card { border-color: var(--border); background: var(--white); }
.light .contact__card:hover { border-color: var(--accent); background: rgba(0,107,122,0.03); }
.light .contact__card-label { color: var(--text-muted); }
.light .contact__card a { color: var(--text-dark); }
.light .contact__social { border-color: var(--border); color: var(--text-dark); background: var(--white); }
.light .contact__social:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }
.light .contact__form { background: var(--white); border-color: var(--border); }
.light .form-group label { color: var(--accent); }
.light .form-group input, .light .form-group textarea, .light .form-group select { background: var(--white); color: var(--text-dark); border-color: var(--border); }
.light .form-group select:invalid { color: var(--text-muted); }
.light .form-group input:focus, .light .form-group textarea:focus, .light .form-group select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0,107,122,0.1); }
.light .form-group input::placeholder, .light .form-group textarea::placeholder { color: var(--text-muted); }

/* Light Footer */
.light .footer__ticket { border-color: var(--border); box-shadow: 7px 7px 0px 0px rgba(0,0,0,0.06); }
.light .footer__ticket-top { background: var(--accent); }
.light .footer__script { color: var(--white); }
.light .footer__heading { color: var(--white); }
.light .footer__desc { color: rgba(255,255,255,0.85); }
.light .footer__cta .btn--primary { background: var(--white); color: var(--accent); border-color: var(--white); box-shadow: 5px 5px 0px 0px rgba(255,255,255,0.3); }
.light .footer__cta .btn--secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); box-shadow: none; }
.light .footer__cta .btn--secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.light .footer__ticket-perf { background: repeating-linear-gradient(90deg, rgba(255,255,255,0.3) 0px, rgba(255,255,255,0.3) 8px, transparent 8px, transparent 16px); }
.light .footer__ticket-bottom { background: var(--white); }
.light .footer__logo { color: var(--text-dark); }
.light .footer__brand p { color: var(--text-muted); }
.light .footer__socials a { border-color: var(--border); color: var(--text-dark); }
.light .footer__socials a:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }
.light .footer__nav h4, .light .footer__reach h4 { color: var(--text-dark); }
.light .footer__nav a, .light .footer__reach a { color: var(--text-muted); }
.light .footer__nav a:hover, .light .footer__reach a:hover { color: var(--accent); }
.light .footer__reach p { color: var(--text-muted); }
.light .footer__top-btn { border-color: var(--border); color: var(--text-dark); background: var(--white); }
.light .footer__top-btn:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }
.light .footer__bottom { border-color: rgba(0,0,0,0.06); }
.light .footer__bottom p { color: var(--text-muted); }

/* Light Grain */
.light .grain-overlay { opacity: 0.015; }

/* Light Scroll Progress */
.light .scroll-progress { background: var(--accent); }

.light .nav__hamburger { background: var(--text-dark); }
.light .nav__hamburger span { background: var(--white); }

/* RTL SUPPORT */
[dir="rtl"] { direction: rtl; text-align: right; }
[dir="rtl"] .about__location { flex-direction: row-reverse; }
[dir="rtl"] .hiw__timeline { padding-left: 0; padding-right: 60px; }
[dir="rtl"] .hiw__line { left: auto; right: 23px; }
[dir="rtl"] .hiw__step-left { left: auto; right: -60px; }
[dir="rtl"] .proj-item__deliverables span { flex-direction: row-reverse; }
[dir="rtl"] .contact__cards { direction: rtl; }
[dir="rtl"] .footer__ticket-bottom { direction: rtl; }
[dir="rtl"] .footer__socials { flex-direction: row-reverse; }
[dir="rtl"] .footer__bottom { flex-direction: row-reverse; }
[dir="rtl"] .mobile-menu__socials { flex-direction: row-reverse; }
[dir="rtl"] .hero__cta { flex-direction: row-reverse; }
[dir="rtl"] .mobile-menu__actions { flex-direction: row-reverse; }
[dir="rtl"] .hero__bg-text { font-family: var(--font-heading); }
[dir="rtl"] .about__bio br { display: block; }
[dir="rtl"] .footer__cta { flex-direction: row-reverse; }
[dir="rtl"] .proj-item__tags { flex-direction: row-reverse; justify-content: flex-end; }
[dir="rtl"] .proj-item__badges { left: auto; right: 12px; }
[dir="rtl"] .proj-item__image { direction: rtl; }
[dir="rtl"] .stat-card { text-align: center; }
[dir="rtl"] .contact__form { direction: rtl; }
[dir="rtl"] .contact__socials { flex-direction: row-reverse; justify-content: flex-end; }
[dir="rtl"] .footer__nav a, [dir="rtl"] .footer__reach a { text-align: right; }
[dir="rtl"] .service-card__tags { flex-direction: row-reverse; justify-content: flex-end; }
[dir="rtl"] .hiw__step-tags { flex-direction: row-reverse; justify-content: flex-end; }
[dir="rtl"] .mobile-menu__link { font-family: var(--font-heading); }
[dir="rtl"] body { font-family: 'Cairo', 'Inter', sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { font-family: 'Cairo', 'Bricolage Grotesque', sans-serif; }

/* NAV */
.nav { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; align-items: center; gap: 6px; pointer-events: none; max-width: calc(100% - 48px); }
.nav__logo, .nav__links, .nav__actions { pointer-events: auto; background: var(--white); border-radius: 9999px; border: 1px solid rgba(0,0,0,0.07); box-shadow: 0 4px 22px rgba(0,0,0,0.10); }
.nav__logo { padding: 13px 24px; display: flex; align-items: center; gap: 12px; }
.nav__logo a { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--bg); }
.nav__hamburger { display: none; flex-direction: column; gap: 5px; width: 36px; height: 36px; border-radius: 50%; background: var(--teal-dark); align-items: center; justify-content: center; padding: 0; }
.nav__hamburger span { width: 18px; height: 2px; background: var(--accent); transition: all 0.3s var(--ease); }
.nav__hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.nav__links { display: flex; align-items: center; gap: 2px; padding: 6px 6px; }
.nav__links a { padding: 9px 16px; border-radius: 9999px; font-size: 13px; font-weight: 500; color: rgba(0,0,0,0.58); transition: all 0.25s var(--ease); white-space: nowrap; }
.nav__links a:hover { background: rgba(0,0,0,0.06); color: var(--bg); }
.nav__links a.active { background: var(--accent); color: var(--teal-dark); font-weight: 600; }
.nav__actions { padding: 6px 8px; display: flex; align-items: center; gap: 8px; }
.nav__download { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 9999px; background: var(--white); border: 1.5px solid var(--teal-dark); color: var(--teal-dark); font-size: 13px; font-weight: 600; transition: all 0.25s var(--ease); white-space: nowrap; }
.nav__download:hover { background: var(--teal-dark); color: var(--white); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; transition: all 0.3s var(--ease); white-space: nowrap; }
.btn--cta { padding: 10px 20px; border-radius: 9999px; background: var(--accent); color: var(--bg); border: 2px solid var(--teal-dark); box-shadow: 3px 3px 0px 0px var(--teal-dark); font-size: 13px; font-weight: 600; }
.btn--cta:hover { transform: translateY(-2px); box-shadow: 5px 5px 0px 0px var(--teal-dark); }
.btn--primary { padding: 16px 36px; border-radius: 9999px; background: var(--accent); color: var(--bg); border: 2px solid var(--bg); box-shadow: 5px 5px 0px 0px var(--bg); font-size: 15px; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 7px 7px 0px 0px var(--bg); }
.btn--secondary { padding: 16px 36px; border-radius: 9999px; background: var(--white); color: var(--bg); border: 2px solid var(--bg); box-shadow: 5px 5px 0px 0px var(--bg); font-size: 15px; }
.btn--secondary:hover { transform: translateY(-2px); box-shadow: 7px 7px 0px 0px var(--bg); }
.btn--project { padding: 10px 24px; border-radius: 9999px; background: var(--accent); color: var(--bg); border: 2px solid var(--bg); box-shadow: 3px 3px 0px 0px var(--bg); font-size: 13px; font-weight: 600; }
.btn--project:hover { transform: translateY(-2px); box-shadow: 5px 5px 0px 0px var(--bg); }
.btn--submit { padding: 14px 32px; border-radius: 9999px; background: var(--teal-dark); color: var(--white); border: 2px solid var(--teal-dark); box-shadow: 5px 5px 0px 0px var(--accent); font-size: 14px; width: 100%; }
.btn--submit:hover { transform: translateY(-2px); box-shadow: 7px 7px 0px 0px var(--accent); }

/* MOBILE MENU */
.mobile-menu { position: fixed; inset: 0; background: var(--bg); z-index: 999; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; opacity: 0; visibility: hidden; transition: all 0.5s var(--ease); backdrop-filter: blur(20px); }
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-menu__link { font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; color: var(--white); transition: all 0.3s; opacity: 0; transform: translateY(30px) rotateX(-10deg); }
.mobile-menu.active .mobile-menu__link { opacity: 1; transform: translateY(0) rotateX(0); }
.mobile-menu.active .mobile-menu__link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu__link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-menu__link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu__link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-menu__link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu__link:hover { color: var(--accent); }
.light .mobile-menu { background: var(--bg); }
.light .mobile-menu__link { color: var(--text-dark); }
.light .mobile-menu__link:hover { color: var(--accent); }
.light .mobile-menu__footer a { color: var(--text-muted); }
.mobile-menu__footer { position: absolute; bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 16px; opacity: 0; transition: opacity 0.5s 0.4s; }
.mobile-menu.active .mobile-menu__footer { opacity: 1; }
.mobile-menu__footer a { font-size: 0.85rem; color: var(--text-muted); }
.mobile-menu__socials { display: flex; gap: 20px; }
.mobile-menu__actions { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 16px; }
.theme-toggle--mobile { margin-top: 0; }

/* HERO */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; padding: 140px 24px 80px; }
.hero__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px); background-size: 48px 48px; opacity: 0.5; pointer-events: none; animation: gridDrift 28s linear infinite; }
.hero__glow { position: absolute; width: 900px; height: 700px; background: radial-gradient(ellipse at center, rgba(207,247,238,0.09) 0%, transparent 70%); top: 15%; left: 50%; transform: translateX(-50%); pointer-events: none; filter: blur(30px); animation: heroGlowPulse 6s ease-in-out infinite; }
.hero__bg-text { position: absolute; font-family: var(--font-heading); font-size: clamp(5rem, 14vw, 16rem); font-weight: 900; color: rgba(255,255,255,0.02); white-space: nowrap; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; user-select: none; }
.hero__container { position: relative; z-index: 1; pointer-events: none; max-width: 1100px; }
.hero__container > * { pointer-events: auto; }
.hero__badge { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 9999px; background: var(--white); border: 2px solid var(--bg); font-size: 14px; font-weight: 500; color: var(--bg); margin-bottom: 28px; opacity: 0; animation: fadeUp 0.7s 0.15s forwards, badgeFloat 3.2s 1s ease-in-out infinite; }
.badge-dot { width: 8px; height: 8px; background: #22C55E; border-radius: 50%; animation: pulse 2s infinite; }
.badge-dot--sm { width: 6px; height: 6px; }
@keyframes pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.4); } 50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(34,197,94,0); } }
@keyframes badgeFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes heroGlowPulse { 0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(1); } 50% { opacity: 0.85; transform: translateX(-50%) scale(1.04); } }
@keyframes gridDrift { 0% { transform: translate(0, 0); } 100% { transform: translate(24px, 24px); } }
.hero__title { font-family: var(--font-heading); max-width: 820px; margin: 0 auto 24px; line-height: 1; }
.hero__eyebrow { display: block; font-family: var(--font-heading); font-size: clamp(0.85rem, 1.8vw, 1.05rem); font-weight: 600; color: rgba(255,255,255,0.62); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; line-height: 1.4; opacity: 0; animation: fadeUp 0.7s 0.3s forwards; }
.hero__main { display: block; font-family: var(--font-heading); font-size: clamp(2.8rem, 6.5vw, 4.9rem); font-weight: 900; line-height: 1.05; color: var(--white); letter-spacing: -0.03em; opacity: 0; animation: fadeUp 0.8s 0.5s forwards; }
.hero__highlight { color: var(--accent); }
.hero__typed { color: var(--accent); font-weight: 800; position: relative; display: inline-block; min-width: 14ch; text-align: center; }
.hero__cursor { color: var(--accent); font-weight: 300; font-size: 1.1em; margin-left: 2px; animation: blink 1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero__subtitle { font-size: clamp(1rem, 1.8vw, 1.15rem); color: var(--text-muted); max-width: 640px; margin: 0 auto 36px; line-height: 1.75; opacity: 0; animation: fadeUp 0.8s 0.65s forwards; }
.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.8s 0.85s forwards; }
.hero__cta .btn { transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease); will-change: transform; }
.hero__cta .btn--primary { padding: 16px 32px; font-size: 15px; font-weight: 700; box-shadow: 0 8px 32px rgba(207,247,238,0.15); }
.hero__cta .btn--primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(207,247,238,0.22); }
.hero__cta .btn--secondary:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.14); }
.light .hero__cta .btn--primary { background: var(--accent); color: var(--white); border-color: var(--teal-dark); box-shadow: 5px 5px 0px 0px var(--teal-dark); }
.light .hero__cta .btn--secondary { background: var(--white); color: var(--text-dark); border-color: var(--border); box-shadow: 5px 5px 0px 0px rgba(0,0,0,0.06); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* MARQUEE */
.marquee-section { padding: 40px 0; overflow: hidden; }
.marquee-row { display: flex; overflow: hidden; margin-bottom: 16px; }
.marquee-row:last-child { margin-bottom: 0; }
.marquee-track { display: flex; align-items: center; gap: 20px; width: max-content; animation: marqueeLeft 40s linear infinite; }
.marquee-row--right .marquee-track { animation: marqueeRight 45s linear infinite; }
@keyframes marqueeLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes marqueeRight { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }
.marquee-pill { padding: 10px 24px; border-radius: 9999px; background: var(--accent); color: var(--text-dark); font-family: var(--font-heading); font-size: 0.95rem; font-weight: 600; white-space: nowrap; border: 2px solid var(--teal-dark); }
.marquee-star { color: var(--accent); font-size: 1.2rem; }

/* BUILT DIFFERENT */
.built-different { padding: 110px 0 70px; background: var(--bg); overflow: hidden; position: relative; }
.built-different::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px); background-size: 48px 48px; opacity: 0.35; pointer-events: none; }
.built-different::after { content: ""; position: absolute; width: 800px; height: 600px; background: radial-gradient(ellipse at center, rgba(207,247,238,0.07) 0%, transparent 70%); top: 5%; left: 50%; transform: translateX(-50%); pointer-events: none; filter: blur(24px); }
.built-different__header { text-align: center; margin-bottom: 44px; position: relative; display: flex; align-items: center; justify-content: center; z-index: 1; }
.built-different__stars { position: absolute; left: 16%; top: -8px; display: flex; align-items: flex-start; gap: 2px; pointer-events: none; }
.bd-star { display: inline-block; line-height: 1; }
.bd-star--sm { font-size: 16px; color: #7EE8D4; }
.bd-star--sm:first-child { transform: translateY(-6px); font-size: 18px; }
.bd-star--sm:last-child { font-size: 14px; transform: translateY(22px) translateX(-6px); }
.bd-star--lg { font-size: 62px; background: linear-gradient(135deg, #fff 15%, #CFF7EE 45%, #7EE8D4 75%, #fff 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 4px 12px rgba(126,232,212,0.5)); margin: 0 2px; }
.built-different__heading { font-family: var(--font-heading); font-size: clamp(3rem, 11vw, 7rem); font-weight: 900; color: var(--white); line-height: 0.9; letter-spacing: -0.04em; text-align: center; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.bd-gradient { background: linear-gradient(90deg, #CFF7EE 0%, #7EE8D4 50%, #fff 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.built-different__pills { position: relative; height: 340px; max-width: 1300px; margin: 0 auto; }
.bd-pill { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 9999px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; border: 1.5px solid rgba(0,0,0,0.08); box-shadow: 0 3px 12px rgba(0,0,0,0.25); cursor: default; transition: transform 0.25s var(--ease); }
.bd-pill:hover { transform: scale(1.08) rotate(0deg) !important; z-index: 10; }
.bd-pill--linkedin { background: #fff; color: #0A66C2; border-color: #0A66C2; }
.bd-pill--react { background: #61DAFB; color: #000; border-color: #000; }
.bd-pill--zapier { background: #FF4A00; color: #fff; border-color: #000; }
.bd-pill--slack { background: #4A154B; color: #fff; border-color: #000; }
.bd-pill--meta { background: #1877F2; color: #fff; border-color: #000; }
.bd-pill--analytics { background: #F59E0B; color: #fff; border-color: #000; }
.bd-pill--nextjs { background: #000; color: #fff; border-color: #333; }
.bd-pill--figma { background: #F24E1E; color: #fff; border-color: #000; }
.bd-pill--youtube { background: #FF0000; color: #fff; border-color: #000; }
.bd-pill--flutter { background: #02569B; color: #fff; border-color: #000; }
.bd-pill--tailwind { background: #06B6D4; color: #fff; border-color: #000; }
.bd-pill--supabase { background: #3ECF8E; color: #000; border-color: #000; }
.bd-pill--firebase { background: #FFCA28; color: #000; border-color: #000; }
.bd-pill--typescript { background: #3178C6; color: #fff; border-color: #000; }
.bd-pill--wordpress { background: #21759B; color: #fff; border-color: #000; }
.bd-pill--notion { background: #fff; color: #000; border-color: #000; }
.bd-pill--github { background: #24292F; color: #fff; border-color: #000; }
.bd-pill--whatsapp { background: #25D366; color: #fff; border-color: #000; }
.bd-pill--instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; border-color: #000; }
.bd-pill--facebook { background: #1877F2; color: #fff; border-color: #000; }
.bd-pill--googleads { background: #34A853; color: #fff; border-color: #000; }
.bd-pill--tiktok { background: #000; color: #fff; border-color: #333; }
.bd-pill--snapchat { background: #FFFC00; color: #000; border-color: #000; }
.bd-pill--vercel { background: #000; color: #fff; border-color: #333; }
.bd-pill--twitter { background: #000; color: #fff; border-color: #333; }

/* SECTION HEADINGS */
.about__script, .services__script, .hiw__script, .work__script, .contact__script, .footer__script { font-family: 'Georgia', serif; font-style: italic; font-size: 1.1rem; color: var(--accent); margin-bottom: 12px; }
.about__heading, .services__heading, .hiw__heading, .work__heading { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--white); margin-bottom: 50px; line-height: 1.1; }

/* ABOUT */
.about { padding: 100px 0; position: relative; overflow: visible; }
.about__container { position: relative; z-index: 1; }
.about__script, .about__heading { text-align: center; }
.about__heading { font-size: clamp(2.2rem, 4.5vw, 3.5rem); }
.about__center { display: flex; justify-content: center; margin-bottom: 40px; }
.about__photo-card { position: relative; width: 420px; max-width: 92vw; border-radius: 28px; overflow: hidden; background: var(--white); border: 2px solid var(--teal-dark); box-shadow: 0 24px 64px rgba(0,0,0,0.32); z-index: 2; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.about__photo-card:hover { transform: translateY(-6px); box-shadow: 0 32px 80px rgba(0,0,0,0.42); }
.about__photo-wrapper { position: relative; overflow: hidden; }
.about__photo-top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; justify-content: space-between; padding: 12px; }
.about__photo-badge { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 9999px; background: var(--white); font-size: 11px; font-weight: 600; color: var(--bg); box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.about__photo-badge--available { gap: 5px; }
.about__photo-badge--stars { color: #f59e0b; font-size: 13px; letter-spacing: 1px; }
.about__photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.about__photo-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 60px 20px 20px; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%); z-index: 3; }
.about__photo-name { display: block; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--white); margin-bottom: 2px; }
.about__photo-role { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.about__card-info { padding: 20px; background: var(--white); }
.about__location { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 16px; }
.about__location svg { color: var(--teal-dark); }
.about__card-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.about__card-stat { text-align: center; }
.about__card-stat-num { display: block; font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--bg); }
.about__card-stat-label { font-size: 0.65rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.btn--card-cta { display: block; width: 100%; padding: 14px; border-radius: 9999px; background: #CFF7EE; color: var(--bg); border: 2px solid var(--teal-dark); box-shadow: 3px 3px 0px 0px var(--teal-dark); font-size: 14px; font-weight: 600; text-align: center; transition: all 0.3s var(--ease); }
.btn--card-cta:hover { transform: translateY(-2px); box-shadow: 5px 5px 0px 0px var(--teal-dark); }
.about__bio { text-align: center; font-size: 1.1rem; line-height: 1.8; color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.about__floating-pills { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.float-pill { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 9999px; font-size: 0.72rem; font-weight: 600; color: var(--white); white-space: nowrap; box-shadow: 0 3px 10px rgba(0,0,0,0.22); opacity: 0; animation: floatIn 0.6s forwards, floatSlow 5s ease-in-out infinite alternate; pointer-events: auto; transition: transform 0.25s var(--ease); z-index: 5; will-change: transform; }
.float-pill:hover { transform: scale(1.08) !important; }
@keyframes floatIn { from { opacity: 0; transform: translateY(14px) scale(0.92); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes floatSlow { 0% { translate: 0 0; } 100% { translate: 0 -6px; } }
.float-pill--wordpress { background: #21759B; animation-delay: 0.1s, 0.7s; }
.float-pill--elementor { background: #92003B; animation-delay: 0.12s, 0.72s; }
.float-pill--woo { background: #96588A; animation-delay: 0.14s, 0.74s; }
.float-pill--php { background: #777BB4; animation-delay: 0.16s, 0.76s; }
.float-pill--js { background: #F7DF1E; color: #000; animation-delay: 0.18s, 0.78s; }
.float-pill--html { background: #E34F26; animation-delay: 0.2s, 0.8s; }
.float-pill--css { background: #1572B6; animation-delay: 0.22s, 0.82s; }
.float-pill--react { background: #61DAFB; color: #000; animation-delay: 0.24s, 0.84s; }
.float-pill--seo { background: #34A853; animation-delay: 0.26s, 0.86s; }
.float-pill--perf { background: #00ACC1; color: #000; animation-delay: 0.28s, 0.88s; }
.float-pill--js::before, .float-pill--js::after { display: none !important; content: none !important; }

/* SERVICES (BENTO GRID) - image design */
.services { padding: 100px 0; }
.services__script, .services__heading { text-align: center; }
.services__bento { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.service-card { border-radius: 20px; padding: 32px; border: 2px solid var(--teal-dark); transition: all 0.35s var(--ease); }
.service-card:hover { transform: translateY(-4px) rotate(0deg) !important; box-shadow: 6px 6px 0px 0px var(--teal-dark); }
.service-card.visible { opacity: 1; transform: translateY(0); }
.service-card--tilt-left { background: rgb(207, 247, 238); border: 2px solid rgb(0, 77, 90); transform: rotate(-1.8deg); }
.service-card--tilt-right { transform: rotate(1.8deg); }
.service-card--tilt-left-sm { transform: rotate(-0.9deg); }
.service-card--tilt-right-sm { transform: rotate(0.9deg); }
.service-card__icon { width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; border: 1.5px solid var(--teal-dark); }
.service-card--mint .service-card__icon { background: var(--white); }
.service-card--white .service-card__icon { background: #CFF7EE; }
.service-card__icon svg { width: 24px; height: 24px; }
.service-card__title { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.service-card__desc { font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.service-card__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.service-card__tags span { padding: 5px 14px; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; border: 1.5px solid; transition: all 0.3s; }

/* HOW I WORK - tightened premium */
.how-i-work { padding: 80px 0; }
.hiw__timeline { position: relative; padding-left: 64px; max-width: 760px; margin: 0 auto; }
.hiw__line { position: absolute; left: 23px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, rgba(207,247,238,0.24), rgba(207,247,238,0.06)); }
.hiw__step { display: grid; grid-template-columns: 1fr; padding: 32px 0; border-bottom: 1px solid rgba(207,247,238,0.12); position: relative; opacity: 0; transform: translateX(-16px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.hiw__step.visible { opacity: 1; transform: translateX(0); }
.hiw__step:nth-child(2) { transition-delay: 0.1s; }
.hiw__step:nth-child(3) { transition-delay: 0.2s; }
.hiw__step:nth-child(4) { transition-delay: 0.3s; }
.hiw__step:nth-child(5) { transition-delay: 0.4s; }
.hiw__step:last-child { border-bottom: none; }
.hiw__step-left { position: absolute; left: -60px; top: 40px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; z-index: 1; }
.hiw__step-num { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--accent); }
.hiw__step-title { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--white); margin-bottom: 4px; transition: color 0.3s; }
.hiw__step:hover .hiw__step-title { color: var(--accent); }
.hiw__step-sub { display: block; font-size: 0.7rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; }
.hiw__step-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 16px; }
.hiw__step-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.hiw__step-tags span { padding: 5px 14px; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; background: rgba(207,247,238,0.08); color: var(--accent); border: 1px solid rgba(207,247,238,0.2); }

/* WORK / PROJECTS */
.work { padding: 100px 0; }
.work__script, .work__heading { text-align: center; }
.work__heading { font-size: clamp(2.2rem, 4.5vw, 3.5rem); }

.projects__deck {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px 80px;
}

.proj-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    border-radius: 28px;
    overflow: hidden;
    border: 2px solid var(--teal-dark);
    padding: 32px;
    position: sticky;
    top: 100px;
    margin-bottom: 60px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transition: box-shadow 0.3s var(--ease);
}

.proj-item:nth-child(1) { z-index: 6; }
.proj-item:nth-child(2) { z-index: 5; }
.proj-item:nth-child(3) { z-index: 4; }
.proj-item:nth-child(4) { z-index: 3; }
.proj-item:nth-child(5) { z-index: 2; }
.proj-item:nth-child(6) { z-index: 1; }

/* PARALLAX */
[data-parallax] { will-change: transform; transition: transform 0.1s linear; }

/* TILT HOVER */
.proj-item { transform-style: preserve-3d; perspective: 1000px; transition: box-shadow 0.3s var(--ease), transform 0.1s ease-out; }
.proj-item:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.3); }

.proj-item--featured { padding: 40px; gap: 48px; border-width: 2.5px; box-shadow: 0 16px 56px rgba(0,0,0,0.24); }
.proj-item__featured-badge { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-dark); background: var(--white); border: 1.5px solid var(--teal-dark); padding: 5px 12px; border-radius: 9999px; margin-bottom: 14px; }
.proj-item__image .project__browser { transition: transform 0.4s var(--ease); }
.proj-item:hover .project__browser { transform: scale(1.02); }
.btn-arrow { display: inline-block; transition: transform 0.2s var(--ease); }
.btn--project:hover .btn-arrow { transform: translateX(4px); }

.proj-item__image { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16/10; }

.project__browser { width: 100%; height: 100%; display: flex; flex-direction: column; background: var(--text-dark); }
.project__browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: rgba(0,0,0,0.3); border-bottom: 1px solid rgba(207,247,238,0.1); }
.project__browser-bar span:first-child { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; }
.project__browser-bar span:nth-child(2) { width: 8px; height: 8px; border-radius: 50%; background: #febc2e; }
.project__browser-bar span:nth-child(3) { width: 8px; height: 8px; border-radius: 50%; background: #28c840; }
.project__browser-url { font-family: monospace; font-size: 0.6rem; color: rgba(255,255,255,0.4); margin-left: 10px; }
.project__browser-content { flex: 1; padding: 15px; overflow: hidden; }

.project__mockup-grid { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.mockup-nav { height: 20px; background: rgba(207,247,238,0.1); border-radius: 4px; }
.mockup-hero { height: 50px; background: rgba(207,247,238,0.06); border-radius: 4px; }
.mockup-cards { display: flex; gap: 8px; flex: 1; }
.mockup-card { flex: 1; background: rgba(207,247,238,0.08); border-radius: 4px; border: 1px solid rgba(207,247,238,0.12); }

.project__mockup-saas { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; height: 100%; }
.mockup-circle { width: 50px; height: 50px; border-radius: 50%; border: 2px solid rgba(207,247,238,0.3); }
.mockup-lines { display: flex; flex-direction: column; gap: 8px; width: 80%; }
.mockup-line { height: 8px; background: rgba(255,255,255,0.05); border-radius: 4px; }
.mockup-line--short { width: 60%; }

.project__mockup-dashboard { display: flex; gap: 10px; height: 100%; }
.mockup-sidebar { width: 35px; background: rgba(207,247,238,0.08); border-radius: 4px; }
.mockup-main { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.mockup-chart { height: 60%; background: rgba(207,247,238,0.06); border-radius: 4px; }
.mockup-table { flex: 1; background: rgba(207,247,238,0.04); border-radius: 4px; }

.proj-item__badges { position: absolute; bottom: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; }
.proj-item__badges span { padding: 4px 10px; border-radius: 9999px; background: var(--white); font-size: 0.65rem; font-weight: 600; color: var(--bg); border: 1.5px solid var(--teal-dark); }

.proj-item__tags { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.proj-item__tags span { padding: 4px 12px; border-radius: 9999px; font-size: 0.7rem; font-weight: 600; border: 1.5px solid var(--teal-dark); color: var(--teal-dark); }
.proj-item--white .proj-item__tags span { border-color: var(--text-muted); color: var(--text-muted); }

.proj-item__title { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; color: var(--bg); line-height: 1.2; }
.proj-item__desc { font-size: 0.9rem; line-height: 1.7; margin-bottom: 16px; color: var(--text-dark); }
.proj-item--white .proj-item__desc { color: var(--text-muted); }

.proj-item__deliverables { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.proj-item__deliverables span { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-dark); }
.proj-item--white .proj-item__deliverables span { color: var(--text-muted); }
.proj-item__deliverables .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-dark); flex-shrink: 0; }

.github-cta { text-align: center; margin-top: 80px; padding-top: 60px; border-top: 1px solid rgba(207,247,238,0.16); }

/* STATS */
.stats { padding: 100px 0; position: relative; background-image: radial-gradient(circle, rgba(207,247,238,0.06) 1px, transparent 1px); background-size: 28px 28px; }
.stats__header { text-align: center; margin-bottom: 60px; }
.stats__script { font-family: 'Georgia', serif; font-style: italic; font-size: 1.15rem; color: var(--accent); margin-bottom: 10px; }
.stats__heading { font-family: var(--font-heading); font-size: clamp(2.2rem, 4.5vw, 3.5rem); font-weight: 800; color: var(--white); line-height: 1.1; letter-spacing: -0.02em; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card { position: relative; background: #0F0F0F; border-radius: 18px; padding: 36px 20px 28px; text-align: center; overflow: hidden; border: 1px solid rgba(207,247,238,0.14); transition: all 0.35s var(--ease); }
.stat-card:hover { background: #141414; border-color: rgba(207,247,238,0.3); transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.stat-card__icon { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid #CFF7EE; display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; color: #CFF7EE; background: rgba(207,247,238,0.06); }
.stat-card__number { display: block; font-family: var(--font-heading); font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 800; color: #E6FFFB; margin-bottom: 10px; line-height: 1; letter-spacing: -0.03em; }
.stat-card__label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.stat-card__sub { display: block; font-size: 0.7rem; color: rgba(255,255,255,0.38); }

/* CONTACT - image design */
.contact { padding: 100px 0; background: var(--bg); }
.contact__header { text-align: center; max-width: 600px; margin: 0 auto 48px; }
.contact__script { font-family: 'Georgia', serif; font-style: italic; font-size: 1.25rem; color: var(--accent); margin-bottom: 10px; }
.contact__heading { font-family: var(--font-heading); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; color: var(--white); margin-bottom: 12px; line-height: 1; letter-spacing: -0.02em; }
.contact__desc { color: rgba(207,247,238,0.6); font-size: 0.95rem; line-height: 1.6; }
.contact__grid { display: grid; grid-template-columns: 380px 1fr; gap: 28px; align-items: start; }
.contact__cards { display: flex; flex-direction: column; gap: 14px; }
.contact__card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; border: 2px solid var(--teal-dark); background: #F0FFFD; text-decoration: none; color: var(--bg); transition: all 0.25s var(--ease); }
.contact__card:hover { transform: translateY(-2px); border-color: var(--teal-dark); box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.contact__card--featured { background: #CFF7EE; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 20px; }
.contact__card--featured:hover { transform: none; box-shadow: none; }
.contact__card-top { display: flex; align-items: center; gap: 12px; }
.contact__card-icon { width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--teal-dark); background: var(--white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact__card-text { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.contact__card-label { font-size: 0.62rem; font-weight: 700; color: #5A7A82; text-transform: uppercase; letter-spacing: 0.9px; line-height: 1; }
.contact__card-value { font-size: 0.88rem; font-weight: 700; color: #0A2E33; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact__card--featured .contact__card-value { font-size: 0.92rem; }
.contact__card-sub { font-size: 0.73rem; color: #5A7A82; line-height: 1.4; margin: 0; padding-inline-start: 50px; }
.contact__card-arrow { font-size: 1rem; color: var(--teal-dark); flex-shrink: 0; transition: transform 0.25s var(--ease); }
.contact__card:hover .contact__card-arrow { transform: translateX(3px); }
.contact__form { background: #F0FFFD; border: 2px solid var(--teal-dark); border-radius: 20px; padding: 28px; }
.contact__form-title { font-family: var(--font-heading); font-size: 1.55rem; font-weight: 800; color: #0A2E33; margin-bottom: 4px; line-height: 1; }
.contact__form-sub { font-size: 0.82rem; color: #5A7A82; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 700; color: #0A2E33; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 16px; border-radius: 12px; border: 2px solid #0F4A4A; background: var(--white); color: var(--bg); font-family: var(--font-body); font-size: 0.88rem; transition: all 0.25s var(--ease); outline: none; appearance: none; }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23043A3A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; cursor: pointer; }
[dir="rtl"] .form-group select { background-position: left 12px center; padding-right: 16px; padding-left: 36px; }
.form-group select:invalid { color: #9AAEB3; }
.form-group select option { color: #1A2E33; background: #fff; }
.form-group select option[value=""][disabled] { color: #9AAEB3; }
.form-group input:hover, .form-group textarea:hover, .form-group select:hover { border-color: var(--teal-dark); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: #0A4A4A; box-shadow: 0 0 0 3px rgba(207,247,238,0.4); }
.form-group input::placeholder, .form-group textarea::placeholder { color: #9AAEB3; }
.form-group textarea { resize: vertical; min-height: 130px; }
.contact__availability { text-align: center; font-size: 0.78rem; color: #5A7A82; margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.contact__submit { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 20px; border-radius: 9999px; border: 2px solid #0A4A4A; background: #CFF7EE; color: #0A2E33; font-family: var(--font-heading); font-size: 0.92rem; font-weight: 700; cursor: pointer; box-shadow: 0 4px 0 #0A4A4A; transition: all 0.2s var(--ease); margin-top: 6px; }
.contact__submit:hover { transform: translateY(-1px); box-shadow: 0 5px 0 #0A4A4A; background: #BFF0E6; }
.contact__submit:active { transform: translateY(2px); box-shadow: 0 2px 0 #0A4A4A; }
.form-status { margin-top: 12px; font-size: 0.85rem; padding: 10px 16px; border-radius: 8px; display: none; }
.form-status.success { display: block; background: rgba(34,197,94,0.1); border: 1px solid #22C55E; color: #16a34a; }
.form-status.error { display: block; background: rgba(239,68,68,0.1); border: 1px solid #ef4444; color: #dc2626; }
[dir="rtl"] .contact__card-sub { padding-inline-start: 0; padding-inline-end: 50px; }
[dir="rtl"] .contact__card:hover .contact__card-arrow { transform: translateX(-3px); }

/* FOOTER - image design */
.footer { padding: 40px 0 24px; background: var(--bg); }
.footer__ticket { position: relative; border-radius: 22px; overflow: hidden; border: 2px solid var(--teal-dark); box-shadow: 7px 7px 0px 0px var(--teal-dark); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.footer__ticket:hover { transform: translateY(-4px); box-shadow: 10px 10px 0px 0px var(--teal-dark); }
.footer__ticket-top { background: #CFF7EE; padding: 56px 48px 52px; text-align: center; }
.footer__script { font-family: 'Georgia', serif; font-style: italic; font-size: 1.05rem; color: #0A4A4A; margin-bottom: 10px; }
.footer__heading { font-family: var(--font-heading); font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 800; color: #0A2E33; margin-bottom: 14px; line-height: 1; letter-spacing: -0.02em; }
.footer__highlight { position: relative; }
.footer__desc { color: #3A5A5E; font-size: 0.95rem; max-width: 480px; margin: 0 auto 26px; line-height: 1.6; }
.footer__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.footer__btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 22px; border-radius: 9999px; border: 2px solid #0A4A4A; background: var(--white); color: #0A2E33; font-family: var(--font-body); font-size: 0.88rem; font-weight: 700; cursor: pointer; box-shadow: 0 4px 0 #0A4A4A; transition: all 0.2s var(--ease); text-decoration: none; }
.footer__btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 #0A4A4A; }
.footer__btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #0A4A4A; }
.footer__ticket-perf { position: relative; height: 0; border-top: 2px dashed #0A4A4A; margin: 0; }
.footer__ticket-perf::before, .footer__ticket-perf::after { content: ""; position: absolute; top: 50%; width: 14px; height: 14px; background: var(--bg); border: 2px solid #0A4A4A; border-radius: 50%; transform: translateY(-50%); z-index: 1; }
.footer__ticket-perf::before { left: -7px; }
.footer__ticket-perf::after { right: -7px; }
.light .footer__ticket-perf::before, .light .footer__ticket-perf::after { background: #FAFAF8; }
.footer__ticket-bottom { background: var(--white); padding: 40px 48px; display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 40px; }
.footer__logo { font-family: var(--font-heading); font-size: 1.45rem; font-weight: 800; color: #0A2E33; margin-bottom: 10px; display: inline-block; letter-spacing: -0.02em; }
.footer__brand p { color: #5A7A82; font-size: 0.84rem; line-height: 1.7; margin-bottom: 18px; max-width: 360px; }
.footer__socials { display: flex; gap: 10px; }
.footer__socials a { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid #0A4A4A; background: var(--white); display: flex; align-items: center; justify-content: center; color: #0A2E33; flex-shrink: 0; transition: all 0.25s var(--ease); padding: 0; }
.footer__socials a:hover { background: #0A2E33; color: var(--white); border-color: #0A2E33; transform: translateY(-2px); }
.footer__socials a:hover i { color: var(--white) !important; }
.contact__card-icon i { line-height: 1; }
.footer__nav h4, .footer__reach h4 { font-family: var(--font-body); font-size: 0.68rem; font-weight: 800; color: #0A4A4A; margin-bottom: 16px; letter-spacing: 1.2px; text-transform: uppercase; }
.footer__nav a, .footer__reach a { display: block; font-size: 0.84rem; color: #5A7A82; margin-bottom: 10px; transition: color 0.25s; text-decoration: none; }
.footer__nav a:hover, .footer__reach a:hover { color: #0A2E33; }
.footer__reach p { font-size: 0.84rem; color: #5A7A82; margin-bottom: 14px; }
.footer__top-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 9999px; border: 2px solid #0A4A4A; background: #CFF7EE; font-size: 0.82rem; font-weight: 700; color: #0A2E33; cursor: pointer; box-shadow: 0 3px 0 #0A4A4A; transition: all 0.2s var(--ease); }
.footer__top-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 #0A4A4A; background: #BFF0E6; }
.footer__top-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #0A4A4A; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding: 18px 0 0; border-top: none; margin-top: 18px; }
.footer__bottom p { font-size: 0.72rem; color: rgba(207,247,238,0.45); }
.light .footer__bottom p { color: rgba(0,0,0,0.4); }

/* EXPERIENCE & SKILLS — Optimized Premium */
.experience { padding: 96px 0 100px; background: var(--bg); position: relative; overflow: hidden; }
.experience::before { content:""; position:absolute; inset:0; background-image: linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px); background-size:48px 48px; opacity:0.4; pointer-events:none; }
.experience::after { content:""; position:absolute; width:760px; height:560px; background: radial-gradient(ellipse at center, rgba(207,247,238,0.06) 0%, transparent 70%); top: 8%; left:50%; transform:translateX(-50%); pointer-events:none; filter:blur(20px); }
.exp__script { font-family:'Georgia',serif; font-style:italic; font-size:1.15rem; color:var(--accent); margin-bottom:14px; text-align:center; position:relative; z-index:1; letter-spacing:0.02em; }
.exp__heading { font-family:var(--font-heading); font-size:clamp(2.2rem,4.4vw,3.25rem); font-weight:900; color:var(--white); text-align:center; margin-bottom:54px; line-height:1; letter-spacing:-0.035em; position:relative; z-index:1; }
.exp__grid { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(300px,0.9fr); gap:18px; align-items:stretch; margin-bottom:18px; position:relative; z-index:1; }
.exp__card { background:var(--white); border:1.5px solid rgba(0,77,90,0.9); border-radius:20px; padding:28px 26px; box-shadow:0 8px 32px rgba(0,0,0,0.22), 0 1px 3px rgba(0,0,0,0.15); position:relative; z-index:1; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.exp__card:hover { transform:translateY(-3px); box-shadow:0 14px 40px rgba(0,0,0,0.28), 0 4px 12px rgba(0,0,0,0.12); }
.exp__card--main { background:linear-gradient(180deg, #D6FFF5 0%, #CFF7EE 100%); display:flex; flex-direction:column; justify-content:center; }
.exp__card-header { display:flex; align-items:flex-start; gap:14px; margin-bottom:22px; flex-wrap:nowrap; }
.exp__icon { width:42px; height:42px; border-radius:12px; background:var(--white); border:1.5px solid #0A4A4A; display:flex; align-items:center; justify-content:center; color:#0A4A4A; font-size:15px; flex-shrink:0; box-shadow:0 2px 8px rgba(0,0,0,0.08); }
.exp__role { font-family:var(--font-heading); font-size:1.08rem; font-weight:800; color:#0A2E33; line-height:1.25; letter-spacing:-0.015em; }
.exp__company { font-size:0.78rem; color:#5A7A82; font-weight:600; margin-top:2px; }
.exp__badge { margin-left:auto; display:inline-flex; align-items:center; gap:6px; padding:7px 13px; border-radius:9999px; background:var(--white); border:1.5px solid #0A4A4A; font-size:0.68rem; font-weight:800; color:#0A4A4A; white-space:nowrap; letter-spacing:0.03em; flex-shrink:0; }
.exp__badge::before { content:""; width:7px; height:7px; border-radius:50%; background:#22C55E; box-shadow:0 0 0 4px rgba(34,197,94,0.15); flex-shrink:0; }
.exp__list { list-style:none; display:flex; flex-direction:column; gap:11px; }
.exp__list li { position:relative; padding-left:20px; font-size:0.88rem; line-height:1.6; color:#143A42; font-weight:500; }
.exp__list li::before { content:""; position:absolute; left:0; top:9px; width:7px; height:7px; border-radius:50%; background:#0A4A4A; box-shadow:0 0 0 3px rgba(10,74,74,0.12); }
[dir="rtl"] .exp__list li { padding-left:0; padding-right:20px; }
[dir="rtl"] .exp__list li::before { left:auto; right:0; }
.exp__skills { display:grid; grid-template-columns:1fr 1fr; gap:14px; align-content:stretch; }
.exp__skill-card { background:var(--white); border:1.5px solid rgba(10,74,74,0.9); border-radius:18px; padding:18px 16px 16px; box-shadow:0 6px 20px rgba(0,0,0,0.14), 0 1px 3px rgba(0,0,0,0.08); transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease); display:flex; flex-direction:column; }
.exp__skill-card:hover { transform:translateY(-3px); box-shadow:0 10px 28px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.1); }
.exp__skill-card h4 { font-family:var(--font-heading); font-size:0.78rem; font-weight:800; color:#0A2E33; margin-bottom:12px; display:flex; align-items:center; gap:7px; letter-spacing:-0.01em; }
.exp__skill-card h4 i { color:#0A4A4A; font-size:12px; width:16px; text-align:center; }
.exp__tags { display:flex; flex-wrap:wrap; gap:7px; align-content:flex-start; }
.exp__tags span { padding:6px 11px; border-radius:9999px; font-size:0.7rem; font-weight:700; background:#E6FFFB; border:1px solid #0A4A4A; color:#0A2E33; line-height:1; transition: all 0.2s; }
.exp__tags span:hover { background:#CFF7EE; transform:translateY(-1px); }
.exp__extras { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; position:relative; z-index:1; }
.exp__extra-card { background:var(--white); border:1.5px solid rgba(10,74,74,0.9); border-radius:16px; padding:18px 16px; text-align:center; box-shadow:0 6px 20px rgba(0,0,0,0.12); transition: transform 0.25s var(--ease); }
.exp__extra-card:hover { transform:translateY(-2px); }
.exp__extra-card h4 { font-family:var(--font-heading); font-size:0.8rem; font-weight:800; color:#0A2E33; margin-bottom:6px; letter-spacing:-0.01em; }
.exp__extra-card p { font-size:0.78rem; color:#5A7A82; line-height:1.55; font-weight:500; }
.exp__extra-card--accent { background:linear-gradient(180deg, #D6FFF5 0%, #CFF7EE 100%); border-color:#0A4A4A; }
.light .experience::before { opacity:0.18; background-image: linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px); }
.light .experience::after { background: radial-gradient(ellipse at center, rgba(0,107,122,0.05) 0%, transparent 70%); }
.light .exp__heading { color:var(--text-dark); }
.light .exp__card, .light .exp__skill-card, .light .exp__extra-card { border-color:rgba(0,0,0,0.07); box-shadow:0 6px 24px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.05); }
@media (max-width:980px){ .exp__grid{ grid-template-columns:1fr; } .exp__card--main{ min-height:auto; } }
@media (max-width:900px){ .exp__extras{ grid-template-columns:1fr; } }
@media (max-width:640px){ .exp__skills{ grid-template-columns:1fr; } .exp__card-header{ flex-wrap:wrap; } .exp__badge{ margin-left:0; } .experience{ padding:72px 0 70px; } }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .nav__links, .nav__actions { display: none; }
    .nav__hamburger { display: flex; }
    .float-pill--seo, .float-pill--perf { display: none; }
    .about__stats { grid-template-columns: repeat(2, 1fr); }
    .services__bento { grid-template-columns: 1fr; }
    .service-card--tilt-left, .service-card--tilt-right, .service-card--tilt-left-sm, .service-card--tilt-right-sm { transform: rotate(0deg); }
    .proj-item { grid-template-columns: 1fr; }
    .proj-item__image { aspect-ratio: 16/9; }
    .stats__grid { grid-template-columns: repeat(2, 1fr); }
    .contact__grid { grid-template-columns: 1fr; }
    .footer__ticket-bottom { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav__links a { padding: 8px 10px; font-size: 12px; }
    .btn--cta { padding: 8px 16px; font-size: 12px; }
    .theme-toggle { width: 34px; height: 34px; min-width: 34px; }
    .built-different__pills { height: auto; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 0 16px; }
    .bd-pill { position: static !important; transform: none !important; }
    .built-different__heading { font-size: clamp(2.5rem, 12vw, 4rem); }
    .float-pill--elementor, .float-pill--php, .float-pill--html, .float-pill--css { display: none; }
}
@media (max-width: 640px) {
    .about__stats { grid-template-columns: 1fr 1fr; }
    .stats__grid { grid-template-columns: 1fr; gap: 16px; }
    .stat-card { padding: 32px 20px 24px; }
    .footer__ticket-bottom { grid-template-columns: 1fr; gap: 32px; }
    .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    .footer__ticket-top, .footer__ticket-bottom { padding: 40px 24px; }
    .cursor, .cursor-follower { display: none !important; }
    .lang-toggle { padding: 0 10px; gap: 3px; }
    .lang-toggle svg { width: 14px; height: 14px; }
    .lang-toggle__text { font-size: 11px; }
}

/* GLOBAL POLISH — Premium 9.5/10 */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
* { scrollbar-width: thin; }
@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; }
  .float-pill, .marquee-track, .built-different__pills { animation: none !important; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
}

/* ============================================
   CHAT WIDGET
   ============================================ */
.chat-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9000;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    opacity: 0;
    animation: fadeUp 0.6s 1s forwards;
}
.chat-fab__bubble {
    background: var(--white);
    border: 2px solid var(--teal-dark);
    border-radius: 14px;
    box-shadow: 4px 4px 0px 0px var(--teal-dark);
    padding: 12px 18px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    max-width: 280px;
}
.chat-fab__bubble:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 0px 0px var(--teal-dark);
}
.chat-fab__text {
    font-size: 13px;
    font-weight: 600;
    color: var(--bg);
    line-height: 1.4;
}
.chat-fab__text span {
    display: block;
    font-weight: 400;
    font-size: 12px;
    color: var(--text-muted);
}
.chat-fab__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--teal-dark);
    border: 2px solid var(--teal-dark);
    box-shadow: 4px 4px 0px 0px rgba(0,77,90,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    position: relative;
}
.chat-fab__icon:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 0px 0px rgba(0,77,90,0.4);
}
.chat-fab__icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}
.chat-fab__badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #22C55E;
    border-radius: 50%;
    border: 3px solid var(--white);
}

/* Chat Panel */
.chat-panel {
    position: fixed;
    bottom: 80px;
    right: 24px;
    z-index: 9999;
    width: 380px;
    max-height: 600px;
    border-radius: 24px;
    background: var(--white);
    border: 2px solid var(--teal-dark);
    box-shadow: 8px 8px 0px 0px var(--teal-dark);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s var(--ease);
}
.chat-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.chat-panel__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--accent);
    border-bottom: 2px solid var(--teal-dark);
}
.chat-panel__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--teal-dark);
    overflow: hidden;
    flex-shrink: 0;
}
.chat-panel__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.chat-panel__info {
    flex: 1;
}
.chat-panel__name {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--bg);
}
.chat-panel__status {
    font-size: 12px;
    color: var(--teal-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}
.chat-panel__status-dot {
    width: 8px;
    height: 8px;
    background: #22C55E;
    border-radius: 50%;
}
.chat-panel__actions {
    display: flex;
    gap: 8px;
}
.chat-panel__btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--teal-dark);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}
.chat-panel__btn:hover {
    background: var(--bg);
}
.chat-panel__btn:hover svg {
    color: var(--accent);
}
.chat-panel__btn svg {
    width: 16px;
    height: 16px;
    color: var(--bg);
}

/* Chat Body */
.chat-panel__body {
    padding: 24px 20px;
    background: var(--white);
    overflow-y: auto;
    max-height: 500px;
}
.chat-panel__agents {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
    position: relative;
}
.chat-panel__agent {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid var(--white);
    overflow: hidden;
    margin-left: -12px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.chat-panel__agent:first-child {
    margin-left: 0;
}
.chat-panel__agent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.chat-panel__greeting {
    text-align: center;
    margin-bottom: 24px;
}
.chat-panel__greeting h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bg);
    margin-bottom: 4px;
}
.chat-panel__greeting p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Chat Options */
.chat-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    border: 2px solid var(--border);
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--bg);
}
.chat-option:hover {
    border-color: var(--teal-dark);
    background: rgba(207, 247, 238, 0.1);
}
.chat-option--accent {
    background: var(--accent);
    border-color: var(--teal-dark);
}
.chat-option__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--teal-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.chat-option--accent .chat-option__icon {
    background: var(--bg);
}
.chat-option__icon svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
}
.chat-option--accent .chat-option__icon svg {
    color: var(--accent);
}
.chat-option__text h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}
.chat-option__text p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Chat Dark Section */
.chat-panel__dark {
    background: var(--teal-dark);
    border-radius: 16px;
    padding: 4px;
    margin-top: 8px;
}
.chat-dark-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}
.chat-dark-item:hover {
    background: rgba(255,255,255,0.1);
}
.chat-dark-item__icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(207, 247, 238, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.chat-dark-item__icon svg {
    width: 14px;
    height: 14px;
    color: var(--accent);
}
.chat-dark-item__text h4 {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2px;
}
.chat-dark-item__text p {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    line-height: 1.4;
}

/* Light mode */
.light .chat-fab { background: var(--white); border-color: var(--teal-dark); }
.light .chat-panel { background: var(--white); }
.light .chat-panel__header { background: var(--accent); }
.light .chat-option { border-color: var(--border); }
.light .chat-option:hover { background: rgba(207, 247, 238, 0.15); }

@media (max-width: 480px) {
    .chat-fab { right: 16px; bottom: 16px; gap: 8px; }
    .chat-fab__bubble { padding: 10px 14px; max-width: 240px; }
    .chat-fab__text { font-size: 12px; }
    .chat-fab__text span { font-size: 11px; }
    .chat-fab__icon { width: 44px; height: 44px; }
    .chat-fab__text { font-size: 12px; }
    .chat-panel { right: 16px; left: 16px; width: auto; bottom: 72px; max-height: 80vh; }
}

/* =============================================
   LOADING SKELETONS — Dynamic Content
   ============================================= */
.skeleton { position: relative; overflow: hidden; background: rgba(207,247,238,0.06); border-radius: 8px; }
.skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(207,247,238,0.08), transparent); animation: shimmer 1.5s infinite; }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.skeleton--text { height: 14px; margin-bottom: 8px; width: 80%; }
.skeleton--heading { height: 28px; margin-bottom: 12px; width: 60%; }
.skeleton--card { height: 200px; }
.skeleton--avatar { width: 120px; height: 120px; border-radius: 50%; }

/* Dynamic hydration fade-in */
[data-i18n] { transition: opacity 0.3s ease; }
.hydrating [data-i18n] { opacity: 0.5; }
.hydrated [data-i18n] { opacity: 1; }
