/* ===========================
   TAILWIND CONFIG & RESET
   =========================== */

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

/* ===========================
   CSS VARIABLES - THEMES
   =========================== */

:root {
    --primary-bg: #000000;
    --primary-bg-rgb: 0, 0, 0;
    --secondary-bg: #0a0a0a;
    --tertiary-bg: #1f1f1f;
    --quaternary-bg: #2d2d2d;
    --primary-text: #ffffff;
    --secondary-text: #a3a3a3;
    --tertiary-text: #666666;
    --accent-color: #ffffff;
    --border-color: rgba(255, 255, 255, 0.1);
    --hover-bg: rgba(255, 255, 255, 0.05);
    --shadow-light: rgba(255, 255, 255, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.5);
    --gradient-primary: linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
    --gradient-secondary: linear-gradient(135deg, #0a0a0a 0%, #000000 100%);
    --gradient-accent: linear-gradient(135deg, #ffffff 0%, #a3a3a3 100%);

    /* Cursor variables */
    --cursor-size: 12px;
    --cursor-opacity: 1;
    --follower-size: 36px;

    /* Animation speed variables */
    --animation-speed: 1;
    --parallax-intensity: 1;
}

/* Improved GitHub Theme */
[data-theme="github"] {
    --primary-bg: #0d1117;
    --primary-bg-rgb: 13, 17, 23;
    --secondary-bg: #161b22;
    --tertiary-bg: #21262d;
    --quaternary-bg: #30363d;
    --primary-text: #f0f6fc;
    --secondary-text: #8b949e;
    --tertiary-text: #6e7681;
    --accent-color: #58a6ff;
    --border-color: rgba(48, 54, 61, 0.4);
    --hover-bg: rgba(88, 166, 255, 0.1);
    --shadow-light: rgba(88, 166, 255, 0.3);
    --shadow-dark: rgba(13, 17, 23, 0.8);
    --gradient-primary: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    --gradient-secondary: linear-gradient(135deg, #161b22 0%, #21262d 100%);
    --gradient-accent: linear-gradient(135deg, #58a6ff 0%, #79c0ff 100%);
}

/* Enhanced Discord Theme */
[data-theme="discord"] {
    --primary-bg: #36393f;
    --primary-bg-rgb: 54, 57, 63;
    --secondary-bg: #2f3136;
    --tertiary-bg: #40444b;
    --quaternary-bg: #4f545c;
    --primary-text: #dcddde;
    --secondary-text: #b9bbbe;
    --tertiary-text: #72767d;
    --accent-color: #5865f2;
    --border-color: rgba(79, 84, 92, 0.6);
    --hover-bg: rgba(88, 101, 242, 0.15);
    --shadow-light: rgba(88, 101, 242, 0.4);
    --shadow-dark: rgba(47, 49, 54, 0.6);
    --gradient-primary: linear-gradient(135deg, #36393f 0%, #2f3136 100%);
    --gradient-secondary: linear-gradient(135deg, #2f3136 0%, #40444b 100%);
    --gradient-accent: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
}

/* Enhanced Spotify Theme */
[data-theme="spotify"] {
    --primary-bg: #121212;
    --primary-bg-rgb: 18, 18, 18;
    --secondary-bg: #181818;
    --tertiary-bg: #282828;
    --quaternary-bg: #3e3e3e;
    --primary-text: #ffffff;
    --secondary-text: #b3b3b3;
    --tertiary-text: #6a6a6a;
    --accent-color: #1db954;
    --border-color: rgba(40, 40, 40, 0.8);
    --hover-bg: rgba(29, 185, 84, 0.1);
    --shadow-light: rgba(29, 185, 84, 0.4);
    --shadow-dark: rgba(18, 18, 18, 0.9);
    --gradient-primary: linear-gradient(135deg, #121212 0%, #181818 100%);
    --gradient-secondary: linear-gradient(135deg, #181818 0%, #282828 100%);
    --gradient-accent: linear-gradient(135deg, #1db954 0%, #1ed760 100%);
}

/* Enhanced VS Code Theme */
[data-theme="vscode"] {
    --primary-bg: #1e1e1e;
    --primary-bg-rgb: 30, 30, 30;
    --secondary-bg: #252526;
    --tertiary-bg: #2d2d30;
    --quaternary-bg: #3e3e42;
    --primary-text: #cccccc;
    --secondary-text: #9cdcfe;
    --tertiary-text: #808080;
    --accent-color: #007acc;
    --border-color: rgba(62, 62, 66, 0.6);
    --hover-bg: rgba(0, 122, 204, 0.15);
    --shadow-light: rgba(0, 122, 204, 0.4);
    --shadow-dark: rgba(30, 30, 30, 0.8);
    --gradient-primary: linear-gradient(135deg, #1e1e1e 0%, #252526 100%);
    --gradient-secondary: linear-gradient(135deg, #252526 0%, #2d2d30 100%);
    --gradient-accent: linear-gradient(135deg, #007acc 0%, #0098ff 100%);
}

/* New Ocean Theme */
[data-theme="ocean"] {
    --primary-bg: #0a1628;
    --primary-bg-rgb: 10, 22, 40;
    --secondary-bg: #0f1e2e;
    --tertiary-bg: #1e3a56;
    --quaternary-bg: #2d5a87;
    --primary-text: #f0f9ff;
    --secondary-text: #a8c5e2;
    --tertiary-text: #5a82a8;
    --accent-color: #00bcd4;
    --border-color: rgba(0, 188, 212, 0.2);
    --hover-bg: rgba(0, 188, 212, 0.1);
    --shadow-light: rgba(0, 188, 212, 0.3);
    --shadow-dark: rgba(10, 22, 40, 0.8);
    --gradient-primary: linear-gradient(135deg, #0a1628 0%, #0f1e2e 100%);
    --gradient-secondary: linear-gradient(135deg, #0f1e2e 0%, #1e3a56 100%);
    --gradient-accent: linear-gradient(135deg, #00bcd4 0%, #26c6da 100%);
}

/* New JoJo's Theme */
[data-theme="jojos"] {
    --primary-bg: #EEC9FD;
    --primary-bg-rgb: 238, 201, 253;
    --secondary-bg: #f4d7fe;
    --tertiary-bg: #e8b8fc;
    --quaternary-bg: #dda4fb;
    --primary-text: #4a1a5f;
    --secondary-text: #6b2d7e;
    --tertiary-text: #8b4a9d;
    --accent-color: #E091FE;
    --border-color: rgba(224, 145, 254, 0.3);
    --hover-bg: rgba(224, 145, 254, 0.15);
    --shadow-light: rgba(224, 145, 254, 0.4);
    --shadow-dark: rgba(74, 26, 95, 0.3);
    --gradient-primary: linear-gradient(135deg, #EEC9FD 0%, #f4d7fe 100%);
    --gradient-secondary: linear-gradient(135deg, #f4d7fe 0%, #e8b8fc 100%);
    --gradient-accent: linear-gradient(135deg, #E091FE 0%, #da7dfc 100%);
}

/* ===========================
   GLOBAL STYLES
   =========================== */

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-size: 16px;
    /* Base font size for rem calculations */
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-bg);
    color: var(--primary-text);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    transition: all 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile device optimization */
body.mobile-device {
    cursor: auto;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

body.mobile-device * {
    cursor: auto !important;
}

/* Responsive Container */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

@media (min-width: 480px) {
    .section-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 768px) {
    .section-container {
        padding: 0 2.5rem;
    }
}

@media (min-width: 1024px) {
    .section-container {
        padding: 0 3rem;
    }
}

/* Tailwind Configuration */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* ===========================
   CUSTOM CURSOR (MOBILE OPTIMIZED)
   =========================== */

.custom-cursor {
    position: fixed;
    width: var(--cursor-size);
    height: var(--cursor-size);
    background: var(--primary-text);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease, background-color 0.3s ease, width 0.2s ease, height 0.2s ease;
    mix-blend-mode: difference;
    opacity: var(--cursor-opacity);
    display: none;
    /* Hidden by default, shown on desktop */
}

.cursor-follower {
    position: fixed;
    width: var(--follower-size);
    height: var(--follower-size);
    border: 2px solid var(--primary-text);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    opacity: calc(var(--cursor-opacity) * 0.6);
    display: none;
    /* Hidden by default, shown on desktop */
}

/* Show cursors on larger screens only */
@media (min-width: 1024px) and (pointer: fine) {

    .custom-cursor,
    .cursor-follower {
        display: block;
    }

    body:not(.mobile-device) {
        cursor: none;
    }
}

/* ===========================
   LOADING SCREEN
   =========================== */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    transition: opacity 1s ease, visibility 1s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-container {
    text-align: center;
    position: relative;
}

.loading-logo {
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: 900;
    letter-spacing: -0.1em;
    margin-bottom: 1.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: loading-pulse 2s ease-in-out infinite;
}

.loading-text {
    font-size: clamp(0.8rem, 2vw, 1rem);
    font-weight: 300;
    letter-spacing: 0.4em;
    color: var(--tertiary-text);
    margin-bottom: 2rem;
    animation: loading-fade 2s ease-in-out infinite;
}

@media (min-width: 768px) {
    .loading-logo {
        margin-bottom: 2rem;
    }

    .loading-text {
        margin-bottom: 3rem;
    }
}

.loading-progress {
    width: min(300px, 85vw);
    height: 2px;
    background: var(--tertiary-bg);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

.loading-bar {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 2px;
    animation: loading-progress 4s ease-in-out;
    transform: translateX(-100%);
}

.loading-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.loading-dot {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-text);
    border-radius: 50%;
    animation: float-dots 4s linear infinite;
}

.loading-dot:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.loading-dot:nth-child(2) {
    top: 80%;
    right: 15%;
    animation-delay: 1s;
}

.loading-dot:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 2s;
}

.loading-dot:nth-child(4) {
    top: 50%;
    right: 25%;
    animation-delay: 0.5s;
}

.loading-dot:nth-child(5) {
    bottom: 60%;
    left: 70%;
    animation-delay: 1.5s;
}

/* ===========================
   NAVIGATION (MOBILE OPTIMIZED)
   =========================== */

.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.8rem 0;
    background: rgba(var(--primary-bg-rgb), 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .nav-bar {
        padding: 1.2rem 0;
    }
}

.nav-bar.scrolled {
    background: rgba(var(--primary-bg-rgb), 0.98);
    padding: 0.6rem 0;
    box-shadow: 0 4px 20px var(--shadow-dark);
    backdrop-filter: blur(40px);
}

@media (min-width: 768px) {
    .nav-bar.scrolled {
        padding: 0.8rem 0;
    }
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (min-width: 480px) {
    .nav-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 768px) {
    .nav-container {
        padding: 0 2.5rem;
    }
}

.logo-container {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 900;
    letter-spacing: -0.1em;
    text-decoration: none;
    color: var(--primary-text);
    transition: all 0.3s ease;
    z-index: 1001;
    position: relative;
    touch-action: manipulation;
}

.logo-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.logo-container:hover .logo-text,
.logo-container:active .logo-text {
    background: var(--accent-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.05);
}

.nav-links {
    display: none;
    gap: 2rem;
    list-style: none;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 2.5rem;
    }
}

.nav-link {
    color: var(--secondary-text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.6rem 0;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    touch-action: manipulation;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link:active::after {
    width: 100%;
}

/* Mobile Menu (Enhanced) */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--primary-text);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
    border-radius: 1px;
}

@media (min-width: 480px) {
    .mobile-menu-btn span {
        width: 25px;
        height: 3px;
    }
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(var(--primary-bg-rgb), 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    overflow: hidden;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
    padding: 2rem;
}

.mobile-nav-links li {
    margin: 1.5rem 0;
    opacity: 0;
    transform: translateY(20px);
    animation: mobile-nav-fade-in 0.5s ease forwards;
}

.mobile-menu.active .mobile-nav-links li:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-menu.active .mobile-nav-links li:nth-child(2) {
    animation-delay: 0.2s;
}

.mobile-menu.active .mobile-nav-links li:nth-child(3) {
    animation-delay: 0.3s;
}

.mobile-menu.active .mobile-nav-links li:nth-child(4) {
    animation-delay: 0.4s;
}

.mobile-menu.active .mobile-nav-links li:nth-child(5) {
    animation-delay: 0.5s;
}

@media (min-width: 480px) {
    .mobile-nav-links li {
        margin: 2rem 0;
    }
}

.mobile-nav-link {
    color: var(--primary-text);
    text-decoration: none;
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    color: var(--accent-color);
    background: var(--hover-bg);
    transform: scale(1.05);
}

/* ===========================
   HERO SECTION (MOBILE OPTIMIZED)
   =========================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 30% 50%, var(--secondary-bg) 0%, var(--primary-bg) 70%);
    padding: 4rem 1rem 2rem;
}

@media (min-width: 480px) {
    .hero-section {
        padding: 5rem 1.5rem 2rem;
    }
}

@media (min-width: 768px) {
    .hero-section {
        padding: 6rem 2.5rem 2rem;
    }
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    display: block !important; /* Always show */
    /* Hidden on mobile by default */
}


.hero-content {
    max-width: 1000px;
    z-index: 2;
    position: relative;
    width: 100%;
    padding: 0 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 10vw, 8rem);
    font-weight: 900;
    line-height: 0.85;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: slideUp 1s ease 0.5s forwards;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.05em;
    position: relative;
    padding: 0.5rem 0;
}

@media (min-width: 480px) {
    .hero-title {
        margin-bottom: 2rem;
        padding: 1rem 0;
    }
}

/* Name spacing for hero title */
.name-spacing {
    display: inline-block;
    width: 0.1em;
}

@media (min-width: 768px) {
    .name-spacing {
        width: 0.15em;
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 4vw, 2rem);
    font-weight: 300;
    color: var(--secondary-text);
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: slideUp 1s ease 0.7s forwards;
    letter-spacing: 0.05em;
}

@media (min-width: 480px) {
    .hero-subtitle {
        margin-bottom: 3.5rem;
    }
}

.hero-cta {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--accent-color);
    color: var(--primary-bg);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    opacity: 0;
    animation: slideUp 1s ease 0.9s forwards;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 32px var(--shadow-light);
    font-size: 0.9rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 480px) {
    .hero-cta {
        padding: 1rem 3rem;
        font-size: 0.95rem;
    }
}

.cta-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--hover-bg), transparent);
    transition: left 0.5s ease;
}

.hero-cta:hover .cta-shimmer,
.hero-cta:active .cta-shimmer {
    left: 100%;
}

.hero-cta:hover,
.hero-cta:active {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px var(--shadow-light);
}

/* ===========================
   FLOATING ANIMATIONS (MOBILE OPTIMIZED)
   =========================== */

.floating-element {
    animation-duration: calc(var(--animation-speed) * 25s);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
@media (min-width: 768px) {
    .floating-elements {
        display: block !important; /* Show on larger screens */
    }
}
.floating-code {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    color: var(--border-color);
    font-size: 0.7rem;
    animation-name: float-code;
    pointer-events: none;
}

@media (min-width: 768px) {
    .floating-code {
        font-size: 0.8rem;
    }
}

.floating-code:nth-child(1) {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.floating-code:nth-child(2) {
    top: 70%;
    right: 15%;
    animation-delay: 8s;
}

.floating-code:nth-child(3) {
    bottom: 25%;
    left: 20%;
    animation-delay: 15s;
}

.floating-code:nth-child(4) {
    top: 40%;
    right: 25%;
    animation-delay: 5s;
}

.floating-code:nth-child(5) {
    top: 80%;
    left: 60%;
    animation-delay: 12s;
}

.floating-code:nth-child(6) {
    top: 30%;
    left: 70%;
    animation-delay: 3s;
}

.floating-code:nth-child(7) {
    top: 60%;
    right: 10%;
    animation-delay: 18s;
}

.floating-code:nth-child(8) {
    bottom: 40%;
    right: 30%;
    animation-delay: 22s;
}

.geometric-shape {
    position: absolute;
    border: 1px solid var(--border-color);
    animation-name: float;
    animation-duration: calc(var(--animation-speed) * 35s);
}

.shape-1 {
    width: 120px;
    height: 120px;
    top: 20%;
    left: 5%;
    border-radius: 50%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 10%;
    animation-delay: 10s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 35%;
    left: 15%;
    border-radius: 50%;
    animation-delay: 20s;
}

.shape-4 {
    width: 80px;
    height: 80px;
    top: 45%;
    right: 20%;
    animation-delay: 25s;
}

@media (min-width: 768px) {
    .shape-1 {
        width: 150px;
        height: 150px;
    }

    .shape-2 {
        width: 80px;
        height: 80px;
    }

    .shape-3 {
        width: 120px;
        height: 120px;
    }

    .shape-4 {
        width: 100px;
        height: 100px;
    }
}

.floating-tech-icon {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    color: var(--border-color);
    font-size: 0.9rem;
    animation-name: float-tech;
    animation-duration: calc(var(--animation-speed) * 20s);
    pointer-events: none;
}

@media (min-width: 768px) {
    .floating-tech-icon {
        font-size: 1rem;
    }
}

.tech-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.tech-2 {
    top: 80%;
    right: 10%;
    animation-delay: 5s;
}

.tech-3 {
    bottom: 20%;
    left: 15%;
    animation-delay: 10s;
}

.tech-4 {
    top: 30%;
    right: 20%;
    animation-delay: 3s;
}

.tech-5 {
    top: 50%;
    left: 8%;
    animation-delay: 12s;
}

.tech-6 {
    bottom: 40%;
    right: 12%;
    animation-delay: 16s;
}

.floating-symbols {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    color: var(--border-color);
    font-size: 1rem;
    animation-name: float-symbols;
    animation-duration: calc(var(--animation-speed) * 30s);
    pointer-events: none;
}

@media (min-width: 768px) {
    .floating-symbols {
        font-size: 1.2rem;
    }
}

.symbol-1 {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.symbol-2 {
    top: 75%;
    right: 12%;
    animation-delay: 10s;
}

.symbol-3 {
    bottom: 25%;
    left: 20%;
    animation-delay: 20s;
}

.symbol-4 {
    top: 45%;
    right: 25%;
    animation-delay: 5s;
}

.symbol-5 {
    top: 60%;
    left: 70%;
    animation-delay: 15s;
}

.symbol-6 {
    bottom: 50%;
    left: 50%;
    animation-delay: 25s;
}

.symbol-7 {
    top: 25%;
    right: 40%;
    animation-delay: 18s;
}

.floating-contact-icons {
    position: absolute;
    font-size: 1.2rem;
    color: var(--border-color);
    animation-name: float-contact;
    animation-duration: calc(var(--animation-speed) * 25s);
    pointer-events: none;
}

@media (min-width: 768px) {
    .floating-contact-icons {
        font-size: 1.5rem;
    }
}

.contact-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.contact-2 {
    top: 70%;
    right: 15%;
    animation-delay: 8s;
}

.contact-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 15s;
}

.contact-4 {
    top: 40%;
    right: 30%;
    animation-delay: 20s;
}

.contact-5 {
    bottom: 50%;
    right: 8%;
    animation-delay: 12s;
}

/* ===========================
   ENHANCED FLOATING EMOJI ELEMENTS
   =========================== */

.floating-emoji {
    position: absolute;
    font-size: 1.5rem;
    animation-name: float-emoji;
    animation-duration: calc(var(--animation-speed) * 35s);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    pointer-events: none;
    opacity: 0.9;
    filter: blur(0.5px);

}
@media (min-width: 768px) {
    .floating-emoji {
        font-size: 1.5rem;
    }
}


/* Default theme emojis */
.floating-emoji.default-1 { top: 8%; left: 12%; animation-delay: 0s; }
.floating-emoji.default-2 { top: 25%; right: 8%; animation-delay: 7s; }
.floating-emoji.default-3 { top: 65%; left: 6%; animation-delay: 14s; }
.floating-emoji.default-4 { bottom: 35%; right: 15%; animation-delay: 3s; }
.floating-emoji.default-5 { top: 42%; left: 85%; animation-delay: 11s; }
.floating-emoji.default-6 { bottom: 15%; left: 25%; animation-delay: 18s; }
.floating-emoji.default-7 { top: 55%; right: 35%; animation-delay: 5s; }
.floating-emoji.default-8 { bottom: 60%; left: 70%; animation-delay: 21s; }
.floating-emoji.default-9 { top: 18%; left: 60%; animation-delay: 9s; }
.floating-emoji.default-10 { bottom: 25%; right: 45%; animation-delay: 16s; }

/* GitHub theme emojis */
.floating-emoji.github-1 { top: 12%; left: 8%; animation-delay: 0s; }
.floating-emoji.github-2 { top: 35%; right: 12%; animation-delay: 6s; }
.floating-emoji.github-3 { top: 75%; left: 10%; animation-delay: 12s; }
.floating-emoji.github-4 { bottom: 40%; right: 8%; animation-delay: 4s; }
.floating-emoji.github-5 { top: 50%; left: 80%; animation-delay: 10s; }
.floating-emoji.github-6 { bottom: 20%; left: 30%; animation-delay: 17s; }
.floating-emoji.github-7 { top: 65%; right: 40%; animation-delay: 8s; }
.floating-emoji.github-8 { bottom: 55%; left: 65%; animation-delay: 20s; }
.floating-emoji.github-9 { top: 22%; left: 55%; animation-delay: 13s; }
.floating-emoji.github-10 { bottom: 30%; right: 50%; animation-delay: 15s; }

/* Discord theme emojis */
.floating-emoji.discord-1 { top: 10%; left: 15%; animation-delay: 0s; }
.floating-emoji.discord-2 { top: 30%; right: 10%; animation-delay: 5s; }
.floating-emoji.discord-3 { top: 70%; left: 8%; animation-delay: 11s; }
.floating-emoji.discord-4 { bottom: 45%; right: 18%; animation-delay: 7s; }
.floating-emoji.discord-5 { top: 48%; left: 75%; animation-delay: 14s; }
.floating-emoji.discord-6 { bottom: 18%; left: 35%; animation-delay: 19s; }
.floating-emoji.discord-7 { top: 58%; right: 30%; animation-delay: 3s; }
.floating-emoji.discord-8 { bottom: 52%; left: 60%; animation-delay: 22s; }
.floating-emoji.discord-9 { top: 28%; left: 50%; animation-delay: 16s; }
.floating-emoji.discord-10 { bottom: 35%; right: 55%; animation-delay: 9s; }

/* Spotify theme emojis */
.floating-emoji.spotify-1 { top: 15%; left: 10%; animation-delay: 0s; }
.floating-emoji.spotify-2 { top: 40%; right: 15%; animation-delay: 8s; }
.floating-emoji.spotify-3 { top: 78%; left: 12%; animation-delay: 16s; }
.floating-emoji.spotify-4 { bottom: 38%; right: 12%; animation-delay: 4s; }
.floating-emoji.spotify-5 { top: 52%; left: 78%; animation-delay: 12s; }
.floating-emoji.spotify-6 { bottom: 22%; left: 28%; animation-delay: 20s; }
.floating-emoji.spotify-7 { top: 62%; right: 25%; animation-delay: 6s; }
.floating-emoji.spotify-8 { bottom: 58%; left: 58%; animation-delay: 24s; }
.floating-emoji.spotify-9 { top: 32%; left: 48%; animation-delay: 10s; }
.floating-emoji.spotify-10 { bottom: 28%; right: 48%; animation-delay: 18s; }

/* VS Code theme emojis */
.floating-emoji.vscode-1 { top: 18%; left: 12%; animation-delay: 0s; }
.floating-emoji.vscode-2 { top: 38%; right: 18%; animation-delay: 7s; }
.floating-emoji.vscode-3 { top: 72%; left: 15%; animation-delay: 14s; }
.floating-emoji.vscode-4 { bottom: 42%; right: 20%; animation-delay: 5s; }
.floating-emoji.vscode-5 { top: 55%; left: 82%; animation-delay: 11s; }
.floating-emoji.vscode-6 { bottom: 25%; left: 32%; animation-delay: 18s; }
.floating-emoji.vscode-7 { top: 68%; right: 32%; animation-delay: 3s; }
.floating-emoji.vscode-8 { bottom: 62%; left: 62%; animation-delay: 21s; }
.floating-emoji.vscode-9 { top: 25%; left: 52%; animation-delay: 15s; }
.floating-emoji.vscode-10 { bottom: 32%; right: 42%; animation-delay: 9s; }

/* Ocean theme emojis */
.floating-emoji.ocean-1 { top: 14%; left: 14%; animation-delay: 0s; }
.floating-emoji.ocean-2 { top: 45%; right: 14%; animation-delay: 6s; }
.floating-emoji.ocean-3 { top: 68%; left: 18%; animation-delay: 13s; }
.floating-emoji.ocean-4 { bottom: 48%; right: 16%; animation-delay: 8s; }
.floating-emoji.ocean-5 { top: 58%; left: 76%; animation-delay: 15s; }
.floating-emoji.ocean-6 { bottom: 28%; left: 26%; animation-delay: 22s; }
.floating-emoji.ocean-7 { top: 75%; right: 28%; animation-delay: 4s; }
.floating-emoji.ocean-8 { bottom: 65%; left: 56%; animation-delay: 19s; }
.floating-emoji.ocean-9 { top: 35%; left: 46%; animation-delay: 11s; }
.floating-emoji.ocean-10 { bottom: 38%; right: 38%; animation-delay: 17s; }

/* JoJo's theme emojis - only pink bow */
.floating-emoji.jojos-1 { top: 8%; left: 6%; animation-delay: 0s; }
.floating-emoji.jojos-2 { top: 22%; right: 8%; animation-delay: 4s; }
.floating-emoji.jojos-3 { top: 38%; left: 4%; animation-delay: 8s; }
.floating-emoji.jojos-4 { top: 55%; right: 6%; animation-delay: 12s; }
.floating-emoji.jojos-5 { top: 72%; left: 8%; animation-delay: 16s; }
.floating-emoji.jojos-6 { bottom: 35%; right: 4%; animation-delay: 2s; }
.floating-emoji.jojos-7 { bottom: 18%; left: 10%; animation-delay: 6s; }
.floating-emoji.jojos-8 { top: 45%; left: 85%; animation-delay: 10s; }
.floating-emoji.jojos-9 { bottom: 52%; left: 75%; animation-delay: 14s; }
.floating-emoji.jojos-10 { top: 65%; right: 35%; animation-delay: 18s; }
.floating-emoji.jojos-11 { bottom: 25%; right: 65%; animation-delay: 3s; }
.floating-emoji.jojos-12 { top: 82%; left: 40%; animation-delay: 7s; }
.floating-emoji.jojos-13 { bottom: 45%; left: 45%; animation-delay: 11s; }
.floating-emoji.jojos-14 { top: 28%; right: 25%; animation-delay: 15s; }
.floating-emoji.jojos-15 { bottom: 62%; right: 50%; animation-delay: 19s; }

/* ===========================
   SECTIONS (MOBILE OPTIMIZED)
   =========================== */

.about-section {
    padding: 4rem 0;
    background: var(--gradient-primary);
    position: relative;
}

@media (min-width: 768px) {
    .about-section {
        padding: 6rem 0;
    }
}

@media (min-width: 1024px) {
    .about-section {
        padding: 8rem 0;
    }
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.012'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.skills-section {
    padding: 4rem 0;
    background: var(--primary-bg);
    position: relative;
}

@media (min-width: 768px) {
    .skills-section {
        padding: 6rem 0;
    }
}

@media (min-width: 1024px) {
    .skills-section {
        padding: 8rem 0;
    }
}

.projects-section {
    padding: 4rem 0;
    background: var(--gradient-primary);
    position: relative;
}

@media (min-width: 768px) {
    .projects-section {
        padding: 6rem 0;
    }
}

@media (min-width: 1024px) {
    .projects-section {
        padding: 8rem 0;
    }
}

.projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.012'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.experience-section {
    padding: 4rem 0;
    background: var(--primary-bg);
    position: relative;
}

@media (min-width: 768px) {
    .experience-section {
        padding: 6rem 0;
    }
}

@media (min-width: 1024px) {
    .experience-section {
        padding: 8rem 0;
    }
}

.contact-section {
    padding: 4rem 0;
    background: var(--gradient-primary);
    text-align: center;
    position: relative;
}

@media (min-width: 768px) {
    .contact-section {
        padding: 6rem 0;
    }
}

@media (min-width: 1024px) {
    .contact-section {
        padding: 8rem 0;
    }
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.012'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.section-title {
    font-size: clamp(1.8rem, 8vw, 4rem);
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    position: relative;
    padding: 0.5rem 0;
}

@media (min-width: 768px) {
    .section-title {
        margin-bottom: 3rem;
    }
}

@media (min-width: 1024px) {
    .section-title {
        margin-bottom: 4rem;
    }
}

.section-decorator {
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: var(--border-color);
    font-weight: 400;
    display: none;
    /* Hidden on mobile */
}

@media (min-width: 768px) {
    .section-decorator {
        display: block;
        top: -1rem;
        font-size: 1.5rem;
    }
}

/* ===========================
   ABOUT SECTION (MOBILE OPTIMIZED)
   =========================== */

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--secondary-text);
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .about-text {
        font-size: 1.1rem;
        line-height: 1.8;
        margin-bottom: 3rem;
    }
}

.about-text h3 {
    color: var(--primary-text);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

@media (min-width: 768px) {
    .about-text h3 {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
        margin-top: 2.5rem;
    }
}

.about-text h3:first-child {
    margin-top: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    position: relative;
}

@media (min-width: 480px) {
    .stats-grid {
        gap: 1.5rem;
    }
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
        margin-top: 3rem;
        padding: 3rem 0;
    }
}

@media (min-width: 1024px) {
    .stats-grid {
        gap: 3rem;
        margin-top: 4rem;
    }
}

.stat-item {
    text-align: center;
    position: relative;
    padding: 1rem;
    background: var(--gradient-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--shadow-dark);
    touch-action: manipulation;
}

@media (min-width: 768px) {
    .stat-item {
        padding: 1.5rem;
        border-radius: 16px;
    }
}

.stat-item:hover,
.stat-item:active {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 40px var(--shadow-dark);
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    display: block;
    filter: grayscale(1);
    transition: filter 0.3s ease;
}

@media (min-width: 768px) {
    .stat-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
}

.stat-item:hover .stat-icon,
.stat-item:active .stat-icon {
    filter: grayscale(0);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-text);
    display: block;
    margin-bottom: 0.4rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
}

@media (min-width: 1024px) {
    .stat-number {
        font-size: 2.5rem;
    }
}

.stat-label {
    font-size: 0.8rem;
    color: var(--primary-text);
    letter-spacing: 0.02em;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

@media (min-width: 768px) {
    .stat-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
}

@media (min-width: 1024px) {
    .stat-label {
        font-size: 1rem;
    }
}

.stat-description {
    font-size: 0.7rem;
    color: var(--tertiary-text);
    letter-spacing: 0.01em;
    font-style: italic;
}

@media (min-width: 768px) {
    .stat-description {
        font-size: 0.75rem;
    }
}

@media (min-width: 1024px) {
    .stat-description {
        font-size: 0.8rem;
    }
}

/* ===========================
   SKILLS SECTION (MOBILE OPTIMIZED)
   =========================== */

.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        margin-top: 3rem;
    }
}

@media (min-width: 1024px) {
    .skills-grid {
        gap: 2.5rem;
        margin-top: 4rem;
    }
}

.skill-card {
    background: var(--gradient-secondary);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px var(--shadow-dark);
    touch-action: manipulation;
}

@media (min-width: 768px) {
    .skill-card {
        padding: 2rem;
        border-radius: 20px;
    }
}

@media (min-width: 1024px) {
    .skill-card {
        padding: 3rem;
        border-radius: 24px;
    }
}

.skill-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--hover-bg), transparent);
    transition: left 0.6s ease;
}

.skill-card:hover .skill-shimmer,
.skill-card:active .skill-shimmer {
    left: 100%;
}

.skill-card:hover,
.skill-card:active {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 16px 48px var(--shadow-dark);
}

@media (min-width: 1024px) {
    .skill-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 20px 60px var(--shadow-dark);
    }
}

.skill-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
    filter: grayscale(1);
}

@media (min-width: 768px) {
    .skill-icon {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .skill-icon {
        font-size: 3rem;
    }
}

.skill-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    letter-spacing: -0.01em;
    color: var(--primary-text);
}

@media (min-width: 768px) {
    .skill-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
}

@media (min-width: 1024px) {
    .skill-title {
        font-size: 1.4rem;
    }
}

.skill-desc {
    color: var(--tertiary-text);
    line-height: 1.6;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .skill-desc {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .skill-desc {
        font-size: 0.95rem;
    }
}

.skill-progress-container {
    width: 100%;
    height: 4px;
    background: var(--tertiary-bg);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 1rem;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 2px;
    width: 0;
    transition: width 2s ease-out;
    transition-delay: 0.5s;
}

.animated .skill-progress.frontend {
    width: 90%;
}

.animated .skill-progress.backend {
    width: 85%;
}

.animated .skill-progress.tools {
    width: 88%;
}

.animated .skill-progress.mobile {
    width: 75%;
}

/* ===========================
   PROJECTS SECTION (MOBILE OPTIMIZED)
   =========================== */

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
        margin-top: 3rem;
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        gap: 3rem;
        margin-top: 4rem;
    }
}

@media (min-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3.5rem;
    }
}

.project-card {
    background: var(--gradient-secondary);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    box-shadow: 0 8px 32px var(--shadow-dark);
    touch-action: manipulation;
}

@media (min-width: 768px) {
    .project-card {
        border-radius: 20px;
    }
}

@media (min-width: 1024px) {
    .project-card {
        border-radius: 24px;
    }
}

.project-card:hover,
.project-card:active {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 16px 48px var(--shadow-dark);
}

@media (min-width: 1024px) {
    .project-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 24px 80px var(--shadow-dark);
    }
}

.project-image {
    height: 160px;
    background: linear-gradient(135deg, var(--tertiary-bg) 0%, var(--quaternary-bg) 50%, var(--tertiary-bg) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 480px) {
    .project-image {
        height: 180px;
    }
}

@media (min-width: 768px) {
    .project-image {
        height: 200px;
    }
}

@media (min-width: 1024px) {
    .project-image {
        height: 250px;
    }
}

.project-mockup {
    width: 85%;
    height: 75%;
    background: var(--secondary-bg);
    border-radius: 6px;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .project-mockup {
        width: 80%;
        height: 70%;
        border-radius: 8px;
    }
}

.mockup-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 16px;
    background: var(--tertiary-bg);
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .mockup-header {
        height: 20px;
    }
}

.mockup-dots {
    position: absolute;
    top: 4px;
    left: 6px;
    font-size: 5px;
    color: var(--secondary-text);
    letter-spacing: 1.5px;
}

@media (min-width: 768px) {
    .mockup-dots {
        top: 6px;
        left: 8px;
        font-size: 6px;
        letter-spacing: 2px;
    }
}

.project-code-preview {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.4rem;
    color: var(--secondary-text);
    line-height: 1.1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (min-width: 768px) {
    .project-code-preview {
        bottom: 10px;
        left: 10px;
        right: 10px;
        font-size: 0.5rem;
        line-height: 1.2;
    }
}

@media (min-width: 1024px) {
    .project-code-preview {
        font-size: 0.6rem;
    }
}

.project-card:hover .project-code-preview,
.project-card:active .project-code-preview {
    opacity: 1;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--hover-bg), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay,
.project-card:active .project-overlay {
    opacity: 1;
}

.project-content {
    padding: 1.2rem;
}

@media (min-width: 768px) {
    .project-content {
        padding: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .project-content {
        padding: 2rem;
    }
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    letter-spacing: -0.01em;
    color: var(--primary-text);
}

@media (min-width: 768px) {
    .project-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
}

@media (min-width: 1024px) {
    .project-title {
        font-size: 1.4rem;
    }
}

.project-desc {
    color: var(--tertiary-text);
    margin-bottom: 1.2rem;
    line-height: 1.6;
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .project-desc {
        margin-bottom: 1.5rem;
        line-height: 1.7;
        font-size: 0.9rem;
    }
}

@media (min-width: 1024px) {
    .project-desc {
        font-size: 0.95rem;
    }
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
}

@media (min-width: 768px) {
    .project-tech {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .project-tech {
        gap: 0.6rem;
    }
}

.tech-tag {
    background: var(--hover-bg);
    color: var(--secondary-text);
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    touch-action: manipulation;
}

@media (min-width: 768px) {
    .tech-tag {
        padding: 0.3rem 0.7rem;
        border-radius: 14px;
        font-size: 0.7rem;
    }
}

@media (min-width: 1024px) {
    .tech-tag {
        padding: 0.4rem 0.8rem;
        border-radius: 16px;
        font-size: 0.75rem;
    }
}

.tech-tag:hover,
.tech-tag:active {
    background: var(--accent-color);
    color: var(--primary-bg);
}

.project-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    touch-action: manipulation;
}

@media (min-width: 768px) {
    .project-link {
        gap: 0.5rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 1024px) {
    .project-link {
        gap: 0.6rem;
        font-size: 0.95rem;
    }
}

.project-link:hover,
.project-link:active {
    color: var(--primary-text);
    transform: translateX(4px);
}

/* ===========================
   EXPERIENCE SECTION (MOBILE OPTIMIZED)
   =========================== */

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

@media (min-width: 768px) {
    .timeline {
        margin: 3rem auto 0;
    }
}

@media (min-width: 1024px) {
    .timeline {
        margin: 4rem auto 0;
    }
}

.timeline-line {
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--tertiary-bg) 0%, var(--accent-color) 50%, var(--tertiary-bg) 100%);
}

@media (min-width: 768px) {
    .timeline-line {
        left: 50%;
        transform: translateX(-50%);
    }
}

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
}

@media (min-width: 768px) {
    .timeline-item {
        margin-bottom: 3rem;
    }
}

@media (min-width: 1024px) {
    .timeline-item {
        margin-bottom: 4rem;
    }
}

.timeline-content {
    background: var(--gradient-secondary);
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: calc(100% - 50px);
    margin-left: 50px;
    position: relative;
    box-shadow: 0 8px 32px var(--shadow-dark);
    transition: all 0.3s ease;
    touch-action: manipulation;
}

@media (min-width: 768px) {
    .timeline-content {
        padding: 1.5rem;
        border-radius: 16px;
        width: 45%;
        margin-left: 0;
    }

    .timeline-item:nth-child(even) .timeline-content {
        margin-left: auto;
    }
}

@media (min-width: 1024px) {
    .timeline-content {
        padding: 2rem;
        border-radius: 20px;
    }
}

.timeline-content:hover,
.timeline-content:active {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px var(--shadow-dark);
    border-color: var(--accent-color);
}

.timeline-dot {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 3px var(--primary-bg), 0 0 0 5px var(--accent-color);
    animation: timeline-pulse 3s ease-in-out infinite;
}

@media (min-width: 768px) {
    .timeline-dot {
        left: 50%;
        width: 14px;
        height: 14px;
        box-shadow: 0 0 0 4px var(--primary-bg), 0 0 0 6px var(--accent-color);
    }
}

@media (min-width: 1024px) {
    .timeline-dot {
        width: 16px;
        height: 16px;
    }
}

.timeline-icon {
    position: absolute;
    top: 50%;
    left: 45px;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: var(--secondary-text);
}

@media (min-width: 768px) {
    .timeline-icon {
        left: calc(50% + 25px);
        font-size: 1rem;
    }

    .timeline-item:nth-child(even) .timeline-icon {
        left: calc(50% - 45px);
    }
}

@media (min-width: 1024px) {
    .timeline-icon {
        left: calc(50% + 30px);
        font-size: 1.2rem;
    }

    .timeline-item:nth-child(even) .timeline-icon {
        left: calc(50% - 50px);
    }
}

.timeline-date {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .timeline-date {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
}

@media (min-width: 1024px) {
    .timeline-date {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }
}

.timeline-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
    color: var(--primary-text);
}

@media (min-width: 768px) {
    .timeline-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
}

@media (min-width: 1024px) {
    .timeline-title {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }
}

.timeline-company {
    color: var(--tertiary-text);
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
}

@media (min-width: 768px) {
    .timeline-company {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

@media (min-width: 1024px) {
    .timeline-company {
        font-size: 0.95rem;
    }
}

.timeline-desc {
    color: var(--secondary-text);
    line-height: 1.6;
    font-size: 0.8rem;
}

@media (min-width: 768px) {
    .timeline-desc {
        font-size: 0.85rem;
        line-height: 1.7;
    }
}

@media (min-width: 1024px) {
    .timeline-desc {
        font-size: 0.9rem;
    }
}

/* ===========================
   CONTACT SECTION (MOBILE OPTIMIZED)
   =========================== */

.contact-content {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    padding: 0 1rem;
}

.contact-terminal {
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: var(--accent-color);
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .contact-terminal {
        top: -2.5rem;
        font-size: 0.7rem;
    }
}

@media (min-width: 1024px) {
    .contact-terminal {
        top: -3rem;
        font-size: 0.8rem;
    }
}

.contact-text {
    font-size: 1rem;
    color: var(--secondary-text);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .contact-text {
        font-size: 1.1rem;
        margin-bottom: 3rem;
        line-height: 1.8;
    }
}

@media (min-width: 1024px) {
    .contact-text {
        font-size: 1.2rem;
        margin-bottom: 3.5rem;
    }
}

.contact-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    position: relative;
}

@media (min-width: 480px) {
    .contact-links {
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .contact-links {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }
}

.contact-link {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: transparent;
    color: var(--primary-text);
    text-decoration: none;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
    font-size: 0.8rem;
    width: 180px;
    text-align: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 480px) {
    .contact-link {
        padding: 0.8rem 1.8rem;
        font-size: 0.85rem;
        width: 200px;
    }
}

@media (min-width: 768px) {
    .contact-link {
        padding: 1rem 2rem;
        font-size: 0.9rem;
        width: auto;
    }
}

.contact-fill {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.contact-link:hover .contact-fill,
.contact-link:active .contact-fill {
    left: 0;
}

.contact-link:hover,
.contact-link:active {
    color: var(--primary-bg);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 36px var(--shadow-light);
}

/* ===========================
   BACK TO TOP BUTTON (MOBILE OPTIMIZED)
   =========================== */

.back-to-top {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: var(--primary-bg);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 4px 20px var(--shadow-light);
    transform: scale(0);
    transition: all 0.3s ease;
    z-index: 999;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 480px) {
    .back-to-top {
        width: 44px;
        height: 44px;
        font-size: 1rem;
        bottom: 1.2rem;
        left: 1.2rem;
    }
}

@media (min-width: 768px) {
    .back-to-top {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
        bottom: 1.5rem;
        left: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .back-to-top {
        bottom: 2rem;
        left: 2rem;
    }
}

.back-to-top.show {
    transform: scale(1);
}

.back-to-top:hover,
.back-to-top:active {
    transform: scale(1.1);
    box-shadow: 0 8px 30px var(--shadow-light);
}

.back-to-top-icon {
    transition: transform 0.3s ease;
}

.back-to-top:hover .back-to-top-icon,
.back-to-top:active .back-to-top-icon {
    transform: translateY(-2px);
}

/* ===========================
   SETTINGS PANEL (MOBILE OPTIMIZED & FIXED POSITIONING)
   =========================== */

.settings-panel {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1001;
}

@media (min-width: 480px) {
    .settings-panel {
        bottom: 1.2rem;
        right: 1.2rem;
    }
}

@media (min-width: 768px) {
    .settings-panel {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .settings-panel {
        bottom: 2rem;
        right: 2rem;
    }
}

.settings-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--primary-bg);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--shadow-light);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 480px) {
    .settings-button {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .settings-button {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
}

.settings-button:hover,
.settings-button:active {
    transform: scale(1.1) rotate(45deg);
    box-shadow: 0 8px 30px var(--shadow-light);
}

/* ENHANCED MOBILE-FIRST SETTINGS MENU */
.settings-menu {
    position: fixed;
    bottom: 70px;
    /* Fixed higher positioning from button */
    right: 0.5rem;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: calc(100vw - 1rem);
    max-width: 360px;
    height: 65vh;
    /* Optimized height for mobile */
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px var(--shadow-dark);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 9999;
}

@media (min-width: 480px) {
    .settings-menu {
        bottom: 80px;
        /* More space from button */
        right: 1rem;
        width: 340px;
        height: 70vh;
    }
}

@media (min-width: 768px) {
    .settings-menu {
        bottom: 85px;
        right: 1.5rem;
        width: 380px;
        height: 75vh;
        max-height: 520px;
    }
}

@media (min-width: 1024px) {
    .settings-menu {
        bottom: 90px;
        right: 2rem;
        width: 400px;
        height: 78vh;
        max-height: 580px;
    }
}

/* Mobile Full Screen Override for very small screens */
@media (max-width: 479px) {
    .settings-menu {
        position: fixed !important;
        top: 5% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translateX(-50%) translateY(20px) scale(0.9) !important;
        width: 95vw !important;
        max-width: 340px !important;
        height: 85vh !important;
        max-height: none !important;
        border-radius: 20px !important;
    }

    .settings-menu.active {
        transform: translateX(-50%) translateY(0) scale(1) !important;
    }
}

.settings-menu.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

/* SETTINGS SCROLL CONTAINER (MOBILE OPTIMIZED) */
.settings-scroll-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--quaternary-bg);
    /* Smoother scrolling on mobile */
    -webkit-overflow-scrolling: touch;
}

.settings-scroll-container::-webkit-scrollbar {
    width: 4px;
}

@media (min-width: 768px) {
    .settings-scroll-container::-webkit-scrollbar {
        width: 6px;
    }
}

.settings-scroll-container::-webkit-scrollbar-track {
    background: var(--quaternary-bg);
    border-radius: 2px;
}

@media (min-width: 768px) {
    .settings-scroll-container::-webkit-scrollbar-track {
        border-radius: 3px;
    }
}

.settings-scroll-container::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 2px;
}

@media (min-width: 768px) {
    .settings-scroll-container::-webkit-scrollbar-thumb {
        border-radius: 3px;
    }
}

.settings-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-text);
}

