/* CSS Variables - Complementary Color Scheme */
:root {
  /* Primary Colors - Blue */
  --primary-color: #0066ff;
  --primary-dark: #0052cc;
  --primary-light: #3385ff;
  --primary-alpha: rgba(0, 102, 255, 0.1);
  
  /* Complementary Colors - Orange */
  --secondary-color: #ff6600;
  --secondary-dark: #cc5200;
  --secondary-light: #ff8533;
  --secondary-alpha: rgba(255, 102, 0, 0.1);
  
  /* Accent Colors */
  --accent-purple: #8a2be2;
  --accent-pink: #ff1493;
  --accent-cyan: #00bfff;
  --accent-green: #32cd32;
  
  /* Glass Morphism */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --glass-backdrop: blur(10px);
  
  /* Text Colors */
  --text-primary: #222222;
  --text-secondary: #666666;
  --text-light: #ffffff;
  --text-muted: #999999;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-dark: #1a1a1a;
  --bg-gradient: linear-gradient(135deg, var(--primary-alpha), var(--secondary-alpha));
  
  /* Spacing */
  --section-padding: 80px 0;
  --card-padding: 2rem;
  --border-radius: 1rem;
  --border-radius-lg: 2rem;
  
  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Z-index */
  --z-header: 1000;
  --z-modal: 9999;
  --z-tooltip: 1050;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* Global Button Styles */
.btn {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--border-radius);
  padding: 0.75rem 2rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-slow);
}

.btn:hover:before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--text-light);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--text-light);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: var(--glass-backdrop);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: var(--text-light);
}

.glass-btn {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* Header & Navigation */
.navbar-glass {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: var(--glass-backdrop);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  z-index: var(--z-header);
  transition: all var(--transition-normal);
}

.navbar-brand .brand-text {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: all var(--transition-normal);
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color);
  background: var(--primary-alpha);
  transform: translateY(-2px);
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
  background: var(--glass-bg);
  border-radius: var(--border-radius);
}

.navbar-toggler-icon {
  width: 1.5em;
  height: 1.5em;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 102, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.3), rgba(255, 102, 0, 0.3));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  color: var(--text-light) !important;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  animation: slideInUp 1s ease-out;
}

.hero-subtitle {
  color: var(--text-light) !important;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  animation: slideInUp 1s ease-out 0.2s both;
}

.hero-buttons {
  animation: slideInUp 1s ease-out 0.4s both;
}

/* Floating Elements Animation */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 1;
}

