/* ============================================
   DESIGN SYSTEM — Refined Dark Elegance
   ============================================ */

:root {
    /* Core Palette */
    --bg-primary: #0B0F1A;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.65);
    --bg-glass: rgba(17, 24, 39, 0.5);

    /* Accent */
    --accent: #3B82F6;
    --accent-light: #60A5FA;
    --accent-dark: #2563EB;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --accent-subtle: rgba(59, 130, 246, 0.06);

    /* Status */
    --success: #34D399;
    --error: #EF4444;

    /* Gradients */
    --gradient-accent: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    --gradient-accent-wide: linear-gradient(135deg, #2563EB 0%, #3B82F6 40%, #8B5CF6 100%);
    --gradient-text: linear-gradient(135deg, #60A5FA 0%, #A78BFA 100%);
    --gradient-card-border: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.1));
    --gradient-bg: linear-gradient(180deg, #0B0F1A 0%, #0F172A 50%, #0B0F1A 100%);

    /* Text */
    --text-primary: #F1F5F9;
    --text-body: #94A3B8;
    --text-muted: #475569;

    /* Borders */
    --border: rgba(148, 163, 184, 0.08);
    --border-hover: rgba(59, 130, 246, 0.25);

    /* Fonts */
    --font-heading: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --section-gap: 7rem;
    --container-max: 1140px;
    --nav-height: 72px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: 200ms var(--ease-out-expo);
    --transition-base: 300ms var(--ease-out-expo);
    --transition-slow: 500ms var(--ease-out-expo);

    /* Z-Index Scale */
    --z-base: 1;
    --z-above: 10;
    --z-nav: 50;
    --z-mobile-menu: 40;
    --z-modal: 100;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: default;
}

::selection {
    background: rgba(59, 130, 246, 0.25);
    color: var(--accent-light);
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.4);
}

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

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

/* ============================================
   NOISE TEXTURE OVERLAY
   ============================================ */

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

/* ============================================
   AMBIENT GRADIENT ORB (Hero Background)
   ============================================ */

.hero-orb {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(120px);
    opacity: 0.25;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.5) 0%, rgba(139, 92, 246, 0.3) 40%, transparent 70%);
    right: -10%;
    top: -10%;
    transition: transform 0.8s ease-out;
    will-change: transform;
}

.hero-orb-secondary {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(100px);
    opacity: 0.12;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.5) 0%, rgba(59, 130, 246, 0.2) 50%, transparent 70%);
    left: -5%;
    bottom: 10%;
}

/* ============================================
   NAVIGATION — Floating Glassmorphic
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    padding: 1rem 1.5rem;
    transition: all var(--transition-base);
}

.nav.scrolled {
    padding: 0.6rem 1.5rem;
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    padding: 0 1.5rem;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.nav.scrolled .nav-inner {
    background: rgba(17, 24, 39, 0.85);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    transition: opacity var(--transition-fast);
    cursor: pointer;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--text-muted);
    transition: color var(--transition-fast);
    position: relative;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-full);
    cursor: pointer;
}

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

.nav-link.active {
    background: var(--accent-subtle);
    color: var(--accent-light);
}

.nav-btn-cv {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-full);
    background: var(--accent-subtle);
    transition: all var(--transition-fast);
    text-decoration: none;
    margin-left: 0.5rem;
    cursor: pointer;
}

.nav-btn-cv:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.nav-btn-cv svg {
    transition: transform var(--transition-fast);
}

.nav-btn-cv:hover svg {
    transform: translateY(1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: calc(var(--z-nav) + 10);
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: var(--z-mobile-menu);
    background: rgba(11, 15, 26, 0.96);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-body);
    transition: color var(--transition-fast);
    letter-spacing: -0.01em;
    cursor: pointer;
}

.mobile-link:hover {
    color: var(--accent-light);
}

.mobile-link-cv {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1rem;
    padding: 0.85rem 2rem;
    background: var(--gradient-accent);
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mobile-link-cv:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.45);
}

.mobile-link-cv svg {
    transition: transform 0.3s ease;
}

.mobile-link-cv:hover svg {
    transform: translateY(2px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    z-index: var(--z-base);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height) + 2rem) 2rem 4rem;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: var(--z-base);
}

.hero-container--centered {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 3rem;
}

.hero-content-left {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-content-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    background: var(--accent-subtle);
    border: 1px solid rgba(59, 130, 246, 0.15);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--accent-light);
    letter-spacing: 0.03em;
    margin-bottom: 2rem;
}

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

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4);
    }
    50% {
        opacity: 0.6;
        box-shadow: 0 0 0 6px rgba(52, 211, 153, 0);
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.hero-content-center .hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-line {
    display: block;
    color: var(--text-primary);
}

.hero-line--accent {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.subtitle-line {
    width: 32px;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.subtitle-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-light);
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-body);
    max-width: 520px;
    margin: 0 0 2.5rem;
}

.hero-content-center .hero-description {
    margin: 0 auto 2.5rem;
}

.text-glow {
    color: var(--text-primary);
    font-weight: 500;
}

.text-highlight {
    color: var(--accent-light);
}

/* Hero Buttons */
.hero-cta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3), 0 0 48px rgba(59, 130, 246, 0.1);
}

