/* ========================================
   CSS VARIABLES & ACCENT COLOR
   ======================================== */

:root {
    /*
     * ═══════════════════════════════════════
     * SINGLE ACCENT COLOR SYSTEM
     * ═══════════════════════════════════════
     *
     * CURRENT COLOR: Muted plum (#8b7a9e)
     * Chosen to suggest: thoughtfulness, creativity, cognitive science
     *
     * WHERE IT APPEARS:
     * - All hyperlinks (contact, projects, etc.)
     * - Hover states on project cards
     * - Small decorative elements (flowers, brushstrokes)
     * - Sidebar active indicators
     *
     * HOW TO CHANGE THE ACCENT COLOR:
     * 1. Replace --accent-color with your hex value
     * 2. Generate lighter tints at: https://maketintsandshades.com
     * 3. Update --accent-light (lighter) and --accent-very-light (very subtle)
     *
     * ALTERNATIVE COLOR SUGGESTIONS:
     * - Warm terracotta: #c17b6c (earthy, approachable)
     * - Sage green: #7a9e8b (calm, growth-focused)
     * - Dusty blue: #7a8e9e (professional, trustworthy)
     * - Soft amber: #c4a87a (warm, optimistic)
     *
     * TO REMOVE ACCENT ENTIRELY:
     * Set all three variables to neutral gray:
     * --accent-color: #666666;
     * --accent-light: #999999;
     * --accent-very-light: #e0e0e0;
     */
    --accent-color: #8b7a9e;
    --accent-light: #b8aec4;
    --accent-very-light: #e8e4ec;
}

/* Quote stays visible for four seconds, then the plane reveals the homepage. */
.welcome-seen .welcome-screen,
.welcome-seen .welcome-airplane {
    display: none;
    animation: none;
}

.welcome-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 28px;
    background: #faf9fc;
    animation: welcome-reveal 2s ease-in-out 4s forwards;
}

.welcome-quote {
    max-width: 720px;
    margin: 0;
    text-align: center;
    color: #4a4056;
}

.welcome-quote p {
    font-size: clamp(1.4rem, 3.5vw, 2.3rem);
    line-height: 1.5;
    font-weight: 500;
    margin: 0 0 20px;
}

.welcome-quote cite {
    font-size: 1rem;
    font-style: normal;
    color: var(--accent-color);
}

.welcome-airplane {
    position: fixed;
    z-index: 10001;
    top: calc(50% - 32px);
    left: -90px;
    width: 64px;
    height: 64px;
    color: var(--accent-color);
    pointer-events: none;
    animation: welcome-flight 2s ease-in-out 4s forwards;
}

.welcome-airplane svg {
    display: block;
    width: 100%;
    height: 100%;
}

@keyframes welcome-reveal {
    from { transform: translateX(0); }
    to { transform: translateX(100%); visibility: hidden; pointer-events: none; }
}

