/* --- COLOR THEMES --- */
:root {
    /* DARK MODE (DEFAULT) */
    --bg-color: #050505;
    --card-bg: rgba(20, 20, 30, 0.4);
    --primary: #00f2ff; /* Neon Cyan */
    --secondary: #bd00ff; /* Neon Purple */
    --text: #ffffff;
    --text-gray: #a1a1aa;
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(20, 20, 30, 0.6);
    --nav-border: rgba(255, 255, 255, 0.2);
    --btn-text: #000;
    --orbit-ring: rgba(255, 255, 255, 0.1);
    --tooltip-bg: rgba(20, 20, 30, 0.9);
    --tooltip-text: #ffffff;
    --tooltip-border: var(--primary);
}

/* LIGHT MODE OVERRIDES */
body.light-mode {
    --bg-color: #ffffff;
    --card-bg: rgba(240, 240, 240, 0.85);
    --primary: #000000;
    --secondary: #4f46e5;
    --text: #111827;
    --text-gray: #4b5563;
    --glass-border: 1px solid rgba(0, 0, 0, 0.1);
    --nav-bg: rgba(255, 255, 255, 0.9);
    --nav-border: rgba(0, 0, 0, 0.15);
    --btn-text: #fff;
    --orbit-ring: rgba(0, 0, 0, 0.3); 
    --tooltip-bg: #ffffff;
    --tooltip-text: #000000;
    --tooltip-border: #000000;
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-color);
    color: var(--text);
    overflow-x: hidden; 
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* --- INTRO OVERLAY (split logo) --- */
#intro-overlay {
    position: fixed; inset: 0; background: var(--bg-color); display: flex; align-items: center; justify-content: center;
    z-index: 2000; transition: opacity 0.8s ease; will-change: opacity, visibility; 
}
#intro-overlay[aria-hidden="true"] { visibility: visible; }
.intro-inner { text-align: center; }
.logo-split { display: flex; align-items: center; justify-content: center; position: relative; gap: 2rem; }
.logo-split .split { width: 240px; height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; background: transparent; }
.logo-split .initial { font-size: 7.5rem; font-weight: 800; letter-spacing: -8px; color: var(--text); }
.logo-split .name { margin-top: 0.25rem; font-size: 1.25rem; color: var(--text-gray); font-weight: 600; }
.logo-split .center-line { position: absolute; width: 2px; height: 120px; background: linear-gradient(180deg,var(--primary),var(--secondary)); left: 50%; top: calc(50% - 60px); transform: translateX(-50%); z-index: 5; border-radius: 2px; }

.split.left { transform-origin: right center; }
.split.right { transform-origin: left center; }

/* animation - splits then fades */
.logo-split.animate .split.left { animation: splitLeft 1800ms cubic-bezier(.2,.9,.2,1) forwards; }
.logo-split.animate .split.right { animation: splitRight 1800ms cubic-bezier(.2,.9,.2,1) forwards; }
.logo-split.animate .center-line { animation: centerShrink 1800ms ease forwards; }

@keyframes splitLeft {
    0% { transform: translateX(0) rotateY(0); opacity: 1; }
    50% { transform: translateX(-18%) rotateY(-6deg); opacity: 1; }
    85% { transform: translateX(-60%) rotateY(-10deg); opacity: 1; }
    100% { transform: translateX(-120%) rotateY(-15deg); opacity: 0; }
}
@keyframes splitRight {
    0% { transform: translateX(0) rotateY(0); opacity: 1; }
    50% { transform: translateX(18%) rotateY(6deg); opacity: 1; }
    85% { transform: translateX(60%) rotateY(10deg); opacity: 1; }
    100% { transform: translateX(120%) rotateY(15deg); opacity: 0; }
}
@keyframes centerShrink {
    0% { transform: translateX(-50%) scaleY(1); opacity: 1; }
    80% { transform: translateX(-50%) scaleY(0.3); opacity: 0.8; }
    100% { transform: translateX(-50%) scaleY(0); opacity: 0; }
}

/* quick responsive tweaks */
@media (max-width: 600px) {
    .logo-split { gap: 1rem; }
    .logo-split .split { width: 120px; height: 120px; }
    .logo-split .initial { font-size: 4.2rem; }
    .logo-split .name { font-size: 1rem; }
    .logo-split .center-line { height: 80px; }
}

/* --- 3D BACKGROUND --- */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
    background: var(--bg-color); 
    transition: background-color 0.5s ease;
}

