/**
 * DevNaji Portfolio - V7 Master Polish (Full Bento)
 * Ultra Professional, Grid layout, Edge Glare, Blur Reveals
 */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;700;800;900&family=Outfit:wght@300;400;500;600;800;900&display=swap');

:root {
    --bg-main: #020205;
    --bg-secondary: #050508;
    --primary: #06c4ce;
    --primary-glow: rgba(0, 242, 254, 0.5);
    --secondary: #4facfe;
    --accent: #7b2cbf;
    --text: #ffffff;
    --text-muted: #a0aec0;
    --border: rgba(255, 255, 255, 0.08); 
    --glass-bg: rgba(255, 255, 255, 0.03);
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Outfit', sans-serif;
    --container-w: 1300px;
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: none !important; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-en); background-color: var(--bg-main); color: var(--text); overflow-x: hidden; line-height: 1.6; letter-spacing: -0.2px; }

.en-font { font-family: var(--font-en); letter-spacing: -0.5px; }
.text-center { text-align: center; }
.relative-z { position: relative; z-index: 10; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 4rem; }
.mb-5 { margin-bottom: 4rem; }
.kicker { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 4px; color: var(--primary); margin-bottom: 20px; text-transform: uppercase; }

h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.2; letter-spacing: -1px; }

/* Noise */
.noise-overlay {
    position: fixed; inset: 0; z-index: 9998; pointer-events: none; opacity: 0.03;
    background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.75" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* Preloader */
.preloader {
    position: fixed; inset: 0; background: var(--bg-main); z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}
.preloader.fade-out { opacity: 0; visibility: hidden; }
.preloader-content { text-align: center; }
.loading-line { 
    width: 150px; height: 2px; background: rgba(255,255,255,0.05); 
    margin: 20px auto 0; position: relative; overflow: hidden; border-radius: 2px;
}
.loading-line::after {
    content: ''; position: absolute; top: 0; left: 0; height: 100%; width: 50%;
    background: var(--primary); animation: loading 1.5s infinite ease-in-out;
}
@keyframes loading {
    0% { transform: translateX(-150%); }
    100% { transform: translateX(300%); }
}

/* Elite Custom Scrollbar */
::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { 
    background-color: var(--primary); 
    border-radius: 20px; 
    border: 3px solid #020205; /* Matches --bg-main */
    background-clip: content-box; 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
::-webkit-scrollbar-thumb:hover { 
    background-color: #fff; 
    border-width: 2px;
}
/* Firefox */
* { scrollbar-width: thin; scrollbar-color: var(--primary) transparent; }

::selection { background: var(--primary-glow); color: #fff; }

a { text-decoration: none !important; color: inherit; transition: var(--transition); }
button { border: none; background: none; font-family: inherit; }

/* Custom Cursor */
.cursor-dot, .cursor-outline { position: fixed; top: 0; left: 0; transform: translate(-50%, -50%); border-radius: 50%; z-index: 10002; pointer-events: none; }
.cursor-dot { width: 6px; height: 6px; background-color: #fff; mix-blend-mode: difference; }
.cursor-outline { width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, 0.4); transition: width 0.25s, height 0.25s, background-color 0.25s; mix-blend-mode: difference;}
.cursor-outline.hovering { width: 65px; height: 65px; background-color: rgba(255, 255, 255, 0.08); border-color: transparent; backdrop-filter: blur(2px); }

/* Layout Utilities */
.container { width: 100%; max-width: var(--container-w); margin: 0 auto; padding: 0 30px; position: relative; z-index: 10; }

/* --- V7 Glassmorphism & Glare --- */
/* --- V21 Diamond Glass 2.0 --- */
.glass-card {
    background: rgba(15, 15, 20, 0.4); 
    backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1); 
    box-shadow: 
        0 40px 100px rgba(0,0,0,0.7), 
        inset 0 0 0 1px rgba(255,255,255,0.05),
        inset 0 20px 40px rgba(255,255,255,0.02);
    border-radius: 36px; transition: var(--transition);
    position: relative; overflow: hidden;
}
/* V7 Top Edge Glare Reflection */
.glass-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    opacity: 0.6; pointer-events: none; z-index: 10;
}

/* Buttons */
.btn-secondary { display: none; }
.mobile-social-trigger, .mobile-social-list { display: none; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    padding: 16px 36px; border-radius: 40px; font-family: inherit; font-size: 0.95rem; font-weight: 700;
    text-decoration: none !important; border: none; outline: none; transition: var(--transition); 
    box-shadow: none !important; text-shadow: none !important;
}
.btn-primary { background: var(--text); color: var(--bg-main); position: relative; overflow: hidden; }
.btn-primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent); transform: translateX(-100%); transition: 0.6s; }
.btn-primary:hover::after { transform: translateX(100%); }
.btn-primary:hover { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(255, 255, 255, 0.15); background: #f0f0f0; }
.btn-large { padding: 22px 50px; font-size: 1.15rem; border-radius: 40px; }

/* Arrow direction fix for LTR mode */
[dir="ltr"] .btn-arrow-icon { transform: rotate(180deg); }

/* Premium Floating Pill Header */
header {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 800px; z-index: 1000;
    padding: 12px 30px; border-radius: 40px;
    background: rgba(10, 10, 14, 0.5); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255,255,255,0.02);
    transition: var(--transition);
}
header.scrolled {
    width: 95%; max-width: 850px; background: rgba(10, 10, 14, 0.85); top: 15px;
    border-color: rgba(255, 255, 255, 0.08); padding: 10px 30px;
}
.header-container { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 0;}
.logo img { height: 26px; width: auto; display: block; }
.text-logo { font-size: 1.35rem; font-family: var(--font-en); font-weight: 800; color: var(--text); letter-spacing: -1px; }
.text-logo span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; font-weight: 600; transition: var(--transition); letter-spacing: 0.5px;}
.nav-link:hover, .nav-link.active { color: var(--text); text-shadow: 0 0 15px rgba(255,255,255,0.4); }
.hamburger { display: none; cursor: pointer; }
.header-actions { display: flex; align-items: center; gap: 20px; }
/* Custom Language Dropdown */
.lang-dropdown { position: relative; z-index: 2000; }
.lang-dropdown-active { display: flex; align-items: center; gap: 8px; background: #121214; border: 1px solid rgba(255, 255, 255, 0.05); padding: 8px 18px; border-radius: 30px; color: #00d2ff; font-weight: 800; font-size: 0.85rem; font-family: var(--font-en); cursor: pointer; box-shadow: inset 0 2px 10px rgba(0,0,0,0.5); transition: all 0.3s ease; text-transform: uppercase; }
.lang-dropdown-active i { font-size: 0.7rem; transition: transform 0.3s; color: rgba(255,255,255,0.5); }
.lang-dropdown.open .lang-dropdown-active i { transform: rotate(180deg); color: #00d2ff; }
.lang-dropdown.open .lang-dropdown-active { border-color: rgba(0, 210, 255, 0.3); box-shadow: 0 0 15px rgba(0, 210, 255, 0.2); }
.lang-dropdown-menu { position: absolute; top: calc(100% + 10px); right: 0; background: rgba(18, 18, 20, 0.95); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 20px; padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 80px; box-shadow: 0 10px 40px rgba(0,0,0,0.8); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
[dir="rtl"] .lang-dropdown-menu { right: auto; left: 0; }
.lang-dropdown.open .lang-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.line { width: 24px; height: 2px; background: var(--text); border-radius: 4px; transition: 0.3s; margin: 3px 0; }
.hamburger.active .line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active .line:nth-child(2) { transform: translateY(0) rotate(-45deg); }
.hamburger.active .line:nth-child(3) { opacity: 0; }
.lang-btn { background: transparent; border: none; font-size: 0.85rem; font-weight: 800; padding: 10px 20px; border-radius: 15px; color: #8a8a93; cursor: pointer; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); font-family: var(--font-en); text-transform: uppercase; text-align: center; width: 100%; }
.lang-btn.active { background: #00d2ff; color: #000; box-shadow: 0 4px 15px rgba(0, 210, 255, 0.25); }
.lang-btn:hover:not(.active) { color: #fff; background: rgba(255,255,255,0.05); }

/* Directional fixes */
[dir="rtl"] .hero-text-side { text-align: right; }
[dir="ltr"] .hero-text-side { text-align: left; }
[dir="rtl"] .hero-welcome-wrapper { justify-content: flex-end; }
[dir="ltr"] .hero-welcome-wrapper { justify-content: flex-start; }
[dir="rtl"] .logo-text span { margin-right: 5px; }
[dir="ltr"] .logo-text span { margin-left: 5px; }
[dir="rtl"] .social-icons { justify-content: flex-end !important; }
[dir="ltr"] .social-icons { justify-content: flex-start !important; }



/* Sections Common */
section { padding: 80px 0; position: relative; z-index: 10; scroll-margin-top: 100px; }
.section-title { font-size: 3.5rem; letter-spacing: -1px; margin-bottom: 60px; }
.section-title span { color: var(--text-muted); font-weight: 400; }

/* --- V8 Apple-Style Pro Blur Reveal --- */
.reveal { opacity: 0; transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.blur-reveal { transform: translateY(50px) scale(0.92); filter: blur(20px); }
.reveal.active { opacity: 1; transform: translate(0, 0) scale(1); filter: blur(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Hero */
/* V15 Hero Split Layout */
.v6-hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 100px; }
.hero-split-layout { display: grid; grid-template-columns: repeat(2, 1fr); align-items: center; gap: 60px; position: relative; z-index: 2; }
.hero-text-side { text-align: right; }
.hero-welcome-wrapper { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 15px; margin-bottom: 5px; }
.welcome-text { font-size: 3.2rem !important; margin-bottom: 0 !important; }
.typed-title { 
    font-size: 3.8rem; margin-top: 5px !important; 
    line-height: 1.1; letter-spacing: -2px; 
}
.typed-text {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #7b2cbf 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}
.cursor-type {
    display: inline-block; width: 3px; height: 0.8em;
    background-color: var(--primary); margin-left: 5px;
    animation: blink 1s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero-text-side .ar-title { font-size: 3rem; margin-bottom: 20px; line-height: 1.3; }
.hero-text-side .hero-sub { max-width: 100%; margin: 0 0 35px; font-size: 1.15rem; line-height: 1.8; color: var(--text-muted); }
.hero-logo-wrapper { display: inline-block; filter: drop-shadow(0 0 15px rgba(0, 242, 254, 0.2)); }
.hero-main-logo { height: 60px; width: auto; object-fit: contain; }
.hero-graphic-side { position: relative; perspective: 1000px; display: flex; justify-content: flex-end; }

/* V17 Stunning CSS Logo */
/* --- V20 Extreme Hero Bio-Widget --- */
.hero-bio-widget {
    display: inline-flex; align-items: center; gap: 24px; padding: 12px 24px 12px 12px;
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 60px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.02);
    margin-bottom: 30px; transition: var(--transition);
}
.hero-bio-widget:hover {
    background: rgba(255, 255, 255, 0.06); transform: translateY(-5px) scale(1.02);
    border-color: var(--primary); box-shadow: 0 30px 60px rgba(0, 242, 254, 0.2);
}
.bio-avatar {
    width: 65px; height: 65px; border-radius: 50%; overflow: hidden;
    border: 2px solid var(--primary); box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}
.bio-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bio-info { display: flex; flex-direction: column; text-align: right; }
.bio-welcome { font-size: 0.85rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }
.bio-name { font-size: 1.4rem; font-weight: 800; color: #fff; margin-top: -2px; }

.bio-status {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(39, 201, 63, 0.1); border: 1px solid rgba(39, 201, 63, 0.2);
    padding: 6px 14px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 700; color: #27c93f;
    margin-bottom: 12px; align-self: flex-start;
    transition: var(--transition);
}
.bio-status:hover { background: rgba(39, 201, 63, 0.15); border-color: rgba(39, 201, 63, 0.4); transform: translateY(-2px); }
.pulse-dot {
    width: 8px; height: 8px; background: #27c93f; border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(39, 201, 63, 0.7);
    animation: pulser 2s infinite cubic-bezier(0.66, 0, 0, 1);
}
@keyframes pulser {
    to { box-shadow: 0 0 0 10px rgba(39, 201, 63, 0); }
}
[dir="ltr"] .bio-status { align-self: flex-start; }
[dir="rtl"] .bio-status { align-self: flex-end; }

/* V20 Modern Glass IDE Terminal */
.glass-ide {
    background: rgba(10, 10, 14, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 50px 100px rgba(0,0,0,0.8) !important;
}
.ide-tabs {
    display: flex; gap: 2px; background: rgba(0,0,0,0.3); padding: 8px 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ide-tab {
    padding: 8px 16px; font-size: 0.75rem; color: var(--text-muted);
    font-family: var(--font-en); background: transparent; border-radius: 8px 8px 0 0;
    cursor: default; transition: 0.3s;
}
.ide-tab.active { background: rgba(255,255,255,0.05); color: #fff; border: 1px solid rgba(255,255,255,0.05); border-bottom: none; }

.ultra-avatar-wrapper { display: none; } /* Retired in favor of bio-widget */

.editorial-img {
    width: 100%; height: 100%; object-fit: cover; filter: brightness(1) contrast(1);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-photo:hover .editorial-img {
    filter: brightness(1.05) contrast(1.05); transform: scale(1.05);
}
.editorial-badge {
    position: absolute; top: 20px; right: 20px; padding: 8px 16px;
    background: rgba(0, 242, 254, 0.8); color: #000; font-weight: 800;
    font-size: 0.7rem; border-radius: 4px; text-transform: uppercase; letter-spacing: 2px;
    z-index: 2; transform: translateX(20px); opacity: 0; transition: var(--transition);
}
.bento-photo:hover .editorial-badge { transform: translateX(0); opacity: 1; }

.hologram-bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0.12; filter: brightness(0.8) contrast(1.1);
    mix-blend-mode: normal; pointer-events: none; z-index: 1;
    transition: opacity 0.5s ease;
}
.bento-item:hover .hologram-bg { opacity: 0.3; }

.pro-logo-container {
    display: inline-flex; align-items: center; gap: 12px; padding: 5px 12px 5px 20px;
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px; backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(255,255,255,0.02);
    transition: var(--transition); cursor: pointer;
}
.pro-logo-container:hover {
    background: rgba(255, 255, 255, 0.06); transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 242, 254, 0.2), inset 0 0 0 1px rgba(255,255,255,0.08);
    border-color: rgba(0, 242, 254, 0.3);
}
.logo-mark {
    height: 40px; display: flex; align-items: center; justify-content: center;
    position: relative; border-radius: 12px;
}
.logo-mark img {
    height: 100%; width: auto; object-fit: contain;
    filter: drop-shadow(0 2px 12px rgba(0, 242, 254, 0.4));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.pro-logo-container:hover .logo-mark img {
    transform: scale(1.05) rotate(2deg);
    filter: drop-shadow(0 8px 16px rgba(0, 242, 254, 0.6));
}
.logo-text { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.5px; color: #fff; line-height: 1; margin-bottom: 2px;}
.logo-text span { color: #00f2fe; }
.hero-bg {
    position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero-img-full {
    position: absolute; inset: 0; width: 100%; height: 100%;
    background: url('../images/dn2.png') center/cover no-repeat;
    filter: brightness(0.5) saturate(1.2);
    transform: scale(1.05);
}
.hero-overlay-gradient {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 70% 30%, transparent 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.9) 100%),
                linear-gradient(to right, rgba(0,0,0,0.8) 0%, transparent 100%);
    z-index: 1;
}
.grid-overlay {
    position: absolute; inset: 0; z-index: 2; opacity: 0.15;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px; 
    -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 80%);
    mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 80%);
}

/* Aurora Animation */
.aurora-bg {
    position: absolute; inset: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 50% 50%, 
        rgba(0, 242, 254, 0.15) 0%, 
        rgba(123, 44, 191, 0.1) 30%, 
        transparent 70%);
    filter: blur(100px);
    animation: aurora-rotate 20s linear infinite;
    z-index: 1; pointer-events: none;
}
@keyframes aurora-rotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}
/* Hero Vertical Social Bar - Ultra Professional */
.hero-side-social {
    position: fixed; left: 40px; bottom: 120px; width: 54px; display: flex; flex-direction: column; align-items: center; gap: 14px; z-index: 100;
}
.hero-side-social .social-text {
    writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--font-en); font-size: 0.75rem; letter-spacing: 4px; color: var(--text-muted); font-weight: 700; opacity: 0.5;
}
.hero-side-social a {
    color: var(--text-muted); font-size: 1.15rem; transition: var(--transition); text-decoration: none; opacity: 0.7;
}
.hero-side-social a:hover {
    color: #fff; opacity: 1; transform: scale(1.2) translateY(-2px); text-shadow: 0 0 15px rgba(255,255,255,0.8);
}
.hero-side-social .social-line {
    width: 1px; height: 60px; background: rgba(255,255,255,0.15); margin-bottom: 5px;
}

.massive-title {
    font-size: clamp(4rem, 11vw, 9.5rem); line-height: 0.85; letter-spacing: -4px;
    margin-bottom: 30px; text-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.gradient-text { 
    background: linear-gradient(135deg, #fff 0%, #a0a0a0 100%); 
    -webkit-background-clip: text; 
    background-clip: text;
    -webkit-text-fill-color: transparent; 
}
.hero-text-giant { max-width: 1000px; width: 100%; position: relative; z-index: 2; margin-bottom: 50px; }
.ar-title { font-size: 2.2rem; margin-bottom: 25px; font-weight: 700; color: #fff; }
.hero-sub { color: var(--text-muted); font-size: 1.25rem; max-width: 600px; margin: 0 auto; line-height: 1.8; }
.cursor-type { display: inline-block; width: 3px; background: var(--primary); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Profile Terminal Anchor */
.center-card { max-width: 550px; width: 100%; margin: 0 auto; position: relative; z-index: 2; }
.profile-panel { overflow: hidden; background: rgba(10, 10, 14, 0.8); backdrop-filter: blur(25px); }
.terminal-header { background: rgba(0,0,0,0.5); padding: 10px 15px; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.circles { display: flex; gap: 8px; }
.circle { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.4); }
.circle.red { background: #ff5f56; } .circle.yellow { background: #ffbd2e; } .circle.green { background: #27c93f; }
.terminal-title { flex: 1; text-align: center; color: var(--text-muted); font-size: 0.85rem; font-family: monospace; }
.terminal-code { padding: 25px; direction: ltr; text-align: left; font-size: 0.95rem; line-height: 1.6; overflow-x: auto; }
.terminal-code pre { white-space: pre-wrap; word-wrap: break-word; }
.code-block.active pre {
  animation: typingReveal 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
}
@keyframes typingReveal {
  to { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}
.c-purple { color: #c678dd; } .c-blue { color: #61afef; } .c-cyan { color: #56b6c2; } .c-red { color: #e06c75; } .c-green { color: #98c379; } .c-yellow { color: #e5c07b; }

/* Infinite Tech Slider */
.tech-slider { width: 100%; overflow: hidden; padding: 30px 0; background: rgba(255, 255, 255, 0.015); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; white-space: nowrap; position: relative; direction: ltr; margin: 60px 0;}
.tech-slider::before, .tech-slider::after { content: ''; position: absolute; top: 0; width: 200px; height: 100%; z-index: 2; pointer-events: none; }
.tech-slider::before { left: 0; background: linear-gradient(to right, var(--bg-main), transparent); }
.tech-slider::after { right: 0; background: linear-gradient(to left, var(--bg-main), transparent); }
.tech-slide-track { display: flex; gap: 50px; animation: scroll-infinite 25s linear infinite; width: max-content; }
.tech-slide-track .slide { display: flex; align-items: center; gap: 50px; font-size: 1.4rem; color: rgba(255,255,255,0.4); font-weight: 700; text-transform: uppercase; letter-spacing: 1px;}
.tech-slide-track i { color: rgba(0, 242, 254, 0.5); font-size: 0.9rem; }
@keyframes scroll-infinite { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Master Grid (About + Skills) */
.bento-section { padding-top: 60px; }
.bento-wrapper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.bento-item { padding: 45px; display: flex; flex-direction: column; justify-content: flex-start; }
.bento-title { font-size: 1.6rem; margin-bottom: 20px; letter-spacing: -0.5px; }

.bento-photo { grid-column: span 2; grid-row: span 1; padding: 0; min-height: 380px; position: relative; overflow: hidden; border: none; }
.photo-inner { width: 100%; height: 100%; background: #0c0c10; display: flex; align-items: center; justify-content: center; position: relative;}
.photo-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.9)); z-index: 1;}
.large-icon { font-size: 10rem; color: rgba(255,255,255,0.03); }
.experience-badge { position: absolute; bottom: 30px; left: 30px; z-index: 2; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(10px); padding: 15px 25px; border-radius: 20px; display: inline-flex; flex-direction: column; }
.experience-badge .years { font-size: 2.5rem; font-weight: 900; color: #fff; line-height: 1; letter-spacing: -2px;}
.experience-badge .txt { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-top: 5px;}

.bento-bio { grid-column: span 2; grid-row: span 1; padding: 45px;}
.bento-bio p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 30px; line-height: 1.8; }
.mini-stats { display: flex; gap: 40px; border-top: 1px solid var(--border); padding-top: 25px; }
.m-stat { font-size: 0.95rem; color: var(--text-muted); font-weight: 600; display: flex; flex-direction: column; }
.m-stat .num { color: #fff; font-size: 1.8rem; font-weight: 800; line-height: 1; margin-bottom: 5px; letter-spacing: -1px;}

.bento-tech { grid-column: span 4; grid-row: span 1; }
.tech-grid-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.mini-tech-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* V7 Floating Badges */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.t-badge { 
    background: rgba(255,255,255,0.03); 
    border: 1px solid rgba(255,255,255,0.08); 
    padding: 6px 14px; border-radius: 8px; 
    font-size: 0.75rem; color: var(--text-muted); 
    display: flex; align-items: center; gap: 8px; 
    transition: var(--transition);
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}
.t-badge:hover { 
    background: var(--primary); color: #000; 
    border-color: var(--primary); transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 242, 254, 0.3), inset 0 0 0 1px rgba(255,255,255,0.4);
    animation-play-state: paused;
}
.tech-cat-title { 
    font-size: 0.8rem; color: var(--primary); 
    margin-bottom: 12px; opacity: 0.8; 
    display: flex; align-items: center; gap: 10px; 
    font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
}
.tech-cat-title::before { content: ''; display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--primary); }
.t-badge:nth-child(1) { animation-delay: 0s; } .t-badge:nth-child(2) { animation-delay: 0.5s; } .t-badge:nth-child(3) { animation-delay: 1s; } .t-badge:nth-child(4) { animation-delay: 1.5s; } .t-badge:nth-child(5) { animation-delay: 2s; } .t-badge:nth-child(6) { animation-delay: 2.5s; }
.t-badge i { font-size: 1.3rem; }

.bento-contact { grid-column: span 1; grid-row: span 1; justify-content: center; align-items: flex-start;}
.bento-contact p { font-size: 1.3rem; color: var(--text-muted); margin-bottom: 30px; }
.bento-link { display: inline-flex; width: 60px; height: 60px; background: #fff; color: #000; border-radius: 50%; align-items: center; justify-content: center; font-size: 1.4rem; text-decoration: none; transition: var(--transition); }
.bento-link:hover { transform: scale(1.1); box-shadow: 0 10px 25px rgba(255,255,255,0.3); }

.bento-timeline { grid-column: span 3; grid-row: span 1; flex-direction: row; align-items: center; gap: 50px; }
.b-timeline { display: flex; gap: 40px; width: 100%; border-right: 2px solid rgba(255,255,255,0.05); padding-right: 30px; margin-top: 0; border-top: none; padding-top: 0; }
.bt-item { flex: 1; padding: 0; background: transparent; border: none; backdrop-filter: none; border-radius: 0; transition: none; }
.bt-item:hover { transform: none; box-shadow: none; background: transparent; border: none; }
.bt-item::before { display: none; }
.bt-year { color: var(--text); font-size: 1.2rem; font-weight: 800; display: block; margin-bottom: 10px; background: none; -webkit-text-fill-color: initial; filter: none; }
.bt-info { color: var(--text-muted); font-size: 1.05rem; font-weight: 600; line-height: 1.5; }
.bt-at { color: var(--primary); display: block; font-size: 0.95rem; margin-top: 5px; }

/* --- V7 Process (Full Bento Flow) --- */
.process-bento { display: flex; flex-direction: column; justify-content: flex-start; padding: 45px; grid-column: span 2; position: relative; overflow: hidden; }
.process-bento-num {
    position: absolute; top: -10px; right: 20px;
    font-size: 8rem; font-weight: 900; color: rgba(255, 255, 255, 0.03);
    line-height: 1; pointer-events: none; transition: all 0.5s ease;
    z-index: 0;
}
.process-bento h3 { font-size: 1.6rem; margin-bottom: 12px; letter-spacing: -0.5px; position: relative; z-index: 1; }
.process-bento p { color: var(--text-muted); font-size: 1.1rem; margin: 0; line-height: 1.7; position: relative; z-index: 1; }
.process-bento:hover .process-bento-num { color: rgba(0, 242, 254, 0.07); transform: scale(1.1) rotate(-5deg); }

/* --- V21 Elite Search & Portfolio Filters --- */
.portfolio-dashboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 70px;
    width: 100%;
}

.portfolio-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.search-wrap {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 55px;
    display: flex;
    align-items: center;
    padding: 0 25px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    backdrop-filter: blur(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(186, 153, 102, 0.1);
    background: rgba(255, 255, 255, 0.05);
    animation: searchGlow 3s ease-in-out infinite alternate;
}

@keyframes searchGlow {
    from { box-shadow: 0 0 10px rgba(186, 153, 102, 0.05); }
    to { box-shadow: 0 0 30px rgba(186, 153, 102, 0.2); }
}

.search-wrap i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-right: 15px;
    opacity: 0.5;
    transition: 0.3s;
}

.search-wrap:focus-within i { opacity: 1; transform: scale(1.1); }

.search-wrap input {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}
.search-wrap input::placeholder { color: rgba(255, 255, 255, 0.2); }

.filters-wrap { 
    display: inline-flex; 
    gap: 8px;
    position: relative; 
    padding: 6px; 
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    border-radius: 40px; 
    backdrop-filter: blur(15px);
}
.filter-btn { 
    position: relative; 
    z-index: 2; 
    border: none; 
    background: transparent; 
    color: var(--text-muted); 
    padding: 10px 25px; 
    border-radius: 30px; 
    font-family: inherit; 
    font-size: 0.95rem; 
    font-weight: 700; 
    transition: all 0.4s ease; 
    cursor: pointer;
}
.filter-btn:hover { color: #fff; }
.filter-btn.active { color: #000; }
.filter-indicator { 
    position: absolute; 
    top: 6px; 
    bottom: 6px; 
    left: 0; 
    width: 0; 
    background: var(--primary); 
    border-radius: 30px; 
    z-index: 1; 
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); 
}

.results-badge-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.results-count {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.results-count #projectCounter {
    color: var(--primary);
    background: rgba(186, 153, 102, 0.1);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 1rem;
}

/* Staggered Entry Animation */
.project-bento-card {
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                display 0.4s;
    opacity: 0;
    transform: translateY(20px);
}
.project-bento-card.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .portfolio-controls { flex-direction: column; width: 100%; gap: 20px; }
    .search-wrap { max-width: 100%; }
}

@media (max-width: 768px) {
    .filters-wrap { 
        width: 100%; 
        overflow-x: auto; 
        justify-content: flex-start;
        -ms-overflow-style: none; scrollbar-width: none;
    }
    .filters-wrap::-webkit-scrollbar { display: none; }
    .filter-btn { padding: 8px 18px; font-size: 0.85rem; flex-shrink: 0; }
}

.portfolio-bento-grid { 
    display: flex; gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; 
    padding-bottom: 30px; scrollbar-width: thin; scrollbar-color: var(--primary) var(--bg-secondary);
    cursor: grab;
}
.portfolio-bento-grid.grabbing {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}
.portfolio-bento-grid::-webkit-scrollbar { height: 8px; }

.portfolio-bento-grid::-webkit-scrollbar-track { background: transparent; }
.portfolio-bento-grid::-webkit-scrollbar-thumb { 
    background-color: rgba(255, 255, 255, 0.1); 
    border-radius: 20px; 
    border: 2px solid transparent;
    background-clip: content-box;
}
.portfolio-bento-grid::-webkit-scrollbar-thumb:hover { background-color: var(--primary); }

.project-bento-card { 
    flex: 0 0 calc(33.333% - 20px); 
    scroll-snap-align: start; 
    display: flex; flex-direction: column; 
    min-width: 0;
}
.project-bento-card:hover { 
    border-color: var(--primary); 
    box-shadow: 0 40px 80px rgba(0,0,0,0.8), 0 0 40px rgba(0, 242, 254, 0.15), inset 0 0 0 1px rgba(0, 242, 254, 0.3); 
    transform: translateY(-8px);
}

.project-img { height: 350px; position: relative; overflow: hidden; border-radius: 28px 28px 0 0;}
.img-bg { width: 100%; height: 100%; background-position: center; background-size: cover; transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); filter: brightness(0.85); }
.project-bento-card:hover .img-bg { transform: scale(1.08); filter: brightness(1); }
.project-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--transition); }
.project-bento-card:hover .project-overlay { opacity: 1; }
.circle-btn { width: 80px; height: 80px; background: #fff; color: #000; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; text-decoration: none; transform: translateY(20px) rotate(45deg); opacity: 0; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.project-bento-card:hover .circle-btn { transform: translateY(0) rotate(0deg); opacity: 1; }

.project-info { padding: 40px; flex-grow: 1; }
.project-meta { font-size: 0.8rem; color: var(--text-muted); font-weight: 700; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; text-transform: uppercase;}
.project-meta .dot { color: var(--primary); }
.project-title { font-size: 1.7rem; margin-bottom: 12px; letter-spacing: -0.5px; }
.project-desc { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 25px; line-height: 1.7; }
.project-tech { display: flex; flex-wrap: wrap; gap: 10px; }
.project-tech span { font-size: 0.85rem; font-family: var(--font-en); padding: 8px 18px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 20px; color: #fff; font-weight: 600; }
.flex-info { display: flex; flex-direction: column; height: 100%; justify-content: space-between; }

/* Giant Footer */
.footer-v5 { padding: 40px 0 50px; text-align: center; position: relative; overflow: hidden; border-top: 1px solid var(--border); }
.footer-giant-text { margin-bottom: 60px; }
.footer-giant-text h2 { font-size: clamp(5rem, 14vw, 12rem); line-height: 0.85; letter-spacing: -4px; color: rgba(255,255,255,0.03); text-transform: uppercase; transition: color 0.5s ease, text-shadow 0.5s ease; }
.footer-giant-text:hover h2 { color: rgba(255,255,255,0.9); text-shadow: 0 0 80px rgba(255,255,255,0.15); }
.footer-giant-text span { color: var(--primary); display: block; opacity: 0.1; }
.footer-giant-text:hover span { opacity: 1; }

.footer-grid { display: flex; justify-content: space-between; align-items: center; margin-top: 100px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.05); text-align: right;}
.f-info { max-width: 400px; }
.f-info p { color: var(--text-muted); font-size: 1.05rem; margin-top: 15px; line-height: 1.8;}
.social-icons { display: flex; gap: 15px; }
.social-icons a { width: 55px; height: 55px; border-radius: 50%; background: rgba(255,255,255,0.03); display: flex; align-items: center; justify-content: center; color: var(--text); border: 1px solid var(--border); transition: var(--transition); text-decoration: none; font-size: 1.2rem; }
.social-icons a:hover { background: var(--text); color: var(--bg-main); transform: translateY(-4px) scale(1.05); }

/* V9 Elite Contact Form */
.contact-bento-form { max-width: 800px; margin: 0 auto 100px; padding: 50px; text-align: right; }
.contact-bento-form p { color: var(--text-muted); margin-bottom: 35px; font-size: 1.1rem; }
.pro-contact-form { display: flex; flex-direction: column; gap: 20px; }
.input-group { display: flex; gap: 20px; width: 100%; }
.pro-contact-form input, .pro-contact-form select, .pro-contact-form textarea {
    width: 100%; padding: 18px 25px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border);
    border-radius: 16px; color: var(--text); font-family: inherit; font-size: 1.05rem; transition: var(--transition);
    outline: none;
}
.pro-contact-form select {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat; background-position: left 20px center;
    padding-left: 50px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
}
.pro-contact-form select option { background: var(--bg-main); color: var(--text); font-family: var(--font-en); }
.pro-contact-form input:focus, .pro-contact-form select:focus, .pro-contact-form textarea:focus {
    background: rgba(255,255,255,0.06); border-color: var(--primary); box-shadow: 0 0 20px rgba(0, 242, 254, 0.1);
}

/* Multi-Method Selector */
.method-selector {
    display: flex; gap: 15px; margin-bottom: 25px;
}
.method-option {
    flex: 1; cursor: pointer; position: relative;
}
.method-option input {
    position: absolute; opacity: 0; pointer-events: none;
}
.method-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; padding: 20px; border-radius: 20px;
    background: rgba(255,255,255,0.02); border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-muted);
}
.method-card i { font-size: 1.5rem; }
.method-card span { font-size: 0.9rem; font-weight: 600; }

.method-option input:checked + .method-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.15), inset 0 0 0 1px rgba(0, 242, 254, 0.1);
    transform: translateY(-5px);
}
.method-card:hover {
    background: rgba(255,255,255,0.04);
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}

.footer-bottom { display: flex; justify-content: center; align-items: center; margin-top: 40px; }
.footer-bottom p { color: var(--text-muted); font-size: 1rem; }


/* ============================================================
   📲 Social FAB — Premium App-Style
   ============================================================ */
.social-fab-wrap {
    position: fixed;
    left: 28px;
    bottom: 32px;
    z-index: 1000;
    display: none; /* Mobile Only */
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* ── Trigger Button ───────────────────────────────────── */
.social-fab-btn {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, #1a6cff 0%, #7c3aed 100%);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 8px 28px rgba(26, 108, 255, 0.45),
        0 2px 8px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.2);
}
.social-fab-btn::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(26,108,255,0.25), rgba(124,58,237,0.25));
    opacity: 0;
    transition: opacity 0.4s;
}
.social-fab-btn:hover::before, .social-fab-btn.active::before { opacity: 1; }
.social-fab-btn:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 16px 40px rgba(26,108,255,0.6), 0 4px 16px rgba(0,0,0,0.3);
}
.social-fab-btn.active {
    background: linear-gradient(135deg, #7c3aed 0%, #1a6cff 100%);
    transform: rotate(45deg) scale(0.95);
}

/* ── Icon swap: share → x-mark ───────────────────────── */
.social-fab-btn .fa-share-nodes { transition: opacity 0.3s, transform 0.4s; }
.social-fab-btn.active .fa-share-nodes { opacity: 0; transform: rotate(-45deg); }

/* ── Social Links Menu ────────────────────────────────── */
.social-fab-menu {
    position: absolute;
    bottom: 72px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

/* Each link — hidden by default */
.social-fab-menu a {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #fff;
    font-size: 1.3rem;
    position: relative;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s ease;
    /* Stagger via nth-child */
}

/* Staggered animation delays */
.social-fab-menu a:nth-child(1) { transition-delay: 0s; }
.social-fab-menu a:nth-child(2) { transition-delay: 0.04s; }
.social-fab-menu a:nth-child(3) { transition-delay: 0.08s; }
.social-fab-menu a:nth-child(4) { transition-delay: 0.12s; }
.social-fab-menu a:nth-child(5) { transition-delay: 0.16s; }
.social-fab-menu a:nth-child(6) { transition-delay: 0.20s; }

/* Open state */
.social-fab-wrap.open .social-fab-menu {
    pointer-events: all;
}
.social-fab-wrap.open .social-fab-menu a {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ── Brand Colors for Each Icon ───────────────────────── */
/* WhatsApp */
.social-fab-menu a[title="WhatsApp"] {
    background: #25d366;
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
}
.social-fab-menu a[title="WhatsApp"]:hover {
    box-shadow: 0 10px 30px rgba(37,211,102,0.6);
    transform: translateY(-3px) scale(1.08) !important;
}
/* Twitter/X */
.social-fab-menu a[title="Twitter"] {
    background: #111;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.social-fab-menu a[title="Twitter"]:hover {
    box-shadow: 0 10px 30px rgba(255,255,255,0.15);
    transform: translateY(-3px) scale(1.08) !important;
}
/* Instagram */
.social-fab-menu a[title="Instagram"] {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    box-shadow: 0 6px 20px rgba(220,39,67,0.4);
}
.social-fab-menu a[title="Instagram"]:hover {
    box-shadow: 0 10px 30px rgba(220,39,67,0.6);
    transform: translateY(-3px) scale(1.08) !important;
}
/* Facebook */
.social-fab-menu a[title="Facebook"] {
    background: #1877f2;
    box-shadow: 0 6px 20px rgba(24,119,242,0.4);
}
.social-fab-menu a[title="Facebook"]:hover {
    box-shadow: 0 10px 30px rgba(24,119,242,0.6);
    transform: translateY(-3px) scale(1.08) !important;
}
/* LinkedIn */
.social-fab-menu a[title="LinkedIn"] {
    background: #0a66c2;
    box-shadow: 0 6px 20px rgba(10,102,194,0.4);
}
.social-fab-menu a[title="LinkedIn"]:hover {
    box-shadow: 0 10px 30px rgba(10,102,194,0.6);
    transform: translateY(-3px) scale(1.08) !important;
}
/* GitHub */
.social-fab-menu a[title="GitHub"] {
    background: #24292f;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.social-fab-menu a[title="GitHub"]:hover {
    box-shadow: 0 10px 30px rgba(255,255,255,0.12);
    transform: translateY(-3px) scale(1.08) !important;
}

/* Remove gradient-icon override inside FAB — let brand colors show */
.social-fab-menu a .gradient-icon {
    background: none !important;
    -webkit-text-fill-color: #fff !important;
    filter: none !important;
}


/* Top Scroll Progress */
.top-scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--primary); z-index: 10000; width: 0; transition: width 0.1s ease-out; box-shadow: 0 1px 15px var(--primary); }

/* V13 Elite Preloader */
.preloader { 
    position: fixed; inset: 0; 
    background: linear-gradient(rgba(2, 2, 5, 0.9), rgba(2, 2, 5, 0.9)), url('../images/dn2.png') no-repeat center center;
    background-size: cover;
    z-index: 99999; display: flex; align-items: center; justify-content: center; 
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), visibility 1s; 
}
.preloader.fade-out { opacity: 0; visibility: hidden; }
.preloader-content { display: flex; align-items: center; justify-content: center; }
.premium-logo-wrap {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    animation: logoEntry 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}
.logo-ring {
    position: absolute;
    inset: -10px; /* Slightly larger than the logo */
    border: 2px solid rgba(255, 255, 255, 0.03);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: ringRotate 2s linear infinite;
    box-shadow: 0 0 30px rgba(186, 153, 102, 0.1);
}
.logo-img-inside {
    width: 100px;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 0 15px rgba(186, 153, 102, 0.4));
}

@keyframes logoEntry { to { opacity: 1; transform: scale(1); } }
@keyframes ringRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Lenis Standard Rules */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* Portfolio Controls (Progress Bar & Hint) */
.portfolio-controls {
    margin-top: 40px; display: flex; flex-direction: column; gap: 15px;
    max-width: var(--container-w); margin-left: auto; margin-right: auto;
}
.portfolio-progress-container {
    width: 100%; height: 2px; background: rgba(255,255,255,0.05);
    border-radius: 10px; position: relative; overflow: hidden;
}
.portfolio-progress-bar {
    position: absolute; top: 0; left: 0; height: 100%; width: 0%;
    background: var(--primary); transition: width 0.1s ease-out;
    box-shadow: 0 0 10px var(--primary);
}
.portfolio-controls .swipe-indicator { justify-content: flex-end; margin-top: 0; opacity: 0.6; }

/* Section Gap Fix */
#portfolio { padding-bottom: 20px; }

@media (max-width: 1024px) {
    .bento-wrapper { grid-template-columns: repeat(2, 1fr); }
    .project-bento-card { flex: 0 0 calc(50% - 15px); }
    .bento-timeline { grid-column: span 2; flex-direction: column; text-align: center;}
    .b-timeline { border-right: none; padding-right: 0; flex-direction: column; align-items: center; text-align: center; gap: 30px; }
    .project-bento-card.featured { display: flex; flex-direction: column; }
    .project-bento-card.featured .project-img { border-radius: 28px 28px 0 0; }
}
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    /* Base Fonts & Hero Fixes */
    .massive-title { font-size: 3rem; }
    .hero-side-social { display: none; }
    .hero-split-layout { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-text-side { text-align: center; }
    .hero-bio-widget { padding: 15px 20px; gap: 10px; width: 100%; max-width: 380px; margin: 0 auto 25px; }
    .bio-welcome { font-size: 0.85rem !important; }
    .bio-name { font-size: 1.6rem !important; }
    .bio-avatar { width: 45px; height: 45px; }
    .typed-title { font-size: 1.95rem !important; margin-bottom: 20px; }
    .hero-sub { font-size: 1.05rem !important; line-height: 1.6; margin-bottom: 30px !important; }
    .hero-main-logo { height: 45px; }
    .hero-graphic-side { justify-content: center; }
    .hero-buttons-side { display: flex; justify-content: center; width: 100%; margin-top: 30px; }
    .btn-large { width: 100%; max-width: 320px; justify-content: center; }
    .aurora-bg { width: 120vw; height: 120vw; filter: blur(60px); }

    /* Header Mobile - Clean App Style */
    header { 
        padding: 10px 20px; 
        border-radius: 0;
        top: 0;
        width: 100%;
        max-width: 100%;
        left: 0;
        transform: none;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        border-left: none; border-right: none; border-top: none;
        background: rgba(10, 10, 14, 0.9);
        backdrop-filter: blur(20px);
        box-shadow: 0 2px 20px rgba(0,0,0,0.4);
    }
    header.scrolled { 
        padding: 10px 20px; 
        background: rgba(10, 10, 14, 0.98); 
        backdrop-filter: blur(30px); 
        border-radius: 0;
    }
    .hamburger { display: none !important; }
    .nav-links { display: none !important; }

    .nav-link { font-size: 1.15rem; }
    
    /* Cursor Hide & Performance */
    .cursor-dot, .cursor-outline { display: none !important; opacity: 0 !important; pointer-events: none !important; }
    * { cursor: auto !important; }
    
    .header-actions { gap: 12px; display: flex; align-items: center; position: relative; }
    .logo { flex-shrink: 0; }

    /* Bento Grid Mobile Compression */
    .bento-wrapper { grid-template-columns: 1fr; gap: 15px; }
    .bento-photo, .bento-bio, .bento-tech, .bento-timeline, .bento-contact, .process-bento { grid-column: span 1 !important; }
    .bento-item, .bento-bio, .process-bento { padding: 25px !important; }
    .bento-photo { min-height: 280px; }
    .bento-title { font-size: 1.45rem; margin-bottom: 15px; }
    
    /* Section & Sub Elements */
    .section-title { font-size: 2.5rem; margin-bottom: 40px; }
    .mini-stats { gap: 20px; padding-top: 20px; }
    .m-stat .num { font-size: 1.4rem; }
    .tech-grid-split { grid-template-columns: 1fr; gap: 25px; }
    .b-timeline { flex-direction: column; gap: 25px; border-right-width: 0px; }
    .bt-item { align-items: center; text-align: center; flex-direction: column; gap: 8px; }
    
    /* Portfolio Grid Mobile */
    .portfolio-bento-grid { 
        display: flex !important; flex-wrap: nowrap !important; 
        overflow-x: auto !important; scroll-snap-type: x mandatory; 
        gap: 15px; padding-bottom: 20px; 
        -webkit-overflow-scrolling: touch;
    }
    .project-bento-card { 
        flex: 0 0 100% !important; scroll-snap-align: center; 
        margin-bottom: 0 !important;
    }
    .swipe-indicator {
        display: flex; align-items: center; justify-content: center; gap: 10px;
        margin-top: 15px; color: var(--text-muted); font-size: 0.9rem;
        opacity: 0.8; animation: pulseFade 2s infinite;
        --pulse-x: -5px;
    }
    [dir="ltr"] .swipe-indicator { --pulse-x: 5px; }

    .swipe-indicator i { font-size: 1.1rem; color: var(--primary); transition: transform 0.3s ease; }
    [dir="ltr"] .swipe-indicator i, 
    [dir="ltr"] .fa-arrow-left, 
    [dir="ltr"] .fa-arrow-left-long { transform: rotate(180deg); }
}

/* Swipe indicator pulse animation (must be outside @media to be valid CSS) */
@keyframes pulseFade {
    0%, 100% { opacity: 0.4; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(var(--pulse-x, -5px)); }
}

@media (max-width: 768px) {
    /* Contact Form & Footer Mobile */
    .contact-bento-form { padding: 25px; margin-bottom: 90px; }
    .input-group { flex-direction: column; gap: 15px; }
    .pro-contact-form input, .pro-contact-form select, .pro-contact-form textarea { padding: 15px 20px; font-size: 1rem; }
    .footer-giant-text h2 { font-size: clamp(3.0rem, 10vw, 4rem); margin-bottom: 20px; }
    .footer-v5 .btn-large { width: 100% !important; max-width: 100% !important; padding: 15px; font-size: 0.95rem; }
    .contact-bento-form { margin-top: 50px; }
    .footer-grid { flex-direction: column; text-align: center; gap: 30px; margin-top: 60px; padding-top: 30px; }
    .f-info { text-align: center; margin: 0 auto; }
    .social-icons { justify-content: center !important; gap: 10px; margin-top: 10px; }
    .social-icons a { width: 42px; height: 42px; font-size: 1rem; }
    .circle-btn-wrap.fixed-scroll { bottom: 20px; right: 20px; transform: scale(0.65); transform-origin: bottom right; }
    
    /* Adjust Chat Widget position for Bottom Nav */
    .chat-widget {
        bottom: 92px !important;
        right: 16px !important;
        transform: none !important;
        transform-origin: bottom right;
    }
    /* Panel should float upward from the widget position */
    .chat-panel {
        bottom: calc(100% + 12px) !important;
        right: 0 !important;
        width: min(360px, calc(100vw - 32px)) !important;
        max-height: calc(100dvh - 200px) !important;
    }

    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; margin-top: 25px; }
    
    /* Social FAB — Hidden on mobile (replaced by bottom nav) */
    .social-fab-wrap {
        display: none !important;
    }

    /* Mobile Bottom Navigation (App-like) */
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 14, 0.9);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-top: 1px solid rgba(255,255,255,0.08);
        padding: 12px 10px calc(20px + env(safe-area-inset-bottom)); /* Safe area inset */
        z-index: 10002;
        box-shadow: 0 -10px 30px rgba(0,0,0,0.6);
        border-radius: 28px 28px 0 0;
        user-select: none;
        -webkit-user-select: none;
    }
    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none !important;
        color: rgba(255,255,255,0.45);
        font-size: 0.65rem;
        font-weight: 700;
        font-family: var(--font-en);
        gap: 6px;
        position: relative;
        transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 8px 12px;
        min-width: 65px;
        -webkit-tap-highlight-color: transparent;
    }
    .bottom-nav-item i {
        font-size: 1.3rem;
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s;
    }
    .bottom-nav-item.active {
        color: var(--primary);
    }
    .bottom-nav-item.active i {
        transform: translateY(-6px) scale(1.1);
        color: var(--primary);
        filter: drop-shadow(0 4px 10px rgba(0, 242, 254, 0.5));
    }
    
    /* Premium Center Chat Button */
    .center-chat-btn {
        padding-top: 2px !important;
    }
    .center-chat-btn .chat-circle {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        background: #1a6cff;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 5px 15px rgba(26, 108, 255, 0.4);
        position: relative;
        margin-bottom: 4px;
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .center-chat-btn.active .chat-circle {
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 8px 20px rgba(26, 108, 255, 0.6);
    }
    .center-chat-btn i {
        color: #fff !important;
        font-size: 1.25rem !important;
        filter: none !important;
        transform: none !important;
    }
    .center-chat-btn .badge {
        position: absolute;
        top: -2px;
        right: -2px;
        width: 14px;
        height: 14px;
        background: #ff3b3b;
        border-radius: 50%;
        border: 2px solid #0a0a0e; /* matches bottom nav bg */
    }
    .center-chat-btn::after {
        display: none !important; /* hide the active indicator line */
    }
    .bottom-nav-item::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 50%;
        transform: translateX(-50%) scaleX(0);
        width: 24px;
        height: 3px;
        background: var(--primary);
        border-radius: 3px;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 2px 8px rgba(0, 242, 254, 0.5);
    }
    .bottom-nav-item.active::after {
        transform: translateX(-50%) scaleX(1);
    }

    /* Adjust Body Padding */
    body { padding-bottom: 95px !important; }



    /* Disable JS physics and heavy reveals on Mobile */
    .tilt-card { transform: none !important; transition: none !important; will-change: auto !important; }
    .js-tilt-glare { display: none !important; }
    
    /* V24 Stop heavy CSS animations & delays on Mobile */
    .aurora-bg { animation: none !important; display: none; }
    .reveal.delay-1, .reveal.delay-2, .reveal.delay-3 { transition-delay: 0s !important; }
    
    /* Mobile Social Trigger Style */
    .mobile-social-trigger { display: inline-flex; }
    .mobile-social-list { 
        display: none; width: 100%; gap: 15px; justify-content: center; margin-top: 20px; 
        padding: 15px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
        border-radius: 20px; animation: slideUp 0.4s ease forwards;
    }
    .mobile-social-list.active { display: flex; }
    .mobile-social-list a { 
        width: 45px; height: 45px; border-radius: 50%; background: rgba(255,255,255,0.05);
        display: flex; align-items: center; justify-content: center; color: #fff;
        border: 1px solid rgba(255,255,255,0.05); text-decoration: none; font-size: 1.1rem;
    }
    @keyframes slideUp {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }}
    /* Force Hero Visibility on Mobile (No Scroll Needed) */
    .hero .reveal { 
        opacity: 1 !important; 
        transform: none !important; 
        filter: none !important; 
        visibility: visible !important; 
        transition: none !important;
    }
    
    .hero-graphic-side { margin-top: 20px; }
}

