/* ===== CSS Variables & Reset ===== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: rgba(17, 17, 24, 0.6);
    --border-glass: rgba(255, 255, 255, 0.06);
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-pink: #ec4899;
    --accent-cyan: #06b6d4;
    --gradient-primary: linear-gradient(135deg, #8b5cf6, #3b82f6);
    --gradient-accent: linear-gradient(135deg, #ec4899, #8b5cf6);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-scale: 1;
}

/* ===== Light Mode ===== */
body.light-mode {
    --bg-primary: #f5f5f7;
    --bg-secondary: #e8e8ed;
    --bg-card: rgba(255, 255, 255, 0.7);
    --border-glass: rgba(0, 0, 0, 0.08);
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5a;
    --text-muted: #6a6a7a;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

body.light-mode .orb { opacity: 0.15; }
body.light-mode .navbar.scrolled { background: rgba(245, 245, 247, 0.85); }
body.light-mode .mobile-menu { background: rgba(245, 245, 247, 0.95); }
body.light-mode .name-line {
    background: linear-gradient(135deg, #1a1a2e 0%, #8b5cf6 50%, #3b82f6 100%);
    -webkit-background-clip: text; background-clip: text;
}
body.light-mode .nav-toggle span { background: var(--text-primary); }
body.light-mode .timeline-dot { border-color: var(--bg-primary); }
body.light-mode .skill-tags span { background: rgba(139, 92, 246, 0.08); }
body.light-mode .project-tech span { background: rgba(139, 92, 246, 0.06); }

/* ===== Custom Cursor ===== */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-purple);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-ring {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.15s ease-out;
}

.cursor-ring.hover {
    width: 52px;
    height: 52px;
    border-color: rgba(139, 92, 246, 0.6);
    background: rgba(139, 92, 246, 0.05);
}

.cursor-trail {
    width: 4px;
    height: 4px;
    background: rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9997;
}

/* ===== Music Toggle ===== */
.music-toggle {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 900;
    transition: var(--transition);
    color: var(--text-muted);
}

.music-toggle:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    transform: scale(1.1);
}

.music-toggle.playing { color: var(--accent-purple); }
.music-toggle.playing .music-bars span { animation-play-state: running; }

.music-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 16px;
}

.music-bars span {
    width: 3px;
    background: currentColor;
    border-radius: 1px;
    animation: musicBar 0.8s ease-in-out infinite;
    animation-play-state: paused;
}

.music-bars span:nth-child(1) { height: 6px; animation-delay: 0s; }
.music-bars span:nth-child(2) { height: 12px; animation-delay: 0.2s; }
.music-bars span:nth-child(3) { height: 8px; animation-delay: 0.4s; }
.music-bars span:nth-child(4) { height: 14px; animation-delay: 0.1s; }

@keyframes musicBar {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1); }
}

/* ===== Jimmy AI Assistant ===== */
.jimmy-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    transition: var(--transition);
    font-size: 28px;
    animation: jimmyBounce 3s ease-in-out infinite;
}

.jimmy-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(139, 92, 246, 0.5);
}

.jimmy-btn.active { animation: none; }

@keyframes jimmyBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.jimmy-chat {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 360px;
    max-height: 500px;
    border-radius: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.jimmy-chat.open { display: flex; animation: chatOpen 0.3s ease; }

@keyframes chatOpen {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.jimmy-header {
    padding: 16px 20px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.jimmy-header span:first-child { font-size: 24px; }
.jimmy-header .jimmy-name { color: #fff; font-weight: 600; font-size: 15px; }
.jimmy-header .jimmy-status { color: rgba(255,255,255,0.7); font-size: 12px; }

.jimmy-close {
    margin-left: auto;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-size: 20px;
    padding: 4px;
    line-height: 1;
}

.jimmy-close:hover { color: #fff; }

.jimmy-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 340px;
    min-height: 200px;
}

.jimmy-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
    animation: msgIn 0.3s ease;
}

@keyframes msgIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.jimmy-msg.bot {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.jimmy-msg.user {
    background: var(--gradient-primary);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.jimmy-input-wrap {
    padding: 12px 16px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 8px;
}

.jimmy-input {
    flex: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
    transition: var(--transition);
}

.jimmy-input:focus { border-color: var(--accent-purple); }

.jimmy-send {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.jimmy-send:hover { transform: scale(1.05); }

.jimmy-typing {
    display: flex;
    gap: 4px;
    padding: 10px 14px;
    align-self: flex-start;
}

.jimmy-typing span {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingDot 1.2s infinite;
}

.jimmy-typing span:nth-child(2) { animation-delay: 0.2s; }
.jimmy-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-4px); }
}

/* ===== Font Scale ===== */
body { font-size: calc(16px * var(--font-scale)); }

/* ===== Enhanced Animations ===== */
@keyframes glowPulse {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.3)); }
    50% { filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.6)); }
}

