/* ========================================================
   COSMIC PORTFOLIO STYLESHEET
   Aesthetics: Deep Space Sci-Fi Glassmorphism & High-Tech Glow
   ======================================================== */

:root {
    --bg-dark: #040612;
    --bg-surface: rgba(13, 20, 44, 0.65);
    --bg-surface-hover: rgba(22, 33, 72, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --border-glass: rgba(255, 255, 255, 0.12);
    --border-active: rgba(0, 240, 255, 0.5);

    --primary-cyan: #00f0ff;
    --primary-blue: #3a86ff;
    --solar-gold: #ffb703;
    --solar-orange: #fb8500;
    --neon-purple: #a855f7;
    --neon-green: #10b981;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --font-heading: 'Outfit', 'Kanit', -apple-system, sans-serif;
    --font-body: 'Kanit', 'Outfit', -apple-system, sans-serif;

    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --glow-cyan: 0 0 25px rgba(0, 240, 255, 0.45);
    --glow-gold: 0 0 25px rgba(255, 183, 3, 0.45);
    --glow-purple: 0 0 25px rgba(168, 85, 247, 0.45);
}

/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    color-scheme: dark;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #02040b;
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.25);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.5);
}

/* Background 3D Canvas */
#space-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: auto;
}

/* Subtle Vignette & Star Dust Overlay */
.space-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle at center, transparent 40%, rgba(4, 6, 18, 0.6) 85%, rgba(2, 3, 10, 0.9) 100%);
}

/* Main Content Layer */
.content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    pointer-events: none;
}

/* Ensure interactive elements receive pointer events */
.navbar,
.hero-content,
.profile-showcase,
.glass-card,
.feature-box,
.planets-navigator,
.planet-chip,
.project-card,
.contact-card,
.theme-controller-dock,
.planet-modal,
.footer,
.btn,
a,
button,
input,
textarea {
    pointer-events: auto;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.25;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 10%, var(--primary-cyan) 60%, var(--solar-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.gradient-gold {
    background: linear-gradient(135deg, #ffffff 10%, var(--solar-gold) 70%, var(--solar-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ========================================================
   NAVBAR & HEADER
   ======================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.1rem 0;
    transition: var(--transition-smooth);
    background: rgba(4, 7, 20, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(4, 7, 20, 0.85);
    border-bottom-color: rgba(0, 240, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 1px;
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.1rem;
    box-shadow: var(--glow-cyan);
    animation: pulse-glow 3s infinite alternate;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.3rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-cyan);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-cyan);
    transition: var(--transition-smooth);
    box-shadow: var(--glow-cyan);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Audio & Theme Pill Button */
.nav-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.nav-btn:hover {
    border-color: var(--primary-cyan);
    background: var(--bg-surface-hover);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    transform: translateY(-1px);
}

.audio-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}

.audio-bar {
    width: 2px;
    background: var(--text-muted);
    border-radius: 1px;
    height: 3px;
    transition: 0.2s;
}

.nav-btn.playing .audio-bar {
    background: var(--primary-cyan);
    animation: bar-dance 0.8s ease-in-out infinite alternate;
}
.nav-btn.playing .audio-bar:nth-child(1) { height: 10px; animation-delay: 0.1s; }
.nav-btn.playing .audio-bar:nth-child(2) { height: 6px; animation-delay: 0.3s; }
.nav-btn.playing .audio-bar:nth-child(3) { height: 12px; animation-delay: 0.2s; }

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ========================================================
   HERO SECTION
   ======================================================== */
/* ========================================================
   HERO SECTION (EXACT MOCKUP MATCH)
   ======================================================== */
.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 0;
}

/* Radiant Sun Bloom behind the Head */
.sun-behind-aura {
    position: absolute;
    top: 25.5%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 60, 0.75) 0%, rgba(255, 140, 20, 0.38) 45%, rgba(255, 80, 0, 0.12) 65%, transparent 75%);
    filter: blur(35px);
    pointer-events: none;
    z-index: 2;
    animation: sun-pulse 4s ease-in-out infinite alternate;
}

/* Portrait Stage */
.hero-portrait-stage {
    position: relative;
    z-index: 5;
    height: 61vh;
    max-height: 630px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    pointer-events: none;
}

.portrait-rim-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: visible;
}

