/* CSS Design System - WhiteKoi Group (Rimas Inspired) */

:root {
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Color Palette (Rimas: Pure High Contrast Dark) */
  --bg-dark: #000000;
  --bg-section: #080808;
  --accent-glow: linear-gradient(135deg, #00f3ff, #8000ff, #ff007f);
  --accent-cyan: #00f3ff;
  
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #4a4a4a;
  
  --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background: var(--bg-dark);
}

/* Canvas Background (WWDC Glow) */
#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Section Header (Rimas style) */
.section-header {
  margin-bottom: 60px;
  border-left: 4px solid #ffffff;
  padding-left: 20px;
}

.section-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -0.05em;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 14px;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 500px;
}

/* Utilities */
.section-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 120px 24px;
  position: relative;
  z-index: 2;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: 0; /* Rimas: Sharp edges */
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
}

.btn-primary:hover {
  background: transparent;
  color: #ffffff;
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.gradient-text {
  background: var(--accent-glow);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
}

@keyframes shine {
  to { background-position: 200% center; }
}

/* Header & Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 100;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-container {
  max-width: 1300px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-link {
  height: 68px;
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 100%;
  width: auto;
  object-fit: contain; /* Prevent deformation */
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: #ffffff;
}

.btn-navbar {
  padding: 10px 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
}

.btn-navbar:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* Mobile toggle button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.mobile-menu-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  transition: var(--transition-smooth);
}

/* Hero Section */
.hero-section {
  height: 100vh;
  min-height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.hero-glow-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(128, 0, 255, 0.1) 0%, rgba(0, 243, 255, 0.03) 50%, transparent 100%);
  filter: blur(80px);
  pointer-events: none;
}

.hero-content-wrapper {
  max-width: 950px;
  position: relative;
  z-index: 3;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.25em;
  padding: 8px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 28px;
  color: #ffffff;
}

.hero-title {
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 900;
  margin-bottom: 28px;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  margin-bottom: 48px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Scroll Mouse indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  z-index: 3;
}

.mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.wheel {
  width: 4px;
  height: 6px;
  background-color: #ffffff;
  border-radius: 2px;
  animation: scrollAnim 1.6s infinite ease;
}

@keyframes scrollAnim {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

/* Segments Section (Rimas Roster Style) */
.segments-section {
  background: var(--bg-dark);
}

.segments-grid {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 0 24px 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 1300px) {
  .segments-grid {
    padding: 0 calc((100vw - 1252px) / 2) 24px;
  }
}

/* Custom scrollbar for horizontal slider */
.segments-grid::-webkit-scrollbar {
  height: 4px;
}

.segments-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

.segments-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  transition: var(--transition-smooth);
}

.segments-grid::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

.segment-card {
  position: relative;
  flex: 0 0 380px; /* Fixed width for sliding cards */
  height: 540px; /* Tall aesthetic rectangular card */
  overflow: hidden;
  background-image: var(--bg-img);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  background-color: #111111;
  scroll-snap-align: start;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.9) 100%);
  z-index: 1;
  transition: var(--transition-smooth);
}

.card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card-category {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: var(--transition-smooth);
}

.segment-title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #ffffff;
  transition: var(--transition-smooth);
}

/* Hover effects for Rimas Roster style */
.segment-card:hover .card-overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.0) 0%, rgba(0, 0, 0, 0.95) 100%);
}

.segment-card:hover .segment-title {
  transform: translateY(-5px);
  color: var(--accent-cyan);
}

.segment-card:hover .card-category {
  color: #ffffff;
}

/* Metrics Section (Rimas Raw layout) */
.metrics-section {
  background: var(--bg-section);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.metrics-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-start;
}

.cities-list-wrapper {
  margin-top: 50px;
}

.cities-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.cities-grid-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cities-grid-layout span {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.cities-grid-layout span:hover {
  color: #ffffff;
  border-color: #ffffff;
}

.metrics-right {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.metric-row {
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  padding-left: 32px;
  transition: var(--transition-smooth);
}

.metric-row:hover {
  border-color: #ffffff;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 72px;
  font-weight: 900;
  letter-spacing: -0.05em;
  display: block;
  line-height: 1;
}

.metric-tag {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 8px;
  display: block;
}

/* Contact Section (Rimas Underlined Style) */
.contact-section {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-wrapper-rimas {
  max-width: 900px;
  margin: 0 auto;
}

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

.contact-header-rimas .section-title {
  margin-bottom: 12px;
}

/* Sleek Rimas Form */
.rimas-form {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.form-row-rimas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.form-group-rimas {
  position: relative;
  width: 100%;
}

.rimas-form input,
.rimas-form select,
.rimas-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
  outline: none;
  border-radius: 0;
  transition: var(--transition-smooth);
}

.rimas-form input::placeholder,
.rimas-form textarea::placeholder {
  color: var(--text-muted);
  text-transform: uppercase;
}

.rimas-form input:focus,
.rimas-form select:focus,
.rimas-form textarea:focus {
  border-color: #ffffff;
}

/* Select element customization */
.rimas-form select {
  cursor: pointer;
  color: var(--text-muted);
  text-transform: uppercase;
}

.rimas-form select:focus,
.rimas-form select:valid {
  color: #ffffff;
}

.rimas-form select option {
  background: #000000;
  color: #ffffff;
}

.form-submit-rimas {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}

.btn-rimas {
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.btn-rimas:hover {
  color: var(--accent-cyan);
  transform: translateX(5px);
}

/* Footer (Sharp, Rimas-like) */
.footer {
  background: var(--bg-dark);
  padding: 100px 24px 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 80px;
}

.footer-brand {
  max-width: 400px;
}

.footer-logo {
  height: 68px;
  margin-bottom: 24px;
  object-fit: contain;
}

.footer-brand p {
  font-size: 14px;
}

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col h5 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition-smooth);
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-col span {
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 40px;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Responsive Overrides */
@media (max-width: 1100px) {
  .segment-card {
    flex: 0 0 320px;
    height: 480px;
  }
}

@media (max-width: 992px) {
  .metrics-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

@media (max-width: 768px) {
  .segment-card {
    flex: 0 0 280px;
    height: 400px;
  }
  
  .form-row-rimas {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .nav-menu {
    position: fixed;
    top: 100px;
    left: 100%;
    width: 100%;
    height: calc(100vh - 100px);
    background: rgba(0, 0, 0, 0.98);
    flex-direction: column;
    padding: 80px 24px;
    gap: 48px;
    transition: var(--transition-smooth);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  .footer-container {
    flex-direction: column;
    gap: 50px;
  }
  
  .footer-links {
    width: 100%;
    justify-content: space-between;
    gap: 40px;
  }
}

/* Scroll Animation utilities */
.animate-fade-in {
  opacity: 0;
  animation: fadeIn 1.2s forwards ease-out;
}

.animate-fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1.4s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

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