/* --- Updated Logo Styles --- */
.logo {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 1px;
}
.accent-text {
    color: var(--accent-color);
    text-shadow: 0 0 8px rgba(229, 57, 53, 0.4);
}

/* --- Contact Modal Specifics --- */
.contact-container {
    text-align: center;
    max-width: 650px !important;
}

.social-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

/* Social Cards */
.social-card {
    flex: 1;
    padding: 2.5rem 1rem;
    border-radius: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: none !important; /* Preserves your custom cursor */
}

/* Hover glow effects */
.social-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.social-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.2rem;
    fill: var(--text-main);
    transition: fill 0.3s ease, transform 0.3s ease;
}

/* Brand colors on hover */
.social-card:hover .discord-icon { 
    fill: #5865F2; 
    transform: scale(1.1);
}
.social-card:hover .telegram-icon { 
    fill: #0088cc; 
    transform: scale(1.1);
}

.social-card h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.social-card p { color: var(--text-muted); font-size: 0.95rem; }

/* The Animated 'Copied' Badge */
.copy-badge {
    position: absolute;
    bottom: 20px;
    background: var(--accent-color);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(229, 57, 53, 0.4);
}

.copy-badge.show {
    opacity: 1;
    transform: translateY(0);
}

/* Make it stack on phones */
@media (max-width: 600px) {
    .social-grid { flex-direction: column; gap: 1rem; }
}


*, *::before, *::after {
    cursor: none !important;
}
/* The Pipes: Matching your existing red accent color */
.accent-pipe {
    color: var(--accent-color); /* #e53935 */
    font-weight: 300;
    text-shadow: 0 0 10px rgba(229, 57, 53, 0.5); /* Subtle glow */
}

/* The Rainbow Text: Shifting RGB gradient — refined palette, same wave effect */
.rainbow-text {
    background: linear-gradient(
        to right,
        #ff4444, #ff8c00, #ffe000, #7fff00, #00e5ff, #7b68ee, #ff1493, #ff4444
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow-wave 4s linear infinite;
    font-weight: 800;
}

@keyframes rainbow-wave {
    to {
        background-position: 200% center;
    }
}

/* --- Modal (Popup) Styles --- */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(24px) saturate(0.5); /* IMPROVED: deeper blur + desaturate for cinematic feel */
    -webkit-backdrop-filter: blur(24px) saturate(0.5);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 3rem;
    z-index: 2001;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
}

.modal-content::-webkit-scrollbar { width: 8px; }
.modal-content::-webkit-scrollbar-thumb { 
    background: var(--accent-color); 
    border-radius: 4px; 
}

.close-modal {
    position: absolute;
    top: 1.5rem; right: 2rem;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s;
    line-height: 1;
}

.close-modal:hover { color: var(--accent-color); }

#modal-title { 
    margin-bottom: 2rem; 
    font-size: 2.2rem; 
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.modal-gallery img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.modal-gallery img:hover {
    transform: scale(1.02);
}

.modal-video-wrap {
    grid-column: 1 / -1;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    background: #000;
}

.modal-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.modal-description {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.05rem;
}

.modal-description br {
    content: "";
    display: block;
    margin-top: 1rem;
}

/* --- Language Switcher Styles --- */
.lang-switch {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.lang-switch span {
    cursor: pointer;
    transition: color 0.3s ease;
}

.lang-switch span:hover {
    color: var(--accent-color);
}

.lang-switch span.active {
    color: var(--text-main);
    font-weight: bold;
}

.lang-switch .divider {
    margin: 0 0.2rem;
    cursor: default;
}
.lang-switch .divider:hover { color: var(--text-muted); }

html {
    scroll-behavior: smooth;
}

/* --- Global Custom Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(229, 57, 53, 0.4);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(229, 57, 53, 0.7);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(229, 57, 53, 0.4) transparent;
}

/* --- Base Variables & Dark Theme --- */
:root {
    --bg-color: #0a0a0c;
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --accent-color: #e53935;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* --- Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: linear-gradient(-45deg, #0a0a0c, #16161d, #110e1a, #0a0a0c);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* CHANGED: cursor: none hides the default cursor so our custom one shows */
    cursor: none;
}

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

h1, h2, h3 {
    font-weight: 600;
}

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

/* --- Glassmorphism Classes --- */
.glass-nav,
.glass-container,
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}

/* --- Navigation Styling --- */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    /* ADDED: smooth transition so the scrolled state animates in */
    transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

