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

:root {
    --primary: #00DE51;
    --primary-rgb: 0, 222, 81;
    --dark: #050505;
    --dark-rgb: 5, 5, 5;
    --bg: #0a0a0b;
    --bg-alt: #111113;
    --bg-card: #161618;
    --bg-card-hover: #1c1c1f;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);
    --text: #f0f0f0;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-muted: rgba(255, 255, 255, 0.4);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --radius: 20px;
    --radius-sm: 12px;
    --radius-full: 50px;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(var(--primary-rgb), 0.15);
}

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

body {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

::selection {
    background: rgba(var(--primary-rgb), 0.3);
    color: #fff;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(var(--primary-rgb), 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(var(--primary-rgb), 0.5); }

/* ===== ARABIC FONT OVERRIDE ===== */
[lang="ar"] {
    --font-heading: 'Cairo', sans-serif;
    --font-body: 'Cairo', sans-serif;
    line-height: 1.9;
}

[lang="ar"] .section-tag,
[lang="ar"] .navbar-links a,
[lang="ar"] .hero-trust span,
[lang="ar"] .stat-label {
    letter-spacing: 0;
}

[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4 {
    letter-spacing: 0;
}

/* ===== THREE.JS BACKGROUND ===== */
#three-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

#three-bg canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* ===== ISAK SHADOW SYSTEM ===== */
:root {
    --shadow-1: 0px 0px 0px 1px rgba(255,255,255,0.04),
        0px 1px 2px rgba(0,0,0,0.3),
        0px 4px 8px rgba(0,0,0,0.2),
        0px 8px 16px rgba(0,0,0,0.15);
    --shadow-2: 0px 0px 0px 1px rgba(255,255,255,0.06),
        0px 2px 4px rgba(0,0,0,0.3),
        0px 8px 16px rgba(0,0,0,0.25),
        0px 16px 32px rgba(0,0,0,0.2),
        0px 2px 8px rgba(var(--primary-rgb), 0.05) inset;
    --shadow-3: 0px 0px 0px 1px rgba(var(--primary-rgb), 0.15),
        0px 4px 8px rgba(0,0,0,0.3),
        0px 12px 24px rgba(0,0,0,0.25),
        0px 24px 48px rgba(0,0,0,0.2),
        0px 0px 30px rgba(var(--primary-rgb), 0.08);
}

/* ===== GLASS MORPHISM ===== */
.glass {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(var(--primary-rgb), 0.06) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(var(--primary-rgb), 0.2);
    box-shadow: var(--shadow-3);
}

/* ===== 3D CARD TRANSFORM ===== */
.card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease;
}

.card-3d:hover {
    box-shadow: var(--shadow-3);
}

.card-3d-inner {
    transform: translateZ(30px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BUTTON MICRO-INTERACTIONS ===== */
.btn-magnetic {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease-out, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
    overflow: hidden;
    isolation: isolate;
}

.btn-magnetic::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.12) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.btn-magnetic:hover::before { opacity: 1; }

.btn-magnetic .btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    font-size: 11px;
}

.btn-magnetic:hover .btn-arrow {
    transform: translateX(4px);
    background: rgba(255,255,255,0.2);
}

.btn-ripple { position: relative; overflow: hidden; }

.btn-ripple .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: rippleAnim 0.6s linear;
    pointer-events: none;
}

@keyframes rippleAnim {
    to { transform: scale(4); opacity: 0; }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 11, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.navbar-logo {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.navbar-logo span { color: var(--primary); }

.navbar-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.navbar-links a {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
    letter-spacing: 0.02em;
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 1px;
}

.navbar-links a:hover, .navbar-links a.active {
    color: var(--text);
}

.navbar-links a:hover::after, .navbar-links a.active::after {
    width: 100%;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--primary);
    color: var(--dark);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    transition: var(--transition);
    letter-spacing: 0.01em;
}

.navbar-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.35);
}