.project-card:hover .project-image img { filter: brightness(1.1); }

.skill-card:hover { transform: translateY(-8px) !important; }

.hero-social-strip a:hover svg { animation: glowPulse 1.5s ease-in-out infinite; }

/* Mobile hide custom cursor */
@media (max-width: 768px) {
    .cursor-dot, .cursor-ring, .cursor-trail { display: none; }
    .jimmy-chat { width: calc(100vw - 32px); right: 16px; }
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.highlight {
    color: var(--accent-purple);
    font-weight: 500;
}

/* ===== Ambient Gradient Orbs ===== */
.gradient-orbs {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 70%);
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent 70%);
    top: 40%;
    right: -10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2), transparent 70%);
    bottom: -5%;
    left: 30%;
    animation-delay: -10s;
}

.orb-4 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2), transparent 70%);
    top: 60%;
    left: -5%;
    animation-delay: -15s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(40px, 30px) scale(1.02); }
}

/* ===== Particles Canvas ===== */
#particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ===== Glass Card ===== */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.08), var(--glass-shadow);
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 5%;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 5%;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition);
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-resume-btn {
    padding: 0.5rem 1.25rem !important;
    border: 1.5px solid var(--accent-purple) !important;
    border-radius: 50px;
    color: var(--accent-purple) !important;
    font-weight: 500;
}

.nav-resume-btn::after {
    display: none !important;
}

