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

:root {
  /* Core Colors - True Premium Dark Mode */
  --bg-base: #050507; /* Deepest black */
  --bg-surface: #0a0a0d; /* Slightly lighter for cards */
  --bg-glass: rgba(10, 10, 15, 0.4); /* Pure premium glass */
  --bg-glass-heavy: rgba(5, 5, 7, 0.85); /* Menu background */
  
  /* Text */
  --text-pure: #ffffff;
  --text-primary: #e0e0e0;
  --text-secondary: #909095;
  
  /* Accents - Used sparingly, not as borders everywhere */
  --accent-cyan: #00f0ff;
  --accent-blue: #0033ff;
  
  /* Typography - EXCLUSIVELY POPPINS */
  --font-primary: 'Poppins', sans-serif;
  
  /* Transitions */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
  --trans-fast: 0.3s var(--ease-out-expo);
  --trans-slow: 0.8s var(--ease-out-expo);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-base);
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition-delay: 0s;
  cursor: none; /* Global custom cursor */
}

/* Custom Cursor Elements */
.custom-cursor-dot,
.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

.custom-cursor-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-cyan);
  transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), background-color 0.3s;
}

.custom-cursor-ring {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 240, 255, 0.4);
  /* The position follows JS instantly, but size animates smoothly */
  transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), border-color 0.3s, background-color 0.3s;
}

/* Cursor Hover States */
.custom-cursor-dot.hovered {
  width: 0;
  height: 0;
}

.custom-cursor-ring.hovered {
  width: 60px;
  height: 60px;
  background-color: rgba(0, 240, 255, 0.05);
  border-color: var(--accent-cyan);
}

/* Interactive Elements default cursor reset */
a, button, input, textarea, select, .chip-btn {
  cursor: none !important;
}

/* Magnetic Element Transition */
.magnetic {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Typewriter Animation */
.typewriter {
  position: relative;
}
.typewriter.is-typing::after {
  content: '|';
  animation: blink 0.7s infinite;
  color: var(--accent-cyan);
  margin-left: 4px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* =========================================
   TYPOGRAPHY
========================================= */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-pure);
  margin-bottom: 1rem;
}

p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 1.5rem;
  max-width: 600px;
}

/* =========================================
   SCROLL EFFECTS & PARALLAX CLASSES
========================================= */

/* Native Scroll Reveal via Observer in JS */
.scroll-reveal {
  opacity: 0;
  transform: translateY(80px) rotateX(20deg);
  transition: opacity 1.2s cubic-bezier(0.19, 1, 0.22, 1), transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
  transform-style: preserve-3d;
}

.scroll-reveal.in-view {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}

.scroll-scale {
  opacity: 0;
  filter: blur(25px);
  transform: scale(0.85) translateY(120px) rotateY(-15deg);
  transition: opacity 1.8s cubic-bezier(0.19, 1, 0.22, 1), filter 1.8s cubic-bezier(0.19, 1, 0.22, 1), transform 1.8s cubic-bezier(0.19, 1, 0.22, 1);
  transform-style: preserve-3d;
}

.scroll-scale.in-view {
  opacity: 1;
  filter: blur(0);
  transform: scale(1) translateY(0) rotateY(0deg);
}

/* =========================================
   PREMIUM NAVIGATION
========================================= */

.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: padding var(--trans-fast), background var(--trans-fast), backdrop-filter var(--trans-fast);
}

.main-nav.scrolled {
  padding: 15px 6vw;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.nav-brand img {
  height: 80px; /* Responsive logo sizing */
  width: auto;
  transition: height var(--trans-fast);
}

@media (min-width: 1024px) {
  .nav-brand img {
    height: 130px; /* Reduced slightly to prevent overlap */
  }
  .main-nav.scrolled .nav-brand img {
    height: 90px; /* Shrinks smoothly on scroll */
  }
}

/* Custom Hamburger */
.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  z-index: 1001; /* Above curtain menu */
}

.menu-btn span {
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--text-pure);
  transition: transform 0.4s var(--ease-out-expo), width 0.4s var(--ease-out-expo), background-color 0.4s;
  transform-origin: right center;
}

