@font-face {
    font-family: 'Geist';
    src: url('../fonts/Geist/Geist-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Caveat';
    src: url('../fonts/Caveat/Caveat-VariableFont_wght.ttf') format('truetype');
    font-weight: 400 700;
    font-style: normal;
}

:root {
    --bg-color: #FAF8F5; /* warm off-white */
    --text-color: #111111;
    --text-secondary: #555555;
    --highlight-yellow: #FDE047;
    --card-bg: #FFFFFF;
    --card-border: #E5E5E5;
    --input-bg: #F4F1EA;
    
    --font-primary: 'Geist', sans-serif;
    --font-handwriting: 'Caveat', cursive;
}

[data-theme="dark"] {
    --bg-color: #161616;
    --text-color: #fdfbf7;
    --text-secondary: #c9c3b8;
    --highlight-yellow: #d9c336;
    --card-bg: #222222;
    --card-border: rgba(253, 251, 247, 0.15);
    --input-bg: #2A2A2A;
}

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

/* Global transitions for theme switching */
body, nav, section, div, span, p, h1, h2, h3, h4, ul, li, svg, path, rect, line, circle {
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, fill 0.35s ease, stroke 0.35s ease;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Base Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--highlight-yellow);
    z-index: -1;
    transform: rotate(-1deg);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    font-size: 0.9rem;
}

.smiley {
    font-size: 1.5rem;
    position: relative;
}

.smiley::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: var(--highlight-yellow);
    z-index: -1;
}

.active-nav {
    position: relative;
}

.active-nav::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--highlight-yellow);
    z-index: -1;
}

/* Main Container */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    padding: 6rem 0;
    min-height: 80vh;
}

.hero-left {
    position: relative;
}

