/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #000;
    color: #fff;
    overflow: hidden;
    cursor: none;
    height: 100vh;
    width: 100vw;
    position: relative;
}

/* Layered Space Backgrounds */
#starField {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#milkyWay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.4;
}

.nebula-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    z-index: 2;
    pointer-events: none;
    animation: nebula-drift 60s infinite alternate;
}

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

/* Enhanced Cursor */
.cursor {
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #fff 0%, transparent 70%);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s ease;
    will-change: transform;
    filter: blur(1px);
    box-shadow: 0 0 10px #fff, 0 0 20px rgba(255, 255, 255, 0.5);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Language Switcher - Clean Design */
.language-switcher {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 8px 16px;
    cursor: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.lang-btn:hover,
.lang-btn.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.lang-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 10px;
}

/* Redesigned Navigation - Minimal Dots with Line */
.nav-dots {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    z-index: 1000;
    padding: 20px 0;
}

.nav-line {
    position: absolute;
    right: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.2) 80%,
        transparent
    );
}

.dot {
    width: 14px;
    height: 14px;
    cursor: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.dot-inner {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    transition: all 0.3s ease;
}

.dot:hover .dot-inner {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.dot.active .dot-inner {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 30px rgba(255, 255, 255, 1);
    }
}

/* Scroll Hint */
.scroll-hint {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 1000;
    opacity: 0.6;
    transition: opacity 0.5s ease;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.scroll-hint span {
    font-size: 10px;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.scroll-arrow {
    font-size: 24px;
    animation: bounce-arrow 2s infinite;
}

@keyframes bounce-arrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Star Decorations */
.star-decoration {
    font-size: 20px;
    margin: 20px 0;
    opacity: 0.5;
    letter-spacing: 30px;
    animation: constellation-twinkle 4s infinite;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

@keyframes constellation-twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Viewport Container */
.viewport-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    z-index: 3;
}

.viewport-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 50px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: translateY(50px) scale(0.98);
}

.viewport-section.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Hero Section */
.hero-compact {
    text-align: center;
    max-width: 900px;
    position: relative;
}

.hero-title {
    font-size: clamp(48px, 10vw, 90px);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -4px;
    margin: 15px 0;
    transition: all 0.3s ease;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.4), 0 0 60px rgba(255, 255, 255, 0.2);
}

.hero-title:hover {
    letter-spacing: 2px;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.6), 0 0 80px rgba(255, 255, 255, 0.3);
}

.hero-subtitle {
    font-size: clamp(15px, 2.5vw, 18px);
    font-weight: 300;
    margin: 40px 0;
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 1px;
    line-height: 1.6;
}

/* Section Headers */
.section-header {
    font-size: clamp(36px, 7vw, 56px);
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 50px;
    text-align: center;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3), 0 0 60px rgba(255, 255, 255, 0.1);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.section-description {
    font-size: clamp(13px, 1.8vw, 15px);
    font-weight: 300;
    max-width: 700px;
    text-align: center;
    opacity: 0.7;
    margin-top: 40px;
    letter-spacing: 0.5px;
    line-height: 1.8;
}

/* Skills Section */
.skills-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1000px;
    width: 100%;
}

.skill-box {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px 25px;
    text-align: center;
    transition: all 0.4s ease;
    cursor: none;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05), inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.skill-box:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.2), inset 0 0 30px rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.skill-num {
    display: block;
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.skill-label {
    font-size: clamp(15px, 2.5vw, 20px);
    font-weight: 700;
    letter-spacing: 3px;
    opacity: 0.9;
}

/* COMPACT SOLAR SYSTEM - Smaller Planets & Orbit */
.solar-system {
    position: relative;
    width: min(450px, 85vw);
    height: min(450px, 85vw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Smaller Orbit Ring */
.solar-system::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(350px, 75vw);
    height: min(350px, 75vw);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05), inset 0 0 20px rgba(255, 255, 255, 0.05);
    animation: orbit-ring-pulse 8s infinite;
}

@keyframes orbit-ring-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Smaller Sun */
.sun {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(80px, 15vw, 110px);
    height: clamp(80px, 15vw, 110px);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff 0%, #f0f0f0 25%, #d0d0d0 50%, #a0a0a0 75%, #888 100%);
    box-shadow: 
        0 0 50px rgba(255, 255, 255, 1),
        0 0 100px rgba(255, 255, 255, 0.8),
        0 0 150px rgba(255, 255, 255, 0.6),
        inset 0 0 30px rgba(0, 0, 0, 0.3);
    z-index: 10;
    animation: sun-pulse 6s infinite;
}

@keyframes sun-pulse {
    0%, 100% {
        box-shadow: 
            0 0 50px rgba(255, 255, 255, 1),
            0 0 100px rgba(255, 255, 255, 0.8),
            0 0 150px rgba(255, 255, 255, 0.6),
            inset 0 0 30px rgba(0, 0, 0, 0.3);
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        box-shadow: 
            0 0 70px rgba(255, 255, 255, 1),
            0 0 140px rgba(255, 255, 255, 0.9),
            0 0 210px rgba(255, 255, 255, 0.7),
            inset 0 0 30px rgba(0, 0, 0, 0.3);
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.sun-core {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.4), transparent 60%);
    animation: rotate-slow 90s linear infinite;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* SMALLER PLANETS - Uniform Size */
.planet {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(45px, 8vw, 55px);
    height: clamp(45px, 8vw, 55px);
    margin-left: calc(clamp(45px, 8vw, 55px) / -2);
    margin-top: calc(clamp(45px, 8vw, 55px) / -2);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #555 0%, #222 40%, #000 60%, #222 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: all 0.4s ease;
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.2),
        inset -10px -10px 20px rgba(0, 0, 0, 0.8),
        inset 10px 10px 20px rgba(255, 255, 255, 0.15);
}

.planet:hover {
    transform: scale(1.8) !important;
    z-index: 100;
    animation-play-state: paused;
    box-shadow: 
        0 0 50px rgba(255, 255, 255, 0.6),
        inset -10px -10px 20px rgba(0, 0, 0, 0.8),
        inset 10px 10px 20px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    background: linear-gradient(135deg, #777 0%, #444 40%, #222 60%, #444 100%);
}

.planet i {
    font-size: clamp(20px, 4vw, 26px);
    color: #fff;
    z-index: 1;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.8));
}

