:root {
    /* Updated Palette: Warm Orange/Amber - No Pink */
    --bg-color: #FDFCF8;
    /* Slightly warmer white */
    --text-primary: #5D4037;
    /* Dark coffee brown */
    --text-secondary: #8D6E63;
    /* Milk tea brown */

    --accent-color: #F4A261;
    /* Soft Warm Orange (Sandy) */
    --accent-hover: #E76F51;
    /* Burnt Sienna/Terra Cotta */
    --secondary-accent: #E9C46A;
    /* Warm Golden Yellow */

    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(255, 255, 255, 0.9);
    --nav-bg: rgba(253, 252, 248, 0.85);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Nunito', sans-serif;

    --transition-speed: 0.4s;
    --shadow-soft: 0 10px 40px -10px rgba(141, 110, 99, 0.15);
    --shadow-hover: 0 20px 50px -15px rgba(141, 110, 99, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.7;
    background-image:
        radial-gradient(at 0% 0%, rgba(244, 162, 97, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(233, 196, 106, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #D7CCC8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Cursor - Updated Color */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    mix-blend-mode: multiply;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-primary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--accent-color);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Cat Paw Decorations */
.paw-decoration {
    position: fixed;
    z-index: -1;
    opacity: 0.05;
    pointer-events: none;
}

.paw-decoration svg {
    fill: var(--text-primary);
}

.paw-decoration.top-right {
    top: -20px;
    right: -20px;
    transform: rotate(15deg);
    width: 250px;
    height: auto;
}

.paw-decoration.bottom-left {
    bottom: -20px;
    left: -20px;
    transform: rotate(15deg);
    width: 300px;
    height: auto;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 8%;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.navbar.scrolled {
    padding: 1rem 8%;
    box-shadow: 0 4px 20px rgba(141, 110, 99, 0.05);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
}

/* Add a tiny paw print to logo on hover */
.logo::after {
    content: '🐾';
    position: absolute;
    right: -25px;
    top: -5px;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.logo:hover::after {
    opacity: 1;
    transform: rotate(20deg);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-family: var(--font-heading);
    transition: color var(--transition-speed);
}

.nav-links li a:hover {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 0 5%;
}

.hero-content {
    z-index: 2;
    max-width: 900px;
    width: 100%;
}

.profile-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(244, 162, 97, 0.15);
    color: var(--accent-hover);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeUp 1s forwards 0.2s;
}

.name {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    opacity: 0;
    animation: fadeUp 1s forwards 0.4s;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Bio - Auto Wrap */
.bio-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 1s forwards 0.6s;
    width: 100%;
}

.bio-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    /* Row gap, Col gap */
}

.bio-item {
    font-size: 1.25rem;
    color: var(--text-secondary);
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
}

.bio-item:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: -14px;
    /* Half of column gap approx */
    color: var(--secondary-accent);
    font-weight: bold;
    opacity: 0.6;
}

/* Hide divider if on mobile we stack or wrap significantly */
@media (max-width: 600px) {
    .bio-item:not(:last-child)::after {
        display: none;
    }

    .bio-row {
        gap: 0.5rem;
    }

    .bio-item {
        margin: 0 5px;
    }
}

.organization {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 1s forwards 0.8s;
}

.org-link {
    color: var(--text-primary);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--accent-color);
    transition: all 0.3s;
}

.org-link:hover {
    background: var(--accent-color);
    color: white;
    padding: 0 5px;
    border-radius: 4px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 1s forwards 1s;
}

.btn-primary {
    padding: 14px 34px;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(244, 162, 97, 0.4);
    transition: all var(--transition-speed);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 111, 81, 0.4);
}

.btn-secondary {
    padding: 14px 34px;
    background: transparent;
    border: 2px solid var(--text-secondary);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all var(--transition-speed);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    transform: translateY(-3px);
}

/* Scroll Animation */
.scroll-wrapper {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1s forwards 1.5s;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

/* Background Animation */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Sections */
.section {
    padding: 8rem 8%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-subtitle {
    display: block;
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--text-primary);
}

/* About Section */
.about-card {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.about-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--text-primary);
    font-weight: 700;
}

.alias-list {
    list-style: none;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-color);
}

.alias-list li {
    margin-bottom: 0.8rem;
}

.strike {
    text-decoration: line-through;
    opacity: 0.6;
}

.info-block {
    background: rgba(244, 162, 97, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    border: 1px dashed var(--accent-color);
}

.info-block p {
    margin: 0;
}

/* Slogan Styles */
.mihoyo-quote {
    margin-top: 3rem;
    line-height: 2.5;
    text-align: left;
}

.slogan-wrapper {
    position: relative;
    display: inline-block;
}

.tech-otakus-link {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translateX(-50%);

    width: max-content;
    margin-bottom: 2px;
    text-decoration: none;

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.tech-otakus {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent-color, #4cc3ff);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-style: italic;
    opacity: 0.9;
}

.tech-otakus-link:hover {
    opacity: 0.8;
}

.prefix-text,
.main-text {
    color: inherit;
}


.note-text {
    font-size: 0.95rem;
    margin-top: 0.5rem !important;
    opacity: 0.8;
}

.gear-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.secondary-gear {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-speed);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

/* Updated gradients w/o pink, mostly warm/tech colors */
.gradient-1 {
    background: linear-gradient(135deg, #F4A261 0%, #E76F51 100%);
}

.gradient-2 {
    background: linear-gradient(135deg, #2A9D8F 0%, #264653 100%);
}

.gradient-secret {
    background: linear-gradient(120deg, #434343 0%, #1a1a1a 100%);
}

.card-content {
    padding: 2rem;
}

.project-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.project-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    min-height: 3rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tags span {
    font-size: 0.75rem;
    padding: 4px 12px;
    background: #F8F5F2;
    /* Very light warm grey */
    color: var(--text-secondary);
    border-radius: 12px;
    font-weight: 600;
}

.card-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.95rem;
    transition: gap 0.3s;
}

.card-link:hover {
    gap: 12px;
}

.card-link.disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.contact-card h3 {
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.contact-list {
    list-style: none;
}

.contact-list li {
    margin-bottom: 1rem;
}

.contact-list a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.3s;
    word-break: break-all;
}

.contact-list a:hover {
    color: var(--accent-color);
}

/* Social Pills */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #FFF9F2;
    border-radius: 30px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.social-pill i {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.social-pill:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(244, 162, 97, 0.3);
}

.social-pill:hover i {
    color: white;
}

/* Footer */
footer {
    padding: 2rem 5%;
    text-align: center;
    background: white;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(12px);
        opacity: 0;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        clip-path: circle(0% at 100% 0);
        transition: clip-path 0.5s ease-in-out;
    }

    .nav-links.active {
        clip-path: circle(150% at 100% 0);
    }

    .hamburger {
        display: block;
    }

    .name {
        font-size: 3rem;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    .paw-decoration {
        opacity: 0.03;
        /* Fainter on mobile */
    }

    .tech-otakus {
        letter-spacing: 0.5px;
    }

    .tech-otakus-link {
        bottom: 50%;
    }
}