/* ===== BASE STYLES AND VARIABLES ===== */
:root {
  /* Color Palette */
  --primary-color: #1f66ff;
  --primary-dark: #0040d0;
  --primary-light: #5a8bff;
  --secondary-color: #ff6b6b;
  --secondary-dark: #e74c3c;
  --secondary-light: #ff8f8f;
  --accent-color: #00d0b0;
  --accent-dark: #00a88d;
  --accent-light: #3eefd0;
  
  /* Neutral Colors */
  --white: #ffffff;
  --light-gray: #f5f8ff;
  --medium-gray: #d1deff;
  --dark-gray: #6b7c93;
  --black: #1a1f36;
  
  /* Glass Effect Variables */
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: rgba(0, 0, 0, 0.1);
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-full: 50%;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--black);
  background: linear-gradient(135deg, #f5f7ff 0%, #e8ecfd 100%);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  color: var(--black);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h4 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

p {
  margin-bottom: var(--space-sm);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}

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

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

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

ul {
  list-style: none;
}

/* Section styling */
section {
  padding: var(--space-lg) 0;
  position: relative;
  overflow: hidden;
}

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

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: var(--space-xs) auto;
}

/* ===== GLASSMORPHISM EFFECTS ===== */
.glass-section, 
.glass-card, 
.glass-form, 
.glass-header, 
.glass-footer {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px var(--glass-shadow);
  border-radius: var(--radius-md);
}

.glass-section {
  margin: var(--space-lg) 0;
  padding: var(--space-lg);
}

.glass-card {
  padding: var(--space-md);
  transition: transform var(--transition-normal);
}

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

.glass-form {
  padding: var(--space-lg);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(31, 102, 255, 0.2);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
}

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

button, 
input[type='submit'] {
  cursor: pointer;
  font-family: var(--font-body);
}

/* ===== HEADER ===== */
.glass-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--space-sm) 0;
  transition: all var(--transition-normal);
  border-radius: 0;
}

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

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo h1 {
  font-size: 1.8rem;
  margin: 0;
  color: var(--primary-color);
}

.desktop-nav ul {
  display: flex;
  gap: var(--space-md);
}

.desktop-nav a {
  color: var(--black);
  font-weight: 500;
  position: relative;
}

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

.desktop-nav a:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--black);
  transition: var(--transition-normal);
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: var(--space-md) 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.mobile-nav a {
  font-size: 1.2rem;
  padding: var(--space-xs) 0;
}

/* ===== HERO SECTION ===== */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--white);
  text-align: center;
  padding-top: 80px;
}

.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

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

.hero-content h1 {
  margin-bottom: var(--space-md);
  color: var(--white);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
  color: var(--white);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

/* ===== MISSION SECTION ===== */
.mission-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  align-items: center;
}

.mission-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.mission-image img {
  max-width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

.mission-text {
  flex: 2;
  min-width: 300px;
}

.stats-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.stat-widget {
  flex: 1;
  min-width: 150px;
  text-align: center;
  padding: var(--space-md);
  background: var(--glass-bg);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 1rem;
  color: var(--dark-gray);
}

/* ===== SERVICES SECTION ===== */
.services-intro {
  max-width: 800px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--white);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-normal);
}

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

.card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-image img {
  transform: scale(1.1);
}

.card-content {
  padding: var(--space-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card-content h3 {
  margin-bottom: var(--space-sm);
  color: var(--black);
}

/* ===== HISTORY SECTION ===== */
.history-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  align-items: center;
  margin-bottom: var(--space-lg);
}

.history-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.history-image img {
  max-width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

.history-text {
  flex: 2;
  min-width: 300px;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: var(--space-xl) auto 0;
  padding: 0 var(--space-md);
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: var(--primary-color);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-lg);
}

.timeline-dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: var(--radius-full);
  z-index: 1;
}

.timeline-content {
  position: relative;
  width: 45%;
  padding: var(--space-md);
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

.timeline-content h4 {
  margin-bottom: var(--space-xs);
  color: var(--primary-color);
}

/* ===== RESOURCES SECTION ===== */
.resources-intro {
  max-width: 800px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.resource-link {
  display: block;
  margin-top: var(--space-sm);
  color: var(--primary-color);
  font-weight: 500;
  transition: var(--transition-normal);
}

.resource-link:hover {
  color: var(--primary-dark);
  transform: translateX(5px);
}

/* ===== PRICING SECTION ===== */
.pricing-intro {
  max-width: 800px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.pricing-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  transition: transform var(--transition-normal);
}

.pricing-card.featured {
  transform: scale(1.05);
  position: relative;
  z-index: 2;
  border: 2px solid var(--primary-color);
}

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

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.card-header {
  width: 100%;
  padding: var(--space-md);
  background: var(--primary-light);
  color: var(--white);
  text-align: center;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  position: relative;
}

.featured .card-header {
  background: var(--primary-color);
}

.recommended {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary-color);
  color: var(--white);
  padding: 5px 15px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  margin: var(--space-sm) 0;
  color: var(--white);
}

.price span {
  font-size: 1rem;
  font-weight: 400;
}

.pricing-card .card-content {
  width: 100%;
  padding: var(--space-md);
  background: var(--white);
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  flex-grow: 1;
}

.pricing-card ul {
  margin-bottom: var(--space-md);
  text-align: left;
}

.pricing-card li {
  margin-bottom: var(--space-xs);
  position: relative;
  padding-left: 25px;
}

.pricing-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 700;
}