/* Settings Header (MOBILE OPTIMIZED) */
.settings-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.2rem 0.8rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--secondary-bg);
    z-index: 10;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .settings-back-btn {
        width: 36px;
        height: 36px;
    }
}

.settings-back-btn:hover,
.settings-back-btn:active {
    background: var(--accent-color);
    color: var(--primary-bg);
    transform: scale(1.1);
}

.mobile-close-btn {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: var(--hover-bg);
    color: var(--secondary-text);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    display: flex;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
    .mobile-close-btn {
        display: none;
    }
}

.mobile-close-btn:hover,
.mobile-close-btn:active {
    background: var(--accent-color);
    color: var(--primary-bg);
    transform: translateY(-50%) scale(1.1);
}

/* Settings Content (MOBILE OPTIMIZED) */
.settings-content {
    padding: 0.8rem 1.2rem 1.2rem;
    flex: 1;
}

@media (min-width: 768px) {
    .settings-content {
        padding: 1rem 1.5rem 1.5rem;
    }
}

/* Main Menu Categories (MOBILE OPTIMIZED) */
.settings-categories {
    padding: 0.8rem 1.2rem 1.2rem;
}

@media (min-width: 768px) {
    .settings-categories {
        padding: 1rem 1.5rem 1.5rem;
    }
}

