/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=Abhaya+Libre:wght@400;500;600;700&display=swap');

/* Color Variables extracted from Figma design */
:root {
  /* Primary Colors - Purple theme from design */
  --color-primary: #6750a4;
  --color-primary-light: #a366e0;
  --color-primary-dark: #4a3f7a;
  --color-accent: #c899f6;

  /* Background Colors - Dark theme */
  --color-bg-primary: #0d0b2e;
  --color-bg-secondary: rgba(103, 80, 164, 0.1);
  --color-bg-tertiary: #1a1635;

  /* Text Colors */
  --color-text-primary: #ffffff;
  --color-text-secondary: #d8cae6;
  --color-text-tertiary: #a78bfa;
  --color-text-accent: #c899f6;
  --feature-icon-color: #FFD700;

  /* Gradient Colors - From the design */
  --gradient-primary: linear-gradient(135deg, #6750a4 0%, #a366e0 100%);
  --gradient-hero: radial-gradient(ellipse at center, #6750a4 0%, #4a3f7a 50%, #0d0b2e 100%);
  --gradient-cosmic: radial-gradient(circle at 50% 50%, rgba(103, 80, 164, 0.3) 0%, rgba(13, 11, 46, 0.8) 70%, #0d0b2e 100%);
  --gradient-hero-text: linear-gradient(88.12deg, #FFFFFF 21.05%, #D0BCFF 48.74%, #FFD700 76.9%);


  /* Astrology Circle Colors - Golden/Yellow from design */
  --color-astro-text: rgba(255, 215, 0, 0.8);
  --color-astro-glow: rgba(255, 215, 0, 0.2);
  --color-astro-border: rgba(103, 80, 164, 0.3);

  /* Status Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;

  /* Border Colors */
  --color-border-light: rgba(216, 202, 230, 0.2);
  --color-border-medium: rgba(103, 80, 164, 0.3);
  --color-border-dark: #6750a4;

  /* Shadow Colors */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 20px 25px -5px rgba(63, 62, 62, 0.422), 0 10px 10px -5px rgba(0, 0, 0, 0.3);


  /* Typography */
  --font-display: 'Cormorant', serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Abhaya Libre', serif;
}

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

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  overflow-x: hidden;
}

/* Typography classes */
.font-display {
  font-family: var(--font-display);
}

.font-body {
  font-family: var(--font-body);
}

.font-accent {
  font-family: var(--font-accent);
}

/* Color classes */
.bg-dark-primary {
  background-color: var(--color-bg-primary);
}

.text-accent {
  color: var(--color-text-accent);
}

/* Header styles */
header {
  background: rgba(13, 11, 46, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-light);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: var(--color-bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../assets/hero-ellipse.webp');
  opacity: 0.8;
  background-size: contain;
  background-position: bottom;
  background-repeat: no-repeat;
}

.cosmic-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-cosmic);
  z-index: 1;
}

.hero-ellipse {
  position: absolute;
  opacity: 0.1;
  width: 100%;
  height: 100%;
  background: var(--gradient-hero-text);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-ellipse-content-bg {
  background: var(--gradient-hero-text);
  opacity: 0.5;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* Astrology Wheel */
.astrology-wheel {
  position: relative;
  z-index: 10;
}

.wheel-container {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto;
}

.cosmic-rings {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103, 80, 164, 0.1) 0%, transparent 70%);
  border: 1px solid var(--color-astro-border);
  animation: cosmic-pulse 4s ease-in-out infinite;
}

.cosmic-rings::before {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px solid rgba(103, 80, 164, 0.2);
}

.cosmic-rings::after {
  content: '';
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  border: 1px solid rgba(103, 80, 164, 0.1);
}

@keyframes cosmic-pulse {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(103, 80, 164, 0.3);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 40px rgba(103, 80, 164, 0.5);
    transform: scale(1.02);
  }
}

@keyframes rotate-wheel {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Hero Text */
.hero-text {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  z-index: 10;
  position: relative;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  line-height: 76px;
  margin-bottom: 40px;
  background: var(--gradient-hero-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-line {
  display: block;
}

.hero-description {
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--color-text-primary);
  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.5;
}

/* About Section */
.about-section {
  background: var(--color-bg-primary);
  position: relative;
}

.section-title {
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 500;
  line-height: 64px;
  color: var(--color-text-primary);
  margin-bottom: 24px;
}

.section-description {
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--color-text-primary);
  line-height: 1.5;
}

/* Feature Cards */
.feature-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-dark);
  border-radius: 36px;
  padding: 36px 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  margin: 0 auto 2rem;
  display: flex;
  justify-content: center;
  color: var(--feature-icon-color);
}

.icon-placeholder {
  width: 64px;
  height: 64px;
}

.ai-icon {
  background-image: url("../assets/icons/ai-icon.png");
}

.expert-icon {
    background-image: url("../assets/icons/expert-icon.png");
}

.horoscope-icon {
    background-image: url("../assets/icons/horoscope-icon.png");
}

.analysis-icon {
    background-image: url("../assets/icons/analysis-icon.png");
}

.feature-title {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 24px;
  line-height: 1.2;
}

.feature-description {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--color-border-dark);
  width: 100%;
  margin: 100px 0;
}

/* Journey Section */
.journey-title {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--color-text-accent);
  margin-bottom: 36px;
  line-height: 1.2;
}

.journey-points {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.journey-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.journey-star {
  color: #000;
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.journey-point p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-primary);
  line-height: 1.5;
}

