:root {
    --bg-color: #030712;
    --text-color: #f8fafc;
    --text-secondary: #94a3b8;
    --primary-color: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-bg: #111827;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-theme {
    --bg-color: #f8fafc;
    --text-color: #0f172a;
    --text-secondary: #475569;
    --glass-bg: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.08);
    --card-bg: #ffffff;
    --bg-accent: rgba(59, 130, 246, 0.08);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

body {
    --bg-accent: rgba(59, 130, 246, 0.05);
    --shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
    backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    padding: 1rem 10%;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

body.light-theme nav.scrolled {
    background: rgba(248, 250, 252, 0.85);
}

.nav-actions {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

/* Show only on mobile now */
@media (max-width: 768px) {
    .nav-actions {
        display: flex;
    }
}

.theme-toggle {
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-left: 0.5rem;
}

.theme-toggle:hover {
    background: var(--glass-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.theme-toggle .sun-icon {
    display: block;
}

.theme-toggle .moon-icon {
    display: none;
}

body.light-theme .theme-toggle .sun-icon {
    display: none;
}

body.light-theme .theme-toggle .moon-icon {
    display: block;
}

.experience-item {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--glass-border);
    margin-bottom: 3rem;
    transition: var(--transition);
}

.experience-item:hover {
    border-left-color: var(--primary-color);
}

.experience-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--glass-border);
    transition: var(--transition);
}

.experience-item:hover::before {
    border-color: var(--primary-color);
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-glow);
}

.experience-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.experience-meta {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.experience-content {
    color: var(--text-secondary);
    font-size: 1rem;
}

.experience-content ul {
    list-style: none;
    margin-top: 1rem;
}

.experience-content li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.experience-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.client-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.skill-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.skill-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    font-weight: 700;
}

.skill-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 99px;
}

.social-links a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-3px);
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.03em;
    position: relative;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.logo:hover,
.logo:active,
.logo:focus {
    transform: scale(1.02);
    filter: brightness(1.1);
    color: inherit;
}

.logo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: var(--primary-color);
    filter: blur(25px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), #60a5fa);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 30%, var(--bg-accent), transparent 50%),
        radial-gradient(circle at 80% 70%, var(--bg-accent), transparent 50%);
    opacity: 0.6;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    transform: translate(var(--x, 0), var(--y, 0));
    transition: transform 0.2s ease-out;
}

.hero-bg::before,
.hero-bg::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    opacity: 0.4;
}

.hero-bg::before {
    background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.12), transparent 50%);
    animation: aurora 20s linear infinite;
}

.hero-bg::after {
    background: radial-gradient(circle at 70% 70%, rgba(96, 165, 250, 0.1), transparent 50%);
    animation: aurora 15s linear infinite reverse;
}

@keyframes aurora {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

.gradient-text {
    background: linear-gradient(135deg,
            #3b82f6 0%,
            #60a5fa 30%,
            #ffffff 50%,
            #60a5fa 70%,
            #3b82f6 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    animation: textShine 6s linear infinite;
}

body.light-theme .gradient-text {
    background: linear-gradient(135deg,
            #2563eb 0%,
            #3b82f6 30%,
            #60a5fa 50%,
            #3b82f6 70%,
            #2563eb 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
}

@keyframes textShine {
    to {
        background-position: 200% center;
    }
}

.hero-badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    animation: slideUp 0.8s ease-out;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: slideUp 1s ease-out 0.1s backwards;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    animation: slideUp 1s ease-out 0.2s backwards;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 2.5rem;
    animation: slideUp 1s ease-out 0.3s backwards;
    line-height: 1.8;
}

.cta-button {
    padding: 1.25rem 3rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 99px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 15px 35px -5px var(--primary-glow);
    transition: var(--transition);
    animation: slideUp 1s ease-out 0.4s backwards;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px var(--primary-glow);
}

.bg-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: radial-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

body.light-theme .bg-dot {
    opacity: 0.6;
    background-image: radial-gradient(rgba(59, 130, 246, 0.15) 1px, transparent 1px);
}

body.light-theme .bg-glow {
    opacity: 0.4;
    background:
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.1), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.1), transparent 50%);
}

body.light-theme .skill-category,
body.light-theme .project-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.1);
}

/* Sections */
section {
    padding: 120px 10%;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 4rem;
    text-align: center;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Skills Section Refined */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-category {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.skill-category:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.category-header h3 {
    font-size: 1.25rem;
    color: var(--text-color);
    margin: 0;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-pill {
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 99px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.skill-pill:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.project-image {
    width: 100%;
    height: 200px;
    background: #1f2937;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-toggle {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 1rem 5%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        z-index: 1001;
    }

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background: var(--text-color);
        margin: 5px 0;
        transition: var(--transition);
        border-radius: 2px;
    }

    /* Hamburger Animation to X */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        background: rgba(3, 7, 18, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--glass-border);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
    }

    .nav-links a {
        font-size: 1.5rem;
        padding: 1rem;
    }

    section {
        padding: 60px 5%;
    }
}