.settings-category {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    margin: 0.5rem 0;
    border-radius: 12px;
    background: var(--hover-bg);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    user-select: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
    .settings-category {
        padding: 0.9rem 1.2rem;
        margin: 0.6rem 0;
    }
}

.settings-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--accent-color), 0.2), transparent);
    transition: left 0.6s ease;
}

.settings-category:hover,
.settings-category:active {
    background: var(--tertiary-bg);
    border-color: var(--accent-color);
    transform: translateX(4px) scale(1.01);
    box-shadow: 0 6px 20px var(--shadow-dark);
}

.settings-category:hover::before,
.settings-category:active::before {
    left: 100%;
}

.category-icon {
    font-size: 1.1rem;
    margin-right: 0.8rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .category-icon {
        font-size: 1.2rem;
        margin-right: 1rem;
    }
}

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

.category-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 0.1rem;
}

@media (min-width: 768px) {
    .category-title {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }
}

.category-desc {
    font-size: 0.7rem;
    color: var(--tertiary-text);
    line-height: 1.2;
    display: none;
    /* Hidden on mobile to save space */
}

@media (min-width: 480px) {
    .category-desc {
        display: block;
        font-size: 0.7rem;
    }
}

@media (min-width: 768px) {
    .category-desc {
        font-size: 0.75rem;
        line-height: 1.3;
    }
}