@keyframes welcome-flight {
    from { transform: translateX(0); }
    to { transform: translateX(calc(100vw + 180px)); visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
    .welcome-airplane { display: none; }
    .welcome-screen { animation: welcome-fade 0.2s linear 4s forwards; }
}

@keyframes welcome-fade {
    to { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* ========================================
   INTRO OVERLAY EXPERIENCE
   ======================================== */

/* Intro Overlay - Full screen overlay that appears on first visit */
body[data-intro-enabled="false"] .intro-overlay {
    display: none;
}

.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* Hide overlay when intro is complete */
.intro-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Skip Intro Button */
.skip-intro-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.95rem;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.skip-intro-btn:hover {
    background: #ffffff;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Card Container - holds all three intro cards */
.intro-cards-container {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    padding: 20px;
}

/* Individual Intro Card */
.intro-card {
    width: 280px;
    height: 380px;
    perspective: 1000px;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.6s ease;
    animation: cardEntrance 0.6s ease forwards;
    opacity: 0;
}

/* Stagger card entrance animations */
.intro-card[data-card="1"] {
    animation-delay: 0.1s;
}

.intro-card[data-card="2"] {
    animation-delay: 0.2s;
}

.intro-card[data-card="3"] {
    animation-delay: 0.3s;
}

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effect - subtle lift and tilt */
.intro-card:hover {
    transform: translateY(-8px) rotateX(2deg);
}

/* Card is flipped */
.intro-card.flipped .card-inner {
    transform: rotateY(180deg);
}

/* Card is dismissed (fades out) */
.intro-card.dismissed {
    opacity: 0;
    transform: scale(0.8) translateY(-40px);
    pointer-events: none;
}

/* Card Inner - enables 3D flip */
.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform-style: preserve-3d;
}

/* Card Front and Back - shared styles */
.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Card Front */
.card-front {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e8e8e8;
}

/* Card Icon */
.card-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    filter: grayscale(0.2);
}

.card-front h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #0a0a0a;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.card-hint {
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
}

/* Card Back */
.card-back {
    background: linear-gradient(135deg, #0a0a0a 0%, #2a2a2a 100%);
    color: #ffffff;
    transform: rotateY(180deg);
}

.card-back h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.2px;
    line-height: 1.4;
}

.card-back p {
    font-size: 1rem;
    line-height: 1.6;
    color: #e0e0e0;
}

/* Main Content - blurred during intro */
.main-content {
    filter: blur(0px);
    transition: filter 0.6s ease;
}

/* Blur main content when intro is active */
body.intro-active .main-content {
    filter: blur(8px);
    pointer-events: none;
}

/* Remove blur when intro is complete */
body.intro-complete .main-content {
    filter: blur(0px);
    pointer-events: auto;
}

/* ======================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #ffffff;
    color: #222222;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation Bar */
.nav-bar {
    background-color: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.nav-logo {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-logo:hover {
    color: #555555;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: #555555;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: #111111;
}

.nav-link.active {
    color: #111111;
    font-weight: 500;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #111111;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background-color: #111111;
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 40px 100px;
    flex: 1;
    position: relative;
}

/*
 * DECORATIVE ELEMENT: Bottom-left brushstroke accent
 * Placement: Bottom-left corner of container
 * To adjust: Change bottom/left values, width, or opacity
 * To remove: Delete this entire ::after block
 */
.container::after {
    content: "";
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-very-light) 30%, transparent 100%);
    opacity: 0.4;
    pointer-events: none;
}

/* Profile Section */
.profile-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-bottom: 65px;
    padding-top: 10px;
    position: relative;
}

.profile-copy {
    min-width: 0;
}

.profile-section .contact-links {
    justify-content: flex-start;
}

.container:has(.profile-section) {
    padding-top: 35px;
}

/*
 * DECORATIVE ELEMENT: Minimal floral accent
 * Placement: Top-right corner of profile section
 * To adjust: Change top/right values or opacity
 * To remove: Delete this entire ::before block
 */
.profile-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%238b7a9e' opacity='0.12'%3E%3Ccircle cx='50' cy='50' r='3'/%3E%3Cellipse cx='50' cy='35' rx='4' ry='8' transform='rotate(0 50 50)'/%3E%3Cellipse cx='50' cy='35' rx='4' ry='8' transform='rotate(60 50 50)'/%3E%3Cellipse cx='50' cy='35' rx='4' ry='8' transform='rotate(120 50 50)'/%3E%3Cellipse cx='50' cy='35' rx='4' ry='8' transform='rotate(180 50 50)'/%3E%3Cellipse cx='50' cy='35' rx='4' ry='8' transform='rotate(240 50 50)'/%3E%3Cellipse cx='50' cy='35' rx='4' ry='8' transform='rotate(300 50 50)'/%3E%3C/g%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0.5;
}

.profile-image-container {
    position: relative;
    margin: 0 auto;
    width: 400px;
    max-width: 100%;
    aspect-ratio: 4 / 3;
}

.profile-section .profile-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    box-sizing: border-box;
    border-radius: 16px;
    object-fit: cover;
    border: 3px solid #f5f5f5;
    transition: transform 0.2s ease;
    display: block;
}

.profile-image:hover {
    transform: scale(1.02);
}

.profile-section h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #0a0a0a;
    letter-spacing: -0.5px;
}

.profile-section .intro {
    font-size: 0.95rem;
    color: #4a4a4a;
    max-width: 720px;
    margin: 0 auto 18px;
    line-height: 1.6;
}

/* Contact Links */
.home-explore-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-bottom: 22px;
}

.home-research-highlight {
    padding: 24px 28px;
    border: 1px solid var(--accent-very-light);
    border-radius: 16px;
    background: #faf9fc;
}

.home-experience-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .home-experience-grid { grid-template-columns: minmax(0, 1fr); }
}