/* --- V10 Premium Icons Aesthetics --- */
.gradient-icon {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 10px rgba(0, 242, 254, 0.4));
}
.glass-icon-box {
    width: 60px; height: 60px; border-radius: 16px;
    background: rgba(255, 255, 255, 0.05); margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.process-bento:hover .glass-icon-box {
    transform: translateY(-5px) scale(1.05) rotate(5deg);
    box-shadow: 0 15px 40px rgba(0, 242, 254, 0.3), inset 0 0 0 1px rgba(0, 242, 254, 0.5);
}
.tech-star {
    font-size: 1.2rem;
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary));
    animation: pulseStar 2s infinite ease-in-out;
}
@keyframes pulseStar {
    0%, 100% { opacity: 0.6; transform: scale(0.8) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.1) rotate(90deg); filter: drop-shadow(0 0 15px var(--primary)); }
}
.contact-method-icon {
    font-size: 2.5rem; margin-bottom: 15px;
    background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.08) 100%);
    width: 80px; height: 80px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.method-option input:checked + .method-card .contact-method-icon {
    border-color: var(--primary); background: var(--primary); box-shadow: 0 15px 30px rgba(0, 242, 254, 0.3);
}
.method-option input:checked + .method-card .contact-method-icon i { color: #000; -webkit-text-fill-color: initial; filter: none; }

/* ===== SUCCESS MODAL ===== */
.success-modal-overlay {
    position: fixed; inset: 0; z-index: 10001;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.4s ease;
}
.success-modal-overlay.visible { opacity: 1; }
.success-modal-overlay.visible .success-modal-box {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.success-modal-box {
    background: rgba(15, 15, 20, 0.9);
    backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 100px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255,255,255,0.05);
    border-radius: 36px;
    padding: 60px 50px;
    text-align: center;
    max-width: 460px;
    width: 90%;
    transform: scale(0.85) translateY(30px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
/* Top glare */
.success-modal-box::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.success-icon-wrap {
    position: relative; width: 100px; height: 100px;
    margin: 0 auto 30px; display: flex; align-items: center; justify-content: center;
}
.success-ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid var(--primary);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.4), inset 0 0 20px rgba(0, 242, 254, 0.1);
    animation: successPulse 2s infinite ease-in-out;
}
@keyframes successPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.7; box-shadow: 0 0 50px rgba(0,242,254,0.6); }
}
.success-check {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: successCheckPop 0.5s 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
@keyframes successCheckPop {
    from { transform: scale(0) rotate(-30deg); opacity: 0; }
    to   { transform: scale(1) rotate(0deg);   opacity: 1; }
}

.success-title {
    font-size: 1.8rem; font-weight: 800; letter-spacing: -0.5px;
    margin-bottom: 15px; color: #fff;
}
.success-desc {
    color: var(--text-muted); font-size: 1.05rem; line-height: 1.7;
    margin-bottom: 35px;
}
.success-close-btn {
    width: 100%; border-radius: 16px; padding: 18px 0;
    font-size: 1rem; font-family: var(--font-en);
    border: none; outline: none;
}

/* ============================================================
   ⬆️ SCROLL TO TOP BUTTON — Desktop Only
   ============================================================ */
.scroll-top-btn {
    position: fixed;
    bottom: 40px;
    left: 40px;
    z-index: 9990;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    background: rgba(10, 10, 18, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.7) translateY(20px);
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.07), inset 0 1px 0 rgba(255,255,255,0.1);
}
.scroll-top-btn.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: all;
}
.scroll-top-btn:hover {
    transform: scale(1.08) translateY(-4px);
    background: rgba(26, 108, 255, 0.9);
    box-shadow: 0 16px 40px rgba(26,108,255,0.45), 0 0 0 1px rgba(26,108,255,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}
.scroll-top-btn:active { transform: scale(0.95); }
.scroll-top-inner {
    position: relative; z-index: 2; color: #fff; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s ease;
}
.scroll-top-btn:hover .scroll-top-inner { transform: translateY(-2px); }
.scroll-top-pulse {
    position: absolute; inset: -8px; border-radius: 50%;
    border: 2px solid rgba(26, 108, 255, 0.3);
    animation: scrollPulse 2.5s ease-out infinite; pointer-events: none;
}
@keyframes scrollPulse {
    0%   { transform: scale(1);   opacity: 0.6; }
    80%  { transform: scale(1.5); opacity: 0;   }
    100% { transform: scale(1.5); opacity: 0;   }
}
.scroll-top-progress-ring {
    position: absolute; inset: 0; width: 100%; height: 100%;
    transform: rotate(-90deg); pointer-events: none;
}
.ring-track { fill: none; stroke: rgba(255,255,255,0.07); stroke-width: 2.5; }
.ring-fill {
    fill: none; stroke: #1a6cff; stroke-width: 2.5; stroke-linecap: round;
    stroke-dasharray: 150.8; stroke-dashoffset: 150.8;
    transition: stroke-dashoffset 0.1s linear;
    filter: drop-shadow(0 0 4px rgba(26,108,255,0.7));
}
@media (max-width: 768px) { .scroll-top-btn { display: none !important; } }

/* ============================================================
   LIVE CHAT WIDGET — v1.0 (DevNaji Premium)
   ============================================================ */

.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* ── Bubble Toggle Button — Premium Pill ─────────────── */
.chat-bubble-btn {
    position: relative;
    height: 54px;
    padding: 0 24px 0 20px;
    border-radius: 40px;
    background: #1a6cff;
    border: none;
    box-shadow:
        0 8px 32px rgba(26, 108, 255, 0.5),
        0 2px 8px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    flex-shrink: 0;
    overflow: visible;
    white-space: nowrap;
}
.chat-bubble-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 16px 48px rgba(26, 108, 255, 0.65),
        0 4px 16px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.25);
}
.chat-bubble-btn:active { transform: scale(0.97); }

