/* 
 * SHIVORA VENTURES - PRODUCTION STYLESHEET
 * Unifying the design system while preserving the brand identity.
 */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Brand Colors - Preserving exact values from index.html */
    --shivora-bg: #0A1F3C;
    --shivora-bg-deep: #061227;
    --shivora-panel: #0E2748;
    --shivora-teal-1: #0F5C7A;
    --shivora-teal-2: #1CA3C7;
    --shivora-gold: #C8A96A;
    --shivora-line: rgba(28, 163, 199, 0.18);
    --shivora-text: #E5E7EB;
    --shivora-text-muted: #9AB1C7;
    
    /* Functional Tokens */
    --primary: var(--shivora-teal-2);
    --background: var(--shivora-bg);
    --border-radius: 12px;
    --container-max-width: 1280px;
    --nav-height: 80px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1. RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

*:focus-visible {
    outline: 2px solid var(--shivora-teal-2);
    outline-offset: 4px;
}

html {
    scroll-behavior: auto; /* Handled by Lenis */
    overflow-x: hidden;
}

body {
    background-color: var(--shivora-bg);
    color: var(--shivora-text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--shivora-bg-deep);
}
::-webkit-scrollbar-thumb {
    background: var(--shivora-teal-1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--shivora-teal-2);
}

/* Selection */
::selection {
    background: rgba(28, 163, 199, 0.35);
    color: #fff;
}

/* 2. TYPOGRAPHY */
h1, h2, h3, h4, h5, h6, .font-display {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

p, .font-body {
    font-family: 'Inter', sans-serif;
}

.text-gradient {
    background: linear-gradient(120deg, #1CA3C7 0%, #6FD5EE 50%, #C8A96A 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* 3. LAYOUT UTILITIES */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .container { padding: 0 40px; }
}

.section-padding {
    padding: 80px 0;
}

@media (min-width: 1024px) {
    .section-padding { padding: 120px 0; }
}

.grid {
    display: grid;
    gap: 24px;
}

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

.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* 4. GLASSMORPHISM & UI ELEMENTS */
.glass {
    background: linear-gradient(140deg, rgba(28, 163, 199, 0.08) 0%, rgba(15, 92, 122, 0.04) 50%, rgba(10, 31, 60, 0.5) 100%);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(28, 163, 199, 0.18);
    border-radius: var(--border-radius);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(28, 163, 199, 0.3);
    transform: translateY(-5px);
}

/* 5. BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    text-decoration: none;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #0F5C7A 0%, #1CA3C7 100%);
    color: white;
    box-shadow: 0 8px 25px -10px rgba(28, 163, 199, 0.5);
}

.btn-primary:hover {
    box-shadow: 0 12px 35px -8px rgba(28, 163, 199, 0.7);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(28, 163, 199, 0.3);
    color: white;
}

.btn-outline:hover {
    background: rgba(28, 163, 199, 0.1);
    border-color: var(--shivora-teal-2);
}

/* 6. NAVBAR */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.nav-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

header.nav-scrolled {
    background: rgba(255, 255, 255, 0.98);
    height: 70px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

header.nav-scrolled .nav-link {
    color: var(--shivora-bg-deep);
}

header.nav-scrolled .logo-text {
    color: var(--shivora-bg-deep);
}

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

.nav-link {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: white;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--shivora-teal-2);
    transition: var(--transition-smooth);
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    transition: var(--transition-smooth);
}

header.nav-scrolled .mobile-menu-toggle {
    color: var(--shivora-bg-deep);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--shivora-bg-deep);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}

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

.menu-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

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

.mobile-nav-link {
    font-family: 'Sora', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

/* Delay staggered entrance */
.mobile-nav-link:nth-child(1) { transition-delay: 0.3s; }
.mobile-nav-link:nth-child(2) { transition-delay: 0.4s; }
.mobile-nav-link:nth-child(3) { transition-delay: 0.5s; }
.mobile-nav-link:nth-child(4) { transition-delay: 0.6s; }
.mobile-nav-link:nth-child(5) { transition-delay: 0.7s; }

/* 7. HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(28, 163, 199, 0.15) 0%, transparent 70%);
}

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

.hero-title {
    font-size: clamp(40px, 8vw, 80px);
    margin-bottom: 24px;
    line-height: 1.05;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--shivora-text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

/* 8. GRAIN OVERLAY */
.grain::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns=%27http://www.w3.org/2000/svg%27 width=%27160%27 height=%27160%27><filter id=%27n%27><feTurbulence type=%27fractalNoise%27 baseFrequency=%270.85%27 numOctaves=%272%27 stitchTiles=%27stitch%27/><feColorMatrix values=%270 0 0 0 0.7  0 0 0 0 0.85  0 0 0 0 1  0 0 0 0.06 0%27/></filter><rect width=%27100%25%27 height=%27100%25%27 filter=%27url%28%23n%29%27/></svg>");
    opacity: 0.05;
    mix-blend-mode: overlay;
    z-index: 9999;
}

/* 9. RESPONSIVE FIXES */
@media (max-width: 1024px) {
    .nav-links, .hidden-mobile { display: none; }
    .mobile-menu-toggle { display: block; }
    .hero { text-align: center; }
    .hero-content { margin: 0 auto; }
}

@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    .hero-title { font-size: 44px; }
    .hero-subtitle { font-size: 16px; margin-bottom: 30px; }
    .grid { gap: 16px; }
}

@media (max-width: 480px) {
    .container { padding: 0 20px; }
    .hero-title { font-size: 36px; }
    .btn { width: 100%; }
}

@media (min-width: 1920px) {
    :root { --container-max-width: 1600px; }
}

/* 10. ANIMATION HELPERS */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
}

.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
    transition: width 0.3s, height 0.3s;
}

.cursor-dot { width: 6px; height: 6px; background: var(--shivora-teal-2); }
.cursor-outline { width: 30px; height: 30px; border: 1px solid rgba(28, 163, 199, 0.4); }

@media (max-width: 1024px) {
    .cursor-dot, .cursor-outline { display: none; }
}