.btn-primary svg {
    transition: transform var(--transition-fast);
}

.btn-primary:hover svg {
    transform: translate(2px, -2px);
}

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

.btn-ghost svg {
    transition: transform var(--transition-fast);
}

.btn-ghost:hover {
    background: var(--accent-subtle);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-ghost:hover svg {
    transform: translate(2px, -2px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: inline-block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-heading);
    line-height: 1;
}

.stat-plus {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-family: var(--font-mono);
}

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

/* Hero Visual Right — Profile Card */
.hero-visual-right {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-profile-card {
    position: relative;
    width: 100%;
    max-width: 360px;
    border-radius: var(--radius-xl);
    background: var(--bg-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transition: all var(--transition-slow);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.hero-profile-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4), 0 0 40px rgba(59, 130, 246, 0.06);
}

.profile-avatar {
    position: relative;
    width: 140px;
    height: 140px;
}

.profile-avatar-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--gradient-accent);
    padding: 3px;
    animation: ring-rotate 8s linear infinite;
}

.profile-avatar-ring::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-secondary);
}

@keyframes ring-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.profile-pic {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    z-index: 2;
    transition: filter var(--transition-slow);
}

.hero-profile-card:hover .profile-pic {
    filter: brightness(1.05);
}

.profile-card-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
}

.profile-card-role {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-light);
    letter-spacing: 0.05em;
    text-align: center;
}

.profile-card-links {
    display: flex;
    gap: 0.75rem;
}

.profile-card-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid var(--border);
    color: var(--text-body);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.profile-card-link:hover {
    background: var(--accent-subtle);
    border-color: var(--border-hover);
    color: var(--accent-light);
    transform: translateY(-2px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-family: var(--font-mono);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% {
        opacity: 1;
        height: 40px;
    }
    50% {
        opacity: 0.3;
        height: 24px;
    }
}

/* ============================================
   SECTIONS GENERAL
   ============================================ */

.section {
    position: relative;
    z-index: var(--z-base);
    padding: var(--section-gap) 0;
}

#about {
    padding-bottom: 2rem;
}

#stack {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

#offerings {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

#projects {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

#contact {
    padding-top: 3rem;
}

.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.section-number {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.05em;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--border-hover), transparent);
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
}

.about-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Profile Image */
.profile-image-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1 / 1;
}

.profile-image-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition-slow);
}

.profile-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-slow);
}

.profile-image-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(11, 15, 26, 0.3) 100%);
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.profile-image-container:hover .profile-image-frame {
    border-color: var(--border-hover);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
}

.profile-image-container:hover .profile-image-frame img {
    transform: scale(1.03);
}

.profile-image-container:hover .profile-image-frame::after {
    opacity: 0.5;
}

/* Terminal */
.terminal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 1.25rem;
    min-height: 180px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.terminal-prompt {
    color: var(--accent);
    font-weight: 700;
}

