/* Neobrutalism Design System */
:root {
    /* Color Palette */
    --primary: #FFD600;
    --primary-dark: #FFAB00;
    --secondary: #FF6B9D;
    --accent: #7C4DFF;
    --teal: #00C9A7;
    --coral: #FF6B6B;

    /* Backgrounds */
    --bg-main: #FFF8E1;
    --bg-card: #FFFFFF;

    /* Text */
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;

    /* Neobrutalism */
    --border: #1A1A1A;
    --shadow: 4px 4px 0px #1A1A1A;
    --shadow-hover: 6px 6px 0px #1A1A1A;
    --shadow-lg: 8px 8px 0px #1A1A1A;

    /* Spacing & Layout */
    --container-width: 1200px;
    --nav-height: 80px;
    --chat-resting-bottom: 20px;
    --chat-bottom-offset: var(--chat-resting-bottom);
    --chat-panel-lift: 67px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s ease;
}

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

/* Accessibility: respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .particles-container,
    .hero-rockets {
        display: none !important;
    }
}

/* Scroll fade-in (toggled by IntersectionObserver in script.js) */
.fade-up {
    transform: translateY(20px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.is-visible {
    transform: translateY(0);
}

html {
    scroll-behavior: smooth;
    /* Keeps section headings clear of the fixed navbar when landing on a #hash URL directly */
    scroll-padding-top: var(--nav-height);
    font-size: 16px;
}

body {
    font-family: 'DM Sans', 'Space Grotesk', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-main);
    min-height: 100vh;
    overflow-x: hidden;
}

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.125em;
    flex-shrink: 0;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================
   TOP NAVIGATION BAR
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--primary);
    border-bottom: 3px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    box-shadow: 0 3px 0px var(--border);
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
    letter-spacing: -0.5px;
}

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

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

.nav-item {
    margin: 0;
}

.nav-link {
    display: inline-block;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    background: transparent;
    transition: all var(--transition-fast);
}

.nav-link:hover {
    background: var(--bg-card);
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
    transform: translate(-2px, -2px);
}

.nav-link.active {
    background: var(--bg-card);
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
    font-weight: 800;
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 3px solid var(--border);
    box-shadow: var(--shadow);
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.mobile-toggle:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-hover);
}

.mobile-toggle .icon-close {
    display: none;
}

.mobile-toggle.is-open .icon-menu {
    display: none;
}

.mobile-toggle.is-open .icon-close {
    display: inline-block;
}

/* ==========================================
   MAIN CONTENT AREA
   ========================================== */
.main-content {
    margin-top: var(--nav-height);
    min-height: 100vh;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    padding: 2rem 0;
}

/* Particle Animation */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    background: rgba(26, 26, 26, 0.08);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    width: 4px;
    height: 4px;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.particle:nth-child(2) {
    width: 6px;
    height: 6px;
    left: 20%;
    animation-delay: 1s;
    animation-duration: 8s;
}

.particle:nth-child(3) {
    width: 3px;
    height: 3px;
    left: 30%;
    animation-delay: 2s;
    animation-duration: 7s;
}

.particle:nth-child(4) {
    width: 5px;
    height: 5px;
    left: 40%;
    animation-delay: 3s;
    animation-duration: 9s;
}

.particle:nth-child(5) {
    width: 4px;
    height: 4px;
    left: 50%;
    animation-delay: 4s;
    animation-duration: 6s;
}

.particle:nth-child(6) {
    width: 7px;
    height: 7px;
    left: 60%;
    animation-delay: 5s;
    animation-duration: 8s;
}

.particle:nth-child(7) {
    width: 3px;
    height: 3px;
    left: 70%;
    animation-delay: 0.5s;
    animation-duration: 7s;
}

.particle:nth-child(8) {
    width: 5px;
    height: 5px;
    left: 80%;
    animation-delay: 1.5s;
    animation-duration: 9s;
}

.particle:nth-child(9) {
    width: 4px;
    height: 4px;
    left: 90%;
    animation-delay: 2.5s;
    animation-duration: 6s;
}