/* --- CUSTOM CURSOR --- */
#cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, border-color 0.3s;
    mix-blend-mode: normal;
}
body.light-mode #cursor { border-color: #000000; }

#cursor-glow {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.15) 0%, rgba(0,0,0,0) 60%);
    position: fixed;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s, background 0.3s;
}
body.light-mode #cursor-glow {
    background: radial-gradient(circle, rgba(79, 70, 229, 0.25) 0%, rgba(0,0,0,0) 60%);
}

/* --- FLOATING NAVBAR --- */
nav {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--nav-border);
    border-radius: 50px;
    padding: 0.8rem 2.5rem;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; }
/* Find the existing .nav-links a and REPLACE it with this: */
.nav-links a, .theme-toggle { 
    color: var(--text-gray); 
    text-decoration: none; 
    display: flex;
    align-items: center; 
    justify-content: center; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth Transition */
    background: transparent; 
    border: none; 
    cursor: none; 
    padding: 0.5rem;
    border-radius: 30px; /* Round corners for hover effect */
}

/* Add this NEW code below .nav-links a */
.nav-text {
    max-width: 0;
    opacity: 0;
    margin-left: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.4s ease;
    font-weight: 600;
    font-size: 0.9rem;
    transform: translateX(-10px);
}

/* Hover Effects */
.nav-links a:hover {
    color: var(--text); 
    background: rgba(255, 255, 255, 0.05); /* Slight background on hover */
    padding-right: 1.2rem; /* Add space for text */
}

.nav-links a:hover .nav-text {
    max-width: 100px; /* Reveals the text */
    opacity: 1;
    margin-left: 10px; /* Space between icon and text */
    transform: translateX(0);
}

/* Icon Highlight */
.nav-links a:hover svg, .theme-toggle:hover svg { 
    stroke: var(--primary); 
    filter: drop-shadow(0 0 8px var(--primary)); 
}

/* Light Mode Specifics */
body.light-mode .nav-links a:hover {
    background: rgba(0, 0, 0, 0.05);
}
.nav-icon { width: 24px; height: 24px; stroke-width: 2; }

.nav-links a:hover, .theme-toggle:hover { color: var(--text); transform: translateY(-2px); }
.nav-links a:hover svg, .theme-toggle:hover svg { stroke: var(--primary); filter: drop-shadow(0 0 8px var(--primary)); }
body.light-mode .nav-links a:hover svg { filter: none; }
.nav-divider { width: 1px; height: 24px; background-color: var(--nav-border); }