.category-arrow {
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

@media (min-width: 768px) {
    .category-arrow {
        font-size: 1rem;
        margin-left: 0.6rem;
    }
}

.settings-category:hover .category-arrow,
.settings-category:active .category-arrow {
    transform: translateX(3px);
}

/* Section Views */
.settings-section-view {
    display: none;
}

.settings-section-view.active {
    display: block;
}

.settings-main-menu.active {
    display: block;
}

#settingsMainMenu.active {
    display: block;
}

#settingsMainMenu {
    display: none;
}

/* Setting Groups (MOBILE OPTIMIZED) */
.setting-group {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
}

@media (min-width: 768px) {
    .setting-group {
        align-items: center;
        padding: 1.2rem 0;
        gap: 1.2rem;
    }
}

.setting-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.setting-label {
    flex: 1;
    min-width: 0;
}

.setting-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .setting-name {
        font-size: 0.9rem;
    }
}

.setting-desc {
    display: block;
    font-size: 0.7rem;
    color: var(--tertiary-text);
    line-height: 1.3;
}

@media (min-width: 768px) {
    .setting-desc {
        font-size: 0.75rem;
    }
}

.setting-control {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .setting-control {
        gap: 0.8rem;
    }
}

/* Toggle Switch (MOBILE OPTIMIZED) */
.toggle-switch {
    position: relative;
    width: 38px;
    height: 22px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

@media (min-width: 768px) {
    .toggle-switch {
        width: 42px;
        height: 24px;
    }
}

.toggle-switch:hover,
.toggle-switch:active {
    transform: scale(1.05);
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--tertiary-bg);
    border: 1px solid var(--border-color);
    border-radius: 11px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .toggle-slider {
        border-radius: 12px;
    }
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background: var(--secondary-text);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .toggle-slider:before {
        height: 18px;
        width: 18px;
    }
}