.menu-btn span:nth-child(2) {
  width: 25px; /* Asymmetrical lines for futuristic feel */
}

.menu-btn:hover span:nth-child(2) {
  width: 40px;
}

.menu-btn.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
  width: 30px;
}

.menu-btn.active span:nth-child(2) {
  transform: rotate(45deg) translate(-5px, -6px);
  width: 30px;
}

/* =========================================
   FULL-SCREEN MENU (The true premium feel)
========================================= */

.fullscreen-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  z-index: 999;
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-out-expo);
}

.fullscreen-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.menu-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20vh 6vw 10vh; /* Increased top padding so huge links don't hit logo */
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

@media (min-width: 1024px) {
  .menu-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 1.5vh;
}

.menu-link {
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  line-height: 1;
  letter-spacing: -0.02em;
  transition: color var(--trans-fast), transform var(--trans-fast);
  transform: translateY(50px);
  opacity: 0;
}

.fullscreen-menu.open .menu-link {
  transform: translateY(0);
  opacity: 1;
}

/* Staggered reveal */
.fullscreen-menu.open .menu-link:nth-child(1) { transition: all 0.8s var(--ease-out-expo) 0.1s; }
.fullscreen-menu.open .menu-link:nth-child(2) { transition: all 0.8s var(--ease-out-expo) 0.15s; }
.fullscreen-menu.open .menu-link:nth-child(3) { transition: all 0.8s var(--ease-out-expo) 0.2s; }
.fullscreen-menu.open .menu-link:nth-child(4) { transition: all 0.8s var(--ease-out-expo) 0.25s; }
.fullscreen-menu.open .menu-link:nth-child(5) { transition: all 0.8s var(--ease-out-expo) 0.3s; }

.menu-link:hover {
  color: var(--text-pure);
  transform: translateX(20px) !important;
}

.menu-contact {
  margin-top: 10vh;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-out-expo);
}

.fullscreen-menu.open .menu-contact {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

@media (min-width: 1024px) {
  .menu-contact {
    margin-top: 0;
    text-align: right;
  }
}

.menu-contact p {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.menu-contact a {
  display: block;
  font-size: 1.5rem;
  color: var(--text-pure);
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.menu-contact a:hover {
  color: var(--accent-cyan);
}

/* =========================================
   COMPACT FOOTER
========================================= */

.site-footer {
  background: var(--bg-base);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 40px 6vw;
  position: relative;
  overflow: hidden;
}

.footer-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

@media (min-width: 768px) {
  .footer-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-logo img {
  height: 180px; /* Increased footer logo size to 180px */
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--trans-fast);
}

.footer-links a:hover {
  color: var(--text-pure);
}

.footer-copy {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Watermark */
.footer-watermark {
  position: absolute;
  bottom: -2vw;
  left: 50%;
  transform: translateX(-50%);
  font-size: 15vw;
  font-weight: 800;
  color: rgba(255,255,255,0.02);
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}

/* =========================================
   SCROLLBAR
========================================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }

/* Buttons */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-pure);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px; /* Pill shape for futuristic premium feel */
  transition: all 0.4s var(--ease-out-expo);
  background: transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out-expo);
  border-radius: 100px;
}

.btn-outline:hover {
  color: var(--text-pure);
  border-color: transparent;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 240, 255, 0.2);
}

.btn-outline:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-outline:active {
  transform: translateY(1px) scale(0.98);
}

/* =========================================
   PARALLAX BACKGROUND ICONS
========================================= */
.parallax-bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.parallax-icon {
  position: absolute;
  color: rgba(255, 255, 255, 0.1);
  font-size: 8rem;
  filter: blur(1px);
  transition: transform 0.1s ease;
}

.bg-pos-1 { top: 20%; left: 10%; }
.bg-pos-2 { top: 60%; left: 80%; font-size: 14rem; color: rgba(0, 240, 255, 0.15); filter: blur(3px); }
.bg-pos-3 { top: 80%; left: 30%; font-size: 6rem; }
.bg-pos-4 { top: 10%; left: 70%; font-size: 10rem; }
.bg-pos-5 { top: 40%; left: 40%; font-size: 20rem; color: rgba(0, 51, 255, 0.1); filter: blur(8px); }