.terminal-cmd {
    color: var(--success);
}

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

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

.terminal-output {
    color: var(--text-body);
    line-height: 1.6;
}

.terminal-output .line-key {
    color: #A78BFA;
}

.terminal-output .line-value {
    color: var(--text-primary);
}

/* About Text */
.about-text p {
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.85;
}

.about-text em {
    color: var(--text-primary);
    font-style: normal;
    font-weight: 500;
}

.about-actions {
    margin-top: 1.5rem;
}

.about-cv-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cv svg,
.about-cv-btn svg {
    transition: transform 0.3s ease;
}

.btn-cv:hover svg,
.about-cv-btn:hover svg {
    transform: translateY(2px) !important;
}

/* ============================================
   TECH STACK
   ============================================ */

.stack-category-header {
    width: 100%;
    margin: 2.5rem 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stack-category-header:first-of-type {
    margin-top: 0;
}

.stack-category-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.stack-category-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-hover), transparent);
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
}

@media (min-width: 1025px) {
    .stack-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }

    .tech-card {
        width: 130px;
        flex: 0 0 130px;
    }
}

.tech-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    transition: all var(--transition-base);
    overflow: hidden;
    text-align: center;
    cursor: pointer;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 2px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity var(--transition-fast);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.tech-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25), 0 0 30px rgba(59, 130, 246, 0.04);
}

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

.tech-logo {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-base);
}

.tech-card:hover .tech-logo {
    transform: scale(1.1);
}

.tech-name {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-body);
    letter-spacing: 0.02em;
    transition: color var(--transition-fast);
}

.tech-card:hover .tech-name {
    color: var(--text-primary);
}

/* ============================================
   OFFERINGS / SERVICES
   ============================================ */

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.offering-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition-base);
    overflow: hidden;
    cursor: pointer;
}

.offering-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out-expo);
}

.offering-card:hover::before {
    transform: scaleX(1);
}

.offering-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
}

.offering-number {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.offering-icon {
    color: var(--accent);
    margin-bottom: 1rem;
    transition: all var(--transition-base);
}

.offering-card:hover .offering-icon {
    transform: scale(1.05);
    color: var(--accent-light);
}

.offering-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.65rem;
}

.offering-desc {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 1.25rem;
}

.offering-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.offering-tags span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.15);
    color: #A78BFA;
    letter-spacing: 0.02em;
}

/* ============================================
   PROJECTS
   ============================================ */

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-card {
    position: relative;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all var(--transition-base);
    overflow: hidden;
    cursor: pointer;
}

.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
}

.project-image-wrapper {
    width: 100%;
    height: 160px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    transition: border-color var(--transition-fast);
    grid-row: 1 / 3;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-slow);
}

.project-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.project-card:hover .project-image-wrapper {
    border-color: var(--border-hover);
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-card:hover .project-image-overlay {
    opacity: 0;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.project-year {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.04em;
}

.project-type {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    letter-spacing: 0.03em;
}

.project-content {
    display: flex;
    flex-direction: column;
}

.project-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.project-title-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.project-card:hover .project-title-text {
    color: var(--accent-light);
}

.project-arrow {
    color: var(--text-muted);
    transition: all 0.3s var(--ease-out-expo);
    flex-shrink: 0;
}

.project-card:hover .project-arrow {
    color: var(--accent);
    transform: translate(3px, -3px);
}

.project-desc {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 0.75rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
}

.project-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    color: var(--accent-light);
    letter-spacing: 0.02em;
    transition: all var(--transition-fast);
}

.project-card:hover .project-tag {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.25);
}

.project-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-full);
    width: fit-content;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.status-published {
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.25);
    color: var(--success);
}

.status-published::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse-status 2s infinite ease-in-out;
}