/* Inner layout */
.chat-bubble-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

/* Icon wrapper */
.chat-bubble-icon-wrap {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.chat-bubble-icon-wrap i {
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: #fff;
    transition: opacity 0.3s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.chat-icon-close { opacity: 0; transform: rotate(-90deg) scale(0.7); }
.chat-bubble-btn.active .chat-icon-open { opacity: 0; transform: rotate(90deg) scale(0.7); }
.chat-bubble-btn.active .chat-icon-close { opacity: 1; transform: rotate(0deg) scale(1); }

/* Label text */
.chat-bubble-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-en);
    letter-spacing: 0.5px;
    transition: opacity 0.3s, max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 120px;
    overflow: hidden;
}
/* Hide label when open */
.chat-bubble-btn.active .chat-bubble-label {
    opacity: 0;
    max-width: 0;
}
.chat-bubble-btn.active {
    padding: 0 18px;
    border-radius: 50%;
    width: 54px;
}


/* Pulse ring */
.chat-bubble-pulse {
    position: absolute; inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(26, 108, 255, 0.4);
    animation: chatPulse 2.4s ease-out infinite;
    pointer-events: none;
}
@keyframes chatPulse {
    0%   { transform: scale(1);   opacity: 0.7; }
    80%  { transform: scale(1.5); opacity: 0;   }
    100% { transform: scale(1.5); opacity: 0;   }
}

