:root {
    --bg-color: #ffffff;
    --surface-color: #f8fafc;
    /* Very light cool gray */
    --surface-border: #e2e8f0;
    --primary-accent: #0f172a;
    /* Slate 900 (High contrast text/accent) */
    --secondary-accent: #3b82f6;
    /* Bright Blue for buttons/highlights */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --font-heading: 'Outfit', sans-serif;
    /* More modern/clean than Inter */
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --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 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;700;800&family=Inter:wght@300;400;500;600&display=swap');

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Creative Background: Architectural / Graph Paper Grid */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--surface-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--surface-border) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center top;
    opacity: 0.3;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
    /* Fade out edges */
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
    animation: panGrid 60s linear infinite;
}

@keyframes panGrid {
    0% {
        background-position: 0% 0%;
    }

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary-accent);
    letter-spacing: -0.02em;
}

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

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--surface-border);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary-accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--secondary-accent);
}

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

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

.hero-content {
    order: 1;
}

.hero-image-container {
    order: 2;
    position: relative;
    display: flex;
    justify-content: center;
}

/* Profile Picture Styling with "Creative Flare" */
.profile-img-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    /* Organic shape */
    box-shadow: var(--shadow-lg);
    z-index: 2;
    position: relative;
    animation: morph 8s ease-in-out infinite;
    border: 4px solid #fff;
}

.profile-bg-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--secondary-accent);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 1;
    animation: morph 8s ease-in-out infinite reverse;
    opacity: 0.5;
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}


.hero-subtitle {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #eff6ff;
    color: var(--secondary-accent);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid #dbeafe;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary-accent);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-accent);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--secondary-accent);
}

.btn-outline {
    margin-left: 1rem;
    background: transparent;
    color: var(--primary-accent);
    border: 2px solid var(--surface-border);
    box-shadow: none;
}

.btn-outline:hover {
    border-color: var(--primary-accent);
    background: transparent;
    color: var(--primary-accent);
}

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

/* Clean Modern Cards */
.card {
    background: #fff;
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-accent);
}

/* Experience - Vertical Line */
.timeline {
    position: relative;
    max-width: 800px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--surface-border);
}

.job-item {
    margin-bottom: 3.5rem;
    padding-left: 3rem;
    position: relative;
}

.job-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--secondary-accent);
}

.job-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.job-title {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--primary-accent);
}

.job-company {
    color: var(--secondary-accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

.job-desc {
    color: var(--text-secondary);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Skills Tags */
.tag {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: var(--surface-color);
    color: var(--text-primary);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--surface-border);
    font-weight: 500;
    transition: var(--transition);
}

.tag:hover {
    background: #fff;
    border-color: var(--secondary-accent);
    color: var(--secondary-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Award Item */
.award-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.trophy-icon {
    font-size: 1.5rem;
}

/* Footer */
footer {
    padding: 5rem 0;
    text-align: center;
    border-top: 1px solid var(--surface-border);
    background: var(--surface-color);
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        padding-top: 200px;
        /* Increased to ensure ample space between Stacked Nav and Profile Pic */
    }

    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-image-container {
        order: 1;
        margin-bottom: 2rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        margin: 0 auto 2.5rem;
    }

    /* Stack buttons on mobile */
    .cta-group {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .btn-outline {
        margin-left: 0;
    }

    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .section-title {
        text-align: center;
        display: block;
    }
}