.particle:nth-child(10) {
    width: 6px;
    height: 6px;
    left: 15%;
    animation-delay: 3.5s;
    animation-duration: 8s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    50% {
        transform: translateY(-10vh) rotate(180deg);
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: row;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    min-height: 80vh;
}

.hero-content {
    flex: 1;
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.hero-title .highlight {
    font-family: inherit;
    font-weight: 800;
    background: var(--primary);
    padding: 0 8px;
    display: inline;
    color: var(--text-primary);
    border: 3px solid var(--border);
    box-shadow: var(--shadow);
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 600px;
    padding-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 700;
    transition: all var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    min-width: 200px;
    border: 3px solid var(--border);
}

.btn-primary {
    background: var(--primary);
    color: var(--text-primary);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-hover);
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    background: var(--secondary);
    color: var(--text-primary);
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-hover);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    animation: slideInRight 1s ease-out;
    position: relative;
    z-index: 2;
}

.avatar-wrapper {
    position: relative;
    width: 400px;
    max-width: 100%;
    line-height: 0;
    user-select: none;
}

.avatar-img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

.eye-pupil {
    position: absolute;
    pointer-events: none;
    transition: transform 0.08s ease-out;
    will-change: transform;
}

/* Disable transition smoothing while the mobile orbit animation drives transforms */
.avatar-wrapper.is-auto-orbit .eye-pupil {
    transition: none;
}
/* ==========================================
   SECTION STYLES
   ========================================== */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: var(--primary);
    border: 2px solid var(--border);
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about {
    background: transparent;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================
   PROJECTS SECTION
   ========================================== */
.projects {
    position: relative;
    z-index: 1;
}

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

.project-card {
    background: var(--bg-card);
    border: 3px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    height: 220px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--border);
}

.project-card:nth-child(2) .project-image {
    background: var(--secondary);
}

.project-card:nth-child(3) .project-image {
    background: var(--teal);
}

.project-card:nth-child(4) .project-image {
    background: var(--coral);
}

.project-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.project-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    transition: all var(--transition-fast);
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--border);
    background: var(--bg-card);
    box-shadow: 2px 2px 0px var(--border);
}

.project-link:hover {
    background: var(--accent);
    color: white;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px var(--border);
}

/* ==========================================
   EXPERIENCE / TIMELINE SECTION
   ========================================== */
.experience {
    position: relative;
}

.timeline-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    padding-left: 0;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-content {
    background: var(--bg-card);
    padding: 2.5rem;
    border: 3px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
    min-width: 0;
    transition: all var(--transition-smooth);
}

.timeline-content:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-hover);
}

.timeline-date {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--accent);
    color: white;
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid var(--border);
    box-shadow: 2px 2px 0px var(--border);
    z-index: 3;
    max-width: calc(100% - 40px);
    white-space: normal;
    overflow-wrap: anywhere;
}

.timeline-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid var(--border);
    box-shadow: 2px 2px 0px var(--border);
}

.current-badge {
    background: var(--teal);
    color: var(--text-primary);
}

.education-badge {
    background: var(--coral);
    color: var(--text-primary);
}

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

.timeline-content h4 {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.timeline-details {
    margin-top: 1.5rem;
}

.gpa-info {
    background: #FFF9C4;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border: 2px solid var(--border);
    border-left: 5px solid var(--primary);
    color: var(--text-secondary);
}

.highlight-gpa {
    color: var(--text-primary);
    font-weight: 700;
}

.coursework h5,
.tech-stack h5 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.coursework,
.tech-stack {
    margin-top: 1.25rem;
}

.course-tags,
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.course-tag,
.tech-tag {
    background: var(--primary);
    color: var(--text-primary);
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid var(--border);
}

.course-tag,
.tech-tag,
.timeline-content h3,
.timeline-content h4,
.achievement-text,
.gpa-info {
    overflow-wrap: anywhere;
}

.achievements {
    display: grid;
    gap: 1rem;
}

.achievement-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    transition: all var(--transition-fast);
}

.achievement-item:last-child {
    margin-bottom: 0;
}

.achievement-item:hover {
    background: #FFF9C4;
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow);
}

