:root {
    /* Colors - Modern Light Theme */
    --bg-color: #f8fafc;
    /* Soft Blue-Grey Background */
    --surface-color: #ffffff;
    /* Pure White Surface */

    --text-primary: #1e293b;
    /* Slate 800 */
    --text-secondary: #475569;
    /* Slate 600 */

    /* Accents - Indigo & Violet */
    --accent-primary: #6366f1;
    /* Indigo 500 */
    --accent-secondary: #8b5cf6;
    /* Violet 500 */
    --accent-tertiary: #0ea5e9;
    /* Sky 500 */

    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --glass-shine: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));

    /* Decoration */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-blur: 12px;
    --glow-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.3);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-code: 'Fira Code', monospace;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: transparent;
    /* Handled by fixed background layer if needed, or set to var(--bg-color) if particles removed */
    background: var(--bg-color);
    /* Re-applying bg color since particles are gone */
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {

    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .scroll-lock-section {
        height: auto;
    }

    .sticky-wrapper {
        position: relative;
        height: 300px;
    }

    .reveal-text {
        opacity: 1;
        transform: none;
    }
}

::selection {
    background: var(--accent-primary);
    color: var(--bg-color);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Background Animations */
/* Background Animations */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-color);
}

/* Blobs animation */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.7;
    animation: float 10s infinite alternate ease-in-out;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: #e0e7ff;
    /* Very light indigo */
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: #ede9fe;
    /* Very light violet */
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: #e0f2fe;
    /* Very light sky */
    top: 40%;
    left: 40%;
    animation: float 15s infinite reverse ease-in-out;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.05);
    }
}

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

.section {
    padding: 6rem 0;
    position: relative;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.logo .dot {
    color: var(--accent-primary);
}

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

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

.nav-link:hover {
    color: var(--text-primary);
}

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

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

.btn-nav {
    padding: 0.6rem 1.2rem;
    background: var(--text-primary);
    color: #fff;
    border-radius: 50px;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-nav:hover {
    background: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.3);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        right: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .menu-toggle {
        display: block;
    }

    /* Hero Overlap Fix */
    .hero {
        padding-top: 100px;
        /* prevent navbar overlap */
        flex-direction: column-reverse;
        /* Move image to top */
        text-align: center;
        gap: 2rem;
    }

    .hero-container {
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .hero-content {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .contact-links {
        justify-content: center;
    }

    /* Footer Email Fix */
    .email-link {
        font-size: 1.2rem;
        word-break: break-all;
        /* Ensure long emails wrap if needed */
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-gradient);
    background-size: 200% auto;
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    animation: gradientShift 3s ease infinite;
    border: none;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}

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

.card {
    background: var(--surface-color);
    border: 1px solid rgba(226, 232, 240, 0.8);
    /* Slate 200 */
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(139, 92, 246, 0.03));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.card>* {
    position: relative;
    z-index: 1;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary) 22;
    box-shadow: var(--shadow-lg), 0 0 20px rgba(99, 102, 241, 0.15);
}

.card:hover::before {
    opacity: 1;
}

/* Gradient Text Utility */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Scroll Animation Utilities */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Experience Section Spacing */
#experience .card {
    margin-bottom: 2rem;
}

/* Hero Section Specifics */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    /* Background removed to show animated blobs */
}

.hero-content {
    max-width: 700px;
}

.greeting {
    font-size: 1.2rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.hero .bio {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.contact-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* CSS removed - consolidated in main media query above */

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-icon {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.project-card h3 {
    font-size: 1.4rem;
}

.project-card p {
    font-size: 0.95rem;
    flex-grow: 1;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tag {
    font-size: 0.8rem;
    padding: 0.2rem 0.8rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    border-radius: 20px;
    font-family: var(--font-code);
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    width: fit-content;
}

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

.skill-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.skill-card i {
    color: var(--accent-primary);
}

/* Timeline/Education */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
}

.timeline-item {
    border-left: 2px solid var(--glass-border);
    padding-left: 2rem;
    position: relative;
    background: transparent;
    border: none;
    border-left: 2px solid var(--accent-primary);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -11px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--bg-color);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
}

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

.timeline-header h3 {
    font-size: 1.2rem;
    margin: 0;
}

.date {
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: var(--accent-primary);
}

.highlight {
    color: var(--accent-primary);
    font-weight: 600;
}

.btn-link {
    font-size: 0.9rem;
    color: var(--accent-primary);
    text-decoration: underline;
}

/* Profile Image */
.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-primary);
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.4);
}

@media (min-width: 768px) {
    .hero-container {
        flex-direction: row;
        text-align: left;
        justify-content: center;
    }

    .profile-img {
        width: 200px;
        height: 200px;
    }
}

/* Updated Contact Email */
.email-link {
    font-size: 1.2rem;
    color: var(--accent-primary);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(45, 212, 191, 0.3);
}

.email-link:hover {
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(45, 212, 191, 0.6);
}

/* Project Thumbnails */
.project-thumb {
    width: 100%;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--glass-border);
}

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

.project-card:hover .project-thumb img {
    transform: scale(1.05);
}

/* Process Section */
.process-container {
    display: flex;
    gap: 4rem;
    position: relative;
}

.process-sidebar {
    flex: 0 0 250px;
    position: sticky;
    top: 150px;
    /* Below navbar */
    height: fit-content;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.process-connector {
    width: 2px;
    height: 300px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
    margin-top: 1rem;
    margin-right: 1rem;
    opacity: 0.5;
}

.process-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6rem;
    padding-bottom: 4rem;
}

.process-step {
    background: var(--surface-color);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--accent-gradient);
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-shadow);
}

.step-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--accent-secondary);
    opacity: 0.1;
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-family: var(--font-heading);
}

.step-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .process-container {
        flex-direction: column;
        gap: 2rem;
    }

    .process-sidebar {
        position: relative;
        top: 0;
        text-align: left;
        align-items: flex-start;
        flex: auto;
    }

    .process-connector {
        display: none;
    }
}