.navbar-cta i { font-size: 11px; transition: var(--transition); }
.navbar-cta:hover i { transform: translateX(3px); }

/* Language Switcher */
.lang-switcher { display: flex; gap: 4px; }

.lang-btn {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: transparent;
    cursor: pointer; padding: 0; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}

.lang-btn img {
    width: 20px; height: 14px;
    object-fit: cover; border-radius: 2px;
    filter: grayscale(80%);
    transition: var(--transition);
}

.lang-btn:hover img, .lang-btn.active img { filter: grayscale(0%); }
.lang-btn.active { border-color: var(--primary); background: rgba(var(--primary-rgb), 0.1); }

/* Hamburger */
.hamburger {
    display: none;
    width: 28px; height: 22px;
    position: relative; cursor: pointer;
    background: none; border: none;
}

.hamburger span,
.hamburger span::before,
.hamburger span::after {
    display: block; width: 100%; height: 2px;
    background: var(--text);
    position: absolute;
    transition: var(--transition);
    border-radius: 1px;
}

.hamburger span { top: 50%; transform: translateY(-50%); }
.hamburger span::before { content: ''; top: -8px; }
.hamburger span::after { content: ''; top: 8px; }

.hamburger.active span { background: transparent; }
.hamburger.active span::before { top: 0; transform: rotate(45deg); }
.hamburger.active span::after { top: 0; transform: rotate(-45deg); }

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 48px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(var(--primary-rgb), 0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(var(--primary-rgb), 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero-left {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 2;
}

.hero-avatar-wrapper {
    position: relative;
    text-align: center;
}

.hero-avatar {
    width: 200px; height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(var(--primary-rgb), 0.5);
    box-shadow: 0 0 0 6px rgba(var(--primary-rgb), 0.1), 0 0 60px rgba(var(--primary-rgb), 0.15);
    transition: var(--transition);
    animation: avatarFloat 5s ease-in-out infinite;
}

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

.hero-avatar:hover {
    box-shadow: 0 0 0 8px rgba(var(--primary-rgb), 0.15), 0 0 80px rgba(var(--primary-rgb), 0.25);
    transform: scale(1.03);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 6px 16px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}

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

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(var(--primary-rgb), 0); }
}

.hero-info { text-align: center; }

.hero-name {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.hero-role {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.hero-social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.hero-social a {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--bg-glass);
    color: var(--text-secondary);
    font-size: 16px;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.hero-social a:hover {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
}

.hero-right {
    flex: 1;
    z-index: 2;
}

.hero-hey {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-style: italic;
    font-family: var(--font-heading);
}

.hero-headline {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 8px;
    min-height: 65px;
    letter-spacing: -0.04em;
}

.hero-rotator {
    display: block;
    position: relative;
    overflow: hidden;
    min-height: 65px;
}

.hero-word {
    position: absolute;
    width: 100%;
    left: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--primary);
}

.hero-word.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 20px;
    min-height: 32px;
}

.typed-cursor {
    animation: blink 1s step-end infinite;
    color: var(--primary);
}

@keyframes blink { 50% { opacity: 0; } }

.hero-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: 24px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--text-secondary);
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-trust i { color: var(--primary); font-size: 13px; }

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--primary);
    color: var(--dark);
    animation: btnPulseGlow 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(var(--primary-rgb), 0.35);
    animation: none;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border-hover);
    animation: btnFloat 4s ease-in-out infinite;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    animation: none;
}

@keyframes btnPulseGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3), 0 0 0 0 rgba(var(--primary-rgb), 0.2);
    }
    50% {
        box-shadow: 0 6px 25px rgba(var(--primary-rgb), 0.45), 0 0 0 8px rgba(var(--primary-rgb), 0);
    }
}

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

/* Continuous glow ring on primary CTA */
.hero-buttons .btn-primary::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    border: 2px solid rgba(var(--primary-rgb), 0.3);
    animation: btnRingPulse 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes btnRingPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0;
        transform: scale(1.08);
    }
}

