/* SATSIRONIX Official Website - Redesign Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Oxanium:wght@300;400;500;600;700;800&family=Russo+One&family=Fira+Code:wght@400;500&display=swap');

:root {
  /* Defaults to Cybernetic Space-Dark Theme */
  --bg: #030307;
  --fg: #d2e4ff;
  --panel: #0b0c16;
  --border: #1a2035;
  --accent: #00f0ff;
  
  --bg-rgb: 3, 3, 7;
  --fg-rgb: 210, 228, 255;
  --panel-rgb: 11, 12, 22;
  --border-rgb: 26, 32, 53;
  --accent-rgb: 0, 240, 255;
  
  --font-sans: 'Oxanium', system-ui, -apple-system, sans-serif;
  --font-display: 'Russo One', 'Orbitron', sans-serif;
  --font-mono: 'Orbitron', monospace;
}

/* Base resets & layouts */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--fg);
  transition: background-color 0.4s ease, color 0.4s ease;
  cursor: none; /* Hide default cursor for custom cursor experience */
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  background-color: transparent !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Smooth theme transitions for elements */
.theme-transition {
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

/* Custom Cursor Experience */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.3s;
}

.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease-out, height 0.3s ease-out, border-color 0.3s, background-color 0.3s;
}

/* Hover cursor states */
body.cursor-hover .custom-cursor-dot {
  width: 10px;
  height: 10px;
  background-color: #ffffff;
}

body.cursor-hover .custom-cursor-ring {
  width: 50px;
  height: 50px;
  border-color: rgba(var(--accent-rgb), 0.8);
  background-color: rgba(var(--accent-rgb), 0.05);
}

/* ────────── Theme-Specific Custom Cursors ────────── */

/* 1. Terminal Mode - Square green cursor */
.theme-cursor-terminal .custom-cursor-ring {
  border-radius: 0px;
  border: 2px solid var(--accent);
  width: 22px;
  height: 22px;
}
.theme-cursor-terminal .custom-cursor-dot {
  border-radius: 0px;
  width: 4px;
  height: 4px;
}

/* 2. Console Mode - Command Line Solid Caret */
.theme-cursor-paper .custom-cursor-ring {
  border-radius: 0px;
  border: none;
  background-color: var(--accent);
  width: 12px;
  height: 20px;
  opacity: 0.85;
}
.theme-cursor-paper .custom-cursor-dot {
  display: none;
}

/* 3. Cyberpunk Mode - Glowing Crosshair */
.theme-cursor-cyberpunk .custom-cursor-ring {
  border: 1px dashed var(--accent);
  box-shadow: 0 0 10px var(--accent), 0 0 10px #f43f5e;
  animation: cursorSpin 6s linear infinite;
}
@keyframes cursorSpin {
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 4. Retrowave Mode - Glowing Triangle */
.theme-cursor-retrowave .custom-cursor-ring {
  border: none;
  background: linear-gradient(135deg, var(--accent), #ff007f);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  width: 24px;
  height: 24px;
  opacity: 0.7;
}

/* 5. Forest Mode - Dashed matrix grid cursor */
.theme-cursor-forest .custom-cursor-ring {
  border: 1px dashed var(--accent);
  animation: cursorSpin 10s linear infinite;
}

/* 6. Ocean Mode - Expanding concentric circles ripple */
.theme-cursor-ocean .custom-cursor-ring {
  border: 2px solid var(--accent);
  box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.35);
}

/* 7. Organs Mode - Biotech red crosshair target */
.theme-cursor-organs .custom-cursor-ring {
  border: 1.5px solid var(--accent);
}
.theme-cursor-organs .custom-cursor-ring::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 2px; height: 12px;
  background-color: var(--accent);
}
.theme-cursor-organs .custom-cursor-ring::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 12px; height: 2px;
  background-color: var(--accent);
}

/* 8. Holographic Mode - Diamond cursor */
.theme-cursor-light .custom-cursor-ring {
  border: 1.5px solid var(--accent);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  width: 24px;
  height: 24px;
}

/* 9. Midnight Mode - Octagon cursor */
.theme-cursor-midnight .custom-cursor-ring {
  border: 1.5px solid var(--accent);
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  width: 26px;
  height: 26px;
}

