/* =======================
   CONTAINER & GRID
   ======================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* =======================
   ENTRY EXPERIENCE
   ======================= */
.entry-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#galaxy-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.entry-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.entry-name {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 12px;
    color: #fff;
    opacity: 0;
    margin-bottom: 2rem;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

.loading-line {
    width: 250px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    opacity: 0;
}

.loading-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #fff;
    box-shadow: 0 0 10px #fff;
}

.loading-status {
    margin-top: 1rem;
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    opacity: 0;
}

/* =======================
   NAVIGATION
   ======================= */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: transform 0.4s ease, background-color 0.4s ease;
}

.glass-nav.nav-hidden {
    transform: translateY(-100%);
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-primary);
    position: relative;
}

.nav-logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-logo:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* =======================
   MOBILE MENU TRAY
   ======================= */
.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    color: var(--text-primary);
    cursor: pointer;
    background: none;
    border: none;
}

.mobile-tray {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-150%);
    transition: transform 0.4s ease;
    z-index: 999;
    padding: 2rem 0;
}

.mobile-tray.active {
    transform: translateY(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-nav-link {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .nav-links, .nav-cta {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
}

/* =======================
   HERO SECTION
   ======================= */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--nav-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s infinite alternate ease-in-out;
}

.sphere-one {
    width: 600px;
    height: 600px;
    background: var(--accent-primary-glow);
    top: -100px;
    right: -100px;
}

.sphere-two {
    width: 500px;
    height: 500px;
    background: var(--accent-secondary-glow);
    bottom: -100px;
    left: -100px;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, 50px) scale(1.1); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-greeting {
    color: var(--accent-primary);
    font-family: monospace;
    font-size: 1rem;
    letter-spacing: 2px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--text-primary);
    min-height: 130px; /* space for typing */
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 450px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content {
        align-items: center;
    }
    .hero-title {
        min-height: auto;
        font-size: 2.5rem;
    }
}

/* =======================
   ABOUT SECTION
   ======================= */
.story-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.story-block {
    opacity: 0;
    transform: translateY(30px);
}

.section-heading {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-heading::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background: var(--accent-secondary);
}

.story-text {
    font-size: 2rem;
    line-height: 1.4;
    color: var(--text-primary);
    font-weight: 300;
}

@media (max-width: 768px) {
    .story-text {
        font-size: 1.5rem;
    }
}

/* =======================
   SKILLS GALAXY
   ======================= */
.skills-galaxy-container {
    position: relative;
    width: 600px;
    height: 600px;
    margin: 4rem auto;
    border-radius: 50%;
}

.galaxy-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-highlight);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.core-skill-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-primary-glow), transparent 70%);
    animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 1; }
}

.core-skill {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
}

.orbit-path {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px dashed var(--border-subtle);
    border-radius: 50%;
    z-index: 1;
}

#orbit-inner {
    width: 350px;
    height: 350px;
    animation: rotateOrbit 40s linear infinite;
}

#orbit-outer {
    width: 550px;
    height: 550px;
    animation: rotateOrbit 60s linear infinite reverse;
}

@keyframes rotateOrbit {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.skills-nodes-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 5;
}

@media (max-width: 650px) {
    .skills-galaxy-container {
        width: 300px; height: 300px;
    }
    #orbit-inner { width: 220px; height: 220px; }
    #orbit-outer { width: 330px; height: 330px; }
    .galaxy-center { width: 100px; height: 100px; }
    .core-skill { font-size: 0.8rem; }
}

/* =======================
   PROJECTS SECTION
   ======================= */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
}

/* =======================
   CONTACT SECTION
   ======================= */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 2rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-primary);
}

.status-dot.green-glow {
    box-shadow: 0 0 10px var(--accent-primary);
    animation: pulseGlow 2s infinite alternate;
}

@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* =======================
   FOOTER
   ======================= */
.site-footer {
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0;
    margin-top: 2rem;
}

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

.footer-brand .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
}

.footer-brand .copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.social-link:hover {
    color: var(--text-primary);
    transform: translateY(-3px);
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}
