/* ============================================
   Mohammad Nazim Mangal — Portfolio Styles
   ============================================ */

:root {
    --bg-primary: #07070c;
    --bg-secondary: #0e0e16;
    --bg-elevated: #14141f;
    --bg-card: rgba(255, 255, 255, 0.035);
    --bg-card-hover: rgba(255, 255, 255, 0.065);
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.14);

    --text-primary: #f4f4f8;
    --text-secondary: #9b9bab;
    --text-muted: #63637a;

    --accent-1: #2ee6c5;
    --accent-2: #8b5cf6;
    --accent-3: #f0b429;
    --accent-gold: #e8c468;
    --gradient: linear-gradient(125deg, var(--accent-1) 0%, var(--accent-2) 55%, #e879f9 100%);
    --gradient-warm: linear-gradient(125deg, var(--accent-gold) 0%, #f472b6 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(46, 230, 197, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%);

    --font-display: 'Bricolage Grotesque', sans-serif;
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-full: 9999px;

    --shadow-glow: 0 0 80px rgba(46, 230, 197, 0.12);
    --shadow-card: 0 24px 48px rgba(0, 0, 0, 0.35);
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 84px;
}

/* Light theme */
[data-theme="light"] {
    --bg-primary: #f8f9fc;
    --bg-secondary: #ffffff;
    --bg-elevated: #f1f3f9;
    --bg-card: rgba(15, 23, 42, 0.04);
    --bg-card-hover: rgba(15, 23, 42, 0.07);
    --border: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(15, 23, 42, 0.14);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    --accent-1: #0891b2;
    --accent-2: #7c3aed;
    --accent-gold: #b45309;
    --gradient: linear-gradient(125deg, #0891b2 0%, #7c3aed 55%, #c026d3 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(8, 145, 178, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    --shadow-glow: 0 0 80px rgba(8, 145, 178, 0.1);
    --shadow-card: 0 16px 40px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .bg-grid {
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}

[data-theme="light"] .bg-gradient {
    background:
        radial-gradient(ellipse 70% 45% at 15% -5%, rgba(8, 145, 178, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse 55% 35% at 85% 15%, rgba(124, 58, 237, 0.06) 0%, transparent 50%);
}

[data-theme="light"] .header.scrolled {
    background: rgba(248, 249, 252, 0.92);
}

[data-theme="light"] .orb { opacity: 0.5; }

[data-theme="light"] .preloader {
    background: var(--bg-primary);
}

[data-theme="light"] .nav-menu {
    background: rgba(248, 249, 252, 0.98);
}

[data-theme="light"] .marquee-section {
    background: rgba(241, 243, 249, 0.9);
}

[data-theme="light"] .floating-badge {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-card);
}

[data-theme="light"] .hero-image {
    border-color: var(--bg-primary);
}

[data-theme="light"] .skill-tag {
    background: var(--bg-elevated);
}

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

[data-theme="light"] .experience-skills li {
    background: var(--bg-elevated);
}

[data-theme="light"] .stats-banner {
    background: rgba(241, 243, 249, 0.8);
}

[data-theme="light"] .stats-banner-item {
    background: var(--bg-secondary);
}

[data-theme="light"] .timeline-marker {
    background: var(--bg-secondary);
}

[data-theme="light"] .project-card.featured {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.05) 0%, rgba(124, 58, 237, 0.04) 100%);
    border-color: rgba(8, 145, 178, 0.2);
}

[data-theme="light"] .contact-wrapper {
    background: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(241,243,249,0.9) 100%);
}

[data-theme="light"] .hire-status {
    background: rgba(8, 145, 178, 0.1);
    border-color: rgba(8, 145, 178, 0.2);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    overflow-x: hidden;
}

html[data-theme="dark"] {
    color-scheme: dark;
}

html[data-theme="light"] {
    color-scheme: light;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'kern' 1, 'liga' 1;
}

body.loaded .preloader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-1);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 24px;
}