.floating-element {
  position: absolute;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.floating-element:nth-child(3) {
  bottom: 20%;
  left: 50%;
  animation-delay: 4s;
}

/* Glass Morphism Components */
.glass-morphism {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* Section Styling */
section {
  padding: var(--section-padding);
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Curved Grid Background */
.curved-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, var(--primary-alpha) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, var(--secondary-alpha) 0%, transparent 50%);
  opacity: 0.5;
  z-index: -1;
}

/* Feature Cards */
.feature-card {
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

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

.icon-wrapper {
  font-size: 3rem;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  margin: 0 auto;
  animation: bounce 2s infinite;
}

.feature-title {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Progress Indicators */
.progress-item {
  margin-bottom: 1.5rem;
}

.custom-progress {
  height: 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  height: 100%;
  border-radius: 4px;
  transition: width 1.5s ease-in-out;
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

/* Statistical Widgets */
.stat-widget {
  transition: all var(--transition-normal);
  padding: 2rem;
}

.stat-widget:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

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

.stat-label {
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
}

/* Portfolio Slider */
.portfolio-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
}

.slider-container {
  position: relative;
  width: 100%;
}

.slider-track {
  display: flex;
  transition: transform var(--transition-slow);
}

.portfolio-slide {
  min-width: 100%;
  padding: 2rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
}

.portfolio-slide .card-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.portfolio-stats {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.stat-badge {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
}

/* Slider Controls */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.slider-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  color: var(--primary-color);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  transform: scale(1.1);
  background: var(--primary-color);
  color: var(--text-light);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.dot.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

/* Success Stories Cards */
.success-story-card {
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.success-story-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.success-story-card .card-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

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

.success-story-card:hover .card-img-top {
  transform: scale(1.05);
}

.success-story-card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.success-metrics {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.metric {
  background: var(--secondary-alpha);
  color: var(--secondary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
}

/* Resource Cards */
.resource-card {
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.resource-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

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

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

.resource-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Contact Form */
.contact-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.glass-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-backdrop);
  color: var(--text-primary);
  transition: all var(--transition-normal);
}

.glass-input:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem var(--primary-alpha);
  color: var(--text-primary);
}

.glass-input::placeholder {
  color: var(--text-muted);
}

.form-floating > label {
  color: var(--text-secondary);
}

.form-floating > .glass-input:focus ~ label,
.form-floating > .glass-input:not(:placeholder-shown) ~ label {
  color: var(--primary-color);
}

/* Button Spinner */
.btn-spinner {
  margin-left: 0.5rem;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  position: relative;
}

.footer-brand {
  margin-bottom: 2rem;
}

.footer-brand .brand-text {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.footer-description {
  color: #cccccc;
  line-height: 1.6;
}

.footer-title {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-semibold);
  color: var(--text-light);
  margin-bottom: 1rem;
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #cccccc;
  text-decoration: none;
  transition: color var(--transition-normal);
}

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

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: #cccccc;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
  font-weight: var(--font-weight-medium);
}

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

.footer-contact p {
  color: #cccccc;
  margin-bottom: 0.5rem;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.2);
  margin: 2rem 0;
}

.footer-copyright {
  color: #999999;
}

.footer-legal a {
  color: #cccccc;
  text-decoration: none;
  transition: color var(--transition-normal);
}

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

/* Success Page Styles */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-gradient);
}

.success-content {
  text-align: center;
  padding: 3rem;
  max-width: 600px;
}

.success-icon {
  font-size: 4rem;
  color: var(--accent-green);
  margin-bottom: 2rem;
  animation: checkmark 1s ease-out;
}

/* Privacy and Terms Pages */
.content-page {
  padding-top: 100px;
  min-height: 100vh;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.content-title {
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
}

.content-section {
  margin-bottom: 2rem;
}

.content-section h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.content-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Read More Links */
.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  position: relative;
  transition: all var(--transition-normal);
}

.read-more:hover {
  color: var(--primary-dark);
}

.read-more::after {
  content: ' →';
  transition: transform var(--transition-normal);
}

.read-more:hover::after {
  transform: translateX(5px);
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes checkmark {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
}

@media (max-width: 992px) {
  :root {
    --section-padding: 60px 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .feature-icon .icon-wrapper {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 40px 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .portfolio-slide {
    padding: 1rem;
  }
  
  .slider-controls {
    flex-direction: column;
    gap: 1rem;
  }
  
  .social-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .footer-contact {
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .hero-content {
    padding: 2rem !important;
  }
  
  .contact-form-wrapper {
    padding: 2rem !important;
  }
  
  .success-content {
    padding: 2rem;
  }
  
  .content-wrapper {
    padding: 1rem;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #000000;
    --text-secondary: #333333;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.3);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .floating-element {
    animation: none;
  }
}

/* Print Styles */
@media print {
  .navbar-glass,
  .floating-elements,
  .footer {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .btn {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}

/* Focus Styles for Accessibility */
.btn:focus,
.nav-link:focus,
.glass-input:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

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

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
}

/* Selection Styles */
::selection {
  background: var(--primary-alpha);
  color: var(--primary-color);
}

::-moz-selection {
  background: var(--primary-alpha);
  color: var(--primary-color);
}

.form-control {
  border: 1px solid #222222;
}

main {
  overflow-x: hidden;
}