:root {
    --bg-color: #030014;
    --card-bg: rgba(15, 23, 42, 0.6);
    --primary-color: #7c3aed;
    --secondary-color: #4f46e5;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --accent-color: #c084fc;
    --glass-border: rgba(255, 255, 255, 0.08);
    --container-max-width: 1200px;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-color: #0c0a09;
    --text-muted: #4b5563;
    --glass-border: rgba(0, 0, 0, 0.1);
    --accent-color: #7c3aed;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(79, 70, 229, 0.1) 0%, transparent 40%);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    cursor: default;
}

html {
    overflow-x: hidden;
    width: 100%;
}

h1,
h2,
h3,
.logo {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
}

/* Base Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, rgba(79, 70, 229, 0.05) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

[data-theme="light"] #particles-canvas {
    opacity: 0.2;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
    background: var(--bg-color);
    /* Match theme background */
}

[data-theme="light"] .navbar {
    background: var(--bg-color);
}

.navbar.scrolled {
    background: rgba(3, 0, 20, 0.9);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(248, 250, 252, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-color) !important;
    text-decoration: none;
}

.logo span {
    color: var(--primary-color) !important;
}

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

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

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

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

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.resume-btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    border: none;
}

.resume-btn i {
    width: 16px;
    height: 16px;
}

.resume-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
    color: white;
    /* Ensure text remains white on hover */
}

.theme-toggle {
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    /* Circle toggle */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.2);
}

[data-theme="light"] .theme-toggle {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(124, 58, 237, 0.05);
    border-color: var(--primary-color);
}

.theme-toggle .sun-icon {
    display: none !important;
}

.theme-toggle .moon-icon {
    display: block !important;
}

[data-theme="light"] .theme-toggle .sun-icon {
    display: block !important;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: none !important;
}

