:root {
    /* Theme: Deep black to dark red with vibrant neon pink/red accents */
    --bg-dark: #050000;
    --bg-gradient: linear-gradient(135deg, #050000 0%, #1a0000 100%);
    --bg-card: rgba(20, 0, 0, 0.7);
    --text-main: #ffffff;
    --text-muted: #ffb3c6;
    --accent-primary: #ff0055; /* Neon Red/Pink */
    --accent-secondary: #ff3333; /* Neon Red */
    --accent-hover: #ff4d88;
    --font-main: 'Outfit', sans-serif;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1.15rem; /* Increased base font size */
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="%2381c784" d="M22 2.5C22 2.5 14 1 8 8C2 15 2 22 2 22C2 22 9 22 16 16C23 9 22 2.5 22 2.5ZM13 14L8 18C8 18 10 14 13 11L18 7C18 7 16 11 13 14Z" /></svg>'), auto;
}

/* Interactive elements should keep the custom leaf cursor */
a, button, .btn {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="%2381c784" d="M22 2.5C22 2.5 14 1 8 8C2 15 2 22 2 22C2 22 9 22 16 16C23 9 22 2.5 22 2.5ZM13 14L8 18C8 18 10 14 13 11L18 7C18 7 16 11 13 14Z" /></svg>'), auto !important;
}

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

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

/* Navbar */
.navbar {
    background: rgba(5, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 0, 85, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px; /* Increased from 1200px */
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.8rem; /* Increased */
    font-weight: 900;
    letter-spacing: 2px;
}

.logo-text .highlight {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 2rem; /* Increased gap */
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem; /* Increased */
    transition: color var(--transition-speed), text-shadow var(--transition-speed);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
    text-shadow: 0 0 8px var(--accent-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
}

.resume-btn {
    border: 1px solid var(--accent-primary);
    padding: 0.35rem 1rem;
    border-radius: 4px;
    color: var(--accent-primary);
}
.resume-btn:hover {
    background: rgba(255, 0, 85, 0.1);
}

/* Mobile Nav fallback */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Main Content SPA Sections */
.main-content {
    flex: 1;
    width: 100%;
}

.spa-section {
    min-height: 100vh;
    max-width: 1400px; /* Increased from 1200px */
    margin: 0 auto;
    padding: 8rem 2rem; /* Increased from 6rem */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 3.8rem; /* Scaled up >20% from 3rem */
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 3.5rem;
    color: var(--text-main);
    position: relative;
    display: inline-block;
    align-self: flex-start;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px; /* Scaled up */
    height: 5px; /* Scaled up */
    background: linear-gradient(90deg, var(--accent-primary), transparent);
}

/* Hero Section */
.hero-section {
    align-items: flex-start;
}

.hero-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 800px;
}

.hero-image-wrapper {
    flex-shrink: 0;
}

.glitch {
    font-size: 6.5rem; /* Scaled up from 5rem */
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    text-shadow: 0 0 20px rgba(255,0,85,0.5);
}

@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-image-wrapper {
        order: -1;
    }

    .hero-tagline {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .glitch { font-size: 3.8rem; }
    .section-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .glitch { font-size: 2.6rem; }
    .hero-subtitle { font-size: 1.3rem; }
    .hero-tagline { font-size: 1.1rem; }
}

.hero-subtitle {
    font-size: 2.2rem; /* Scaled up from 1.8rem */
    color: var(--accent-primary);
    margin-bottom: 1.8rem;
    font-weight: 700;
}

.hero-tagline {
    font-size: 1.4rem; /* Scaled up from 1.2rem */
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    max-width: 700px;
}

/* Cyber Dividers */
.cyber-divider {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-primary) 50%, transparent 100%);
    box-shadow: 0 0 15px var(--accent-primary);
    margin: 2rem 0;
    position: relative;
    opacity: 0.7;
}

.cyber-divider::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 8px;
    background: var(--bg-dark);
    border-top: 2px solid var(--accent-primary);
    border-bottom: 2px solid var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary) inset;
}

/* About Section */
.about-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: flex-start;
    width: 100%;
}

