/* ==========================================================================
   PORTFOLIO REDESIGN - Modern Slate Blue Theme
   Style: Clean, professional with depth
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */

:root {
    /* Background Colors - Deep slate with subtle warmth */
    --bg-primary: #0c1220;
    --bg-secondary: #161f2e;
    --bg-tertiary: #1e2a3d;
    --bg-elevated: #2a3a52;

    /* Primary Accent - Refined Blue */
    --accent-400: #7dd3fc;
    --accent-500: #38bdf8;
    --accent-600: #0ea5e9;
    --accent-700: #0284c7;

    /* Secondary Colors */
    --violet-400: #a78bfa;
    --violet-500: #8b5cf6;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --rose-400: #fb7185;
    --rose-500: #f43f5e;
    --cyan-400: #22d3ee;

    /* Primary Gradients */
    --gradient-warm: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 50%, #7dd3fc 100%);
    --gradient-accent: linear-gradient(135deg, #38bdf8 0%, #a78bfa 100%);
    --gradient-subtle: linear-gradient(145deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.12) 0%, transparent 70%);

    /* Text Colors - Better contrast */
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --text-accent: #7dd3fc;

    /* Border Colors - More neutral */
    --border-subtle: rgba(148, 163, 184, 0.08);
    --border-default: rgba(148, 163, 184, 0.12);
    --border-hover: rgba(56, 189, 248, 0.25);
    --border-glow: rgba(56, 189, 248, 0.4);

    /* Typography */
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.5rem;
    --text-6xl: 4.5rem;
    --text-7xl: 6rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

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

    /* Refined Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.35), 0 6px 12px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.4), 0 10px 20px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(56, 189, 248, 0.15), 0 0 80px rgba(56, 189, 248, 0.08);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.03);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Smooth easing curves */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-smooth: cubic-bezier(0.45, 0, 0.15, 1);
    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Z-Index */
    --z-base: 1;
    --z-dropdown: 10;
    --z-sticky: 20;
    --z-modal-backdrop: 50;
    --z-modal: 100;
}

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

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-secondary);
    background: var(--bg-primary);
    min-height: 100%;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

/* Decorative Background Elements - Subtle & Elegant */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse 60% 40% at 10% 10%, rgba(56, 189, 248, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 50% 35% at 90% 20%, rgba(167, 139, 250, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse 45% 30% at 70% 80%, rgba(52, 211, 153, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: backgroundFloat 30s var(--ease-in-out-smooth) infinite;
}

@keyframes backgroundFloat {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    20% { transform: translate(3%, 2%) rotate(0.8deg) scale(1.02); }
    40% { transform: translate(-1%, 4%) rotate(-0.5deg) scale(0.98); }
    60% { transform: translate(-2%, -1%) rotate(0.3deg) scale(1.01); }
    80% { transform: translate(2%, -2%) rotate(-0.8deg) scale(0.99); }
    100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}

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

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

button {
    font: inherit;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}

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

ul, ol {
    list-style: none;
}

input, textarea {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

::selection {
    background: var(--accent-500);
    color: var(--bg-primary);
}

:focus-visible {
    outline: 2px solid var(--accent-500);
    outline-offset: 2px;
}

/* Custom Scrollbar - Minimal */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}


/* Subtle scrollbar for modal */
.futuristic-modal::-webkit-scrollbar {
    width: 4px;
}

.futuristic-modal::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    position: relative;
    min-height: 100vh;
}

@media (min-width: 1024px) {
    main {
        display: grid;
        grid-template-columns: 340px 1fr;
        padding: var(--space-4);
        gap: var(--space-6);
        align-items: start;
    }
}

@media (min-width: 1280px) {
    main {
        grid-template-columns: 380px 1fr;
        padding: var(--space-6);
    }
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.sidebar {
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    position: relative;
    box-shadow: var(--shadow-lg), var(--shadow-card);
}

/* Animated gradient orbs */
.sidebar-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.sidebar-bg .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(35px);
    mix-blend-mode: screen;
}

.sidebar-bg .orb-1 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, rgba(56, 189, 248, 0) 70%);
    top: -100px;
    right: -100px;
    animation: floatOrb1 12s var(--ease-in-out-smooth) infinite;
}

.sidebar-bg .orb-2 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(139, 92, 246, 0) 70%);
    bottom: -80px;
    left: -80px;
    animation: floatOrb2 15s var(--ease-in-out-smooth) infinite;
}

.sidebar-bg .orb-3 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.25) 0%, rgba(167, 139, 250, 0) 70%);
    top: 40%;
    left: 40%;
    animation: floatOrb3 10s var(--ease-in-out-smooth) infinite;
}

@keyframes floatOrb1 {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.8; }
    25% { transform: translate(-40px, 50px) scale(1.2) rotate(90deg); opacity: 1; }
    50% { transform: translate(-20px, 80px) scale(0.9) rotate(180deg); opacity: 0.7; }
    75% { transform: translate(30px, 40px) scale(1.1) rotate(270deg); opacity: 0.9; }
    100% { transform: translate(0, 0) scale(1) rotate(360deg); opacity: 0.8; }
}

@keyframes floatOrb2 {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.7; }
    20% { transform: translate(50px, -40px) scale(1.15) rotate(-72deg); opacity: 0.9; }
    40% { transform: translate(70px, -20px) scale(0.85) rotate(-144deg); opacity: 0.6; }
    60% { transform: translate(30px, 30px) scale(1.1) rotate(-216deg); opacity: 1; }
    80% { transform: translate(-20px, 10px) scale(0.95) rotate(-288deg); opacity: 0.8; }
    100% { transform: translate(0, 0) scale(1) rotate(-360deg); opacity: 0.7; }
}

@keyframes floatOrb3 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    33% { transform: translate(60px, -80px) scale(1.4); opacity: 1; }
    66% { transform: translate(-40px, -40px) scale(0.8); opacity: 0.5; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
}

/* Desktop sticky sidebar */
@media (min-width: 1024px) {
    .sidebar {
        position: sticky;
        top: var(--space-6);
        height: fit-content;
        align-self: start;
        max-height: none;
        overflow: visible;
    }
}