/* Badge */
.chat-bubble-badge {
    position: absolute;
    top: 0px; right: -2px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #ff3b3b;
    border: 2px solid #0a0a0e;
    transform: scale(1);
    z-index: 5;
    color: transparent;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ── Panel ──────────────────────────────────────────────────── */
.chat-panel {
    position: absolute;
    bottom: calc(100% + 16px);
    right: 0;
    width: 370px;
    max-height: 600px;
    border-radius: 28px !important;
    display: flex; flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: bottom right;
    box-shadow: 0 30px 80px rgba(0,0,0,0.7),
                0 0 0 1px rgba(255,255,255,0.07),
                inset 0 1px 0 rgba(255,255,255,0.1) !important;
}
.chat-panel.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* ── Header ─────────────────────────────────────────────────── */
.chat-panel-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
    background: linear-gradient(135deg,
        rgba(6, 196, 206, 0.12) 0%,
        rgba(79, 172, 254, 0.06) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    position: relative;
}
.chat-panel-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%, rgba(6, 196, 206, 0.6) 50%, transparent 100%);
}

.chat-header-avatar {
    position: relative;
    flex-shrink: 0;
    width: 46px; height: 46px;
}
.chat-header-avatar img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 0 12px rgba(6, 196, 206, 0.4);
}
.chat-online-dot {
    position: absolute;
    bottom: 1px; right: 1px;
    width: 11px; height: 11px;
    border-radius: 50%;
    background: #27c93f;
    border: 2px solid var(--bg-main);
    animation: onlinePulse 2s ease-in-out infinite;
}
@keyframes onlinePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(39, 201, 63, 0.4); }
    50%       { box-shadow: 0 0 0 5px rgba(39, 201, 63, 0); }
}