.preloader-bar {
    width: 120px;
    height: 2px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.preloader-bar span {
    display: block;
    height: 100%;
    width: 40%;
    background: var(--gradient);
    border-radius: 2px;
    animation: preloader-slide 1s ease-in-out infinite;
}

@keyframes preloader-slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

::selection {
    background: rgba(0, 212, 170, 0.3);
    color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

.section {
    padding: 120px 0;
    position: relative;
}

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

.bg-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orb-drift 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(46, 230, 197, 0.08);
    top: -10%;
    left: -5%;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(139, 92, 246, 0.1);
    top: 30%;
    right: -8%;
    animation-delay: -7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: rgba(232, 196, 104, 0.06);
    bottom: 10%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes orb-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.bg-gradient {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 45% at 15% -5%, rgba(46, 230, 197, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse 55% 35% at 85% 15%, rgba(139, 92, 246, 0.09) 0%, transparent 50%),
        radial-gradient(ellipse 45% 25% at 50% 95%, rgba(232, 121, 249, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

/* Typography */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-number {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-1);
    margin-bottom: 20px;
}

.section-tag::before,
.section-tag::after {
    content: '';
    width: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-1));
}

.section-tag::after {
    background: linear-gradient(90deg, var(--accent-1), transparent);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5.5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
}

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

.section-header .section-desc {
    margin: 0 auto;
}

.lead {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.lead strong {
    color: var(--text-primary);
}

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

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 24px rgba(46, 230, 197, 0.25);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(46, 230, 197, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.btn-outline:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-1);
    color: var(--accent-1);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* Header / Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(7, 7, 12, 0.88);
    backdrop-filter: blur(24px) saturate(1.2);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-primary);
}

.logo-mark {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-1);
    background: rgba(46, 230, 197, 0.08);
    border: 1px solid rgba(46, 230, 197, 0.2);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

.logo-name {
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-cta {
    background: var(--gradient) !important;
    color: #fff !important;
    margin-left: 8px;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1002;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    position: relative;
    z-index: 1002;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.theme-toggle i {
    pointer-events: none;
}

.theme-toggle:active {
    transform: scale(0.94);
    border-color: var(--accent-1);
    color: var(--accent-1);
}

.theme-toggle:hover {
    color: var(--accent-1);
    border-color: var(--accent-1);
    background: var(--bg-card-hover);
}

.theme-icon-light { display: none; }
.theme-icon-dark { display: block; }

[data-theme="light"] .theme-icon-light { display: block; }
[data-theme="light"] .theme-icon-dark { display: none; }

/* Mobile theme row inside menu */
.nav-theme-row {
    display: none;
    list-style: none;
    width: 100%;
    margin-bottom: 8px;
}

.theme-toggle-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: var(--transition);
}

.theme-toggle-mobile i {
    color: var(--accent-1);
    font-size: 1.1rem;
    pointer-events: none;
}

.theme-toggle-mobile:active {
    transform: scale(0.98);
    border-color: var(--accent-1);
    background: var(--bg-card-hover);
}

.theme-toggle-mobile .theme-icon-light { display: none; }
.theme-toggle-mobile .theme-icon-dark { display: inline-block; }

[data-theme="light"] .theme-toggle-mobile .theme-icon-light { display: inline-block; }
[data-theme="light"] .theme-toggle-mobile .theme-icon-dark { display: none; }

/* Stats Banner */
.stats-banner {
    position: relative;
    z-index: 2;
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
}

.stats-banner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stats-banner-item {
    text-align: center;
    padding: 28px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    transition: var(--transition);
}

.stats-banner-item:hover {
    border-color: rgba(46, 230, 197, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.stats-banner-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-subtle);
    border-radius: var(--radius-sm);
    color: var(--accent-1);
    font-size: 1.2rem;
}

.stats-banner-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 6px;
}

.stats-banner-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Footer visitor */
.footer-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.visitor-counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.visitor-counter i {
    color: var(--accent-1);
}

.visitor-counter #visitor-count {
    color: var(--accent-1);
    font-weight: 600;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-greeting {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 10px 18px;
    border-radius: var(--radius-full);
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-1);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero-title {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
    overflow: visible;
}

.hero-eyebrow {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.hero-name {
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 9vw, 6.5rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.15;
    letter-spacing: -0.02em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    align-self: flex-start;
    padding-bottom: 0.15em;
    overflow: visible;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.hero-subtitle {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    font-size: clamp(1.1rem, 2.5vw, 1.45rem);
    color: var(--text-secondary);
    margin-bottom: 24px;
    min-height: 2.5rem;
}

.hero-role-label {
    font-weight: 400;
    color: var(--text-muted);
}

.hero-role {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--accent-1);
    letter-spacing: -0.02em;
}

.hero-role .typed-cursor {
    color: var(--accent-2);
    font-weight: 300;
}

.hero-desc {
    font-size: 1.08rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 36px;
    font-weight: 400;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 6px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: min(400px, 90vw);
    aspect-ratio: 1;
}

.hero-image-ring {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
                var(--gradient) border-box;
    animation: rotate 20s linear infinite;
}

.hero-image-ring.ring-2 {
    inset: -40px;
    opacity: 0.4;
    animation-direction: reverse;
    animation-duration: 30s;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    border: 4px solid var(--bg-primary);
    box-shadow: var(--shadow-glow);
}

.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 14, 22, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-hover);
    padding: 10px 16px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
    white-space: nowrap;
    box-shadow: var(--shadow-card);
}