.btn i { font-size: 12px; transition: var(--transition); }
.btn:hover i { transform: translateX(3px); }

/* ===== STATS BAR ===== */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 40px 32px;
    max-width: 1000px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-alt {
    background: var(--bg-alt);
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.section-alt > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
}

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

.section-tag {
    display: inline-block;
    font-size: 11px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 700;
    margin-bottom: 16px;
    padding: 6px 16px;
    background: rgba(var(--primary-rgb), 0.08);
    border-radius: var(--radius-full);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 16px auto 0;
    line-height: 1.8;
}

/* ===== ABOUT GRID ===== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.about-card {
    padding: 32px 28px;
    border-radius: var(--radius);
    position: relative;
    z-index: 1;
}

.about-card > * { position: relative; z-index: 1; }

.about-card-icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(var(--primary-rgb), 0.15);
}

.about-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.about-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-card p strong { color: var(--text); }

/* Facts Row */
.facts-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.fact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    border-radius: var(--radius-sm);
}

.fact-icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 16px;
    flex-shrink: 0;
    border: 1px solid rgba(var(--primary-rgb), 0.15);
}

.fact-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
    font-family: var(--font-body);
}

.fact-text span {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    padding: 36px 28px;
    border-radius: var(--radius);
    text-align: left;
    overflow: hidden;
}

.service-card > * { position: relative; z-index: 1; }

.service-icon {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary);
    border-radius: var(--radius-sm);
    color: var(--dark);
    font-size: 22px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.3);
}

.service-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.service-number {
    position: absolute;
    top: 20px; right: 20px;
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    z-index: 0 !important;
}

/* ===== MARQUEE ===== */
.marquee-section {
    overflow: hidden;
    padding: 24px 0;
    margin-bottom: 48px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.marquee-track {
    display: flex;
    gap: 32px;
    animation: marquee 25s linear infinite;
    width: max-content;
}

.marquee-item {
    flex-shrink: 0;
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    padding: 8px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.marquee-item:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    transform: translateY(-3px);
}

.marquee-item img {
    width: 100%; height: 100%;
    object-fit: contain;
    filter: grayscale(50%) brightness(0.9);
    transition: var(--transition);
}

.marquee-item:hover img { filter: grayscale(0%) brightness(1); }

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

/* ===== SKILLS ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.skill-group {
    padding: 28px;
    border-radius: var(--radius);
    position: relative;
}

.skill-group > * { position: relative; z-index: 1; }

.skill-group h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-group h3 i { color: var(--primary); font-size: 15px; }

.skill-bars { display: flex; flex-direction: column; gap: 16px; }

.skill-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.skill-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 140px;
}

.skill-track {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), rgba(var(--primary-rgb), 0.5));
    border-radius: 2px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.4);
}

.skill-pct {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    min-width: 36px;
    text-align: right;
}

/* ===== PROJECTS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.project-card > * { position: relative; z-index: 1; }

.project-image {
    position: relative;
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.project-badge {
    position: absolute;
    top: 12px; right: 12px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.project-info { padding: 24px; }

.project-info h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.project-info p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.project-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.project-tags span {
    padding: 4px 12px;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
}

/* ===== CERTIFICATIONS ===== */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 36px;
}

.cert-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    border-radius: var(--radius);
    color: inherit;
    position: relative;
}

.cert-card > * { position: relative; z-index: 1; }

.cert-icon {
    flex-shrink: 0;
    width: 56px; height: 56px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: rgba(66, 133, 244, 0.1);
    display: flex; align-items: center; justify-content: center;
    padding: 4px;
}

