/* ==========================================================================
   NASA MISSION CONTROL 3D DEVELOPER PORTFOLIO - SWAYAM VARADE
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN SYSTEM & CSS VARIABLES
   -------------------------------------------------------------------------- */
:root {
    --bg-dark: #050816;
    --bg-dark-alt: #0b112c;
    --bg-card: rgba(255, 255, 255, 0.05);
    
    --primary-cyan: #00E5FF;
    --secondary-purple: #7B61FF;
    --accent-pink: #FF4DA6;
    --accent-gold: #FFC72C;
    --nasa-red: #FC3D21;
    --nasa-blue: #0B3D91;
    
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    --text-dim: #64748B;
    
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-border-hover: rgba(0, 229, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-theme {
    --bg-dark: #0f172a;
    --bg-dark-alt: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --glass-bg: rgba(255, 255, 255, 0.12);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET & LENIS SMOOTH SCROLLING
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-cyan), var(--secondary-purple));
    border-radius: 4px;
}

#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--secondary-purple), var(--accent-pink));
    z-index: 10000;
    width: 0%;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--primary-cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--primary-cyan);
    transition: transform 0.1s ease;
}
.cursor-glow {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 229, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

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

ul {
    list-style: none;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--secondary-purple) 50%, var(--accent-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glow-text {
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
    border-color: var(--glass-border-hover);
    box-shadow: 0 12px 40px 0 rgba(0, 229, 255, 0.15);
    transform: translateY(-5px);
}

.container {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.subtitle-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 30px;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    color: var(--primary-cyan);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-top: 8px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--secondary-purple));
    margin: 16px auto 0 auto;
    border-radius: 2px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-cyan), var(--secondary-purple));
    color: #050816;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.8);
    transform: translateY(-2px);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
}

.btn-secondary:hover {
    background: rgba(0, 229, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
    transform: translateY(-2px);
}

.btn-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-glass:hover {
    border-color: var(--accent-pink);
    color: var(--accent-pink);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
}

/* --------------------------------------------------------------------------
   3. NASA PRELOADER
   -------------------------------------------------------------------------- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-content {
    text-align: center;
    max-width: 460px;
    width: 90%;
}

.nasa-logo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(252, 61, 33, 0.15);
    border: 1px solid var(--nasa-red);
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--nasa-red);
    margin-bottom: 20px;
}

.rocket-wrapper {
    display: inline-block;
    position: relative;
    margin-bottom: 20px;
    animation: floatRocket 2s ease-in-out infinite alternate;
}

.rocket-icon {
    font-size: 3.5rem;
    color: var(--primary-cyan);
    transform: rotate(-45deg);
    filter: drop-shadow(0 0 15px var(--primary-cyan));
}

@keyframes floatRocket {
    0% { transform: translateY(0); }
    100% { transform: translateY(-12px); }
}

.loader-title {
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.telemetry-readout {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--primary-cyan);
    margin-bottom: 15px;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-cyan), var(--secondary-purple), var(--accent-pink));
    transition: width 0.15s ease-out;
}

.loader-percentage {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-cyan);
    font-weight: 700;
}

.loader-subtitle {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 8px;
}

/* --------------------------------------------------------------------------
   4. NAVBAR & HEADER
   -------------------------------------------------------------------------- */
.navbar-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-normal);
}

.navbar-header.scrolled {
    padding: 12px 0;
    background: rgba(5, 8, 22, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 900;
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--primary-cyan);
}

.nasa-pill {
    font-size: 0.65rem;
    padding: 2px 8px;
    background: rgba(0, 229, 255, 0.15);
    border: 1px solid var(--primary-cyan);
    border-radius: 10px;
    color: var(--primary-cyan);
    margin-left: 6px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    font-size: 0.85rem;
    font-family: var(--font-heading);
    color: var(--text-muted);
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-cyan);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.icon-btn:hover {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-main);
}

/* --------------------------------------------------------------------------
   5. FLOATING AI ASTRONAUT ASSISTANT
   -------------------------------------------------------------------------- */
.ai-assistant-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.ai-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-cyan), var(--secondary-purple));
    border: 2px solid #fff;
    color: #050816;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform var(--transition-fast);
}