.achievement-text {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.achievement-text strong {
    color: var(--text-primary);
}

/* ==========================================
   BACK TO TOP
   ========================================== */
.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 56px;
    height: 56px;
    border: 3px solid var(--border);
    background: var(--primary);
    color: var(--text-primary);
    box-shadow: var(--shadow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(16px) scale(0.96);
    transition: opacity var(--transition-smooth),
        transform var(--transition-smooth),
        visibility var(--transition-smooth),
        background var(--transition-fast);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.back-to-top .icon {
    font-size: 1.1rem;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-hover);
}

.back-to-top:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* ==========================================
   CHAT WIDGET — ASK PRANAV
   ========================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.chat-pill {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: var(--chat-bottom-offset);
    width: min(420px, calc(100vw - 2rem));
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.45rem 0.4rem 1.1rem;
    border: 1px solid rgba(26, 26, 26, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 8px 32px rgba(26, 26, 26, 0.18);
    z-index: 1200;
}

@supports not (backdrop-filter: blur(1px)) {
    .chat-pill {
        background: rgba(255, 255, 255, 0.92);
    }
}

.chat-pill:focus-within {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.chat-pill-icon {
    color: var(--accent);
    font-size: 1.15rem;
    flex-shrink: 0;
    animation: chat-sparkle 3s ease-in-out infinite;
}

@keyframes chat-sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.15) rotate(8deg); }
}

.chat-pill-input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text-primary);
    padding: 0.45rem 0;
}

.chat-pill-input::placeholder {
    color: rgba(26, 26, 26, 0.55);
}

.chat-pill-input:focus {
    outline: none;
}

.chat-panel {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(var(--chat-bottom-offset) + var(--chat-panel-lift));
    top: auto;
    right: auto;
    margin: 0;
    width: min(420px, calc(100vw - 2rem));
    max-height: min(540px, calc(100vh - var(--chat-bottom-offset) - var(--chat-panel-lift) - 2.75rem));
    padding: 0;
    border: 3px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
    z-index: 1300;
    flex-direction: column;
}

.chat-panel[open] {
    display: flex;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--accent);
    border-bottom: 3px solid var(--border);
}

.chat-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #FFFFFF;
    margin: 0;
}

.chat-close {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    background: var(--primary);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.chat-close:hover {
    background: var(--primary-dark);
}

.chat-close:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.chat-log {
    flex: 1;
    min-height: 180px;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--bg-main);
}

.chat-message {
    max-width: 88%;
    padding: 0.65rem 0.85rem;
    border: 2px solid var(--border);
    font-size: 0.92rem;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

.chat-message--bot {
    align-self: flex-start;
    background: var(--bg-card);
    box-shadow: 3px 3px 0px var(--border);
}

.chat-message--user {
    align-self: flex-end;
    background: var(--primary);
    box-shadow: -3px 3px 0px var(--border);
}

.chat-message--typing {
    align-self: flex-start;
    background: var(--bg-card);
    box-shadow: 3px 3px 0px var(--border);
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1rem 0.75rem;
    background: var(--bg-main);
}

.chat-suggestions[hidden] {
    display: none;
}

.chat-chip {
    border: 2px solid var(--border);
    background: var(--teal);
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    cursor: pointer;
    box-shadow: 2px 2px 0px var(--border);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.chat-chip:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px var(--border);
}

.chat-chip:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.chat-send {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border: 2px solid var(--border);
    border-radius: 50%;
    background: var(--accent);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none;
    transition: background var(--transition-fast);
}

.chat-send:hover {
    background: var(--secondary);
}

.chat-send:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact {
    position: relative;
}

#contact .section-title {
    margin-bottom: 1.5rem;
}

.contact-info {
    padding: 0.6rem 3rem 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.social-link {
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 3px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary);
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-hover);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--text-primary);
    color: var(--bg-main);
    text-align: center;
    padding: 2rem 0;
    border-top: 3px solid var(--border);
}

/* ==========================================
   HERO ROCKETS
   ========================================== */
