:root {
    --primary-color: #4f46e5;
    --secondary-color: #ec4899;
    --accent-color: #f59e0b;
    --bg-dark: #f8fafc;
    --bg-light: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --gradient-1: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
    --gradient-2: linear-gradient(135deg, #fbbf24 0%, #fb7185 100%);
    --shadow-color: rgba(79, 70, 229, 0.1);
}

[data-theme="dark"] {
    --primary-color: #818cf8;
    --secondary-color: #f472b6;
    --accent-color: #fbbf24;
    --bg-dark: #0f172a;
    --bg-light: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #d946ef 100%);
    --gradient-2: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --shadow-color: rgba(129, 140, 248, 0.2);
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #1e293b 0%, #334155 25%, #475569 50%, #64748b 100%);
}

[data-theme="dark"] .skill-tag {
    background: var(--bg-dark);
    color: var(--text-primary);
    border: 1px solid rgba(129, 140, 248, 0.2);
}

[data-theme="dark"] .skill-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

[data-theme="dark"] .code-line {
    background: rgba(30, 41, 59, 0.8);
    color: var(--primary-color);
}

[data-theme="dark"] .hobbies {
    background: #0f172a;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
}

@media (pointer: fine) {
    body {
        cursor: none;
    }
}

.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 212, 255, 0.1);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.3s ease;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .navbar {
    background: rgba(30, 41, 59, 0.9);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 4px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    touch-action: manipulation;
}



.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #fef3c7 0%, #fce7f3 25%, #ddd6fe 50%, #e0e7ff 100%);
    z-index: 1;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at 30% 50%, rgba(129, 140, 248, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(244, 114, 182, 0.1) 0%, transparent 50%);
    animation: float-bg 20s ease-in-out infinite;
}

@keyframes float-bg {
    0%, 100% { transform: translate(-5%, -5%) rotate(0deg); }
    50% { transform: translate(5%, 5%) rotate(180deg); }
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.glitch {
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    color: var(--text-primary);
    text-shadow: 2px 2px 0px rgba(79, 70, 229, 0.2);
}


.subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin: 1rem 0;
    color: var(--text-secondary);
}

.tagline {
    font-size: 1.1rem;
    margin: 2rem 0;
    opacity: 0.8;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn {
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 14px 0 var(--shadow-color);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .btn-secondary {
    background: var(--bg-light);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.hero-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.6;
}

.floating-code {
    position: absolute;
    width: 100%;
    height: 100%;
}

.code-line {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary-color);
    white-space: nowrap;
    animation: float 20s infinite linear;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.code-line:nth-child(1) { top: 10%; left: -100%; animation-delay: 0s; }
.code-line:nth-child(2) { top: 30%; left: -100%; animation-delay: 4s; }
.code-line:nth-child(3) { top: 50%; left: -100%; animation-delay: 8s; }
.code-line:nth-child(4) { top: 70%; left: -100%; animation-delay: 12s; }
.code-line:nth-child(5) { top: 90%; left: -100%; animation-delay: 16s; }

@keyframes float {
    to {
        transform: translateX(calc(100vw + 100%));
    }
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about {
    padding: 5rem 0;
    background: var(--bg-light);
    position: relative;
    z-index: 2;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.experience-card, .education-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 1.5rem;
    border: 1px solid rgba(79, 70, 229, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .experience-card,
[data-theme="dark"] .education-card {
    background: var(--bg-light);
    border: 1px solid rgba(129, 140, 248, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.experience-card h3, .education-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.timeline-item span {
    display: block;
}

.company, .degree {
    font-weight: 600;
}

.duration {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.institute {
    color: var(--text-secondary);
    font-size: 0.9rem;
    width: 100%;
    margin-top: 0.5rem;
}

.skill-orbit {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    touch-action: pan-x pan-y;
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    box-shadow: 0 0 30px var(--shadow-color);
    padding: 8px;
    text-align: center;
    line-height: 1.1;
}

.orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin: -30px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    animation: orbit 20s linear infinite;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    will-change: transform;
    backface-visibility: hidden;
}

[data-theme="dark"] .orbit-item {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.orbit-item:nth-child(2) { animation-delay: -3.33s; }
.orbit-item:nth-child(3) { animation-delay: -6.67s; }
.orbit-item:nth-child(4) { animation-delay: -10s; }
.orbit-item:nth-child(5) { animation-delay: -13.33s; }
.orbit-item:nth-child(6) { animation-delay: -16.67s; }
.orbit-item:nth-child(7) { animation-delay: 0s; }

@keyframes orbit {
    from {
        transform: rotate(0deg) translateX(150px) rotate(0deg);
    }
    to {
        transform: rotate(360deg) translateX(150px) rotate(-360deg);
    }
}

@keyframes orbit-mobile {
    from {
        transform: rotate(0deg) translateX(100px) rotate(0deg);
    }
    to {
        transform: rotate(360deg) translateX(100px) rotate(-360deg);
    }
}

.skills {
    padding: 5rem 0;
    background: var(--bg-dark);
    position: relative;
    z-index: 2;
}

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

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .skill-category {
    background: var(--bg-light);
    border: 1px solid rgba(129, 140, 248, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.skill-category:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: var(--bg-dark);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.05);
}

.skill-tag.special {
    background: var(--gradient-1);
    border: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.hobbies {
    padding: 5rem 0;
    background: #f9fafb;
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.hobby-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .hobby-card {
    background: var(--bg-light);
    border: 1px solid rgba(129, 140, 248, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hobby-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.hobby-card:hover::before {
    opacity: 0.1;
}

.hobby-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.hobby-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: float-icon 3s ease-in-out infinite;
}

.hobby-card:nth-child(2) .hobby-icon { animation-delay: 0.5s; }
.hobby-card:nth-child(3) .hobby-icon { animation-delay: 1s; }
.hobby-card:nth-child(4) .hobby-icon { animation-delay: 1.5s; }

@keyframes float-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hobby-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.hobby-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact {
    padding: 5rem 0;
    background: var(--bg-light);
}

.contact-content {
    text-align: center;
}

.contact-intro {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

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

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .contact-card {
    background: var(--bg-light);
    border: 1px solid rgba(129, 140, 248, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.contact-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-secondary);
}

.footer {
    background: var(--bg-light);
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .glitch {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .skill-orbit {
        width: 300px;
        height: 300px;
        transform: translateZ(0);
    }
    
    .orbit-item {
        animation: orbit-mobile 15s linear infinite;
        width: 50px;
        height: 50px;
        margin: -25px;
        font-size: 0.7rem;
    }
    
    /* Mobile specific animation delays for even spacing */
    .orbit-item:nth-child(2) { animation-delay: -2.5s; }
    .orbit-item:nth-child(3) { animation-delay: -5s; }
    .orbit-item:nth-child(4) { animation-delay: -7.5s; }
    .orbit-item:nth-child(5) { animation-delay: -10s; }
    .orbit-item:nth-child(6) { animation-delay: -12.5s; }
    .orbit-item:nth-child(7) { animation-delay: 0s; }
    
    .orbit-center {
        width: 80px;
        height: 80px;
        font-size: 0.85rem;
        padding: 6px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .nav-links {
        gap: 0.5rem;
        font-size: 0.8rem;
        margin-right: 1rem;
    }
    
    .theme-toggle {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Disable custom cursor on mobile */
    .cursor,
    .cursor-follower {
        display: none;
    }
}