/* NEW: scrolled state — JS adds this class when window.scrollY > 60 */
.glass-nav.scrolled {
    background: rgba(10, 10, 12, 0.88);
    border-bottom-color: rgba(229, 57, 53, 0.25);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-switch {
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
}

/* --- Buttons --- */
.btn-primary,
.btn-secondary {
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: none; /* keeps custom cursor */
}

.btn-primary {
    background-color: var(--glass-bg);
    border: 1px solid var(--accent-color);
    color: var(--text-main);
    /* ADDED: subtle glow on primary button */
    box-shadow: 0 0 0 rgba(229, 57, 53, 0);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(229, 57, 53, 0.4);
}

.hero {
    min-height: 100vh;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 80px 20px;
    /* ADDED: position relative so it stacks above the canvas */
    position: relative;
    z-index: 1;
}

.hero .glass-container {
    padding: 3rem 2rem;
    border-radius: 24px;
    max-width: 900px;
    width: 95%;
}

.hero p {
    color: var(--text-muted);
    margin-top: 1rem;
}

.hero-description {
    max-width: 750px;
    margin: 2rem auto;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.hero-stack {
    margin-top: 2rem;
    font-family: 'Courier New', Courier, monospace;
    color: var(--accent-color);
    font-weight: bold;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
}

/* --- Stats Counter Section --- */
.stats-section {
    padding: 2rem 5% 0;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.stat-item {
    padding: 2rem 1rem;
    border-radius: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    border-color: rgba(229, 57, 53, 0.3);
    box-shadow: 0 4px 20px rgba(229, 57, 53, 0.08);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
}

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

.stat-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 400px) {
    .stats-grid { grid-template-columns: 1fr; }
}

/* --- Projects Section --- */
.projects-section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    /* ADDED: position relative so it stacks above the canvas */
    position: relative;
    z-index: 1;
}

.projects-section h2 {
    margin-bottom: 3rem;
    text-align: center;
    font-size: 2.5rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* --- "Available for Purchase" badge & card actions --- */
.proj-card-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.proj-available-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #4caf50;
    background: rgba(76, 175, 80, 0.08);
    border: 1px solid rgba(76, 175, 80, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
}

.proj-available-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4caf50;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.6);
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(76, 175, 80, 0.6); }
    50% { opacity: 0.5; box-shadow: 0 0 12px rgba(76, 175, 80, 0.9); }
}

.proj-available-badge:hover {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.5);
    color: #66bb6a;
}

/* --- Coming Soon / What's Next Card --- */
.coming-soon-card {
    margin-top: 2rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 16px;
    padding: 2rem 2.5rem;
    text-align: center;
    position: relative;
}

.cs-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.cs-icon {
    font-size: 1.4rem;
    color: var(--accent-color);
    animation: spin-slow 8s linear infinite;
}

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

.cs-header h3 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin: 0;
}

.cs-body {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.cs-roadmap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.cs-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
}

.cs-status {
    flex-shrink: 0;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cs-wip {
    color: #ffb74d;
    background: rgba(255, 183, 77, 0.1);
    border: 1px solid rgba(255, 183, 77, 0.25);
}

.cs-planned {
    color: #64b5f6;
    background: rgba(100, 181, 246, 0.1);
    border: 1px solid rgba(100, 181, 246, 0.25);
}

.cs-label {
    color: var(--text-main);
    font-size: 0.85rem;
}

.cs-footer {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-style: italic;
    opacity: 0.7;
}

/* --- Individual Project Cards --- */
.project-card {
    border-radius: 16px;
    padding: 1.5rem;
    /* CHANGED: transition now also covers box-shadow for the glow effect */
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    /* ADDED: transform-style for the 3D tilt to work correctly */
    transform-style: preserve-3d;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(229, 57, 53, 0.5);
    /* CHANGED: added red glow on hover, much more dramatic than before */
    box-shadow: 0 8px 40px rgba(229, 57, 53, 0.15), 0 0 0 1px rgba(229, 57, 53, 0.1);
}

/* --- Swipeable Project Gallery --- */
.project-gallery {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--glass-bg);
}

.project-gallery::-webkit-scrollbar { height: 6px; }
.project-gallery::-webkit-scrollbar-track {
    background: var(--glass-bg);
    border-radius: 10px;
}
.project-gallery::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.project-gallery img {
    flex: 0 0 100%; 
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    scroll-snap-align: start;
}

.project-card h3 {
    margin-bottom: 0.5rem;
}

