/* CSS Variables for Design System */
:root {
  /* Split-Complementary Color Scheme */
  --primary-color: #4f46e5;
  --primary-dark: #3730a3;
  --primary-light: #818cf8;
  --secondary-color: #f59e0b;
  --secondary-dark: #d97706;
  --accent-color: #10b981;
  --accent-dark: #059669;
  
  /* Neutral Colors */
  --white: #ffffff;
  --black: #000000;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Text Colors */
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-light: #6b7280;
  --text-white: #ffffff;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: rgba(0, 0, 0, 0.1);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--primary-light));
  --gradient-overlay: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
  
  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Merriweather', serif;
  
  /* Spacing */
  --section-padding: 4rem 0;
  --container-padding: 1.5rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* 3D Effects */
  --transform-3d: perspective(1000px) rotateX(5deg) rotateY(-5deg);
  --transform-hover: perspective(1000px) rotateX(0deg) rotateY(0deg) scale(1.05);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;

}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  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);
}

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

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

/* Global Button Styles */
.btn, button, input[type="submit"], .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  backdrop-filter: blur(10px);
}

.btn:before, button:before, input[type="submit"]:before, .button: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 0.5s;
}

.btn:hover:before, button:hover:before, input[type="submit"]:hover:before, .button:hover:before {
  left: 100%;
}

.btn-primary, .button.is-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
  transform: var(--transform-3d);
}

.btn-primary:hover, .button.is-primary:hover {
  transform: var(--transform-hover);
  box-shadow: var(--shadow-xl);
  color: var(--white);
  text-decoration: none;
}

.btn-secondary, .button.is-light {
  background: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover, .button.is-light:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  transform: var(--transform-3d);
}

.glass-card:hover {
  transform: var(--transform-hover);
  box-shadow: var(--shadow-xl);
}

/* Header Styles */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar-brand strong {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-item {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.3s ease;
  position: relative;
}

.navbar-item:hover {
  color: var(--primary-color);
  background: transparent;
}

.navbar-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-item:hover::after {
  width: 80%;
}

/* Mobile Menu */
.navbar-burger {
  color: var(--text-primary);
}

.navbar-burger:hover {
  background: transparent;
  color: var(--primary-color);
}

@media (max-width: 1023px) {
  .navbar-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 20px 20px;
  }
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-overlay);
  z-index: 1;
}

.hero .hero-body {
  position: relative;
  z-index: 2;
  padding: var(--section-padding);
}

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

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

.hero p {
  color: var(--text-white) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: slideInUp 1s ease-out 0.4s both;
}

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

/* Sections */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section:nth-child(even) {
  background: var(--gray-50);
}

.section .title {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.section .title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section .subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
}

/* Cards */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  height: 100%;
  transform: var(--transform-3d);
}

.card:hover {
  transform: var(--transform-hover);
  box-shadow: var(--shadow-xl);
}

.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 0.3s ease;
}

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

.card-content {
  padding: 2rem;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Team Section */
#team .card-image {
  height: 300px;
  border-radius: 50%;
  width: 200px;
  margin: 2rem auto 1rem;
}

#team .card-image img {
  border-radius: 50%;
}

/* Testimonials */
#testimonials .card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

.media-left .image {
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* FAQ Section */
.faq-item {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-color);
}

.faq-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-md);
}

/* Clientele Section */
#clientele .box {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: all 0.3s ease;
  transform: var(--transform-3d);
}

#clientele .box:hover {
  transform: var(--transform-hover);
}

#clientele .title.is-1 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Resources Section */
#resources .card {
  border-left: 4px solid var(--accent-color);
}

#resources .card:hover {
  border-left-color: var(--primary-color);
}

#resources .title a {
  transition: all 0.3s ease;
}

#resources .title a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

/* Blog Section */
#blog .tags .tag {
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 15px;
  font-weight: 500;
}

/* Contact Section */
.contact-form {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.field {
  margin-bottom: 1.5rem;
}

.label {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.input, .textarea, .select select {
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  transition: all 0.3s ease;
  background: var(--white);
}

.input:focus, .textarea:focus, .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
  outline: none;
}

.checkbox input[type="checkbox"] {
  margin-right: 0.5rem;
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--text-white);
  padding: 3rem 0 2rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
}

.footer .title {
  color: var(--text-white);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer p, .footer li {
  color: var(--gray-300);
  margin-bottom: 0.5rem;
}

.footer a {
  color: var(--gray-300);
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.footer ul {
  list-style: none;
}

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

/* Success Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

.modal.is-active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  max-width: 500px;
  width: 90%;
  animation: modalSlideIn 0.3s ease-out;
}

.modal-card-head {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 1.5rem;
  border-radius: 20px 20px 0 0;
}

.modal-card-body {
  padding: 2rem;
}

.modal-card-foot {
  padding: 1.5rem;
  border-radius: 0 0 20px 20px;
  background: var(--gray-50);
}

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

.success-content {
  max-width: 600px;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: successSlideIn 0.8s ease-out;
}

.success-content .title {
  color: var(--white) !important;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.success-content p {
  color: var(--white) !important;
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

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

.privacy-content, .terms-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.privacy-content h2, .terms-content h2 {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

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

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(-50px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes successSlideIn {
  from {
    opacity: 0;
    transform: scale(0.8) rotateY(20deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
  }
}

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

.floating {
  animation: float 3s ease-in-out infinite;
}

/* Parallax Effect */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --section-padding: 2rem 0;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  
  .hero .title {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.25rem;
  }
  
  .card-content {
    padding: 1.5rem;
  }
  
  #team .card-image {
    width: 150px;
    height: 200px;
  }
  
  .btn, button, input[type="submit"], .button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .privacy-page, .terms-page {
    padding-top: 80px;
  }
  
  .privacy-content, .terms-content {
    padding: 1rem;
    margin: 1rem;
  }
}

@media (max-width: 480px) {
  .hero .title {
    font-size: 2rem;
  }
  
  .hero .subtitle {
    font-size: 1rem;
  }
  
  .success-content {
    margin: 1rem;
    padding: 2rem;
  }
  
  .success-content .title {
    font-size: 2rem;
  }
}

/* Smooth scrolling for all browsers */
html {
  scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 4px;
}

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

/* Focus styles for accessibility */
button:focus, .btn:focus, input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary-color);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #000000;
    --text-secondary: #000000;
    --glass-bg: rgba(255, 255, 255, 0.9);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}