.ai-toggle-btn:hover {
    transform: scale(1.1);
}

.ai-chat-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 360px;
    max-height: 520px;
    background: rgba(11, 17, 44, 0.95);
    border: 1px solid var(--primary-cyan);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.ai-chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.ai-chat-header {
    padding: 15px;
    background: rgba(0, 229, 255, 0.1);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-avatar-mini {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--primary-cyan);
    overflow: hidden;
}

.ai-info h4 {
    font-size: 0.88rem;
}

.ai-info span {
    font-size: 0.7rem;
    color: var(--primary-cyan);
}

.ai-close-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}

.ai-messages {
    padding: 15px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 260px;
}

.ai-msg {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.ai-msg.bot {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    align-self: flex-start;
}

.ai-msg.user {
    background: var(--primary-cyan);
    color: #050816;
    align-self: flex-end;
}

.ai-quick-chips {
    padding: 8px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chip-btn {
    padding: 4px 10px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid var(--primary-cyan);
    border-radius: 12px;
    font-size: 0.7rem;
    color: var(--primary-cyan);
    cursor: pointer;
}

.ai-input-row {
    padding: 12px;
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--glass-border);
}

.ai-input-row input {
    flex: 1;
    padding: 8px 14px;
    background: rgba(5, 8, 22, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
}

.ai-input-row button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-cyan);
    border: none;
    color: #050816;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   6. HERO SECTION & REAL PHOTO / SEPARATE AVATAR
   -------------------------------------------------------------------------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 140px 0 80px 0;
}

.hero-container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.nasa-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 30px;
    font-size: 0.8rem;
    color: var(--primary-cyan);
    margin-bottom: 20px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-cyan);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 14px;
    font-weight: 900;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.typing-text {
    color: var(--primary-cyan);
    font-weight: 600;
}

.cursor-blink {
    animation: blink 1s infinite;
    color: var(--accent-pink);
}

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

.hero-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 30px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
}

.hero-stats-mini {
    display: flex;
    gap: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-cyan);
}

.mini-label {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

/* Avatar Frame for Real Photo */
.avatar-card {
    padding: 25px;
    text-align: center;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.avatar-frame {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 15px auto;
}

.avatar-img.real-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 50%;
    border: 3px solid var(--primary-cyan);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.4);
}

.hud-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px dashed var(--primary-cyan);
    border-radius: 50%;
    animation: spinRing 20s linear infinite;
}

.hud-ring.outer {
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 1px solid var(--secondary-purple);
    animation: spinRing 30s linear infinite reverse;
}

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

.floating-badge {
    position: absolute;
    padding: 6px 14px;
    background: rgba(5, 8, 22, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.78rem;
    font-family: var(--font-heading);
    color: var(--primary-cyan);
    animation: floatBadge 3s ease-in-out infinite alternate;
}

.badge-1 { top: 20px; left: -20px; }
.badge-2 { bottom: 40px; right: -20px; animation-delay: 1s; }
.badge-3 { bottom: -10px; left: 10px; animation-delay: 2s; }

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

/* Separate 3D Cyber Avatar Badge */
.separate-avatar-badge {
    width: 100%;
    max-width: 360px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.cyber-avatar-thumb {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--accent-pink);
    overflow: hidden;
    flex-shrink: 0;
}

.cyber-avatar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cyber-avatar-info {
    font-size: 0.85rem;
}

.cyber-tag {
    display: block;
    font-size: 0.65rem;
    font-family: var(--font-heading);
    color: var(--accent-pink);
    margin-bottom: 2px;
}

.cyber-avatar-info strong {
    color: var(--text-main);
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

.cyber-avatar-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.mouse-icon {
    width: 26px;
    height: 42px;
    border: 2px solid var(--primary-cyan);
    border-radius: 20px;
    display: inline-block;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-cyan);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 22px; }
}

