/* ==========================================================================
   CSS Configuration for OneViannay: Photo Gallery (Light Mode & Rainbow)
   ========================================================================== */

:root {
  /* Backgrounds updated to shades of white/light gray */
  --bg-color: #fafafa;
  --bg-secondary: #ffffff;

  /* Text colors adjusted for contrast on light backgrounds */
  --text-color: #1a1a1a;
  --text-muted: #555555;

  /* UI Elements */
  --card-bg: rgba(255, 255, 255, 0.8);
  --card-border: rgba(0, 0, 0, 0.08);
  --shadow-color: rgba(0, 0, 0, 0.1);

  /* Rainbow Gradient matching app icon vibes */
  --brand-gradient: linear-gradient(
    135deg,
    #ff3b30 0%,
    #ff9500 20%,
    #ffcc00 40%,
    #4cd964 60%,
    #5ac8fa 80%,
    #9933ff 100%
  );

  /* Layout Constants */
  --header-height: 70px;
}

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

html {
  scroll-behavior: smooth;
}

/* Scroll Offset Fix */
section {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  overflow-x: hidden;
  /* Dotted pattern adjusted for light mode */
  background-image: radial-gradient(#d5d5d5 1px, transparent 1px);
  background-size: 40px 40px;
}

/* --- AMBIENT LIGHTING --- */
.ambient-light {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  animation: floatOrb 10s infinite alternate ease-in-out;
}
.orb-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: #5ac8fa;
  animation-delay: 0s;
}
.orb-2 {
  bottom: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: #ff9500;
  animation-delay: -5s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.1;
  }
  100% {
    transform: translate(30px, 50px) scale(1.1);
    opacity: 0.2;
  }
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- RAINBOW GRADIENT TEXT --- */
.gradient-text {
  background: var(--brand-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 800;
}

/* --- HEADER & NAV --- */
header {
  padding: 10px 0;
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid var(--card-border);
  transition: top 0.3s;
  height: var(--header-height);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px var(--shadow-color);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-color);
  text-decoration: none;
}
.app-icon-header {
  width: 35px;
  height: 35px;
  border-radius: 8px;
  object-fit: cover;
  background: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
}
.nav-links a {
  margin-left: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: 0.3s;
  font-weight: 600;
}
.nav-links a:hover {
  color: var(--text-color);
}

/* Language Switcher */
.lang-select {
  margin-left: 20px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: var(--bg-secondary);
  color: var(--text-color);
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--text-color);
  cursor: pointer;
  z-index: 1002;
}

/* --- BUTTONS --- */
.btn-primary {
  background: var(--brand-gradient);
  color: white;
  padding: 14px 35px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 20px rgba(255, 59, 48, 0.2);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  border: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px rgba(255, 59, 48, 0.4);
  color: white;
}

/* --- HERO SECTION --- */
.hero {
  padding: calc(100px + var(--header-height)) 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text-color);
}
.hero p {
  max-width: 600px;
  margin: 0 auto 40px;
  color: var(--text-muted);
  font-size: 1.1rem;
}
.download-container {
  margin-bottom: 20px;
}

/* --- CAROUSEL --- */
.carousel-section {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 80px auto 0;
  perspective: 1200px;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-container {
  position: relative;
  width: 300px;
  height: 100%;
  transform-style: preserve-3d;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  border-radius: 20px;
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 15px 40px var(--shadow-color);
  border: 1px solid var(--card-border);
  background: var(--bg-secondary);
  opacity: 0;
  z-index: 0;
  transform: scale(0.6) translateY(20px);
}

.carousel-item.active {
  opacity: 1;
  transform: scale(1.1) translateZ(100px);
  z-index: 10;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.carousel-item.prev {
  opacity: 0.6;
  transform: translateX(-280px) scale(0.85) rotateY(25deg);
  z-index: 5;
}
.carousel-item.next {
  opacity: 0.6;
  transform: translateX(280px) scale(0.85) rotateY(-25deg);
  z-index: 5;
}
.carousel-item.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateZ(-200px);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  width: 120%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 20;
  pointer-events: none;
  left: -10%;
}
.nav-btn {
  pointer-events: auto;
  background: var(--bg-secondary);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  color: var(--text-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px var(--shadow-color);
}
.nav-btn:hover {
  background: var(--brand-gradient);
  color: white;
  transform: scale(1.1);
  border-color: transparent;
}

/* --- THOR AI & FEATURES --- */
.thor-interface-section {
  margin: 100px 0;
  position: relative;
}
.thor-container {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 40px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  box-shadow: 0 20px 50px var(--shadow-color);
}

.thor-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(90, 200, 250, 0.1) 0%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

.thor-text-content {
  z-index: 2;
  position: relative;
}
.ai-badge {
  background: var(--text-color);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 1px;
}
.thor-description {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-top: 15px;
  margin-bottom: 20px;
}

.thor-specs-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}
.thor-specs-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 600;
}
.thor-specs-list i {
  min-width: 30px;
  text-align: center;
  margin-right: 10px;
  font-size: 1.2rem;
}