.hero-rockets {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.rocket {
    position: absolute;
    font-size: 1.5rem;
    color: var(--accent);
}

.rocket .rocket-icon {
    animation: rocketPulse 2s ease-in-out infinite;
}

.rocket-1 {
    animation: rocketFly1 15s linear infinite;
    animation-delay: 0s;
}

.rocket-2 {
    animation: rocketFly2 12s linear infinite;
    animation-delay: 3s;
}

.rocket-3 {
    animation: rocketFly3 18s linear infinite;
    animation-delay: 6s;
}

.rocket-4 {
    animation: rocketFly4 14s linear infinite;
    animation-delay: 9s;
}

.rocket-5 {
    animation: rocketFly5 11s linear infinite;
    animation-delay: 1.5s;
}

.rocket-6 {
    animation: rocketFly6 16s linear infinite;
    animation-delay: 4.5s;
}

.rocket-7 {
    animation: rocketFly7 13s linear infinite;
    animation-delay: 7.5s;
}

.rocket-8 {
    animation: rocketFly8 17s linear infinite;
    animation-delay: 2s;
}

@keyframes rocketFly1 {
    0% { left: -30px; top: 80%; transform: rotate(45deg); }
    25% { left: 25%; top: 60%; transform: rotate(30deg); }
    50% { left: 50%; top: 40%; transform: rotate(15deg); }
    75% { left: 75%; top: 20%; transform: rotate(0deg); }
    100% { left: 110%; top: 10%; transform: rotate(-15deg); }
}

@keyframes rocketFly2 {
    0% { left: -30px; top: 30%; transform: rotate(0deg); }
    25% { left: 25%; top: 25%; transform: rotate(5deg); }
    50% { left: 50%; top: 20%; transform: rotate(0deg); }
    75% { left: 75%; top: 25%; transform: rotate(-5deg); }
    100% { left: 110%; top: 30%; transform: rotate(0deg); }
}

@keyframes rocketFly3 {
    0% { left: 10%; top: 90%; transform: rotate(60deg); }
    20% { left: 30%; top: 70%; transform: rotate(30deg); }
    40% { left: 50%; top: 50%; transform: rotate(0deg); }
    60% { left: 70%; top: 30%; transform: rotate(-30deg); }
    80% { left: 90%; top: 10%; transform: rotate(-60deg); }
    100% { left: 110%; top: 5%; transform: rotate(-90deg); }
}

@keyframes rocketFly4 {
    0% { left: -30px; top: 50%; transform: rotate(30deg); }
    20% { left: 20%; top: 30%; transform: rotate(60deg); }
    40% { left: 40%; top: 50%; transform: rotate(30deg); }
    60% { left: 60%; top: 30%; transform: rotate(60deg); }
    80% { left: 80%; top: 50%; transform: rotate(30deg); }
    100% { left: 110%; top: 40%; transform: rotate(0deg); }
}

@keyframes rocketFly5 {
    0% { left: 110%; top: 70%; transform: rotate(180deg); }
    100% { left: -30px; top: 20%; transform: rotate(200deg); }
}

@keyframes rocketFly6 {
    0% { left: 5%; top: -30px; transform: rotate(120deg); }
    25% { left: 20%; top: 20%; transform: rotate(100deg); }
    50% { left: 40%; top: 45%; transform: rotate(90deg); }
    75% { left: 65%; top: 65%; transform: rotate(80deg); }
    100% { left: 90%; top: 95%; transform: rotate(60deg); }
}

@keyframes rocketFly7 {
    0% { left: 110%; top: 40%; transform: rotate(-10deg) scaleX(-1); }
    50% { left: 55%; top: 20%; transform: rotate(10deg) scaleX(-1); }
    100% { left: -30px; top: 60%; transform: rotate(-5deg) scaleX(-1); }
}

@keyframes rocketFly8 {
    0% { left: 50%; top: 95%; transform: rotate(80deg); }
    33% { left: 70%; top: 60%; transform: rotate(50deg); }
    66% { left: 90%; top: 30%; transform: rotate(20deg); }
    100% { left: 110%; top: 5%; transform: rotate(-10deg); }
}

@keyframes rocketPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes slideInLeft {
    from { transform: translateX(-50px); }
    to { transform: translateX(0); }
}

@keyframes slideInRight {
    from { transform: translateX(50px); }
    to { transform: translateX(0); }
}




/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Large Desktop */
@media (min-width: 1400px) {
    .hero-container {
        max-width: 1400px;
        gap: 6rem;
    }

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

    .hero-title .highlight {
        font-size: inherit;
    }

    .hero-description {
        font-size: 1.2rem;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .hero-container {
        gap: 3rem;
    }

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

    .hero-title .highlight {
        font-size: inherit;
    }

    .nav-menu {
        gap: 0.25rem;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --chat-resting-bottom: 12px;
        --chat-panel-lift: 58px;
    }

    .container {
        padding: 0 15px;
    }

    /* Disable decorative animations on mobile to save battery */
    .particles-container,
    .hero-rockets {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .navbar {
        padding: 0 1rem;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--bg-card);
        border-bottom: 3px solid var(--border);
        box-shadow: 0 4px 0px var(--border);
        padding: 1rem;
        gap: 0.5rem;
    }

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

    .nav-link {
        padding: 1rem 1.5rem;
        width: 100%;
        text-align: center;
        font-size: 0.9rem;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
        gap: 2rem;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
        justify-content: center;
    }

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

    .hero-title .highlight {
        font-size: inherit;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

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

    .timeline-container {
        padding: 1rem 0 0.5rem;
    }

    .timeline-item {
        margin-bottom: 1.75rem;
        padding-left: 0;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-date {
        position: static;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: fit-content;
        max-width: 100%;
        margin-bottom: 0.85rem;
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .timeline-badge {
        margin-bottom: 0.85rem;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
        line-height: 1.25;
    }

    .timeline-content h4 {
        font-size: 1rem;
        line-height: 1.45;
        margin-bottom: 1rem;
    }

    .timeline-details {
        margin-top: 1rem;
    }

    .gpa-info {
        padding: 0.9rem 1rem;
    }

    .course-tags,
    .tech-tags {
        gap: 0.5rem;
    }

    .course-tag,
    .tech-tag {
        font-size: 0.78rem;
        max-width: 100%;
    }

    .achievement-item {
        gap: 0.85rem;
        padding: 0.9rem;
    }

    .achievement-text {
        font-size: 0.92rem;
        line-height: 1.65;
    }

    .project-card {
        margin-bottom: 2rem;
    }
    .back-to-top {
        right: 1rem;
        bottom: 1rem;
        width: 52px;
        height: 52px;
    }

    .chat-pill {
        left: 0.75rem;
        transform: none;
        width: calc(100vw - 2.25rem - 52px);
    }

    .chat-panel {
        width: calc(100vw - 1.5rem);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    :root {
        --chat-resting-bottom: 10px;
        --chat-panel-lift: 56px;
    }

    .container {
        padding: 0 10px;
    }

    .nav-logo a {
        font-size: 1.2rem;
    }

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

    .hero-title .highlight {
        font-size: inherit;
    }

    .hero-description {
        font-size: 0.9rem;
    }

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

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }



    .project-content h3 {
        font-size: 1.2rem;
    }

    .project-content p {
        font-size: 0.9rem;
    }

    .timeline-container {
        padding-top: 0.5rem;
    }

    .timeline-item {
        margin-bottom: 1.25rem;
    }

    .timeline-content {
        padding: 1.15rem;
    }

    .timeline-date {
        padding: 0.45rem 0.8rem;
        font-size: 0.74rem;
        margin-bottom: 0.75rem;
    }

    .timeline-badge {
        font-size: 0.68rem;
        padding: 0.35rem 0.75rem;
        margin-bottom: 0.75rem;
    }

    .timeline-content h3 {
        font-size: 1.05rem;
    }

    .timeline-content h4 {
        font-size: 0.9rem;
        margin-bottom: 0.9rem;
    }

    .timeline-details {
        margin-top: 0.9rem;
    }

    .gpa-info,
    .achievement-item {
        padding: 0.85rem;
    }

    .achievement-text {
        font-size: 0.88rem;
    }

    .course-tag,
    .tech-tag {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }

    .back-to-top {
        width: 48px;
        height: 48px;
        right: 0.85rem;
        bottom: 0.85rem;
    }

    .chat-pill {
        left: 0.6rem;
        transform: none;
        width: calc(100vw - 1.95rem - 48px);
    }

    .chat-panel {
        width: calc(100vw - 1.2rem);
        max-height: min(480px, calc(100vh - 6rem));
    }
}

/* Tiny Mobile */
@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }

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

    .hero-title .highlight {
        font-size: inherit;
    }

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

    .nav-logo a {
        font-size: 1rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-container {
        flex-direction: row;
        gap: 2rem;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
    }

}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .nav-link {
        padding: 15px 20px;
    }

    .btn {
        padding: 15px 30px;
        min-height: 48px;
    }

    .project-link {
        padding: 12px 16px;
    }
}

/* ==========================================
   RESUME DOWNLOAD STYLES
   ========================================== */
.resume-download {
    margin: 0 0 1.5rem;
    padding: 0;
    background: transparent;
    border: none;
    text-align: center;
}

.resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 2.5rem;
    background: var(--primary);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    border: 3px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resume-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-hover);
    background: var(--primary-dark);
}

.resume-btn:active {
    transform: translate(0, 0);
    box-shadow: 2px 2px 0px var(--border);
}

.resume-btn:hover .icon {
    transform: translateY(-3px);
}

/* Mobile resume button */
@media (max-width: 768px) {
    .resume-download {
        margin: 0 0 1rem;
        padding: 0.5rem 0 0;
    }

    .resume-btn {
        width: 100%;
        justify-content: center;
        padding: 1.2rem 2rem;
        font-size: 1rem;
    }

}

@media (max-width: 480px) {
    .resume-btn {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }

}

/* ==========================================
   CONTACT CENTERED STYLES
   ========================================== */
.contact-content-centered {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* ==========================================
   SKILLS GRAPH
   ========================================== */
.skills-graph-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.skills-graph-legend .legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.skills-graph-legend .legend-dot {
    width: 14px;
    height: 14px;
    border: 2px solid var(--border);
    box-shadow: 2px 2px 0 var(--border);
    display: inline-block;
}

.skills-graph-legend .legend-lang  { background: var(--secondary); }
.skills-graph-legend .legend-mllib { background: var(--primary); }
.skills-graph-legend .legend-cloud { background: var(--accent); }
.skills-graph-legend .legend-viz   { background: var(--bg-card); }
.skills-graph-legend .legend-agent { background: var(--teal); }

.skills-graph-wrapper {
    position: relative;
    background: var(--bg-card);
    border: 3px solid var(--border);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 10;
    width: 100%;
    overflow: hidden;
    background-image:
        linear-gradient(var(--bg-main) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-main) 1px, transparent 1px);
    background-size: 40px 40px;
}

.skills-graph {
    width: 100%;
    height: 100%;
    display: block;
    cursor: default;
    touch-action: manipulation;
}

.skills-graph .link {
    stroke: var(--border);
    stroke-width: 2;
    stroke-linecap: round;
    transition: opacity 0.2s ease, stroke 0.2s ease, stroke-width 0.2s ease;
}
.skills-graph .link.dim { opacity: 0.12; }
.skills-graph .link.active { stroke: var(--accent); stroke-width: 3.5; }

.skills-graph .node { transition: opacity 0.2s ease; }
.skills-graph .node.dim { opacity: 0.25; }
.skills-graph .node:focus {
    outline: none;
}
.skills-graph .node:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 6px;
}

