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

:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --accent-color: #3b82f6;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --nav-height: 70px;
    --transition: all 0.2s ease-in-out;
    --nav-bg: rgba(15, 23, 42, 0.9);
    --tag-bg: #2d3748;
    --tag-text: #e2e8f0;
}

.light-theme {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --accent-color: #2563eb;
    --accent-glow: rgba(37, 99, 235, 0.1);
    --border-color: #e2e8f0;
    --nav-bg: rgba(255, 255, 255, 0.9);
    --tag-bg: #e2e8f0;
    --tag-text: #1e293b;
}

/* Theme Switcher */
.theme-switch {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-left: 20px;
}

.theme-switch:hover {
    background: var(--accent-glow);
    color: var(--accent-color);
}

.theme-switch svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

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

h1,
h2,
h3 {
    font-weight: 700;
    color: var(--text-primary);
}

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

a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

ul {
    list-style: none;
}

section {
    padding: 80px 10%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Professional Card Style */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--accent-color);
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--nav-bg);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Navigation Controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    gap: 24px;
}

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

.nav-links a:hover {
    color: var(--text-primary);
    text-decoration: none;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    gap: 60px;
    padding-top: 120px;
    padding-bottom: 120px;
}

.hero-content {
    flex: 1;
}

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

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

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

.profile-img {
    width: 250px;
    height: 250px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

/* Section Titles */
.section-title {
    font-size: 1.875rem;
    margin-bottom: 32px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

/* Grid Layouts */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Education & Projects */
.edu-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.edu-item:hover {
    border-color: var(--accent-color);
}

.edu-header {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    user-select: none;
}

.edu-header-main {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.edu-title-group {
    display: flex;
    gap: 20px;
    align-items: baseline;
}

.edu-university {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.1rem;
    white-space: nowrap;
}

.edu-location {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.edu-details-group {
    display: flex;
    gap: 30px;
    align-items: baseline;
    text-align: right;
}

.edu-degree {
    font-weight: 500;
    font-size: 0.95rem;
}

.edu-period {
    color: var(--text-secondary);
    font-size: 0.875rem;
    white-space: nowrap;
}

.edu-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.edu-item.expanded .edu-icon {
    transform: rotate(180deg);
}

.edu-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 24px;
    border-top: 0 solid var(--border-color);
}

.edu-item.expanded .edu-content {
    max-height: 1000px;
    /* Increased to accommodate list */
    padding: 24px;
    border-top-width: 1px;
}

.edu-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.edu-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.edu-info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    font-weight: 600;
}

.edu-info-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.edu-courses-section {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.edu-courses-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--accent-color);
}

.edu-courses-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

@media (min-width: 768px) {
    .edu-courses-list {
        grid-template-columns: 1fr 1fr;
    }
}

.edu-course-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.edu-course-item::before {
    content: "▹";
    color: var(--accent-color);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.item-org {
    font-weight: 600;
    color: var(--accent-color);
}

.item-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.item-desc {
    color: var(--text-secondary);
    margin-top: 12px;
    font-size: 0.95rem;
}

.item-desc ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-top: 8px;
}

.item-desc li {
    margin-bottom: 4px;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tag {
    background: var(--tag-bg);
    color: var(--tag-text);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Footer */
footer {
    padding: 40px 10%;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Responsive adjustments */
/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        gap: 32px;
        padding-top: 100px;
        padding-bottom: 60px;
    }

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

    .hero-description {
        margin: 0 auto 32px;
    }

    .nav-links {
        display: none;
    }

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

    .edu-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .edu-header-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }

    .edu-title-group,
    .edu-details-group {
        width: 100%;
        justify-content: space-between;
    }

    .edu-icon {
        display: none;
    }

    .edu-item {
        position: relative;
    }
}