.scroll-text {
    display: block;
    font-size: 0.7rem;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* --------------------------------------------------------------------------
   7. ABOUT SECTION
   -------------------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.bio-card {
    padding: 35px;
}

.bio-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.bio-icon {
    font-size: 1.8rem;
    color: var(--primary-cyan);
}

.bio-text {
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.7;
}

.bio-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.detail-item i {
    color: var(--primary-cyan);
    margin-right: 6px;
}

.tab-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.tab-btn {
    padding: 10px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    cursor: pointer;
}

.tab-btn.active, .tab-btn:hover {
    background: rgba(0, 229, 255, 0.15);
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
}

.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

.timeline-compact {
    position: relative;
    padding-left: 20px;
}

.timeline-compact::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(0, 229, 255, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 22px;
}

.timeline-dot {
    position: absolute;
    left: -19px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-cyan);
    box-shadow: 0 0 10px var(--primary-cyan);
}

.timeline-date {
    font-size: 0.75rem;
    font-family: var(--font-heading);
    color: var(--accent-pink);
}

.timeline-title {
    font-size: 1.05rem;
}

.timeline-subtitle {
    font-size: 0.85rem;
    color: var(--primary-cyan);
}

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

/* --------------------------------------------------------------------------
   8. SKILLS SECTION
   -------------------------------------------------------------------------- */
.orbit-wrapper {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 24px;
    overflow: hidden;
}

#orbitCanvas {
    width: 100%;
    height: 100%;
}

.orbit-center-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.pulse-core {
    font-size: 2.8rem;
    color: var(--primary-cyan);
    animation: rotateCore 10s linear infinite;
    display: block;
    margin-bottom: 6px;
}

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

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.skill-card {
    padding: 20px;
    text-align: center;
}

