/* Bootstrap 5 CDN Import */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css');

/* FontAwesome CDN Import */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* CSS Variables - Color Palette */
:root {
  /* Primary Colors */
  --primary-royal: #7142b6;
  --primary-rose: #e6568b;
  --primary-teal: #11a4b9;
  --primary-amber: #c18200;
  --primary-emerald: #007e54;

  /* Light Shades */
  --light-royal: #c5c2e5;
  --light-rose: #fffbfd;
  --light-teal: #d3e1e5;
  --light-amber: #fff0ce;
  --light-emerald: #c2e7d1;

  /* Dark Shades */
  --dark-royal: #5f24a4;
  --dark-rose: #b70f6c;
  --dark-teal: #077681;
  --dark-amber: #8e3e0f;
  --dark-emerald: #008a4e;

  /* Neutrals */
  --neutral-white: #ffffff;
  --neutral-light: #f8fafc;
  --neutral-medium: #657288;
  --neutral-dark: #0a1324;

  /* Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-royal),
    var(--primary-rose)
  );
  --gradient-secondary: linear-gradient(
    135deg,
    var(--primary-teal),
    var(--primary-emerald)
  );
  --gradient-accent: linear-gradient(
    135deg,
    var(--primary-amber),
    var(--primary-rose)
  );

  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;

  /* Spacing */
  --section-padding: 80px;
  --container-padding: 20px;
}

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

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--neutral-dark);
  background-color: var(--neutral-white);
  font-size: 16px;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--neutral-dark);
}

h1 {
  font-size: 2.64rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.02rem;
}

h3 {
  font-size: 1.6rem;
  margin-bottom: 0.83rem;
}

h4 {
  font-size: 1.38rem;
  margin-bottom: 0.77rem;
}

h5 {
  font-size: 1.18rem;
  margin-bottom: 0.63rem;
}

h6 {
  font-size: 1rem;
  margin-bottom: 0.57rem;
}

p {
  margin-bottom: 1rem;
  color: var(--neutral-medium);
  font-size: 1rem;
}

/* Header Styles */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.53rem;
  font-weight: 700;
  color: var(--primary-royal);
  text-decoration: none;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link {
  color: var(--neutral-dark);
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-royal);
}

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

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/hero-bg.webp') center/cover;
  opacity: 0.2;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--neutral-white);
  padding-top: 150px;
}

.hero-content h1 {
  color: var(--neutral-white);
  font-size: 3rem;
  margin-bottom: 1.64rem;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.39rem;
  margin-bottom: 2rem;
}

/* Button Styles */
.btn-primary {
  background: var(--gradient-secondary);
  border: none;
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-outline-primary {
  border: 2px solid var(--primary-royal);
  color: var(--primary-royal);
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--primary-royal);
  color: var(--neutral-white);
  transform: translateY(-2px);
}

/* Section Styles */
.section {
  padding: var(--section-padding) 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.61rem;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title p {
  font-size: 1.17rem;
  color: var(--neutral-medium);
  max-width: 600px;
  margin: 0 auto;
}

/* Card Styles */
.card {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.1);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.card-body {
  padding: 2rem;
}

.card-title {
  font-size: 1.34rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--neutral-dark);
}

.card-text {
  color: var(--neutral-medium);
  margin-bottom: 1.63rem;
}

/* Service Cards */
.service-card {
  background: var(--neutral-white);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.service-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 19px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--neutral-white);
}

.service-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-royal);
  margin-bottom: 1rem;
}

/* Team Cards */
.team-card {
  text-align: center;
  background: var(--neutral-white);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 19px 40px rgba(0, 0, 0, 0.1);
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--neutral-white);
  overflow: hidden;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Review Cards */
.review-card {
  background: var(--light-royal);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.review-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--primary-royal);
  opacity: 0.3;
}

.review-text {
  font-style: italic;
  margin-bottom: 1.74rem;
  color: var(--neutral-dark);
}

.review-author {
  font-weight: 600;
  color: var(--primary-royal);
}

/* FAQ Styles */
.faq-card {
  background: var(--neutral-white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 19px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  background: var(--light-royal);
  color: var(--neutral-dark);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  width: 100%;
  text-align: left;
  font-weight: 600;
}

.faq-question:hover {
  background: var(--primary-royal);
  color: var(--neutral-white);
}

.faq-answer {
  padding: 1.5rem;
  color: var(--neutral-medium);
  background: var(--neutral-white);
}

/* Gallery Styles */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 17px;
  margin-bottom: 2rem;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Contact Form */
.contact-form {
  background: var(--light-royal);
  border-radius: 20px;
  padding: 3rem;
  margin-top: 3rem;
}

.form-control {
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-royal);
  box-shadow: 0 0 0 0.2rem rgba(105, 55, 169, 0.25);
}

/* Footer */
.footer {
  background: var(--neutral-dark);
  color: var(--neutral-white);
  padding: 3rem 0 1rem;
  margin-top: 5rem;
}

.footer h5 {
  color: var(--neutral-white);
  margin-bottom: 1.75rem;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

/* Utility Classes */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: var(--gradient-primary);
}

.bg-gradient-secondary {
  background: var(--gradient-secondary);
}