/* Mobile collapsed state */
@media (max-width: 1023px) {
    .sidebar {
        max-height: 105px;
        overflow: hidden;
        transition: max-height 0.5s var(--ease-out-expo);
    }

    .sidebar.active {
        max-height: 550px;
        overflow: visible;
    }
}

@media (max-width: 480px) {
    .sidebar {
        max-height: 90px;
    }

    .sidebar.active {
        max-height: 480px;
    }
}

.sidebar-info {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    position: relative;
    z-index: 2;
}

.avatar-box {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gradient-warm);
    background-size: 200% 200%;
    padding: 3px;
    box-shadow: var(--shadow-md), 0 0 30px rgba(56, 189, 248, 0.2);
    animation: avatarGlow 6s var(--ease-in-out-smooth) infinite, avatarGradient 8s linear infinite;
}

@keyframes avatarGlow {
    0%, 100% {
        box-shadow: var(--shadow-md), 0 0 30px rgba(56, 189, 248, 0.2), 0 0 60px rgba(56, 189, 248, 0);
    }
    50% {
        box-shadow: var(--shadow-md), 0 0 40px rgba(56, 189, 248, 0.35), 0 0 80px rgba(139, 92, 246, 0.15);
    }
}

@keyframes avatarGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--radius-xl) - 3px);
}

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

.info-content .name {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-content .title {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: var(--space-1) var(--space-4);
    border-radius: var(--radius-full);
    width: fit-content;
    border: 1px solid var(--border-subtle);
}

/* Mobile toggle button */
.info-more-btn {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--accent-500);
    transition: all var(--transition-base);
}

.info-more-btn:hover {
    background: var(--gradient-warm);
    border-color: transparent;
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
}

.info-more-btn span {
    display: none;
}

.info-more-btn ion-icon {
    font-size: 22px;
    transition: transform var(--transition-base);
}

.sidebar.active .info-more-btn ion-icon {
    transform: rotate(180deg);
}

@media (min-width: 1024px) {
    .info-more-btn {
        display: none;
    }
}

/* Sidebar Info More */
.sidebar-info-more {
    margin-top: var(--space-6);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    position: relative;
    z-index: 2;
}

.sidebar.active .sidebar-info-more {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 1024px) {
    .sidebar-info-more {
        opacity: 1;
        visibility: visible;
    }
}

.separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-default), transparent);
    margin: var(--space-6) 0;
}

/* Contact List */
.contacts-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.contact-item:hover {
    background: rgba(56, 189, 248, 0.05);
}

.icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-elevated));
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--accent-500);
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.contact-info {
    min-width: 0;
}

.contact-title {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-1);
    font-weight: 500;
}

.contact-link {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    word-break: break-all;
}

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

/* Social Links */
.social-list {
    display: flex;
    gap: var(--space-3);
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-elevated));
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 22px;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.social-link:hover {
    background: var(--gradient-warm);
    border-color: transparent;
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md), 0 0 20px rgba(56, 189, 248, 0.3);
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */

.main-content {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

/* Navigation */
.navbar-wrapper {
    display: contents;
}

.navbar {
    position: fixed;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%);
    /* Liquid glass background - more transparent */
    background: linear-gradient(
        135deg,
        rgba(22, 31, 46, 0.55) 0%,
        rgba(30, 41, 59, 0.45) 50%,
        rgba(22, 31, 46, 0.55) 100%
    );
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    /* Subtle glass border with highlight */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top-color: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    padding: var(--space-2);
    z-index: var(--z-sticky);
    /* Layered shadow for depth */
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.navbar:hover {
    background: linear-gradient(
        135deg,
        rgba(22, 31, 46, 0.6) 0%,
        rgba(30, 41, 59, 0.5) 50%,
        rgba(22, 31, 46, 0.6) 100%
    );
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 30px rgba(56, 189, 248, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

@media (min-width: 1024px) {
    .navbar {
        position: fixed;
        bottom: auto;
        top: var(--space-4);
        left: auto;
        right: var(--space-6);
        transform: none;
        width: fit-content;
        /* Keep liquid glass effect on desktop */
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.05),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    }

    .navbar:hover {
        box-shadow:
            0 12px 40px rgba(0, 0, 0, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.08),
            0 0 25px rgba(56, 189, 248, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.15),
            inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    }
}

@media (min-width: 1280px) {
    .navbar {
        right: calc((100vw - 1400px) / 2 + var(--space-6));
    }
}

.navbar-list {
    display: flex;
    gap: var(--space-1);
    position: relative;
}

/* Sliding indicator - Apple liquid glass style */
.navbar-indicator {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    /* Gradient with glass-like overlay */
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        var(--gradient-warm);
    background-size: 100% 100%, 200% 200%;
    border-radius: var(--radius-full);
    /* Glass-like border */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top-color: rgba(255, 255, 255, 0.35);
    border-bottom-color: rgba(0, 0, 0, 0.1);
    /* Layered glow effect */
    box-shadow:
        0 4px 20px rgba(56, 189, 248, 0.35),
        0 0 30px rgba(56, 189, 248, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -1px 2px rgba(0, 0, 0, 0.1);
    /* Bouncy spring easing */
    transition:
        transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.3s ease;
    z-index: 0;
    animation: navGradient 6s linear infinite;
    pointer-events: none;
    will-change: transform, width;
}

.navbar-indicator.dragging {
    transition: width 0.15s ease-out !important;
    box-shadow:
        0 6px 30px rgba(56, 189, 248, 0.5),
        0 0 50px rgba(56, 189, 248, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.25),
        inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}

.navbar-indicator.snapping {
    transition:
        transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55),
        width 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}

.navbar-link {
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--radius-full);
    transition:
        color 0.25s ease,
        transform 0.2s ease,
        text-shadow 0.3s ease;
    position: relative;
    z-index: 1;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.navbar-link:active {
    cursor: grabbing;
    transform: scale(0.95);
}

.navbar-link:hover:not(.active) {
    color: var(--text-secondary);
}

.navbar-link.active {
    color: var(--bg-primary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-weight: 700;
    animation: navLinkPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes navLinkPop {
    0% { transform: scale(0.9); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes navGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==========================================================================
   ARTICLES / PAGES
   ========================================================================== */

article {
    display: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

article.active {
    display: block;
    animation: slideInRight 0.35s var(--ease-out-expo) both;
}

article.active.slide-left {
    animation: slideInLeft 0.35s var(--ease-out-expo) both;
}

article.active.slide-right {
    animation: slideInRight 0.35s var(--ease-out-expo) both;
}

/* No animation for direct nav clicks (prevents flicker) */
article.active.no-animate {
    animation: none;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Article Title */
.article-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-8);
    letter-spacing: -0.03em;
    position: relative;
    display: inline-block;
}

.article-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-warm);
    background-size: 200% 100%;
    border-radius: var(--radius-full);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
    animation:
        titleUnderline 4s var(--ease-in-out-smooth) infinite,
        titleGradientShift 3s linear infinite;
}

@keyframes titleUnderline {
    0%, 100% {
        width: 60px;
        box-shadow: 0 0 15px rgba(56, 189, 248, 0.3), 0 0 30px rgba(56, 189, 248, 0);
        transform: scaleX(1);
    }
    50% {
        width: 90px;
        box-shadow: 0 0 25px rgba(56, 189, 248, 0.5), 0 0 50px rgba(139, 92, 246, 0.2);
        transform: scaleX(1.05);
    }
}

@keyframes titleGradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@media (min-width: 768px) {
    .article-title {
        font-size: var(--text-5xl);
    }
}

/* Section Title */
.h3, .service-title, .skills-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    letter-spacing: -0.02em;
    padding-left: var(--space-4);
    position: relative;
}

.h3::before, .service-title::before, .skills-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--gradient-warm);
    border-radius: var(--radius-full);
}

.h4 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
}

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