.floating-badge i {
    color: var(--accent-1);
}

.badge-1 { top: 10%; right: -10%; animation-delay: 0s; }
.badge-2 { bottom: 20%; left: -15%; animation-delay: 2s; }
.badge-3 { bottom: 5%; right: 5%; animation-delay: 4s; }

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

.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: var(--transition);
}

.scroll-indicator::after {
    content: '';
    width: 1px;
    height: 48px;
    background: linear-gradient(180deg, var(--accent-1), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}

.scroll-indicator:hover {
    color: var(--accent-1);
}

@keyframes scroll-line {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* Marquee */
.marquee-section {
    position: relative;
    z-index: 2;
    padding: 28px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(14, 14, 22, 0.6);
    backdrop-filter: blur(12px);
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-right: 40px;
    flex-shrink: 0;
}

.marquee-content span {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color 0.3s;
}

.marquee-content span:not(.marquee-dot):hover {
    color: var(--accent-1);
}

.marquee-dot {
    color: var(--accent-2) !important;
    font-size: 0.5rem !important;
    opacity: 0.6;
}

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

/* About */
.about {
    position: relative;
    z-index: 2;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.highlight-item i {
    color: var(--accent-1);
    width: 20px;
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: var(--transition);
    backdrop-filter: blur(12px);
}

.about-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(46, 230, 197, 0.25);
    transform: translateX(8px);
    box-shadow: var(--shadow-glow);
}

.about-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-subtle);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 1.2rem;
    color: var(--accent-1);
}

.about-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Timeline / Education */
.education {
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 170, 0.02) 50%, transparent 100%);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-1), var(--accent-2));
    opacity: 0.3;
}

.timeline-item {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
    position: relative;
}

.timeline-marker {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-1);
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--accent-1);
    z-index: 1;
}

.timeline-content {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px 32px;
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.timeline-date {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--accent-1);
    background: rgba(46, 230, 197, 0.1);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 14px;
    border: 1px solid rgba(46, 230, 197, 0.15);
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 8px;
}

.timeline-location {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.timeline-location i {
    margin-right: 6px;
    color: var(--accent-1);
}

.timeline-content p:last-child {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Experience */
.experience {
    position: relative;
    z-index: 2;
}

.experience-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: var(--transition);
}

.experience-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.experience-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.experience-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-subtle);
    border-radius: var(--radius-md);
    font-size: 1.4rem;
    color: var(--accent-1);
}

.experience-header h3 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.experience-org {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.experience-badge {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(46, 230, 197, 0.12);
    color: var(--accent-1);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(46, 230, 197, 0.2);
}

.experience-desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.experience-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.experience-skills li {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.experience-skills li:hover {
    border-color: var(--accent-1);
    color: var(--accent-1);
}

.experience-skills li i {
    color: var(--accent-1);
}

/* Projects */
.projects {
    position: relative;
    z-index: 2;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    gap: 28px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

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

.project-card.featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    border-color: rgba(0, 212, 170, 0.2);
}

.project-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 212, 170, 0.15);
    color: var(--accent-1);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: pulse-badge 3s infinite;
}

@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(0, 212, 170, 0); }
}

.project-header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding-right: 100px;
}

.project-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-subtle);
    border-radius: var(--radius-md);
    font-size: 1.3rem;
    color: var(--accent-1);
}

.project-meta h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.project-type {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.project-summary {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.project-tech span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--accent-1);
    background: rgba(46, 230, 197, 0.08);
    padding: 6px 13px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(46, 230, 197, 0.18);
}

.project-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.project-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-details.open {
    max-height: 2000px;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.details-group h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.details-group h4 i {
    color: var(--accent-1);
    font-size: 0.85rem;
}

.details-group ul li {
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}

.details-group ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    background: var(--accent-1);
    border-radius: 50%;
    opacity: 0.6;
}

.project-details-btn.active i {
    transform: rotate(45deg);
}

.project-details-btn i {
    transition: transform 0.3s;
}

/* Skills */
.skills {
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, transparent 0%, rgba(124, 58, 237, 0.03) 50%, transparent 100%);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: var(--transition);
}

.skill-category:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.skill-category-header i {
    font-size: 1.3rem;
    color: var(--accent-1);
}