.skills-graph .node-circle {
    stroke: var(--border);
    stroke-width: 3;
    cursor: pointer;
    filter: drop-shadow(3px 3px 0 var(--border));
    transition: transform 0.2s ease;
}
.skills-graph .node:hover .node-circle { transform: scale(1.08); }
.skills-graph .node:focus-visible .node-circle {
    stroke-width: 5;
    transform: scale(1.08);
}

.skills-graph .node-lang  .node-circle { fill: var(--secondary); }
.skills-graph .node-mllib .node-circle { fill: var(--primary); }
.skills-graph .node-cloud .node-circle { fill: var(--accent); }
.skills-graph .node-viz   .node-circle { fill: var(--bg-card); }
.skills-graph .node-agent .node-circle { fill: var(--teal); }

.skills-graph .node-label {
    font-family: 'Space Grotesk', 'DM Sans', sans-serif;
    font-weight: 700;
    text-anchor: middle;
    pointer-events: none;
    user-select: none;
    fill: #000;
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .skills-graph-wrapper { aspect-ratio: 3 / 5; }
    .skills-graph-legend { gap: 0.6rem; font-size: 0.7rem; }
}

/* ==========================================
   NAV RIGHT GROUP + THEME TOGGLE
   ========================================== */
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 3px solid var(--border);
    box-shadow: var(--shadow);
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.theme-toggle:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-hover);
}