.hero {
    padding: var(--space-4) 0 var(--space-8);
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero {
        padding: var(--space-6) 0 var(--space-10);
        text-align: left;
    }
}

/* Decorative elements - Animated */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background:
        radial-gradient(ellipse 60% 40% at 30% 40%, rgba(56, 189, 248, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 70% 60%, rgba(139, 92, 246, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 50% 80%, rgba(167, 139, 250, 0.1) 0%, transparent 60%);
    pointer-events: none;
    animation: heroGlow 15s var(--ease-in-out-smooth) infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: heroOrbFloat 20s var(--ease-in-out-smooth) infinite reverse;
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero::before {
        width: 100%;
        height: 100%;
        top: 50%;
        left: 50%;
    }

    .hero::after {
        display: none;
    }
}

@keyframes heroGlow {
    0% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 0.9;
        filter: blur(0px);
    }
    25% {
        transform: translate(-45%, -55%) scale(1.1) rotate(5deg);
        opacity: 1;
        filter: blur(5px);
    }
    50% {
        transform: translate(-55%, -50%) scale(0.95) rotate(-3deg);
        opacity: 0.7;
        filter: blur(0px);
    }
    75% {
        transform: translate(-50%, -45%) scale(1.05) rotate(2deg);
        opacity: 0.85;
        filter: blur(3px);
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 0.9;
        filter: blur(0px);
    }
}

@keyframes heroOrbFloat {
    0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    25% { transform: translate(-30px, 50px) scale(1.2); opacity: 0.8; }
    50% { transform: translate(40px, 20px) scale(0.9); opacity: 0.4; }
    75% { transform: translate(20px, -40px) scale(1.1); opacity: 0.7; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-5);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--accent-400);
    margin-bottom: var(--space-5);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.1);
}

.hero-label .dot {
    width: 10px;
    height: 10px;
    background: var(--accent-500);
    border-radius: 50%;
    animation: dotPulse 3s var(--ease-in-out-smooth) infinite;
    box-shadow: 0 0 10px var(--accent-500);
    position: relative;
}

.hero-label .dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--accent-500);
    opacity: 0;
    animation: dotRing 3s var(--ease-out-expo) infinite;
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px var(--accent-500), 0 0 20px rgba(56, 189, 248, 0);
    }
    50% {
        opacity: 0.8;
        transform: scale(0.85);
        box-shadow: 0 0 15px var(--accent-500), 0 0 30px rgba(56, 189, 248, 0.3);
    }
}

@keyframes dotRing {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: var(--space-5);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: var(--text-6xl);
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: var(--text-7xl);
    }
}

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

.hero-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 650px;
    margin-bottom: var(--space-6);
    line-height: 1.7;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: var(--text-xl);
    }
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
}

@media (min-width: 768px) {
    .hero-actions {
        justify-content: flex-start;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--gradient-warm);
    background-size: 200% 200%;
    color: var(--bg-primary);
    box-shadow: var(--shadow-md), 0 0 30px rgba(56, 189, 248, 0.2);
    position: relative;
    overflow: hidden;
    animation: btnGradientFlow 5s var(--ease-in-out-smooth) infinite;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: btnShine 4s var(--ease-out-expo) infinite;
    transform: skewX(-20deg);
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

@keyframes btnGradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes btnShine {
    0% { left: -100%; opacity: 0; }
    10% { opacity: 1; }
    60% { left: 150%; opacity: 1; }
    100% { left: 150%; opacity: 0; }
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-lg), 0 0 50px rgba(56, 189, 248, 0.4), 0 0 100px rgba(56, 189, 248, 0.2);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    color: var(--text-primary);
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--accent-500);
    box-shadow: var(--shadow-md), 0 0 20px rgba(56, 189, 248, 0.15);
}

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

.portfolio {
    overflow: hidden;
}

.portfolio .article-title {
    margin-top: var(--space-4);
}

.projects {
    overflow: hidden;
}

.projects header {
    margin-bottom: var(--space-8);
}

.projects .article-title {
    margin-bottom: var(--space-2);
}

.filter-select-box {
    display: none;
}

/* Project Grid - Bento Layout */
.project-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
    overflow: hidden;
}

@media (min-width: 640px) {
    .project-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .project-list {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-6);
    }

    /* Featured project - first item spans 2 columns only */
    .project-item:first-child {
        grid-column: span 2;
    }

    .project-item:first-child .project-img {
        height: 320px;
    }
}

.project-item {
    display: none;
}