.toggle-switch input:checked+.toggle-slider {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(var(--accent-color), 0.4), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(16px);
    background: var(--primary-bg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .toggle-switch input:checked+.toggle-slider:before {
        transform: translateX(18px);
    }
}

.toggle-switch:hover .toggle-slider,
.toggle-switch:active .toggle-slider {
    border-color: var(--accent-color);
}

.toggle-switch:active .toggle-slider {
    transform: scale(0.95);
}

/* Setting Sliders (MOBILE OPTIMIZED) */
.setting-slider {
    flex: 1;
    height: 6px;
    background: var(--tertiary-bg);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    border: 1px solid var(--border-color);
    cursor: pointer;
    min-width: 80px;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

@media (min-width: 768px) {
    .setting-slider {
        min-width: 100px;
    }
}

.setting-slider:hover,
.setting-slider:active {
    border-color: var(--accent-color);
    background: var(--quaternary-bg);
    transform: scaleY(1.3);
}

.setting-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--primary-bg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    touch-action: manipulation;
}

@media (min-width: 768px) {
    .setting-slider::-webkit-slider-thumb {
        width: 16px;
        height: 16px;
    }
}

.setting-slider::-webkit-slider-thumb:hover,
.setting-slider::-webkit-slider-thumb:active {
    background: var(--primary-text);
    transform: scale(1.2);
    box-shadow: 0 3px 8px var(--shadow-light);
}

.setting-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 600;
    min-width: 45px;
    text-align: right;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .setting-value {
        font-size: 0.8rem;
        min-width: 50px;
    }
}

/* Reset Button (MOBILE OPTIMIZED) */
.reset-settings-btn {
    width: 100%;
    padding: 0.8rem 1.2rem;
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.2rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
    .reset-settings-btn {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 12px;
        gap: 0.8rem;
        margin-top: 1.5rem;
    }
}

.reset-settings-btn:hover,
.reset-settings-btn:active {
    background: var(--accent-color);
    color: var(--primary-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-light);
}

/* Theme Grid (MOBILE OPTIMIZED) */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .theme-grid {
        gap: 1rem;
        margin-bottom: 2rem;
    }
}

.theme-option {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--secondary-text);
    position: relative;
    background: var(--tertiary-bg);
    user-select: none;
    overflow: hidden;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
    .theme-option {
        padding: 1rem;
        border-radius: 16px;
        font-size: 0.9rem;
    }
}

.theme-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.theme-option:hover,
.theme-option:active {
    border-color: var(--accent-color);
    transform: translateY(-3px) scale(1.02);
    background: var(--hover-bg);
    box-shadow: 0 8px 20px var(--shadow-dark);
}

.theme-option:active::before {
    opacity: 0.1;
}

.theme-option.active {
    border-color: var(--accent-color);
    background: var(--hover-bg);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow-light);
}

.theme-option.active::after {
    content: '✓';
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 0.7rem;
    color: var(--accent-color);
    background: var(--primary-bg);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: checkmark-bounce 0.4s ease;
}

@media (min-width: 768px) {
    .theme-option.active::after {
        top: 8px;
        right: 10px;
        font-size: 0.8rem;
        width: 18px;
        height: 18px;
    }
}

@keyframes checkmark-bounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.theme-preview {
    width: 100%;
    height: 16px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .theme-preview {
        height: 20px;
        border-radius: 6px;
        margin-bottom: 0.6rem;
    }
}

.default-preview {
    background: linear-gradient(90deg, #000000 30%, #ffffff 70%);
}

.github-preview {
    background: linear-gradient(90deg, #0d1117 30%, #58a6ff 70%);
}

.discord-preview {
    background: linear-gradient(90deg, #36393f 30%, #5865f2 70%);
}

.spotify-preview {
    background: linear-gradient(90deg, #121212 30%, #1db954 70%);
}

.vscode-preview {
    background: linear-gradient(90deg, #1e1e1e 30%, #007acc 70%);
}

.ocean-preview {
    background: linear-gradient(90deg, #0a1628 30%, #00bcd4 70%);
}

.jojos-preview {
    background: linear-gradient(90deg, #EEC9FD 30%, #E091FE 70%);
}

/* Custom Theme Maker (MOBILE OPTIMIZED) */
.custom-theme-section {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: var(--tertiary-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .custom-theme-section {
        margin-top: 2rem;
        padding: 1.5rem;
        border-radius: 16px;
    }
}

.custom-theme-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-text);
    text-align: center;
}

@media (min-width: 768px) {
    .custom-theme-title {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
}

.color-pickers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .color-pickers {
        gap: 1rem;
        margin-bottom: 1.2rem;
    }
}

.color-picker-group {
    text-align: center;
}

.color-picker-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--secondary-text);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

@media (min-width: 768px) {
    .color-picker-group label {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }
}

.color-input {
    width: 100%;
    height: 35px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--quaternary-bg);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
}

@media (min-width: 768px) {
    .color-input {
        height: 40px;
        border-radius: 10px;
    }
}

.color-input:hover,
.color-input:active {
    border-color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 4px 15px var(--shadow-light);
}

.apply-custom-theme {
    width: 100%;
    padding: 0.8rem;
    background: var(--accent-color);
    color: var(--primary-bg);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
    .apply-custom-theme {
        padding: 1rem;
        border-radius: 10px;
        font-size: 0.95rem;
    }
}

.apply-custom-theme:hover,
.apply-custom-theme:active {
    background: var(--primary-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-light);
}

/* ===========================
   MUSIC PLAYER (MOBILE OPTIMIZED)
   =========================== */

.music-player {
    background: var(--tertiary-bg);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .music-player {
        border-radius: 16px;
        padding: 1.5rem;
    }
}

.player-info {
    text-align: center;
    margin-bottom: 1.2rem;
}

@media (min-width: 768px) {
    .player-info {
        margin-bottom: 1.5rem;
    }
}

.track-info {
    margin-bottom: 0.8rem;
}

@media (min-width: 768px) {
    .track-info {
        margin-bottom: 1rem;
    }
}

.track-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    .track-title {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
}

.track-artist {
    font-size: 0.7rem;
    color: var(--secondary-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    .track-artist {
        font-size: 0.75rem;
    }
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .player-controls {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
}

.control-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--quaternary-bg);
    color: var(--primary-text);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
    .control-btn {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
}

.control-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--hover-bg), transparent);
    transition: left 0.5s ease;
}

.control-btn:hover .control-shimmer,
.control-btn:active .control-shimmer {
    left: 100%;
}

.control-btn:hover,
.control-btn:active {
    background: var(--accent-color);
    color: var(--primary-bg);
    transform: scale(1.05);
    border-color: var(--accent-color);
    box-shadow: 0 4px 16px var(--shadow-light);
}

.play-pause-btn {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--accent-color);
    color: var(--primary-bg);
    border-color: var(--accent-color);
}

@media (min-width: 768px) {
    .play-pause-btn {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }
}

.play-pause-btn:hover,
.play-pause-btn:active {
    background: var(--primary-text);
    transform: scale(1.1);
    box-shadow: 0 8px 24px var(--shadow-light);
}

.progress-section {
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .progress-section {
        margin-bottom: 1.5rem;
    }
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--quaternary-bg);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    touch-action: manipulation;
}

.progress-fill {
    height: 100%;
    background: var(--accent-color);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
    position: relative;
}

.progress-handle {
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (min-width: 768px) {
    .progress-handle {
        width: 12px;
        height: 12px;
    }
}

.progress-bar:hover .progress-handle,
.progress-bar:active .progress-handle {
    opacity: 1;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--secondary-text);
    margin-top: 0.4rem;
}

@media (min-width: 768px) {
    .time-display {
        font-size: 0.7rem;
        margin-top: 0.5rem;
    }
}

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

@media (min-width: 768px) {
    .volume-section {
        gap: 0.8rem;
        margin-bottom: 1.5rem;
    }
}

.volume-icon-container {
    width: 18px;
    text-align: center;
    color: var(--secondary-text);
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .volume-icon-container {
        width: 20px;
    }
}

.volume-icon-svg {
    width: 100%;
    height: auto;
}

.volume-slider-container {
    flex: 1;
    position: relative;
    height: 18px;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .volume-slider-container {
        height: 20px;
    }
}

.volume-slider {
    width: 100%;
    height: 6px;
    background: var(--quaternary-bg);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid var(--border-color);
    cursor: pointer;
    touch-action: manipulation;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--primary-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    touch-action: manipulation;
}

@media (min-width: 768px) {
    .volume-slider::-webkit-slider-thumb {
        width: 16px;
        height: 16px;
    }
}

.volume-slider::-webkit-slider-thumb:hover,
.volume-slider::-webkit-slider-thumb:active {
    background: var(--primary-text);
    transform: scale(1.1);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--primary-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .volume-slider::-moz-range-thumb {
        width: 16px;
        height: 16px;
    }
}

.volume-slider::-moz-range-thumb:hover,
.volume-slider::-moz-range-thumb:active {
    background: var(--primary-text);
    transform: scale(1.1);
}

.volume-slider-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--quaternary-bg);
    border-radius: 3px;
    transform: translateY(-50%);
    pointer-events: none;
    border: 1px solid var(--border-color);
}

.volume-slider-fill {
    height: 100%;
    background: var(--accent-color);
    border-radius: 3px;
    width: 70%;
    transition: width 0.1s ease;
}

.playlist-section {
    max-height: 200px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
    .playlist-section {
        max-height: 250px;
    }
}

.playlist-section::-webkit-scrollbar {
    width: 4px;
}

@media (min-width: 768px) {
    .playlist-section::-webkit-scrollbar {
        width: 6px;
    }
}

.playlist-section::-webkit-scrollbar-track {
    background: var(--quaternary-bg);
    border-radius: 2px;
}

@media (min-width: 768px) {
    .playlist-section::-webkit-scrollbar-track {
        border-radius: 3px;
    }
}

.playlist-section::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 2px;
}

@media (min-width: 768px) {
    .playlist-section::-webkit-scrollbar-thumb {
        border-radius: 3px;
    }
}

.playlist-header {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 0.6rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

@media (min-width: 768px) {
    .playlist-header {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
        gap: 0.5rem;
    }
}

.playlist-icon {
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .playlist-icon {
        font-size: 1rem;
    }
}

.playlist {
    list-style: none;
}

.playlist-item {
    padding: 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.3rem;
    border: 1px solid transparent;
    background: var(--quaternary-bg);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
    .playlist-item {
        padding: 0.8rem;
        border-radius: 10px;
        margin-bottom: 0.4rem;
        gap: 0.8rem;
    }
}

.playlist-item:hover,
.playlist-item:active {
    background: var(--hover-bg);
    border-color: var(--border-color);
    transform: translateX(4px);
}

.playlist-item.active {
    background: var(--hover-bg);
    border-color: var(--accent-color);
    transform: translateX(4px);
}

.playlist-item.active .playlist-track-title {
    color: var(--accent-color);
}

.track-number {
    font-size: 0.65rem;
    color: var(--tertiary-text);
    font-weight: 600;
    min-width: 18px;
    text-align: center;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .track-number {
        font-size: 0.7rem;
        min-width: 20px;
    }
}

.playlist-item.active .track-number {
    color: var(--accent-color);
}

.track-details {
    flex: 1;
    min-width: 0;
}

.playlist-track-title {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--primary-text);
    margin-bottom: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    .playlist-track-title {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
    }
}

