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

:root {
    /* Color Palette - Feel free to customize these */
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #ffffff;
    --bg-alt: #f8f9fa;
    --border-color: #e0e0e0;
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

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

/* ===========================
   Header & Navigation
   =========================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

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

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.logo a:hover {
    color: var(--secondary-color);
}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    position: relative;
    margin-top: 70px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
}

.quote-section {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.quote {
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-weight: 300;
}

.quote-author {
    font-size: 1.1rem;
    opacity: 0.9;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 20px;
    height: 20px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
}

/* ===========================
   Story Section
   =========================== */
.story-section {
    background: var(--bg-color);
}

.story-content {
    max-width: 900px;
    margin: 0 auto;
}

.story-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    justify-content: center;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===========================
   Portfolio Section
   =========================== */
.portfolio-section {
    background: var(--bg-alt);
}

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

.portfolio-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.portfolio-item-content {
    padding: 2rem;
}

.portfolio-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.portfolio-item p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.btn-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--accent-color);
}

.btn-link.coming-soon {
    opacity: 0.5;
    cursor: default;
    font-style: italic;
}

/* ===========================
   Media Slider
   =========================== */
.media-slider {
    margin-top: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fcfdff;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.4s ease;
}

.slide-placeholder {
    min-width: 100%;
    min-height: clamp(220px, 36vw, 420px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    color: var(--text-light);
    font-weight: 500;
    background:
        repeating-linear-gradient(
            -45deg,
            #f2f6fb,
            #f2f6fb 12px,
            #e7eef7 12px,
            #e7eef7 24px
        );
}

.slide-image {
    min-width: 100%;
    height: clamp(220px, 36vw, 420px);
    overflow: hidden;
    background: #111;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.slide-video {
    min-width: 100%;
    height: clamp(220px, 36vw, 420px);
    background: #111;
}

.slide-video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.slide-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.slider-controls {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem;
    background: white;
    border-top: 1px solid var(--border-color);
}

.slider-btn {
    border: 1px solid var(--border-color);
    background: white;
    color: var(--primary-color);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* ===========================
   Resume Section
   =========================== */
.resume-section {
    background: var(--bg-color);
}

.resume-content {
    max-width: 900px;
    margin: 0 auto;
}

.resume-download {
    text-align: center;
    padding: 3rem;
    background: var(--bg-alt);
    border-radius: 12px;
    margin-bottom: 3rem;
}

.resume-download p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.resume-summary {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.resume-section-item h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.resume-entry {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.resume-entry:last-child {
    border-bottom: none;
}

.resume-entry h4 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.resume-entry .date {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.resume-entry ul {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.resume-entry li {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

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

.skill-tag {
    padding: 0.5rem 1rem;
    background: var(--secondary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===========================
   Contact Section
   =========================== */
.contact-section {
    background: var(--bg-alt);
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-link:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.footer-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

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

/* ===========================
   Animations
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .quote {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    section {
        padding: 3rem 0;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .slide-placeholder,
    .slide-image,
    .slide-video {
        min-height: clamp(180px, 56vw, 280px);
        height: clamp(180px, 56vw, 280px);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

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

    .quote {
        font-size: 1rem;
    }
}

/* ===========================
   Nav — Resume Pill Button
   =========================== */
.nav-resume-btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-resume-btn:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
}

/* ===========================
   Hero — Updated Layout
   =========================== */
.hero-tagline {
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-philosophy {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
    line-height: 1.85;
    opacity: 0.92;
    font-weight: 300;
    animation: fadeInUp 0.8s ease 0.15s backwards;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s backwards;
}

.btn-hero-primary {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-hero-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.btn-hero-secondary {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: transparent;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.75);
    transition: var(--transition);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-2px);
}

/* ===========================
   Shared Section Intro
   =========================== */
.section-intro {
    max-width: 800px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-top: 1rem;
    margin-bottom: 2.5rem;
}

/* ===========================
   About Section
   =========================== */
.about-section {
    background: var(--bg-alt);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 4rem;
    align-items: start;
    margin-top: 2.5rem;
}

.about-copy {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-copy p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
}

.about-image-wrap {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.about-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

.about-name {
    margin-top: 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
}

.about-tagline {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 0.25rem;
}

/* ===========================
   Education Section
   =========================== */
.education-section {
    background: var(--bg-color);
}

.edu-entries {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-bottom: 3rem;
}

.edu-entry {
    background: var(--bg-alt);
    border-radius: 12px;
    padding: 2rem;
    border-left: 4px solid var(--secondary-color);
}

.edu-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1rem;
    margin-bottom: 0.75rem;
}

.edu-header h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.edu-degree {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

.edu-date {
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
    margin-left: auto;
}

.edu-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--secondary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.825rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.edu-prose {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* Conferences & Recognition */
.conferences-block {
    background: var(--primary-color);
    border-radius: 12px;
    padding: 2rem;
    color: white;
}

.conferences-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
}

.conference-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.conference-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.conference-item:first-child {
    padding-top: 0;
}

.conference-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.conference-name {
    font-weight: 600;
    font-size: 1rem;
}

.conference-location {
    font-size: 0.875rem;
    opacity: 0.65;
}

.conference-detail {
    font-size: 0.9rem;
    opacity: 0.82;
    flex-basis: 100%;
    margin-top: 0.15rem;
}

.conference-highlight {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    background: var(--secondary-color);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.825rem;
    opacity: 1;
}

/* ===========================
   Experience Section
   =========================== */
.experience-section {
    background: var(--bg-alt);
}

.exp-entries {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.exp-entry {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.exp-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

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

.exp-org {
    font-size: 0.95rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.exp-date {
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
    white-space: nowrap;
}

.exp-prose p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 0;
}

/* ===========================
   Projects Section
   =========================== */
.projects-section {
    background: var(--bg-color);
}

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

.project-card {
    background: white;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.project-card--finalist {
    border-color: var(--secondary-color);
    border-width: 2px;
}

.project-card-top {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.project-tag {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    align-self: flex-start;
}

.tag-research  { background: #e6f2fc; color: #1565a3; }
.tag-academic  { background: #eff2ff; color: #3444b0; }
.tag-independent { background: #f3efff; color: #6030b0; }
.tag-hackathon { background: #fff3e6; color: #b05a10; }

.project-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
}

.project-card-body {
    flex: 1;
}

.project-card-body p {
    font-size: 0.95rem;
    line-height: 1.78;
    color: var(--text-light);
}

.project-card-footer {
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

/* ===========================
   Skills Section
   =========================== */
.skills-section {
    background: var(--bg-alt);
}

.skills-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.skills-col {
    background: white;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.skills-col-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--secondary-color);
}

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

.skill-tag--learning {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

/* ===========================
   Responsive — New Sections
   =========================== */
@media (max-width: 768px) {
    .nav-resume-btn {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image-col {
        order: -1;
        max-width: 220px;
        margin: 0 auto;
    }

    .edu-date {
        margin-left: 0;
        flex-basis: 100%;
    }

    .exp-header {
        flex-direction: column;
        gap: 0.4rem;
    }

    .exp-date {
        white-space: normal;
    }

    .skills-columns {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero-tagline {
        font-size: 1.65rem;
    }

    .hero-philosophy {
        font-size: 1rem;
    }

    .conferences-block {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .edu-header {
        flex-direction: column;
        gap: 0.25rem;
    }

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

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}