.skill-category-header h3 {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 9px 15px;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.skill-tag:hover {
    color: var(--accent-1);
    border-color: rgba(0, 212, 170, 0.3);
    background: rgba(0, 212, 170, 0.05);
}

/* Contact Me section */
.hire {
    position: relative;
    z-index: 2;
}

.hire-wrapper {
    background: linear-gradient(145deg, rgba(46, 230, 197, 0.06) 0%, rgba(139, 92, 246, 0.06) 100%);
    border: 1px solid rgba(46, 230, 197, 0.2);
    border-radius: var(--radius-lg);
    padding: 48px;
    backdrop-filter: blur(12px);
}

[data-theme="light"] .hire-wrapper {
    background: linear-gradient(145deg, rgba(8, 145, 178, 0.06) 0%, rgba(124, 58, 237, 0.05) 100%);
    border-color: rgba(8, 145, 178, 0.2);
}

.hire-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--accent-1);
    background: rgba(46, 230, 197, 0.1);
    border: 1px solid rgba(46, 230, 197, 0.25);
    padding: 10px 18px;
    border-radius: var(--radius-full);
    margin-bottom: 32px;
}

.hire-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.hire-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    transition: var(--transition);
}

.hire-card:hover {
    border-color: rgba(46, 230, 197, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.hire-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-subtle);
    border-radius: var(--radius-sm);
    color: var(--accent-1);
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.hire-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.hire-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.hire-cta {
    padding-top: 32px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.hire-cta-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 24px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.hire-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.btn-hire-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-hire {
    box-shadow: 0 4px 28px rgba(46, 230, 197, 0.3);
}

/* Floating Contact Me Button */
.hire-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: var(--gradient);
    color: #fff;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 700;
    box-shadow: 0 8px 32px rgba(46, 230, 197, 0.4);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.hire-fab.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hire-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(46, 230, 197, 0.5);
    color: #fff;
}

.hire-fab i {
    font-size: 1rem;
}

/* Contact */
.contact {
    position: relative;
    z-index: 2;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: linear-gradient(145deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 60px;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-card);
}

.contact-content p {
    color: var(--text-secondary);
    margin: 20px 0 32px;
    font-size: 1.05rem;
}

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

.contact-link {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: var(--transition);
    padding: 12px 0;
}

.contact-link:hover {
    color: var(--accent-1);
}

.contact-link i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-subtle);
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    color: var(--accent-1);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 28px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.social-card i {
    font-size: 1.5rem;
}

.social-card:hover {
    transform: translateY(-4px);
    color: #fff;
}