.bg-gradient-accent {
  background: var(--gradient-accent);
}

/* Breadcrumb */
.breadcrumb {
  background: var(--light-royal);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 2rem;
}

.breadcrumb img {
  width: 30px;
  height: 30px;
  object-fit: cover;
}

/* Timeline Styles */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background: var(--gradient-primary);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -17px;
  background: var(--primary-royal);
  border: 4px solid var(--neutral-white);
  top: 20px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-content {
  padding: 1.5rem;
  background: var(--neutral-white);
  position: relative;
  border-radius: 17px;
  box-shadow: 0 8px 210px rgba(0, 0, 0, 0.1);
  margin-right: calc(50% + 30px);
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: 0;
  margin-left: calc(50% + 30px);
}

.timeline-item:nth-child(even)::after {
  left: -17px;
  right: auto;
}

/* Process Steps */
.process-step {
  text-align: center;
  margin-bottom: 2rem;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  color: var(--neutral-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.63rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.process-step h5 {
  color: var(--neutral-white);
  margin-bottom: 0.99rem;
}

.process-step p {
  color: rgba(255, 255, 255, 0.9);
}

/* Career Cards */
.career-card {
  background: var(--neutral-white);
  border-radius: 19px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.career-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Info Cards */
.info-card {
  background: var(--neutral-white);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Case Study Cards */
.case-study-card {
  background: var(--neutral-white);
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.case-study-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Pricing Cards */
.pricing-card {
  background: var(--neutral-white);
  border-radius: 20px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
  border: 3px solid var(--primary-royal);
  transform: scale(1.05);
}

/* Contact Info */
.contact-info {
  background: var(--light-royal);
  border-radius: 15px;
  padding: 2rem;
  margin-top: 2rem;
}

.contact-info h4 {
  color: var(--neutral-dark);
  margin-bottom: 1.6rem;
}

.contact-info p {
  color: var(--neutral-medium);
  margin-bottom: 0.97rem;
  display: flex;
  align-items: center;
}

.contact-info p i {
  margin-right: 0.75rem;
  color: var(--primary-royal);
}

/* Feature Cards */
.feature-card {
  background: var(--neutral-white);
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-royal);
  color: var(--neutral-white);
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10000;
  transition: top 0.3s ease;
  font-weight: 600;
}

.skip-link:focus {
  top: 6px;
  color: var(--neutral-white);
}

/* Progress Bar */
#progress-bar-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9999;
}

/* Space Page */
#space {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 20px;
  margin: 2rem 0;
  color: var(--neutral-white);
  font-size: 1.29rem;
  text-align: center;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-royal);
  color: var(--neutral-white);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: none;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(105, 57, 168, 0.3);
}

.back-to-top:hover {
  background: var(--dark-royal);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(122, 79, 188, 0.4);
}

/* Focus Styles for Accessibility */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
  outline: 2px solid var(--primary-royal);
  outline-offset: 2px;
}

/* High Contrast for Better Accessibility */
@media (prefers-contrast: high) {
  :root {
    --neutral-medium: #444444;
    --neutral-dark: #000000;
  }

  .btn-outline-primary {
    border-width: 3px;
  }
}

/* Responsive Image Placeholders */
.img-placeholder {
  background: var(--light-royal);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-royal);
  font-size: 1.36rem;
  font-weight: 600;
}

/* Image Dimensions */
.hero-image img {
  width: 100%;
  max-width: 600px;
  height: auto;
  min-height: 400px;
  object-fit: cover;
  border-radius: 20px;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 15px;
}

.blog-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.team-avatar img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
}

/* Ensure all images are responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Breadcrumb images */
.breadcrumb img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 4px;
}

/* Blog Grid */
#blog_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.blog-card {
  background: var(--neutral-white);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.blog-image {
  width: 100%;
  height: 200px;
  background: var(--light-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-teal);
  font-size: 1.59rem;
}

.blog-content {
  padding: 1.5rem;
}

.blog-title {
  font-size: 1.31rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--neutral-dark);
}

.blog-excerpt {
  color: var(--neutral-medium);
  margin-bottom: 1.7rem;
}

.blog-link {
  color: var(--primary-royal);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.blog-link:hover {
  color: var(--dark-royal);
}

/* Team Social Links - Minimal Style */
.team-social-links {
  margin-top: 16px;
  padding: 10px 0;
}

.social-icons-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.social-link {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  align-items: center;
  justify-content: center;
  color: #666;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 2px solid #e0e0e0;
  background: white;
}

.social-link:hover {
  transform: translateY(-1px);
  color: white;
}

.facebook-link:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: white;
}

.linkedin-link:hover {
  background: #0a66c2;
  border-color: #0a66c2;
  color: white;
}

.x-link {
  position: relative;
}

.x-link::after {
  content: '𝕏';
  font-weight: bold;
  font-size: 18px;
  color: inherit;
}

.x-link:hover {
  background: #000000;
  border-color: #000000;
  color: white;
}

.x-link:hover::after {
  color: white;
}

.x-link i {
  display: none;
}

@media (max-width: 768px) {
  .social-icons-grid {
    gap: 15px;
  }

  .social-link {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}