.home-research-highlight h3 {
    font-size: 1.4rem;
    margin: 10px 0;
}

.home-research-highlight > p:not(.project-status) {
    color: #4a4a4a;
    line-height: 1.6;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .home-explore-links { justify-content: center; }
}

.contact-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #0a0a0a;
    text-decoration: underline;
}

.separator {
    color: #cccccc;
    font-size: 0.9rem;
}

/* Research Highlights Section */
.research-highlights {
    margin-bottom: 80px;
}

.research-highlights h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #0a0a0a;
    letter-spacing: -0.3px;
}

.highlights-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    padding: 30px;
    background-color: #fafafa;
    border-radius: 10px;
    border: 1px solid #ececec;
}

.highlight-item {
    text-align: center;
    padding: 20px 15px;
}

.highlight-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0a0a0a;
}

.highlight-item p {
    font-size: 0.95rem;
    color: #666666;
    line-height: 1.5;
}

/* Experience Highlights Section */
.experience-highlights {
    margin-bottom: 100px;
}

.experience-highlights h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: #0a0a0a;
    letter-spacing: -0.3px;
}

.experience-grid {
    display: grid;
    gap: 40px;
}

.experience-item {
    padding: 30px;
    border-radius: 8px;
    background-color: #fafafa;
    border-left: 3px solid #e0e0e0;
    transition: all 0.2s ease;
}

.experience-item:hover {
    background-color: #f5f5f5;
    border-left-color: #999999;
    transform: translateX(2px);
}

.experience-item h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0a0a0a;
}

.org-name {
    font-size: 1rem;
    color: #666666;
    margin-bottom: 12px;
}

.experience-description {
    font-size: 1.05rem;
    color: #4a4a4a;
    line-height: 1.7;
}

/* Recent Projects Section */
.recent-projects {
    margin-bottom: 80px;
}

.recent-projects h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: #0a0a0a;
    letter-spacing: -0.3px;
}

/* Project Carousel */
.project-carousel {
    position: relative;
    min-height: 240px;
    padding: 35px;
    background-color: #fafafa;
    border-radius: 12px;
    border: 1px solid #ececec;
}

.project {
    opacity: 0;
    position: absolute;
    top: 35px;
    left: 35px;
    right: 35px;
    width: calc(100% - 70px);
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.project.active {
    opacity: 1;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    pointer-events: auto;
}

.project-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: #0a0a0a;
}

.project-description {
    font-size: 1.05rem;
    color: #4a4a4a;
    margin-bottom: 14px;
    line-height: 1.7;
}

.project-tech {
    font-size: 0.95rem;
    color: #666666;
    margin-bottom: 18px;
}

.project-tech strong {
    color: #333333;
}

.project-link {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
    padding: 8px 16px;
    border: 1px solid var(--accent-color);
    border-radius: 6px;
}

.project-link:hover {
    background-color: var(--accent-color);
    color: #ffffff;
    text-decoration: none;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 35px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d0d0d0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #0a0a0a;
    transform: scale(1.2);
}

.dot:hover {
    background-color: #888888;
}

/* Page Header (for all non-home pages) */
.page-header {
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

/* Subtle flower decoration with accent color */
.page-header::after {
    content: "✿";
    position: absolute;
    bottom: -8px;
    left: 0;
    font-size: 1rem;
    color: var(--accent-very-light);
    opacity: 0.7;
}

.page-header h1 {
    font-size: 2.75rem;
    font-weight: 600;
    margin-bottom: 18px;
    color: #0a0a0a;
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 1.125rem;
    color: #555555;
    max-width: 720px;
    line-height: 1.6;
}

/* Experience Page Styles */
.experience-page-layout {
    display: flex;
    gap: 60px;
    position: relative;
}

/* Experience Sidebar */
.experience-sidebar {
    flex-shrink: 0;
    width: 140px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
    border-left: 2px solid #f0f0f0;
}

.sidebar-link {
    padding-left: 20px;
    font-size: 1rem;
    color: #888888;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    margin-left: -2px;
    position: relative;
}

.sidebar-link:hover {
    color: #0a0a0a;
    border-left-color: #d0d0d0;
}

.sidebar-link.active {
    color: #0a0a0a;
    font-weight: 500;
    border-left-color: #0a0a0a;
}

/* Add small flower decoration with accent */
.sidebar-link.active::before {
    content: "✿";
    position: absolute;
    left: -14px;
    font-size: 0.85rem;
    color: var(--accent-light);
    opacity: 0.8;
}

.experience-content {
    flex: 1;
    min-width: 0;
}

.section-divider {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 35px;
    padding-top: 80px;
    margin-top: -60px;
    color: #0a0a0a;
    letter-spacing: -0.3px;
    position: relative;
}

/* Artistic brushstroke divider with accent */
.section-divider::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-light) 0%, transparent 100%);
    margin-top: 15px;
    border-radius: 2px;
    opacity: 0.6;
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-bottom: 60px;
}