.theme-toggle i {
    font-size: 1.2rem;
    color: var(--text-color);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    color: var(--text-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 140px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-content {
    text-align: left;
    z-index: 5;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1.2rem;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 100px;
    margin-bottom: 2.5rem;
}

[data-theme="light"] .hero-badge {
    background: #ffffff;
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 10px 30px -10px rgba(124, 58, 237, 0.2);
}

[data-theme="light"] .hero-badge span {
    color: #4c1d95;
    font-weight: 800;
}

[data-theme="light"] .hero-badge i {
    color: #7c3aed;
}

.hero-badge i {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

.hero-badge span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-color);
}

.hero-title {
    font-size: clamp(3rem, 12vw, 6rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

[data-theme="light"] .hero-title {
    background: linear-gradient(135deg, #0c0a09 0%, #4338ca 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 700px;
}

[data-theme="light"] .hero-description {
    color: #334155;
    /* Slate 700 for better contrast */
}

.hero-description .tag {
    background: rgba(124, 58, 237, 0.05);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    color: var(--text-color);
    font-weight: 600;
    border: 1px solid var(--glass-border);
}

[data-theme="light"] .hero-description .tag {
    background: rgba(124, 58, 237, 0.08);
    color: #5b21b6;
    border-color: rgba(124, 58, 237, 0.15);
}

.hero-meta {
    display: flex;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1.5px;
}

.meta-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
}

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

.btn {
    padding: 1.1rem 2.2rem;
    border-radius: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    backdrop-filter: blur(10px);
}

[data-theme="light"] .btn-secondary {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.1);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -10px rgba(124, 58, 237, 0.3);
}

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

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}





/* Code Card Styling */
.code-card {
    position: relative;
    width: 420px;
    max-width: 90vw;
    background: rgba(13, 10, 31, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
    z-index: 10;
}

[data-theme="light"] .code-card {
    background: #ffffff;
    border: 1px solid rgba(124, 58, 237, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .code-header {
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .code-title {
    color: #475569;
}

[data-theme="light"] .code-body {
    background: #ffffff;
    color: #1e293b;
}

[data-theme="light"] .code-body .key {
    color: #7c3aed;
    font-weight: 600;
}

[data-theme="light"] .code-body .string {
    color: #4f46e5;
}

[data-theme="light"] .code-card::after {
    display: none;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.code-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--glass-border);
}

.dots {
    display: flex;
    gap: 6px;
}

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

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.code-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.code-body {
    padding: 24px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

.code-body .key {
    color: #06b6d4;
}

.code-body .string {
    color: #a78bfa;
}

.code-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    opacity: 0.3;
}

@media (max-width: 1024px) {
    .code-card {
        width: 320px;
    }
}

@media (max-width: 768px) {
    .code-card {
        position: relative;
        width: 100%;
        margin-top: 2rem;
    }
}

.blob {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(40px);
    opacity: 0.6;
    animation: blob-anim 15s infinite alternate;
}

@keyframes blob-anim {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg);
    }

    100% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
        transform: rotate(360deg);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.mouse {
    width: 20px;
    height: 35px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: scroll-anim 2s infinite;
}

@keyframes scroll-anim {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* Generic Section Header */
.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.underline {
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.about-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item .label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.info-item .value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
}

.stat-card i {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    width: 40px;
    height: 40px;
}

.stat-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.stat-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Skills Section - Infinite Marquee Banner */
.skills {
    overflow-x: hidden;
    padding: 100px 0;
}

.skills-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 4rem;
}

.skill-banner-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.marquee-container {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    padding: 0.5rem 0;
}

.marquee-content {
    display: flex;
    gap: 2rem;
    width: max-content;
    padding-right: 2rem;
}

.scroll-left .marquee-content {
    animation: scroll-left 50s linear infinite;
}

.scroll-right .marquee-content {
    animation: scroll-right 50s linear infinite;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.skill-banner-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.8rem;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

[data-theme="light"] .skill-banner-item {
    background: #ffffff;
    border-color: rgba(124, 58, 237, 0.15);
    box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .skill-banner-item:hover {
    background: #7c3aed;
    color: #ffffff;
}

[data-theme="light"] .skill-banner-item i {
    color: #7c3aed;
}

[data-theme="light"] .skill-banner-item:hover i {
    color: #ffffff;
}

.skill-banner-item:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.skill-banner-item i {
    color: var(--primary-color);
    width: 18px;
    height: 18px;
}

.skill-banner-item:hover i {
    color: white;
}

.marquee-group-label {
    padding: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Outfit', sans-serif;
    opacity: 0.9;
    text-align: left;
}

@media (max-width: 768px) {
    .marquee-group-label {
        min-width: 180px;
        font-size: 0.9rem;
    }

    .skill-banner-item {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.project-image {
    height: 240px;
    background: linear-gradient(45deg, #1e1b4b, #312e81);
    position: relative;
}

.img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(3, 0, 20, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.project-card:hover .img-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 1.5rem;
}

.project-links a {
    width: 50px;
    height: 50px;
    background: white;
    color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.project-card:hover .project-links a {
    transform: translateY(0);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
}

.project-info p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.project-tags span {
    font-size: 0.8rem;
    color: var(--primary-color);
    background: rgba(124, 58, 237, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    font-weight: 500;
    transition: var(--transition-smooth);
}

.project-tags span:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.view-more {
    margin-top: 4rem;
    text-align: center;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

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

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

.method a {
    color: var(--text-color);
    transition: color 0.3s;
}

.method a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    width: 45px;
    height: 45px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}

.social-icons a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.contact-form {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    outline: none;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 4rem;
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .blob-wrapper {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .navbar {
        background: rgba(3, 0, 20, 0.95);
        backdrop-filter: blur(10px);
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: auto;
        flex-direction: column;
        background: var(--bg-color);
        padding: 2rem;
        gap: 1.5rem;
        transition: 0.5s;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        left: 0;
    }

    .hero .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: 6rem;
        gap: 3rem;
        width: 100%;
        overflow: hidden;
    }

    .hero-content {
        order: 2;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 2.8rem;
        word-break: break-word;
        margin-bottom: 1.5rem;
    }

    .hero-description {
        margin: 0 auto 2rem;
        font-size: 1.1rem;
    }

    .hero-btns {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        gap: 1.2rem;
        margin-top: 2rem;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .hero-image {
        order: 1;
        width: 100%;
        margin-bottom: 2rem;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        flex-direction: column;
    }

    .code-card {
        position: relative !important;
        width: 100%;
        max-width: 340px;
        margin: 0 auto !important;
        inset: auto !important;
        transform: none !important;
        animation: float-mobile 6s ease-in-out infinite;
        left: 0 !important;
        z-index: 5;
    }

    @keyframes float-mobile {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-10px);
        }
    }

    .about-info {
        grid-template-columns: 1fr 1fr;
    }

    .section {
        padding: 60px 0;
    }

    .scroll-indicator {
        display: none;
    }
}

/* Education Section Styles */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.edu-item {
    display: flex;
    gap: 2rem;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    align-items: center;
    transition: var(--transition-smooth);
}

.edu-item:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
}

.edu-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.edu-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
}

.edu-content p {
    color: var(--text-muted);
}

/* Experience Specific Styles */
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.project-date {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

.role-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1rem;
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
        word-break: break-word;
        max-width: 100%;
    }

    .code-card {
        max-width: 270px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .about-info {
        grid-template-columns: 1fr;
    }

    .edu-item {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .hero-meta {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .project-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }

    .project-info {
        text-align: center;
        padding: 1.5rem;
    }

    .project-tags {
        justify-content: center;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .contact-form .btn {
        width: 100%;
    }

    .scroll-indicator {
        display: none;
    }
}

/* Fade-in Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Timeline Section */
.timeline-section {
    position: relative;
    padding: 20px 0;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* Vertical Line */
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 2px 20px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
    min-height: 80px;
}

/* Left and Right containers */
.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

/* The dots */
/* The dots */
.timeline-dot {
    width: 12px;
    height: 12px;
    background: var(--bg-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
    /* Halo effect */
    border-radius: 50%;
    position: absolute;
    top: 22px;
    right: -6px;
    z-index: 2;
}

.timeline-item.right .timeline-dot {
    left: -6px;
}


/* Content Box */
/* Content Box */
.timeline-content {
    padding: 0.8rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    /* Slightly squarer like Workday */
    position: relative;
    transition: var(--transition-smooth);
    margin: 0 10px;
    /* Space for connector */
}

/* Connector Lines */
.timeline-content::before {
    content: '';
    position: absolute;
    top: 28px;
    /* Aligns with dot center */
    width: 32px;
    /* Length of connector */
    height: 2px;
    background: var(--primary-color);
    opacity: 0.3;
}

.timeline-item.left .timeline-content::before {
    right: -32px;
    /* Extend to right */
}

.timeline-item.right .timeline-content::before {
    left: -32px;
    /* Extend to left */
}


.timeline-content:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    background: rgba(124, 58, 237, 0.05);
}

.timeline-content h3 {
    margin-bottom: 0.2rem;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.timeline-role {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 400;
}

.timeline-date {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-color);
    opacity: 0.9;
}

/* Cleanup unused */
.timeline-tags,
.timeline-tag {
    display: none;
}

/* Light Theme Adjustments */
[data-theme="light"] .timeline-dot {
    background: #ffffff;
}

[data-theme="light"] .timeline-content {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .timeline-tag {
    background: rgba(124, 58, 237, 0.05);
    color: var(--primary-color);
    border-color: rgba(124, 58, 237, 0.1);
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
        text-align: left;
    }

    .timeline-dot {
        left: 21px;
        right: auto;
    }

    .timeline-item.right .timeline-dot {
        left: 21px;
    }

    .timeline-tags {
        justify-content: flex-start;
    }
}

/* Footer Styles */
.footer {
    background: linear-gradient(to bottom, var(--card-bg), rgba(0, 0, 0, 0.2));
    border-top: 1px solid var(--glass-border);
    padding: 5rem 0 2rem;
    margin-top: 6rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.5;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    align-items: start;
}

.footer-brand {
    text-align: left;
}

.footer-brand .logo {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: inline-block;
    background: linear-gradient(135deg, var(--text-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 0;
}

.footer-brand p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
    max-width: 350px;
    margin: 0;
    /* Reset margin to ensure no auto centering */
}

.footer-links h3,
.footer-social h3 {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-links h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

.links-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-social .social-icons {
    display: flex;
    gap: 1rem;
}

.footer-social .social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-social .social-icons a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.3);
    border-color: var(--primary-color);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .footer-links h3::after,
    .footer-social h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social .social-icons {
        justify-content: center;
    }
}