/* 
==============================================
MAIN STYLES - crush-ai.site
==============================================
*/

/* Base Styles and Reset */
:root {
  --primary: #ff3d7f;
  --primary-light: #ff9e7f;
  --secondary: #7c4dff;
  --secondary-light: #448aff;
  --dark: #0a0a16;
  --dark-light: #1a1a2e;
  --text: #ffffff;
  --text-light: #b8c1ec;
  --card-bg: rgba(26, 26, 46, 0.8);
  --card-hover: rgba(35, 35, 60, 0.9);
  --shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  --border-radius: 12px;
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --header-height: 70px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--dark);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--text);
}

h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary);
}

.accent {
  color: var(--primary);
  position: relative;
}

/* Background Animation */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
}

.circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.circles div {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  opacity: 0.05;
  animation: float 20s infinite linear;
}

.circles div:nth-child(1) {
  width: 300px;
  height: 300px;
  top: 10%;
  left: -100px;
  animation-delay: 0s;
  animation-duration: 25s;
}

.circles div:nth-child(2) {
  width: 400px;
  height: 400px;
  bottom: -150px;
  right: -100px;
  opacity: 0.03;
  animation-delay: 2s;
  animation-duration: 30s;
}

.circles div:nth-child(3) {
  width: 200px;
  height: 200px;
  bottom: 30%;
  left: 10%;
  opacity: 0.04;
  animation-delay: 4s;
  animation-duration: 22s;
}

.circles div:nth-child(4) {
  width: 150px;
  height: 150px;
  top: 40%;
  right: 10%;
  opacity: 0.06;
  animation-delay: 6s;
  animation-duration: 18s;
}

.circles div:nth-child(5) {
  width: 250px;
  height: 250px;
  top: 60%;
  left: 35%;
  opacity: 0.03;
  animation-delay: 8s;
  animation-duration: 35s;
}

@keyframes float {
  0% {
    transform: rotate(0deg) translate(0, 0) scale(1);
  }
  25% {
    transform: rotate(90deg) translate(50px, 30px) scale(1.05);
  }
  50% {
    transform: rotate(180deg) translate(0, 50px) scale(1.1);
  }
  75% {
    transform: rotate(270deg) translate(-30px, 20px) scale(1.05);
  }
  100% {
    transform: rotate(360deg) translate(0, 0) scale(1);
  }
}

/* Header Styles */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  height: var(--header-height);
  background-color: rgba(10, 10, 22, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(124, 77, 255, 0.1);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-svg {
  height: 40px;
  width: auto;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
  padding: 5px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  transition: var(--transition);
}

nav ul li a:hover {
  color: var(--primary-light);
}

nav ul li a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
}

.menu-toggle span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--primary);
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: var(--transition);
}

.menu-toggle span:nth-child(1) {
  top: 0;
}

.menu-toggle span:nth-child(2) {
  top: 10px;
}

.menu-toggle span:nth-child(3) {
  top: 20px;
}

.menu-toggle.active span:nth-child(1) {
  top: 10px;
  transform: rotate(135deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  left: -30px;
}

.menu-toggle.active span:nth-child(3) {
  top: 10px;
  transform: rotate(-135deg);
}

/* Main Sections */
section {
  padding: 100px 0;
  position: relative;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-content h1 {
  text-shadow: 0 2px 10px rgba(255, 61, 127, 0.3);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 5px 15px rgba(255, 61, 127, 0.3);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 61, 127, 0.4);
  color: white;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.cta-button:hover::before {
  opacity: 1;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.anime-character {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(255, 61, 127, 0.3));
  animation: float-character 6s ease-in-out infinite;
}

@keyframes float-character {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Features Section */
#features {
  background-color: rgba(10, 10, 22, 0.7);
  border-top: 1px solid rgba(124, 77, 255, 0.1);
  border-bottom: 1px solid rgba(124, 77, 255, 0.1);
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.feature-card {
  background-color: var(--card-bg);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border: 1px solid rgba(255, 61, 127, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  background-color: var(--card-hover);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  margin: 0 auto 20px;
  display: flex;
  justify-content: center;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--primary-light);
}

.feature-card p {
  font-size: 1rem;
  color: var(--text-light);
}

/* Gallery Section */
.gallery {
  padding: 100px 0 80px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 50px 0;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.gallery-item svg {
  display: block;
  width: 100%;
  height: auto;
  background: linear-gradient(to bottom, rgba(26, 26, 46, 0.8), rgba(10, 10, 22, 0.9));
  transition: var(--transition);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(10, 10, 22, 0.9) 0%, rgba(10, 10, 22, 0) 100%);
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
  opacity: 1;
}

.gallery-item:hover svg {
  transform: scale(1.05);
}

.gallery-overlay h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--primary-light);
}

.gallery-overlay p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

.gallery-cta {
  text-align: center;
  margin-top: 40px;
}

.gallery-cta p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

/* Testimonials Section */
.testimonials {
  background-color: rgba(10, 10, 22, 0.7);
  border-top: 1px solid rgba(124, 77, 255, 0.1);
  border-bottom: 1px solid rgba(124, 77, 255, 0.1);
  padding: 80px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.testimonial-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 61, 127, 0.1);
  position: relative;
}

.testimonial-stars {
  display: flex;
  margin-bottom: 15px;
}

.testimonial-stars svg {
  margin-right: 5px;
}

.testimonial-card p {
  font-style: italic;
  color: var(--text-light);
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary-light) !important;
  margin-top: 15px;
  text-align: right;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.1) 0%, rgba(255, 61, 127, 0.1) 100%);
}

.cta-section h2 {
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 40px;
  color: var(--text-light);
}

.cta-large {
  font-size: 1.1rem;
  padding: 18px 40px;
  min-width: 250px;
}

/* Footer */
footer {
  background-color: var(--dark);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(124, 77, 255, 0.1);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  margin-bottom: 30px;
}

.footer-svg {
  height: 30px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-links a {
  color: var(--text-light);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

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

.footer-legal {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
    margin-bottom: 50px;
  }
  
  .features-grid,
  .testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  section {
    padding: 60px 0;
  }
  
  nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    background-color: rgba(10, 10, 22, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    z-index: 999;
  }
  
  nav.active {
    height: auto;
    padding: 20px 0;
    border-bottom: 1px solid rgba(124, 77, 255, 0.1);
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  nav ul li {
    margin: 15px 0;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}
