/* Modern Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Variables */
:root {
  --primary-color: #9C27B0;
  --secondary-color: #FF4081;
  --accent-color: #00BCD4;
  --dark-color: #212121;
  --light-color: #F5F5F5;
  --text-color: #333333;
  --body-bg: #FAFAFA;
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --radius: 10px;
  --container-width: 1200px;
  --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-secondary: 'Poppins', sans-serif;
}

/* Base Styles */
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

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

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

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--dark-color);
  font-family: var(--font-secondary);
}

h1 {
  font-size: 4.2rem;
}

h2 {
  font-size: 3.6rem;
}

h3 {
  font-size: 2.8rem;
}

p {
  margin-bottom: 1.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 5rem;
  position: relative;
  padding-bottom: 1.5rem;
  display: inline-block;
}

.section-title::before {
  content: '';
  position: absolute;
  width: 60%;
  height: 3px;
  background: var(--primary-color);
  bottom: 0;
  left: 20%;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 30%;
  height: 3px;
  background: var(--secondary-color);
  bottom: -7px;
  left: 35%;
}

.section-title span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  color: transparent;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

/* Header */
header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  padding: 2rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

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

.site-logo {
  display: block;
}

.logo h1 {
  font-size: 2.4rem;
  margin: 0;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  color: transparent;
}

.logo span {
  font-style: italic;
}

nav ul {
  display: flex;
  gap: 3rem;
}

nav a {
  color: var(--dark-color);
  font-weight: 600;
  font-size: 1.6rem;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
}

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

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 2.5rem;
  height: 0.3rem;
  margin: 0.5rem;
  background-color: var(--primary-color);
  transition: var(--transition);
  border-radius: 0.3rem;
}

/* Hero Section */
.hero {
  padding: 18rem 0 12rem;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
  color: white;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -5rem;
  left: 0;
  width: 100%;
  height: 10rem;
  background-color: var(--body-bg);
  transform: skewY(-3deg);
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 60%;
}

.hero-content h2 {
  font-size: 5rem;
  margin-bottom: 2rem;
  color: white;
  line-height: 1.1;
}

.hero-content h2 span {
  position: relative;
  display: inline-block;
}

.hero-content h2 span::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 0.8rem;
  background-color: rgba(255, 255, 255, 0.3);
  bottom: 0.5rem;
  left: 0;
  z-index: -1;
}

.hero-content p {
  font-size: 1.8rem;
  margin-bottom: 3rem;
  max-width: 80%;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  position: relative;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  background-color: #fff;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.6rem;
  padding: 1.5rem 3.5rem;
  border-radius: 10rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: var(--transition);
  z-index: -1;
}

.cta-button:hover {
  color: white;
}

.cta-button:hover::before {
  left: 0;
}

/* Features Section */
.features {
  padding: 10rem 0;
  position: relative;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
}

.feature-card {
  background-color: white;
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.5rem;
  background: var(--gradient-primary);
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  margin-bottom: 2rem;
}

.feature-card h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.feature-card p {
  color: #666;
  font-size: 1.6rem;
}

/* Benefits Section */
.benefits {
  padding: 10rem 0;
  background-color: #f1f1f1;
  position: relative;
}

.benefits::before,
.benefits::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 7rem;
  background-color: #f1f1f1;
}

.benefits::before {
  top: -3.5rem;
  transform: skewY(3deg);
}

.benefits::after {
  bottom: -3.5rem;
  transform: skewY(-3deg);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 4rem;
  position: relative;
  z-index: 2;
}

.benefit-item {
  background-color: white;
  border-radius: var(--radius);
  padding: 4rem 3rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.benefit-item:hover {
  transform: scale(1.03);
}

.benefit-icon {
  margin-bottom: 2rem;
}

.benefit-item h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.benefit-item p {
  color: #666;
  font-size: 1.6rem;
}

/* CTA Section */
.cta-section {
  padding: 12rem 0;
  position: relative;
  overflow: hidden;
  background: var(--gradient-primary);
  color: white;
  text-align: center;
  clip-path: polygon(0 10%, 100% 0, 100% 90%, 0% 100%);
}

.cta-section .section-title {
  color: white;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .section-title::before,
.cta-section .section-title::after {
  background: rgba(255, 255, 255, 0.5);
}

.cta-section p {
  max-width: 60rem;
  margin: 0 auto 4rem;
  font-size: 1.8rem;
}

.cta-section .cta-button {
  background: white;
  color: var(--primary-color);
}

.cta-section .cta-button:hover {
  color: white;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 8rem 0 2rem;
  position: relative;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 5rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo p {
  margin-top: 1rem;
  font-weight: 600;
  font-size: 2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  color: transparent;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-nav a {
  color: var(--light-color);
  opacity: 0.7;
  transition: var(--transition);
  font-size: 1.5rem;
}

.footer-nav a:hover {
  opacity: 1;
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.4rem;
  opacity: 0.7;
}

/* Media Queries */
@media (max-width: 1200px) {
  html {
    font-size: 60%;
  }
}

@media (max-width: 992px) {
  html {
    font-size: 58%;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content h2 span::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-visual {
    margin-top: 5rem;
    justify-content: center;
  }
  
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 56%;
  }
  
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-md);
  }
  
  nav ul.active {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4rem;
  }
  
  .footer-logo {
    align-items: center;
  }
  
  .footer-nav ul {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 54%;
  }
  
  .section-title {
    font-size: 3rem;
  }
  
  .hero-content h2 {
    font-size: 4rem;
  }
  
  .cta-section {
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0% 100%);
  }
}

/* Animation Effects */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--primary-color), var(--secondary-color));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}
