/* ==========================================================================
   Portfolio Styles
   Author: Timothy Kok
   ========================================================================== */

/* ==========================================================================
   Variables & Base
   ========================================================================== */
:root {
    --white: #ffffff;
    --off-white: #fafafa;
    --light-gray: #f5f5f5;
    --mid-gray: #e0e0e0;
    --text-gray: #888888;
    --text-dark: #2a2a2a;
    --accent: #4a6cf7;
    --serif: 'Lora', Georgia, serif;
    --sans: 'Outfit', -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

/* Custom Cursor */
.cursor {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    mix-blend-mode: difference;
}

.cursor-hover {
    transform: scale(1.5);
}

.cursor-follower-hover {
    width: 60px;
    height: 60px;
}

/* Work item cursor - rotating text */
.cursor-follower-work {
    width: 120px;
    height: 120px;
    border: 2px solid #C9A227;
    background: transparent;
    mix-blend-mode: normal;
}

.cursor-follower-work::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    mix-blend-mode: difference;
}

.cursor-follower-work .cursor-text {
    opacity: 1;
}

.cursor-text {
    position: absolute;
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: rotateCursor 8s linear infinite;
}

.cursor-text svg {
    width: 100%;
    height: 100%;
}

.cursor-text text {
    fill: #C9A227;
    font-size: 7.5px;
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

@keyframes rotateCursor {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    font-weight: 300;
    overflow-x: hidden;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: transparent;
    transition: all 0.3s ease;
}

.logo {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-dark);
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    display: inline-block;
    position: relative;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-gray);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 400;
    transition: color 0.4s ease;
    position: relative;
}

/* Dark nav when on light background */
nav.nav-dark .nav-links a {
    color: var(--text-gray);
}

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

nav.nav-dark .nav-links a::after {
    background: var(--text-dark);
}

nav.nav-dark .logo-icon path[stroke] {
    stroke: var(--accent);
    transition: stroke 0.4s ease;
}

nav.nav-dark .logo-icon path[fill] {
    fill: var(--accent);
    transition: fill 0.4s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-dark);
    transition: width 0.3s ease;
}

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

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

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    position: relative;
    background: var(--white);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: #ffffff;
    z-index: 0;
}

.hero-bg-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.hero-badge {
    font-size: 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: #000;
    margin-bottom: 1rem;
    transform-style: preserve-3d;
    will-change: transform;
    display: block;
    text-align: center;
}

.hero-divider {
    width: 30px;
    height: 2px;
    background: #000;
    margin-bottom: 2rem;
}

.hero-title {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    color: var(--white);
    text-align: center;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    line-height: 1.2;
}

.hero-image-container {
    max-width: 1000px;
    width: 100%;
    margin-bottom: 4rem;
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ==========================================================================
   Section Base Styles
   ========================================================================== */
section {
    padding: 8rem 4rem;
}

.section-label {
    font-size: 0.65rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 1rem;
}

.section-divider {
    width: 30px;
    height: 2px;
    background: var(--text-dark);
    margin: 0 auto 4rem;
}

/* ==========================================================================
   Introduction Section
   ========================================================================== */
.intro {
    background: var(--white);
}

.intro-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    align-items: center;
    padding-top: 10rem;
}

.intro-image {
    position: relative;
}

.intro-image img {
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.intro-image:hover img {
    filter: grayscale(0%);
}

.intro-text h3 {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 400;

    margin-bottom: 2rem;
    color: var(--text-dark);
}

.intro-text p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.9;
}

/* ==========================================================================
   Work Section
   ========================================================================== */
.work {
    background: var(--white);
    padding-top: 6rem;
}

.work-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem 3rem;
}

.work-scroll-wrapper {
    height: 70vh;
    display: flex;
    align-items: center;
}

.work-track {
    display: flex;
    gap: 6rem;
    padding: 0 4rem;
    will-change: transform;
}

.work-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.work-headline {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-dark);
    max-width: 700px;
}