.social-card.linkedin:hover { background: #0a66c2; border-color: #0a66c2; }
.social-card.facebook:hover { background: #1877f2; border-color: #1877f2; }
.social-card.instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: #dc2743; }
.social-card.whatsapp:hover { background: #25d366; border-color: #25d366; }
.social-card.telegram:hover { background: #0088cc; border-color: #0088cc; }

/* Footer */
.footer {
    position: relative;
    z-index: 2;
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

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

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-content strong {
    color: var(--text-secondary);
}

.back-to-top {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: var(--transition);
}

.back-to-top:hover {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }

.about-card:nth-child(1) { transition-delay: 0.1s; }
.about-card:nth-child(2) { transition-delay: 0.2s; }
.about-card:nth-child(3) { transition-delay: 0.3s; }

.project-card:nth-child(1) { transition-delay: 0.05s; }
.project-card:nth-child(2) { transition-delay: 0.15s; }
.project-card:nth-child(3) { transition-delay: 0.25s; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-title {
        align-items: center;
    }

    .hero-name {
        align-self: center;
    }

    .hero-subtitle {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-image-wrapper {
        width: min(280px, 75vw);
    }

    .floating-badge {
        font-size: 0.72rem;
        padding: 8px 12px;
    }

    .badge-1 { top: 8%; right: 0; }
    .badge-2 { bottom: 18%; left: 0; }
    .badge-3 { bottom: 8%; right: 8%; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 40px 32px;
    }

    .stats-banner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 72px;
    }

    .section {
        padding: 72px 0;
    }

    .container {
        width: min(1200px, 90vw);
    }

    .section-header {
        margin-bottom: 48px;
    }

    .section-title {
        font-size: clamp(1.85rem, 7vw, 2.5rem);
    }

    .logo-name {
        display: none;
    }

    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + 24px);
        padding-bottom: 48px;
    }

    .hero-eyebrow {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
    }

    .hero-name {
        font-size: clamp(2.8rem, 13vw, 4rem);
        padding-bottom: 0.18em;
    }

    .hero-greeting {
        font-size: 0.72rem;
        padding: 8px 14px;
    }

    .hero-desc {
        font-size: 1rem;
        line-height: 1.75;
    }

    .hero-image-wrapper {
        width: min(240px, 72vw);
    }

    .floating-badge {
        font-size: 0.68rem;
        padding: 7px 10px;
        gap: 6px;
    }

    .badge-1 { top: 5%; right: 2%; }
    .badge-2 { bottom: 22%; left: 2%; }
    .badge-3 { display: none; }

    .section-tag::before,
    .section-tag::after {
        width: 12px;
    }

    .marquee-section {
        padding: 20px 0;
    }

    .marquee-content span {
        font-size: 0.72rem;
    }

    .stats-banner {
        padding: 32px 0;
    }

    .stats-banner-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .stats-banner-item {
        padding: 20px 12px;
    }

    .stats-banner-number {
        font-size: 1.8rem;
    }

    .theme-toggle {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .nav-theme-row {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-primary);
        backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: stretch;
        padding: 20px 16px 32px;
        gap: 6px;
        border-bottom: 1px solid var(--border);
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 1001;
    }

    .nav-menu.open {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 14px 16px;
        font-size: 1rem;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 8px;
    }

    .nav-toggle {
        display: flex;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    body.nav-open {
        overflow: hidden;
        touch-action: none;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .about-card:hover {
        transform: none;
    }

    .timeline-content {
        padding: 20px 22px;
    }

    .experience-card {
        padding: 28px 22px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card {
        padding: 24px 20px;
    }

    .project-card.featured {
        grid-column: auto;
    }

    .project-header {
        padding-right: 0;
        flex-direction: column;
        gap: 12px;
    }

    .project-badge {
        position: static;
        display: inline-block;
        margin-bottom: 8px;
        width: fit-content;
    }

    .project-actions {
        flex-direction: column;
        width: 100%;
    }

    .project-actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-category {
        padding: 22px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .stat {
        width: 100%;
        text-align: center;
    }

    .stat-divider {
        width: 48px;
        height: 1px;
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .experience-badge {
        margin-left: 0;
    }

    .experience-skills li {
        width: 100%;
        justify-content: center;
    }

    .timeline::before {
        left: 18px;
    }

    .timeline-marker {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .timeline-item {
        gap: 14px;
    }

    .contact-wrapper {
        padding: 32px 22px;
        gap: 36px;
    }

    .contact-content .section-title {
        font-size: clamp(1.75rem, 7vw, 2.2rem);
    }

    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .social-card {
        padding: 22px 16px;
        min-height: 88px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-content p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .footer-left {
        align-items: center;
        text-align: center;
    }

    .stats-banner-grid {
        grid-template-columns: 1fr;
    }

    .scroll-indicator {
        display: none;
    }

    .cursor-glow,
    .bg-orbs .orb {
        display: none;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 56px 0;
    }

    .container {
        width: min(1200px, 92vw);
    }

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

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 50px;
    }

    .hire-wrapper {
        padding: 28px 20px;
    }

    .hire-cta-actions {
        flex-direction: column;
    }

    .hire-cta-actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 50px;
    }

    .hire-fab {
        bottom: 20px;
        right: 16px;
        padding: 14px 18px;
        font-size: 0.85rem;
    }

    .hire-fab span {
        display: none;
    }

    .hire-fab i {
        font-size: 1.1rem;
    }

    .hero-subtitle {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        min-height: auto;
    }

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

    .hero-image-wrapper {
        width: min(220px, 80vw);
    }

    .floating-badge {
        display: none;
    }

    .about-highlights {
        gap: 10px;
    }

    .highlight-item {
        font-size: 0.88rem;
    }

    .project-meta h3 {
        font-size: 1.1rem;
    }

    .project-tech {
        gap: 6px;
    }

    .project-tech span {
        font-size: 0.68rem;
        padding: 5px 10px;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }

    .contact-link {
        font-size: 0.92rem;
    }

    .btn {
        padding: 14px 24px;
    }

    .nav-logo .logo-mark {
        font-size: 0.9rem;
        padding: 5px 10px;
    }
}

@media (max-width: 360px) {
    .hero-name {
        font-size: 2.5rem;
    }

    .section-tag {
        font-size: 0.7rem;
        gap: 8px;
    }

    .project-card {
        padding: 20px 16px;
    }

    .experience-card,
    .contact-wrapper {
        padding: 24px 16px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .btn-primary:hover,
    .btn-outline:hover,
    .about-card:hover,
    .project-card:hover,
    .skill-category:hover,
    .social-card:hover,
    .stats-banner-item:hover,
    .hire-card:hover,
    .hire-fab:hover {
        transform: none;
    }

    .nav-link,
    .btn,
    .social-card,
    .contact-link {
        -webkit-tap-highlight-color: rgba(46, 230, 197, 0.15);
    }
}