.about-image-wrapper, .hero-image-wrapper {
    flex-shrink: 0;
}

.image-ring {
    position: relative;
    display: inline-block;
    padding: 15px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 0, 85, 0.3);
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.1);
    transition: all var(--transition-speed);
}

.image-ring:hover {
    border-color: var(--accent-primary);
    transform: rotate(5deg);
}

.floating-tea {
    position: absolute;
    font-size: 2.8rem;
    top: 0;
    right: -10px;
    animation: floatTea 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 0, 85, 0.5));
    z-index: 10;
}

@keyframes floatTea {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(15deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.profile-image {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-primary);
    box-shadow: 0 0 30px rgba(255, 0, 85, 0.6), inset 0 0 20px rgba(255, 0, 85, 0.4);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: block;
}

.image-ring:hover .profile-image {
    transform: scale(1.05) rotate(-5deg);
    box-shadow: 0 0 50px rgba(255, 0, 85, 0.8), inset 0 0 30px rgba(255, 0, 85, 0.6);
}

@media (max-width: 768px) {
    .profile-image {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .profile-image {
        width: 200px;
        height: 200px;
    }
    .image-ring {
        padding: 10px;
    }
    .floating-tea {
        font-size: 2rem;
        right: -5px;
    }
}

.about-text {
    flex: 1;
    max-width: 850px;
}

.hello-badge {
    display: inline-block;
    background: rgba(255, 0, 85, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(255, 0, 85, 0.3);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.2);
}

.about-name {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.about-subtitle {
    font-size: 1.1rem;
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-quote {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    border-left: 3px solid var(--accent-primary);
    padding-left: 1rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

@media (min-width: 768px) {
    .about-name {
        font-size: 4.5rem;
    }
    
    .about-subtitle {
        font-size: 1.3rem;
    }
    
    .about-text p {
        font-size: 1.3rem;
        line-height: 1.8;
    }

    .profile-image {
        width: 480px;
        height: 480px;
        border-width: 6px;
    }

    .image-ring {
        padding: 25px;
    }

    .floating-tea {
        font-size: 4.5rem;
        right: -30px;
        top: 20px;
    }
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 0, 85, 0.2);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), border-color var(--transition-speed);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(255, 0, 85, 0.3);
    border-color: var(--accent-primary);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Projects Section */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); /* Increased from 320px */
    gap: 3rem; /* Increased from 2.5rem */
    width: 100%;
}

.game-card {
    background: transparent;
    border-radius: 8px; /* Sharper corners */
    overflow: hidden;
    border: none;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-card:hover {
    transform: translateY(-8px);
}

.card-image-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    margin: 0 auto;
    overflow: hidden;
    border: 4px solid #111; /* Thick dark rim */
    background: #000;
    box-shadow: 0 15px 25px rgba(0,0,0,0.9), inset 0 0 15px rgba(0,0,0,1);
    transition: all 0.4s;
}

.game-card:hover .card-image-wrapper {
    border-color: var(--accent-primary);
    box-shadow: 0 0 35px rgba(255, 0, 85, 0.5), inset 0 0 25px rgba(255, 0, 85, 0.4);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .card-image {
    transform: scale(1.1);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1a0000, #4d001a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.game-card:hover .card-overlay {
    opacity: 1;
}

.view-btn {
    padding: 0.75rem 2rem;
    border: 2px solid var(--accent-primary);
    color: var(--text-main);
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.5);
    background: rgba(255, 0, 85, 0.2);
}

.card-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.card-tools {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Contact Section */
.contact-box {
    background: var(--bg-card);
    border: 1px solid rgba(255, 0, 85, 0.3);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
}

.contact-box p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed);
    cursor: pointer;
}

.primary-btn {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%); /* Cyberpunk cut */
    padding: 1rem 2.5rem;
}

.primary-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
}

.neon-btn {
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.4);
}

.secondary-btn {
    background-color: transparent;
    color: var(--text-main);
    border: 2px solid rgba(255, 0, 85, 0.5);
}

