/* Main CSS file for the website */

:root {
  /* Color Variables */
  --primary: #8C46FF;
  --primary-dark: #6A2BE2;
  --secondary: #FFC107;
  --text: #3C3F64;
  --light-text: #656A93;
  --bg-light: #F8F9FF;
  --bg-dark: #111132;
  --accent: #FF3366;
  --success: #00C896;
  
  /* Spacing Variables */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  
  /* Font Variables */
  --font-main: 'Montserrat', sans-serif;
  --font-heading: 'Poppins', sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 80px; /* For fixed header */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  line-height: 1.3;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: var(--spacing-sm) 0;
  transition: all 0.3s ease;
}

header.scrolled {
  padding: var(--spacing-xs) 0;
}

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

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--primary);
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--accent);
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: var(--spacing-md);
  position: relative;
}

.nav-links a {
  color: var(--text);
  font-weight: 600;
  padding: var(--spacing-xs) var(--spacing-sm);
  position: relative;
  transition: all 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

/* Language Toggle */
.lang-toggle {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-weight: 700;
  cursor: pointer;
  margin-left: var(--spacing-md);
  transition: all 0.3s ease;
}

.lang-toggle:hover {
  background-color: var(--primary-dark);
  transform: scale(1.05);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-toggle.open span:first-child {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:last-child {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.98);
  z-index: 999;
  padding-top: 100px;
  text-align: center;
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu li {
  margin-bottom: var(--spacing-md);
}

.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Hero Section */
.hero {
  background-image: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: rotate(20deg);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-sm);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0.9;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 50px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background-color: #FFD54F;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background-color: white;
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Section Styling */
section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary);
  margin: var(--spacing-sm) auto 0;
  border-radius: 2px;
}

/* Feature Cards */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.feature-card {
  background-color: white;
  border-radius: 10px;
  padding: var(--spacing-lg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 100px;
  height: 100px;
  background-color: rgba(140, 70, 255, 0.1);
  border-radius: 50%;
  z-index: -1;
  transition: all 0.6s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card:hover::before {
  transform: scale(6);
}

.feature-card h3 {
  color: var(--primary);
  margin-bottom: var(--spacing-sm);
}

/* About Section */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(140, 70, 255, 0.3), rgba(255, 193, 7, 0.3));
}

.about-content {
  padding: var(--spacing-md);
}

.about-content h2 {
  color: var(--primary);
}

/* Why Us Section */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.why-us-item {
  text-align: center;
  padding: var(--spacing-md);
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.why-us-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.why-us-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: var(--spacing-sm);
}

/* Contact Form */
.contact-form {
  background-color: white;
  border-radius: 10px;
  padding: var(--spacing-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 2px solid #E0E5F2;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(140, 70, 255, 0.2);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.contact-info {
  margin-top: var(--spacing-xl);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.contact-item {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: var(--spacing-md);
}

.contact-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: var(--spacing-sm);
}

/* Privacy Policy */
.privacy-content {
  background-color: white;
  border-radius: 10px;
  padding: var(--spacing-lg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.privacy-content h3 {
  color: var(--primary);
  margin-top: var(--spacing-lg);
}

.privacy-date {
  color: var(--light-text);
  font-style: italic;
  margin-bottom: var(--spacing-md);
  display: block;
}

/* Footer */
footer {
  background-color: var(--bg-dark);
  color: white;
  padding: var(--spacing-lg) 0 var(--spacing-sm);
  margin-top: var(--spacing-xl);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
}

.footer-column {
  flex: 1;
  min-width: 250px;
  margin-bottom: var(--spacing-md);
}

.footer-column h4 {
  color: var(--secondary);
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: var(--spacing-xs);
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--secondary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
  display: flex;
  justify-content: center;
  margin-bottom: var(--spacing-md);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  margin: 0 var(--spacing-xs);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.hidden {
  display: none !important;
}

/* Responsive Design */
@media (max-width: 992px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
  
  .nav-links {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .about-section {
    grid-template-columns: 1fr;
  }
  
  .why-us-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}

@media (max-width: 768px) {
  html { font-size: 14px; }
  
  section {
    padding: var(--spacing-lg) 0;
  }
  
  .hero {
    padding: var(--spacing-lg) 0;
  }
  
  .features {
    grid-template-columns: 1fr;
  }
  
  .container {
    width: 95%;
  }
  
  .footer-column {
    flex: 100%;
    margin-bottom: var(--spacing-md);
  }
}

@media (max-width: 576px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  
  .section-title { font-size: 1.75rem; }
  
  .btn {
    display: block;
    width: 100%;
    margin-bottom: var(--spacing-sm);
  }
}