.chat-header-info { flex: 1; min-width: 0; }
.chat-header-name {
    font-size: 1rem; font-weight: 800;
    color: #fff; margin: 0;
    letter-spacing: -0.3px;
}
.chat-header-status {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    opacity: 0.9;
    display: flex; align-items: center; gap: 5px;
}
.chat-header-status::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #27c93f;
    display: inline-block;
    animation: onlinePulse 2s ease-in-out infinite;
}

.chat-close-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.chat-close-btn:hover {
    background: rgba(255, 80, 80, 0.15);
    border-color: rgba(255, 80, 80, 0.3);
    color: #ff5050;
}

.mobile-bottom-nav {
    display: none;
}

/* ── Body ───────────────────────────────────────────────────── */
.chat-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ── Welcome Screen ─────────────────────────────────────────── */
.chat-welcome {
    padding: 28px 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    flex: 1;
    overflow-y: auto;
}
.chat-welcome-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(6, 196, 206, 0.15), rgba(79, 172, 254, 0.08));
    border: 1px solid rgba(6, 196, 206, 0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 6px;
    animation: iconFloat 3s ease-in-out infinite;
}
@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%       { transform: translateY(-6px) rotate(5deg); }
}
.chat-welcome h4 {
    font-size: 1.2rem; font-weight: 800;
    color: #fff; margin: 0;
    letter-spacing: -0.3px;
}
.chat-welcome p {
    font-size: 0.9rem; color: var(--text-muted);
    line-height: 1.6; margin: 0;
}