.theme-toggle:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline-block; }

/* ==========================================
   HERO AVAILABILITY BADGE
   ========================================== */
.hero-availability {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    box-shadow: 2px 2px 0 var(--border);
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--teal);
    border: 1px solid var(--border);
    animation: status-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes status-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 201, 167, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(0, 201, 167, 0); }
}

/* ==========================================
   ORG STRIP
   ========================================== */
.org-strip {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.org-strip-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.org-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.org-list li {
    background: var(--bg-card);
    border: 2px solid var(--border);
    box-shadow: 2px 2px 0 var(--border);
    padding: 0.45rem 0.9rem;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
}

/* ==========================================
   WRITING SECTION
   ========================================== */
.writing-intro {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
    color: var(--text-secondary);
}

.writing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.writing-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: var(--bg-card);
    border: 3px solid var(--border);
    box-shadow: var(--shadow);
    padding: 1.75rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.writing-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: var(--shadow-lg);
}

.writing-card:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.writing-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
}

.writing-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

.writing-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.writing-readmore {
    font-weight: 700;
    color: var(--text-primary);
}

.ai-news-title {
    margin-top: 5rem;
}

.writing-date {
    color: var(--text-secondary);
    font-weight: 600;
}

.newsletter {
    max-width: 560px;
    margin: 4rem auto 0;
    padding: 2rem;
    text-align: center;
    background: var(--bg-card);
    border: 3px solid var(--border);
    box-shadow: var(--shadow);
}