.playlist-track-artist {
    font-size: 0.65rem;
    color: var(--secondary-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    .playlist-track-artist {
        font-size: 0.7rem;
    }
}

.track-duration {
    font-size: 0.65rem;
    color: var(--tertiary-text);
    font-family: 'JetBrains Mono', monospace;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .track-duration {
        font-size: 0.7rem;
    }
}

.audio-error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 6px;
    padding: 0.6rem;
    margin-bottom: 0.8rem;
    text-align: center;
    font-size: 0.75rem;
    color: #ff6b6b;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .audio-error {
        border-radius: 8px;
        padding: 0.8rem;
        margin-bottom: 1rem;
        font-size: 0.8rem;
    }
}

/* ===========================
   FOOTER (MOBILE OPTIMIZED)
   =========================== */

.footer {
    padding: 2rem 1rem;
    background: var(--primary-bg);
    text-align: center;
    border-top: 1px solid var(--border-color);
    position: relative;
}

@media (min-width: 768px) {
    .footer {
        padding: 2.5rem;
    }
}

.footer-text {
    color: var(--tertiary-text);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

@media (min-width: 768px) {
    .footer-text {
        font-size: 0.85rem;
    }
}

/* ===========================
   ANIMATIONS (SPEED CONTROLLED)
   =========================== */

@keyframes loading-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(0.98);
    }
}

@keyframes loading-fade {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

@keyframes loading-progress {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0%);
    }
}

@keyframes float-dots {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }

    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 0.3;
    }

    50% {
        transform: translateY(0px) rotate(180deg);
        opacity: 0.1;
    }

    75% {
        transform: translateY(20px) rotate(270deg);
        opacity: 0.3;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float-code {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.03;
    }

    25% {
        transform: translateY(-50px) rotate(5deg);
        opacity: 0.08;
    }

    50% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.03;
    }

    75% {
        transform: translateY(50px) rotate(-5deg);
        opacity: 0.08;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.03;
    }

    25% {
        transform: translateY(-40px) rotate(90deg);
        opacity: 0.06;
    }

    50% {
        transform: translateY(0px) rotate(180deg);
        opacity: 0.03;
    }

    75% {
        transform: translateY(40px) rotate(270deg);
        opacity: 0.06;
    }
}

@keyframes float-tech {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.03;
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.08;
    }
}

@keyframes float-symbols {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.02;
    }

    33% {
        transform: translateY(-40px) rotate(120deg);
        opacity: 0.06;
    }

    66% {
        transform: translateY(40px) rotate(240deg);
        opacity: 0.06;
    }
}

@keyframes timeline-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 3px var(--primary-bg), 0 0 0 5px var(--accent-color);
    }

    50% {
        box-shadow: 0 0 0 3px var(--primary-bg), 0 0 0 5px var(--shadow-light);
    }
}

@media (min-width: 768px) {
    @keyframes timeline-pulse {

        0%,
        100% {
            box-shadow: 0 0 0 4px var(--primary-bg), 0 0 0 6px var(--accent-color);
        }

        50% {
            box-shadow: 0 0 0 4px var(--primary-bg), 0 0 0 6px var(--shadow-light);
        }
    }
}

@keyframes float-contact {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.03;
    }

    50% {
        transform: translateY(-35px) rotate(180deg);
        opacity: 0.08;
    }
}

@keyframes float-emoji {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.4;
    }

    25% {
        transform: translateY(-60px) rotate(90deg) scale(1.1);
        opacity: 0.7;
    }

    50% {
        transform: translateY(0px) rotate(180deg) scale(1);
        opacity: 0.4;
    }

    75% {
        transform: translateY(60px) rotate(270deg) scale(0.9);
        opacity: 0.7;
    }
}

@keyframes mobile-nav-fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes settingsSlideIn {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===========================
   SCROLL ANIMATIONS (MOBILE OPTIMIZED)
   =========================== */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

@media (min-width: 768px) {
    .animate-on-scroll {
        transform: translateY(40px);
    }
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Settings transition feedback */
.settings-section-view {
    display: none;
    animation: settingsSlideIn 0.3s ease;
}

.settings-section-view.active {
    display: block;
}

.settings-main-menu {
    animation: settingsSlideIn 0.3s ease;
}

.settings-main-menu.active {
    display: block;
}

/* ===========================
   ACCESSIBILITY & PERFORMANCE (MOBILE OPTIMIZED)
   =========================== */

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .floating-element {
        animation: none !important;
        opacity: 0.02 !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: rgba(255, 255, 255, 0.3);
        --hover-bg: rgba(255, 255, 255, 0.15);
    }
}

/* Focus management for accessibility */
*:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* Touch target sizing for mobile */
@media (max-width: 767px) {

    button,
    .nav-link,
    .mobile-nav-link,
    .contact-link,
    .project-link,
    .settings-category,
    .theme-option,
    .playlist-item,
    .control-btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ===========================
   UTILITY CLASSES
   =========================== */

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

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobile device specific optimizations */
.mobile-device * {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.mobile-device input,
.mobile-device textarea,
.mobile-device select {
    -webkit-user-select: auto;
    user-select: auto;
}

/* Improve touch scrolling */
.mobile-device .settings-scroll-container,
.mobile-device .playlist-section {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Battery and performance optimizations for mobile */
@media (max-width: 767px) {
    .floating-element {
        will-change: auto;
        backface-visibility: hidden;
        perspective: 1000px;
    }

    .project-card,
    .skill-card,
    .stat-item,
    .timeline-content {
        will-change: transform;
    }
}

/* Print styles */
@media print {

    .settings-panel,
    .back-to-top,
    .mobile-menu,
    .floating-elements,
    .custom-cursor,
    .cursor-follower {
        display: none !important;
    }

    .nav-bar {
        position: relative;
        background: white;
        color: black;
    }

    .section-container {
        max-width: none;
        padding: 0;
    }
}



@media (min-width: 768px) {
    .settings-header {
        padding: 1rem 1.5rem 0.8rem;
        min-height: 55px;
    }
}

.settings-main-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-text);
    text-align: center;
    width: 100%;
}

@media (min-width: 768px) {
    .settings-main-title {
        font-size: 1.1rem;
    }
}

.settings-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-left: 0.6rem;
    flex: 1;
}

@media (min-width: 768px) {
    .settings-section-title {
        font-size: 1rem;
        margin-left: 0.8rem;
    }
}

.settings-back-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--hover-bg);
    color: var(--secondary-text);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .settings-back-btn {
        width: 36px;
        height: 36px;
    }
}

.settings-back-btn:hover,
.settings-back-btn:active {
    background: var(--accent-color);
    color: var(--primary-bg);
    transform: scale(1.1);
}

.mobile-close-btn {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: var(--hover-bg);
    color: var(--secondary-text);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    display: flex;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
    .mobile-close-btn {
        display: none;
    }
}

.mobile-close-btn:hover,
.mobile-close-btn:active {
    background: var(--accent-color);
    color: var(--primary-bg);
    transform: translateY(-50%) scale(1.1);
}

/* Settings Content (MOBILE OPTIMIZED) */
.settings-content {
    padding: 0.8rem 1.2rem 1.2rem;
    flex: 1;
}

@media (min-width: 768px) {
    .settings-content {
        padding: 1rem 1.5rem 1.5rem;
    }
}

/* Main Menu Categories (MOBILE OPTIMIZED) */
.settings-categories {
    padding: 0.8rem 1.2rem 1.2rem;
}

@media (min-width: 768px) {
    .settings-categories {
        padding: 1rem 1.5rem 1.5rem;
    }
}

.settings-category {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    margin: 0.5rem 0;
    border-radius: 12px;
    background: var(--hover-bg);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    user-select: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
    .settings-category {
        padding: 0.9rem 1.2rem;
        margin: 0.6rem 0;
    }
}

.settings-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--accent-color), 0.2), transparent);
    transition: left 0.6s ease;
}

.settings-category:hover,
.settings-category:active {
    background: var(--tertiary-bg);
    border-color: var(--accent-color);
    transform: translateX(4px) scale(1.01);
    box-shadow: 0 6px 20px var(--shadow-dark);
}

.settings-category:hover::before,
.settings-category:active::before {
    left: 100%;
}

.category-icon {
    font-size: 1.1rem;
    margin-right: 0.8rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .category-icon {
        font-size: 1.2rem;
        margin-right: 1rem;
    }
}

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

.category-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 0.1rem;
}

@media (min-width: 768px) {
    .category-title {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }
}

.category-desc {
    font-size: 0.7rem;
    color: var(--tertiary-text);
    line-height: 1.2;
    display: none;
    /* Hidden on mobile to save space */
}

@media (min-width: 480px) {
    .category-desc {
        display: block;
        font-size: 0.7rem;
    }
}

@media (min-width: 768px) {
    .category-desc {
        font-size: 0.75rem;
        line-height: 1.3;
    }
}

.category-arrow {
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

@media (min-width: 768px) {
    .category-arrow {
        font-size: 1rem;
        margin-left: 0.6rem;
    }
}

.settings-category:hover .category-arrow,
.settings-category:active .category-arrow {
    transform: translateX(3px);
}

/* Section Views */
.settings-section-view {
    display: none;
}

.settings-section-view.active {
    display: block;
}

.settings-main-menu.active {
    display: block;
}

#settingsMainMenu.active {
    display: block;
}

#settingsMainMenu {
    display: none;
}

/* Setting Groups (MOBILE OPTIMIZED) */
.setting-group {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
}

@media (min-width: 768px) {
    .setting-group {
        align-items: center;
        padding: 1.2rem 0;
        gap: 1.2rem;
    }
}

.setting-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.setting-label {
    flex: 1;
    min-width: 0;
}

.setting-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .setting-name {
        font-size: 0.9rem;
    }
}

.setting-desc {
    display: block;
    font-size: 0.7rem;
    color: var(--tertiary-text);
    line-height: 1.3;
}

@media (min-width: 768px) {
    .setting-desc {
        font-size: 0.75rem;
    }
}

.setting-control {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .setting-control {
        gap: 0.8rem;
    }
}

/* Toggle Switch (MOBILE OPTIMIZED) */
.toggle-switch {
    position: relative;
    width: 38px;
    height: 22px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

@media (min-width: 768px) {
    .toggle-switch {
        width: 42px;
        height: 24px;
    }
}

.toggle-switch:hover,
.toggle-switch:active {
    transform: scale(1.05);
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--tertiary-bg);
    border: 1px solid var(--border-color);
    border-radius: 11px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .toggle-slider {
        border-radius: 12px;
    }
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background: var(--secondary-text);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .toggle-slider:before {
        height: 18px;
        width: 18px;
    }
}

.toggle-switch input:checked+.toggle-slider {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(var(--accent-color), 0.4), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(16px);
    background: var(--primary-bg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .toggle-switch input:checked+.toggle-slider:before {
        transform: translateX(18px);
    }
}

.toggle-switch:hover .toggle-slider,
.toggle-switch:active .toggle-slider {
    border-color: var(--accent-color);
}

.toggle-switch:active .toggle-slider {
    transform: scale(0.95);
}

/* Setting Sliders (MOBILE OPTIMIZED) */
.setting-slider {
    flex: 1;
    height: 6px;
    background: var(--tertiary-bg);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    border: 1px solid var(--border-color);
    cursor: pointer;
    min-width: 80px;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

@media (min-width: 768px) {
    .setting-slider {
        min-width: 100px;
    }
}

.setting-slider:hover,
.setting-slider:active {
    border-color: var(--accent-color);
    background: var(--quaternary-bg);
    transform: scaleY(1.3);
}

.setting-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--primary-bg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    touch-action: manipulation;
}

@media (min-width: 768px) {
    .setting-slider::-webkit-slider-thumb {
        width: 16px;
        height: 16px;
    }
}

.setting-slider::-webkit-slider-thumb:hover,
.setting-slider::-webkit-slider-thumb:active {
    background: var(--primary-text);
    transform: scale(1.2);
    box-shadow: 0 3px 8px var(--shadow-light);
}

.setting-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 600;
    min-width: 45px;
    text-align: right;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .setting-value {
        font-size: 0.8rem;
        min-width: 50px;
    }
}

/* Reset Button (MOBILE OPTIMIZED) */
.reset-settings-btn {
    width: 100%;
    padding: 0.8rem 1.2rem;
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.2rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
    .reset-settings-btn {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 12px;
        gap: 0.8rem;
        margin-top: 1.5rem;
    }
}

.reset-settings-btn:hover,
.reset-settings-btn:active {
    background: var(--accent-color);
    color: var(--primary-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-light);
}

