/* ===== Variables CSS ===== */
:root {
    --bg-light: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #eff6ff 100%);
    --bg-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    --text-light: #1e293b;
    --text-dark: #e2e8f0;
    --text-muted-light: #64748b;
    --text-muted-dark: #cbd5e1;
    --blue: #0ea5e9;
    --cyan: #06b6d4;
    --purple: #8b5cf6;
    --pink: #ec4899;
    --green: #10b981;
    --orange: #f97316;
    --card-light: #ffffff;
    --card-dark: #1e293b;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.3);
}

/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-light);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

body.dark {
    background: var(--bg-dark);
    color: var(--text-dark);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

body.dark ::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0ea5e9, #06b6d4);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0284c7, #0891b2);
}

/* ===== Particles Canvas ===== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ===== Animated Background ===== */
.animated-background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: floatShape 25s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(6, 182, 212, 0.3));
    top: 10%;
    right: -10%;
    animation-duration: 20s;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(236, 72, 153, 0.25));
    top: 40%;
    left: -15%;
    animation-duration: 28s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(59, 130, 246, 0.3));
    bottom: 20%;
    right: 20%;
    animation-duration: 22s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(20, 184, 166, 0.25));
    bottom: 30%;
    left: 5%;
    animation-duration: 26s;
    border-radius: 30%;
}

.shape-5 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(239, 68, 68, 0.2));
    top: 60%;
    right: 10%;
    animation-duration: 24s;
}

.shape-6 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(139, 92, 246, 0.3));
    top: 25%;
    left: 30%;
    animation-duration: 30s;
}

.shape-7 {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(139, 92, 246, 0.2));
    bottom: 5%;
    left: 40%;
    animation-duration: 35s;
}

.shape-8 {
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(59, 130, 246, 0.3));
    top: 5%;
    left: 15%;
    animation-duration: 32s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) scale(0.8) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) scale(1) rotate(90deg);
    }
    50% {
        transform: translate(-20px, 40px) scale(1.2) rotate(180deg);
    }
    75% {
        transform: translate(40px, 20px) scale(0.9) rotate(270deg);
    }
}

/* ===== Gradient Orbs ===== */
.gradient-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.4), transparent);
    top: -20%;
    left: -10%;
    animation-duration: 25s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent);
    bottom: -15%;
    right: -10%;
    animation-duration: 30s;
    animation-delay: -10s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 20s;
    animation-delay: -5s;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(50px, -50px) scale(1.1);
    }
}

/* ===== Floating Elements ===== */
.floating-elements {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.floating-icon {
    position: absolute;
    font-size: 3rem;
    opacity: 0.15;
    animation: floatIcon 6s ease-in-out infinite;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.floating-icon:nth-child(1) { left: 8%; top: 15%; animation-delay: 0s; }
.floating-icon:nth-child(2) { right: 12%; top: 10%; animation-delay: 1s; }
.floating-icon:nth-child(3) { left: 12%; top: 55%; animation-delay: 2s; }
.floating-icon:nth-child(4) { right: 10%; bottom: 25%; animation-delay: 3s; }
.floating-icon:nth-child(5) { left: 48%; top: 8%; animation-delay: 4s; }
.floating-icon:nth-child(6) { right: 25%; top: 40%; animation-delay: 5s; }
.floating-icon:nth-child(7) { left: 25%; bottom: 30%; animation-delay: 1.5s; }
.floating-icon:nth-child(8) { right: 35%; bottom: 15%; animation-delay: 3.5s; }

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-25px) translateX(10px) rotate(5deg);
    }
    50% {
        transform: translateY(-40px) translateX(-5px) rotate(-5deg);
    }
    75% {
        transform: translateY(-15px) translateX(15px) rotate(3deg);
    }
}

/* ===== Custom Cursor (Image Follower) ===== */
body.custom-cursor {
    cursor: none !important;
}

body.custom-cursor *,
body.custom-cursor a,
body.custom-cursor button,
body.custom-cursor input,
body.custom-cursor textarea,
body.custom-cursor select,
body.custom-cursor [role="button"],
body.custom-cursor .timeline-icon,
body.custom-cursor .skill-icon,
body.custom-cursor .contact-card,
body.custom-cursor .nav-link,
body.custom-cursor .theme-toggle,
body.custom-cursor .cta-button,
body.custom-cursor .badge {
    cursor: none !important;
}

/* Custom Cursor Follower with Image */
.cursor-follower {
    width: 32px;
    height: 32px;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease;
    opacity: 0;
    will-change: transform;
}