/* 10. Ume Mode - Sakura 4-Point Star cursor */
.theme-cursor-ume .custom-cursor-ring {
  border: 1.5px solid var(--accent);
  clip-path: polygon(50% 0%, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0% 50%, 35% 35%);
  width: 28px;
  height: 28px;
}

/* 11. Copper Mode - Hexagon cursor */
.theme-cursor-copper .custom-cursor-ring {
  border: 1.5px solid var(--accent);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  width: 25px;
  height: 25px;
}

/* 12. Lavender Mode - Double ring cursor */
.theme-cursor-lavender .custom-cursor-ring {
  border: 1.5px double var(--accent);
  width: 28px;
  height: 28px;
}

/* 13. GPT Mode - Sleek Orbit Ring */
.theme-cursor-gpt .custom-cursor-ring {
  border: 1.5px solid var(--accent);
  width: 22px;
  height: 22px;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

/* 14. Claude Mode - Floating Clay Portal */
.theme-cursor-claude .custom-cursor-ring {
  border: 1px solid var(--accent);
  width: 30px;
  height: 30px;
  background-color: rgba(var(--accent-rgb), 0.08);
}

/* 15. Cute Mode - Glowing Synth Star */
.theme-cursor-cute .custom-cursor-ring {
  border: 1.5px solid var(--accent);
  clip-path: polygon(50% 0%, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0% 50%, 35% 35%);
  width: 28px;
  height: 28px;
  box-shadow: 0 0 10px var(--accent);
}

/* 16. Core Dark Mode - Glowing Nebula Ring */
.theme-cursor-dark .custom-cursor-ring {
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

/* Loading Overlay */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #020204;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}

.loader-logo {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #ffffff;
  margin-bottom: 20px;
  position: relative;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.loader-bar-bg {
  width: 260px;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #b140ff);
  transition: width 0.4s ease;
}

/* Glassmorphism Classes */
.glass-nav {
  background: rgba(var(--bg-rgb), 0.75);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(var(--border-rgb), 0.4);
}

.glass-panel {
  background: rgba(var(--panel-rgb), 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(var(--border-rgb), 0.5);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
}

.glass-panel:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 8px 32px 0 rgba(var(--accent-rgb), 0.1);
}

/* Three.js Background Canvas */
#three-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  opacity: 0.85;
}

#bg-canvas-2d {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 1;
  pointer-events: none;
}


/* Subtle Animated Grid Background Layer */
.cyber-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: 
    linear-gradient(rgba(var(--border-rgb), 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--border-rgb), 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  opacity: 0.6;
}

/* Mouse spotlight glow card reflection effect */
.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    400px circle at var(--mouse-x, 0) var(--mouse-y, 0),
    rgba(var(--accent-rgb), 0.08),
    transparent 40%
  );
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.spotlight-card:hover::before {
  opacity: 1;
}

/* Card 3D effects */
.tilt-card-container {
  perspective: 1200px;
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.1s ease, border-color 0.3s;
}

.tilt-card-inner {
  transform: translateZ(40px);
}

/* Glowing typography & outlines */
.neon-glow {
  filter: drop-shadow(0 0 15px rgba(var(--accent-rgb), 0.5));
}

.accent-text-glow {
  text-shadow: 0 0 15px rgba(var(--accent-rgb), 0.6);
}

.accent-border-glow {
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.15) inset, 0 0 20px rgba(var(--accent-rgb), 0.15);
}

/* Auto scroll carousel speed */
.carousel-track {
  display: flex;
  width: max-content;
  animation: scroll 35s linear infinite;
}

.carousel-track:hover {
  animation-play-state: paused;
}

/* Animated statistics grid lines */
.stat-border {
  position: relative;
}
.stat-border::after {
  content: '';
  position: absolute;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  height: 1px;
  width: 100%;
  bottom: 0;
  left: 0;
}

/* Checkmark styling for achievements */
.check-badge {
  color: var(--accent);
  margin-right: 8px;
  font-weight: bold;
}

/* Floating Animation elements */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.floating-element {
  animation: float 6s ease-in-out infinite;
}

/* Heading animation styles for GSAP */
.letter-reveal {
  display: inline-block;
}

/* Disable custom cursor on mobile screens */
@media (max-width: 768px) {
  html {
    cursor: auto;
  }
  .custom-cursor-dot, .custom-cursor-ring {
    display: none;
  }
}