/* Theme Grid (MOBILE OPTIMIZED) */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .theme-grid {
        gap: 1rem;
        margin-bottom: 2rem;
    }
}

.theme-option {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--secondary-text);
    position: relative;
    background: var(--tertiary-bg);
    user-select: none;
    overflow: hidden;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
    .theme-option {
        padding: 1rem;
        border-radius: 16px;
        font-size: 0.9rem;
    }
}

.theme-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.theme-option:hover,
.theme-option:active {
    border-color: var(--accent-color);
    transform: translateY(-3px) scale(1.02);
    background: var(--hover-bg);
    box-shadow: 0 8px 20px var(--shadow-dark);
}

.theme-option:active::before {
    opacity: 0.1;
}

.theme-option.active {
    border-color: var(--accent-color);
    background: var(--hover-bg);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow-light);
}

.theme-option.active::after {
    content: '✓';
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 0.7rem;
    color: var(--accent-color);
    background: var(--primary-bg);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: checkmark-bounce 0.4s ease;
}

@media (min-width: 768px) {
    .theme-option.active::after {
        top: 8px;
        right: 10px;
        font-size: 0.8rem;
        width: 18px;
        height: 18px;
    }
}

@keyframes checkmark-bounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.theme-preview {
    width: 100%;
    height: 16px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .theme-preview {
        height: 20px;
        border-radius: 6px;
        margin-bottom: 0.6rem;
    }
}

.default-preview {
    background: linear-gradient(90deg, #000000 30%, #ffffff 70%);
}

.github-preview {
    background: linear-gradient(90deg, #0d1117 30%, #58a6ff 70%);
}

.discord-preview {
    background: linear-gradient(90deg, #36393f 30%, #5865f2 70%);
}

.spotify-preview {
    background: linear-gradient(90deg, #121212 30%, #1db954 70%);
}

.vscode-preview {
    background: linear-gradient(90deg, #1e1e1e 30%, #007acc 70%);
}

.ocean-preview {
    background: linear-gradient(90deg, #0a1628 30%, #00bcd4 70%);
}

/* Custom Theme Maker (MOBILE OPTIMIZED) */
.custom-theme-section {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: var(--tertiary-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .custom-theme-section {
        margin-top: 2rem;
        padding: 1.5rem;
        border-radius: 16px;
    }
}

.custom-theme-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-text);
    text-align: center;
}

@media (min-width: 768px) {
    .custom-theme-title {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
}

.color-pickers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .color-pickers {
        gap: 1rem;
        margin-bottom: 1.2rem;
    }
}

.color-picker-group {
    text-align: center;
}

.color-picker-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--secondary-text);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

@media (min-width: 768px) {
    .color-picker-group label {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }
}

.color-input {
    width: 100%;
    height: 35px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--quaternary-bg);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
}

@media (min-width: 768px) {
    .color-input {
        height: 40px;
        border-radius: 10px;
    }
}

.color-input:hover,
.color-input:active {
    border-color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 4px 15px var(--shadow-light);
}

.apply-custom-theme {
    width: 100%;
    padding: 0.8rem;
    background: var(--accent-color);
    color: var(--primary-bg);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
    .apply-custom-theme {
        padding: 1rem;
        border-radius: 10px;
        font-size: 0.95rem;
    }
}

.apply-custom-theme:hover,
.apply-custom-theme:active {
    background: var(--primary-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-light);
}

/* ===========================
   MUSIC PLAYER (MOBILE OPTIMIZED)
   =========================== */

.music-player {
    background: var(--tertiary-bg);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .music-player {
        border-radius: 16px;
        padding: 1.5rem;
    }
}

.player-info {
    text-align: center;
    margin-bottom: 1.2rem;
}

@media (min-width: 768px) {
    .player-info {
        margin-bottom: 1.5rem;
    }
}

.track-info {
    margin-bottom: 0.8rem;
}

@media (min-width: 768px) {
    .track-info {
        margin-bottom: 1rem;
    }
}

.track-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    .track-title {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
}

.track-artist {
    font-size: 0.7rem;
    color: var(--secondary-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    .track-artist {
        font-size: 0.75rem;
    }
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .player-controls {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
}

.control-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--quaternary-bg);
    color: var(--primary-text);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
    .control-btn {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
}

.control-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--hover-bg), transparent);
    transition: left 0.5s ease;
}

.control-btn:hover .control-shimmer,
.control-btn:active .control-shimmer {
    left: 100%;
}

.control-btn:hover,
.control-btn:active {
    background: var(--accent-color);
    color: var(--primary-bg);
    transform: scale(1.05);
    border-color: var(--accent-color);
    box-shadow: 0 4px 16px var(--shadow-light);
}

.play-pause-btn {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--accent-color);
    color: var(--primary-bg);
    border-color: var(--accent-color);
}

@media (min-width: 768px) {
    .play-pause-btn {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }
}

.play-pause-btn:hover,
.play-pause-btn:active {
    background: var(--primary-text);
    transform: scale(1.1);
    box-shadow: 0 8px 24px var(--shadow-light);
}

.progress-section {
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .progress-section {
        margin-bottom: 1.5rem;
    }
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--quaternary-bg);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    touch-action: manipulation;
}

.progress-fill {
    height: 100%;
    background: var(--accent-color);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
    position: relative;
}

.progress-handle {
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (min-width: 768px) {
    .progress-handle {
        width: 12px;
        height: 12px;
    }
}

.progress-bar:hover .progress-handle,
.progress-bar:active .progress-handle {
    opacity: 1;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--secondary-text);
    margin-top: 0.4rem;
}

@media (min-width: 768px) {
    .time-display {
        font-size: 0.7rem;
        margin-top: 0.5rem;
    }
}

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

@media (min-width: 768px) {
    .volume-section {
        gap: 0.8rem;
        margin-bottom: 1.5rem;
    }
}

.volume-icon-container {
    width: 18px;
    text-align: center;
    color: var(--secondary-text);
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .volume-icon-container {
        width: 20px;
    }
}

.volume-icon-svg {
    width: 100%;
    height: auto;
}

.volume-slider-container {
    flex: 1;
    position: relative;
    height: 18px;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .volume-slider-container {
        height: 20px;
    }
}

.volume-slider {
    width: 100%;
    height: 6px;
    background: var(--quaternary-bg);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid var(--border-color);
    cursor: pointer;
    touch-action: manipulation;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--primary-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    touch-action: manipulation;
}

@media (min-width: 768px) {
    .volume-slider::-webkit-slider-thumb {
        width: 16px;
        height: 16px;
    }
}

.volume-slider::-webkit-slider-thumb:hover,
.volume-slider::-webkit-slider-thumb:active {
    background: var(--primary-text);
    transform: scale(1.1);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--primary-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .volume-slider::-moz-range-thumb {
        width: 16px;
        height: 16px;
    }
}

.volume-slider::-moz-range-thumb:hover,
.volume-slider::-moz-range-thumb:active {
    background: var(--primary-text);
    transform: scale(1.1);
}

.volume-slider-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--quaternary-bg);
    border-radius: 3px;
    transform: translateY(-50%);
    pointer-events: none;
    border: 1px solid var(--border-color);
}

.volume-slider-fill {
    height: 100%;
    background: var(--accent-color);
    border-radius: 3px;
    width: 70%;
    transition: width 0.1s ease;
}

.playlist-section {
    max-height: 200px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
    .playlist-section {
        max-height: 250px;
    }
}

.playlist-section::-webkit-scrollbar {
    width: 4px;
}

@media (min-width: 768px) {
    .playlist-section::-webkit-scrollbar {
        width: 6px;
    }
}

.playlist-section::-webkit-scrollbar-track {
    background: var(--quaternary-bg);
    border-radius: 2px;
}

@media (min-width: 768px) {
    .playlist-section::-webkit-scrollbar-track {
        border-radius: 3px;
    }
}

.playlist-section::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 2px;
}

@media (min-width: 768px) {
    .playlist-section::-webkit-scrollbar-thumb {
        border-radius: 3px;
    }
}

.playlist-header {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 0.6rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

@media (min-width: 768px) {
    .playlist-header {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
        gap: 0.5rem;
    }
}

.playlist-icon {
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .playlist-icon {
        font-size: 1rem;
    }
}

.playlist {
    list-style: none;
}

.playlist-item {
    padding: 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.3rem;
    border: 1px solid transparent;
    background: var(--quaternary-bg);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
    .playlist-item {
        padding: 0.8rem;
        border-radius: 10px;
        margin-bottom: 0.4rem;
        gap: 0.8rem;
    }
}

.playlist-item:hover,
.playlist-item:active {
    background: var(--hover-bg);
    border-color: var(--border-color);
    transform: translateX(4px);
}

.playlist-item.active {
    background: var(--hover-bg);
    border-color: var(--accent-color);
    transform: translateX(4px);
}

.playlist-item.active .playlist-track-title {
    color: var(--accent-color);
}

.track-number {
    font-size: 0.65rem;
    color: var(--tertiary-text);
    font-weight: 600;
    min-width: 18px;
    text-align: center;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .track-number {
        font-size: 0.7rem;
        min-width: 20px;
    }
}

.playlist-item.active .track-number {
    color: var(--accent-color);
}

.track-details {
    flex: 1;
    min-width: 0;
}

.playlist-track-title {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--primary-text);
    margin-bottom: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    .playlist-track-title {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
    }
}

.playlist-track-artist {
    font-size: 0.65rem;
    color: var(--secondary-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    .playlist-track-artist {
        font-size: 0.7rem;
    }
}

.track-duration {
    font-size: 0.65rem;
    color: var(--tertiary-text);
    font-family: 'JetBrains Mono', monospace;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .track-duration {
        font-size: 0.7rem;
    }
}

.audio-error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 6px;
    padding: 0.6rem;
    margin-bottom: 0.8rem;
    text-align: center;
    font-size: 0.75rem;
    color: #ff6b6b;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .audio-error {
        border-radius: 8px;
        padding: 0.8rem;
        margin-bottom: 1rem;
        font-size: 0.8rem;
    }
}

/* ===========================
   FOOTER (MOBILE OPTIMIZED)
   =========================== */

.footer {
    padding: 2rem 1rem;
    background: var(--primary-bg);
    text-align: center;
    border-top: 1px solid var(--border-color);
    position: relative;
}

@media (min-width: 768px) {
    .footer {
        padding: 2.5rem;
    }
}

.footer-text {
    color: var(--tertiary-text);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

@media (min-width: 768px) {
    .footer-text {
        font-size: 0.85rem;
    }
}

/* ===========================
   ANIMATIONS (SPEED CONTROLLED)
   =========================== */

@keyframes loading-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(0.98);
    }
}

@keyframes loading-fade {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

@keyframes loading-progress {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0%);
    }
}

@keyframes float-dots {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }

    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 0.3;
    }

    50% {
        transform: translateY(0px) rotate(180deg);
        opacity: 0.1;
    }

    75% {
        transform: translateY(20px) rotate(270deg);
        opacity: 0.3;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float-code {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.03;
    }

    25% {
        transform: translateY(-50px) rotate(5deg);
        opacity: 0.08;
    }

    50% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.03;
    }

    75% {
        transform: translateY(50px) rotate(-5deg);
        opacity: 0.08;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.03;
    }

    25% {
        transform: translateY(-40px) rotate(90deg);
        opacity: 0.06;
    }

    50% {
        transform: translateY(0px) rotate(180deg);
        opacity: 0.03;
    }

    75% {
        transform: translateY(40px) rotate(270deg);
        opacity: 0.06;
    }
}

@keyframes float-tech {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.03;
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.08;
    }
}

@keyframes float-symbols {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.02;
    }

    33% {
        transform: translateY(-40px) rotate(120deg);
        opacity: 0.06;
    }

    66% {
        transform: translateY(40px) rotate(240deg);
        opacity: 0.06;
    }
}

@keyframes timeline-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 3px var(--primary-bg), 0 0 0 5px var(--accent-color);
    }

    50% {
        box-shadow: 0 0 0 3px var(--primary-bg), 0 0 0 5px var(--shadow-light);
    }
}

@media (min-width: 768px) {
    @keyframes timeline-pulse {

        0%,
        100% {
            box-shadow: 0 0 0 4px var(--primary-bg), 0 0 0 6px var(--accent-color);
        }

        50% {
            box-shadow: 0 0 0 4px var(--primary-bg), 0 0 0 6px var(--shadow-light);
        }
    }
}

@keyframes float-contact {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.03;
    }

    50% {
        transform: translateY(-35px) rotate(180deg);
        opacity: 0.08;
    }
}