.experience-detail {
    padding: 35px;
    background-color: #fafafa;
    border-radius: 10px;
    border-left: 4px solid #e0e0e0;
    transition: all 0.2s ease;
}

.experience-detail:hover {
    background-color: #f5f5f5;
    border-left-color: #999999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
    gap: 20px;
}

.experience-detail h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0a0a0a;
}

.organization {
    font-size: 1.05rem;
    color: #666666;
}

.experience-date {
    font-size: 0.95rem;
    color: #888888;
    white-space: nowrap;
    font-weight: 500;
}

.experience-points {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.experience-points li {
    font-size: 1.05rem;
    color: #4a4a4a;
    line-height: 1.7;
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
}

.experience-points li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #999999;
    font-size: 0.9rem;
}

/* Skills Section */
.skills-section {
    margin-top: 70px;
    padding-top: 50px;
    border-top: 2px solid #f0f0f0;
}

.skills-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 35px;
    color: #0a0a0a;
    letter-spacing: -0.3px;
}

.skills-grid {
    display: grid;
    gap: 35px;
}

.skill-category {
    padding: 25px;
    background-color: #fafafa;
    border-radius: 8px;
}

.skill-category h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #0a0a0a;
}

.skill-category p {
    font-size: 1.05rem;
    color: #555555;
    line-height: 1.7;
}

/* Projects Page Styles */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.project-detail {
    padding: 35px;
    background-color: #fafafa;
    border-radius: 10px;
    border-left: 4px solid #e0e0e0;
    transition: all 0.2s ease;
}