.cert-icon img { width: 100%; height: 100%; object-fit: contain; }
.cert-icon-green { background: rgba(var(--primary-rgb), 0.1); color: var(--primary); font-size: 22px; }
.cert-icon-blue { background: rgba(4, 159, 217, 0.1); color: #049fd9; font-size: 22px; }
.cert-icon-purple { background: rgba(0, 128, 255, 0.1); color: #0080ff; }

.cert-info { flex: 1; min-width: 0; }

.cert-info h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    font-family: var(--font-body);
}

.cert-issuer {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 10px;
}

.cert-issuer i { margin-right: 4px; }

.cert-tags { display: flex; flex-wrap: wrap; gap: 5px; }

.cert-tags span {
    padding: 3px 9px;
    background: rgba(66, 133, 244, 0.08);
    color: #4285F4;
    font-size: 10px;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 1px solid rgba(66, 133, 244, 0.15);
}

.cisco-tags span { background: rgba(4, 159, 217, 0.08); color: #049fd9; border-color: rgba(4, 159, 217, 0.15); }
.efset-tags span { background: rgba(0, 128, 255, 0.08); color: #0080ff; border-color: rgba(0, 128, 255, 0.15); }

.cert-arrow {
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition);
}

.cert-card:hover .cert-arrow { color: var(--primary); transform: translateX(3px); }

.cert-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.cert-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.cert-link-btn:hover {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
}

/* ===== RESUME ===== */
.resume-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.resume-col-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.resume-col-title i { color: var(--primary); }

.resume-timeline {
    position: relative;
    padding-left: 24px;
    border-left: 2px solid var(--border);
}

.resume-entry {
    position: relative;
    padding: 0 0 28px 24px;
}

.resume-entry:last-child { padding-bottom: 0; }

.resume-entry::before {
    content: '';
    position: absolute;
    left: -29px; top: 6px;
    width: 10px; height: 10px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}

.resume-date {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.resume-card {
    padding: 20px;
    border-radius: var(--radius-sm);
    position: relative;
}

.resume-card > * { position: relative; z-index: 1; }

.resume-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    font-family: var(--font-body);
}

.resume-company {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 10px;
}

.resume-card ul { list-style: none; padding: 0; }

.resume-card ul li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.resume-card ul li::before {
    content: '\25B8';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 11px;
}

.resume-card ul li strong { color: var(--text); }

.resume-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.resume-verify {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 6px 14px;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-full);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    transition: var(--transition);
}

.resume-verify:hover {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
}

.resume-cisco-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0;
}

.resume-cisco-list span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(4, 159, 217, 0.08);
    color: #049fd9;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 1px solid rgba(4, 159, 217, 0.15);
}

.resume-cisco-list span i { font-size: 10px; }

/* ===== BLOG ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.blog-card > * { position: relative; z-index: 1; }

.blog-image {
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: rgba(255, 255, 255, 0.8);
}

.blog-content { padding: 24px; }

.blog-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 11px;
}

.blog-date { color: var(--primary); font-weight: 700; }

.blog-cat {
    color: var(--text-muted);
    padding: 2px 10px;
    background: var(--bg-glass);
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
}

.blog-content h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: var(--font-body);
    transition: var(--transition);
}

.blog-card:hover .blog-content h3 { color: var(--primary); }

.blog-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 14px;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

.blog-link:hover { gap: 10px; }

/* ===== MODAL ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

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

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-width: 640px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: var(--transition);
}

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

.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-glass);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}

.modal-close:hover { background: var(--primary); color: var(--dark); border-color: var(--primary); }

.modal-meta { display: flex; gap: 10px; margin-bottom: 14px; font-size: 12px; }
.modal-meta span:first-child { color: var(--primary); font-weight: 600; }

.modal-meta span:last-child {
    color: var(--text-muted);
    padding: 2px 10px;
    background: var(--bg-glass);
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
}

.modal-content h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
}

#modal-body {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.9;
}

#modal-body p { margin-bottom: 16px; }

/* ===== CONTACT ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.contact-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: var(--radius-sm);
}

.contact-detail > * { position: relative; z-index: 1; }

.contact-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 16px;
    flex-shrink: 0;
    border: 1px solid rgba(var(--primary-rgb), 0.15);
}

.contact-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.contact-value a { color: var(--primary); }
.contact-value a:hover { text-decoration: underline; }

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: #25D366;
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    background: #20b858;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35);
}

.contact-form-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

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

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

.btn-submit { align-self: flex-start; }

/* ===== QUOTE ===== */
.quote-section {
    text-align: center;
    padding: 80px 32px;
    max-width: 800px;
    margin: 0 auto;
}