.project-item.active {
    display: block;
    animation: scaleUp var(--transition-base) ease;
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.project-item > a {
    display: block;
    height: 100%;
}

/* Project Card */
.project-img {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    margin-bottom: var(--space-5);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

/* Animated border on hover */
.project-img::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 2px;
    pointer-events: none;
    background: linear-gradient(
        var(--card-angle, 0deg),
        transparent 30%,
        var(--accent-500) 50%,
        var(--accent-500) 70%,
        transparent 80%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
    animation: rotateCardBorder 3s linear infinite;
    z-index: 3;
}

@keyframes rotateCardBorder {
    0% { --card-angle: 0deg; }
    100% { --card-angle: 360deg; }
}

@property --card-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.project-item > a {
    transition: transform var(--transition-slow) var(--ease-out-expo);
}

.project-item > a:hover .project-img {
    border-color: transparent;
    box-shadow:
        var(--shadow-lg),
        0 0 50px rgba(56, 189, 248, 0.2),
        0 0 100px rgba(56, 189, 248, 0.1);
}

.project-item > a:hover {
    transform: translateY(-12px);
}

.project-item > a:hover .project-img::after {
    opacity: 1;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform var(--transition-slow);
}

.project-item > a:hover .project-img img {
    transform: scale(1.08);
}

/* Gradient overlay */
.project-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(12, 18, 32, 0.9) 0%,
        rgba(12, 18, 32, 0.4) 40%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
    pointer-events: none;
}

.project-item > a:hover .project-img::before {
    opacity: 1;
}

/* Project Icons */
.project-icons-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    display: flex;
    pointer-events: auto;
    z-index: 5;
    gap: var(--space-3);
    opacity: 0;
    transition: all var(--transition-base);
    z-index: 2;
}

.project-item > a:hover .project-icons-container {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.project-item-icon-box {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: pointer;
    position: relative;
    z-index: 10;
    background: rgba(22, 31, 46, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    color: var(--accent-400);
    font-size: 24px;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.project-item-icon-box:hover {
    background: var(--gradient-warm);
    border-color: transparent;
    color: var(--bg-primary);
    transform: scale(1.1);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(56, 189, 248, 0.4);
}

/* Project Info */
.project-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    transition: color var(--transition-fast);
}

.project-item > a:hover .project-title {
    color: var(--accent-400);
}

.project-category {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */

.about .article-title {
    margin-top: var(--space-4);
}

.about-text {
    margin-bottom: var(--space-12);
    padding: var(--space-8);
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    position: relative;
    overflow: hidden;
}

.about-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-warm);
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: var(--space-5);
    font-size: var(--text-lg);
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text strong {
    color: var(--accent-400);
    font-weight: 600;
}

/* Services Section */
.service {
    margin-bottom: var(--space-12);
}

.service-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}

@media (min-width: 640px) {
    .service-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-item {
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    transition: all var(--transition-base);
    position: relative;
}

/* Animated gradient border */
.service-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-2xl);
    padding: 1px;
    background: linear-gradient(
        var(--border-angle, 0deg),
        transparent 40%,
        var(--accent-500) 50%,
        transparent 60%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
    animation: rotateBorder 4s linear infinite;
}

@keyframes rotateBorder {
    to { --border-angle: 360deg; }
}

@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.service-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.service-item:hover {
    border-color: transparent;
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), 0 0 50px rgba(56, 189, 248, 0.15);
}

.service-item:hover::before {
    opacity: 1;
}

.service-item:hover::after {
    opacity: 1;
}

.service-icon-box {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-warm);
    background-size: 200% 200%;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-5);
    color: var(--bg-primary);
    font-size: 32px;
    box-shadow: var(--shadow-md), 0 0 25px rgba(56, 189, 248, 0.25);
    animation: iconGlow 5s var(--ease-in-out-smooth) infinite, iconGradient 8s linear infinite;
    transition: transform var(--transition-base) var(--ease-bounce);
}

.service-item:nth-child(1) .service-icon-box { animation-delay: 0s; }
.service-item:nth-child(2) .service-icon-box { animation-delay: 1.25s; }
.service-item:nth-child(3) .service-icon-box { animation-delay: 2.5s; }
.service-item:nth-child(4) .service-icon-box { animation-delay: 3.75s; }

.service-item:hover .service-icon-box {
    transform: scale(1.1) rotate(5deg);
}

@keyframes iconGlow {
    0%, 100% {
        box-shadow: var(--shadow-md), 0 0 25px rgba(56, 189, 248, 0.25), 0 0 50px rgba(56, 189, 248, 0);
    }
    50% {
        box-shadow: var(--shadow-md), 0 0 35px rgba(56, 189, 248, 0.4), 0 0 70px rgba(139, 92, 246, 0.15);
    }
}

@keyframes iconGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.service-item:nth-child(2) .service-icon-box {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: var(--shadow-md), 0 0 25px rgba(34, 197, 94, 0.25);
}

.service-item:nth-child(3) .service-icon-box {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: var(--shadow-md), 0 0 25px rgba(56, 189, 248, 0.25);
}

.service-item:nth-child(4) .service-icon-box {
    background: linear-gradient(135deg, #38bdf8, #8b5cf6);
    box-shadow: var(--shadow-md), 0 0 25px rgba(167, 139, 250, 0.25);
}

.service-item-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.service-item-text {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Skills Section */
.skills {
    margin-bottom: var(--space-10);
}

.skills-cards-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}

@media (min-width: 640px) {
    .skills-cards-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .skills-cards-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.skill-card {
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: all var(--transition-base);
}

.skill-card:hover {
    border-color: var(--border-default);
    box-shadow: var(--shadow-lg), var(--shadow-card);
}

.skill-card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-warm);
    background-size: 200% 200%;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-5);
    color: var(--bg-primary);
    font-size: 26px;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.25);
    animation:
        skillIconPulse 6s var(--ease-in-out-smooth) infinite,
        skillIconGradient 10s linear infinite;
    transition: all var(--transition-base) var(--ease-bounce);
}

/* Skill Card Color Variety */
.skill-card:nth-child(1) .skill-card-icon {
    animation-delay: 0s;
    background: linear-gradient(135deg, #38bdf8, #7dd3fc);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.35);
}
.skill-card:nth-child(1):hover { border-color: rgba(56, 189, 248, 0.4); }
.skill-card:nth-child(1) .skill-card-tags span {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.2);
    color: #7dd3fc;
}