.nav-resume-btn:hover {
    background: rgba(139, 92, 246, 0.1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-menu a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.mobile-menu a:hover {
    color: var(--accent-purple);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 0 5%;
}

.hero-content {
    max-width: 800px;
    text-align: center;
}

.hero-greeting {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent-purple);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

.name-line {
    background: linear-gradient(135deg, #e4e4e7 0%, #8b5cf6 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shimmer 4s ease-in-out infinite, fadeInUp 0.8s ease forwards 0.4s;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    min-height: 2.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

.cursor {
    color: var(--accent-purple);
    animation: blink 1s step-end infinite;
    font-weight: 300;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1s;
}

.hero-social-strip {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1.2s;
}

.hero-social-strip a {
    color: var(--text-muted);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.hero-social-strip a svg {
    width: 22px;
    height: 22px;
}

.hero-social-strip a:hover {
    color: var(--accent-purple);
    transform: translateY(-3px);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1.4s;
}

.hero-scroll span {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--accent-purple);
    border-radius: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(12px); opacity: 0.3; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(139, 92, 246, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: var(--transition);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    color: var(--accent-purple);
    border: 1.5px solid var(--accent-purple);
}

.btn-outline:hover {
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
}

/* ===== Sections ===== */
.section {
    position: relative;
    z-index: 1;
    padding: 8rem 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 4rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
}

.section-title.visible {
    animation: fadeInUp 0.6s ease forwards;
}

.title-number {
    color: var(--accent-purple);
    font-size: 0.9em;
    font-weight: 600;
    margin-right: 0.5rem;
}

/* ===== About Section ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.image-frame {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
}

.image-frame::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: var(--radius);
    z-index: -1;
    opacity: 0.5;
    transition: var(--transition);
}

.image-frame:hover::before {
    opacity: 0.8;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    border: 3px solid var(--glass-border);
    transition: var(--transition);
}

.image-frame:hover img {
    filter: brightness(1.05);
    transform: scale(1.02);
}

.about-text .glass-card {
    padding: 2.5rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    -webkit-text-fill-color: #fff;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.8), 0 0 40px rgba(139, 92, 246, 0.4), 0 0 60px rgba(59, 130, 246, 0.3);
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.5));
    animation: statGlow 2s ease-in-out infinite alternate;
}

@keyframes statGlow {
    0% { text-shadow: 0 0 20px rgba(139, 92, 246, 0.8), 0 0 40px rgba(139, 92, 246, 0.4); }
    100% { text-shadow: 0 0 30px rgba(59, 130, 246, 0.9), 0 0 60px rgba(139, 92, 246, 0.6), 0 0 80px rgba(236, 72, 153, 0.3); }
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.stat {
    position: relative;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.15);
    transition: var(--transition);
}

.stat:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

/* ===== Experience / Timeline ===== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-purple), var(--accent-blue), transparent);
}

.timeline-item {
    position: relative;
    padding: 2rem;
    margin-bottom: 1.5rem;
    margin-left: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
}

.timeline-item.visible {
    animation: fadeInUp 0.5s ease forwards;
}

.timeline-dot {
    position: absolute;
    left: -2.35rem;
    top: 2.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-purple);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--accent-purple);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.timeline-item h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.timeline-item h4 {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1rem;
}

.timeline-item ul {
    list-style: none;
}

.timeline-item li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.timeline-item li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    background: var(--accent-purple);
    border-radius: 50%;
    opacity: 0.6;
}

/* ===== Skills Section ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.skill-card {
    padding: 2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.skill-card.visible {
    animation: fadeInUp 0.5s ease forwards;
}

.skill-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.25rem;
    color: var(--accent-purple);
    transition: var(--transition);
}

.skill-card:hover .skill-icon {
    color: var(--accent-blue);
    transform: scale(1.1);
}

.skill-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.skill-tags span {
    padding: 0.35rem 0.85rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.skill-card:hover .skill-tags span {
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--text-primary);
}

/* ===== Projects Section ===== */
.projects-grid {
    display: grid;
    gap: 2rem;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.project-card.visible {
    animation: fadeInUp 0.6s ease forwards;
}

.project-card:nth-child(even) {
    direction: rtl;
}

.project-card:nth-child(even) > * {
    direction: ltr;
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.project-card:hover .project-placeholder {
    transform: scale(1.05);
}

.project-placeholder svg {
    color: rgba(255, 255, 255, 0.3);
}

.gradient-1 {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
}

.gradient-2 {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(139, 92, 246, 0.2));
}

.gradient-3 {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.2));
}

.gradient-4 {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(6, 182, 212, 0.2));
}

.project-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.project-label {
    font-size: 0.8rem;
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 0.75rem;
}

.project-links a {
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
}

.project-links a svg {
    width: 20px;
    height: 20px;
}

.project-links a:hover {
    color: var(--accent-purple);
    transform: translateY(-2px);
}

.project-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.project-card:hover .project-info h3 {
    color: var(--accent-purple);
}

.project-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    padding: 0.3rem 0.75rem;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: 50px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-body);
}

/* ===== Other Projects Grid ===== */
.other-projects-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin: 5rem 0 2.5rem;
    color: var(--text-primary);
}

.other-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.other-project-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.other-project-card.visible {
    animation: fadeInUp 0.5s ease forwards;
}

.other-project-card:hover {
    transform: translateY(-8px);
}

.other-project-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.folder-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-purple);
}

.other-project-top a {
    color: var(--text-muted);
    transition: var(--transition);
    display: flex;
}

.other-project-top a svg {
    width: 20px;
    height: 20px;
}

.other-project-top a:hover {
    color: var(--accent-purple);
}

.other-project-card h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.other-project-card:hover h4 {
    color: var(--accent-purple);
}

.other-project-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

/* ===== Contact Section ===== */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-text.glass-card {
    padding: 3rem;
}

.contact-text h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-text > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
}

.contact-item:hover {
    color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.05);
}

.contact-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ===== Footer ===== */
.footer {
    position: relative;
    z-index: 1;
    padding: 2rem 5%;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    gap: 1.25rem;
}

.footer-socials a {
    color: var(--text-muted);
    transition: var(--transition);
    display: flex;
}

.footer-socials a:hover {
    color: var(--accent-purple);
    transform: translateY(-3px);
}

/* ===== Scroll Reveal ===== */
.about-grid,
.contact-wrapper {
    opacity: 0;
    transform: translateY(30px);
}