.custom-pricing {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-lg);
  background: var(--glass-bg);
  border-radius: var(--radius-md);
}

/* ===== CLIENTS SECTION ===== */
.clients-intro {
  max-width: 800px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
  margin: 0 auto;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 120px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  transition: transform var(--transition-normal);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.client-logo:hover {
  transform: scale(1.1);
}

.client-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ===== STORIES SECTION ===== */
.stories-intro {
  max-width: 800px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.story-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.story-card .card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-card .card-content {
  padding: var(--space-md);
  text-align: center;
  flex-grow: 1;
}

.quote {
  font-style: italic;
  margin-bottom: var(--space-md);
  position: relative;
  padding: 0 var(--space-sm);
}

.quote::before,
.quote::after {
  content: '"';
  font-size: 2rem;
  color: var(--primary-light);
  position: absolute;
}

.quote::before {
  top: -10px;
  left: -10px;
}

.quote::after {
  bottom: -30px;
  right: -10px;
}

.testimonial-author h4 {
  margin-bottom: 0;
  color: var(--black);
}

.testimonial-author p {
  color: var(--dark-gray);
  font-size: 0.875rem;
}

.case-study {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: var(--glass-bg);
  border-radius: var(--radius-md);
}

.case-study h3 {
  text-align: center;
  margin-bottom: var(--space-md);
}

.case-study-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  align-items: center;
}

.case-study-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.case-study-image img {
  max-width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

.case-study-text {
  flex: 1;
  min-width: 300px;
}

/* ===== EVENTS SECTION ===== */
.events-intro {
  max-width: 800px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.event-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.event-card .card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-card .card-content {
  padding: var(--space-md);
  text-align: center;
  flex-grow: 1;
}

.event-date {
  display: inline-block;
  background: var(--primary-color);
  color: var(--white);
  padding: 5px 15px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

/* ===== CONTACT SECTION ===== */
.contact-intro {
  max-width: 800px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.contact-form-container {
  flex: 1;
  min-width: 300px;
}

.contact-form-container h3 {
  margin-bottom: var(--space-md);
  text-align: center;
}

.contact-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.form-group {
  width: calc(50% - var(--space-sm) / 2);
  margin-bottom: var(--space-md);
}

.form-group.full-width {
  width: 100%;
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--medium-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.8);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info h3 {
  margin-bottom: var(--space-md);
  text-align: center;
}

.info-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.info-item .icon {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.info-item h4 {
  margin-bottom: var(--space-xs);
}

.map-container {
  margin-top: var(--space-lg);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.map-container img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* ===== FOOTER ===== */
.glass-footer {
  background: var(--black);
  color: var(--white);
  padding: var(--space-lg) 0 var(--space-md);
  border-radius: 0;
}

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

.footer-logo {
  flex: 1;
  min-width: 250px;
}

.footer-logo h2 {
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  flex: 2;
  justify-content: space-around;
}

.footer-links-column {
  min-width: 150px;
}

.footer-links-column h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.footer-links-column ul li {
  margin-bottom: var(--space-xs);
}

.footer-links-column a {
  color: var(--medium-gray);
  transition: var(--transition-normal);
}

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

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

.social-links h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.social-icons {
  display: flex;
  gap: var(--space-md);
}

.social-icons a {
  color: var(--medium-gray);
  transition: var(--transition-normal);
}

.social-icons a:hover {
  color: var(--white);
  transform: translateY(-3px);
}

.newsletter h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.newsletter-form {
  display: flex;
  gap: var(--space-xs);
}

.newsletter-form input {
  padding: 12px;
  border: none;
  border-radius: var(--radius-sm);
  flex-grow: 1;
  min-width: 200px;
  font-family: var(--font-body);
}

.copyright {
  text-align: center;
  color: var(--medium-gray);
  font-size: 0.875rem;
}

/* ===== ANIMATIONS ===== */
.parallax-element {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== SUCCESS PAGE ===== */
.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
}

.success-content {
  max-width: 600px;
  padding: var(--space-lg);
}

.success-icon {
  font-size: 4rem;
  color: var(--accent-color);
  margin-bottom: var(--space-md);
}

/* ===== PRIVACY & TERMS PAGES ===== */
.privacy-page, .terms-page {
  padding-top: 100px;
}

.privacy-content, .terms-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-lg);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--space-sm);
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-dot {
    left: 30px;
  }
  
  .timeline-content {
    width: 85%;
    margin-left: 60px !important;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .footer-content, 
  .footer-links {
    flex-direction: column;
  }
  
  .footer-links-column {
    margin-bottom: var(--space-md);
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form button {
    align-self: flex-start;
  }
  
  .form-group {
    width: 100%;
  }
}

@media (max-width: 480px) {
  :root {
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
  }
  
  .pricing-card.featured {
    transform: scale(1);
  }
  
  .pricing-card.featured:hover {
    transform: translateY(-10px);
  }
}