.project-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.btn-secondary {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    text-align: center;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* --- Loading Screen — Logo Reveal --- */
#loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: #0a0a0c;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.loader-logo-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: loader-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes loader-fade-up {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.loader-globe {
    opacity: 0;
    animation: loader-globe-in 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

@keyframes loader-globe-in {
    to { opacity: 1; }
}

.globe-ring {
    animation: globe-draw 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

@keyframes globe-draw {
    to { stroke-dashoffset: 0; }
}

.loader-text {
    overflow: hidden;
}

.loader-name {
    display: inline-block;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-main);
    opacity: 0;
    transform: translateY(100%);
    animation: loader-text-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.loader-dot {
    display: inline-block;
    font-size: 2.2rem;
    font-weight: 800;
    opacity: 0;
    transform: translateY(100%);
    animation: loader-text-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.0s forwards;
}

@keyframes loader-text-rise {
    to { opacity: 1; transform: translateY(0); }
}

.loader-line {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 1px;
    overflow: hidden;
    opacity: 0;
    animation: loader-fade-up 0.5s ease 1.2s forwards;
}

.loader-line-fill {
    width: 0%;
    height: 100%;
    background: var(--accent-color);
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(229, 57, 53, 0.5);
    animation: loader-fill 1.5s cubic-bezier(0.4, 0, 0.2, 1) 1.3s forwards;
}

@keyframes loader-fill {
    to { width: 100%; }
}

/* --- Scroll Fade-In Animation --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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


/* ==============================================
   NEW STYLES — everything below is new
   All rules above this line are original/unchanged
   ============================================== */

#cursor-dot {
    position: fixed;
    top: -100px;
    left: -100px;
    width: 6px;
    height: 6px;
    background: #e53935;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

#cursor-ring {
    position: fixed;
    top: -100px;
    left: -100px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(229, 57, 53, 0.65);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, opacity 0.3s ease;
}

#cursor-dot.cursor-hidden,
#cursor-ring.cursor-hidden {
    opacity: 0;
}

/* Ring expands and glows when hovering interactive elements */
body.cursor-hovering #cursor-ring {
    width: 52px;
    height: 52px;
    border-color: rgba(229, 57, 53, 0.9);
    box-shadow: 0 0 12px rgba(229, 57, 53, 0.3);
}

/* Make sure all interactive elements still get pointer cursor feel via ring */
a, button, [onclick], .btn-primary, .btn-secondary, .close-modal,
.lang-switch span, .project-card {
    cursor: none;
}

/* --- Scroll Progress Bar --- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--accent-color);
    z-index: 99998; /* just below cursor, above everything else */
    box-shadow: 0 0 8px rgba(229, 57, 53, 0.6);
    transition: width 0.1s linear;
}

/* --- Aurora Background Canvas --- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Hero Typed Role Line --- */
.hero-typed-wrapper {
    margin-top: 0.75rem;
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 300;
    min-height: 1.5em; /* prevents layout shift while typing */
}

#typed-role {
    color: var(--text-muted);
}

/* The blinking | cursor after the typed text */
.typed-cursor-blink {
    color: var(--accent-color);
    font-weight: 300;
    animation: cursor-blink 1s step-end infinite;
    margin-left: 2px;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* --- Project Skill Tags --- */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.6rem 0 1rem 0;
}

.proj-tag {
    font-size: 0.72rem;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    transition: border-color 0.3s ease, color 0.3s ease;
}

/* Accent tags (primary language / main tech) glow red */
.proj-tag.proj-tag-accent {
    background: rgba(229, 57, 53, 0.08);
    border-color: rgba(229, 57, 53, 0.35);
    color: #ef9a9a;
}

.project-card:hover .proj-tag.proj-tag-accent {
    border-color: rgba(229, 57, 53, 0.6);
    color: #ff8a80;
}

/* --- Music Player Widget --- */
.music-player {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px 10px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    cursor: none;
    min-width: 280px;
    max-width: 340px;
}

.mp-cover {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.mp-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mp-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp-artist {
    font-size: 0.68rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp-progress-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.mp-time {
    font-size: 0.6rem;
    color: var(--text-muted);
    min-width: 28px;
    font-variant-numeric: tabular-nums;
}

.mp-time:last-child {
    text-align: right;
}

.mp-progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    pointer-events: auto;
}

.mp-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-color);
    border-radius: 2px;
    transition: width 0.15s linear;
    box-shadow: 0 0 6px rgba(229, 57, 53, 0.4);
}