.project-detail:hover {
    background-color: #f5f5f5;
    border-left-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.project-detail h2 {
    font-size: 1.65rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #0a0a0a;
}

.project-description-full {
    font-size: 1.05rem;
    color: #4a4a4a;
    line-height: 1.75;
    margin-bottom: 16px;
}

.tech-stack {
    font-size: 1rem;
    color: #666666;
    margin-bottom: 14px;
}

.tech-stack strong {
    color: #333333;
    font-weight: 600;
}

.project-status {
    font-size: 0.95rem;
    color: #888888;
    font-style: italic;
    margin-top: 8px;
}

/* Activities Page Styles */
.activities-list {
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.activity-detail {
    padding: 35px;
    background-color: #fafafa;
    border-radius: 10px;
    border-left: 4px solid #e0e0e0;
    transition: all 0.2s ease;
}

.activity-detail:hover {
    background-color: #f5f5f5;
    border-left-color: #999999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.activity-detail h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #0a0a0a;
}

.activity-description {
    font-size: 1.05rem;
    color: #4a4a4a;
    line-height: 1.75;
    margin-bottom: 14px;
}

.activity-date {
    font-size: 0.95rem;
    color: #888888;
    font-weight: 500;
}

/* Contact Page Styles */
.contact-page-content {
    max-width: 650px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.contact-method {
    padding: 30px;
    background-color: #fafafa;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.contact-method:hover {
    background-color: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.contact-method h2 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #0a0a0a;
}

.contact-link-large {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

.contact-link-large:hover {
    color: #0a0a0a;
    text-decoration: underline;
}

.contact-info {
    font-size: 1.05rem;
    color: #4a4a4a;
}

.contact-note {
    font-size: 0.95rem;
    color: #666666;
    margin-top: 10px;
    line-height: 1.6;
}

/* Resume Download Buttons */
.resume-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.resume-download-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 24px;
    background-color: #ffffff;
    border: 2px solid var(--accent-very-light);
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    cursor: pointer;
}

.resume-download-btn:hover {
    background-color: var(--accent-very-light);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 122, 158, 0.15);
}

.resume-icon {
    font-size: 2rem;
    line-height: 1;
}

.resume-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.resume-text strong {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0a0a0a;
}

.resume-text small {
    font-size: 0.9rem;
    color: #666;
    font-weight: normal;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Mobile Navigation */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 1px solid #e0e0e0;
    }

    .nav-menu.active {
        max-height: 300px;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        border-top: 1px solid #f5f5f5;
    }

    .nav-link {
        display: block;
        padding: 15px 20px;
    }

    .nav-link.active::after {
        display: none;
    }

    /* Content */
    .container {
        padding: 50px 25px 70px;
    }

    .profile-section {
        grid-template-columns: minmax(0, 1fr);
        gap: 25px;
        text-align: center;
        margin-bottom: 50px;
        padding-top: 20px;
    }

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

    .profile-image-container {
        width: 340px;
    }

    .profile-section h1 {
        font-size: 2.25rem;
    }

    .profile-section .intro {
        font-size: 0.95rem;
    }

    .project-carousel {
        padding: 25px;
    }

    .project {
        top: 25px;
        left: 25px;
        right: 25px;
        width: calc(100% - 50px);
    }

    .project.active {
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
    }

    .experience-highlights h2,
    .recent-projects h2 {
        font-size: 1.5rem;
    }

    .experience-item h3 {
        font-size: 1.15rem;
    }

    .project-title {
        font-size: 1.25rem;
    }

    .project-description {
        font-size: 0.95rem;
    }

    /* Page layouts on tablet */
    .page-header h1 {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .experience-header {
        flex-direction: column;
        gap: 8px;
    }

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

    .experience-detail h2,
    .activity-detail h2 {
        font-size: 1.25rem;
    }

    .project-detail h2 {
        font-size: 1.35rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 40px 20px 60px;
    }

    .profile-section {
        padding-top: 10px;
    }

    .profile-image-container {
        width: 300px;
    }

    .profile-section h1 {
        font-size: 2rem;
    }

    .profile-section .intro {
        font-size: 0.9rem;
    }

    .contact-links {
        flex-direction: column;
        gap: 10px;
    }

    .separator {
        display: none;
    }

    .experience-item {
        padding: 25px;
    }

    .experience-highlights h2,
    .recent-projects h2 {
        font-size: 1.65rem;
    }

    .experience-grid {
        gap: 30px;
    }

    .project-carousel {
        padding: 20px;
        min-height: 260px;
    }

    .project {
        top: 20px;
        left: 20px;
        right: 20px;
        width: calc(100% - 40px);
    }

    .project.active {
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
    }

    .project-link {
        padding: 6px 14px;
        font-size: 0.95rem;
    }

    /* Page layouts on mobile */
    .page-header {
        padding-bottom: 25px;
    }

    .page-header h1 {
        font-size: 2.25rem;
    }

    .page-subtitle {
        font-size: 1.05rem;
    }

    .experience-detail,
    .project-detail,
    .activity-detail {
        padding: 25px;
    }

    .experience-detail h2,
    .activity-detail h2 {
        font-size: 1.3rem;
    }

    .project-detail h2 {
        font-size: 1.4rem;
    }

    .contact-method {
        padding: 25px;
    }

    .contact-method h2 {
        font-size: 1.2rem;
    }

    /* Experience page sidebar - hide on mobile */
    .experience-page-layout {
        flex-direction: column;
    }

    .experience-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 30px;
        border-bottom: 1px solid #e5e5e5;
        padding-bottom: 15px;
    }

    .sidebar-nav {
        display: flex;
        flex-direction: row;
        gap: 0;
        justify-content: flex-start;
    }

    .sidebar-link {
        padding: 8px 16px;
        font-size: 0.95rem;
    }

    .sidebar-link::before {
        content: "";
        display: none;
    }

    .sidebar-link.active {
        border-bottom: 2px solid #333;
        border-left: none;
    }

    .experience-content {
        width: 100%;
    }

    /* Intro Cards - Mobile Responsive */
    .intro-cards-container {
        flex-direction: column;
        gap: 30px;
        padding: 70px 15px 20px 15px; /* Extra top padding for skip button */
        align-items: center;
        justify-content: flex-start;
    }

    .intro-card {
        width: 100%;
        max-width: 380px; /* Larger max-width for comfortable reading */
        min-width: 280px; /* Prevent cards from being too narrow */
        height: 480px; /* Fixed height to contain all content */
        margin: 0 auto;
        perspective: 1500px; /* Larger perspective for smoother flip */
    }

    /* Ensure card-inner fills the card completely */
    .card-inner {
        width: 100%;
        height: 100%;
        position: relative;
    }

    /* FIX: Disable hover effects on mobile (touch screens) */
    .intro-card:hover {
        transform: none;
    }

    /* FIX: Ensure card-inner is centered during flip */
    .card-inner {
        transform-origin: center center; /* Explicit center origin */
    }

    /* FIX: Prevent overflow/clipping during flip animation on mobile */
    .intro-overlay {
        overflow-y: auto; /* Allow scrolling if cards exceed viewport */
        overflow-x: hidden; /* Prevent horizontal overflow */
    }

    /* Mobile card styling for comfortable reading */
    .card-front,
    .card-back {
        padding: 40px 25px;
        border-radius: 12px;
    }

    .skip-intro-btn {
        top: 20px;
        right: 20px;
        padding: 10px 18px;
        font-size: 0.9rem;
        z-index: 10000; /* Ensure button stays above cards */
        position: fixed; /* Make button stay visible when scrolling */
    }

    .card-front h2 {
        font-size: 1.6rem;
        margin-bottom: 16px;
    }

    .card-hint {
        font-size: 1rem;
    }

    .card-back h3 {
        font-size: 1.3rem;
        margin-bottom: 18px;
        line-height: 1.4;
    }

    .card-back p {
        font-size: 1.05rem;
        line-height: 1.65;
    }

    .card-icon {
        font-size: 4rem;
        margin-bottom: 24px;
    }

    /* Ensure intro overlay is scrollable and comfortable */
    .intro-overlay {
        overflow-y: auto;
        overflow-x: hidden;
        padding: 20px 0;
        display: flex;
        align-items: flex-start; /* Align to top for scrolling */
    }
}

/* ========================================
   DECORATIVE ELEMENTS GUIDE
   ======================================== */

/*
 * ═══════════════════════════════════════
 * SUMMARY OF ALL DECORATIVE ELEMENTS
 * ═══════════════════════════════════════
 *
 * This website uses MINIMAL decorative touches to add personality
 * without overwhelming the content. All decorations are:
 * - Positioned at edges/margins (never behind text)
 * - Low opacity (0.4-0.7)
 * - Using the accent color system
 * - Easily adjustable or removable
 *
 * ═══════════════════════════════════════
 * DECORATION #1: Profile Section Flower
 * ═══════════════════════════════════════
 * Location: .profile-section::before (line ~348)
 * Where: Top-right corner of profile section (homepage only)
 * Style: Minimal 6-petal flower SVG
 * Color: var(--accent-color) at 12% opacity
 * Size: 80px × 80px
 *
 * To adjust opacity:
 * Change "opacity: 0.5" value (0.0 = invisible, 1.0 = fully visible)
 *
 * To move position:
 * Change "top: 0" and "right: 0" values
 * Example: "top: 20px; right: 20px" moves it inward
 *
 * To remove entirely:
 * Delete the entire .profile-section::before block
 *
 * ═══════════════════════════════════════
 * DECORATION #2: Bottom Brushstroke
 * ═══════════════════════════════════════
 * Location: .container::after (line ~341)
 * Where: Bottom-left of every page's main content
 * Style: Horizontal gradient line (brushstroke effect)
 * Color: var(--accent-very-light) fading to transparent
 * Size: 120px wide × 2px tall
 *
 * To adjust subtlety:
 * Change "opacity: 0.4" value
 *
 * To adjust length:
 * Change "width: 120px" value
 *
 * To remove entirely:
 * Delete the entire .container::after block
 *
 * ═══════════════════════════════════════
 * DECORATION #3: Page Header Flower
 * ═══════════════════════════════════════
 * Location: .page-header::after (line ~613)
 * Where: Bottom-left of page titles (Experience, Projects, etc.)
 * Style: Single flower character "✿"
 * Color: var(--accent-very-light) at 70% opacity
 *
 * To change the symbol:
 * Replace "✿" with another character like "◆" "●" "✦" "❖"
 *
 * To remove entirely:
 * Delete the entire .page-header::after block
 *
 * ═══════════════════════════════════════
 * DECORATION #4: Sidebar Active Flower
 * ═══════════════════════════════════════
 * Location: .sidebar-link.active::before (line ~685)
 * Where: Next to active sidebar link (Experience page)
 * Style: Small flower character "✿"
 * Color: var(--accent-light) at 80% opacity
 *
 * To remove entirely:
 * Delete the entire .sidebar-link.active::before block
 *
 * ═══════════════════════════════════════
 * DECORATION #5: Section Divider Brushstroke
 * ═══════════════════════════════════════
 * Location: .section-divider::after (line ~711)
 * Where: Under section headings (Industry, Research, etc.)
 * Style: Horizontal gradient line
 * Color: var(--accent-light) fading to transparent
 * Size: 60px wide × 3px tall
 *
 * To adjust length:
 * Change "width: 60px" value
 *
 * To remove entirely:
 * Delete the entire .section-divider::after block
 *
 * ═══════════════════════════════════════
 * QUICK TIPS FOR CUSTOMIZATION
 * ═══════════════════════════════════════
 *
 * REDUCE VISUAL WEIGHT BY 50%:
 * Find each decoration's opacity value and divide by 2
 * Example: "opacity: 0.5" becomes "opacity: 0.25"
 *
 * CHANGE ALL DECORATIONS TO NEUTRAL:
 * Set accent colors to grays (see top of file, line ~33)
 *
 * TEST BEFORE COMMITTING:
 * - Open site in browser
 * - Scroll through all pages
 * - Check mobile view (resize browser)
 * - Ensure decorations don't distract from content
 *
 * GOLDEN RULE:
 * "If you notice the decoration before the content,
 *  reduce the opacity or remove it."
 */

/* ========================================
   PHOTO GALLERY
   ======================================== */

/*
 * Personal photo gallery that appears before Research Highlights
 * Dense honeycomb/mosaic grid of small square tiles
 * Mobile: 4 columns, Tablet: 6 columns, Desktop: 8 columns
 * Minimal gaps (6-8px) for Instagram-style micro grid
 * Tiles are 1:1 aspect ratio, responsive sizing
 * Subtle animations and hover effects
 */

.photo-gallery-section {
    margin-bottom: 60px;
    padding-top: 0;
}

/* Optional heading for the gallery */
.gallery-heading {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* Photo Grid Container - Dense CSS Grid */
.photo-grid {
    display: grid;
    gap: 6px;
    max-width: 900px;
    margin: 0 auto;

    /* Mobile: 4 columns of small tiles */
    grid-template-columns: repeat(4, 1fr);
}

/* Tablet: 6 columns */
@media (min-width: 640px) {
    .photo-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 8px;
    }
}

/* Desktop: 8 columns for dense honeycomb feel */
@media (min-width: 900px) {
    .photo-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 8px;
    }
}

