:root {
    /* Color Palette */
    --bg-color: #0d0f1a;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --accent-1: #0f766e;
    /* Dark Teal */
    --accent-2: #14b8a6;
    /* Teal */
    --accent-3: #5eead4;
    /* Light Teal */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
}

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

html {
    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;
    position: relative;
}

/* Background Animated Blobs */
.blob-bg {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.6;
    animation: float 20s infinite alternate ease-in-out;
}

.blob-bg:nth-child(1) {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.4) 0%, rgba(13, 15, 26, 0) 70%);
}

.blob-bg.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.3) 0%, rgba(13, 15, 26, 0) 70%);
    animation-delay: -5s;
    animation-duration: 25s;
}

.blob-bg.blob-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(94, 234, 212, 0.2) 0%, rgba(13, 15, 26, 0) 70%);
    animation-delay: -10s;
    animation-duration: 30s;
}

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

    50% {
        transform: translate(5%, 5%) scale(1.1);
    }

    100% {
        transform: translate(-5%, 10%) scale(0.9);
    }
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Typography elements */
.section-header {
    margin-bottom: 3rem;
    position: relative;
}

.section-header h2 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-header .line {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-3));
    margin-top: 0.5rem;
    border-radius: 2px;
}

/* Glassmorphism Card Utility */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px 0 rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(13, 15, 26, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

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

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

.logo span {
    color: var(--accent-3);
}

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

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    padding-top: 80px;
}

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

.hero-image-wrapper {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 1rem;
}

.hero-image {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    /* Soft blend with the background */
    -webkit-mask-image: radial-gradient(circle, black 65%, transparent 95%);
    mask-image: radial-gradient(circle, black 65%, transparent 95%);
}

.greeting {
    color: var(--accent-3);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.name {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #fff;
    background: linear-gradient(120deg, #ffffff, #5eead4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title {
    font-size: 2.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.summary {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #fff;
    transform: translateY(-5px) scale(1.05);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(15, 118, 110, 0.4);
}

/* Timeline (Education) */
section {
    padding: var(--section-padding);
}

.timeline {
    position: relative;
    max-width: 800px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 13px;
    top: 24px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-3);
    box-shadow: 0 0 10px var(--accent-3);
}

.timeline-content h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.2rem;
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--accent-3);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.timeline-content .date {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Experience Grid */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.exp-card {
    position: relative;
    overflow: hidden;
}

.exp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.exp-card:hover::before {
    transform: scaleX(1);
}

.exp-card h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.3rem;
}

.exp-card h4 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.exp-card .date {
    color: var(--accent-3);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Skills */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    color: #fff;
}

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

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(20, 184, 166, 0.15);
    border-color: var(--accent-2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(20, 184, 166, 0.2);
}

.tag.small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

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

.project-card {
    display: flex;
    flex-direction: column;
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--glass-border);
}

.project-card h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.project-links a {
    color: var(--accent-3);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.project-links a i {
    margin-right: 0.4rem;
}

/* Publications */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.publication-item p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.publication-item strong {
    color: #fff;
}

/* Qualifications Grid */
.qualifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.qual-item h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.qual-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

.container-footer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .name {
        font-size: 3.5rem;
    }

    .title {
        font-size: 1.8rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .nav-links {
        display: none;
        /* Add a hamburger menu later if needed */
    }

    .hero {
        padding-top: 120px;
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

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

    .hero-image {
        width: 250px;
        height: 250px;
    }
}