.secondary-btn:hover {
    border-color: var(--accent-primary);
    background: rgba(255, 0, 85, 0.1);
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.3);
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 0, 85, 0.2);
    background: rgba(5, 0, 0, 0.9);
}

/* detail page overrides to fit theme */
.project-detail-container {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Coaster Steam */
.coaster-steam {
    position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 100%; height: 100%; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,0,85,0.4) 0%, transparent 70%);
    opacity: 0; transition: opacity 0.5s; filter: blur(8px);
    pointer-events: none;
    z-index: 10;
}
.game-card:hover .coaster-steam { opacity: 1; animation: steamRise 2s infinite alternate; }
@keyframes steamRise { 0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; } 100% { transform: translate(-50%, -60%) scale(1.1); opacity: 1; } }

/* Scrollbar - Green when active */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #050000; border-radius: 6px; border: 1px solid var(--accent-primary); }
::-webkit-scrollbar-thumb:hover { background: #222; }
::-webkit-scrollbar-thumb:active { background: #81c784; border-color: #81c784; }

/* Intro Splash & Overlay */
#intro-splash { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: var(--bg-dark); z-index: 1000; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.drop { position: absolute; top: -50px; left: 50%; transform: translateX(-50%); width: 10px; height: 15px; background: var(--accent-primary); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; box-shadow: 0 0 15px rgba(255,0,85,0.6); animation: dropFall 1.5s ease-in forwards; }
.ripple { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); width: 2px; height: 2px; border-radius: 50%; border: 2px solid var(--accent-primary); opacity: 0; animation: rippleExpand 1s ease-out 1.5s forwards; }
@keyframes dropFall { 0% { top: -50px; opacity: 1; } 90% { top: 50%; opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { top: 50%; opacity: 0; transform: translate(-50%, -50%) scale(0.5); } }
@keyframes rippleExpand { 0% { transform: translate(-50%, -50%) scale(1); opacity: 1; border-width: 5px; } 100% { transform: translate(-50%, -50%) scale(300); opacity: 0; border-width: 1px; } }
.intro-content { opacity: 0; text-align: center; animation: fadeInIntro 2s ease-in 2s forwards; display: flex; flex-direction: column; align-items: center; gap: 20px; }
@keyframes fadeInIntro { to { opacity: 1; } }
.icon-table { width: 220px; height: auto; fill: var(--text-main); margin-bottom: 30px; }
.btn-accept { background: transparent; color: var(--accent-primary); border: 2px solid var(--accent-primary); padding: 12px 32px; font-size: 1.2rem; border-radius: 30px; transition: all 0.3s; font-family: inherit; text-transform: uppercase; letter-spacing: 2px; }
.btn-accept:hover { background: var(--accent-primary); color: var(--bg-dark); box-shadow: 0 0 20px rgba(255,0,85,0.6); }
#pouring-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 0vh; background-color: var(--accent-primary); z-index: 1001; transition: height 0.8s cubic-bezier(0.7, 0, 0.3, 1), top 0.8s cubic-bezier(0.7, 0, 0.3, 1) 0.8s; }

/* Steam Reveal */
.steam-reveal { opacity: 0; filter: blur(10px); transform: translateY(40px); transition: all 1.2s ease-out; }
.steam-reveal.visible { opacity: 1; filter: blur(0); transform: translateY(0); }

/* Floating Leaves */
#leaves-container { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 1; overflow: hidden; }
.leaf { position: absolute; width: 24px; height: 24px; fill: rgba(255, 0, 85, 0.7); filter: drop-shadow(0 0 5px rgba(255,0,85,0.5)); transition: fill 0.3s, transform 0.5s; animation: floatLeaf 15s infinite linear; pointer-events: auto; }
.leaf:hover { fill: #ff0055; transform: scale(1.5) rotate(45deg) !important; filter: drop-shadow(0 0 15px rgba(255,0,85,1)); }
@keyframes floatLeaf { 0% { transform: translateY(110vh) rotate(0deg); opacity: 0; } 10% { opacity: 0.5; } 90% { opacity: 0.5; } 100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; } }
