/* CSS Variables for Theme System */
:root {
    --background: 0 0% 100%;
    --foreground: 210 11.1% 3.53%;
    --card: 0 0% 100%;
    --card-foreground: 210 11.1% 3.53%;
    --popover: 0 0% 100%;
    --popover-foreground: 210 11.1% 3.53%;
    --primary: 0 0% 9%;
    --primary-foreground: 0 0% 98%;
    --secondary: 0 0% 96.1%;
    --secondary-foreground: 0 0% 9%;
    --muted: 0 0% 96.1%;
    --muted-foreground: 0 0% 45.1%;
    --accent: 0 0% 96.1%;
    --accent-foreground: 0 0% 9%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 89.8%;
    --input: 0 0% 89.8%;
    --ring: 0 0% 3.9%;
    --radius: 0.5rem;
}

.dark-theme {
    --background: 210 11.1% 3.53%;
    --foreground: 0 0% 98%;
    --card: 210 11.1% 3.53%;
    --card-foreground: 0 0% 98%;
    --popover: 210 11.1% 3.53%;
    --popover-foreground: 0 0% 98%;
    --primary: 0 0% 98%;
    --primary-foreground: 0 0% 9%;
    --secondary: 0 0% 14.9%;
    --secondary-foreground: 0 0% 98%;
    --muted: 0 0% 14.9%;
    --muted-foreground: 0 0% 63.9%;
    --accent: 0 0% 14.9%;
    --accent-foreground: 0 0% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 14.9%;
    --input: 0 0% 14.9%;
    --ring: 0 0% 83.1%;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-feature-settings: 'rlig' 1, 'calt' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

/* Main Container */
.main-container {
    max-width: 672px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    gap: 2rem;
}

@media (min-width: 640px) {
    .main-container {
        padding: 4rem 1.5rem;
        gap: 2.5rem;
    }
    
    .hero-text-wrapper {
        gap: 2rem;
    }
}

/* Hero Section */
.hero-section {
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.hero-content {
    width: 100%;
    max-width: 672px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.hero-text-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.hero-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
    justify-content: center;
    min-height: 8rem;
}


.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin: 0;
    color: hsl(var(--foreground));
}


@media (min-width: 640px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1280px) {
    .hero-title {
        font-size: 4rem;
        line-height: 1;
    }
}

.hero-description {
    max-width: 600px;
    color: hsl(var(--muted-foreground));
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.3rem;
        line-height: 1.5;
    }
}

.hero-avatar {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.avatar-image {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    border: 3px solid hsl(var(--border));
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: hsl(var(--background));
}

.avatar-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    border-color: hsl(var(--primary));
}

/* Sections */
.section {
    margin-bottom: 2rem;
}

/* Research Section */
.research-item {
    background: linear-gradient(135deg, hsl(var(--card)) 0%, hsl(var(--muted)) 100%);
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) + 4px);
    padding: 1.5rem;
    border-left: 4px solid hsl(var(--primary));
    margin-top: 1.5rem;
}

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

.research-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    color: hsl(var(--foreground));
    margin: 0;
}

.research-date {
    font-size: 0.9rem;
    color: hsl(var(--muted-foreground));
    font-weight: 500;
    background: hsl(var(--muted));
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    white-space: nowrap;
}

.research-venue {
    font-size: 0.95rem;
    color: hsl(var(--primary));
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.research-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
}

@media (max-width: 640px) {
    .research-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .research-title {
        font-size: 1rem;
    }
    
    .research-date {
        align-self: flex-start;
        font-size: 0.85rem;
    }
}