.cosmic-image {
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(57.19% 56.42% at 45.11% 42.71%, rgba(13, 11, 46, 0) 0%, #0D0B2E 100%) /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */;
}

.cosmic-orb {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  position: relative;
  animation: cosmic-float 6s ease-in-out infinite;
  background: radial-gradient(circle, rgba(200, 153, 246, 0.3) 0%, rgba(103, 80, 164, 0.1) 50%, transparent 100%);
  overflow: hidden;
}

.cosmic-orb img {
    opacity: 0.4;
  }

.cosmic-orb::before {
  content: '';
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

@keyframes cosmic-float {

  0%,
  100% {
    transform: translateY(0px) scale(1);
  }

  50% {
    transform: translateY(-20px) scale(1.05);
  }
}

/* Product Section */
.product-section {
  background: var(--color-bg-primary);
  position: relative;
  overflow: hidden;
}

.cosmic-mask {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cosmic-ellipse {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.cosmic-ellipse img {
    opacity: 0.4;
    width: 100%;
    height: 100%;
}

.cosmic-decorations {
  position: absolute;
  inset: 0;
}

.cosmic-decoration {
  position: absolute;
  background: rgba(103, 80, 164, 0.1);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.decoration-1 {
  top: 20%;
  left: 10%;
  width: 100px;
  height: 100px;
  animation-delay: 0s;
}

.decoration-2 {
  top: 60%;
  right: 15%;
  width: 80px;
  height: 80px;
  animation-delay: 2s;
}

.decoration-3 {
  bottom: 30%;
  left: 20%;
  width: 60px;
  height: 60px;
  animation-delay: 4s;
}

.decoration-4 {
  top: 40%;
  right: 30%;
  width: 40px;
  height: 40px;
  animation-delay: 6s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  33% {
    transform: translateY(-20px) rotate(120deg);
  }

  66% {
    transform: translateY(10px) rotate(240deg);
  }
}

.product-description {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--color-text-primary);
  line-height: 1.5;
  max-width: 1200px;
  margin: 0 auto 48px;
}

/* Platform Badges */
.platform-badge {
  display: inline-block;
}

.platform-badge:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

/* Product Showcase - Flowbite Carousel */
.product-showcase {
  position: relative;
  z-index: 10;
}

/* Enhanced carousel styling for Star Sense theme */
#product-carousel {
  padding: 20px;
  backdrop-filter: blur(10px);
}

/* Custom carousel button styling */
#product-carousel button[data-carousel-prev] span,
#product-carousel button[data-carousel-next] span {
  background: rgba(103, 80, 164, 0.3);
  border: 1px solid rgba(200, 153, 246, 0.4);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

#product-carousel button[data-carousel-prev]:hover span,
#product-carousel button[data-carousel-next]:hover span {
  background: rgba(103, 80, 164, 0.5);
  border-color: rgba(200, 153, 246, 0.6);
  box-shadow: 0 0 20px rgba(200, 153, 246, 0.3);
}

/* Custom carousel indicators */
#product-carousel button[data-carousel-slide-to] {
  background: rgba(103, 80, 164, 0.4);
  border: 1px solid rgba(200, 153, 246, 0.3);
  transition: all 0.3s ease;
}

#product-carousel button[data-carousel-slide-to]:hover,
#product-carousel button[data-carousel-slide-to][aria-current="true"] {
  background: var(--color-accent);
  box-shadow: 0 0 10px rgba(200, 153, 246, 0.5);
  transform: scale(1.2);
}

/* Image styling within carousel */
#product-carousel img {
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

#product-carousel img:hover {
  transform: scale(1.02);
}

/* Features Section */
.features-title {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--color-text-accent);
  margin-bottom: 48px;
}

.features-column {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.feature-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.feature-content {
  flex: 1;
}

.feature-name {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}

.feature-desc {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Connect Section */
.connect-section {
  background: var(--color-bg-primary);
}

.contact-info {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 1.3rem;
  max-width: 436px;
  margin: 0 auto;
}

.contact-item {
  text-align: center;
}

.contact-label {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}

.contact-value {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-secondary);
}

/* Footer */
.footer-section {
  background: var(--color-bg-primary);
  position: relative;
}

.section-border {
    height: 1px;
    background: var(--color-border-light);
    width: 100%;
  }

.footer-border {
  height: 1px;
  background: var(--color-border-light);
  width: 100%;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-copyright {
  text-align: center;
  font-family: 'SF Pro', var(--font-body);
  font-size: 12px;
  color: var(--color-primary);
  line-height: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .wheel-container {
    width: 350px;
    height: 350px;
  }

  .hero-title {
    font-size: 48px;
    line-height: 56px;
  }

  #product-carousel {
    padding: 15px;
  }

  .contact-info {
    flex-direction: column;
    gap: 48px;
  }

  .hero-section {
    background-position: center;
  }
}

@media (max-width: 768px) {
  .wheel-container {
    width: 300px;
    height: 300px;
  }

  .zodiac-sign {
    font-size: 9px;
  }

  .hero-description {
    font-size: 18px;
  }

  .product-description {
    font-size: 16px;
  }

  .section-title {
    font-size: 42px;
    line-height: 48px;
  }

  #product-carousel {
    padding: 10px;
  }

  #product-carousel .relative.h-96 {
    height: 300px !important;
  }

  #product-carousel button[data-carousel-prev] span,
  #product-carousel button[data-carousel-next] span {
    width: 32px;
    height: 32px;
  }

  .features-column {
    gap: 24px;
  }

  .footer-links {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .journey-title {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .wheel-container {
    width: 250px;
    height: 250px;
  }

  .zodiac-sign {
    font-size: 8px;
  }

  .hero-description {
    font-size: 16px;
  }

  .feature-card {
    padding: 24px 16px;
  }

  .feature-title {
    font-size: 20px;
  }

  .journey-title {
    font-size: 36px;
  }

  .features-title {
    font-size: 36px;
  }
}