.newsletter-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.newsletter-copy {
    margin: 0.75rem 0 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.newsletter-row input {
    flex: 1;
    min-width: 200px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 3px solid var(--border);
    padding: 0.7rem 0.85rem;
}

.newsletter-row input:focus {
    outline: 3px solid var(--accent);
    outline-offset: 1px;
}

.newsletter-submit {
    min-width: 0;
    padding: 12px 28px;
}

.newsletter .contact-status {
    margin-top: 0.9rem;
}

/* ==========================================
   CONTACT EMAIL + FORM
   ========================================== */
.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-email-link {
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 2px solid var(--primary);
}

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

.contact-copy {
    border: 2px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 2px 2px 0 var(--border);
    padding: 0.3rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.contact-copy:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--border); }
.contact-copy:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.contact-copy.is-copied { background: var(--teal); }

.contact-form {
    width: 100%;
    max-width: 480px;
    margin: 1.75rem auto 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form-title {
    text-align: center;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
}

.contact-field { display: flex; flex-direction: column; gap: 0.35rem; }

.contact-field label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.contact-field input,
.contact-field textarea {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 3px solid var(--border);
    padding: 0.7rem 0.85rem;
    width: 100%;
}

.contact-field textarea { resize: vertical; min-height: 110px; }

.contact-field input:focus,
.contact-field textarea:focus {
    outline: 3px solid var(--accent);
    outline-offset: 1px;
}

.contact-submit { width: 100%; min-width: 0; margin-top: 0.25rem; }

.contact-status {
    text-align: center;
    font-weight: 600;
    min-height: 1.2em;
    color: var(--text-secondary);
    margin: 0;
}

.contact-status.is-error { color: var(--coral); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    width: 100%;
    max-width: 920px;
    text-align: left;
}

.contact-grid .contact-info {
    padding: 0;
    align-items: flex-start;
    text-align: left;
}

.contact-grid .resume-download { text-align: left; }

.contact-grid .contact-form {
    margin: 0;
    max-width: none;
    width: 100%;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ==========================================
   TIMELINE TOGGLE
   ========================================== */
.timeline-toggle {
    display: block;
    margin: 0 auto 4rem;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 3px solid var(--border);
    box-shadow: var(--shadow);
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.timeline-toggle:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-hover);
    background: var(--primary);
}

.timeline-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ==========================================
   CHAT BUILT-BY
   ========================================== */
.chat-built-by {
    padding: 0 1rem 0.85rem;
    margin: 0;
    background: var(--bg-main);
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: center;
}

/* ==========================================
   ARTICLE (BLOG) PAGES
   ========================================== */
.article { padding: 2rem 0 4rem; }

.article-body { max-width: 720px; }

.article-body h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.4rem;
    line-height: 1.15;
    margin: 0.5rem 0 1.25rem;
    color: var(--text-primary);
}