.about-grid.visible,
.contact-wrapper.visible {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== Selection ===== */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: var(--text-primary);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.5);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .project-card {
        grid-template-columns: 1fr;
    }

    .project-card:nth-child(even) {
        direction: ltr;
    }

    .project-placeholder {
        min-height: 200px;
    }

    .other-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 5rem 0;
    }

    .hero-scroll {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .about-stats {
        justify-content: center;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-item {
        margin-left: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .other-projects-grid {
        grid-template-columns: 1fr;
    }

    .hero-name {
        font-size: 2.75rem;
    }

    .contact-text.glass-card {
        padding: 2rem 1.5rem;
    }

    .about-stats {
        flex-wrap: wrap;
    }
}

/* ========================================
   ENHANCED ANIMATIONS & DECORATIVE EFFECTS
   ======================================== */

/* ===== Scroll Progress Bar ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #3b82f6, #ec4899, #06b6d4, #8b5cf6);
    background-size: 300% 100%;
    animation: progressGradient 3s linear infinite;
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.8), 0 0 20px rgba(139, 92, 246, 0.4);
}

@keyframes progressGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* ===== Animated Gradient Borders on Glass Cards ===== */
.glass-card {
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: conic-gradient(from var(--card-angle, 0deg), #8b5cf6, #3b82f6, #ec4899, #06b6d4, #8b5cf6);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: rotateBorder 4s linear infinite;
}

.glass-card:hover::before {
    opacity: 0.6;
}

@keyframes rotateBorder {
    0% { --card-angle: 0deg; filter: hue-rotate(0deg); }
    100% { --card-angle: 360deg; filter: hue-rotate(360deg); }
}

@property --card-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* ===== Neon Glow on Section Titles ===== */
.section-title {
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.section-title.visible {
    animation: fadeInUp 0.6s ease forwards, titleGlow 3s ease-in-out infinite alternate 0.6s;
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 10px rgba(139, 92, 246, 0.3), 0 0 20px rgba(139, 92, 246, 0.1); }
    100% { text-shadow: 0 0 20px rgba(139, 92, 246, 0.5), 0 0 40px rgba(59, 130, 246, 0.3), 0 0 60px rgba(139, 92, 246, 0.1); }
}

.title-number {
    animation: numberPulse 2s ease-in-out infinite;
}

@keyframes numberPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ===== Enhanced Hero Animations ===== */
.hero-name {
    position: relative;
}

.name-line {
    animation: shimmer 4s ease-in-out infinite, fadeInUp 0.8s ease forwards 0.4s, textGlitch 8s ease-in-out infinite;
}

@keyframes textGlitch {
    0%, 2%, 4%, 96%, 98%, 100% { transform: translate(0); filter: none; }
    2.5% { transform: translate(-2px, 1px); filter: hue-rotate(90deg); }
    3.5% { transform: translate(2px, -1px); filter: hue-rotate(-90deg); }
}

.hero-greeting {
    position: relative;
}

.hero-greeting::before,
.hero-greeting::after {
    content: '//';
    color: rgba(139, 92, 246, 0.3);
    margin: 0 0.5rem;
    animation: fadeFlicker 3s ease-in-out infinite;
}

@keyframes fadeFlicker {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* ===== Floating Decorative Shapes ===== */
.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(139, 92, 246, 0.15);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphFloat 8s ease-in-out infinite;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 25%;
    left: 8%;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(59, 130, 246, 0.12);
    animation: morphFloat 10s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes morphFloat {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(0deg) translateY(0); }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; transform: rotate(90deg) translateY(-20px); }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; transform: rotate(180deg) translateY(0); }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; transform: rotate(270deg) translateY(20px); }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(360deg) translateY(0); }
}

/* ===== Enhanced Button Effects ===== */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    30%, 100% { transform: translateX(100%) rotate(45deg); }
}

.btn:active {
    transform: scale(0.95) !important;
}

.btn-outline {
    position: relative;
    overflow: hidden;
}

.btn-outline::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-outline:hover::after {
    opacity: 1;
}

/* ===== 3D Tilt Card Effect ===== */
.skill-card,
.project-card,
.other-project-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.skill-card:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(-2deg) !important;
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15), 0 0 30px rgba(139, 92, 246, 0.08) !important;
}

.project-card:hover {
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.2), 0 0 40px rgba(139, 92, 246, 0.08) !important;
}