.cursor-follower.active {
    opacity: 1;
}

.cursor-follower img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

body.dark .navbar.scrolled {
    background: rgba(30, 41, 59, 0.85);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo-img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #0ea5e9, #06b6d4) border-box;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.nav-logo:hover .nav-logo-img {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.5);
}

.nav-logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    transition: width 0.3s ease;
}

.nav-logo:hover::after {
    width: 100%;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-link {
    color: var(--text-muted-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

body.dark .nav-link {
    color: var(--text-muted-dark);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--blue);
}

.nav-link:hover::before {
    width: 100%;
}

.theme-toggle {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(148, 163, 184, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

body.dark .theme-toggle {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(71, 85, 105, 1);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}

.theme-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mobile-menu-container {
    display: none;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.hamburger {
    width: 28px;
    height: 3px;
    background: var(--text-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

body.dark .hamburger {
    background: var(--text-dark);
}

.mobile-menu-btn.active .hamburger:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-btn.active .hamburger:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ===== Utility Classes ===== */
.text-gradient {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ===== Hero Section ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 60rem;
    text-align: center;
}

.animate-on-load > * {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.animate-on-load > *:nth-child(1) { animation-delay: 0.1s; }
.animate-on-load > *:nth-child(2) { animation-delay: 0.2s; }
.animate-on-load > *:nth-child(3) { animation-delay: 0.3s; }
.animate-on-load > *:nth-child(4) { animation-delay: 0.4s; }
.animate-on-load > *:nth-child(5) { animation-delay: 0.5s; }
.animate-on-load > *:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-avatar {
    width: 10rem;
    height: 10rem;
    margin: 0 auto 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px -10px rgba(14, 165, 233, 0.4);
    animation: avatarPulse 3s ease-in-out infinite, avatarFloat 6s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.hero-avatar::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #0ea5e9, #06b6d4, #8b5cf6, #0ea5e9);
    background-size: 300% 300%;
    border-radius: 50%;
    z-index: -1;
    animation: gradientRotate 4s linear infinite;
}

@keyframes gradientRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-avatar:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 30px 80px -10px rgba(14, 165, 233, 0.6);
}

@keyframes avatarPulse {
    0%, 100% {
        box-shadow: 0 20px 60px -10px rgba(14, 165, 233, 0.4);
    }
    50% {
        box-shadow: 0 25px 80px -10px rgba(6, 182, 212, 0.6);
    }
}

@keyframes avatarFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-placeholder {
    font-size: 3rem;
    font-weight: 800;
    color: white;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--text-muted-light);
    font-weight: 300;
    margin-bottom: 2.5rem;
}

body.dark .hero-subtitle {
    color: var(--text-muted-dark);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.6);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

body.dark .badge {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(71, 85, 105, 0.5);
}

.badge:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px -5px rgba(14, 165, 233, 0.3);
}

.badge-icon {
    font-size: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted-light);
    max-width: 45rem;
    margin: 0 auto 3.5rem;
    line-height: 1.8;
}

body.dark .hero-description {
    color: var(--text-muted-dark);
}

.highlight {
    font-weight: 700;
    color: var(--blue);
    position: relative;
}

body.dark .highlight {
    color: #38bdf8;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    box-shadow: 0 10px 30px -5px rgba(14, 165, 233, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #06b6d4, #0ea5e9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button span {
    position: relative;
    z-index: 1;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 50px -10px rgba(14, 165, 233, 0.6);
}

.cta-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.cta-button:hover .cta-arrow {
    transform: translateX(5px);
}

/* ===== Sections ===== */
section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    animation: fadeInUp 0.8s ease backwards;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.375rem;
    color: var(--text-muted-light);
}

body.dark .section-subtitle {
    color: var(--text-muted-dark);
}

/* ===== Timeline Section ===== */
.timeline-section {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

body.dark .timeline-section {
    background: rgba(15, 23, 42, 0.4);
}

.timeline-container {
    max-width: 75rem;
    margin: 0 auto;
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(139, 92, 246, 0.4), 
        rgba(14, 165, 233, 0.4), 
        rgba(16, 185, 129, 0.4)
    );
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 8rem;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-content {
    width: calc(50% - 3rem);
}

.timeline-left {
    text-align: right;
    padding-right: 5rem;
}

.timeline-right {
    margin-left: auto;
    text-align: left;
    padding-left: 5rem;
}

.timeline-card {
    background: var(--card-light);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

body.dark .timeline-card {
    background: var(--card-dark);
    border-color: rgba(71, 85, 105, 0.5);
}

.timeline-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(14, 165, 233, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.15);
}

.timeline-card:hover::before {
    opacity: 1;
}

.card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.timeline-card:hover .card-shine {
    left: 100%;
}

.timeline-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.badge-purple { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.badge-blue { background: linear-gradient(135deg, #0ea5e9, #06b6d4); }
.badge-green { background: linear-gradient(135deg, #10b981, #14b8a6); }

.timeline-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

body.dark .timeline-title {
    color: var(--text-dark);
}

.timeline-description {
    color: var(--text-muted-light);
    margin-bottom: 1.25rem;
    font-size: 1.0625rem;
}

body.dark .timeline-description {
    color: var(--text-muted-dark);
}

.timeline-list {
    list-style: none;
    padding: 0;
}

.timeline-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted-light);
    font-size: 1rem;
}

body.dark .timeline-list li {
    color: var(--text-muted-dark);
}

.list-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-purple { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.dot-blue { background: linear-gradient(135deg, #0ea5e9, #06b6d4); }
.dot-green { background: linear-gradient(135deg, #10b981, #14b8a6); }

.timeline-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

body.dark .timeline-icon {
    background: var(--card-dark);
}

.timeline-icon:hover {
    transform: translateX(-50%) scale(1.2) rotate(360deg);
}

.icon-purple { background: linear-gradient(135deg, #8b5cf6, #ec4899); color: white; }
.icon-blue { background: linear-gradient(135deg, #0ea5e9, #06b6d4); color: white; }
.icon-green { background: linear-gradient(135deg, #10b981, #14b8a6); color: white; }

.icon-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    animation: iconPulse 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    z-index: -1;
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ===== Skills Section ===== */
.skills-section {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

body.dark .skills-section {
    background: rgba(15, 23, 42, 0.4);
}

.skills-grid {
    max-width: 85rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.skill-card {
    background: var(--card-light);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    min-height: 400px;
}

body.dark .skill-card {
    background: var(--card-dark);
    border-color: rgba(71, 85, 105, 0.5);
}

.skill-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.15);
}

.skill-card:hover .card-shine {
    left: 100%;
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.skill-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.skill-card:hover .skill-icon {
    transform: rotate(360deg) scale(1.1);
}

.icon-bg {
    position: absolute;
    inset: -2px;
    border-radius: 1rem;
    z-index: -1;
    opacity: 0.2;
    animation: iconBgPulse 3s ease-in-out infinite;
}

@keyframes iconBgPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.skill-icon.icon-blue { background: linear-gradient(135deg, #0ea5e9, #06b6d4); color: white; }
.skill-icon.icon-purple { background: linear-gradient(135deg, #8b5cf6, #ec4899); color: white; }
.skill-icon.icon-green { background: linear-gradient(135deg, #10b981, #14b8a6); color: white; }
.skill-icon.icon-orange { background: linear-gradient(135deg, #f97316, #ef4444); color: white; }

.skill-header h3 {
    font-size: 1.75rem;
    font-weight: 800;
}

body.dark .skill-header h3 {
    color: var(--text-dark);
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.0625rem;
    gap: 1rem;
    min-height: 1.5rem;
}

body.dark .skill-info span:first-child {
    color: var(--text-dark);
}

.skill-info span:first-child {
    flex: 1;
    white-space: nowrap;
    overflow: visible;
}

.skill-percent {
    color: var(--text-muted-light);
    font-size: 0.9375rem;
    flex-shrink: 0;
}

body.dark .skill-percent {
    color: var(--text-muted-dark);
}

.skill-bar {
    height: 0.625rem;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}

body.dark .skill-bar {
    background: rgba(71, 85, 105, 0.5);
}

.skill-progress {
    height: 100%;
    border-radius: 9999px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skill-card.visible .skill-progress {
    width: var(--progress);
}

.progress-blue { background: linear-gradient(135deg, #0ea5e9, #06b6d4); }
.progress-purple { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.progress-green { background: linear-gradient(135deg, #10b981, #14b8a6); }
.progress-orange { background: linear-gradient(135deg, #f97316, #ef4444); }

/* ===== Contact Section ===== */
.contact-grid {
    max-width: 60rem;
    margin: 0 auto 5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--card-light);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

body.dark .contact-card {
    background: var(--card-dark);
    border-color: rgba(71, 85, 105, 0.5);
}

.contact-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.2);
}

.contact-card:hover .card-shine {
    left: 100%;
}

.contact-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex-shrink: 0;
}

.contact-card:hover .contact-icon {
    transform: rotate(-15deg) scale(1.15);
    animation: wiggle 0.6s ease;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg) scale(1.15); }
    25% { transform: rotate(-15deg) scale(1.15); }
    50% { transform: rotate(15deg) scale(1.15); }
    75% { transform: rotate(-10deg) scale(1.15); }
}

.contact-icon.icon-linkedin { background: linear-gradient(135deg, #0284c7, #0369a1); color: white; }
.contact-icon.icon-github { background: linear-gradient(135deg, #475569, #1e293b); color: white; }

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

body.dark .contact-info h3 {
    color: var(--text-dark);
}

.contact-info p {
    font-size: 0.9375rem;
    color: var(--text-muted-light);
    word-break: break-all;
}

body.dark .contact-info p {
    color: var(--text-muted-dark);
}

.cta-box {
    max-width: 60rem;
    margin: 0 auto 5rem;
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    padding: 4rem 3rem;
    border-radius: 2rem;
    text-align: center;
    color: white;
    box-shadow: 0 25px 60px -10px rgba(14, 165, 233, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-particles {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.3"/><circle cx="80" cy="40" r="3" fill="white" opacity="0.2"/><circle cx="50" cy="70" r="2" fill="white" opacity="0.4"/><circle cx="10" cy="60" r="1.5" fill="white" opacity="0.3"/><circle cx="90" cy="80" r="2.5" fill="white" opacity="0.2"/></svg>');
    background-size: 200px 200px;
    animation: particlesMove 20s linear infinite;
}

@keyframes particlesMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(200px, 200px); }
}

.cta-box h3 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.cta-box p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.cta-button-white {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: var(--blue);
    padding: 1.25rem 2.5rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.cta-button-white:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.3);
}

.cta-button-white:hover .cta-arrow {
    transform: translateX(5px);
}

.footer {
    text-align: center;
    color: var(--text-muted-light);
    padding-top: 3rem;
}

body.dark .footer {
    color: var(--text-muted-dark);
}

.footer p {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.footer-small {
    font-size: 0.875rem;
    opacity: 0.75;
}

/* ===== Scroll to Top ===== */
.scroll-top {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    color: white;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    box-shadow: 0 10px 30px -5px rgba(14, 165, 233, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-center;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 20px 50px -10px rgba(14, 165, 233, 0.6);
}

.scroll-arrow {
    animation: bounceArrow 2s ease-in-out infinite;
}

@keyframes bounceArrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    body.custom-cursor {
        cursor: auto;
    }
    
    body.custom-cursor a,
    body.custom-cursor button,
    body.custom-cursor input,
    body.custom-cursor textarea,
    body.custom-cursor select,
    body.custom-cursor [role="button"],
    body.custom-cursor .timeline-icon,
    body.custom-cursor .skill-icon,
    body.custom-cursor .contact-card {
        cursor: pointer;
    }
    
    .cursor-follower {
        display: none;
    }
    
    .nav-logo-img {
        width: 2rem;
        height: 2rem;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        padding: 2rem;
        flex-direction: column;
        gap: 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    body.dark .nav-menu {
        background: rgba(30, 41, 59, 0.95);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-container {
        display: flex;
    }

    .timeline-line {
        display: none;
    }

    .timeline-item {
        flex-direction: column;
        margin-bottom: 3rem;
    }

    .timeline-content {
        width: 100%;
        padding: 0 !important;
        text-align: left !important;
    }

    .timeline-icon {
        position: static;
        transform: none;
        margin-bottom: 1.5rem;
    }

    .timeline-icon:hover {
        transform: scale(1.15) rotate(360deg);
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-card {
        min-height: auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .scroll-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 3.5rem;
        height: 3.5rem;
    }

    .floating-icon {
        font-size: 2rem;
        opacity: 0.1;
    }

    .hero-section {
        padding-top: 6rem;
    }

    section {
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .hero-avatar {
        width: 8rem;
        height: 8rem;
    }

    .cta-box {
        padding: 3rem 2rem;
    }

    .skill-card {
        padding: 2rem;
    }

    .timeline-card {
        padding: 2rem;
    }

    .contact-card {
        padding: 1.5rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    .navbar,
    .scroll-top,
    .floating-elements,
    .animated-background,
    .gradient-orbs,
    .cursor-follower,
    #particles-canvas {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .hero-section,
    section {
        page-break-inside: avoid;
    }
}

.footer-small a {
    text-decoration: none;
    color: orange !important;
}

.footer-small a:hover {
    text-decoration: none;
    color: orange !important;
}

.footer-small a:visited {
    text-decoration: none;
    color: orange !important;
}