/* ===========================
   Show More Button for Project Hold
   =========================== */
.show-more-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    color: #000;
    border: 1px solid #000;
    border-radius: 24px;
    padding: 0.5em 1.5em;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    z-index: 10;
    cursor: pointer;
    display: none;
    transition: opacity 0.2s;
}
.project-list-item {
    position: relative;
}
/* ===========================
   Global Styles & Reset
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #fafaf8;
    --text-dark: #1a1a18;
    --text-light: #6b6b68;
    --text-color: var(--text-dark);
    --primary-color: var(--text-dark);
    --accent-color: var(--text-light);
    --border-color: rgba(26, 26, 24, 0.12);
    --accent: #000;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-color);
    line-height: 1.8;
    overflow-x: clip;
    letter-spacing: -0.4px;
    max-width: 100%;
}

body.terminal-theme {
    background: linear-gradient(180deg, var(--bg-color) 0%, #f5f3f0 100%);
}

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

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

/* ===========================
   Navbar
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1.5rem 0;
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: center;
    /* Center the nav items */
    align-items: center;
    position: relative;
}

.nav-brand {
    position: absolute;
    left: 20px;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

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

.nav-link {
    font-weight: 500;
    color: var(--text-light);
    /* Start with light gray */
    position: relative;
    font-size: 0.9rem;
    text-transform: capitalize;
    /* calebwu uses normal case/capitalize, not uppercase */
    letter-spacing: 0px;
    transition: color 0.3s ease;
}

/* Remove underline animation */
.nav-link::after {
    display: none;
}

.nav-link:hover {
    color: var(--text-dark);
    /* Fade to black */
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--text-dark);
    transition: var(--transition);
    display: none;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 20px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: currentColor;
    margin: 3.5px 0;
    transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.menu-toggle:hover {
    opacity: 0.7;
}

/* ===========================
   Hero Section
   =========================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 0, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    animation: slideUpHero 1s ease-out;
}

@keyframes slideUpHero {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 800;
    letter-spacing: -3px;
    line-height: 1;
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 3rem;
    font-weight: 400;
    animation: slideInRight 0.8s ease-out 0.4s both;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-light);
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    animation: fadeInUp 1s ease-out 0.15s both;
}

.hero-summary {
    max-width: 44rem;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.75s both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator span {
    font-size: 0.9rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}



@keyframes bounce {

    0%,
    100% {
        transform: rotate(-45deg) translateY(0);
    }

    50% {
        transform: rotate(-45deg) translateY(8px);
    }
}

/* ===========================
   Section Styles
   =========================== */
.about-section,
.projects-section,
.experiences-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.about-section {
    background: #fff;
}

.projects-section {
    background: linear-gradient(to bottom, #fafafa, #fff);
}

.experiences-section {
    background: #fff;
}

.section-content {
    position: relative;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 4rem;
    color: var(--text-color);
    font-weight: 800;
    letter-spacing: -2px;
    animation: slideInLeft 0.8s ease-out;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.9rem;
    color: var(--text-light);
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* ===========================
   About Section
   =========================== */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-text-block {
    font-size: 1.2rem;
    max-width: 700px;
    color: var(--accent-color);
    line-height: 1.8;
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.about-text-block p {
    margin-bottom: 0;
}

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

.about-card {
    background: #f9f9f9;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    border: 1px solid var(--border-color);
    animation: slideInUp 0.6s ease-out;
}

.about-card:nth-child(1) {
    animation-delay: 0.2s;
}

.about-card:nth-child(2) {
    animation-delay: 0.4s;
}

.about-card:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-card:hover {
    transform: translateX(10px) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--text-color);
}

.about-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
}

.about-card p {
    color: var(--accent-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===========================
   Projects Section
   =========================== */
.projects-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.projects-section.projects-section-secondary {
    padding-top: 72px;
    padding-bottom: 88px;
    background: linear-gradient(180deg, #fbfbfa 0%, #f5f4f1 100%);
}

.projects-section.projects-section-secondary .section-content {
    max-width: 1040px;
    margin: 0 auto;
}

.projects-section.projects-section-secondary .section-title {
    margin-bottom: 0.75rem;
}

.projects-section.projects-section-secondary .section-subtitle {
    max-width: 42rem;
    color: var(--text-light);
}

.projects-section .section-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    color: var(--primary-color);
    /* Kept user's choice */
    line-height: 1.8;
    animation: slideInLeft 0.8s ease-out 0.2s both;
    margin-bottom: 2rem;
    /* Restore margin */
    font-weight: 400;
    padding-left: 0;
}

.projects-section .section-title {
    margin-bottom: 0.5rem;
    padding-left: 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Projects Page Section */
.projects-page-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background: #fff;
    min-height: 100vh;
}

.projects-page-section .section-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    color: var(--accent-color);
    line-height: 1.8;
    animation: slideInLeft 0.8s ease-out 0.2s both;
    margin-bottom: 3rem;
    font-weight: 400;
}

/* Projects Showcase */
.projects-showcase {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    min-height: 100vh;
}

.showcase-header {
    text-align: center;
    margin-bottom: 5rem;
    animation: slideInUp 0.8s ease-out;
}

.showcase-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.1;
}

.showcase-subtitle {
    font-size: 1.4rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.6;
}

/* Featured Project */
.featured-project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
    padding: 4rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.featured-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 36px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-content h2 {
    font-size: 3rem;
    color: var(--text-dark);
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0;
}

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

.project-meta {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 0;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    font-weight: 600;
}

.meta-value {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.featured-visual {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInRight 0.8s ease-out 0.2s both;
}

.visual-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.visual-placeholder svg {
    width: 80%;
    height: 80%;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
}

.project-link:hover {
    gap: 1rem;
    color: #000;
}

.project-link span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.project-link:hover span {
    transform: translateX(5px);
}

/* Showcase Grid */
.projects-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.showcase-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.showcase-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.card-visual {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.showcase-card:hover .card-visual {
    background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%);
}

.card-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.showcase-card:hover .card-visual::after {
    opacity: 1;
}

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

.card-content h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    font-weight: 700;
    margin: 0;
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 100px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: fit-content;
    align-self: left;
}

.card-link:hover {
    gap: 1rem;
}

/* Small Tags */
.tag-small {
    display: inline-block;
    background: #f0f0f0;
    color: var(--text-dark);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: all 0.3s ease;
}

.showcase-card:hover .tag-small {
    background: #e0e0e0;
}

/* Responsive */
@media (max-width: 1024px) {
    .featured-project {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem;
    }

    .featured-content h2 {
        font-size: 2.5rem;
    }

    .showcase-title {
        font-size: 3rem;
    }

    .project-list {
        width: min(88vw, 64rem);
    }
}

@media (max-width: 768px) {
    .projects-showcase {
        padding: 80px 0;
    }

    .projects-section.projects-section-secondary {
        padding-top: 56px;
        padding-bottom: 72px;
    }

    .showcase-header {
        margin-bottom: 3rem;
    }

    .showcase-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .showcase-subtitle {
        font-size: 1.1rem;
    }

    .featured-project {
        margin-bottom: 4rem;
        padding: 2rem;
    }

    .featured-content h2 {
        font-size: 2rem;
    }

    .project-meta {
        gap: 1rem;
    }

    .featured-visual {
        height: 300px;
    }

    .projects-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .card-visual {
        height: 200px;
    }

    .card-content {
        padding: 1.5rem;
    }

    .hero-eyebrow {
        font-size: 0.72rem;
        padding: 0.4rem 0.9rem;
    }

    .hero-summary {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .showcase-title {
        font-size: 1.8rem;
    }

    .featured-project {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

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

    .featured-content p {
        font-size: 0.95rem;
    }

    .hero-summary {
        font-size: 0.92rem;
    }

    .project-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .featured-visual {
        height: 250px;
    }

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

/* Horizontal Scroll Styles */
.projects-container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.projects-track {
    display: flex;
    gap: 4rem;
    padding: 0 5vw;
    /* Maintain padding for aesthetics */
    width: max-content;

}

.project-card {
    background: linear-gradient(135deg, #f0f0f0 0%, #e5e5e5 100%);
    border-radius: 24px;
    padding: 10rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    overflow: hidden;
    cursor: pointer;
    width: 400px;
    /* Fixed width for horizontal scroll */
    height: 450px;
    /* Fixed height */
    flex-shrink: 0;
    /* Prevent shrinking */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    opacity: 1;
    /* Make visible by default for GSAP */
}

/* Remove old scroll animations as GSAP handles the scroll */
.project-card[data-project] {
    animation: none;
}


.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
    z-index: 1;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    transition: background 0.4s ease;
    z-index: 1;
    pointer-events: none;
    border-radius: 24px;
}

.project-card:hover::after {
    background: rgba(0, 0, 0, 0.3);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateX(5px) translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-card.featured-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.project-card.featured-card:hover {
    transform: translateX(15px) translateY(-8px);
}

.project-card-content {
    padding: 0;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.project-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.project-card:hover .project-card-image {
    transform: scale(1.05);
}

.project-card h3 {
    margin-bottom: 0;
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.project-card.featured-card h3 {
    color: white;
    font-size: 2rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* Vertical Projects List */
.project-list {
    width: min(82vw, 64rem);
    margin: clamp(1rem, 2.5vh, 2rem) auto 0;
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 2.25rem);
    max-width: 100%;
}

.project-list-item {
    display: grid;
    grid-template-columns: minmax(0, 34%) minmax(0, 1fr);
    min-height: clamp(240px, 34vw, 420px);
    gap: 0;
    align-items: stretch;
    width: 100%;
    margin-left: 0;
    max-width: 100%;
    border: 1px solid transparent;
    border-radius: clamp(10px, 1.2vw, 16px);
    background: #fff;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    will-change: transform, box-shadow;
}

.project-list-image {
    order: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.project-list-content {
    order: 2;
    padding: clamp(0.9rem, 2vw, 1.6rem) clamp(1rem, 2.2vw, 2.2rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.project-list-content h3 {
    font-size: clamp(1.2rem, 2.1vw, 2.2rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.project-list-content p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: clamp(0.9rem, 1.05vw, 1.1rem);
    max-width: 55ch;
    overflow-wrap: anywhere;
}

.project-list-see-more {
    background: white;
}

.project-list-see-more .project-list-content h3,
.project-list-see-more .project-list-content p {
    color: black;
}

.project-list-see-more .project-list-content h3::after {
    content: " ->";
}

.project-archive-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.98rem;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.project-archive-link:hover {
    transform: translateX(4px);
    opacity: 0.75;
}

@media (hover: hover) and (pointer: fine) {
    .project-list-item:hover {
        transform: translateY(-10px) scale(1.015);
        box-shadow: 0 24px 44px rgba(0, 0, 0, 0.16);
        border-color: #bbb;
    }

    .project-list-item:hover .project-list-image {
        transform: scale(1.06);
    }
}

/* ===========================
   Experiences Section
   =========================== */
.experiences-timeline {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    padding-left: 40px;
}

.experiences-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--text-color), transparent);
    border-radius: 2px;
}

.experience-card {
    display: flex;
    gap: 2rem;
    animation: slideInLeft 0.6s ease-out;
    position: relative;
    transition: all 0.4s ease;
}

.experience-card:nth-child(1) {
    animation-delay: 0.1s;
}

.experience-card:nth-child(2) {
    animation-delay: 0.2s;
}

.experience-card:nth-child(3) {
    animation-delay: 0.3s;
}

.experience-card::before {
    content: '';
    position: absolute;
    left: -49px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--text-color);
    border-radius: 50%;
    transition: all 0.4s ease;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}

.experience-card:hover::before {
    width: 16px;
    height: 16px;
    left: -51px;
    top: 4px;
    box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.15);
}

.experience-card:hover {
    transform: translateX(10px);
}

.experience-year {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-color);
    min-width: 80px;
    letter-spacing: -1px;
}

.experience-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.experience-content p {
    color: var(--accent-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===========================
   Contact Section
   =========================== */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form-wrapper {
    animation: slideInLeft 0.6s ease-out;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-group textarea {
    resize: vertical;
    line-height: 1.6;
}

.submit-btn {
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.submit-btn:active {
    transform: translateY(0);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: slideInRight 0.6s ease-out;
}

.info-item {
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.info-item h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item p {
    color: var(--accent-color);
    line-height: 1.6;
    margin: 0;
}

.info-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.info-item a:hover {
    transform: translateX(3px);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    color: var(--text-color);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Simplified contact section */
.contact-simple {
    text-align: center;
    padding: 3rem 2rem;
    animation: fadeIn 0.6s ease-out;
}

.contact-label {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 500;
}

.contact-email {
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    padding: 1rem 2rem;
    border: 2px solid var(--text-dark);
    border-radius: 8px;
    transition: var(--transition);
    margin-top: 0.5rem;
}

.contact-email:hover {
    background: var(--text-dark);
    color: white;
    transform: translateY(-2px);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: #f9f9f9;
    color: var(--accent-color);
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

/* ===========================
   Scroll Animations
   =========================== */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

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

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

@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 0;
    }

    .nav-brand h1 {
        font-size: 1.3rem;
    }

    .nav-menu {
        gap: 1.2rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .hero-section {
        padding-top: 80px;
        min-height: 90vh;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .about-section,
    .projects-section,
    .experiences-section {
        padding: 60px 0;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .project-list-item {
        grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
        min-height: clamp(240px, 46vw, 380px);
        width: auto;
        margin-left: 0;
    }

    .project-list-image {
        height: 100%;
    }

    .project-list-content {
        padding: clamp(0.9rem, 2.2vw, 1.4rem);
    }

    .project-list-content h3 {
        font-size: clamp(1.1rem, 2.6vw, 1.5rem);
    }

    .experiences-timeline {
        padding-left: 30px;
    }

    .experience-card::before {
        left: -39px;
    }

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

@media (max-width: 640px) {
    .project-list {
        width: 100%;
    }

    .project-list-item {
        grid-template-columns: 1fr;
        min-height: auto;
    }
}

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

    .nav-brand h1 {
        font-size: 1.1rem;
        margin: 0;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        padding: 1rem 0;
        gap: 0;
        display: none !important;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu.active {
        display: flex !important;
    }

    .nav-menu li {
        padding: 0.75rem 1.5rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        font-size: 0.9rem;
    }

    .menu-toggle {
        display: block;
    }

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

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

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

    .about-section,
    .projects-section,
    .experiences-section {
        padding: 40px 0;
    }

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

    .project-list-item {
        grid-template-columns: 1fr;
        gap: 0;
        min-height: auto;
        width: auto;
        margin-left: 0;
    }

    .project-list-image {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .project-list-content {
        padding: clamp(0.8rem, 3.5vw, 1.1rem);
    }

    .experiences-timeline {
        padding-left: 25px;
    }

    .experience-year {
        font-size: 1.3rem;
    }

    .experience-content h3 {
        font-size: 1rem;
    }

    .contact-section {
        padding: 50px 0;
    }

    .contact-content {
        gap: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.6rem 0.8rem;
        font-size: 16px;
    }

    .info-item {
        padding: 1rem;
    }

    .info-item h3 {
        font-size: 0.95rem;
    }
}

/* ===========================
   Project Tags
   =========================== */
.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tag {
    display: inline-block;
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}
