:root {
    /* Premium Dark Theme */
    --bg-main: #030712;
    --bg-secondary: #0f172a;
    --accent-primary: #6366f1;
    /* Indigo */
    --accent-secondary: #ec4899;
    /* Pink */
    --accent-tertiary: #06b6d4;
    /* Cyan */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-light: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
    --nav-glass: rgba(3, 7, 18, 0.8);
    --card-hover: rgba(30, 41, 59, 0.8);

    /* Gradients */
    --gradient-main: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --gradient-text: linear-gradient(to right, #c4b5fd, #67e8f9);
    --aurora: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
}

[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-secondary: #ffffff;
    --accent-primary: #4f46e5;
    --accent-secondary: #db2777;
    --accent-tertiary: #0891b2;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-light: rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);
    --nav-glass: rgba(248, 250, 252, 0.8);
    --card-hover: rgba(255, 255, 255, 0.9);
    --gradient-text: linear-gradient(to right, #4f46e5, #db2777);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.4s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Advanced Background */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--accent-primary);
    animation-delay: 0s;
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: var(--accent-secondary);
    animation-delay: -5s;
}

.orb-3 {
    top: 40%;
    left: 40%;
    width: 30vw;
    height: 30vw;
    background: var(--accent-tertiary);
    animation-delay: -10s;
    opacity: 0.2;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--nav-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    z-index: 1000;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: var(--accent-primary);
    transition: transform 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-controls {
    display: flex;
    gap: 0.8rem;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: rotate(15deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 5% 0;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

.hero-content h1 {
    font-size: 5rem;
    line-height: 1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-content h1 .gradient-text {
    background: var(--aurora);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-main);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
}

/* 3D Card Effect */
.hero-visual {
    perspective: 1000px;
    display: flex;
    justify-content: center;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
}

.code-header {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.window-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-content {
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.token.keyword {
    color: #c084fc;
}

.token.string {
    color: #4ade80;
}

.token.function {
    color: #60a5fa;
}

.token.class {
    color: #fbbf24;
}

/* Bento Grid Layout for Sections */
.section {
    padding: 8rem 5%;
}

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

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

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

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 1.5rem;
}

.bento-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bento-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.bento-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item.medium {
    grid-column: span 2;
}

.bento-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.bento-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.bento-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1.5rem;
}

.tech-badge {
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

/* Experience Timeline Redesigned */
.experience-grid {
    display: grid;
    gap: 2rem;
}

.exp-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.exp-card:hover {
    border-color: var(--accent-primary);
    background: var(--card-hover);
}

.exp-date {
    min-width: 120px;
    font-weight: 700;
    color: var(--accent-secondary);
    font-size: 1.1rem;
}

.exp-details h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.exp-role {
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

/* Contact Footer */
.footer {
    background: var(--bg-secondary);
    padding: 5rem 5% 2rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.footer-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.social-hub {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
}

.social-link {
    font-size: 2rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--text-main);
    transform: translateY(-5px);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-item.large,
    .bento-item.medium {
        grid-column: span 1;
        grid-row: span 1;
    }

    .exp-card {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        width: 95%;
        padding: 0.8rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}