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

/* Side sheet cards and forms – high-contrast, pill inputs */
.side-sheet .project-card,
.side-sheet .product-card {
    background: #f8f9fa !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 12px !important;
    color: #1C2A4A !important;
}

.side-sheet .project-card h4,
.side-sheet .product-card h4 {
    color: #E2A55F !important;
}

.side-sheet .project-card:hover,
.side-sheet .product-card:hover {
    background: #f2f2f2 !important;
    border-color: #E2A55F !important;
}

.side-sheet form label {
    color: #1C2A4A !important;
    font-weight: 600 !important;
}

.side-sheet form input,
.side-sheet form select,
.side-sheet form textarea {
    background: transparent !important;
    border: 2px solid #d0d0d0 !important;
    border-radius: 9999px !important;
    color: #1C2A4A !important;
    padding: 12px 16px !important;
}

.side-sheet form input:focus,
.side-sheet form select:focus,
.side-sheet form textarea:focus {
    border-color: #E2A55F !important;
    outline: none !important;
}

.side-sheet form input::placeholder,
.side-sheet form textarea::placeholder {
    color: #9B9B9B !important;
}

.side-sheet form button {
    background: #1C2A4A !important;
    color: #FFFFFF !important;
    border-radius: 9999px !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    height: 100vh;
    background: #1C2A4A;
    color: #fff;
}