.article-body h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    margin: 2rem 0 0.75rem;
    color: var(--text-primary);
}

.article-body p,
.article-body li {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.article-body ul { margin: 0 0 1rem 1.25rem; display: grid; gap: 0.5rem; }

.article-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.article-back { margin: 1.5rem 0; }
.article-back a { font-weight: 700; color: var(--text-primary); text-decoration: none; }
.article-back a:hover { color: var(--accent); }

@media (max-width: 480px) {
    .article-body h1 { font-size: 1.9rem; }
}

/* ==========================================
   DARK MODE
   ========================================== */
[data-theme="dark"] {
    --bg-main: #15151E;
    --bg-card: #23232F;
    --text-primary: #F4F4F6;
    --text-secondary: #B9B9C6;
    --border: #000000;
    --shadow: 4px 4px 0px #000000;
    --shadow-hover: 6px 6px 0px #000000;
    --shadow-lg: 8px 8px 0px #000000;
}

/* Navbar stays legible: dark surface instead of the light brand yellow */
[data-theme="dark"] .navbar { background: #1C1C26; }

/* Dark text on bright fills (yellow / teal / coral / pink) */
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .hero-title .highlight,
[data-theme="dark"] .course-tag,
[data-theme="dark"] .tech-tag,
[data-theme="dark"] .current-badge,
[data-theme="dark"] .education-badge,
[data-theme="dark"] .back-to-top,
[data-theme="dark"] .chat-close,
[data-theme="dark"] .chat-message--user,
[data-theme="dark"] .chat-chip,
[data-theme="dark"] .resume-btn,
[data-theme="dark"] .btn-secondary:hover,
[data-theme="dark"] .social-link:hover,
[data-theme="dark"] .timeline-toggle:hover,
[data-theme="dark"] .contact-copy.is-copied {
    color: #1A1A1A;
}

/* Lighten the accent purple where it's used as text, for AA contrast on dark */
[data-theme="dark"] .timeline-content h4,
[data-theme="dark"] .writing-tag,
[data-theme="dark"] .article-meta,
[data-theme="dark"] .nav-logo a:hover,
[data-theme="dark"] .contact-email-link:hover {
    color: #B9A3FF;
}

[data-theme="dark"] .gpa-info { background: rgba(255, 214, 0, 0.12); }
[data-theme="dark"] .achievement-item:hover { background: rgba(255, 214, 0, 0.10); }
[data-theme="dark"] .particle { background: rgba(255, 255, 255, 0.10); }
[data-theme="dark"] .footer { background: #0E0E14; color: var(--text-secondary); }

[data-theme="dark"] .skills-graph .link { stroke: #6B6B80; }
[data-theme="dark"] .skills-graph .node-viz .node-circle { fill: #E8E8F0; }
[data-theme="dark"] .skills-graph-legend .legend-viz { background: #E8E8F0; }

[data-theme="dark"] .chat-pill {
    background: rgba(35, 35, 47, 0.65);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}
[data-theme="dark"] .chat-pill-input::placeholder { color: rgba(244, 244, 246, 0.55); }

@supports not (backdrop-filter: blur(1px)) {
    [data-theme="dark"] .chat-pill { background: rgba(35, 35, 47, 0.95); }
}