/* Individual Photo Tile - Small Square */
.gallery-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
    background-color: #f8f9fa;

    /* Minimal shadow and border */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(139, 122, 158, 0.08);

    /* Smooth transitions */
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);

    /* FIX: Default to visible - animation will override if JS loads */
    opacity: 1;
    transform: scale(1);
}

/* Photo tile hover effect - Subtle for small tiles */
.gallery-photo:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(139, 122, 158, 0.18);
}

/* Image styling */
.gallery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* Subtle zoom on image hover */
.gallery-photo:hover img {
    transform: scale(1.05);
}

/* Loading state */
.gallery-photo img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/*
 * CUSTOMIZATION GUIDE FOR PHOTO GALLERY
 * ═══════════════════════════════════════
 *
 * CHANGE NUMBER OF COLUMNS:
 * - Mobile: "repeat(4, 1fr)" - try 3 or 5
 * - Tablet: "repeat(6, 1fr)" - try 5 or 7
 * - Desktop: "repeat(8, 1fr)" - try 6, 10, or 12
 *
 * CHANGE SPACING BETWEEN PHOTOS:
 * - Edit "gap: 6px" for mobile, "gap: 8px" for desktop
 * - Try: 4px (tighter), 10px (more space)
 *
 * CHANGE BORDER RADIUS:
 * - Edit "border-radius: 4px" (try 2px for sharper, 6px for rounder)
 *
 * CHANGE SHADOW INTENSITY:
 * - Edit box-shadow opacity (currently 0.08 for subtle)
 * - Increase to 0.12 for more pronounced shadow
 *
 * REMOVE HOVER EFFECTS:
 * - Delete or comment out .gallery-photo:hover rules
 *
 * CHANGE ACCENT BORDER COLOR:
 * - Edit "rgba(139, 122, 158, 0.08)" to adjust border color
 * - Increase 0.08 to 0.15 for more visible border
 */