.mp-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 2px;
}

.mp-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
    cursor: none;
}

.mp-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
}

.mp-btn-play {
    color: var(--text-main);
    background: rgba(229, 57, 53, 0.15);
    width: 32px;
    height: 32px;
    border: 1px solid rgba(229, 57, 53, 0.25);
}

.mp-btn-play:hover {
    background: rgba(229, 57, 53, 0.3);
    border-color: rgba(229, 57, 53, 0.5);
}

.mp-volume {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
}

.mp-volume-icon {
    color: var(--text-muted);
    flex-shrink: 0;
}

.mp-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 50px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    pointer-events: auto;
}

.mp-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 4px rgba(229, 57, 53, 0.5);
    cursor: pointer;
    margin-top: -3.5px;
}

.mp-volume-slider::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-color);
    border: none;
    box-shadow: 0 0 4px rgba(229, 57, 53, 0.5);
    cursor: pointer;
}

.mp-volume-slider::-webkit-slider-runnable-track {
    height: 3px;
    border-radius: 2px;
}

.mp-volume-slider::-moz-range-track {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

/* --- Hero Staggered Entry Animation --- */
.hero-stagger {
    padding: 3rem 2rem;
    border-radius: 24px;
    max-width: 900px;
    width: 95%;
}

.hero-anim {
    opacity: 0;
    transform: translateY(25px);
    animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-anim-1 { animation-delay: 3.2s; }
.hero-anim-2 { animation-delay: 3.5s; }
.hero-anim-3 { animation-delay: 3.8s; }
.hero-anim-4 { animation-delay: 4.1s; }

@keyframes hero-rise {
    to { opacity: 1; transform: translateY(0); }
}

/* --- Tooltips on Tech Tags --- */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(10, 10, 12, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.68rem;
    font-family: 'Segoe UI', sans-serif;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 100;
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* --- Section Dividers --- */
.section-divider {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.divider-line {
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(229, 57, 53, 0.4), transparent);
    opacity: 0;
    animation: divider-fade 0.8s ease forwards;
}

@keyframes divider-fade {
    to { opacity: 1; }
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    border-color: rgba(229, 57, 53, 0.5);
    color: var(--accent-color);
    background: rgba(229, 57, 53, 0.08);
}

/* --- Footer --- */
.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 5% 2rem;
    margin-top: 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-logo {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    width: 100%;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.72rem;
    margin-top: 0.2rem;
}

.footer-updated {
    font-style: italic;
}

/* --- Mobile Hamburger Menu --- */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
    cursor: none;
    z-index: 1001;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    border-radius: 1px;
    transition: all 0.3s ease;
}

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

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

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

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-links,
    .nav-actions {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 12, 0.96);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 999;
    }

    .nav-links {
        height: 100vh;
        padding-top: 80px;
    }

    .nav-actions {
        height: auto;
        position: fixed;
        bottom: 60px;
        top: auto;
        padding: 1rem;
    }

    .nav-links.mobile-open,
    .nav-actions.mobile-open {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li a {
        font-size: 1.5rem;
        font-weight: 600;
    }

    .hero {
        padding: 100px 16px 60px;
    }

    .hero .glass-container,
    .hero-stagger {
        padding: 2rem 1.2rem;
        width: 100%;
    }

    h1 {
        font-size: 1.6rem !important;
    }

    .hero-description {
        font-size: 0.95rem;
    }

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

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

    .projects-section {
        padding: 3rem 4%;
    }

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

    .coming-soon-card {
        padding: 1.5rem;
    }

    .music-player {
        bottom: 12px;
        left: 12px;
        right: 12px;
        min-width: unset;
        max-width: unset;
    }

    .back-to-top {
        bottom: 80px;
        right: 16px;
    }

    .modal-content {
        width: 95%;
        padding: 2rem 1.2rem;
        max-height: 90vh;
    }

    .modal-gallery {
        grid-template-columns: 1fr;
    }

    .social-grid {
        flex-direction: column;
        gap: 1rem;
    }

    [data-tooltip]::after {
        display: none;
    }

    .footer-links {
        gap: 1.5rem;
    }

    /* Hide custom cursor on touch devices */
    #cursor-dot, #cursor-ring {
        display: none !important;
    }
    body {
        cursor: auto !important;
    }
    *, *::before, *::after {
        cursor: auto !important;
    }
}

@media (max-width: 400px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .mp-volume {
        display: none;
    }
}