/* The Cutout Profile Image with Authentic Solar Rim Lighting */
.hero-profile-img {
    height: 100%;
    width: auto;
    max-width: 88vw;
    object-fit: contain;
    object-position: center bottom;
    display: block;
    /* Golden solar rim lighting hugging cutout silhouette */
    filter: drop-shadow(0 0 20px rgba(255, 205, 50, 0.8))
            drop-shadow(0 0 50px rgba(255, 130, 20, 0.45))
            drop-shadow(0 20px 45px rgba(0, 0, 0, 0.95));
    transition: transform 0.25s ease-out, filter 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
}

/* Torso bottom dark blend - seamlessly dissolves clothes into dark bottom space */
.torso-bottom-fade {
    position: absolute;
    bottom: 0;
    left: -15%;
    width: 130%;
    height: 20%;
    background: linear-gradient(to top, #040614 0%, rgba(4, 6, 20, 0.75) 55%, transparent 100%);
    pointer-events: none;
}

/* Subtle Scroll Down Prompt positioned to bottom-right so it never obstructs portrait */
.scroll-down-hint {
    position: absolute;
    bottom: 85px;
    right: 32px;
    left: auto;
    transform: none;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    opacity: 0.7;
    transition: var(--transition-fast);
    pointer-events: auto;
}

.scroll-down-hint:hover {
    opacity: 1;
    color: var(--primary-cyan);
}

.scroll-arrow {
    font-size: 1.1rem;
    animation: bounce-arrow 1.8s infinite;
}

@keyframes sun-pulse {
    0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.7; }
    100% { transform: translate(-50%, -50%) scale(1.08); opacity: 0.95; }
}

@keyframes bounce-arrow {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(6px); }
    60% { transform: translateY(3px); }
}

/* Hero Right: Typography & Introduction */
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.badge-tag {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: var(--radius-full);
    color: var(--primary-cyan);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.typewriter-wrapper {
    font-size: clamp(1.15rem, 2.2vw, 1.6rem);
    color: var(--solar-gold);
    font-weight: 400;
    min-height: 2.2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1.3em;
    background: var(--solar-gold);
    animation: blink 0.9s infinite;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 580px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin: 0.5rem 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Action Buttons */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    color: #020817;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.55);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--primary-cyan);
    background: var(--bg-surface-hover);
    transform: translateY(-2px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--solar-gold), var(--solar-orange));
    color: #0b0702;
    box-shadow: 0 4px 20px rgba(255, 183, 3, 0.35);
}

.btn-gold:hover {
    box-shadow: 0 8px 30px rgba(255, 183, 3, 0.55);
    transform: translateY(-2px);
}

/* ========================================================
   FLOATING BACKGROUND THEME CONTROLLER DOCK
   ======================================================== */
.theme-controller-dock {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 95;
    background: rgba(8, 14, 28, 0.88);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 240, 255, 0.22);
    border-radius: 20px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 240, 255, 0.12);
}

.theme-pill-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 0.55rem 1.05rem;
    border-radius: 14px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.theme-pill-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.theme-pill-btn.active {
    background: #00507a;
    color: var(--primary-cyan);
    border: 1px solid rgba(0, 240, 255, 0.55);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
}

/* ========================================================
   SECTIONS GENERAL STYLES
   ======================================================== */
section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    color: var(--primary-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    margin-bottom: 0.8rem;
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
}

/* Glass Card Component */
.glass-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--border-active);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 240, 255, 0.12);
}

/* ========================================================
   ABOUT SECTION
   ======================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    font-size: 1.02rem;
    color: var(--text-secondary);
}

.about-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.feature-box {
    background: rgba(13, 20, 44, 0.5);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: var(--transition-fast);
}

.feature-box:hover {
    border-color: var(--solar-gold);
    background: rgba(22, 33, 72, 0.6);
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.feature-title {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========================================================
   SOLAR SYSTEM PLANETS INSPECTOR HUD
   ======================================================== */
.planets-navigator {
    display: flex;
    overflow-x: auto;
    gap: 0.75rem;
    padding: 1rem 0.5rem;
    margin-bottom: 2.5rem;
    scrollbar-width: none;
}
.planets-navigator::-webkit-scrollbar { display: none; }

.planet-chip {
    flex: 0 0 auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    padding: 0.55rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.88rem;
    transition: var(--transition-fast);
}