.skill-card:nth-child(2) .skill-card-icon {
    animation-delay: 1s;
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
}
.skill-card:nth-child(2):hover { border-color: rgba(139, 92, 246, 0.4); }
.skill-card:nth-child(2) .skill-card-tags span {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
    color: #A78BFA;
}

.skill-card:nth-child(3) .skill-card-icon {
    animation-delay: 2s;
    background: linear-gradient(135deg, #10B981, #34D399);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}
.skill-card:nth-child(3):hover { border-color: rgba(16, 185, 129, 0.4); }
.skill-card:nth-child(3) .skill-card-tags span {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: #34D399;
}

.skill-card:nth-child(4) .skill-card-icon {
    animation-delay: 3s;
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}
.skill-card:nth-child(4):hover { border-color: rgba(245, 158, 11, 0.4); }
.skill-card:nth-child(4) .skill-card-tags span {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: #FBBF24;
}

.skill-card:nth-child(5) .skill-card-icon {
    animation-delay: 4s;
    background: linear-gradient(135deg, #EC4899, #F472B6);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.35);
}
.skill-card:nth-child(5):hover { border-color: rgba(236, 72, 153, 0.4); }
.skill-card:nth-child(5) .skill-card-tags span {
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.2);
    color: #F472B6;
}

.skill-card:nth-child(6) .skill-card-icon {
    animation-delay: 5s;
    background: linear-gradient(135deg, #06B6D4, #22D3EE);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
}
.skill-card:nth-child(6):hover { border-color: rgba(6, 182, 212, 0.4); }
.skill-card:nth-child(6) .skill-card-tags span {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.2);
    color: #22D3EE;
}

.skill-card:hover .skill-card-icon {
    transform: scale(1.15) rotate(-5deg);
}

@keyframes skillIconPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(56, 189, 248, 0.25);
        transform: scale(1) translateY(0);
    }
    25% {
        box-shadow: 0 6px 25px rgba(56, 189, 248, 0.35);
        transform: scale(1.03) translateY(-2px);
    }
    50% {
        box-shadow: 0 8px 35px rgba(56, 189, 248, 0.45);
        transform: scale(1.06) translateY(-3px);
    }
    75% {
        box-shadow: 0 6px 25px rgba(56, 189, 248, 0.35);
        transform: scale(1.03) translateY(-2px);
    }
}

@keyframes skillIconGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.skill-card-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.skill-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.skill-card-tags span {
    padding: var(--space-1) var(--space-3);
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--accent-400);
    transition: all var(--transition-fast);
}

.skill-card:hover .skill-card-tags span {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.25);
}

/* Soft Skills */
.soft-skills-container {
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    position: relative;
    margin-top: var(--space-10);
}

.soft-skills-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.soft-skills-container .h4 {
    margin-bottom: var(--space-6);
    font-size: var(--text-xl);
}

.soft-skills-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    position: relative;
    z-index: 1;
}

@media (min-width: 640px) {
    .soft-skills-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.soft-skill-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    color: var(--text-secondary);
    font-size: var(--text-base);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.soft-skill-item:hover {
    background: rgba(56, 189, 248, 0.05);
    color: var(--text-primary);
}

.soft-skill-item ion-icon {
    color: var(--accent-500);
    font-size: 22px;
    flex-shrink: 0;
}

/* ==========================================================================
   RESUME PAGE
   ========================================================================== */

.resume .article-title {
    margin-top: var(--space-4);
}

.timeline {
    margin-bottom: var(--space-12);
}

.timeline .title-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--border-subtle);
}

.timeline .title-wrapper .icon-box {
    background: var(--gradient-warm);
    border: none;
    color: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.3);
}

.timeline .title-wrapper .h3 {
    margin-bottom: 0;
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.timeline-item {
    position: relative;
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    padding-left: var(--space-10);
    transition: all var(--transition-base);
}

.timeline-item:hover {
    border-color: var(--border-default);
    transform: translateX(8px);
    box-shadow: var(--shadow-lg), var(--shadow-card);
}

/* Timeline dot */
.timeline-item::before {
    content: '';
    position: absolute;
    top: var(--space-10);
    left: var(--space-5);
    width: 12px;
    height: 12px;
    background: var(--gradient-warm);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.timeline-item.current::before {
    animation: pulseGlow 4s var(--ease-in-out-smooth) infinite;
}

.timeline-item.current::after {
    content: '';
    position: absolute;
    top: calc(var(--space-10) - 6px);
    left: calc(var(--space-5) - 6px);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--accent-500);
    opacity: 0;
    animation: timelineRing 4s var(--ease-out-expo) infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(56, 189, 248, 0.4), 0 0 30px rgba(56, 189, 248, 0);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 25px rgba(56, 189, 248, 0.6), 0 0 50px rgba(56, 189, 248, 0.25);
        transform: scale(1.2);
    }
}

@keyframes timelineRing {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.timeline-item-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    line-height: 1.4;
}

.timeline-list span:not(.timeline-skill-tag) {
    display: inline-flex;
    padding: var(--space-2) var(--space-4);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--accent-400);
    margin-bottom: var(--space-4);
}

.timeline-text {
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: 1.8;
}

.timeline-skills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-5);
}

.timeline-skill-tag {
    padding: var(--space-1) var(--space-3);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.timeline-item:hover .timeline-skill-tag {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.2);
    color: var(--accent-400);
}

