/* Modern Clean Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #64748b;
    --text-main: #0f172a;
    --text-muted: #475569;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --border-light: #e2e8f0;
    --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);
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section {
    padding: 5rem 0;
}

.section-alt {
    background-color: #f1f5f9;
}

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

.section-tag {
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2.25rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
}

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

.nav-logo {
    font-weight: 800;
    font-size: 1.5rem;
}

.logo-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

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

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 6rem;
    /* Increased top padding */
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

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

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

.hero-image-container {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 2;
    background: var(--bg-card);
}

.hero-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Add subtle decoration behind image */
.hero-image-wrapper::before {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.2;
    z-index: 1;
    filter: blur(20px);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #eff6ff;
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

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

.divider {
    color: var(--border-light);
    margin: 0 0.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
    border: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.hero-tech {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 1.75rem;
}

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

    .hero-content {
        order: 2;
        /* Image first on mobile? Or text first? Standard is often image first or keep text first. Let's keep text first for now but center everything */
        text-align: center;
    }

    .hero-image-wrapper {
        order: 1;
        /* Actually, image first on mobile looks good for personal sites */
        margin-bottom: 1rem;
    }

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

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

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image-container {
        width: 240px;
        height: 240px;
    }

    .hero-image-wrapper::before {
        width: 260px;
        height: 260px;
    }
}

/* Project Cards */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.project-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
    padding: 3rem;
    border-top: 4px solid var(--primary);
}

.project-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #f59e0b;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.project-hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.project-hero-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.project-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.feature i {
    color: #10b981;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tech-tag {
    background: #f1f5f9;
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.project-hero-visual {
    background: #eff6ff;
    border-radius: 1rem;
    overflow: hidden;
    /* Ensure image stays inside border radius */
    aspect-ratio: 4/3;
    /* Maintain aspect ratio */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbeafe;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover the container */
    object-position: top center;
    /* Show the top of the dashboard first */
}

.visual-placeholder {
    text-align: center;
    color: #93c5fd;
}

.visual-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

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

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

.project-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.project-icon.publication {
    background: #ccfbf1;
    color: #0f766e;
}

.project-icon.cloud {
    background: #f3e8ff;
    color: #7e22ce;
}

.project-type {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: block;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

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

.skill-card {
    text-align: center;
}

.skill-icon {
    width: 4rem;
    height: 4rem;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.skill-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.skill-item {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}


/* Contact */
.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    text-align: center;
}

.contact-status {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #ecfdf5;
    color: #059669;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    margin-bottom: 2.5rem;
}

.status-indicator {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    color: var(--text-muted);
}

.contact-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #eff6ff;
}

.contact-link i {
    font-size: 1.5rem;
}

/* Achievements & Publications */
.subsection-title {
    font-size: 1.5rem;
    color: var(--text-main);
    margin: 3rem 0 1.5rem;
    padding-left: 0.5rem;
    border-left: 4px solid var(--primary);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.achievement-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.achievement-card.highlight-card {
    border-color: var(--primary);
    background: linear-gradient(to bottom right, #ffffff, #eff6ff);
}

.achievement-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.achievement-icon.gold {
    background: #fef3c7;
    color: #d97706;
}

.achievement-icon.silver {
    background: #f1f5f9;
    color: #64748b;
}

.achievement-icon.blue {
    background: #eff6ff;
    color: var(--primary);
}

.achievement-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.achievement-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Publications */
.publications-container {
    max-width: 900px;
    margin: 0 auto;
}

.publication-list {
    padding: 2rem;
}

.publication-item {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.publication-item.last {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.publication-icon {
    font-size: 1.25rem;
    color: var(--primary);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.publication-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.publication-text strong {
    color: var(--text-main);
    font-weight: 600;
}

@media (max-width: 768px) {
    .publication-item {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    font-size: 1.5rem;
}

.footer-links a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-md);
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        padding: 1rem;
        display: block;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid var(--border-light);
    }

    .mobile-toggle {
        display: flex;
    }

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

    .project-hero {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

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

    .timeline::before {
        left: 1rem;
    }

    .timeline-item {
        padding-left: 2.5rem;
    }

    .timeline-marker {
        left: 0.35rem;
    }
}