/* --- SITE LOGO FALLBACK (AK) --- */
.site-brand { position: absolute; left: 1.25rem; top: 50%; transform: translateY(-50%); z-index: 1100; }
.site-logo { display: none; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--text); }
.site-logo.show { display: flex; }
.logo-letters { font-weight: 900; font-size: 1.6rem; display: flex; gap: 0.25rem; align-items: baseline; }
.logo-letters .letter { display: inline-block; line-height: 1; padding: 2px 6px; border-radius: 4px; background: linear-gradient(90deg,var(--primary),var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.logo-letters .letter.left { transform-origin: center; }
.logo-text { font-size: 0.78rem; color: var(--text-gray); line-height: 1; display: inline-block; }
.logo-text small { font-size: 0.72rem; color: var(--text-gray); font-weight: 600; }

@media (max-width: 768px) {
    .site-brand { left: 0.6rem; }
    .logo-letters { font-size: 1.25rem; }
    .logo-text { display: none; }
}

/* --- CHAT WIDGET STYLES --- */
#chat-widget { position: fixed; right: 20px; bottom: 22px; z-index: 3000; font-family: 'Space Grotesk', sans-serif; }
#chat-toggle { background: linear-gradient(90deg,var(--primary),var(--secondary)); color: #fff; border: none; padding: 0.6rem 0.9rem; border-radius: 28px; box-shadow: 0 8px 24px rgba(0,0,0,0.2); cursor: pointer; font-weight: 700; }
#chat-panel { width: 360px; max-width: calc(100vw - 48px); background: var(--card-bg); border: var(--glass-border); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.25); overflow: hidden; margin-bottom: 0.8rem; display: none; flex-direction: column; }
.chat-header { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.03); }
.chat-title { font-weight: 700; color: var(--text); }
.chat-actions { display: flex; gap: 0.5rem; align-items: center; }
.chat-open-full { font-size: 0.8rem; color: var(--text-gray); text-decoration: none; }
#chat-close { background: transparent; border: none; color: var(--text-gray); font-size: 1rem; cursor: pointer; }
.chat-messages { padding: 1rem; max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.6rem; }
.chat-msg { max-width: 78%; padding: 0.6rem 0.8rem; border-radius: 10px; font-size: 0.9rem; line-height: 1.2; }
.chat-msg.user { margin-left: auto; background: linear-gradient(90deg,var(--primary),var(--secondary)); color: #000; font-weight: 600; }
.chat-msg.bot { background: rgba(255,255,255,0.03); color: var(--text); }
.chat-msg.typing { opacity: 0.9; font-style: italic; }
.chat-form { display: flex; gap: 0.5rem; padding: 0.8rem; border-top: 1px solid rgba(255,255,255,0.03); }
.chat-form input { flex: 1; padding: 0.6rem 0.8rem; border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); background: transparent; color: var(--text); outline: none; }
.chat-form button { padding: 0.6rem 0.9rem; border-radius: 8px; border: none; background: var(--primary); color: #000; font-weight: 700; cursor: pointer; }

/* Small screens: expand full width */
@media (max-width: 420px) {
    #chat-panel { width: calc(100vw - 28px); right: 14px; bottom: 70px; }
    #chat-toggle { padding: 0.55rem 0.75rem; }
}

/* Chat suggestion buttons (resume-specific quick-asks) */
.chat-suggestions { padding: 0.6rem 0.8rem; display: flex; gap: 0.5rem; flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,0.02); }
.chat-suggestion { background: rgba(255,255,255,0.03); color: var(--text); border-radius: 999px; padding: 0.45rem 0.7rem; font-size: 0.8rem; cursor: pointer; border: 1px solid transparent; transition: transform 0.15s ease, background 0.15s ease; }
.chat-suggestion:hover { transform: translateY(-3px); background: rgba(255,255,255,0.05); }
.chat-suggestion:active { transform: translateY(0); }



/* --- HERO --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    z-index: 1;
}
.hero-content { flex: 1; text-align: left; padding-right: 2rem; }

.hero-image-container { 
    flex: 1; 
    display: flex; 
    justify-content: flex-end;
    align-items: center; 
    position: relative; 
}

.hero-photo {
    width: 380px; 
    height: 380px;
    border-radius: 50%; 
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.3); 
    transition: all 0.5s ease;
    animation: floatPhoto 6s ease-in-out infinite;
}

body.light-mode .hero-photo { 
    border-color: #000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

@keyframes floatPhoto { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

.hero h1 { 
    font-size: 5rem; line-height: 1.1; margin-bottom: 0.5rem; 
    font-weight: 700; color: var(--text); transition: color 0.5s;
}
body:not(.light-mode) .hero h1 { text-shadow: 0 0 20px rgba(255,255,255,0.3); }

.typing-container {
    font-size: 3.5rem; font-weight: 800; min-height: 1.2em;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 1rem; display: block;
}
body.light-mode .typing-container {
    background: linear-gradient(90deg, #111827, #4f46e5);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
body:not(.light-mode) .typing-container { filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.5)); }

.cursor-blink {
    display: inline-block; width: 5px; height: 1em; background-color: var(--primary);
    margin-left: 5px; animation: blink 0.7s infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero h2 { font-size: 1.5rem; color: var(--text-gray); font-weight: 300; margin-bottom: 2.5rem; letter-spacing: 2px; }

.btn-glow {
    padding: 1rem 3rem; font-size: 1rem; text-transform: uppercase;
    letter-spacing: 2px; font-weight: 700; color: var(--btn-text);
    background: var(--primary); border: none;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    position: relative; transition: 0.3s; cursor: none;
}
body.light-mode .btn-glow { background: #111; color: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
body:not(.light-mode) .btn-glow { box-shadow: 0 0 20px rgba(0, 242, 255, 0.3); }
.btn-glow:hover { background: var(--text); color: var(--bg-color); transform: translateY(-2px); }
body:not(.light-mode) .btn-glow:hover { box-shadow: 0 0 40px var(--primary); }

/* --- SECTIONS --- */
section { padding: 8rem 10%; position: relative; z-index: 1; }
.section-title { 
    font-size: 3rem; margin-bottom: 4rem; color: var(--text);
    border-bottom: 2px solid var(--secondary); display: inline-block;
}
body:not(.light-mode) .section-title { text-shadow: 0 0 10px rgba(255,255,255,0.2); }

.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2.5rem; }
.card {
    background: var(--card-bg); border: var(--glass-border); padding: 2.5rem;
    border-radius: 20px; position: relative; transform-style: preserve-3d;
    transform: perspective(1000px); transition: transform 0.1s, background 0.5s;
    backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
body.light-mode .card { box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.card-content { transform: translateZ(30px); }
.card h3 { font-size: 1.8rem; margin-bottom: 0.5rem; color: var(--text); }
.tech-row { display: flex; gap: 1.5rem; margin: 1.5rem 0; font-size: 2.5rem; }
.tech-row i { transition: 0.3s; }

body:not(.light-mode) .tech-row i.colored { filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4)); }
body:not(.light-mode) .card:hover i.colored { filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8)); transform: scale(1.1); }
body.light-mode .card:hover i.colored { transform: scale(1.1); }