/* Timeline Color Variety */
.timeline-item:nth-child(1)::before {
    background: linear-gradient(135deg, #38bdf8, #7dd3fc);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}

.timeline-item:nth-child(2)::before {
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.timeline-item:nth-child(3)::before {
    background: linear-gradient(135deg, #10B981, #34D399);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.timeline-item:nth-child(4)::before {
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

.timeline-item:nth-child(5)::before {
    background: linear-gradient(135deg, #EC4899, #F472B6);
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.5);
}

.timeline-item:nth-child(6)::before {
    background: linear-gradient(135deg, #06B6D4, #22D3EE);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
}

/* Hover border colors matching dots */
.timeline-item:nth-child(1):hover { border-color: rgba(56, 189, 248, 0.4); }
.timeline-item:nth-child(2):hover { border-color: rgba(139, 92, 246, 0.4); }
.timeline-item:nth-child(3):hover { border-color: rgba(16, 185, 129, 0.4); }
.timeline-item:nth-child(4):hover { border-color: rgba(245, 158, 11, 0.4); }
.timeline-item:nth-child(5):hover { border-color: rgba(236, 72, 153, 0.4); }
.timeline-item:nth-child(6):hover { border-color: rgba(6, 182, 212, 0.4); }

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

.contact .article-title {
    margin-top: var(--space-4);
}

.contact-form {
    display: grid;
    gap: var(--space-10);
}

@media (min-width: 768px) {
    .contact-form {
        grid-template-columns: 1fr 1.5fr;
        gap: var(--space-12);
    }
}

/* Contact Info Boxes */
.contact-info1 {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.info-box {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: all var(--transition-base);
}

.info-box:hover {
    border-color: var(--border-default);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-card);
}

.info-box ion-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-warm);
    border-radius: var(--radius-md);
    color: var(--bg-primary);
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.25);
}

.info-box p {
    color: var(--text-secondary);
    font-size: var(--text-base);
    font-weight: 500;
}

/* Form */
.form-wrapper {
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
}

.form-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-8);
}

.form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.input-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}

@media (min-width: 640px) {
    .input-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

.form-input {
    width: 100%;
    padding: var(--space-5);
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: var(--text-base);
    transition: all var(--transition-base);
}

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

.form-input:focus {
    border-color: var(--accent-500);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1), 0 0 20px rgba(56, 189, 248, 0.1);
}

.form-input:focus:invalid {
    border-color: var(--accent-500);
    box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.1);
}

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

.form-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-10);
    background: var(--gradient-warm);
    border-radius: var(--radius-full);
    color: var(--bg-primary);
    font-size: var(--text-base);
    font-weight: 700;
    transition: all var(--transition-base);
    width: fit-content;
    box-shadow: var(--shadow-md), 0 0 30px rgba(56, 189, 248, 0.2);
}

.form-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 0 50px rgba(56, 189, 248, 0.4);
}

.form-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-btn ion-icon {
    font-size: 20px;
}

#responseMessage {
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: 500;
}

#responseMessage.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #22c55e;
}

#responseMessage.error {
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.25);
    color: var(--accent-500);
}

/* ==========================================================================
   PROJECT MODAL
   ========================================================================== */

/* Modal Container */
#modalContainer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
}

#modalContainer:has(.modal-overlay) {
    pointer-events: auto;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.modal-overlay[style*="flex"] {
    display: flex;
}

.futuristic-modal {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Fixed Header with close button */
.modal-header-btns {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: linear-gradient(to bottom, rgba(12, 18, 32, 0.95) 0%, rgba(12, 18, 32, 0.8) 70%, transparent 100%);
    z-index: 100;
    pointer-events: none;
}

.modal-header-btns > * {
    pointer-events: auto;
}

/* Modal scrollable content */
.modal-scroll-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-top: 70px; /* Space for fixed header */
}

@media (max-width: 480px) {
    .modal-scroll-content {
        padding-top: 56px;
    }
}

/* Desktop: Centered modal with max-width */
@media (min-width: 1024px) {
    .modal-overlay {
        background: rgba(12, 18, 32, 0.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: var(--space-6);
        align-items: center;
        justify-content: center;
    }

    .futuristic-modal {
        max-width: 1100px;
        max-height: 95vh;
        height: auto;
        background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary));
        border: 1px solid var(--border-default);
        border-radius: var(--radius-2xl);
        box-shadow: var(--shadow-xl), 0 0 100px rgba(56, 189, 248, 0.1);
    }

    .modal-header-btns {
        position: absolute;
        background: linear-gradient(to bottom, rgba(22, 31, 46, 0.98) 0%, rgba(22, 31, 46, 0.9) 60%, transparent 100%);
        border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
        padding: var(--space-5);
    }
}

.main-link-btn,
.close-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(22, 31, 46, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.main-link-btn:hover,
.close-btn:hover {
    background: var(--gradient-warm);
    border-color: transparent;
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

@media (max-width: 767px) {
    .main-link-btn,
    .close-btn {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
}

/* Carousel */
.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--bg-secondary);
    overflow: hidden;
}

@media (max-width: 1023px) {
    .carousel-container {
        aspect-ratio: 4/3;
    }
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.image-counter {
    position: absolute;
    top: var(--space-5);
    left: var(--space-5);
    padding: var(--space-2) var(--space-4);
    background: rgba(12, 18, 32, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    z-index: 10;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 18, 32, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--gradient-warm);
    border-color: transparent;
    color: var(--bg-primary);
}

.carousel-btn.prev {
    left: var(--space-5);
}

.carousel-btn.next {
    right: var(--space-5);
}

.carousel-indicators {
    position: absolute;
    bottom: var(--space-5);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-2);
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.indicator.active {
    width: 28px;
    background: var(--gradient-warm);
    border-radius: var(--radius-full);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* Project Details */
.project-details {
    padding: var(--space-6) var(--space-5);
}

@media (min-width: 768px) {
    .project-details {
        padding: var(--space-8) var(--space-10);
    }
}

@media (min-width: 1024px) {
    .project-details {
        padding: var(--space-8);
    }
}

.project-header {
    margin-bottom: var(--space-5);
}

.project-header .text-neon {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .project-header .text-neon {
        font-size: var(--text-3xl);
    }
}
    margin-bottom: var(--space-4);
}

.project-links-inline {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.link-btn:hover {
    background: var(--gradient-warm);
    border-color: transparent;
    color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.project-description {
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: 1.8;
    margin-bottom: var(--space-8);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-8);
}

.tech-tag {
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    transition: all var(--transition-fast);
}

/* Tech Tag Color Variety */
.tech-tag:nth-child(6n+1) {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(56, 189, 248, 0.08));
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #7dd3fc;
}
.tech-tag:nth-child(6n+2) {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #A78BFA;
}
.tech-tag:nth-child(6n+3) {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.08));
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34D399;
}
.tech-tag:nth-child(6n+4) {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.08));
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #FBBF24;
}
.tech-tag:nth-child(6n+5) {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(236, 72, 153, 0.08));
    border: 1px solid rgba(236, 72, 153, 0.3);
    color: #F472B6;
}
.tech-tag:nth-child(6n+6) {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(6, 182, 212, 0.08));
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #22D3EE;
}