@keyframes mobile-nav-fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes settingsSlideIn {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===========================
   SCROLL ANIMATIONS (MOBILE OPTIMIZED)
   =========================== */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

@media (min-width: 768px) {
    .animate-on-scroll {
        transform: translateY(40px);
    }
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Settings transition feedback */
.settings-section-view {
    display: none;
    animation: settingsSlideIn 0.3s ease;
}

.settings-section-view.active {
    display: block;
}

.settings-main-menu {
    animation: settingsSlideIn 0.3s ease;
}

.settings-main-menu.active {
    display: block;
}

/* ===========================
   ACCESSIBILITY & PERFORMANCE (MOBILE OPTIMIZED)
   =========================== */

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .floating-element {
        animation: none !important;
        opacity: 0.02 !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: rgba(255, 255, 255, 0.3);
        --hover-bg: rgba(255, 255, 255, 0.15);
    }
}

/* Focus management for accessibility */
*:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* Touch target sizing for mobile */
@media (max-width: 767px) {

    button,
    .nav-link,
    .mobile-nav-link,
    .contact-link,
    .project-link,
    .settings-category,
    .theme-option,
    .playlist-item,
    .control-btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ===========================
   UTILITY CLASSES
   =========================== */

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

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobile device specific optimizations */
.mobile-device * {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.mobile-device input,
.mobile-device textarea,
.mobile-device select {
    -webkit-user-select: auto;
    user-select: auto;
}

/* Improve touch scrolling */
.mobile-device .settings-scroll-container,
.mobile-device .playlist-section {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Battery and performance optimizations for mobile */
@media (max-width: 767px) {
    .floating-element {
        will-change: auto;
        backface-visibility: hidden;
        perspective: 1000px;
    }

    .project-card,
    .skill-card,
    .stat-item,
    .timeline-content {
        will-change: transform;
    }
}

/* Print styles */
@media print {

    .settings-panel,
    .back-to-top,
    .mobile-menu,
    .floating-elements,
    .custom-cursor,
    .cursor-follower {
        display: none !important;
    }

    .nav-bar {
        position: relative;
        background: white;
        color: black;
    }

    .section-container {
        max-width: none;
        padding: 0;
    }
}

/* ===========================
   EMOJI FONT FIXES FOR MOBILE
   =========================== */

/* Enhanced emoji font stack for better mobile support */
.emoji-text,
.stat-icon,
.skill-icon,
.timeline-icon,
.category-icon,
.playlist-icon,
.floating-contact-icons,
.floating-tech-icon,
.contact-icon,
.mobile-emoji {
    font-family: 
        "Apple Color Emoji",      /* iOS */
        "Segoe UI Emoji",         /* Windows */
        "Segoe UI Symbol",        /* Windows fallback */
        "Noto Color Emoji",       /* Android/Chrome */
        "Android Emoji",          /* Android fallback */
        "EmojiSymbols",          /* Firefox */
        "EmojiOne Mozilla",       /* Firefox fallback */
        sans-serif;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: optimizeQuality;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===========================
   MOBILE EMOJI VISIBILITY FIXES
   =========================== */

/* Make floating elements visible on mobile but optimized */
@media (max-width: 767px) {
    .floating-elements {
        display: block !important;
        opacity: 0.6;
        pointer-events: none;
    }

    /* Reduce animation complexity but keep emojis visible */
    .floating-code,
    .floating-tech-icon,
    .floating-symbols,
    .floating-contact-icons {
        animation-duration: 60s !important;
        animation-iteration-count: infinite;
        font-size: 1rem !important;
        opacity: 0.4 !important;
    }

    /* Geometric shapes - keep minimal */
    .geometric-shape {
        animation-duration: 80s !important;
        opacity: 0.2 !important;
    }
}

/* ===========================
   ENHANCED MOBILE EMOJI SECTIONS
   =========================== */

/* Stats section emojis - make them prominent on mobile */
@media (max-width: 767px) {
    .stat-icon {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
        filter: none !important;
        display: block !important;
        line-height: 1;
        text-align: center;
    }
    
    .stat-item:hover .stat-icon,
    .stat-item:active .stat-icon {
        filter: none !important;
        transform: scale(1.1);
    }
}

/* Skill section emojis - enhance for mobile */
@media (max-width: 767px) {
    .skill-icon {
        font-size: 2.5rem !important;
        margin-bottom: 1.5rem !important;
        filter: none !important;
        display: block !important;
        line-height: 1;
        text-align: center;
        transition: transform 0.3s ease;
    }
    
    .skill-card:hover .skill-icon,
    .skill-card:active .skill-icon {
        filter: none !important;
        transform: scale(1.2);
    }
}

/* Timeline emojis - make them visible and prominent */
@media (max-width: 767px) {
    .timeline-icon {
        position: absolute;
        top: 1rem;
        right: 1rem;
        transform: none;
        font-size: 1.5rem !important;
        color: var(--accent-color) !important;
        background: var(--primary-bg);
        padding: 0.5rem;
        border-radius: 50%;
        border: 2px solid var(--accent-color);
        line-height: 1;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Settings panel emojis - ensure visibility */
@media (max-width: 767px) {
    .category-icon {
        font-size: 1.5rem !important;
        margin-right: 1rem !important;
        flex-shrink: 0;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .playlist-icon {
        font-size: 1.2rem !important;
        line-height: 1;
    }
}

/* ===========================
   NEW MOBILE EMOJI ENHANCEMENTS
   =========================== */

/* Add emoji backgrounds to sections on mobile */
@media (max-width: 767px) {
    .about-section::after {
        content: "👨‍💻 🚀 💡 ⚡";
        position: absolute;
        top: 2rem;
        right: 1rem;
        font-size: 1.2rem;
        opacity: 0.3;
        letter-spacing: 0.5rem;
        pointer-events: none;
        z-index: 1;
    }
    
    .skills-section::after {
        content: "💻 ⚙️ 🛠️ 📱";
        position: absolute;
        top: 2rem;
        left: 1rem;
        font-size: 1.2rem;
        opacity: 0.3;
        letter-spacing: 0.5rem;
        pointer-events: none;
        z-index: 1;
    }
    
    .projects-section::after {
        content: "🎯 💼 🚀 ✨";
        position: absolute;
        top: 2rem;
        right: 1rem;
        font-size: 1.2rem;
        opacity: 0.3;
        letter-spacing: 0.5rem;
        pointer-events: none;
        z-index: 1;
    }
    
    .contact-section::after {
        content: "📧 💬 🔗 📱";
        position: absolute;
        top: 2rem;
        left: 1rem;
        font-size: 1.2rem;
        opacity: 0.3;
        letter-spacing: 0.5rem;
        pointer-events: none;
        z-index: 1;
    }
}

/* Mobile hero section emoji enhancement */
@media (max-width: 767px) {
    .hero-section::after {
        content: "💻";
        position: absolute;
        top: 15%;
        right: 10%;
        font-size: 3rem;
        opacity: 0.1;
        z-index: 1;
        pointer-events: none;
        animation: float-mobile-hero 8s ease-in-out infinite;
    }
    
    .hero-section::before {
        content: "🚀";
        position: absolute;
        bottom: 20%;
        left: 15%;
        font-size: 2.5rem;
        opacity: 0.15;
        z-index: 1;
        pointer-events: none;
        animation: float-mobile-hero 10s ease-in-out infinite reverse;
    }
}

/* ===========================
   MOBILE NAVIGATION EMOJI ADDITIONS
   =========================== */

/* Add emojis to mobile navigation */
@media (max-width: 767px) {
    .mobile-nav-link[href="#about"]::before {
        content: "👨‍💻 ";
        margin-right: 0.5rem;
    }
    
    .mobile-nav-link[href="#skills"]::before {
        content: "⚡ ";
        margin-right: 0.5rem;
    }
    
    .mobile-nav-link[href="#projects"]::before {
        content: "🚀 ";
        margin-right: 0.5rem;
    }
    
    .mobile-nav-link[href="#experience"]::before {
        content: "💼 ";
        margin-right: 0.5rem;
    }
    
    .mobile-nav-link[href="#contact"]::before {
        content: "📧 ";
        margin-right: 0.5rem;
    }
}

/* ===========================
   MOBILE SETTINGS ENHANCEMENTS
   =========================== */

/* Add more emojis to settings on mobile */
@media (max-width: 767px) {
    .settings-main-title::before {
        content: "⚙️ ";
        margin-right: 0.5rem;
    }
    
    .custom-theme-title::before {
        content: "🎨 ";
        margin-right: 0.5rem;
    }
    
    /* Theme option emojis */
    .theme-option[data-theme="default"]::before {
        content: "🌟 ";
        margin-right: 0.3rem;
    }
    
    .theme-option[data-theme="github"]::before {
        content: "🐙 ";
        margin-right: 0.3rem;
    }
    
    .theme-option[data-theme="discord"]::before {
        content: "🎮 ";
        margin-right: 0.3rem;
    }
    
    .theme-option[data-theme="spotify"]::before {
        content: "🎵 ";
        margin-right: 0.3rem;
    }
    
    .theme-option[data-theme="vscode"]::before {
        content: "💻 ";
        margin-right: 0.3rem;
    }
    
    .theme-option[data-theme="ocean"]::before {
        content: "🌊 ";
        margin-right: 0.3rem;
    }
}

/* ===========================
   MOBILE PROJECT CARD EMOJIS
   =========================== */

@media (max-width: 767px) {
    .project-title::after {
        margin-left: 0.5rem;
        opacity: 0.7;
    }
    
    /* Add specific emojis based on project content */
    .project-card:nth-child(1) .project-title::after {
        content: "🔐";
    }
    
    .project-card:nth-child(2) .project-title::after {
        content: "🌐";
    }
    
    .project-card:nth-child(3) .project-title::after {
        content: "📱";
    }
}

/* ===========================
   MOBILE CONTACT SECTION ENHANCEMENTS
   =========================== */

@media (max-width: 767px) {
    .contact-link[href^="mailto"]::before {
        content: "📧 ";
        margin-right: 0.5rem;
    }
    
    .contact-link[href*="github"]::before {
        content: "🐙 ";
        margin-right: 0.5rem;
    }
    
    .contact-link[href*="linkedin"]::before {
        content: "💼 ";
        margin-right: 0.5rem;
    }
}

/* ===========================
   MOBILE BACK TO TOP ENHANCEMENT
   =========================== */

@media (max-width: 767px) {
    .back-to-top-icon {
        font-size: 1.2rem;
    }
    
    .back-to-top::before {
        content: "🚀";
        position: absolute;
        top: -25px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.8rem;
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
    }
    
    .back-to-top:hover::before,
    .back-to-top:active::before {
        opacity: 1;
        top: -30px;
    }
}

/* ===========================
   MOBILE LOADING SCREEN EMOJI
   =========================== */

@media (max-width: 767px) {
    .loading-text::after {
        content: " 🚀";
        font-size: 1rem;
        animation: rocket-bounce 1s ease-in-out infinite;
    }
}

/* ===========================
   ADDITIONAL MOBILE ANIMATIONS
   =========================== */

@keyframes float-mobile-hero {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes rocket-bounce {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* ===========================
   EMOJI CONTRAST ENHANCEMENT
   =========================== */

/* Ensure emojis are visible in all themes */
@media (max-width: 767px) {
    .emoji-text,
    .stat-icon,
    .skill-icon,
    .timeline-icon,
    .category-icon,
    .playlist-icon {
        text-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
        filter: contrast(1.2) saturate(1.3);
    }
}

/* High contrast mode adjustments */
@media (prefers-contrast: high) and (max-width: 767px) {
    .emoji-text,
    .stat-icon,
    .skill-icon,
    .timeline-icon,
    .category-icon,
    .playlist-icon {
        filter: contrast(1.5) saturate(1.5);
        text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    }
}

/* ===========================
   MOBILE TOUCH FEEDBACK FOR EMOJIS
   =========================== */

@media (max-width: 767px) {
    .stat-item:active .stat-icon,
    .skill-card:active .skill-icon,
    .settings-category:active .category-icon {
        transform: scale(1.2);
        filter: brightness(1.3);
    }
}

/* ===========================
   ACCESSIBILITY IMPROVEMENTS
   =========================== */

/* Ensure emojis don't interfere with screen readers */
.emoji-decorative::before,
.emoji-decorative::after {
    speak: none;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
}

/* Provide text alternatives for important emojis */
@media (max-width: 767px) {
    .stat-icon[aria-label],
    .skill-icon[aria-label],
    .timeline-icon[aria-label] {
        position: relative;
    }
}