:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent: #aaddff;
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Cinzel', serif;
    /* New Font */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-heading);
    /* Apply New Font */
    letter-spacing: 0.05em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Glassmorphism Utilities */
.glass-nav,
.glass-card,
.menu-items a:hover {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 15px 30px;
    z-index: 1000;
    border-radius: 100px;
    display: flex;
    justify-content: center;
}

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

.logo {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 2px;
}

.menu-items {
    display: flex;
    gap: 30px;
}

.menu-items a {
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid transparent;
}

.menu-items a:hover {
    border-color: var(--glass-border);
}

.mobile-toggle {
    display: none;
}

/* Solar System Header */
#solar-header {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    pointer-events: none;
    /* Let clicks pass to canvas */
    width: 100%;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-title .line {
    display: block;
}

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

/* Starfall Section */
#starfall-section {
    position: relative;
    min-height: 60vh;
    background: linear-gradient(to bottom, #050505, #0a0a1a);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.scrolling-text-wrapper {
    position: relative;
    z-index: 2;
    transform: rotate(-5deg);
    mix-blend-mode: overlay;
    pointer-events: none;
    width: 120%;
    /* wider than screen to cover rotation gaps */
    margin-left: -10%;
}

.marquee {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    font-size: 5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    opacity: 0.2;
    animation: marquee 20s linear infinite;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
    color: transparent;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Portfolio Section */
#portfolio {
    padding: 100px 20px;
    background: #050505;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 50px;
    text-align: center;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    transition: transform 0.3s;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-10px);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transform: translateY(100%);
    transition: transform 0.3s;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

/* Footer */
footer {
    padding: 50px 20px;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.copyright {
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Loading */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-items {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .marquee-content {
        font-size: 3rem;
    }
}