/* Quick Actions */
.chat-quick-actions {
    display: flex; flex-direction: column;
    gap: 10px; width: 100%; margin-top: 8px;
}
.chat-quick-btn {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: right;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}
.chat-quick-btn i {
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
    width: 18px; text-align: center;
}
.chat-quick-btn:hover {
    background: rgba(6, 196, 206, 0.08);
    border-color: rgba(6, 196, 206, 0.3);
    color: #fff;
    transform: translateX(-4px);
    box-shadow: 0 8px 25px rgba(6, 196, 206, 0.12);
}
[dir="ltr"] .chat-quick-btn:hover,
[dir="ltr"] .chat-quick-btn { text-align: left; }
[dir="ltr"] .chat-quick-btn:hover { transform: translateX(4px); }

/* ── Form State ─────────────────────────────────────────────── */
.chat-form-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.chat-msg {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
    word-break: break-word;
    animation: msgSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes msgSlideIn {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-msg.bot {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px 18px 18px 4px;
    color: #e0e0e0;
    align-self: flex-start;
}
.chat-msg.user {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    font-weight: 600;
    border-radius: 18px 18px 4px 18px;
    align-self: flex-end;
    box-shadow: 0 4px 16px rgba(6, 196, 206, 0.3);
}

/* Typing indicator */
.typing-indicator {
    display: flex !important;
    align-items: center;
    gap: 5px;
    padding: 12px 18px;
}
.typing-indicator span {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typingBounce 1.2s infinite ease-in-out;
    display: block;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0);   opacity: 0.4; }
    30%            { transform: translateY(-7px); opacity: 1;   }
}