.other-project-card:hover {
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15), 0 0 30px rgba(139, 92, 246, 0.08) !important;
}

/* ===== Enhanced Skill Card Icons ===== */
.skill-card:hover .skill-icon {
    animation: iconSpin 0.6s ease;
}

@keyframes iconSpin {
    0% { transform: scale(1) rotateY(0); }
    50% { transform: scale(1.2) rotateY(180deg); }
    100% { transform: scale(1.1) rotateY(360deg); }
}

/* ===== Skill Tags Shimmer ===== */
.skill-tags span {
    position: relative;
    overflow: hidden;
}

.skill-tags span::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), transparent);
    animation: tagShimmer 3s ease-in-out infinite;
}

@keyframes tagShimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.skill-tags span:nth-child(2)::before { animation-delay: 0.2s; }
.skill-tags span:nth-child(3)::before { animation-delay: 0.4s; }
.skill-tags span:nth-child(4)::before { animation-delay: 0.6s; }
.skill-tags span:nth-child(5)::before { animation-delay: 0.8s; }
.skill-tags span:nth-child(6)::before { animation-delay: 1s; }

/* ===== Enhanced Timeline ===== */
.timeline::before {
    background: linear-gradient(to bottom, #8b5cf6, #3b82f6, #ec4899, #06b6d4, transparent);
    width: 3px;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4), 0 0 20px rgba(139, 92, 246, 0.2);
}

.timeline-dot {
    animation: dotPulse 2s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.4), 0 0 24px rgba(139, 92, 246, 0.2);
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 12px rgba(139, 92, 246, 0.4), 0 0 24px rgba(139, 92, 246, 0.2); transform: scale(1); }
    50% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.6), 0 0 40px rgba(139, 92, 246, 0.3); transform: scale(1.3); }
}

.timeline-item:hover {
    transform: translateX(8px) !important;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.15), -4px 0 20px rgba(139, 92, 246, 0.1) !important;
}

/* ===== Animated Profile Image ===== */
.image-frame {
    position: relative;
}

.image-frame::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: var(--radius);
    background: conic-gradient(from 0deg, #8b5cf6, #3b82f6, #ec4899, #06b6d4, #8b5cf6);
    z-index: -2;
    animation: rotateImageBorder 4s linear infinite;
    opacity: 0.6;
}

@keyframes rotateImageBorder {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.image-frame:hover img {
    transform: scale(1.05) rotate(2deg);
}

/* ===== Contact Section Enhancements ===== */
.contact-item {
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 2px;
}

.contact-item:hover::before {
    transform: scaleY(1);
}

.contact-item:hover {
    padding-left: 1.5rem;
}

.contact-text h3 {
    animation: gradientShift 4s ease-in-out infinite;
    background-size: 200% auto;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* ===== Footer Enhancements ===== */
.footer {
    border-top: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.4), rgba(59, 130, 246, 0.4), transparent) 1;
}

.footer-socials a:hover {
    animation: socialBounce 0.5s ease;
}

@keyframes socialBounce {
    0%, 100% { transform: translateY(-3px); }
    25% { transform: translateY(-8px) rotate(-5deg); }
    75% { transform: translateY(-5px) rotate(5deg); }
}

/* ===== Mouse Trail Dots ===== */
.trail-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.5);
    pointer-events: none;
    z-index: 9996;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ===== Ripple Click Effect ===== */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.3);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
    z-index: 9995;
}

@keyframes rippleEffect {
    to { transform: scale(4); opacity: 0; }
}

/* ===== Floating Sparkles ===== */
.sparkle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9994;
    animation: sparkleFloat 1s ease-out forwards;
}

@keyframes sparkleFloat {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-40px) scale(0); }
}

