/* Electric Bike Rental & Repair Shop Template - Main CSS */

/* Color Palette Variables */
:root {
  --primary-color: #2ecc71;
  --primary-light: #58d68d;
  --primary-dark: #27ae60;
  --secondary-color: #3498db;
  --secondary-light: #5dade2;
  --secondary-dark: #2980b9;
  --accent-color: #e74c3c;
  --accent-light: #ec7063;
  --accent-dark: #c0392b;
  --neutral-color: #95a5a6;
  --neutral-light: #bdc3c7;
  --neutral-dark: #7f8c8d;
  --text-color: #2c3e50;
  --text-light: #34495e;
  --background-color: #ffffff;
  --light-gray: #f8f9fa;
  --dark-gray: #343a40;
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --border-radius: 8px;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

html {
  scroll-behavior: smooth;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::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-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.1rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* Header Styles */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.navbar-scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color) !important;
  text-decoration: none;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--text-color) !important;
  transition: var(--transition);
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../XIS_images/hero-bg.webp') center/cover;
  opacity: 0.3;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  color: white;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-desc {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.hero-image {
  position: relative;
  z-index: 2;
}

.hero-image img {
  width: 100%;
  height: auto;
  max-width: 500px;
  min-height: 300px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-hover);
  background: var(--light-gray);
  display: block;
}

/* Decorative Elements */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

.hero-blob:nth-child(1) {
  width: 200px;
  height: 200px;
  top: 20%;
  right: 10%;
  animation-delay: 0s;
}

.hero-blob:nth-child(2) {
  width: 150px;
  height: 150px;
  bottom: 30%;
  left: 15%;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Section Styles */
.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: var(--text-light);
}

.section-desc {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1.1rem;
  color: var(--neutral-dark);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
.about-feature {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--light-gray);
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  transition: var(--transition);
  height: 100%;
}

.about-feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.about-feature i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.about-feature h4 {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.about-feature p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* Services Section */
.service-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  background: var(--light-gray);
  display: block;
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.service-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.service-features li {
  padding: 0.5rem 0;
  color: var(--text-light);
  border-bottom: 1px solid var(--neutral-light);
}

.service-features li:last-child {
  border-bottom: none;
}

.service-features li i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

/* Features Section */
.feature-item {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.feature-item i {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.feature-item h4 {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.feature-item p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* Price Plan Section */
.priceplan-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
}

.priceplan-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
}

.priceplan-card.featured {
  border: 3px solid var(--primary-color);
  transform: scale(1.05);
}

.priceplan-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.priceplan-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.priceplan-features {
  list-style: none;
  margin-bottom: 2rem;
}

.priceplan-features li {
  padding: 0.5rem 0;
  color: var(--text-light);
  border-bottom: 1px solid var(--neutral-light);
}

.priceplan-features li:last-child {
  border-bottom: none;
}

.priceplan-features li i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

/* Team Section */
.team-member {
  text-align: center;
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 4px solid var(--primary-color);
}

.team-member h4 {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.team-member p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* Reviews Section */
.reviews-slider {
  margin-top: 3rem;
}

.review-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 0 1rem;
  box-shadow: var(--box-shadow);
  text-align: center;
}

.review-text {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.review-author {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.review-rating {
  color: #ffc107;
  font-size: 1.2rem;
}

/* Case Studies Section */
.casestudy-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.casestudy-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.casestudy-card h4 {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.casestudy-card p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* Process Section */
.process-step {
  text-align: center;
  padding: 2rem 1rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
  transition: var(--transition);
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.process-step::before {
  content: attr(data-step);
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.process-step h4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.process-step p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* Timeline Section */
.timeline-container {
  position: relative;
  margin-top: 3rem;
}

.timeline-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--gradient-primary);
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-content {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  width: 45%;
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: var(--box-shadow);
}

.timeline-content h4 {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.timeline-content p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* Career Section */
.career-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.career-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.career-role {
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}

.career-card h4 {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.career-card p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* Core Info Section */
.coreinfo-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.coreinfo-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.coreinfo-card i {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.coreinfo-card h4 {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.coreinfo-card p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* Contact Section */
.contact-section {
  background: var(--light-gray);
  padding: 5rem 0;
}

.contact-form {
  background: white;
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: var(--box-shadow);
  margin-bottom: 3rem;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--neutral-light);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .form-check {
  margin-bottom: 1.5rem;
}

.contact-form .form-check-input {
  width: auto;
  margin-right: 0.5rem;
}

.contact-form .form-check-label {
  font-weight: normal;
  color: var(--text-light);
}

.submit-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-hover);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.contact-info-item {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-info-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.contact-info-item h5 {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.contact-info-item p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* Blog Section */
.blog-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--light-gray);
  display: block;
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-card h4 {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.blog-card p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.blog-card .btn {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.blog-card .btn:hover {
  color: var(--primary-dark);
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 3rem auto 0;
}

.faq-item {
  background: white;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  background: var(--light-gray);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.faq-question:hover {
  background: var(--neutral-light);
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: var(--transition);
}

.faq-item.active .faq-question::after {
  content: '-';
}

.faq-question h5 {
  margin-bottom: 0;
  color: var(--text-color);
  font-weight: 600;
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active .faq-answer {
  padding: 1.5rem;
  max-height: 200px;
}

.faq-answer p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* Gallery Section */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: var(--box-shadow-hover);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Footer */
footer {
  background: var(--dark-gray);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h5 {
  margin-bottom: 1rem;
  color: white;
}

.footer-section p,
.footer-section a {
  color: var(--neutral-light);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--primary-color);
}

.footer-policies {
  margin-bottom: 1rem;
}

.footer-policies a {
  margin-right: 1rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.footer-bottom {
  border-top: 1px solid var(--neutral-dark);
  padding-top: 1rem;
  text-align: center;
}

.footer-bottom p {
  margin-bottom: 0;
  color: var(--neutral-light);
  font-size: 0.9rem;
}

/* Breadcrumb */
.breadcrumb-container {
  background: var(--light-gray);
  padding: 2rem 0;
  margin-top: 80px;
}

.breadcrumb-image {
  text-align: center;
}

.breadcrumb-image img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--box-shadow);
  background: var(--primary-color);
  display: inline-block;
}

/* Space Page */
#space {
  min-height: 80vh;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-light);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mt-5 {
  margin-top: 3rem;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Button Styles */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-hover);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: white;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-hover);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Image Loading Optimization */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Performance Optimizations */
.hero-blob,
.service-card,
.feature-item,
.priceplan-card,
.team-member,
.review-card,
.casestudy-card,
.process-step,
.timeline-item,
.career-card,
.coreinfo-card,
.blog-card,
.faq-item,
.gallery-item,
.page-element {
  will-change: transform;
}

/* Prevent layout shift */
.service-card img,
.blog-card img,
.team-member img,
.gallery-item img {
  aspect-ratio: attr(width) / attr(height);
}

/* Smooth font rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Additional Page Styles */
.page-section {
  padding: 4rem 0;
}

.page-section:nth-child(even) {
  background: var(--light-gray);
}

.page-section h2 {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.page-section h3 {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.page-section p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.page-elements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.page-element {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.page-element:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.page-element h4 {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.page-element p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Selection Styles */
::selection {
  background: var(--primary-color);
  color: white;
}

::-moz-selection {
  background: var(--primary-color);
  color: white;
}

/* Focus Styles */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  a, a:visited {
    text-decoration: underline;
  }
  
  .hero, .section {
    break-inside: avoid;
  }
  
  .navbar, .footer {
    display: none;
  }
} 


/* 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;
    }
}