/* Feature Section */
.feature-section-title {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: 0 var(--space-5);
    margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
    .feature-section-title {
        padding: 0 var(--space-10);
    }
}

@media (min-width: 1024px) {
    .feature-section-title {
        padding: 0 var(--space-8);
    }
}

.feature-section-title ion-icon {
    color: var(--accent-500);
    font-size: 24px;
}

.feature-section-title h3 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .feature-section-title ion-icon {
        font-size: 28px;
    }

    .feature-section-title h3 {
        font-size: var(--text-xl);
    }
}

.feature-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
    padding: 0 var(--space-5) var(--space-6);
}

@media (min-width: 640px) {
    .feature-section {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
}

@media (min-width: 768px) {
    .feature-section {
        padding: 0 var(--space-10) var(--space-8);
    }
}

@media (min-width: 1024px) {
    .feature-section {
        padding: 0 var(--space-8) var(--space-8);
    }
}

.feature-item {
    display: flex;
    gap: var(--space-5);
    padding: var(--space-5);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.feature-item:hover {
    border-color: var(--border-default);
    background: var(--bg-elevated);
}

.feature-icon-box {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.feature-emoji {
    font-size: 26px;
}

.feature-content {
    min-width: 0;
}

.feature-title {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--accent-400);
    margin-bottom: var(--space-2);
}

.feature-desc {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.6;
}

/* Feature Item Color Variety */
.feature-item:nth-child(1) .feature-icon-box {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(56, 189, 248, 0.1));
    border-color: rgba(56, 189, 248, 0.3);
}
.feature-item:nth-child(1) .feature-title { color: #7dd3fc; }

.feature-item:nth-child(2) .feature-icon-box {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
    border-color: rgba(139, 92, 246, 0.3);
}
.feature-item:nth-child(2) .feature-title { color: #A78BFA; }

.feature-item:nth-child(3) .feature-icon-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    border-color: rgba(16, 185, 129, 0.3);
}
.feature-item:nth-child(3) .feature-title { color: #34D399; }

.feature-item:nth-child(4) .feature-icon-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    border-color: rgba(245, 158, 11, 0.3);
}
.feature-item:nth-child(4) .feature-title { color: #FBBF24; }

.feature-item:nth-child(5) .feature-icon-box {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(236, 72, 153, 0.1));
    border-color: rgba(236, 72, 153, 0.3);
}
.feature-item:nth-child(5) .feature-title { color: #F472B6; }

.feature-item:nth-child(6) .feature-icon-box {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(6, 182, 212, 0.1));
    border-color: rgba(6, 182, 212, 0.3);
}
.feature-item:nth-child(6) .feature-title { color: #22D3EE; }

/* Video Section */
.video-section {
    padding: 0 var(--space-8) var(--space-8);
}

.video-section-title {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.video-section-title ion-icon {
    color: var(--accent-500);
    font-size: 28px;
}

.video-section-title h3 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
}

.video-grid {
    display: grid;
    gap: var(--space-5);
}

.video-glass {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
}

.project-video {
    width: 100%;
    display: block;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.6s var(--ease-out-expo),
        transform 0.6s var(--ease-out-expo);
}

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

/* ==========================================================================
   UTILITIES
   ========================================================================== */

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

.hidden {
    display: none;
}

/* ==========================================================================
   PAGE INDICATOR DOTS (Mobile)
   ========================================================================== */

/* Page indicator - hidden by default, can be enabled if needed */
.page-indicator {
    display: none;
}

/* ==========================================================================
   MOBILE RESPONSIVE FIXES
   ========================================================================== */

/* Mobile bottom padding for fixed navbar */
@media (max-width: 1023px) {
    main {
        padding-bottom: 100px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    :root {
        --text-4xl: 1.75rem;
        --text-5xl: 2rem;
        --text-6xl: 2.5rem;
        --text-7xl: 3rem;
    }

    main {
        padding: var(--space-3);
        gap: var(--space-4);
    }

    /* Sidebar Mobile */
    .sidebar {
        padding: var(--space-4);
        border-radius: var(--radius-xl);
    }

    .sidebar-info {
        display: flex;
        align-items: center;
        gap: var(--space-3);
        position: relative;
        padding-right: 48px;
    }

    .avatar-box {
        width: 65px;
        height: 65px;
        flex-shrink: 0;
    }

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

    .info-content .name {
        font-size: var(--text-base);
        margin-bottom: 4px;
        line-height: 1.2;
    }

    .info-content .title {
        font-size: 11px;
        padding: 3px 8px;
    }

    .info-more-btn {
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
    }

    .sidebar-info-more {
        margin-top: var(--space-4);
    }

    .separator {
        margin: var(--space-4) 0;
    }

    .contacts-list {
        gap: var(--space-3);
    }

    .icon-box {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .contact-item {
        gap: var(--space-3);
        padding: var(--space-2);
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    /* Hero Mobile */
    .hero {
        padding: var(--space-6) 0 var(--space-10);
    }

    .hero-label {
        font-size: var(--text-xs);
        padding: var(--space-1) var(--space-3);
        margin-bottom: var(--space-5);
    }

    .hero-label .dot {
        width: 8px;
        height: 8px;
    }

    .hero-title {
        font-size: var(--text-4xl);
        margin-bottom: var(--space-5);
        line-height: 1.15;
    }

    .hero-description {
        font-size: var(--text-base);
        margin-bottom: var(--space-6);
        line-height: 1.7;
    }

    .hero-actions {
        flex-direction: column;
        gap: var(--space-3);
    }

    .btn {
        padding: var(--space-3) var(--space-6);
        font-size: var(--text-sm);
        width: 100%;
        justify-content: center;
    }

    /* Navigation Mobile */
    .navbar {
        bottom: var(--space-3);
        padding: var(--space-1);
        border-radius: var(--radius-xl);
    }

    .navbar-link {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-xs);
    }

    .navbar-indicator {
        transition:
            transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
            width 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
            box-shadow 0.3s ease;
    }

    .navbar-indicator.snapping {
        transition:
            transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55),
            width 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    }

    /* Article Titles */
    .article-title {
        font-size: var(--text-2xl);
        margin-bottom: var(--space-6);
    }

    .article-title::after {
        width: 40px;
        height: 3px;
    }

    .h3, .service-title, .skills-title {
        font-size: var(--text-lg);
        margin-bottom: var(--space-5);
    }

    /* Projects Grid */
    .projects header {
        margin-bottom: var(--space-5);
    }

    .project-list {
        gap: var(--space-4);
    }

    .project-img {
        height: 200px;
        margin-bottom: var(--space-3);
        border-radius: var(--radius-lg);
    }

    .project-title {
        font-size: var(--text-base);
    }

    .project-category {
        font-size: var(--text-xs);
    }

    .project-item-icon-box {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    /* About Section */
    .about-text {
        padding: var(--space-5);
        margin-bottom: var(--space-8);
        border-radius: var(--radius-xl);
    }

    .about-text p {
        font-size: var(--text-sm);
    }

    /* Services */
    .service {
        margin-bottom: var(--space-10);
    }

    .service-list {
        gap: var(--space-4);
    }

    .service-item {
        padding: var(--space-5);
        border-radius: var(--radius-xl);
    }

    .service-icon-box {
        width: 52px;
        height: 52px;
        font-size: 26px;
        margin-bottom: var(--space-4);
    }

    .service-item-title {
        font-size: var(--text-base);
    }

    .service-item-text {
        font-size: var(--text-sm);
    }

    /* Skills */
    .skills {
        margin-bottom: var(--space-8);
    }

    .skills-cards-list {
        gap: var(--space-4);
    }

    .skill-card {
        padding: var(--space-4);
        border-radius: var(--radius-lg);
    }

    .skill-card-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
        margin-bottom: var(--space-3);
    }

    .skill-card-title {
        font-size: var(--text-sm);
        margin-bottom: var(--space-2);
    }

    .skill-card-tags span {
        font-size: 10px;
        padding: 2px var(--space-2);
    }

    /* Soft Skills */
    .soft-skills-container {
        padding: var(--space-5);
        margin-top: var(--space-6);
        border-radius: var(--radius-xl);
    }

    .soft-skills-container .h4 {
        font-size: var(--text-base);
        margin-bottom: var(--space-4);
    }

    .soft-skill-item {
        font-size: var(--text-sm);
        padding: var(--space-2);
        gap: var(--space-2);
    }

    .soft-skill-item ion-icon {
        font-size: 16px;
    }

    /* Timeline */
    .timeline {
        margin-bottom: var(--space-10);
    }

    .timeline .title-wrapper {
        gap: var(--space-3);
        margin-bottom: var(--space-5);
        padding-bottom: var(--space-3);
    }

    .timeline .title-wrapper .icon-box {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .timeline-list {
        gap: var(--space-4);
    }

    .timeline-item {
        padding: var(--space-5);
        padding-left: var(--space-8);
        border-radius: var(--radius-lg);
    }

    .timeline-item::before {
        top: var(--space-6);
        left: var(--space-3);
        width: 10px;
        height: 10px;
    }

    /* Align ripple ring with dot on mobile */
    .timeline-item.current::after {
        top: calc(var(--space-6) - 5px);
        left: calc(var(--space-3) - 5px);
        width: 20px;
        height: 20px;
    }

    .timeline-item-title {
        font-size: var(--text-base);
        margin-bottom: var(--space-2);
    }

    .timeline-list span:not(.timeline-skill-tag) {
        font-size: var(--text-xs);
        padding: var(--space-1) var(--space-3);
    }

    .timeline-text {
        font-size: var(--text-sm);
    }

    .timeline-skills {
        margin-top: var(--space-3);
    }

    .timeline-skill-tag {
        font-size: 10px;
    }

    /* Contact */
    .contact-form {
        gap: var(--space-6);
    }

    .info-box {
        padding: var(--space-4);
        gap: var(--space-3);
        border-radius: var(--radius-lg);
    }

    .info-box ion-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .info-box p {
        font-size: var(--text-sm);
    }

    .form-wrapper {
        padding: var(--space-5);
        border-radius: var(--radius-xl);
    }

    .form-title {
        font-size: var(--text-lg);
        margin-bottom: var(--space-5);
    }

    .form {
        gap: var(--space-4);
    }

    .form-input {
        padding: var(--space-4);
        font-size: var(--text-sm);
        border-radius: var(--radius-md);
    }

    textarea.form-input {
        min-height: 140px;
    }

    .form-btn {
        padding: var(--space-4) var(--space-6);
        font-size: var(--text-sm);
    }

    /* Modal - Fullscreen on mobile */
    .modal-header-btns {
        padding: var(--space-3);
        gap: var(--space-2);
    }

    .main-link-btn,
    .close-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .carousel-btn.prev {
        left: var(--space-2);
    }

    .carousel-btn.next {
        right: var(--space-2);
    }

    .image-counter {
        font-size: var(--text-xs);
        padding: var(--space-1) var(--space-3);
    }

    .project-links-inline {
        gap: var(--space-2);
        flex-wrap: wrap;
    }

    .link-btn {
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-sm);
    }

    .project-description {
        font-size: var(--text-sm);
        margin-bottom: var(--space-5);
    }

    .tech-stack {
        margin-bottom: var(--space-5);
    }

    .tech-tag {
        padding: var(--space-1) var(--space-3);
        font-size: var(--text-xs);
    }

    .feature-item {
        padding: var(--space-4);
        gap: var(--space-3);
    }

    .feature-icon-box {
        width: 44px;
        height: 44px;
    }

    .feature-emoji {
        font-size: 20px;
    }

    .feature-title {
        font-size: var(--text-sm);
    }

    .feature-desc {
        font-size: var(--text-xs);
    }

    .video-section {
        padding: 0 var(--space-5) var(--space-5);
    }

    .video-section-title ion-icon {
        font-size: 20px;
    }

    .video-section-title h3 {
        font-size: var(--text-base);
    }
}

/* Medium mobile devices */
@media (min-width: 481px) and (max-width: 767px) {
    main {
        padding: var(--space-4);
    }

    .hero-title {
        font-size: var(--text-5xl);
    }

    .hero-description {
        font-size: var(--text-lg);
    }

    .hero-actions {
        flex-direction: row;
    }

    .btn {
        width: auto;
    }

    .article-title {
        font-size: var(--text-3xl);
    }

    .project-img {
        height: 240px;
    }
}