/* ===== Section Reveal Animations ===== */
.skill-card.visible {
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    0% { opacity: 0; transform: translateY(40px) scale(0.8); }
    60% { transform: translateY(-5px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.other-project-card.visible {
    animation: slideInRotate 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideInRotate {
    0% { opacity: 0; transform: translateY(40px) rotate(-3deg); }
    100% { opacity: 1; transform: translateY(0) rotate(0deg); }
}

.project-card.visible {
    animation: fadeInScale 0.7s ease forwards;
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: translateY(40px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.timeline-item.visible {
    animation: slideInLeft 0.6s ease forwards;
}

@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(-30px) translateY(20px); }
    100% { opacity: 1; transform: translateX(0) translateY(0); }
}

/* ===== Animated Section Dividers ===== */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), rgba(59, 130, 246, 0.5), transparent);
    animation: dividerPulse 3s ease-in-out infinite;
}

@keyframes dividerPulse {
    0%, 100% { width: 200px; opacity: 0.5; }
    50% { width: 400px; opacity: 1; }
}

/* ===== Navbar Logo Animation ===== */
.nav-logo {
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.nav-logo:hover {
    animation: logoSpin 0.5s ease;
}

@keyframes logoSpin {
    0% { transform: rotateY(0); }
    100% { transform: rotateY(360deg); }
}

/* ===== Enhanced Nav Link Hover ===== */
.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--accent-purple);
    border-radius: 50%;
    transform: translateX(-50%) scale(0);
    transition: transform 0.3s ease;
}

.nav-links a:hover::before {
    transform: translateX(-50%) scale(1);
}

/* ===== Project Image Overlay ===== */
.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image::after {
    opacity: 1;
}

/* ===== Enhanced Orb Animations ===== */
.orb-1 { animation: float 20s ease-in-out infinite, orbPulse 5s ease-in-out infinite; }
.orb-2 { animation: float 25s ease-in-out infinite reverse, orbPulse 7s ease-in-out infinite 2s; }
.orb-3 { animation: float 22s ease-in-out infinite, orbPulse 6s ease-in-out infinite 1s; }
.orb-4 { animation: float 18s ease-in-out infinite reverse, orbPulse 8s ease-in-out infinite 3s; }

@keyframes orbPulse {
    0%, 100% { opacity: 0.4; filter: blur(120px); }
    50% { opacity: 0.6; filter: blur(100px); }
}

/* ===== Animated Background Noise ===== */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.015;
    pointer-events: none;
    z-index: 0;
}

/* ===== Hero CTA Button Glow ===== */
.hero-cta .btn-primary {
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3), 0 0 40px rgba(139, 92, 246, 0.15);
    animation: ctaGlow 2s ease-in-out infinite alternate;
}

@keyframes ctaGlow {
    0% { box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3), 0 0 40px rgba(139, 92, 246, 0.15); }
    100% { box-shadow: 0 6px 30px rgba(139, 92, 246, 0.5), 0 0 60px rgba(59, 130, 246, 0.25); }
}

/* ===== Folder Icon Hover ===== */
.other-project-card:hover .folder-icon {
    animation: folderOpen 0.5s ease;
    color: var(--accent-blue);
}

@keyframes folderOpen {
    0% { transform: scale(1) rotate(0); }
    50% { transform: scale(1.2) rotate(-10deg); }
    100% { transform: scale(1) rotate(0); }
}

/* ===== Enhanced Scroll Indicator ===== */
.scroll-indicator {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { border-color: var(--text-muted); }
    50% { border-color: var(--accent-purple); box-shadow: 0 0 10px rgba(139, 92, 246, 0.3); }
}

/* ===== Typing Cursor Glow ===== */
.cursor {
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.8);
}

/* ===== Project Tech Tags Hover ===== */
.project-tech span:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    color: var(--accent-purple);
    transform: translateY(-2px);
}

/* ===== About Section Glass Card Entrance ===== */
.about-grid.visible {
    animation: fadeInUp 0.8s ease forwards;
}

.about-grid.visible .about-image {
    animation: zoomIn 0.8s ease forwards 0.2s;
    opacity: 0;
}

@keyframes zoomIn {
    0% { opacity: 0; transform: scale(0.8) rotate(-5deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.about-grid.visible .about-text {
    animation: slideInRight 0.8s ease forwards 0.4s;
    opacity: 0;
}

@keyframes slideInRight {
    0% { opacity: 0; transform: translateX(40px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* ===== Enhanced Selection ===== */
::selection {
    background: rgba(139, 92, 246, 0.4);
    color: #fff;
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}

/* ===== Light Mode Stat Visibility ===== */
body.light-mode .stat-number {
    color: #4c1d95;
    -webkit-text-fill-color: #4c1d95;
    text-shadow: 0 0 15px rgba(139, 92, 246, 0.4), 0 0 30px rgba(139, 92, 246, 0.2);
}