.tiny-link-note {
    position: absolute;
    top: -40px;
    left: -60px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.handwritten {
    font-family: var(--font-handwriting);
    font-size: 1.4rem;
    color: #444;
}

.arrow-tiny-link {
    color: #444;
}

.hero-title {
    font-size: 4rem;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.highlight {
    position: relative;
    display: inline-flex;
    z-index: 1;
}

.highlight::before {
    content: '';
    position: absolute;
    bottom: 4px;
    left: -4px;
    right: -4px;
    height: 42px;
    background-color: var(--highlight-yellow);
    z-index: -1;
    border-radius: 6px 12px 10px 4px / 6px 4px 10px 5px;
    transform: rotate(-1deg);
    transition: left 0.3s ease, right 0.3s ease;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 2px;
    right: 2px;
    height: 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0 5 Q 25 3 50 6 T 100 4' stroke='%23111' stroke-width='1.5' stroke-dasharray='4 4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: -1;
    transition: left 0.3s ease, right 0.3s ease;
}

[data-theme="dark"] .highlight::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0 5 Q 25 3 50 6 T 100 4' stroke='%23FDFBF7' stroke-width='1.5' stroke-dasharray='4 4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.cursor-pointer {
    position: absolute;
    right: -25px;
    bottom: -15px;
    animation: float 3s ease-in-out infinite;
}

[data-theme="dark"] .cursor-pointer {
    color: var(--text-color);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-subtitle {
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

.mostly {
    font-family: monospace;
    color: #555;
    margin-bottom: 1rem;
}

.small-note {
    font-size: 0.9rem;
    color: #777;
}

.clickable-word {
    text-decoration: underline;
    text-decoration-style: dashed;
    cursor: pointer;
    transition: color 0.2s;
}

.clickable-word:hover {
    color: #000;
}

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

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--text-color);
    color: var(--bg-color);
    border: 2px solid var(--text-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--text-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--card-border);
}

.btn-secondary:hover {
    border-color: var(--text-color);
}

.hero-right {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.currently-section {
    position: absolute;
    top: -20px;
    left: 20px;
}

.handwritten-title {
    font-family: var(--font-handwriting);
    font-size: 1.5rem;
    font-weight: normal;
}

.handwritten-list {
    font-family: var(--font-handwriting);
    list-style: none;
    font-size: 1.3rem;
    margin-left: 1rem;
}

.handwritten-list li {
    margin-bottom: 0.2rem;
    position: relative;
}

.handwritten-list li::before {
    content: '•';
    position: absolute;
    left: -15px;
}

.arrow-currently {
    position: absolute;
    right: -40px;
    bottom: -30px;
    color: #444;
}

.illustration-container {
    width: 300px;
    height: 300px;
    position: relative;
    margin-top: 4rem;
}

.boy-laptop-img {
    width: 100%;
    height: auto;
    display: block;
}

.placeholder-art {
    width: 100%;
    height: 100%;
    border: 2px solid #ddd;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    color: #888;
    background: #fff;
}

/* Throwback Section */
.throwback {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr;
    gap: 2rem;
    align-items: center;
    background-color: #F8F5F0;
    border-radius: 24px;
    margin: 4rem 0;
    padding: 4rem;
}

.throwback-computer {
    width: 150px;
    height: 150px;
}

.small-accent {
    color: #fca5a5;
    font-family: monospace;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.text-pink {
    color: #fca5a5;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.throwback-text p {
    font-family: monospace;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.throwback-card-container {
    position: relative;
}

.throwback-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: block;
}

[data-theme="dark"] .throwback-image {
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.tb-caption {
    position: absolute;
    bottom: -30px;
    right: -20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.arrow-tb {
    position: absolute;
    top: -20px;
    left: -40px;
}

/* Projects Section */
.projects {
    padding: 6rem 0;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.scribble {
    position: absolute;
    bottom: -10px;
    left: 0;
    z-index: -1;
}

.view-all {
    font-family: monospace;
    font-size: 0.9rem;
    color: #555;
    transition: color 0.2s;
}

.view-all:hover {
    color: #111;
}

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

.project-card {
    background: white;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.project-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.project-icon svg {
    width: 30px;
    height: 30px;
}

.icon-green { background: #e0f2e9; color: #4ade80; }
.icon-purple { background: #efe9f4; color: #a78bfa; }
.icon-pink { background: #fce7f3; color: #f472b6; }

.project-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.project-info p {
    color: #666;
    margin-bottom: 1.5rem;
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.tech-stack {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tech-stack span {
    font-family: monospace;
    font-size: 0.8rem;
    background: #f1f5f9;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.project-link {
    font-weight: 600;
    text-decoration: underline;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.arrow {
    display: inline-block;
    transition: transform 0.2s ease;
    margin-left: 4px;
}

.project-link:hover .arrow {
    transform: translateX(4px);
}

.wiggler {
    display: inline-block;
}

.project-card:hover .wiggler {
    animation: wiggle 0.5s ease-in-out forwards;
}

@keyframes wiggle {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
    75% { transform: rotate(-1deg); }
    100% { transform: rotate(0deg); }
}

.project-note {
    position: absolute;
    bottom: -50px;
    right: 20px;
    font-size: 1.2rem;
    width: max-content;
}

.arrow-up {
    width: 30px;
    height: 30px;
    position: absolute;
    top: -10px;
    right: -30px;
}

/* Note to self Section */
.desk-note-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 8rem;
    margin-bottom: 4rem;
    width: 100%;
}

.desk-note {
    max-width: 600px;
    width: 100%;
    padding: 2rem;
    transform: rotate(-1deg);
}

.desk-note .handwritten {
    font-family: var(--font-handwriting);
    color: #111;
}

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

.note-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
}

.note-checklist li {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2.5rem;
    line-height: 1.4;
}

.note-checklist li::before {
    content: '☐';
    position: absolute;
    left: 0;
    font-size: 1.8rem;
    color: #111;
    line-height: 1.4;
}

.note-checklist li.checked::after {
    content: '✓';
    position: absolute;
    left: 5px;
    top: 2px;
    font-size: 2rem;
    color: #2196F3; /* Blue check mark */
    line-height: 1.2;
    font-family: sans-serif;
    font-weight: bold;
}

.note-footer {
    font-size: 1.8rem;
}

.highlight-subtle {
    display: inline-block;
    position: relative;
    z-index: 1;
}

.highlight-subtle::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: #2196F3;
    z-index: -1;
    opacity: 0.4;
}

/* Footer */
.footer-cta {
    text-align: center;
    padding: 8rem 0 4rem;
}

.footer-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 8rem;
}

.btn-dark {
    background: #111;
    color: white;
}

.btn-dark:hover {
    background: #333;
}

.position-relative {
    position: relative;
}

.btn-note {
    position: absolute;
    bottom: -50px;
    right: -60px;
    width: max-content;
    font-size: 1.2rem;
}

.arrow-curved {
    position: absolute;
    top: -20px;
    left: -30px;
    width: 30px;
    height: 30px;
}

.footer-bottom {
    font-family: monospace;
    font-size: 0.8rem;
    color: #666;
    display: flex;
    justify-content: space-between;
    text-align: left;
    border-top: 1px solid var(--card-border);
    padding-top: 2rem;
}

.footer-bottom p:last-child {
    text-align: right;
}

.highlight-yellow {
    background: var(--highlight-yellow);
    padding: 0 4px;
    border-radius: 2px;
    color: #111;
}

/* Responsive tweaks */
@media (max-width: 1024px) {
    .throwback {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .desk-note {
        padding: 1rem;
    }
    .note-title {
        font-size: 2rem;
    }
    .note-checklist li {
        font-size: 1.4rem;
        line-height: 1.5;
    }
    .note-checklist li::before {
        font-size: 1.4rem;
    }
    .note-checklist li.checked::after {
        font-size: 1.6rem;
        left: 4px;
    }
    .note-footer {
        font-size: 1.4rem;
    }
    .tape {
        left: 50%;
    }
}
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .footer-bottom p:last-child {
        text-align: center;
    }
}



.pro-toggle-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pro-switch {
    width: 40px;
    height: 20px;
    background: #ccc;
    border-radius: 20px;
    border: none;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

.pro-switch.active {
    background: #111;
}

.pro-knob {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.pro-switch.active .pro-knob {
    transform: translateX(20px);
}

/* Cycle Word & Fake Loader */
.highlight-interactive {
    cursor: pointer;
    user-select: none;
}

.fake-loader-container {
    margin-bottom: 3rem;
    max-width: 300px;
}

.loader-bar {
    width: 100%;
    height: 8px;
    border: 2px solid #111;
    border-radius: 10px;
    padding: 1px;
}

.loader-progress {
    width: 99%;
    height: 100%;
    background: var(--highlight-yellow);
    border-radius: 5px;
}

.loader-text {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    align-items: flex-start;
}

.stuck-note {
    font-size: 1rem;
    color: #555;
    margin-left: 10px;
    line-height: 1;
}



/* Pet Rock */
.pet-rock {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    z-index: 5000;
    cursor: pointer;
    transition: transform 0.1s;
    user-select: none;
}

.pet-rock.following {
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.rock-eye {
    transform-origin: center;
}

@media (max-width: 768px) {
    .hidden-mobile {
        display: none !important;
    }
}

.clickable-text {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dashed;
}

/* Footer Word Animation */
.cycle-word-anim {
    display: inline-block;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.cycle-word-anim.slide-up-out {
    transform: translateY(-10px);
    opacity: 0;
}

}

/* About Page Specific Styles */
.about-page {
    background-color: var(--bg-color);
}

.about-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.back-link {
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-weight: 600;
}

.about-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 4rem 4rem;
}

.about-hero {
    position: relative;
    margin: 4rem 0 6rem;
}

.uppercase {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: monospace;
}

.yellow-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--highlight-yellow);
    border-radius: 50%;
    margin-left: 4px;
}

.install-title {
    font-size: 5rem;
    letter-spacing: -0.02em;
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-family: monospace;
}

.highlight-underline {
    position: relative;
    display: inline-block;
}

.highlight-underline::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--highlight-yellow);
    z-index: -1;
}

.install-desc {
    font-size: 1.8rem;
    font-family: var(--font-handwriting);
    line-height: 1.5;
}

.highlight-underline-thin {
    position: relative;
    display: inline-block;
}

.highlight-underline-thin::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #111;
}

.spoiler-note {
    position: absolute;
    top: 2rem;
    right: 0;
    background: white;
    padding: 1.5rem 2rem;
    border: 1px solid #111;
    border-radius: 8px;
    transform: rotate(5deg);
    box-shadow: 2px 2px 10px rgba(0,0,0,0.05);
    font-size: 1.2rem;
    line-height: 1.4;
}

/* Cards */
.about-card {
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem 0.5rem;
}

.card-header h2 {
    font-size: 1.1rem;
    letter-spacing: 1px;
    font-family: monospace;
    font-weight: 600;
}

.card-header span {
    font-family: monospace;
    font-size: 1.2rem;
}

.card-content {
    padding: 1rem 2rem 2rem;
}

/* Requirements */
.row-items {
    display: flex;
    gap: 4rem;
}

.req-item {
    font-family: monospace;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Dependencies */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tag {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-family: monospace;
    font-size: 0.9rem;
    background: white;
}

/* Features Split Card */
.split-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    position: relative;
}

.split-left {
    border-right: 1px dashed #ccc;
    padding-bottom: 2rem;
}

.check-list {
    list-style: none;
    font-family: monospace;
    padding: 0 2rem;
    line-height: 2.5;
    font-size: 0.95rem;
}

.split-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration-laptop {
    width: 250px;
}

/* Known Bugs */
.bug-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cross-list {
    list-style: none;
    font-family: monospace;
    line-height: 2.5;
    font-size: 0.95rem;
}

.fake-toggle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.fake-toggle {
    width: 50px;
    height: 26px;
    background: #fde047;
    border: 1px solid #111;
    border-radius: 13px;
    position: relative;
}

.toggle-knob {
    width: 22px;
    height: 22px;
    background: white;
    border: 1px solid #111;
    border-radius: 50%;
    position: absolute;
    top: 1px;
    left: 1px;
}

.fake-toggle-note {
    text-align: center;
    color: #444;
    font-size: 1.2rem;
}

/* Installation */
.install-card {
    background: transparent;
}

.code-block {
    background: #f4f4f4;
    padding: 2rem;
    border-radius: 8px;
    font-family: monospace;
    line-height: 1.8;
}

.code-line {
    display: flex;
    gap: 1.5rem;
    font-size: 1rem;
}

.line-num {
    color: #999;
}

.highlight-text {
    color: #d97706;
}

/* About Footer */
.about-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
    padding-bottom: 4rem;
}

.about-footer-left span {
    font-size: 1.6rem;
    color: #444;
}

.about-footer-right {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-family: monospace;
}

@media (max-width: 768px) {
    .about-nav {
        padding: 2rem;
    }
    .about-main {
        padding: 0 2rem 2rem;
    }
    .about-hero {
        margin: 2rem 0;
    }
    .install-title {
        font-size: 3rem;
    }
    .spoiler-note {
        position: relative;
        top: 0;
        margin-top: 2rem;
        width: fit-content;
    }
    .row-items {
        flex-direction: column;
        gap: 1rem;
    }
    .split-card {
        grid-template-columns: 1fr;
    }
    .split-left {
        border-right: none;
        border-bottom: 1px dashed #ccc;
    }
    .split-right {
        padding: 2rem;
    }
    .bug-content {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #111;
    color: #fdfbf7;
    border: none;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.35s ease, color 0.35s ease;
}

}

/* Dark Mode Precision Overrides */
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-dark {
    background-color: var(--highlight-yellow);
    color: #111;
    border-color: var(--highlight-yellow);
}

[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] .btn-dark:hover {
    background-color: transparent;
    color: var(--highlight-yellow);
}

[data-theme="dark"] .btn-secondary,
[data-theme="dark"] .btn-outline {
    border-color: var(--text-color);
    color: var(--text-color);
}

[data-theme="dark"] .btn-secondary:hover,
[data-theme="dark"] .btn-outline:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

[data-theme="dark"] .highlight,
[data-theme="dark"] .highlight-interactive,
[data-theme="dark"] .highlight-yellow {
    color: #FFF;
}

[data-theme="dark"] .highlight::before {
    background-color: rgba(253, 224, 71, 0.25);
}

[data-theme="dark"] .post-it {
    color: #111;
}
[data-theme="dark"] .post-it .handwritten {
    color: #111;
}

[data-theme="dark"] .theme-toggle {
    background-color: #161616;
    color: #fdfbf7;
    border: 1px solid rgba(253, 251, 247, 0.2);
}

.icon {
    width: 24px;
    height: 24px;
}

/* Hide empty icons globally */
.icon:empty, 
.icon-large:empty, 
.smiley:empty, 
.bug-icon:empty, 
.star-icon:empty {
    display: none !important;
}

/* Dynamic content swapping */
.dark-only {
    display: none;
}

[data-theme="dark"] .dark-only {
    display: flex; /* Or block, depending on the element, but projects-grid is a grid. We'll use flex/grid in specific cases */
}

/* For images */
[data-theme="dark"] img.dark-only {
    display: block;
}
[data-theme="dark"] img.light-only {
    display: none;
}



/* Typography precision */
[data-theme="dark"] .handwritten {
    color: var(--text-color);
}
[data-theme="dark"] .small-accent,
[data-theme="dark"] .text-pink {
    color: var(--highlight-yellow);
}

[data-theme="dark"] .nav-links a,
[data-theme="dark"] .about-nav a {
    color: var(--text-color);
}

[data-theme="dark"] .tag {
    color: #36454F;
}

[data-theme="dark"] .code-block,
[data-theme="dark"] .code-line,
[data-theme="dark"] .line-num,
[data-theme="dark"] .highlight-text {
    color: #36454F;
}



[data-theme="dark"] .throwback {
    background-color: #36454F;
}

[data-theme="dark"] .project-card {
    background-color: #2A2A2A;
    border-color: rgba(253, 251, 247, 0.1);
}

[data-theme="dark"] .project-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

[data-theme="dark"] .project-info p {
    color: #ccc;
}

[data-theme="dark"] .tech-stack span {
    background: #111;
    color: #fdfbf7;
}

[data-theme="dark"] .desk-note .handwritten {
    color: #FDFBF7;
}

[data-theme="dark"] .note-checklist li::before {
    color: #FDFBF7;
}
/* Footer cool text outline in dark mode */
[data-theme="dark"] #footer-cycle-word {
    color: var(--bg-color);
    -webkit-text-stroke: 1px var(--highlight-yellow);
}


}

/* Contact Page Specific Styles */
.contact-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 4rem 4rem;
}

.contact-hero {
    margin: 4rem 0 6rem;
    position: relative;
}

.contact-note {
    top: -2rem;
    right: 2rem;
    transform: rotate(6deg);
}

.form-section {
    margin-bottom: 4rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

.selectable-grid {
    display: grid;
    gap: 1.5rem;
}

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

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

.selectable-card {
    background: transparent;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-family: monospace;
    font-size: 0.9rem;
    position: relative;
}

.selectable-card:hover {
    border-color: #111;
    transform: translateY(-2px);
}

[data-theme="dark"] .selectable-card:hover {
    border-color: var(--text-color);
}

.selectable-card.selected {
    border-color: var(--highlight-yellow);
    background-color: rgba(253, 224, 71, 0.05);
}

.selectable-card.selected::after {
    content: '✓';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background-color: var(--highlight-yellow);
    border-radius: 50%;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.selectable-card .icon {
    font-size: 1.5rem;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: var(--input-bg);
    border-radius: 8px;
    padding: 0 1rem;
    border: 1px solid transparent;
    transition: border-color 0.2s;
}

.input-wrapper:focus-within {
    border-color: var(--text-color);
}

.contact-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1.5rem 1rem;
    font-family: monospace;
    font-size: 1rem;
    color: var(--text-color);
    outline: none;
    width: 100%;
}

.select-wrapper select {
    appearance: none;
    cursor: pointer;
}

.textarea-wrapper {
    background: var(--input-bg);
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 1rem;
    transition: border-color 0.2s;
}

.textarea-wrapper:focus-within {
    border-color: var(--text-color);
}

.contact-textarea {
    width: 100%;
    background: transparent;
    border: none;
    font-family: var(--font-handwriting);
    font-size: 1.5rem;
    color: var(--text-color);
    resize: vertical;
    outline: none;
    line-height: 1.5;
}

.char-count {
    text-align: right;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.form-submit-area {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 4rem;
    gap: 4rem;
}

.submit-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.submit-note {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.submit-arrow {
    width: 60px;
    transform: rotate(10deg);
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.2rem;
    border-radius: 8px;
}

.send-icon {
    margin-left: 0.5rem;
}

.submit-footer-note {
    text-align: center;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 1.5rem;
    line-height: 1.8;
}

.success-state {
    text-align: center;
    padding: 6rem 0;
}

.success-state h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.divider {
    height: 1px;
    background: var(--card-border);
    margin: 4rem 0;
}

.contact-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 4rem;
}

.contact-footer-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-large {
    font-size: 2.5rem;
}

.response-time {
    font-family: monospace;
    font-size: 1rem;
    color: var(--text-secondary);
}

.contact-footer-right {
    font-size: 1.5rem;
    text-align: right;
}

@media (max-width: 768px) {
    .contact-main {
        padding: 0 2rem 2rem;
    }
    .grid-4, .grid-2 {
        grid-template-columns: 1fr;
    }
    .form-submit-area {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .submit-arrow {
        display: none;
    }
    .contact-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
}