/* ========================================
   ANIMATION ENHANCEMENTS
   ======================================== */

/*
 * HOVER LIFT EFFECT
 * Subtle upward movement on hover for interactive cards
 * Applied by animations.js to cards and interactive elements
 * To disable: Remove the hover-lift class assignment in animations.js
 */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1),
                box-shadow 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* Enhanced hover for experience and highlight items */
.experience-item.hover-lift:hover {
    box-shadow: 0 8px 24px rgba(139, 122, 158, 0.12);
}

.highlight-item.hover-lift:hover {
    box-shadow: 0 8px 24px rgba(139, 122, 158, 0.08);
}

/*
 * SMOOTH LINK TRANSITIONS
 * Enhanced micro-interactions for all links
 */
a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.contact-link,
.contact-link-large,
.project-link {
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/*
 * ACCESSIBILITY: RESPECT REDUCED MOTION PREFERENCE
 * If user has enabled "Reduce Motion" in their OS settings,
 * disable all animations for accessibility
 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* Remove hover transforms for reduced motion users */
    .hover-lift:hover {
        transform: none;
    }
}

/*
 * ANIMATION PREPARATION STATES
 * Elements with data-animate attribute start invisible
 * JavaScript will animate them in when they scroll into view
 *
 * EXCEPTION: Gallery photos default to visible for progressive enhancement
 */