.quote-section blockquote {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    font-style: italic;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 16px;
}

.quote-section blockquote i {
    color: var(--primary);
    font-size: 24px;
    margin-right: 8px;
}

.quote-section cite {
    font-size: 14px;
    color: var(--text-muted);
    font-style: normal;
    font-weight: 600;
}

/* ===== FOOTER ===== */
.site-footer {
    text-align: center;
    padding: 40px 32px;
    border-top: 1px solid var(--border);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    display: block;
    margin-bottom: 12px;
}

.footer-logo span { color: var(--primary); }

.site-footer p { font-size: 13px; color: var(--text-muted); }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 56px; height: 56px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    z-index: 999;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: whatsappPulse 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    color: #fff;
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
    animation: none;
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0);
    }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-blur {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(10px);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1), filter 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-blur.revealed { opacity: 1; transform: translateY(0); filter: blur(0); }

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.revealed { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.revealed { opacity: 1; transform: translateX(0); }

.reveal-zoom {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-zoom.revealed { opacity: 1; transform: scale(1); }

.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.5s; }
.reveal-stagger.revealed > *:nth-child(7) { transition-delay: 0.6s; }
.reveal-stagger.revealed > *:nth-child(8) { transition-delay: 0.7s; }

.reveal-stagger.revealed > * { opacity: 1; transform: translateY(0); }

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-glass);
    color: var(--text-secondary);
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    animation: themeIconSpin 8s linear infinite;
}

.theme-toggle:hover {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
    transform: rotate(180deg);
    animation: none;
}

@keyframes themeIconSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
    --bg: #f5f5f7;
    --bg-alt: #ebebed;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f8fa;
    --bg-glass: rgba(0, 0, 0, 0.03);
    --bg-glass-hover: rgba(0, 0, 0, 0.06);
    --text: #1a1a1a;
    --text-secondary: rgba(0, 0, 0, 0.6);
    --text-muted: rgba(0, 0, 0, 0.4);
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.12);
    --shadow-1: 0px 0px 0px 1px rgba(0, 0, 0, 0.04),
        0px 1px 2px rgba(0, 0, 0, 0.06),
        0px 4px 8px rgba(0, 0, 0, 0.04),
        0px 8px 16px rgba(0, 0, 0, 0.03);
    --shadow-2: 0px 0px 0px 1px rgba(0, 0, 0, 0.06),
        0px 2px 4px rgba(0, 0, 0, 0.06),
        0px 8px 16px rgba(0, 0, 0, 0.06),
        0px 16px 32px rgba(0, 0, 0, 0.04),
        0px 2px 8px rgba(var(--primary-rgb), 0.05) inset;
    --shadow-3: 0px 0px 0px 1px rgba(var(--primary-rgb), 0.2),
        0px 4px 8px rgba(0, 0, 0, 0.08),
        0px 12px 24px rgba(0, 0, 0, 0.06),
        0px 24px 48px rgba(0, 0, 0, 0.04),
        0px 0px 30px rgba(var(--primary-rgb), 0.08);
}