.section-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    margin-bottom: 1.5rem;
    color: hsl(var(--foreground));
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 4rem;
    height: 3px;
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-content {
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

@media (min-width: 640px) {
    .section-content {
        font-size: 1.1rem;
    }
}

/* Prose Styling */
.prose {
    max-width: 100%;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

.prose a {
    color: hsl(var(--foreground));
    text-decoration: underline;
    text-decoration-color: hsl(var(--muted-foreground));
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.prose a:hover {
    text-decoration-color: hsl(var(--foreground));
}

/* Resume Cards - Timeline Style */
.resume-cards-container {
    position: relative;
    padding-left: 2rem;
}

.resume-cards-container::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, hsl(var(--primary)), hsl(var(--accent)), hsl(var(--muted)));
    border-radius: 1px;
    transform: translateX(-1px);
}

.resume-card {
    position: relative;
    display: block;
    background: transparent;
    border: none;
    padding: 1.5rem 0;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    margin-left: 1.5rem;
}

.resume-card::before {
    content: '';
    position: absolute;
    left: -2.75rem;
    top: 1.75rem;
    width: 12px;
    height: 12px;
    background: hsl(var(--background));
    border: 3px solid hsl(var(--primary));
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 4px hsl(var(--background));
    transform: translateX(-4px);
}

.resume-card:hover::before {
    background: hsl(var(--primary));
    transform: translateX(-4px) scale(1.2);
    box-shadow: 0 0 0 4px hsl(var(--background)), 0 0 0 8px hsl(var(--primary) / 0.2);
}

.resume-card:hover {
    transform: translateX(0.5rem);
}

.resume-card-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.resume-card-avatar {
    flex-shrink: 0;
}

.resume-card-avatar img {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 2px solid hsl(var(--border));
    object-fit: contain;
    background-color: hsl(var(--background));
    padding: 0.25rem;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.resume-card:hover .resume-card-avatar img {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.resume-card-info {
    flex: 1;
    min-width: 0;
}

.resume-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.resume-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.25;
    color: hsl(var(--foreground));
}

@media (min-width: 640px) {
    .resume-card-title {
        font-size: 1.2rem;
    }
}

.resume-card-period {
    font-size: 0.85rem;
    color: hsl(var(--muted-foreground));
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    background: hsl(var(--muted));
    padding: 0.25rem 0.75rem;
    border-radius: calc(var(--radius));
    white-space: nowrap;
}

@media (min-width: 640px) {
    .resume-card-period {
        font-size: 0.9rem;
    }
}

.resume-card-subtitle {
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: hsl(var(--primary));
    margin-bottom: 0.75rem;
    font-weight: 500;
}

@media (min-width: 640px) {
    .resume-card-subtitle {
        font-size: 1rem;
    }
}

.resume-card-description {
    font-size: 0.9rem;
    margin-top: 0.75rem;
    color: hsl(var(--foreground));
    line-height: 1.6;
    padding: 1rem;
    background: hsl(var(--muted) / 0.3);
    border-radius: var(--radius);
    border-left: 3px solid hsl(var(--primary));
    display: none;
    animation: expandDown 0.3s ease-out;
}

@media (min-width: 640px) {
    .resume-card-description {
        font-size: 1rem;
    }
}

.resume-card.expanded .resume-card-description {
    display: block;
}

@keyframes expandDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 200px;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

.chevron-icon {
    width: 1.2rem;
    height: 1.2rem;
    opacity: 0.7;
    transform: translateX(0);
    transition: all 0.3s ease;
    color: hsl(var(--primary));
}

.resume-card:hover .chevron-icon {
    opacity: 1;
    transform: translateX(0.25rem);
}

.chevron-icon.expanded {
    transform: rotate(90deg);
    color: hsl(var(--accent));
}

/* Skills */
.skills-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    max-width: 600px;
    margin: 0 auto;
}

.skills-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.skill-badge {
    display: inline-flex;
    align-items: center;
    border-radius: calc(var(--radius) + 2px);
    border: 1px solid hsl(var(--border));
    background: linear-gradient(135deg, hsl(var(--secondary)), hsl(var(--muted)));
    color: hsl(var(--secondary-foreground));
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.skill-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, hsl(var(--accent)), hsl(var(--secondary)));
    border-color: hsl(var(--primary));
}

/* Projects Section */
.projects-section {
    padding: 2rem 0;
    width: 100%;
}

.projects-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.projects-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
}

.projects-badge {
    display: inline-block;
    background-color: hsl(var(--foreground));
    color: hsl(var(--background));
    padding: 0.25rem 0.75rem;
    border-radius: calc(var(--radius) + 2px);
    font-size: 0.875rem;
}

.projects-title {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0;
}