/* Main landing page container */
.landing-page {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Much darker background */
.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0A0F1C;
    background-image: url('Sokori space.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
    z-index: 1;
}

/* Minimal stars overlay since your background already has a beautiful starfield */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.25), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.15), transparent),
        radial-gradient(1px 1px at 160px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 200px 60px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 240px 20px, rgba(255,255,255,0.25), transparent),
        radial-gradient(1px 1px at 280px 90px, rgba(255,255,255,0.15), transparent),
        radial-gradient(1px 1px at 320px 50px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 360px 10px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 400px 70px, rgba(255,255,255,0.25), transparent),
        radial-gradient(1px 1px at 440px 30px, rgba(255,255,255,0.15), transparent),
        radial-gradient(1px 1px at 480px 80px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 520px 40px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 560px 90px, rgba(255,255,255,0.25), transparent),
        radial-gradient(1px 1px at 600px 20px, rgba(255,255,255,0.15), transparent),
        radial-gradient(1px 1px at 640px 60px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 680px 10px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 720px 50px, rgba(255,255,255,0.25), transparent),
        radial-gradient(1px 1px at 760px 80px, rgba(255,255,255,0.15), transparent),
        radial-gradient(1px 1px at 800px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 840px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 880px 20px, rgba(255,255,255,0.25), transparent),
        radial-gradient(1px 1px at 920px 60px, rgba(255,255,255,0.15), transparent),
        radial-gradient(1px 1px at 960px 90px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 1000px 40px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 1040px 10px, rgba(255,255,255,0.25), transparent),
        radial-gradient(1px 1px at 1080px 50px, rgba(255,255,255,0.15), transparent),
        radial-gradient(1px 1px at 1120px 80px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 1160px 30px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 1200px 70px, rgba(255,255,255,0.25), transparent),
        radial-gradient(1px 1px at 1240px 20px, rgba(255,255,255,0.15), transparent),
        radial-gradient(1px 1px at 1280px 60px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 1320px 90px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 1360px 40px, rgba(255,255,255,0.25), transparent),
        radial-gradient(1px 1px at 1400px 10px, rgba(255,255,255,0.15), transparent),
        radial-gradient(1px 1px at 1440px 50px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 1480px 80px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 1520px 30px, rgba(255,255,255,0.25), transparent),
        radial-gradient(1px 1px at 1560px 70px, rgba(255,255,255,0.15), transparent),
        radial-gradient(1px 1px at 1600px 20px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 1640px 60px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 1680px 90px, rgba(255,255,255,0.25), transparent),
        radial-gradient(1px 1px at 1720px 40px, rgba(255,255,255,0.15), transparent),
        radial-gradient(1px 1px at 1760px 10px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 1800px 50px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 1840px 80px, rgba(255,255,255,0.25), transparent),
        radial-gradient(1px 1px at 1880px 30px, rgba(255,255,255,0.15), transparent),
        radial-gradient(1px 1px at 1920px 70px, rgba(255,255,255,0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    opacity: 0.2;
}

/* Golden accent stars */
.stars::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(3px 3px at 150px 100px, #E2A55F, transparent),
        radial-gradient(2px 2px at 350px 200px, #E2A55F, transparent),
        radial-gradient(2px 2px at 550px 150px, #E2A55F, transparent),
        radial-gradient(3px 3px at 750px 250px, #E2A55F, transparent),
        radial-gradient(2px 2px at 950px 100px, #E2A55F, transparent),
        radial-gradient(2px 2px at 1150px 200px, #E2A55F, transparent),
        radial-gradient(3px 3px at 1350px 150px, #E2A55F, transparent),
        radial-gradient(2px 2px at 1550px 250px, #E2A55F, transparent),
        radial-gradient(2px 2px at 1750px 100px, #E2A55F, transparent),
        radial-gradient(3px 3px at 1950px 200px, #E2A55F, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    opacity: 0.6;
}

/* Dark nebula waves using your color palette */
.nebula-waves {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(28, 42, 74, 0.1) 25%,
        transparent 50%,
        rgba(155, 78, 46, 0.05) 75%,
        transparent 100%
    );
    background-size: 800px 800px;
    animation: nebulaFlow 30s ease-in-out infinite;
    opacity: 0.4;
}

@keyframes nebulaFlow {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-20px) translateY(-10px); }
    50% { transform: translateX(20px) translateY(10px); }
    75% { transform: translateX(-10px) translateY(20px); }
}

/* Interactive particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #7FE3D4;
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 8s linear infinite;
}

.particle.gold {
    background: #9B4E2E;
    width: 3px;
    height: 3px;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-10vh) translateX(50px);
        opacity: 0;
    }
}

/* Branding section (top-left) */
.branding {
    position: absolute;
    top: 60px;
    left: 60px;
    z-index: 10;
    color: #3B3B3B; /* Nebula gold */
}

/* Bottom-left section */
.bottom-left {
    position: absolute;
    bottom: 60px;
    left: 60px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 1.1;
    margin-bottom: 8px;
    color: #E2A55F;
    position: relative;
}

.tagline {
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    font-weight: 400;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.4;
    opacity: 0.8;
}

.subtitle {
    font-size: clamp(0.625rem, 1.5vw, 0.75rem);
    font-weight: 400;
    color: #E2A55F;
    line-height: 1.4;
    opacity: 0.7;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation section (now in bottom-left) */
.navigation {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Bottom branding */
.bottom-branding {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.25rem, 4vw, 2rem);
    font-weight: 600;
    color: #E2A55F;
    letter-spacing: 0.15em;
    opacity: 0;
    animation: fadeInLeft 1s ease-out 2s forwards;
}

.nav-item {
    font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    font-weight: 500;
    color: #FFFFFF;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0;
    animation: fadeInLeft 1s ease-out forwards;
    outline: none;
}

.nav-item:nth-child(1) { animation-delay: 1.5s; }
.nav-item:nth-child(2) { animation-delay: 1.7s; }
.nav-item:nth-child(3) { animation-delay: 1.9s; }
.nav-item:nth-child(4) { animation-delay: 2.1s; }

.nav-item:hover {
    color: #FFFFFF;
    transform: translateX(12px);
    text-shadow: 0 0 10px rgba(255,255,255,0.35);
}

.nav-item::before {
    content: '›';
    position: absolute;
    left: -18px;
    top: 50%;
    transform: translateY(-50%);
    color: #FFFFFF;
    opacity: 0.55;
    font-size: 1em;
    transition: transform 0.2s ease, opacity 0.2s ease, font-size 0.2s ease;
}

.nav-item:hover::before {
    transform: translateY(-50%) translateX(6px) scale(1.1);
    opacity: 0.95;
}

.nav-item:focus-visible {
    text-decoration: underline;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.25);
    border-radius: 4px;
}

.nav-item:focus-visible::before {
    transform: translateY(-50%) translateX(6px) scale(1.1);
    opacity: 0.95;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Space-ops section (bottom-right) */
.space-ops {
    position: absolute;
    bottom: 60px;
    right: 60px;
    z-index: 10;
    text-align: right;
    font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
    color: #fff;
    line-height: 1.6;
    opacity: 0;
    animation: fadeInRight 1s ease-out 2.5s forwards;
}

.ops-header {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    font-weight: 500;
    color: #E2A55F;
    margin-bottom: 8px;
    letter-spacing: 0.1em;
    animation: pulse 2s ease-in-out infinite;
}

.ops-data {
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    font-weight: 400;
    margin-bottom: 4px;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ops-data:hover {
    color: #3B3B3B;
    text-shadow: 0 0 5px #E2A55F;
    transform: translateX(-5px);
}

.ops-quote {
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    font-weight: 400;
    margin-top: 8px;
    font-family: 'Inter', sans-serif;
    color: #E2A55F;
    transition: all 0.3s ease;
}

.ops-quote:hover {
    color: #3B3B3B;
    text-shadow: 0 0 5px #E2A55F;
}

.diamond {
    color: #E2A55F;
    font-size: 0.8em;
    margin-left: 4px;
    animation: sparkle 1.5s ease-in-out infinite;
    transition: all 0.3s ease;
}

.diamond:hover {
    color: #3B3B3B;
    transform: scale(1.2);
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: rotate(0deg);
    }
    50% {
        opacity: 0.6;
        transform: rotate(180deg);
    }
}

/* Circular Reveal Heading Section */
.circular-section {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    opacity: 1; /* Changed from 0 to 1 */
    /* Removed the 3-second delay animation */
}

/* Center text styles */
.center-content {
    text-align: center;
    max-width: 100%;
    padding: 0 24px;
}

.center-main-text {
    font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    font-size: clamp(18px, 5.5vw, 40px);
    letter-spacing: 0.08em;
    color: #FFFFFF;
}

@keyframes fadeInCenter {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Side Sheet / Drawer */
.side-sheet {
    position: fixed;
    top: 0;
    right: -100%;
    width: 400px;
    height: 100vh;
    background: #FFFFFF;
    border-left: 1px solid #3B3B3B;
    z-index: 1000;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
}

.side-sheet.open {
    right: 0;
}

.side-sheet-content {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.side-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.side-sheet-title {
    color: #1C2A4A;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: #1C2A4A;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f0f0f0;
    color: #E2A55F;
}

.side-sheet-body {
    flex: 1;
    color: #1C2A4A;
    line-height: 1.6;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile drawer */
@media (max-width: 768px) {
    .side-sheet {
        width: 100%;
        right: -100%;
        top: auto;
        bottom: 0;
        height: 70vh;
        border-left: none;
        border-top: 1px solid #e0e0e0;
        border-radius: 20px 20px 0 0;
    }
    
    .side-sheet.open {
        right: 0;
    }
    
    .side-sheet-content {
        padding: 20px;
    }
    
    .side-sheet-title {
        font-size: 1.25rem;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .branding {
        top: 30px;
        left: 20px;
        right: 20px;
    }
    
    .bottom-left {
        top: 20px;
        bottom: auto;
        left: 20px;
        right: 20px;
        gap: 15px;
        max-width: none;
        flex-direction: column-reverse; /* Sokori Space above nav on tablets */
    }
    
    .space-ops {
        bottom: 20px;
        right: 20px;
        text-align: right;
        max-width: 45%;
    }
    
    .main-title {
        font-size: 1.5rem;
    }
    
    .tagline {
        font-size: 0.75rem;
    }
    
    .subtitle {
        font-size: 0.625rem;
    }
}

@media (max-width: 480px) {
    .branding {
        top: 20px;
        left: 15px;
        right: 15px;
    }
    
    .bottom-left {
        top: 15px;
        bottom: auto;
        left: 15px;
        right: 15px;
        gap: 12px;
        max-width: none;
        flex-direction: column-reverse; /* Sokori Space above nav on mobile */
    }
    
    .space-ops {
        bottom: 15px;
        right: 15px;
        text-align: right;
        max-width: 45%;
    }
    
    .main-title {
        font-size: 1.25rem;
    }
    
    .tagline {
        font-size: 0.625rem;
    }
    
    .subtitle {
        font-size: 0.5rem;
    }
    
    .nav-item {
        font-size: 0.75rem;
    }
    
    .ops-header,
    .ops-data,
    .ops-quote {
        font-size: 0.75rem;
    }
    
    .circular-section {
        transform: translate(-50%, -50%) scale(0.6);
    }
}