.work-item {
    flex-shrink: 0;
    width: 700px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

.work-item-visual {
    flex-shrink: 0;
    width: 350px;
    height: 280px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    border: rounded-md;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

.work-item-info {
    flex: 1;
    max-width: 350px;
}

.work-item-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-item:hover .work-item-visual img {
    transform: scale(1.03);
}

.work-item-title {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.work-item-description {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.7;
    max-width: 100%;
}

/* Work Link Button */
.work-link {
    display: inline-block;
    margin-top: 2rem;
    text-decoration: none;
    color: var(--text-dark);
}

.work-link-circle {
    position: relative;
    width: 60px;
    height: 60px;
    border: 1px solid var(--text-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.work-link:hover .work-link-circle {
    border-color: #C9A227;
    transform: scale(1.1);
}

.work-link-arrow {
    width: 20px;
    height: 20px;
    color: var(--text-dark);
    transition: transform 0.3s ease;
}

.work-link:hover .work-link-arrow {
    transform: translate(2px, -2px);
    color: #C9A227;
}

.work-link-text {
    position: absolute;
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-link-text text {
    font-size: 8px;
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    fill: var(--text-dark);
}

.work-link:hover .work-link-text {
    opacity: 1;
    animation: rotateText 8s linear infinite;
}

.work-link:hover .work-link-text text {
    fill: #C9A227;
}

@keyframes rotateText {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ==========================================================================
   Dot Pattern Animation
   ========================================================================== */
.dot-pattern {
    position: relative;
    width: 140px;
    height: 140px;
}

.dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--text-dark);
    border-radius: 50%;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pattern 1: Scattered to Grid (Clarity) */
.pattern-clarity .dot:nth-child(1) { left: 15%; top: 20%; }
.pattern-clarity .dot:nth-child(2) { left: 45%; top: 8%; }
.pattern-clarity .dot:nth-child(3) { left: 75%; top: 25%; }
.pattern-clarity .dot:nth-child(4) { left: 25%; top: 45%; }
.pattern-clarity .dot:nth-child(5) { left: 55%; top: 35%; }
.pattern-clarity .dot:nth-child(6) { left: 85%; top: 50%; }
.pattern-clarity .dot:nth-child(7) { left: 10%; top: 70%; }
.pattern-clarity .dot:nth-child(8) { left: 40%; top: 60%; }
.pattern-clarity .dot:nth-child(9) { left: 70%; top: 75%; }
.pattern-clarity .dot:nth-child(10) { left: 30%; top: 85%; }
.pattern-clarity .dot:nth-child(11) { left: 60%; top: 90%; }
.pattern-clarity .dot:nth-child(12) { left: 90%; top: 80%; }

.work-item:hover .pattern-clarity .dot:nth-child(1) { left: 10%; top: 10%; }
.work-item:hover .pattern-clarity .dot:nth-child(2) { left: 40%; top: 10%; }
.work-item:hover .pattern-clarity .dot:nth-child(3) { left: 70%; top: 10%; }
.work-item:hover .pattern-clarity .dot:nth-child(4) { left: 10%; top: 40%; }
.work-item:hover .pattern-clarity .dot:nth-child(5) { left: 40%; top: 40%; }
.work-item:hover .pattern-clarity .dot:nth-child(6) { left: 70%; top: 40%; }
.work-item:hover .pattern-clarity .dot:nth-child(7) { left: 10%; top: 70%; }
.work-item:hover .pattern-clarity .dot:nth-child(8) { left: 40%; top: 70%; }
.work-item:hover .pattern-clarity .dot:nth-child(9) { left: 70%; top: 70%; }
.work-item:hover .pattern-clarity .dot:nth-child(10) { left: 25%; top: 25%; }
.work-item:hover .pattern-clarity .dot:nth-child(11) { left: 55%; top: 55%; }
.work-item:hover .pattern-clarity .dot:nth-child(12) { left: 85%; top: 85%; }

/* Pattern 2: Random to Line (Singular) */
.pattern-singular .dot:nth-child(1) { left: 20%; top: 15%; }
.pattern-singular .dot:nth-child(2) { left: 60%; top: 25%; }
.pattern-singular .dot:nth-child(3) { left: 35%; top: 40%; }
.pattern-singular .dot:nth-child(4) { left: 80%; top: 35%; }
.pattern-singular .dot:nth-child(5) { left: 15%; top: 55%; }
.pattern-singular .dot:nth-child(6) { left: 50%; top: 50%; }
.pattern-singular .dot:nth-child(7) { left: 75%; top: 65%; }
.pattern-singular .dot:nth-child(8) { left: 25%; top: 75%; }
.pattern-singular .dot:nth-child(9) { left: 55%; top: 80%; }
.pattern-singular .dot:nth-child(10) { left: 85%; top: 70%; }
.pattern-singular .dot:nth-child(11) { left: 40%; top: 90%; }
.pattern-singular .dot:nth-child(12) { left: 70%; top: 85%; }

.work-item:hover .pattern-singular .dot:nth-child(1) { left: 50%; top: 10%; }
.work-item:hover .pattern-singular .dot:nth-child(2) { left: 50%; top: 18%; }
.work-item:hover .pattern-singular .dot:nth-child(3) { left: 50%; top: 26%; }
.work-item:hover .pattern-singular .dot:nth-child(4) { left: 50%; top: 34%; }
.work-item:hover .pattern-singular .dot:nth-child(5) { left: 50%; top: 42%; }
.work-item:hover .pattern-singular .dot:nth-child(6) { left: 50%; top: 50%; }
.work-item:hover .pattern-singular .dot:nth-child(7) { left: 50%; top: 58%; }
.work-item:hover .pattern-singular .dot:nth-child(8) { left: 50%; top: 66%; }
.work-item:hover .pattern-singular .dot:nth-child(9) { left: 50%; top: 74%; }
.work-item:hover .pattern-singular .dot:nth-child(10) { left: 50%; top: 82%; }
.work-item:hover .pattern-singular .dot:nth-child(11) { left: 50%; top: 90%; }
.work-item:hover .pattern-singular .dot:nth-child(12) { left: 50%; top: 98%; }

/* Pattern 3: Scattered to Center (Mastery) */
.pattern-mastery .dot:nth-child(1) { left: 10%; top: 10%; }
.pattern-mastery .dot:nth-child(2) { left: 85%; top: 15%; }
.pattern-mastery .dot:nth-child(3) { left: 20%; top: 30%; }
.pattern-mastery .dot:nth-child(4) { left: 75%; top: 40%; }
.pattern-mastery .dot:nth-child(5) { left: 30%; top: 55%; }
.pattern-mastery .dot:nth-child(6) { left: 65%; top: 50%; }
.pattern-mastery .dot:nth-child(7) { left: 15%; top: 75%; }
.pattern-mastery .dot:nth-child(8) { left: 80%; top: 70%; }
.pattern-mastery .dot:nth-child(9) { left: 25%; top: 90%; }
.pattern-mastery .dot:nth-child(10) { left: 70%; top: 85%; }
.pattern-mastery .dot:nth-child(11) { left: 45%; top: 20%; }
.pattern-mastery .dot:nth-child(12) { left: 50%; top: 80%; }

.work-item:hover .pattern-mastery .dot:nth-child(1) { left: 42%; top: 35%; }
.work-item:hover .pattern-mastery .dot:nth-child(2) { left: 58%; top: 35%; }
.work-item:hover .pattern-mastery .dot:nth-child(3) { left: 35%; top: 45%; }
.work-item:hover .pattern-mastery .dot:nth-child(4) { left: 65%; top: 45%; }
.work-item:hover .pattern-mastery .dot:nth-child(5) { left: 42%; top: 55%; }
.work-item:hover .pattern-mastery .dot:nth-child(6) { left: 58%; top: 55%; }
.work-item:hover .pattern-mastery .dot:nth-child(7) { left: 35%; top: 65%; }
.work-item:hover .pattern-mastery .dot:nth-child(8) { left: 65%; top: 65%; }
.work-item:hover .pattern-mastery .dot:nth-child(9) { left: 50%; top: 40%; }
.work-item:hover .pattern-mastery .dot:nth-child(10) { left: 50%; top: 50%; }
.work-item:hover .pattern-mastery .dot:nth-child(11) { left: 50%; top: 60%; }
.work-item:hover .pattern-mastery .dot:nth-child(12) { left: 50%; top: 70%; }


.project-image{
    max-width: 1000px;
    margin: 0 auto;
}

/* ==========================================================================
   Skills Section
   ========================================================================== */
.skills {
    position: relative;
    padding: 10rem 4rem;
    overflow: hidden;
}

.skills-bg {
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    bottom: -50px;
    background-image: url('../photos/stack-background.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(4px);
    z-index: -2;
    transform: scale(1.1);
}

.skills::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: -1;
}

.skills .skills-header,
.skills .skills-grid {
    position: relative;
    z-index: 1;
}

.skills .skills-label {
    color: rgba(255, 255, 255, 0.7);
}

.skills .skills-headline {
    color: var(--white);
}

.skills .skills-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

.skills .skill-title {
    color: var(--white);
}

.skills .skill-description {
    color: rgba(255, 255, 255, 0.5);
}

.skills .skill-icon {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.skills .skill-icon svg {
    stroke: rgba(255, 255, 255, 0.7);
}

.skills-header {
    max-width: 1200px;
    margin: 0 auto 5rem;
}

.skills-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.skills-headline {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.skills-subtitle {
    font-size: 0.95rem;
    color: var(--text-gray);
    max-width: 500px;
    line-height: 1.7;
}

.skills-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem 1.5rem;
}

.skill-item {
    padding: 0;
}

.skill-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--white);
    border: 1px solid var(--mid-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.skill-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-gray);
    fill: none;
    stroke-width: 1.5;
    transition: stroke 0.3s ease;
}

.skill-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.skill-description {
    font-size: 0.8rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Rainbow hover colors */
.skill-item:nth-child(1):hover .skill-icon { border-color: #ff6b6b; background: rgba(255, 107, 107, 0.08); }
.skill-item:nth-child(1):hover .skill-icon svg { stroke: #ff6b6b; }

.skill-item:nth-child(2):hover .skill-icon { border-color: #ff9f43; background: rgba(255, 159, 67, 0.08); }
.skill-item:nth-child(2):hover .skill-icon svg { stroke: #ff9f43; }

.skill-item:nth-child(3):hover .skill-icon { border-color: #feca57; background: rgba(254, 202, 87, 0.08); }
.skill-item:nth-child(3):hover .skill-icon svg { stroke: #feca57; }

.skill-item:nth-child(4):hover .skill-icon { border-color: #48dbfb; background: rgba(72, 219, 251, 0.08); }
.skill-item:nth-child(4):hover .skill-icon svg { stroke: #48dbfb; }

.skill-item:nth-child(5):hover .skill-icon { border-color: #5f27cd; background: rgba(95, 39, 205, 0.08); }
.skill-item:nth-child(5):hover .skill-icon svg { stroke: #5f27cd; }

.skill-item:nth-child(6):hover .skill-icon { border-color: #ee5a24; background: rgba(238, 90, 36, 0.08); }
.skill-item:nth-child(6):hover .skill-icon svg { stroke: #ee5a24; }

.skill-item:nth-child(7):hover .skill-icon { border-color: #10ac84; background: rgba(16, 172, 132, 0.08); }
.skill-item:nth-child(7):hover .skill-icon svg { stroke: #10ac84; }

.skill-item:nth-child(8):hover .skill-icon { border-color: #0abde3; background: rgba(10, 189, 227, 0.08); }
.skill-item:nth-child(8):hover .skill-icon svg { stroke: #0abde3; }

.skill-item:nth-child(9):hover .skill-icon { border-color: #ff6b81; background: rgba(255, 107, 129, 0.08); }
.skill-item:nth-child(9):hover .skill-icon svg { stroke: #ff6b81; }

.skill-item:nth-child(10):hover .skill-icon { border-color: #a55eea; background: rgba(165, 94, 234, 0.08); }
.skill-item:nth-child(10):hover .skill-icon svg { stroke: #a55eea; }

.skill-item:nth-child(11):hover .skill-icon { border-color: #ff6b81; background: rgba(255, 107, 129, 0.08); }
.skill-item:nth-child(11):hover .skill-icon svg { stroke: #ff6b81; }

/* ==========================================================================
   Endorsements Section
   ========================================================================== */
.endorsements {
    background: var(--white);
    overflow: hidden;
}

.endorsements-wrapper {
    height: 70vh;
    display: flex;
    align-items: center;
    /* overflow: hidden; */
}

.endorsements-track {
    display: flex;
    gap: 4rem;
    padding-left: 8rem;
    padding-right: 8rem;
    will-change: transform;
}

.endorsement-card {
    flex-shrink: 0;
    width: 600px;
    padding: 2rem;
    background: transparent;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

}

.endorsement-quote {
    font-family: var(--serif);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
    position: relative;
}

.endorsement-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.endorsement-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    /* filter: grayscale(100%); */
    /* transition: filter 0.3s ease; */
}
/* 
.endorsement-avatar:hover {
    filter: grayscale(0%);
} */

.endorsement-author-info h4 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.endorsement-author-info p {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-gray);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
}

.contact .section-label,
.contact .section-title {
    color: var(--white);
}

.contact .section-divider {
    background: var(--white);
}

.contact-text {
    max-width: 600px;
    margin: 0 auto 3rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.9;
}

.contact-email {
    font-family: var(--serif);
    font-size: 1.8rem;
    color: var(--white);
    text-decoration: none;
    position: relative;
    transition: opacity 0.3s ease;
}

.contact-email:hover {
    opacity: 0.7;
}

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

.social-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--white);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: var(--text-dark);
    padding: 2rem 4rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

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

/* GSAP handles animations - these are fallbacks if JS is disabled */
.no-js .fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.no-js .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .work-item {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 968px) {
    nav {
        padding: 1.5rem 2rem;
    }

    .nav-links {
        gap: 2rem;
    }

    section {
        padding: 5rem 2rem;
    }

    .hero {
        padding: 6rem 2rem 3rem;
    }

    .intro-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .intro-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .work-item {
        width: 85vw;
        max-width: 400px;
    }
    
    .work-scroll-wrapper {
        height: auto;
        min-height: 100vh;
    }

    .work-item-description {
        max-width: 100%;
    }

    .work-headline {
        font-size: 1.5rem;
    }

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

    .endorsement-container {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }

    .endorsement-author {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }

    .section-title {
        font-size: 1.5rem;
        letter-spacing: 0.2em;
    }

    .contact-email {
        font-size: 1.3rem;
    }

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