/* ── Input Area ─────────────────────────────────────────────── */
.chat-input-area {
    padding: 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}
.chat-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s;
}
.chat-input:focus {
    border-color: var(--primary);
    background: rgba(6, 196, 206, 0.05);
    box-shadow: 0 0 0 3px rgba(6, 196, 206, 0.12);
}
.chat-input::placeholder { color: rgba(255,255,255,0.25); }
.chat-input.shake { animation: inputShake 0.5s ease; }
@keyframes inputShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); border-color: #ff5050; }
    40%, 80% { transform: translateX(6px);  border-color: #ff5050; }
}

.chat-send-row { display: flex; justify-content: flex-end; }
.chat-send-btn {
    padding: 11px 26px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(6, 196, 206, 0.3);
}
.chat-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 196, 206, 0.5);
}
.chat-send-btn:disabled {
    opacity: 0.5; cursor: not-allowed; transform: none;
}

/* ── Channel State ──────────────────────────────────────────── */
.chat-channel-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.chat-channel-options {
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.chat-channel-btn {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 20px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}
.chat-channel-btn i { font-size: 1.3rem; flex-shrink: 0; }

.chat-channel-btn.whatsapp {
    background: rgba(37, 211, 102, 0.08);
    border-color: rgba(37, 211, 102, 0.2);
    color: #25d366;
}
.chat-channel-btn.whatsapp:hover {
    background: rgba(37, 211, 102, 0.18);
    border-color: #25d366;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.25);
}

.chat-channel-btn.email {
    background: rgba(6, 196, 206, 0.08);
    border-color: rgba(6, 196, 206, 0.2);
    color: var(--primary);
}
.chat-channel-btn.email:hover {
    background: rgba(6, 196, 206, 0.16);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(6, 196, 206, 0.25);
}

/* ── Success State ──────────────────────────────────────────── */
.chat-success-state {
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    flex: 1;
    justify-content: center;
}
.chat-success-icon {
    font-size: 3rem;
    color: var(--primary);
    background: rgba(6, 196, 206, 0.1);
    border: 1px solid rgba(6, 196, 206, 0.2);
    width: 72px; height: 72px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
@keyframes successPop {
    from { transform: scale(0) rotate(-30deg); opacity: 0; }
    to   { transform: scale(1) rotate(0deg);   opacity: 1; }
}
.chat-success-state h4 {
    font-size: 1.2rem; font-weight: 800;
    color: #fff; margin: 0;
}
.chat-success-state p {
    font-size: 0.9rem; color: var(--text-muted);
    line-height: 1.6; margin: 0; max-width: 260px;
}
.chat-restart-btn {
    margin-top: 6px;
    padding: 12px 24px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: var(--text-muted);
    font-family: inherit; font-size: 0.85rem; font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}
.chat-restart-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(6, 196, 206, 0.06);
}

/* ── Footer ─────────────────────────────────────────────────── */
.chat-panel-footer {
    padding: 10px 16px;
    display: flex; align-items: center; justify-content: center;
    gap: 8px;
    border-top: 1px solid rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.25);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
.chat-panel-footer i { font-size: 0.75rem; color: #27c93f; }

/* ── RTL/LTR Adjustments ────────────────────────────────────── */
[dir="rtl"] .chat-msg.bot { border-radius: 18px 18px 4px 18px; }
[dir="rtl"] .chat-msg.user { border-radius: 18px 18px 18px 4px; }
[dir="rtl"] .chat-quick-btn { text-align: right; }
[dir="rtl"] .chat-quick-btn:hover { transform: translateX(4px); }
[dir="rtl"] .chat-send-row { justify-content: flex-start; }


[dir="rtl"] .top-scroll-progress {
    right: 0;
    left: auto;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 480px) {
    .chat-widget {
        right: 16px;
        bottom: 20px;
    }
    .chat-panel {
        width: calc(100vw - 32px);
        max-height: 70vh;
    }
    .chat-bubble-btn { width: 58px; height: 58px; }
}


/* ============================================================
   📱 MOBILE APP EXPERIENCE — Premium Native App Feel
   ============================================================ */

@media (max-width: 768px) {

    /* ── Safe Area (Notch Support) ───────────────────────────── */
    body {
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    /* ── Header: App Bar Style ───────────────────────────────── */
    header {
        top: 12px !important;
        left: 16px !important;
        right: 16px !important;
        width: calc(100% - 32px) !important;
        transform: none !important;
        padding: 10px 18px !important;
        border-radius: 22px !important;
        background: rgba(8, 8, 12, 0.92) !important;
        backdrop-filter: blur(30px) saturate(200%) !important;
        -webkit-backdrop-filter: blur(30px) saturate(200%) !important;
        border: 1px solid rgba(255,255,255,0.07) !important;
        box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.05) inset !important;
        max-width: none !important;
    }
    header.scrolled {
        top: 8px !important;
        background: rgba(8, 8, 12, 0.97) !important;
    }
    .logo img { height: 24px; }

    /* Hide hamburger + desktop nav — we use bottom nav instead */
    .hamburger { display: none !important; }
    .nav-links { display: none !important; }

    /* ── Sections: App Screen Padding ────────────────────────── */
    section { padding: 70px 0 50px; scroll-margin-top: 80px; }
    .container { padding: 0 18px; }

    /* ── Hero: Full-Screen App Splash ────────────────────────── */
    .v6-hero {
        min-height: 100dvh;
        padding-top: 90px;
        padding-bottom: 110px; /* room for bottom nav */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .hero-split-layout {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }
    .hero-text-side { text-align: center; }

    /* Bio Widget — App Profile Card */
    .hero-bio-widget {
        padding: 12px 18px !important;
        gap: 14px !important;
        width: auto !important;
        max-width: 340px !important;
        margin: 0 auto 22px !important;
        border-radius: 50px !important;
        background: rgba(255,255,255,0.04) !important;
    }
    .bio-avatar { width: 52px !important; height: 52px !important; }
    .bio-name { font-size: 1.3rem !important; }
    .bio-welcome { font-size: 0.72rem !important; }
    .bio-status { font-size: 0.72rem !important; padding: 4px 12px !important; }

    /* Typed Title */
    .typed-title { font-size: 2.1rem !important; letter-spacing: -1.5px !important; }
    .hero-sub {
        font-size: 0.98rem !important;
        line-height: 1.65;
        margin-bottom: 28px !important;
        color: rgba(160, 174, 192, 0.9);
    }
    .hero-buttons-side {
        display: flex;
        justify-content: center;
        margin-top: 0;
    }
    .btn-large {
        width: auto !important;
        min-width: 220px;
        max-width: 300px;
        padding: 16px 36px !important;
        font-size: 1rem !important;
        border-radius: 40px !important;
    }

    /* Glass IDE — hidden on mobile for cleaner look */
    .hero-graphic-side { display: none !important; }

    /* ── Tech Slider ─────────────────────────────────────────── */
    .tech-slider { margin: 30px 0; }

    /* ── Bento Grid: App Cards ───────────────────────────────── */
    .bento-section { padding-top: 30px; }
    .bento-wrapper {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .bento-item,
    .bento-bio,
    .process-bento,
    .bento-photo,
    .bento-tech,
    .bento-contact,
    .bento-timeline {
        grid-column: span 1 !important;
        border-radius: 28px !important;
        padding: 28px 22px !important;
    }
    .bento-photo { min-height: 240px !important; }

    /* App-style glass cards */
    .glass-card {
        border-radius: 28px !important;
        background: rgba(14, 14, 20, 0.6) !important;
        backdrop-filter: blur(30px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(30px) saturate(180%) !important;
        border: 1px solid rgba(255,255,255,0.07) !important;
        box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.05) inset !important;
    }

    .bento-title { font-size: 1.3rem !important; margin-bottom: 14px !important; }
    .section-title { font-size: 2.1rem !important; margin-bottom: 30px !important; }
    .kicker { font-size: 0.72rem !important; margin-bottom: 12px !important; }

    /* Bio stats */
    .mini-stats { gap: 16px; flex-wrap: wrap; }
    .m-stat .num { font-size: 1.6rem; }

    /* Tech grid */
    .tech-grid-split { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
    .mini-tech-wrap { gap: 6px; }
    .t-badge { font-size: 0.7rem; padding: 6px 10px; border-radius: 8px; }

    /* Timeline */
    .b-timeline { flex-direction: column; gap: 20px; }
    .bt-item { text-align: center; }
    .bt-year { font-size: 1rem; }
    .bt-info { font-size: 0.95rem; }

    /* ── Process: App Feature Cards ──────────────────────────── */
    .process-bento {
        padding: 28px 22px !important;
    }
    .process-bento h3 { font-size: 1.2rem; }
    .process-bento p { font-size: 0.95rem; }
    .process-bento-num { font-size: 6rem; opacity: 1; top: -5px; }
    .glass-icon-box { width: 50px; height: 50px; font-size: 1.4rem; margin-bottom: 14px; }

    /* ── Portfolio: Snap Cards ───────────────────────────────── */
    .portfolio-bento-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 16px !important;
        padding: 10px 4px 20px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .portfolio-bento-grid::-webkit-scrollbar { display: none; }
    .project-bento-card {
        flex: 0 0 88vw !important;
        scroll-snap-align: center;
        border-radius: 28px !important;
    }
    .project-img { height: 220px !important; border-radius: 22px 22px 0 0 !important; }
    .project-info { padding: 22px 20px !important; }
    .project-title { font-size: 1.3rem !important; }
    .project-desc { font-size: 0.9rem !important; }

    /* Search & Filters */
    .portfolio-dashboard { gap: 16px; margin-bottom: 24px; }
    .portfolio-controls { flex-direction: column; gap: 14px; }
    .search-wrap { max-width: 100%; height: 50px; }
    .filters-wrap { width: 100%; overflow-x: auto; justify-content: flex-start; }
    .filter-btn { padding: 9px 18px; font-size: 0.85rem; flex-shrink: 0; }

    /* ── Contact Form: App Form Style ────────────────────────── */
    .contact-bento-form {
        padding: 26px 20px !important;
        margin-bottom: 130px !important; /* clear bottom nav */
        border-radius: 28px !important;
    }
    .input-group { flex-direction: column; gap: 12px; }
    .pro-contact-form input,
    .pro-contact-form select,
    .pro-contact-form textarea {
        padding: 16px 20px !important;
        font-size: 1rem !important;
        border-radius: 14px !important;
        border: 1px solid rgba(255,255,255,0.08) !important;
    }
    .pro-contact-form input:focus,
    .pro-contact-form select:focus,
    .pro-contact-form textarea:focus {
        border-color: var(--primary) !important;
        box-shadow: 0 0 0 3px rgba(6, 196, 206, 0.15) !important;
    }
    .method-selector { gap: 10px; }
    .method-card { padding: 16px 12px; border-radius: 16px; font-size: 0.85rem; }
    .method-card i { font-size: 1.3rem; }
    textarea#form-msg { min-height: 110px; resize: none; }

    /* ── Footer ──────────────────────────────────────────────── */
    .footer-v5 { padding: 40px 0 20px; }
    .footer-grid {
        flex-direction: column;
        text-align: center;
        gap: 24px;
        margin-top: 50px;
        padding-top: 24px;
    }
    .f-info { text-align: center; }
    .f-info p { font-size: 0.92rem; }
    .social-icons { justify-content: center !important; gap: 10px; flex-wrap: wrap; }
    .social-icons a { width: 44px; height: 44px; font-size: 1rem; }
    .footer-bottom { margin-top: 30px; }
    .footer-bottom p { font-size: 0.82rem; }

    /* ── Chat Widget Mobile ───────────────────────────────────── */
    .chat-widget {
        right: 16px !important;
        bottom: 90px !important; /* float above bottom nav */
    }

    /* ── Social FAB Mobile ────────────────────────────────────── */
    .social-fab-wrap {
        display: none !important; /* hidden — replaced by bottom nav */
    }

    /* ── Disable heavy animations ────────────────────────────── */
    .aurora-bg { animation: none !important; }
    .tilt-card { transform: none !important; }
    .js-tilt-glare { display: none !important; }
    .reveal.delay-1, .reveal.delay-2, .reveal.delay-3 { transition-delay: 0s !important; }
    .hero .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ── Bottom Navigation Bar ────────────────────────────────────── */
.mobile-bottom-nav {
    display: none; /* shown only on mobile via media query */
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9000;
        background: rgba(8, 8, 14, 0.97);
        backdrop-filter: blur(30px) saturate(200%);
        -webkit-backdrop-filter: blur(30px) saturate(200%);
        border-top: 1px solid rgba(255,255,255,0.07);
        padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -8px 40px rgba(0,0,0,0.6);
    }

    .mob-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 6px 18px;
        border-radius: 16px;
        text-decoration: none !important;
        color: rgba(160, 174, 192, 0.7);
        transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        position: relative;
        min-width: 60px;
        cursor: pointer;
    }

    .mob-nav-item:hover {
        color: rgba(255,255,255,0.9);
        background: rgba(255,255,255,0.04);
    }

    .mob-nav-item.active {
        color: var(--primary);
        background: rgba(6, 196, 206, 0.1);
    }

    /* Active indicator dot */
    .mob-nav-item.active::after {
        content: '';
        position: absolute;
        top: -1px;
        left: 50%;
        transform: translateX(-50%);
        width: 24px;
        height: 3px;
        background: var(--primary);
        border-radius: 0 0 4px 4px;
        box-shadow: 0 0 10px rgba(6, 196, 206, 0.6);
    }

    .mob-nav-icon {
        font-size: 1.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .mob-nav-item.active .mob-nav-icon {
        transform: translateY(-2px) scale(1.1);
    }

    .mob-nav-label {
        font-size: 0.65rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        white-space: nowrap;
        font-family: var(--font-en);
    }

    /* Tap animation */
    .mob-nav-item:active {
        transform: scale(0.92);
        transition: transform 0.1s ease;
    }
}


/* ============================================================
   🎯 Hero CTA Group & Social Accounts Row — Premium
   ============================================================ */

.hero-cta-group {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

/* Glass "تواصل معي" Button */
.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 32px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-en);
    color: #fff;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-decoration: none !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    white-space: nowrap;
}
.hero-cta-secondary i { font-size: 1rem; color: var(--primary); }
.hero-cta-secondary:hover {
    background: rgba(6, 196, 206, 0.12);
    border-color: rgba(6, 196, 206, 0.4);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(6, 196, 206, 0.2);
}

/* Social Row */
.hero-social-row {
    display: flex;
    align-items: center;
    gap: 16px;
}
.hero-social-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(160,174,192,0.6);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
    font-family: var(--font-en);
}
.hero-social-icons { display: flex; gap: 10px; align-items: center; }
.hero-soc-btn {
    width: 42px; height: 42px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    text-decoration: none !important;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative; overflow: hidden;
}
.hero-soc-btn::before {
    content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s;
}
.hero-soc-btn i { position: relative; z-index: 1; }
.hero-soc-btn:hover { transform: translateY(-4px) scale(1.08); }
.hero-soc-btn:active { transform: scale(0.93); }

/* Brand colors */
.hero-soc-btn.wa::before  { background: #25d366; }
.hero-soc-btn.wa:hover  { box-shadow: 0 10px 25px rgba(37,211,102,0.45); border-color: #25d366; }
.hero-soc-btn.ig::before  { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.hero-soc-btn.ig:hover  { box-shadow: 0 10px 25px rgba(220,39,67,0.4); border-color: #dc2743; }
.hero-soc-btn.tw::before  { background: #111; }
.hero-soc-btn.tw:hover  { box-shadow: 0 10px 25px rgba(255,255,255,0.1); border-color: #444; }
.hero-soc-btn.li::before  { background: #0a66c2; }
.hero-soc-btn.li:hover  { box-shadow: 0 10px 25px rgba(10,102,194,0.45); border-color: #0a66c2; }
.hero-soc-btn.gh::before  { background: #24292f; }
.hero-soc-btn.gh:hover  { box-shadow: 0 10px 25px rgba(255,255,255,0.1); border-color: #555; }
.hero-soc-btn:hover::before { opacity: 1; }

/* ── Mobile Overrides ──────────────────────────────────── */
@media (max-width: 768px) {

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 26px;
    }
    .hero-cta-main,
    .hero-cta-secondary {
        width: 100%;
        max-width: 310px;
        justify-content: center;
        text-align: center;
        padding: 17px 28px !important;
        font-size: 1rem !important;
        border-radius: 18px !important;
    }
    .hero-social-row {
        justify-content: center;
        flex-direction: column;
        gap: 12px;
    }
    .hero-social-label { font-size: 0.68rem; letter-spacing: 2px; }
    .hero-social-icons { gap: 12px; }
    .hero-soc-btn { width: 52px; height: 52px; border-radius: 18px; font-size: 1.3rem; }

    /* ── Chat Bubble: Blue on Mobile ─────────────────────── */
    .chat-bubble-btn {
        background: linear-gradient(135deg, #1a6cff 0%, #0d4dd6 100%) !important;
        box-shadow: 0 8px 30px rgba(26,108,255,0.55), 0 2px 8px rgba(0,0,0,0.4) !important;
    }
    .chat-bubble-btn:hover {
        box-shadow: 0 16px 40px rgba(26,108,255,0.7), 0 4px 16px rgba(0,0,0,0.4) !important;
        transform: translateY(-4px) scale(1.07) !important;
    }
    .chat-bubble-pulse {
        border-color: rgba(26, 108, 255, 0.5) !important;
    }
    
    .mobile-hide { display: none !important; }
}

/* ============================================================
   📲 Social Action Sheet (Native App Style)
   ============================================================ */
.social-action-sheet {
    position: fixed;
    inset: 0;
    z-index: 10005;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0s 0.4s;
}
.social-action-sheet.active {
    pointer-events: all;
    visibility: visible;
    transition: visibility 0s 0s;
}
.sheet-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.social-action-sheet.active .sheet-overlay {
    opacity: 1;
}
.sheet-content {
    position: relative;
    background: rgba(15, 15, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px 30px 0 0;
    padding: 15px 20px calc(40px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1);
    z-index: 1;
}
.social-action-sheet.active .sheet-content {
    transform: translateY(0);
}
.sheet-handle {
    width: 40px;
    height: 5px;
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
    margin: 0 auto 20px;
}
.sheet-social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.sheet-soc-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    font-family: var(--font-en);
}
.sheet-soc-btn i {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.2s;
}
.sheet-soc-btn:active i {
    transform: scale(0.9);
}
.sheet-soc-btn.wa i { color: #25d366; background: rgba(37,211,102,0.1); border-color: rgba(37,211,102,0.2); }
.sheet-soc-btn.ig i { color: #e1306c; background: rgba(225,48,108,0.1); border-color: rgba(225,48,108,0.2); }
.sheet-soc-btn.tw i { color: #fff; background: rgba(255,255,255,0.1); }
.sheet-soc-btn.li i { color: #0a66c2; background: rgba(10,102,194,0.1); border-color: rgba(10,102,194,0.2); }
.sheet-soc-btn.gh i { color: #fff; background: rgba(255,255,255,0.1); }