[data-theme="light"] .navbar {
    background: rgba(245, 245, 247, 0.85);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(245, 245, 247, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .navbar-links.open {
    background: rgba(245, 245, 247, 0.98);
}

[data-theme="light"] .glass {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .glass-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(var(--primary-rgb), 0.25);
}

[data-theme="light"] .glass-card::before {
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(var(--primary-rgb), 0.08) 0%, transparent 50%);
}

[data-theme="light"] .service-number {
    color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .hero-badge {
    background: rgba(var(--primary-rgb), 0.12);
}

[data-theme="light"] .marquee-item img {
    filter: grayscale(30%) brightness(1);
}

[data-theme="light"] .marquee-item:hover img {
    filter: grayscale(0%) brightness(1);
}

[data-theme="light"] .modal {
    background: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .modal-content {
    background: var(--bg-card);
}

[data-theme="light"] ::selection {
    background: rgba(var(--primary-rgb), 0.25);
    color: #111;
}

[data-theme="light"] .whatsapp-float {
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero-left { flex: none; }
    .hero-right { display: flex; flex-direction: column; align-items: center; }
    .hero-desc { text-align: center; }
    .hero-trust { justify-content: center; }
    .hero-buttons { justify-content: center; }

    .about-grid { grid-template-columns: 1fr; }
    .facts-row { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .certs-grid { grid-template-columns: 1fr; }
    .resume-columns { grid-template-columns: 1fr; gap: 40px; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .navbar-links {
        display: none;
        position: absolute;
        top: 72px; left: 0; right: 0;
        background: rgba(10, 10, 11, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }

    .navbar-links.open { display: flex; }
    .navbar-cta { display: none; }
    .hamburger { display: block; }

    .navbar-actions {
        gap: 10px;
    }

    .theme-toggle {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .lang-btn {
        width: 26px;
        height: 26px;
    }

    .lang-btn img {
        width: 18px;
        height: 12px;
    }

    .hero-headline { font-size: 36px; }
    .hero-rotator { min-height: 48px; }
    .hero-word { font-size: 36px; }

    .stats-bar { flex-wrap: wrap; gap: 30px; }
    .section { padding: 60px 20px; }
    .section-title { font-size: 30px; }
    .facts-row { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .cert-links { flex-direction: column; align-items: center; }
    .modal-content { padding: 28px; }
    .quote-section blockquote { font-size: 22px; }

    /* Improve touch targets */
    .btn, .btn-magnetic, .navbar-cta, .whatsapp-btn {
        min-height: 44px;
    }

    .hero-social a {
        width: 44px;
        height: 44px;
    }

    .cert-link-btn {
        min-height: 44px;
        padding: 12px 24px;
    }
}

@media (max-width: 480px) {
    .navbar-inner {
        padding: 0 16px;
        height: 60px;
    }

    .navbar-links {
        top: 60px;
    }

    .hero {
        padding: 90px 16px 40px;
        gap: 32px;
    }

    .hero-avatar { width: 140px; height: 140px; }
    .hero-headline { font-size: 28px; }
    .hero-rotator { min-height: 38px; }
    .hero-word { font-size: 28px; }
    .hero-desc { font-size: 14px; }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn { justify-content: center; width: 100%; }
    .section-title { font-size: 26px; }
    .service-number { font-size: 36px; }

    .whatsapp-float {
        width: 48px; height: 48px;
        font-size: 22px;
        bottom: 14px; right: 14px;
    }

    .stat-number { font-size: 32px; }
    .stat-label { font-size: 11px; }

    .skill-name {
        min-width: 100px;
        font-size: 12px;
    }

    .contact-wrapper {
        gap: 24px;
    }

    .contact-form-title {
        font-size: 20px;
    }

    .navbar-actions {
        gap: 8px;
    }

    .theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    .btn-magnetic:hover,
    .card-3d:hover {
        transform: none;
    }

    .glass-card:hover {
        box-shadow: var(--shadow-1);
    }

    .btn-magnetic:hover .btn-arrow {
        transform: none;
    }

    .theme-toggle:hover {
        transform: none;
    }

    /* Disable magnetic effect on touch */
    .btn-magnetic {
        transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .marquee-track {
        animation: none;
    }

    .btn-primary,
    .btn-outline,
    .whatsapp-float,
    .theme-toggle,
    .hero-avatar {
        animation: none !important;
    }
}
