/* General Variables & Premium Theme */
:root {
    --bg-dark: #070714;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Cosmic Sunset Gradients */
    --primary-gradient: linear-gradient(135deg, #fb923c, #db2777, #6366f1);
    --hover-gradient: linear-gradient(135deg, #ffedd5, #fbcfe8, #e0e7ff);
    
    /* Glow Colors */
    --glow-blue: rgba(99, 102, 241, 0.45);
    --glow-pink: rgba(219, 39, 119, 0.45);
    --glow-orange: rgba(251, 146, 60, 0.45);
    
    /* Glassmorphism settings */
    --glass-bg: rgba(15, 23, 42, 0.45);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.12);
    
    --font-primary: 'Poppins', 'Noto Sans KR', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Background Stars and Twilight Space Effects */
.stars, .twinkling {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: -3;
}

.stars {
    background: #000 url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/123103/stars.png') repeat top center;
}

.twinkling {
    background: transparent url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/123103/twinkling.png') repeat top center;
    animation: move-twink-back 200s linear infinite;
}

@keyframes move-twink-back {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}

.ambient-glow {
    position: fixed;
    width: 80vw;
    height: 80vw;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -2;
    opacity: 0.15;
    pointer-events: none;
}

.bg-sunset {
    top: -20%;
    right: -20%;
    background: radial-gradient(circle, #db2777 0%, rgba(0,0,0,0) 70%);
    animation: pulse-glow 20s ease-in-out infinite alternate;
}

.bg-nebula {
    bottom: -20%;
    left: -20%;
    background: radial-gradient(circle, #6366f1 0%, rgba(0,0,0,0) 70%);
    animation: pulse-glow 25s ease-in-out infinite alternate-reverse;
}

@keyframes pulse-glow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.12; }
    100% { transform: scale(1.15) translate(5%, 5%); opacity: 0.22; }
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7, 7, 20, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-light);
}

.logo-text .highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    padding: 8px 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-light);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-light);
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

#orbitCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 700px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: var(--text-muted);
}

.badge-accent {
    background: rgba(219, 39, 119, 0.1);
    border-color: rgba(219, 39, 119, 0.3);
    color: #f472b6;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.7;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(219, 39, 119, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(219, 39, 119, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--glass-highlight);
    transform: translateY(-3px);
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

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

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--text-light);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-anim 1.6s ease-in-out infinite;
}

@keyframes scroll-anim {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 15px); }
}

/* Orbits Section */
.orbits-section {
    padding: 140px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
}

/* Glassmorphism Cards */
.orbit-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    z-index: 1;
}

.card-glow {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0;
    top: -50px;
    right: -50px;
    z-index: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.glow-blue { background: var(--glow-blue); }
.glow-pink { background: var(--glow-pink); }
.glow-orange { background: var(--glow-orange); }

.glass-card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-highlight);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.glass-card:hover .card-glow {
    opacity: 0.6;
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    border: 1px solid var(--glass-border);
    position: relative;
    z-index: 2;
    color: var(--text-light);
    transition: var(--transition-smooth);
}

.glass-card:hover .card-icon {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(219, 39, 119, 0.2);
}

.card-icon svg {
    width: 32px;
    height: 32px;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.card-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 32px;
    flex-grow: 1;
    position: relative;
    z-index: 2;
    font-weight: 300;
}

.card-action {
    position: relative;
    z-index: 2;
}

.action-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.action-link:hover {
    color: #fb923c; /* Sunset orange highlight */
}

.arrow-icon {
    width: 18px;
    height: 18px;
    transition: var(--transition-smooth);
}

.action-link:hover .arrow-icon {
    transform: translateX(6px);
}

.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.coming-soon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
}

/* Philosophy Section */
.about-section {
    padding: 100px 0;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 24px;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 300;
}

/* Interactive 3D/Orbit Style Visual elements in Philosophy section */
.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.orbit-visual-container {
    width: 320px;
    height: 320px;
    position: relative;
}

.center-core {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 40px rgba(219, 39, 119, 0.6);
}

.visual-orbit-line {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.line-1 {
    width: 140px;
    height: 140px;
    animation: rotate-orbit 10s linear infinite;
}

.line-2 {
    width: 230px;
    height: 230px;
    animation: rotate-orbit 18s linear infinite reverse;
}

.line-3 {
    width: 320px;
    height: 320px;
    animation: rotate-orbit 28s linear infinite;
}

.visual-planet {
    position: absolute;
    border-radius: 50%;
}

.planet-1 {
    width: 14px;
    height: 14px;
    background: #6366f1;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px #6366f1;
}

.planet-2 {
    width: 18px;
    height: 18px;
    background: #db2777;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 12px #db2777;
}

.planet-3 {
    width: 22px;
    height: 22px;
    background: #fb923c;
    top: 50%;
    right: -11px;
    transform: translateY(-50%);
    box-shadow: 0 0 15px #fb923c;
}

@keyframes rotate-orbit {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Footer styling */
.main-footer {
    background: rgba(4, 4, 12, 0.85);
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 40px;
    position: relative;
    z-index: 10;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-light);
    display: block;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 320px;
    font-weight: 300;
}

.footer-links-group h4, .footer-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-light);
}

.footer-links-group ul {
    list-style: none;
}

.footer-links-group ul li {
    margin-bottom: 12px;
}

.footer-links-group ul li a {
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

.footer-links-group ul li a:hover {
    color: var(--text-light);
    transform: translateX(4px);
    display: inline-block;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 10px;
    font-weight: 300;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.35);
}

/* Mobile responsive menu */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(7, 7, 20, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: var(--transition-smooth);
        z-index: 99;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
}