[data-animate]:not(.gallery-photo) {
    opacity: 0;
}

/* Gallery photos: Always visible by default, animations enhance when JS loads */
.gallery-photo[data-animate] {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* Fallback: Show content if JavaScript doesn't load */
.no-js [data-animate] {
    opacity: 1 !important;
    transform: none !important;
}

/* ========================================
   ACTIVITIES PAGE - IMAGE + TEXT LAYOUT
   ======================================== */

/* Activities Section */
.activities-section {
    margin-bottom: 100px;
}

/* Individual Activity Item - Side-by-Side Layout */
.activity-item {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 80px;
    padding: 30px;
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: #fafafa;
    box-shadow: 0 4px 20px rgba(139, 122, 158, 0.08);
}

/* Image on Left - Default */
.activity-item.image-left {
    flex-direction: row;
}

/* Image on Right - Alternate Layout */
.activity-item.image-right {
    flex-direction: row-reverse;
}

/* Activity Image Container */
.activity-image {
    flex-shrink: 0;
    width: 300px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.activity-item:hover .activity-image img {
    transform: scale(1.05);
}

/* Activity Content */
.activity-content {
    flex: 1;
}

.activity-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #0a0a0a;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.activity-role {
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.activity-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4a4a4a;
}

/* ========================================
   HOBBIES SECTION - SMALL PHOTO GRID
   ======================================== */

.hobbies-section {
    margin-bottom: 80px;
    padding-top: 40px;
    border-top: 1px solid #f0f0f0;
}

.section-heading {
    font-size: 2rem;
    font-weight: 600;
    color: #0a0a0a;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: -0.4px;
}

/* Hobbies Grid */
.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

/* Individual Hobby Item */
.hobby-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.hobby-item:hover {
    transform: translateY(-4px);
}

/* Hobby Image */
.hobby-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(139, 122, 158, 0.1);
}

.hobby-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hobby-item:hover .hobby-image img {
    transform: scale(1.08);
}

/* Hobby Text */
.hobby-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0a0a0a;
    margin-bottom: 8px;
}

.hobby-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666666;
}

/* ========================================
   RESPONSIVE: ACTIVITIES & HOBBIES
   ======================================== */

/* Tablet: 2 columns for hobbies */
@media (max-width: 900px) {
    .hobbies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .activity-image {
        width: 250px;
        height: 167px;
    }
}

/* Mobile: Stack vertically */
@media (max-width: 768px) {
    .activity-item {
        flex-direction: column !important;
        gap: 24px;
        padding: 20px;
        margin-bottom: 50px;
    }

    .activity-image {
        width: 100%;
        height: 220px;
    }

    .activity-content h2 {
        font-size: 1.5rem;
    }

    .hobbies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .section-heading {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .hobby-item h3 {
        font-size: 1.1rem;
    }

    .hobby-item p {
        font-size: 0.9rem;
    }
}