@media (min-width: 640px) {
    .projects-title {
        font-size: 3rem;
    }
}

.projects-description {
    color: hsl(var(--muted-foreground));
    font-size: 1rem;
    max-width: none;
    line-height: 1.6;
    margin: 0;
}

@media (min-width: 768px) {
    .projects-description {
        font-size: 1.25rem;
        line-height: 1.5;
    }
}

@media (min-width: 1024px) {
    .projects-description {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media (min-width: 1280px) {
    .projects-description {
        font-size: 1.25rem;
        line-height: 1.5;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-width: 800px;
    margin: 0 auto;
}

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

/* Project Cards */
.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    transition: all 0.3s ease;
    height: 100%;
    background-color: hsl(var(--card));
}

.project-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.project-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-card-media {
    width: 100%;
    height: 10rem;
    object-fit: cover;
    object-position: top;
    border-radius: var(--radius) var(--radius) 0 0;
}

.project-card-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card-header {
    margin-bottom: 1rem;
}

.project-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.project-card-date {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    font-family: 'Inter', sans-serif;
}

.project-card-description {
    max-width: 100%;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
    flex: 1;
}

.project-card-tags {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.project-card-tag {
    padding: 0.125rem 0.25rem;
    font-size: 10px;
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    border-radius: calc(var(--radius) - 2px);
    border: 1px solid hsl(var(--border));
}

.project-card-footer {
    padding: 0 1rem 1rem 1rem;
}

.project-card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    border: 2px solid hsl(var(--border));
    border-radius: calc(var(--radius));
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    min-width: 110px;
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: hsl(var(--primary));
    color: hsl(var(--primary));
}

.project-link[href*=\"github\"] {
    background: hsl(var(--background));
    border-color: #24292e;
    color: #24292e;
}

.project-link[href*=\"github\"]:hover {
    background: #24292e;
    border-color: #24292e;
    color: white;
}

.project-link svg {
    width: 12px;
    height: 12px;
}

/* Hackathons Section */
.hackathons-section {
    padding: 2rem 0;
    width: 100%;
}

.hackathons-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hackathons-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
}

.hackathons-badge {
    display: inline-block;
    background-color: hsl(var(--foreground));
    color: hsl(var(--background));
    padding: 0.25rem 0.75rem;
    border-radius: calc(var(--radius) + 2px);
    font-size: 0.875rem;
}

.hackathons-title {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0;
}

@media (min-width: 640px) {
    .hackathons-title {
        font-size: 3rem;
    }
}

.hackathons-description {
    color: hsl(var(--muted-foreground));
    font-size: 1rem;
    max-width: none;
    line-height: 1.6;
    margin: 0;
}

@media (min-width: 768px) {
    .hackathons-description {
        font-size: 1.25rem;
        line-height: 1.5;
    }
}

@media (min-width: 1024px) {
    .hackathons-description {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media (min-width: 1280px) {
    .hackathons-description {
        font-size: 1.25rem;
        line-height: 1.5;
    }
}

.hackathons-timeline {
    margin-left: 1rem;
    margin-bottom: 1rem;
    padding-left: 0;
    border-left: 1px dashed hsl(var(--border));
    list-style: none;
}

.hackathon-item {
    position: relative;
    margin-left: 2.5rem;
    padding: 1rem 0;
}

.hackathon-avatar {
    position: absolute;
    left: -4rem;
    top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: hsl(var(--background));
    border-radius: 50%;
}

.hackathon-avatar img {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 1px solid hsl(var(--border));
    object-fit: contain;
    background-color: hsl(var(--card));
}

.hackathon-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hackathon-date {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.hackathon-title {
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
}

.hackathon-location {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.hackathon-description {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
}

.hackathon-links {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hackathon-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    border-radius: calc(var(--radius) - 2px);
    border: 1px solid hsl(var(--border));
    text-decoration: none;
    font-size: 0.75rem;
    transition: colors 0.2s ease;
}

.hackathon-link:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.hackathon-link svg {
    width: 1rem;
    height: 1rem;
}

/* Contact Section */
.contact-section {
    padding: 3rem 0;
    width: 100%;
}

.contact-wrapper {
    display: grid;
    place-items: center;
    gap: 1rem;
    padding: 0 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .contact-wrapper {
        padding: 0 1.5rem;
    }
}

.contact-badge {
    display: inline-block;
    background-color: hsl(var(--foreground));
    color: hsl(var(--background));
    padding: 0.25rem 0.75rem;
    border-radius: calc(var(--radius) + 2px);
    font-size: 0.875rem;
}

.contact-title {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0;
}

@media (min-width: 640px) {
    .contact-title {
        font-size: 3rem;
    }
}

.contact-description {
    margin: 0 auto;
    max-width: 600px;
    color: hsl(var(--muted-foreground));
    font-size: 1rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .contact-description {
        font-size: 1.25rem;
        line-height: 1.5;
    }
}

@media (min-width: 1024px) {
    .contact-description {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media (min-width: 1280px) {
    .contact-description {
        font-size: 1.25rem;
        line-height: 1.5;
    }
}

.contact-link {
    color: #3b82f6;
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-underline-offset: 2px;
}

.contact-link:hover {
    text-decoration: none;
}

/* Navigation Dock */
.navbar-container {
    pointer-events: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: 90%;
    z-index: 50;
    margin: 0 auto 1rem auto;
    display: flex;
    justify-content: center;
    height: 150%;
    max-height: 3rem;
}

.navbar-backdrop {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4rem;
    width: 100%;
    background: linear-gradient(to top, hsl(var(--background)), transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    -webkit-mask-image: linear-gradient(to top, black, transparent);
    mask-image: linear-gradient(to top, black, transparent);
}

.navbar-dock {
    z-index: 50;
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100%;
    height: 120%;
    padding: 0.5rem 1rem;
    background-color: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: 50px;
    box-shadow: 
        0 0 0 1px rgba(0, 0, 0, 0.03),
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 20px 25px -5px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    max-width: fit-content;
    gap: 0.25rem;
}

.dark-theme .navbar-dock {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -20px 80px -20px rgba(255, 255, 255, 0.12) inset;
}

.dock-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.125rem;
}

.dock-item::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0.25rem;
    padding: 0.2rem 0.4rem;
    background-color: hsl(var(--popover));
    color: hsl(var(--popover-foreground));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    pointer-events: none;
}

.dock-item::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: -4px;
    border: 4px solid transparent;
    border-top-color: hsl(var(--border));
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1001;
    pointer-events: none;
}

.dock-item:hover::before,
.dock-item:hover::after {
    opacity: 1;
    visibility: visible;
}

.dock-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background-color: transparent;
    border: none;
    border-radius: calc(var(--radius));
    color: hsl(var(--foreground));
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.dock-link:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    transform: scale(1.1);
}

.dock-link:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.dock-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.dock-separator {
    width: 1px;
    height: 60%;
    background-color: hsl(var(--border));
    margin: 0 0.05rem;
    border-radius: 1px;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
}

.theme-icon {
    transition: all 0.2s ease;
}

.dark-theme .sun-icon {
    display: none;
}

.dark-theme .moon-icon {
    display: block !important;
}

/* Old tooltip system removed - now using CSS-only tooltips */

/* Animation Classes */
.blur-fade {
    opacity: 0;
    transform: translateY(6px);
    filter: blur(6px);
    animation: blurFadeIn 0.4s ease-out forwards;
}

.blur-fade-text {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(8px);
    animation: blurFadeIn 0.4s ease-out forwards;
}

@keyframes blurFadeIn {
    to {
        opacity: 1;
        transform: translateY(-6px);
        filter: blur(0px);
    }
}

/* Animation Delays */
.blur-fade:nth-child(1) { animation-delay: 0.04s; }
.blur-fade:nth-child(2) { animation-delay: 0.08s; }
.blur-fade:nth-child(3) { animation-delay: 0.12s; }
.blur-fade:nth-child(4) { animation-delay: 0.16s; }
.blur-fade:nth-child(5) { animation-delay: 0.20s; }
.blur-fade:nth-child(6) { animation-delay: 0.24s; }
.blur-fade:nth-child(7) { animation-delay: 0.28s; }
.blur-fade:nth-child(8) { animation-delay: 0.32s; }
.blur-fade:nth-child(9) { animation-delay: 0.36s; }
.blur-fade:nth-child(10) { animation-delay: 0.40s; }

/* Responsive Design */
@media (max-width: 640px) {
    .hero-text-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .hero-text-content {
        text-align: left;
        gap: 0.375rem;
        flex: 1;
    }
    
    .hero-avatar {
        flex-shrink: 0;
        margin-bottom: 0;
    }
    
    .avatar-image {
        width: 7.5rem;
        height: 7.5rem;
    }
    
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .navbar-dock {
        margin: 0 1rem;
        max-width: calc(100vw - 2rem);
        padding: 0.4rem 0.65rem;
        border-radius: 50px;
        gap: 0.1rem;
    }
    
    .dock-link {
        width: 1.8rem;
        height: 1.8rem;
    }
    
    .dock-icon {
        width: 0.9rem;
        height: 0.9rem;
    }
    
    .dock-separator {
        margin: 0 0.3rem;
    }
    
    .navbar-container {
        top: 90%;
        margin: 0 auto 3.5rem auto;
    }
    
    .main-container {
        padding: 2rem 1.5rem 1.5rem 1.5rem;
        gap: 0.75rem;
    }
    
    .section {
        margin-bottom: 0.5rem;
    }
    
    .section-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .section-content {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .prose {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    .skills-container {
        gap: 0.5rem;
    }
    
    .skills-row {
        gap: 0.5rem;
    }
    
    .skill-badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.7rem;
        font-weight: 500;
    }
    
    .project-card {
        padding: 0;
    }
    
    .project-card-media {
        height: 8rem;
    }
    
    .project-card-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .project-card-description {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .project-links {
        gap: 0.375rem;
    }
    
    .project-link {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        min-width: 90px;
    }
    
    .resume-cards-container {
        padding-left: 1.5rem;
    }
    
    .resume-cards-container::before {
        left: 0.75rem;
        transform: translateX(-1px);
    }
    
    .resume-card {
        margin-left: 1rem;
    }
    
    .resume-card::before {
        left: -2.25rem;
        width: 10px;
        height: 10px;
        transform: translateX(0px);
    }
    
    .resume-card:hover::before {
        transform: translateX(0px) scale(1.2);
    }
    
    .resume-card-avatar img {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .resume-card-title {
        font-size: 1rem;
    }
    
    .resume-card-period {
        font-size: 0.8rem;
        padding: 0.2rem 0.5rem;
    }
    
    .resume-card-subtitle {
        font-size: 0.85rem;
    }
    
    .resume-card-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .research-item {
        padding: 1rem;
        margin-bottom: 1rem;
        margin-top: 1.5rem;
    }
    
    .research-title {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .research-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .contact-title,
    .projects-title,
    .hackathons-title {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 0.75rem;
    }
    
    .contact-wrapper,
    .projects-header,
    .hackathons-header {
        text-align: center;
        padding: 0 1rem;
    }
    
    .contact-description,
    .projects-description,
    .hackathons-description {
        font-size: 0.9rem;
        line-height: 1.5;
        padding: 0 1rem;
    }
    
    .contact-link {
        font-weight: 600;
        white-space: nowrap;
    }
    
    .hackathons-timeline {
        padding: 0;
    }
    
    .hackathon-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .hackathon-title {
        font-size: 1rem;
    }
    
    .hackathon-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .projects-section,
    .hackathons-section {
        padding: 1.5rem 0;
    }
    
    .projects-wrapper,
    .hackathons-wrapper {
        gap: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar-container {
        display: none;
    }
    
    .blur-fade,
    .blur-fade-text {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        animation: none !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .blur-fade,
    .blur-fade-text {
        animation: none;
        opacity: 1;
        transform: none;
        filter: none;
    }
    
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Focus Styles */
.dock-link:focus-visible,
.resume-card:focus-visible,
.project-card-link:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

/* Selection Styles */
::selection {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: hsl(var(--background));
}

::-webkit-scrollbar-thumb {
    background: hsl(var(--muted));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--muted-foreground));
}