.thor-visual-content {
  position: relative;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  transform-style: preserve-3d;
}
.robo-3d {
  width: 320px;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.1));
  animation: floatRobot 6s ease-in-out infinite;
  z-index: 10;
  position: relative;
}

.holo-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  padding: 12px 20px;
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 10px 25px var(--shadow-color);
  animation: floatCard 5s ease-in-out infinite alternate;
  min-width: 150px;
  z-index: 5;
  text-align: left;
}
.holo-card h4 {
  color: var(--text-color);
  margin-bottom: 5px;
  font-family: "Orbitron", sans-serif;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
}
.holo-card i {
  margin-right: 8px;
  color: #5ac8fa;
}

.holo-1 {
  top: 15%;
  right: -5%;
  animation-delay: 0s;
}
.holo-2 {
  bottom: 15%;
  left: -5%;
  animation-delay: 2.5s;
}
.holo-3 {
  top: 5%;
  left: 10%;
  animation-delay: 1.5s;
}

@keyframes floatRobot {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}
@keyframes floatCard {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-10px);
  }
}

/* --- FEATURES GRID --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}
.feature-card {
  background: var(--bg-secondary);
  padding: 35px;
  border-radius: 24px;
  transition: 0.3s;
  border: 1px solid var(--card-border);
  box-shadow: 0 5px 15px var(--shadow-color);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px var(--shadow-color);
  border-color: #ffcc00;
}
.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.feature-title {
  color: var(--text-color);
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 700;
}
.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* --- LEGAL SECTION --- */
.legal-section {
  padding: 80px 0;
  border-top: 1px solid var(--card-border);
}
.legal-content {
  background: var(--bg-secondary);
  padding: 60px;
  border-radius: 24px;
  border: 1px solid var(--card-border);
  box-shadow: 0 5px 20px var(--shadow-color);
}
.critical-alert {
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid #ff3b30;
  padding: 20px;
  border-radius: 12px;
  color: #d32f2f;
  margin: 20px 0;
  font-weight: 600;
}
.legal-content h2 {
  color: var(--text-color);
  margin-bottom: 20px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 20px;
}
.legal-content h3 {
  color: var(--text-color);
  margin-top: 30px;
  margin-bottom: 10px;
  border-left: 4px solid #5ac8fa;
  padding-left: 10px;
}
.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.legal-link {
  color: #007aff;
  text-decoration: none;
  font-weight: 600;
}
.legal-link:hover {
  text-decoration: underline;
}

/* --- FOOTER --- */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--card-border);
  padding: 40px 0;
  margin-top: 80px;
  width: 100%;
  text-align: center;
}
.footer-link-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  text-decoration: none;
  transition: transform 0.3s;
}
.footer-link-wrapper:hover {
  transform: scale(1.02);
}
.footer-text {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
}
.footer-company-logo {
  height: 35px;
  width: auto;
}

/* --- MOBILE OPTIMIZATION --- */
/* --- MOBILE OPTIMIZATION --- */
/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
  /* Hero Section (Text and Button) */
  .hero {
    padding-top: calc(40px + var(--header-height));
    padding-bottom: 20px;
  }
  .hero h1 {
    font-size: 2.2rem;
  }

  /* ADDED: Extra space below the download button on mobile */
  .download-container {
    margin-bottom: 50px;
  }

  /* Hamburger Menu Icon */
  .mobile-menu-btn {
    display: block;
    margin-left: auto;
    margin-right: 15px;
    font-size: 1.5rem;
    align-self: center;
    color: var(--text-color);
    cursor: pointer;
    z-index: 1002;
  }

  /* Navigation Links (Hidden by default on mobile) */
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px 0;
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 10px 20px var(--shadow-color);
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links a,
  .lang-select {
    margin: 15px auto;
    font-size: 1.1rem;
  }

  /* UPDATED: Increased margin-top to separate from the download button */
  .carousel-section {
    height: 450px;
    margin-top: 60px;
    perspective: 800px;
  }
  .carousel-container {
    width: 75%;
  }
  .carousel-nav {
    width: 110%;
    left: -5%;
  }

  /* Thor AI Section */
  .thor-container {
    grid-template-columns: 1fr;
    padding: 30px;
    text-align: center;
  }
  .thor-text-content {
    order: 2;
  }
  .thor-visual-content {
    height: 300px;
    order: 1;
    margin-bottom: 20px;
  }
  .thor-specs-list li {
    justify-content: center;
    text-align: left;
  }

  .holo-card {
    display: none;
  }
  .robo-3d {
    width: 220px;
  }

  /* Legal Text Mobile Optimizations */
  .legal-section {
    padding: 40px 0;
  }
  .legal-content {
    padding: 30px 20px;
    border-radius: 16px;
  }
  .legal-content h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    padding-bottom: 15px;
  }
  .legal-content h3 {
    font-size: 1.25rem;
    margin-top: 25px;
  }
  .legal-content p,
  .legal-content li {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
  }
  .critical-alert {
    padding: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
    border-radius: 10px;
  }
  ul {
    padding-left: 20px;
  }
}
