/* Base Styles */
:root {
    /* Light Theme */
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --bg-color: #ffffff;
    --section-bg: #f9fafb;
    --timeline-color: #d1d5db;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --header-bg: rgba(255, 255, 255, 0.95);
    --nav-link-color: #1f2937;
    --nav-link-hover: #2563eb;
    --logo-bg: #2563eb;
    --logo-color: #ffffff;
    --mobile-menu-bg: #ffffff;
    
    /* Dark Theme - will be applied when .dark class is added to body */
    --dark-bg-color: #0f172a;
    --dark-section-bg: #1e293b;
    --dark-text-color: #f8fafc;
    --dark-light-text: #94a3b8;
    --dark-header-bg: rgba(15, 23, 42, 0.95);
    --dark-nav-link-color: #e2e8f0;
    --dark-nav-link-hover: #60a5fa;
    --dark-logo-bg: #60a5fa;
    --dark-logo-color: #0f172a;
    --dark-mobile-menu-bg: #1e293b;
}

/* Dark theme styles */
body.dark {
    --bg-color: var(--dark-bg-color);
    --section-bg: var(--dark-section-bg);
    --text-color: var(--dark-text-color);
    --light-text: var(--dark-light-text);
    --header-bg: var(--dark-header-bg);
    --nav-link-color: var(--dark-nav-link-color);
    --nav-link-hover: var(--dark-nav-link-hover);
    --logo-bg: var(--dark-logo-bg);
    --logo-color: var(--dark-logo-color);
    --mobile-menu-bg: var(--dark-mobile-menu-bg);
    
    /* Timeline adjustments for dark mode */
    --timeline-color: #334155;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--logo-bg);
    color: var(--logo-color);
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: rotate(15deg);
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

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

.nav-link {
    color: var(--nav-link-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

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

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

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

.theme-toggle {
    background: none;
    border: none;
    color: var(--nav-link-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.05);
}

.dark .theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--nav-link-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero Section */
.hero {
    background-color: var(--dark-bg-color);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Hero Split Layout */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Left Side - Hero Info */
.hero-info {
    position: relative;
    z-index: 3;
    animation: fadeInLeft 1s ease;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #ffffff, #a67fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
}

.tagline {
    font-size: 1.5rem;
    color: #89d4cf;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Tech Orbit Styles */
.hero-tech {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInRight 1s ease;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.tech-orbit {
    position: relative;
    width: 80vw;
    height: 80vw;
    max-width: 500px;
    max-height: 500px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Animated orbit ring with enhanced pulse effect */
.tech-orbit::before {
    content: '';
    position: absolute;
    width: 90%;
    height: 90%;
    border: 2px dashed rgba(110, 69, 226, 0.2);
    border-radius: 50%;
    z-index: 1;
    animation: pulse 4s ease-in-out infinite;
}

/* Add second ring for depth */
.tech-orbit::after {
    content: '';
    position: absolute;
    width: 85%;
    height: 85%;
    border: 1px solid rgba(110, 69, 226, 0.1);
    border-radius: 50%;
    z-index: 1;
    animation: pulse 4s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.2;
        border-color: rgba(110, 69, 226, 0.2);
    }
    50% {
        transform: scale(1.08) rotate(180deg);
        opacity: 0.5;
        border-color: rgba(110, 69, 226, 0.4);
    }
}

.tech-orbit-center {
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #6e45e2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 0 20px rgba(110, 69, 226, 0.6);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: centerGlow 3s ease-in-out infinite;
}

@keyframes centerGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(110, 69, 226, 0.6),
                    0 0 40px rgba(110, 69, 226, 0.3),
                    inset 0 0 20px rgba(255, 255, 255, 0.1);
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        box-shadow: 0 0 40px rgba(110, 69, 226, 0.8),
                    0 0 60px rgba(110, 69, 226, 0.4),
                    inset 0 0 30px rgba(255, 255, 255, 0.2);
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.tech-orbit-center i {
    font-size: 32px;
    color: white;
    animation: rotateIcon 20s linear infinite;
}

@keyframes rotateIcon {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.tech-orbiter {
    position: absolute;
    width: 70px;
    height: 70px;
    will-change: transform;
    z-index: 3;
}

.tech-icon {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3),
                inset 0 0 20px rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.tech-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.tech-icon:hover::before {
    transform: scale(1);
}

/* Glass effect on hover */
.tech-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.tech-icon:hover::after {
    opacity: 1;
}

.tech-icon i {
    font-size: 28px;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Tech icon hover effects with enhanced animations */
.tech-icon:hover {
    background: var(--primary-color);
    transform: scale(1.25) translateZ(20px);
    box-shadow: 0 0 40px rgba(110, 69, 226, 1),
                0 10px 40px rgba(0, 0, 0, 0.4),
                inset 0 0 30px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.tech-icon:hover i {
    transform: scale(1.1) rotate(15deg);
}

/* Individual tech icon colors on hover with enhanced gradients */
.tech-orbiter[data-tech="python"] .tech-icon:hover {
    background: linear-gradient(135deg, #3776ab, #ffd43b);
    box-shadow: 0 0 40px rgba(55, 118, 171, 0.8),
                0 10px 40px rgba(0, 0, 0, 0.4);
}

.tech-orbiter[data-tech="javascript"] .tech-icon:hover {
    background: linear-gradient(135deg, #f7df1e, #f0db4f);
    box-shadow: 0 0 40px rgba(247, 223, 30, 0.8),
                0 10px 40px rgba(0, 0, 0, 0.4);
}

.tech-orbiter[data-tech="database"] .tech-icon:hover {
    background: linear-gradient(135deg, #00758f, #f29111);
    box-shadow: 0 0 40px rgba(0, 117, 143, 0.8),
                0 10px 40px rgba(0, 0, 0, 0.4);
}

.tech-orbiter[data-tech="aws"] .tech-icon:hover {
    background: linear-gradient(135deg, #ff9900, #ff6600);
    box-shadow: 0 0 40px rgba(255, 153, 0, 0.8),
                0 10px 40px rgba(0, 0, 0, 0.4);
}

.tech-orbiter[data-tech="docker"] .tech-icon:hover {
    background: linear-gradient(135deg, #2496ed, #0db7ed);
    box-shadow: 0 0 40px rgba(36, 150, 237, 0.8),
                0 10px 40px rgba(0, 0, 0, 0.4);
}

.tech-orbiter[data-tech="git"] .tech-icon:hover {
    background: linear-gradient(135deg, #f05032, #e84c2f);
    box-shadow: 0 0 40px rgba(240, 80, 50, 0.8),
                0 10px 40px rgba(0, 0, 0, 0.4);
}

.tech-orbiter[data-tech="cloud"] .tech-icon:hover {
    background: linear-gradient(135deg, #4285f4, #34a853);
    box-shadow: 0 0 40px rgba(66, 133, 244, 0.8),
                0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Enhanced tooltip animations */
.tech-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    pointer-events: none;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    top: -100px;
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.9);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.tech-orbiter:hover .tech-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.tech-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 16px;
    height: 16px;
    background: rgba(0, 0, 0, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-tooltip h4 {
    margin: 0 0 8px 0;
    color: #60a5fa;
    font-size: 1.1rem;
}

.tech-tooltip p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.9;
}

/* Loading animation for orbit */
@keyframes fadeInOrbit {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.tech-orbit {
    animation: fadeInOrbit 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 20px;
    }
    
    .tech-orbit {
        width: 70vw;
        height: 70vw;
        max-width: 400px;
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .hero-info {
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .tech-orbit {
        width: 80vw;
        height: 80vw;
        max-width: 350px;
        max-height: 350px;
    }
    
    .tech-orbit-center {
        width: 60px;
        height: 60px;
    }
    
    .tech-orbit-center i {
        font-size: 24px;
    }
    
    .tech-orbiter {
        width: 60px;
        height: 60px;
    }
    
    .tech-icon i {
        font-size: 24px;
    }
    
    .tech-tooltip {
        width: 160px;
        font-size: 0.85rem;
        padding: 10px 12px;
        top: -80px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .btn {
        padding: 0.6rem 1.8rem;
        margin-bottom: 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .tech-orbit {
        width: 85vw;
        height: 85vw;
        max-width: 300px;
        max-height: 300px;
    }
    
    .tech-orbiter {
        width: 50px;
        height: 50px;
    }
    
    .tech-icon i {
        font-size: 20px;
    }
    
    .tech-tooltip {
        width: 140px;
        font-size: 0.8rem;
        top: -70px;
    }
}

@media (max-width: 390px) {
    .container {
        width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: none;
    outline: none;
    margin: 5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    color: white;
    font-size: 1rem;
    letter-spacing: 0.5px;
    font-weight: 600;
    min-width: 160px;
    background: #6e45e2;
    background: linear-gradient(135deg, #6e45e2, #88d3ce);
    border: none;
    box-shadow: 0 4px 15px rgba(110, 69, 226, 0.4);
    position: relative;
    /* Fix for unfilled edges */
    padding: 0.9rem 2.1rem;
    border-radius: 50px;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 6px 20px rgba(110, 69, 226, 0.6);
    background: linear-gradient(135deg, #7d56ea, #98e0db);
    overflow: hidden;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(100, 115, 255, 0.1) 0%, rgba(255, 100, 124, 0.1) 100%);
    pointer-events: none;
}

/* Add floating particles background */
.hero::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: floatBackground 20s linear infinite;
    opacity: 0.3;
    pointer-events: none;
}

@keyframes floatBackground {
    from { transform: translate(0, 0); }
    to { transform: translate(50px, 50px); }
}

/* Profile Wrapper */
.profile-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0 0 2rem;
}

/* Profile Container */
.profile-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Profile Picture */
.profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(110, 68, 226, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(110, 68, 226, 0.3);
    border-color: rgba(110, 68, 226, 0.6);
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-pic:hover img {
    transform: scale(1.1);
}

/* Social Circle */
.social-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-out;
}

.profile-container:hover .social-circle {
    opacity: 1;
}

/* Social Icons */
.social-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6e45e2, #88d3ce);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: auto;
}

/* Position and animate icons */
.profile-container:hover .social-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Social Icons Positioning */
.social-icon:nth-child(1) { /* Top */
    top: 0;
    left: 50%;
    transform: translate(-50%, -100%) scale(0);
}
.social-icon:nth-child(2) { /* Right */
    top: 50%;
    left: 100%;
    transform: translate(0, -50%) scale(0);
}
.social-icon:nth-child(3) { /* Bottom */
    top: 100%;
    left: 50%;
    transform: translate(-50%, 0) scale(0);
}
.social-icon:nth-child(4) { /* Left */
    top: 50%;
    left: 0;
    transform: translate(-100%, -50%) scale(0);
}
.social-icon:nth-child(5) { /* Top Right */
    top: 25%;
    left: 85%;
    transform: translate(-50%, -50%) scale(0);
}

/* Animate on hover */
.profile-container:hover .social-icon:nth-child(1) { 
    transform: translate(-50%, -150%) scale(1);
    transition-delay: 0.1s;
}
.profile-container:hover .social-icon:nth-child(2) { 
    transform: translate(50%, -50%) scale(1);
    transition-delay: 0.2s;
}
.profile-container:hover .social-icon:nth-child(3) { 
    transform: translate(-50%, 50%) scale(1);
    transition-delay: 0.3s;
}
.profile-container:hover .social-icon:nth-child(4) { 
    transform: translate(-150%, -50%) scale(1);
    transition-delay: 0.4s;
}
.profile-container:hover .social-icon:nth-child(5) { 
    transform: translate(-50%, -50%) translate(80px, -80px) scale(1);
    transition-delay: 0.15s;
}

/* Hover effect for social icons */
.social-icon:hover {
    transform: translate(-50%, -50%) scale(1.2) rotate(360deg) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-info {
        max-width: 100%;
        text-align: center;
    }
    
    .profile-wrapper {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
}

/* Sections */
section {
    padding: 5rem 0;
}

section:nth-child(even) {
    background-color: var(--section-bg);
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Timeline */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--timeline-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 70px;
}

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

.timeline-content {
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-item::after {
    content: attr(data-year);
    position: absolute;
    width: 120px;
    background: linear-gradient(135deg, var(--primary-color), #6e45e2);
    color: white;
    text-align: center;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    top: 20px;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(110, 69, 226, 0.4);
}

.timeline-item:nth-child(odd)::after {
    right: -60px;
}

.timeline-item:nth-child(even)::after {
    left: -60px;
}

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

.skill-category {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark .skill-category {
    background: var(--dark-section-bg);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.skill {
    margin-bottom: 1.5rem;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.skill-bar {
    height: 10px;
    background-color: #e5e7eb;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.skill-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    animation: skillShine 2s ease-in-out infinite;
}

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

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #6e45e2);
    border-radius: 5px;
    width: 0;
    transition: width 1.5s ease-in-out;
    position: relative;
}

/* Skills Controls */
.skills-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: center;
    margin: 1.5rem 0 0.5rem;
}

@media (min-width: 768px) {
    .skills-controls {
        grid-template-columns: 1fr auto auto;
    }
}

.skills-search {
    position: relative;
}

.skills-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    opacity: 0.8;
}

.skills-search input {
    width: 100%;
    padding: 0.7rem 0.9rem 0.7rem 2.2rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: var(--bg-color);
    color: var(--text-color);
}

body.dark .skills-search input {
    background: var(--dark-section-bg);
    border-color: #374151;
}

.skills-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-chip {
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(110, 69, 226, 0.35);
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(110, 69, 226, 0.2);
}

.filter-chip.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: transparent;
}

.skills-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-self: end;
}

.skills-sort select {
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: var(--bg-color);
    color: var(--text-color);
}

body.dark .skills-sort select {
    background: var(--dark-section-bg);
    border-color: #374151;
}

/* Category collapse */
.skill-category h3 {
    cursor: pointer;
    position: relative;
    padding-right: 1.25rem;
}

.skill-category h3::after {
    content: '▾';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
    opacity: 0.7;
    color: var(--primary-color);
}

.skill-category.collapsed h3::after {
    transform: translateY(-50%) rotate(-90deg);
}

.skill-category.collapsed .skill {
    display: none;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-stack span {
    background: linear-gradient(135deg, #e0f2fe, #ddd6fe);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-stack span:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Contact Page */
.contact-info {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.contact-info li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info i {
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: #1f2937;
    color: white;
    text-align: center;
    padding: 3rem 0;
}

.social-links {
    margin-bottom: 1.5rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Navigation */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 72px);
        background-color: var(--mobile-menu-bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-link {
        padding: 1rem 0;
        width: 100%;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .theme-toggle {
        margin-left: auto;
        margin-right: 1rem;
    }
    
    .header-content {
        padding: 0.5rem 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline-container::before {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
        padding-left: 70px;
    }
    
    .timeline-item::after {
        left: 15px !important;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
}

/* Debug Info Styles */
.debug-info {
    position: fixed;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 12px;
    z-index: 10000;
}

/* Ensure page starts at top */
html, body {
    scroll-behavior: smooth;
}

/* Prevent any auto-focus that might cause scrolling */
*:focus {
    scroll-margin-top: 100px;
}

/* Fix any potential anchor link scroll positions */
section[id] {
    scroll-margin-top: 80px; /* Height of your fixed header */
}

/* Add this to your main styles.css file */

/* Prevent scroll bounce and ensure page starts at top */
html {
    scroll-behavior: smooth;
    /* Prevent overscroll bounce */
    overscroll-behavior-y: none;
}

body {
    /* Prevent overscroll bounce */
    overscroll-behavior-y: none;
}

/* Prevent any auto-focus that might cause scrolling */
*:focus {
    scroll-margin-top: 100px;
}

/* Ensure sections don't have negative margins that could cause scroll issues */
section {
    overflow: hidden;
    position: relative;
}

/* Fix any potential anchor link scroll positions */
section[id] {
    scroll-margin-top: 80px; /* Height of your fixed header */
}

/* Specific fix for journey section */
.journey-wrapper {
    /* Prevent scroll interference */
    overscroll-behavior: contain;
}

.journey-timeline-track {
    /* Contain scroll within the timeline */
    overscroll-behavior-x: contain;
}