@keyframes pulse-status {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.project-actions {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.project-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.72rem;
    border-radius: 6px;
}

.project-link-btn {
    font-family: var(--font-mono);
    letter-spacing: 0.03em;
    z-index: 5;
}

/* ============================================
   CONTACT
   ============================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
    align-items: start;
}

.contact-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--transition-base);
    cursor: pointer;
}

.contact-link:hover {
    border-color: var(--border-hover);
    background: var(--accent-subtle);
    transform: translateX(6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.contact-link-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--accent-subtle);
    border: 1px solid rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.contact-link:hover .contact-link-icon {
    background: rgba(59, 130, 246, 0.12);
    border-color: var(--border-hover);
}

.contact-link-text {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-link-arrow {
    color: var(--text-muted);
    transition: all 0.3s var(--ease-out-expo);
}

.contact-link:hover .contact-link-arrow {
    color: var(--accent);
    transform: translate(3px, -3px);
}

/* Contact Form */
.contact-form-container {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-accent);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

.form-group label .required {
    color: var(--error);
}

.form-group label .sub-label {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: normal;
}

.form-input {
    background: rgba(11, 15, 26, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(17, 24, 39, 0.8);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.custom-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
    cursor: pointer;
}

.custom-select option {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 0.5rem;
}

textarea.form-input {
    resize: vertical;
    min-height: 110px;
}

.submit-btn {
    margin-top: 0.5rem;
    width: 100%;
    justify-content: center;
    padding: 0.9rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    position: relative;
    z-index: var(--z-base);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-text {
    font-size: 0.85rem;
    color: var(--text-body);
    margin-bottom: 0.25rem;
}

.footer-subtext {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

.reveal-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
    transition-delay: var(--delay, 0s);
}

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

/* ============================================
   MODALS
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out-expo);
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s var(--ease-out-expo);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.modal-overlay:not(.hidden) .modal-container {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-body);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.project-modal-image-container {
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: var(--bg-primary);
}

.project-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-modal-details {
    padding: 2rem;
}

.project-modal-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.project-modal-section {
    margin-bottom: 1.5rem;
}

.project-modal-section:last-child {
    margin-bottom: 0;
}

.project-modal-section-title {
    font-size: 0.95rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
    font-weight: 600;
}

.project-modal-text {
    color: var(--text-body);
    font-size: 0.92rem;
    line-height: 1.7;
}

.tech-modal-container {
    max-width: 450px;
}

.tech-modal-content {
    padding: 2rem;
}

.tech-modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.tech-modal-logo {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-modal-logo svg {
    width: 100%;
    height: 100%;
}

.tech-modal-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-primary);
    font-weight: 700;
}

.tech-modal-desc {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content-left {
        text-align: center;
        align-items: center;
    }

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

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

    .hero-description {
        margin: 0 auto 2.5rem;
        text-align: center;
    }

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

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

    .hero-visual-right {
        justify-self: center;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-left {
        align-items: center;
    }

    .profile-image-container {
        max-width: 240px;
    }

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

    .project-card {
        grid-template-columns: 1fr;
    }

    .project-image-wrapper {
        height: 200px;
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    :root {
        --section-gap: 4.5rem;
        --nav-height: 64px;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-inner {
        padding: 0 1rem;
    }

    .hero {
        padding: calc(var(--nav-height) + 1rem) 1.5rem 3rem;
    }

    .hero-title {
        font-size: clamp(2rem, 9vw, 3.2rem);
    }

    .hero-stats {
        gap: 1.25rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .section-container {
        padding: 0 1.25rem;
    }

    .stack-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .scroll-indicator {
        display: none;
    }

    .hero-orb {
        width: 400px;
        height: 400px;
        right: -20%;
        top: 5%;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

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

    .section-title {
        font-size: 1.2rem;
    }

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

    .hero-profile-card {
        max-width: 280px;
        padding: 1.5rem;
    }

    .profile-avatar {
        width: 110px;
        height: 110px;
    }

    .project-modal-details {
        padding: 1.25rem;
    }

    .project-modal-title {
        font-size: 1.2rem;
    }

    .project-modal-image-container {
        height: 180px;
    }

    .project-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .project-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .project-modal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .project-modal-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .tech-modal-content {
        padding: 1.25rem;
    }

    .tech-modal-title {
        font-size: 1.2rem;
    }

    .contact-form-container {
        padding: 1.5rem;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

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

    .reveal-up {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}