.skill-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.html-color { color: #E34F26; }
.css-color { color: #1572B6; }
.js-color { color: #F7DF1E; }
.react-color { color: #61DAFB; }
.flutter-color { color: #02569B; }
.python-color { color: #3776AB; }
.php-color { color: #777BB4; }
.firebase-color { color: #FFCA28; }
.mysql-color { color: #4479A1; }
.java-color { color: #5382A1; }
.cpp-color { color: #00599C; }
.git-color { color: #F05032; }

/* --------------------------------------------------------------------------
   9. PROJECTS SECTION (PROJECT PLANETS)
   -------------------------------------------------------------------------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 30px;
}

.project-planet-card {
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.planet-preview-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.planet-sphere {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    position: relative;
    box-shadow: inset -15px -15px 25px rgba(0,0,0,0.8), 0 0 20px rgba(0,229,255,0.4);
    transition: transform 0.5s ease;
    cursor: pointer;
}

.project-planet-card:hover .planet-sphere {
    transform: scale(1.1) rotate(15deg);
}

.planet-1 { background: radial-gradient(circle at 30% 30%, #00e5ff, #00599c, #050816); }
.planet-2 { background: radial-gradient(circle at 30% 30%, #7b61ff, #3b0764, #050816); }
.planet-3 { background: radial-gradient(circle at 30% 30%, #ff4da6, #831843, #050816); }
.planet-4 { background: radial-gradient(circle at 30% 30%, #ffc72c, #b45309, #050816); }

.planet-3d-ring {
    position: absolute;
    width: 150px;
    height: 46px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.4);
    transform: rotateX(70deg);
}

.planet-cyan { border-color: rgba(0, 229, 255, 0.6); box-shadow: 0 0 15px rgba(0, 229, 255, 0.5); }
.planet-purple { border-color: rgba(123, 97, 255, 0.6); box-shadow: 0 0 15px rgba(123, 97, 255, 0.5); }
.planet-pink { border-color: rgba(255, 77, 166, 0.6); box-shadow: 0 0 15px rgba(255, 77, 166, 0.5); }
.planet-gold { border-color: rgba(255, 199, 44, 0.6); box-shadow: 0 0 15px rgba(255, 199, 44, 0.5); }

.project-card-content {
    width: 100%;
}

.project-type {
    display: inline-block;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    color: var(--primary-cyan);
    margin-bottom: 6px;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.project-summary {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    height: 54px;
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
}

.project-tech-tags span {
    font-size: 0.72rem;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
}

/* --------------------------------------------------------------------------
   10. ROCKET JOURNEY TIMELINE
   -------------------------------------------------------------------------- */
.rocket-path-container {
    position: relative;
    padding: 40px 0;
}

.rocket-path-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-cyan), var(--secondary-purple), var(--accent-pink));
    transform: translateX(-50%);
}

.traveling-rocket {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    color: var(--accent-pink);
    filter: drop-shadow(0 0 15px var(--accent-pink));
}

.path-nodes {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.path-node-item {
    display: flex;
    align-items: center;
    width: 100%;
}

.path-node-item.left { justify-content: flex-start; }
.path-node-item.right { justify-content: flex-end; }

.node-card {
    width: 45%;
    padding: 25px;
}

.node-stage {
    font-size: 0.75rem;
    font-family: var(--font-heading);
    color: var(--primary-cyan);
    margin-bottom: 4px;
    display: block;
}

.node-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--primary-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-cyan);
    z-index: 2;
}

/* --------------------------------------------------------------------------
   11. ACHIEVEMENTS SECTION
   -------------------------------------------------------------------------- */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.achievement-card {
    padding: 30px;
    text-align: center;
}

.achievement-icon {
    font-size: 2.2rem;
    color: var(--primary-cyan);
    margin-bottom: 12px;
}

.achievement-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.achievement-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   12. GITHUB COMMAND SECTION
   -------------------------------------------------------------------------- */
.github-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 30px;
}

.github-profile-card {
    padding: 35px;
    text-align: center;
}

.gh-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.1);
    border: 2px solid var(--primary-cyan);
    margin: 0 auto 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-cyan);
}

.gh-username {
    color: var(--accent-pink);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.gh-bio {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.github-stats-card {
    padding: 35px;
}

.github-stats-card h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-cyan);
}

.lang-bars {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lang-item {
    display: grid;
    grid-template-columns: 160px 1fr 50px;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.lang-bar-bg {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.lang-bar-fill {
    height: 100%;
    border-radius: 10px;
}

/* --------------------------------------------------------------------------
   13. CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 30px;
}

.contact-info-card, .contact-form-card {
    padding: 35px;
}

.space-station-visual {
    position: relative;
    height: 120px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.station-core {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-cyan);
    box-shadow: 0 0 20px var(--primary-cyan);
    z-index: 2;
}

.solar-panel {
    width: 55px;
    height: 18px;
    background: linear-gradient(90deg, #1e293b, var(--secondary-purple));
    border: 1px solid var(--primary-cyan);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.solar-panel.left { left: 20px; }
.solar-panel.right { right: 20px; }

.signal-waves .wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--primary-cyan);
    border-radius: 50%;
    animation: wavePulse 3s infinite linear;
}

.wave.w1 { width: 50px; height: 50px; }
.wave.w2 { width: 90px; height: 90px; animation-delay: 1s; }
.wave.w3 { width: 130px; height: 130px; animation-delay: 2s; }

@keyframes wavePulse {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(0.5); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.3); }
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.method-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
}

.method-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.1);
    color: var(--primary-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-text span {
    display: block;
    font-size: 0.68rem;
    font-family: var(--font-heading);
    color: var(--text-dim);
}

.method-text strong {
    font-size: 0.9rem;
}

.form-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--primary-cyan);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(5, 8, 22, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

/* --------------------------------------------------------------------------
   14. FOOTER & MODALS
   -------------------------------------------------------------------------- */
.space-footer {
    background: var(--bg-dark-alt);
    padding: 50px 0 25px 0;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 8px;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.rocket-top-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--accent-pink);
    font-family: var(--font-heading);
    font-size: 0.68rem;
}

.rocket-top-btn i {
    font-size: 1.4rem;
    transform: rotate(-45deg);
}

.footer-bottom {
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Modals */
.glass-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 8, 22, 0.88);
    backdrop-filter: blur(20px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.glass-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.glass-modal-container {
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    background: rgba(11, 17, 44, 0.95);
    border: 1px solid var(--primary-cyan);
    border-radius: 20px;
    padding: 35px;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container, .about-grid, .github-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .node-card {
        width: 100%;
        margin-left: 45px;
    }
    .rocket-path-line, .traveling-rocket, .node-icon {
        left: 15px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(5, 8, 22, 0.98);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s ease;
    }
    .nav-links.active { right: 0; }
    .hamburger-btn { display: flex; }
    .hero-title { font-size: 2.4rem; }
    .section-title { font-size: 2rem; }
}