.planet-chip:hover, .planet-chip.active {
    border-color: var(--solar-gold);
    color: var(--text-primary);
    background: rgba(255, 183, 3, 0.15);
    box-shadow: 0 0 15px rgba(255, 183, 3, 0.3);
}

.planet-chip-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Planet Modal Dialog */
.planet-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 1000;
    width: 90%;
    max-width: 520px;
    background: rgba(9, 14, 34, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 240, 255, 0.4);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 240, 255, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-bounce);
}

.planet-modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(2, 4, 12, 0.7);
    backdrop-filter: blur(6px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.modal-title {
    font-size: 1.5rem;
    color: var(--solar-gold);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.2s;
}

.modal-close:hover {
    color: #fff;
}

.modal-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.25rem 0;
}

.modal-info-item {
    background: rgba(255, 255, 255, 0.04);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.modal-info-val {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-cyan);
}

/* ========================================================
   SKILLS SECTION
   ======================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.skill-category-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.skill-bar {
    width: 100%;
    height: 7px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-blue));
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================================
   PROJECTS SECTION
   ======================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.project-card:hover {
    border-color: var(--primary-cyan);
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 240, 255, 0.2);
}

.project-thumb {
    width: 100%;
    height: 190px;
    position: relative;
    background: linear-gradient(135deg, #0c1435, #1e1145);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-icon-large {
    font-size: 4rem;
    opacity: 0.85;
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.5));
}

.project-body {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.9rem;
}

.project-title {
    font-size: 1.25rem;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tag-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary-cyan);
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
}

.project-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

/* ========================================================
   CONTACT SECTION
   ======================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-fast);
}

.contact-card:hover {
    border-color: var(--solar-gold);
    background: var(--bg-surface-hover);
    transform: translateX(4px);
}

.contact-info-block {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon-bubble {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 183, 3, 0.12);
    border: 1px solid rgba(255, 183, 3, 0.3);
    color: var(--solar-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.contact-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.copy-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: var(--primary-cyan);
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.copy-btn:hover {
    background: var(--primary-cyan);
    color: #020817;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-input, .form-textarea {
    width: 100%;
    background: rgba(4, 7, 20, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
    background: rgba(6, 12, 32, 0.85);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Toast Notification */
.toast-notice {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: rgba(16, 185, 129, 0.95);
    color: #000;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-bounce);
}

.toast-notice.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========================================================
   FOOTER
   ======================================================== */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 0 6.5rem; /* extra bottom padding for theme dock */
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
    background: rgba(2, 4, 12, 0.7);
    backdrop-filter: blur(10px);
}

/* ========================================================
   KEYFRAME ANIMATIONS
   ======================================================== */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 15px rgba(0, 240, 255, 0.3); }
    100% { box-shadow: 0 0 30px rgba(0, 240, 255, 0.8); }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

@keyframes rotate-ring {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes float-tag {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-8px); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes bar-dance {
    0% { height: 4px; }
    100% { height: 12px; }
}

/* ========================================================
   RESPONSIVENESS (MOBILE, TABLET, ULTRA-WIDE)
   ======================================================== */
@media (max-width: 1024px) {
    .hero-portrait-stage {
        height: 58vh;
        max-height: 560px;
        margin-bottom: 40px;
    }

    .sun-behind-aura {
        width: 380px;
        height: 380px;
        top: 25.5%;
    }

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

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

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

    .mobile-toggle {
        display: block;
    }

    .hero-portrait-stage {
        height: 53vh;
        max-height: 430px;
        margin-bottom: 58px;
    }

    .sun-behind-aura {
        width: 300px;
        height: 300px;
        top: 25.5%;
    }

    .theme-controller-dock {
        width: 96%;
        max-width: 480px;
        justify-content: flex-start;
        padding: 5px 8px;
        border-radius: 16px;
        bottom: 12px;
        gap: 5px;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .theme-controller-dock::-webkit-scrollbar {
        display: none;
    }

    .theme-pill-btn {
        padding: 0.38rem 0.62rem;
        font-size: 0.74rem;
        border-radius: 10px;
        flex-shrink: 0;
    }

    .scroll-down-hint {
        bottom: 72px;
        right: 16px;
        font-size: 0.72rem;
    }

    .about-features-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        padding-bottom: 5.5rem;
    }
}