.planet .sql-logo {
    font-size: clamp(14px, 3vw, 18px);
    font-weight: 900;
    letter-spacing: 1px;
    color: #fff;
    z-index: 1;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.8));
}

/* SMALLER ORBIT RADIUS - All planets closer to sun */
.planet[data-orbit="1"] {
    animation: orbit1 20s linear infinite;
}

.planet[data-orbit="2"] {
    animation: orbit2 20s linear infinite;
}

.planet[data-orbit="3"] {
    animation: orbit3 20s linear infinite;
}

.planet[data-orbit="4"] {
    animation: orbit4 20s linear infinite;
}

.planet[data-orbit="5"] {
    animation: orbit5 20s linear infinite;
}

.planet[data-orbit="6"] {
    animation: orbit6 20s linear infinite;
}

.planet[data-orbit="7"] {
    animation: orbit7 20s linear infinite;
}

.planet[data-orbit="8"] {
    animation: orbit8 20s linear infinite;
}

/* Reduced orbit radius from 260px to 175px */
@keyframes orbit1 {
    from { transform: rotate(0deg) translateX(min(175px, 37.5vw)) rotate(0deg); }
    to { transform: rotate(360deg) translateX(min(175px, 37.5vw)) rotate(-360deg); }
}

@keyframes orbit2 {
    from { transform: rotate(45deg) translateX(min(175px, 37.5vw)) rotate(-45deg); }
    to { transform: rotate(405deg) translateX(min(175px, 37.5vw)) rotate(-405deg); }
}

@keyframes orbit3 {
    from { transform: rotate(90deg) translateX(min(175px, 37.5vw)) rotate(-90deg); }
    to { transform: rotate(450deg) translateX(min(175px, 37.5vw)) rotate(-450deg); }
}

@keyframes orbit4 {
    from { transform: rotate(135deg) translateX(min(175px, 37.5vw)) rotate(-135deg); }
    to { transform: rotate(495deg) translateX(min(175px, 37.5vw)) rotate(-495deg); }
}

@keyframes orbit5 {
    from { transform: rotate(180deg) translateX(min(175px, 37.5vw)) rotate(-180deg); }
    to { transform: rotate(540deg) translateX(min(175px, 37.5vw)) rotate(-540deg); }
}

@keyframes orbit6 {
    from { transform: rotate(225deg) translateX(min(175px, 37.5vw)) rotate(-225deg); }
    to { transform: rotate(585deg) translateX(min(175px, 37.5vw)) rotate(-585deg); }
}

@keyframes orbit7 {
    from { transform: rotate(270deg) translateX(min(175px, 37.5vw)) rotate(-270deg); }
    to { transform: rotate(630deg) translateX(min(175px, 37.5vw)) rotate(-630deg); }
}

@keyframes orbit8 {
    from { transform: rotate(315deg) translateX(min(175px, 37.5vw)) rotate(-315deg); }
    to { transform: rotate(675deg) translateX(min(175px, 37.5vw)) rotate(-675deg); }
}

/* Projects Section */
.projects-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    width: 100%;
}

.project-box {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 35px 30px;
    transition: all 0.4s ease;
    cursor: none;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 30px rgba(255, 255, 255, 0.05), inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.project-box:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 50px rgba(255, 255, 255, 0.15), inset 0 0 30px rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.project-num {
    font-size: clamp(22px, 3.5vw, 28px);
    font-weight: 900;
    display: block;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.project-name {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
    opacity: 0.95;
}

.project-desc {
    font-size: clamp(12px, 1.8vw, 14px);
    font-weight: 300;
    opacity: 0.7;
    margin-bottom: 15px;
    line-height: 1.6;
}

.project-year {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: clamp(11px, 1.5vw, 13px);
    font-weight: 300;
    opacity: 0.4;
}

/* Contact Section */
.contact-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 50px;
    max-width: 1000px;
    width: 100%;
}

.contact-group {
    text-align: center;
    position: relative;
    padding: 30px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.contact-group:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.1);
}

.contact-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    opacity: 0.5;
    display: block;
    margin-bottom: 20px;
}

.contact-value {
    font-size: clamp(15px, 2.5vw, 18px);
    font-weight: 400;
    color: #fff;
    text-decoration: none;
    display: block;
    margin: 8px 0;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.contact-value:hover {
    opacity: 1;
    transform: translateX(5px);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.time-value {
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 900;
    letter-spacing: 4px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor,
    .cursor-follower {
        display: none;
    }

    .viewport-section {
        padding: 70px 25px;
    }

    .nav-dots {
        right: 20px;
        gap: 20px;
    }

    .dot {
        width: 12px;
        height: 12px;
    }

    .language-switcher {
        top: 20px;
        left: 20px;
        padding: 8px 15px;
    }

    .solar-system {
        width: min(350px, 90vw);
        height: min(350px, 90vw);
    }
}