.card p { color: var(--text-gray); margin-bottom: 2rem; line-height: 1.6; }
.card-link { 
    color: var(--primary); font-weight: 700; text-decoration: none; text-transform: uppercase;
    font-size: 0.9rem; letter-spacing: 1px; border-bottom: 1px solid transparent; transition: 0.3s;
}
.card-link:hover { border-bottom: 1px solid var(--primary); }

.skills-container { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.skill-pill {
    background: rgba(255, 255, 255, 0.03); padding: 1rem 1.5rem;
    border: 1px solid var(--glass-border); border-radius: 8px; color: var(--text);
    display: flex; align-items: center; gap: 1rem; font-size: 1.1rem;
    backdrop-filter: blur(5px); transition: 0.3s;
}
body.light-mode .skill-pill { background: #fff; border: 1px solid rgba(0,0,0,0.1); box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.skill-pill i { font-size: 1.8rem; }
.skill-pill:hover {
    background: rgba(0, 242, 255, 0.1); border-color: var(--primary); transform: translateY(-5px);
}
body.light-mode .skill-pill:hover { background: rgba(0, 0, 0, 0.05); border-color: #000; }

/* --- EDUCATION TIMELINE (framed cards + glowing dots) --- */
.education-timeline { position: relative; }
.education-timeline > .timeline-item { align-items: center; gap: 1rem; }
.education-timeline .timeline-card {
    background: var(--card-bg);
    border: var(--glass-border);
    border-radius: 12px;
    padding: 1.25rem;
    color: var(--text);
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    transition: transform 0.3s, box-shadow 0.3s;
}
.education-timeline .timeline-card h3 { margin: 0 0 6px 0; }
.education-timeline .timeline-dot {
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--primary); box-shadow: 0 0 22px var(--primary);
    justify-self: center;
    align-self: center;
    position: relative;
    z-index: 5;
}
.education-timeline::before {
    content: '';
    position: absolute; left: 50%; top: 0; bottom: 0; width: 3px;
    background: rgba(255,255,255,0.04); transform: translateX(-50%);
    border-radius: 2px;
}
.education-timeline .timeline-item {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}
.education-timeline .timeline-item:nth-child(odd) .timeline-card { justify-self: end; text-align: left; }
.education-timeline .timeline-item:nth-child(even) .timeline-card { justify-self: start; text-align: left; }

@media (max-width: 768px) {
    .education-timeline::before { left: 18px; transform: none; width: 3px; }
    .education-timeline .timeline-item { display: block; margin: 1.25rem 0; }
    .education-timeline .timeline-card { width: auto; margin-left: 42px; }
    .education-timeline .timeline-dot { position: absolute; left: 9px; top: 18px; transform: none; }
}

/* timeline text helpers */
.timeline-role { font-weight: 600; color: var(--text); margin: 6px 0; }
.timeline-date { color: var(--text-gray); margin-top: 5px; }


.timeline-box {
    border-left: 2px solid var(--glass-border); padding-left: 2rem;
    margin-bottom: 3rem; position: relative;
}
.timeline-box::before {
    content: ''; position: absolute; left: -6px; top: 0; width: 10px; height: 10px;
    background: var(--secondary); border-radius: 50%; 
}
body:not(.light-mode) .timeline-box::before { box-shadow: 0 0 15px var(--secondary); }

/* --- CONTACT ORBIT SYSTEM --- */
#contact {
    min-height: 80vh; display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-direction: column; position: relative;
}
.orbit-system {
    position: relative; width: 500px; height: 500px;
    display: flex; align-items: center; justify-content: center;
}
.center-orb {
    width: 120px; height: 120px; background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 10; box-shadow: 0 0 30px var(--primary);
    animation: pulseOrb 3s infinite ease-in-out;
}
body.light-mode .center-orb { background: radial-gradient(circle, #000 0%, transparent 70%); box-shadow: 0 0 20px rgba(0,0,0,0.3); }
.center-text { color: var(--bg-color); font-weight: 800; font-size: 1.1rem; z-index: 11; text-transform: uppercase; }
@keyframes pulseOrb {
    0%, 100% { transform: scale(1); box-shadow: 0 0 30px var(--primary); }
    50% { transform: scale(1.1); box-shadow: 0 0 60px var(--primary); }
}

/* THE ORBIT RING */
.orbit-ring {
    position: absolute; width: 100%; height: 100%; 
    border: 1px solid var(--orbit-ring);
    border-radius: 50%; animation: spinRight 40s linear infinite;
}

/* CLASS TO PAUSE ANIMATION ON CLICK */
.orbit-ring.paused, .orbit-item.paused {
    animation-play-state: paused !important;
}

.orbit-item {
    position: absolute; width: 60px; height: 60px; background: var(--card-bg);
    border: 1px solid var(--glass-border); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text); font-size: 1.5rem; text-decoration: none;
    backdrop-filter: blur(5px); transition: 0.3s; 
    animation: spinLeft 40s linear infinite; 
}
body.light-mode .orbit-item { border-color: rgba(0,0,0,0.2); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* Positioning Items */
.item-1 { top: 0; left: 50%; margin-left: -30px; margin-top: -30px; }
.item-2 { top: 50%; right: 0; margin-right: -30px; margin-top: -30px; }
.item-3 { bottom: 0; left: 50%; margin-left: -30px; margin-bottom: -30px; }
.item-4 { top: 50%; left: 0; margin-left: -30px; margin-top: -30px; }

@keyframes spinRight { 100% { transform: rotate(360deg); } }
@keyframes spinLeft { 100% { transform: rotate(-360deg); } }

/* DESCRIPTION */
.orbit-item::after {
    content: attr(data-label); 
    position: absolute; 
    /* Description is now positioned at the BOTTOM of the element */
    top: 100%; 
    left: 50%;
    transform: translateX(-50%) translateY(10px); 
    
    background: var(--tooltip-bg);
    color: var(--tooltip-text);
    
    padding: 0.8rem 1.2rem; border-radius: 8px;
    font-size: 0.9rem; font-weight: 600; white-space: nowrap; 
    
    opacity: 0; /* Hidden by default */
    visibility: hidden; 
    transition: 0.3s; 
    
    border: 1px solid var(--tooltip-border);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3); pointer-events: none; z-index: 20;
    margin-top: 10px; /* Space between icon and text */
}

body.light-mode .orbit-item::after { 
    background: #ffffff; color: #000000; border: 2px solid #000000; font-weight: 700;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2); 
}

/* --- ACTIVE STATE (ON CLICK) --- */
.orbit-item.active {
    background: var(--primary); 
    color: var(--bg-color); 
    border-color: var(--primary); 
    box-shadow: 0 0 30px var(--primary);
    z-index: 100;
}

/* When active, the icon moves UP slightly relative to its position on the ring */
.item-1.active { margin-top: -50px; } 
.item-2.active { margin-right: -40px; } 
.item-3.active { margin-bottom: -50px; }
.item-4.active { margin-left: -40px; }

/* When active, show the description below */
.orbit-item.active::after { 
    opacity: 1; 
    visibility: visible; 
    transform: translateX(-50%) translateY(0); 
}

@media (max-width: 768px) {
    .hero { flex-direction: column; text-align: center; padding: 6rem 1rem; }
    .hero-content { padding-right: 0; margin-bottom: 3rem; }
    .hero-image-container { justify-content: center; }
    .hero h1 { font-size: 3rem; }
    .typing-container { font-size: 2.5rem; }
    .orbit-system { width: 300px; height: 300px; }
    nav { top: auto; bottom: 2rem; width: 90%; padding: 0.8rem 1rem; }
    .nav-links { gap: 1rem; width: 100%; justify-content: space-between; }
    #cursor, #cursor-glow { display: none; }
    * { cursor: auto; }
}

footer { text-align: center; padding: 3rem; border-top: var(--glass-border); color: var(--text-gray); margin-top: 0; z-index: 1; position: relative;}