/* Modern 3D and Reactive Effects CSS */

/* Enhanced CSS Variables */
:root {
  --primary-gradient: linear-gradient(135deg, #e9692c, #ff8c42);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-3d: 0 20px 40px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 30px 60px rgba(0, 0, 0, 0.2);
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-primary: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;
}

/* Video Background Container */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
}

.video-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.video-background video.active {
  opacity: 0.4; /* Increased opacity for better visibility */
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.5), rgba(233, 105, 44, 0.1));
  z-index: -1;
  pointer-events: none;
}

/* 3D Canvas Container */
.three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

/* Glassmorphism Effects - Balanced */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--shadow-3d);
  transition: var(--transition-smooth);
  will-change: transform;
}

.glass-card:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: var(--shadow-hover);
  background: rgba(255, 255, 255, 0.15);
}

/* Enhanced Header - Modern Navigation */
.header {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
  transform: translateZ(0);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 1.5rem 8%;
}

/* Navigation Enhancement */
.header .navbar {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Active Navigation State */
.header .navbar a.active {
  color: var(--yellow);
}

.header .navbar a.active::before {
  width: 100%;
}

/* Navigation Animation on Load */
.header .navbar a {
  opacity: 0;
  transform: translateY(-20px);
  animation: navSlideIn 0.6s ease forwards;
}

.header .navbar a:nth-child(1) { animation-delay: 0.1s; }
.header .navbar a:nth-child(2) { animation-delay: 0.2s; }
.header .navbar a:nth-child(3) { animation-delay: 0.3s; }
.header .navbar a:nth-child(4) { animation-delay: 0.4s; }
.header .navbar a:nth-child(5) { animation-delay: 0.5s; }
.header .navbar a:nth-child(6) { animation-delay: 0.6s; }

@keyframes navSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header.scrolled {
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(30px);
}

/* Floating Animation */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(1deg); }
  66% { transform: translateY(5px) rotate(-1deg); }
}

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

/* Parallax Sections */
.parallax-section {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

/* Enhanced Buttons */
.btn-primary {
  position: relative;
  background: linear-gradient(135deg, #e9692c, #ff8c42);
  border: none;
  border-radius: 50px;
  padding: 18px 45px;
  color: white;
  font-weight: 700;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 15px 35px rgba(233, 105, 44, 0.4);
  text-decoration: none;
  display: inline-block;
}

.btn-secondary {
  position: relative;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50px;
  padding: 16px 43px;
  color: white;
  font-weight: 600;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-block;
  backdrop-filter: blur(10px);
}

.btn-3d {
  position: relative;
  background: var(--primary-gradient);
  border: none;
  border-radius: 50px;
  padding: 15px 40px;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(233, 105, 44, 0.3);
}

.btn-primary::before,
.btn-3d::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before,
.btn-3d:hover::before {
  left: 100%;
}

.btn-primary:hover,
.btn-3d:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 20px 40px rgba(233, 105, 44, 0.5);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #e9692c;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 30px rgba(233, 105, 44, 0.3);
}

/* Particle System */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(233, 105, 44, 0.6);
  border-radius: 50%;
  animation: particleFloat 15s linear infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Enhanced Cards */
.modern-card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 30px;
  margin: 20px 0;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.modern-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.modern-card:hover::before {
  transform: scaleX(1);
}

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

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #111, #333);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 1s ease;
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(233, 105, 44, 0.3);
  border-top: 3px solid #e9692c;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Magnetic Cursor Styles */
.magnetic-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background: rgba(233, 105, 44, 0.8);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  mix-blend-mode: difference;
}

.cursor-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
}

.magnetic-cursor.cursor-hover {
  transform: scale(2);
  background: rgba(233, 105, 44, 0.6);
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #e9692c, #ff8c42);
  z-index: 9999;
  transition: width 0.1s ease;
}

/* Enhanced Hero Section */
.hero-slide {
  position: relative;
  z-index: 1;
  padding: 0 5%;
}

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

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(233, 105, 44, 0.9), rgba(255, 140, 66, 0.9));
  padding: 8px 20px;
  border-radius: 25px;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-text {
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2rem;
  color: white;
}

.title-line {
  display: block;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
}

.title-line.highlight {
  background: linear-gradient(135deg, #e9692c, #ff8c42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-description {
  font-family: var(--font-primary);
  font-size: 1.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.7;
  margin-bottom: 3rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  max-width: 600px;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: #e9692c;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.stat-label {
  display: block;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.4rem;
  font-weight: 500;
}

.feature-item i {
  color: #e9692c;
  font-size: 1.8rem;
  width: 30px;
}

.hero-testimonial {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 15px;
  border-left: 4px solid #e9692c;
  margin-bottom: 3rem;
}

.hero-testimonial blockquote {
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.95);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.hero-testimonial cite {
  color: #e9692c;
  font-size: 1.3rem;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Services Section Enhancement */
.services .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.services .box img {
  width: 80px;
  height: 80px;
  margin-bottom: 2rem;
  filter: drop-shadow(0 10px 20px rgba(233, 105, 44, 0.3));
  transition: var(--transition-smooth);
}

.services .box:hover img {
  transform: scale(1.1) rotate(5deg);
}

/* Projects Section Enhancement */
.projects .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.projects .box .image {
  overflow: hidden;
  border-radius: 15px;
  position: relative;
}

.projects .box .image img {
  transition: var(--transition-smooth);
}

.projects .box:hover .image img {
  transform: scale(1.1);
}

/* About Section Image */
.about-image {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: var(--transition-smooth);
  border-radius: 20px;
}

.about-image:hover img {
  transform: scale(1.05);
}

/* About Section Stats */
.about .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.about .box h3 {
  font-size: 3rem;
  color: var(--yellow);
  margin-bottom: 1rem;
}

/* Contact Form Enhancement */
.contact form.modern-card {
  max-width: 500px;
}

.contact .box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 15px;
  margin: 10px 0;
  color: white;
  font-size: 1.6rem;
  transition: var(--transition-smooth);
}

.contact .box:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--yellow);
  box-shadow: 0 0 20px rgba(233, 105, 44, 0.3);
}

/* Enhanced Typography */
.heading {
  position: relative;
  overflow: hidden;
}

.heading::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

/* Performance Optimizations */
.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazy.loaded {
  opacity: 1;
}

/* 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;
  }

  .floating,
  .particle {
    animation: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .glass-card,
  .modern-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #000;
  }

  .btn-3d {
    border: 2px solid #000;
  }
}

/* Performance Optimizations for Mobile Only */
@media (max-width: 480px) {
  /* Only disable heavy effects on very small screens */
  .glass-card,
  .modern-card {
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
  }

  .three-canvas {
    display: none !important;
  }

  .magnetic-cursor {
    display: none !important;
  }

  .particle:nth-child(n+11) {
    display: none !important;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .glass-card {
    margin: 10px;
    padding: 20px;
  }

  .btn-3d {
    padding: 12px 30px;
    font-size: 14px;
  }

  .modern-card {
    padding: 20px;
    margin: 15px 0;
  }

  .home .content h3 {
    font-size: 2.5rem;
  }

  .home .content p {
    font-size: 1.4rem;
  }

  .services .box-container,
  .projects .box-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Navigation Mobile Styles */
@media (max-width: 991px) {
  .header .navbar {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .header .navbar.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .header .navbar a {
    margin: 1rem 0;
    font-size: 1.8rem;
    text-align: center;
    padding: 1.5rem;
    border-radius: 10px;
    background: rgba(233, 105, 44, 0.05);
  }

  .header .navbar a:hover {
    background: rgba(233, 105, 44, 0.1);
  }

  .header #menu-btn {
    display: block;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 1.5rem 5%;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-description {
    font-size: 1.6rem;
  }

  .hero-stats {
    gap: 2rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 1.5rem;
  }

  .btn-primary,
  .btn-secondary {
    text-align: center;
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    text-align: center;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-description {
    font-size: 1.4rem;
  }

  .hero-stats {
    justify-content: center;
    gap: 1.5rem;
  }

  .hero-features {
    align-items: center;
  }

  .heading {
    font-size: 2rem;
  }

  .services .box-container,
  .projects .box-container,
  .about .box-container {
    gap: 1.5rem;
  }
}

/* About Page Styles */
.about-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5%;
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
  color: var(--black);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

.story-content {
  padding: 3rem;
}

.story-text {
  font-size: 1.6rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--light-color);
}

.story-highlights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--black);
}

.highlight-item i {
  color: var(--yellow);
  font-size: 1.8rem;
}

.story-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 6rem;
}

.mission-card,
.vision-card {
  text-align: center;
  padding: 3rem;
}

.card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--yellow), #ff8c42);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.card-icon i {
  font-size: 2.5rem;
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 6rem;
}

.stat-card {
  text-align: center;
  padding: 3rem 2rem;
}

.stat-icon {
  width: 80px;
  height: 80px;
  background: rgba(233, 105, 44, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.stat-icon i {
  font-size: 2.5rem;
  color: var(--yellow);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--yellow);
  display: block;
  margin-bottom: 1rem;
}

.stat-label {
  font-size: 1.4rem;
  color: var(--light-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 6rem;
}

.team-card {
  text-align: center;
  padding: 2rem;
}

.team-image {
  margin-bottom: 2rem;
}

.team-image img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--yellow);
}

.team-info h4 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.team-role {
  font-size: 1.4rem;
  color: var(--yellow);
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team-description {
  font-size: 1.3rem;
  color: var(--light-color);
  line-height: 1.6;
}

.cta-section {
  padding: 8rem 0;
}

.cta-content {
  text-align: center;
  padding: 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 2rem;
}

.cta-content p {
  font-size: 1.6rem;
  color: var(--light-color);
  margin-bottom: 3rem;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Contact Page Styles */
.contact-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5%;
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-bottom: 6rem;
}

.contact-card {
  text-align: center;
  padding: 3rem 2rem;
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--yellow), #ff8c42);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.contact-icon i {
  font-size: 2.5rem;
  color: white;
}

.contact-card h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1rem;
}

.contact-card p {
  font-size: 1.4rem;
  color: var(--light-color);
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-details a {
  color: var(--yellow);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-details a:hover {
  color: var(--black);
  transform: translateY(-2px);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 6rem;
}

.form-container {
  padding: 3rem;
}

.form-container h3 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 3rem;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 1.5rem 1.5rem 1.5rem 4rem;
  border: 2px solid rgba(233, 105, 44, 0.2);
  border-radius: 10px;
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 20px rgba(233, 105, 44, 0.2);
  background: white;
}

.form-group i {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--yellow);
  font-size: 1.6rem;
}

.map-container {
  padding: 2rem;
}

.contact-map {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 15px;
}

.business-hours {
  padding: 6rem 0;
}

.hours-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem;
}

.hours-content h3 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 3rem;
}

.hours-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(233, 105, 44, 0.2);
}

.day {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--black);
}

.time {
  font-size: 1.4rem;
  color: var(--yellow);
  font-weight: 600;
}

.hours-note {
  font-size: 1.3rem;
  color: var(--light-color);
  font-style: italic;
  margin-top: 2rem;
}

/* Advanced WhatsApp Chatbot Styles */
.chatbot-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  font-family: var(--font-primary);
}

/* Chat Toggle Button */
.chat-toggle {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  animation: pulse 3s infinite;
}

.chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

.chat-icon i {
  font-size: 2.8rem;
  color: white;
}

.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff4757;
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  animation: bounce 2s infinite;
  border: 2px solid white;
}

/* Animations */
@keyframes pulse {
  0% { box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 8px 25px rgba(37, 211, 102, 0.7); }
  100% { box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) scale(1); }
  40% { transform: translateY(-3px) scale(1.1); }
  60% { transform: translateY(-2px) scale(1.05); }
}

/* Chat Window */
.chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  height: 550px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
  transform: scale(0.8) translateY(30px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.chat-window.active {
  transform: scale(1) translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Chat Header */
.chat-header {
  background: linear-gradient(135deg, #25D366, #128C7E);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  flex-shrink: 0;
}

.agent-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.agent-avatar img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  object-fit: cover;
}

.agent-details h4 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}

.online-status {
  font-size: 1.3rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 6px;
}

.online-status i {
  color: #4CAF50;
  font-size: 0.8rem;
  animation: pulse 2s infinite;
}

.close-chat {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-chat:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Chat Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: linear-gradient(to bottom, #f8f9fa, #ffffff);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #25D366;
  border-radius: 3px;
}

.message {
  display: flex;
  gap: 10px;
  animation: messageSlide 0.4s ease;
  max-width: 85%;
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.message.user-message {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message.bot-message {
  align-self: flex-start;
}

.message-avatar {
  flex-shrink: 0;
}

.message-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #e0e0e0;
}

.message-bubble {
  background: white;
  padding: 12px 16px;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 1.4rem;
  line-height: 1.5;
  position: relative;
}

.user-message .message-bubble {
  background: #25D366;
  color: white;
}

.message-time {
  font-size: 1.1rem;
  color: #999;
  margin-top: 4px;
  text-align: right;
}

/* Quick Actions - Horizontal Scrollable */
.quick-actions {
  padding: 12px 20px;
  display: flex;
  gap: 10px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  flex-shrink: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.quick-actions::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.action-btn {
  background: white;
  border: 1px solid #e0e0e0;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: auto;
}

.action-btn i {
  font-size: 1.4rem;
  color: #25D366;
}

.action-btn:hover {
  background: #25D366;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(37, 211, 102, 0.3);
}

.action-btn:hover i {
  color: white;
}

/* Scroll indicator animation */
.quick-actions::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 20px;
  background: linear-gradient(to right, transparent, #f8f9fa);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.quick-actions.scrollable::after {
  opacity: 1;
}

/* Smooth scrolling */
.quick-actions {
  scroll-behavior: smooth;
}

/* Chat Input Area */
.chat-input-area {
  padding: 15px 20px;
  background: white;
  border-top: 1px solid #e9ecef;
  flex-shrink: 0;
}

.input-container {
  display: flex;
  gap: 10px;
  align-items: center;
}

#messageInput {
  flex: 1;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  padding: 12px 18px;
  font-size: 1.4rem;
  outline: none;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

#messageInput:focus {
  border-color: #25D366;
  background: white;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.send-btn {
  width: 44px;
  height: 44px;
  background: #25D366;
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.send-btn:hover {
  background: #128C7E;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.send-btn:active {
  transform: scale(0.98);
}

.send-btn i {
  margin-left: 2px; /* Slight offset to center the arrow visually */
}

/* WhatsApp Connect */
.whatsapp-connect {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 18px 20px;
  text-align: center;
  border-top: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.connect-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 1.3rem;
  color: #666;
  font-weight: 500;
}

.connect-text i {
  color: #25D366;
  font-size: 1.6rem;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.4rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-link:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-link i {
  font-size: 1.8rem;
}

/* Responsive Design for New Pages */
@media (max-width: 768px) {
  .chatbot-window {
    width: 300px;
    height: 450px;
  }

  .story-grid,
  .mv-grid,
  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .team-grid,
  .stats-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .hours-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

/* Mobile Responsive Chatbot */
@media (max-width: 768px) {
  .chatbot-widget {
    bottom: 20px;
    right: 20px;
    left: 20px;
    position: fixed;
    z-index: 10000;
  }

  .chat-toggle {
    width: 56px;
    height: 56px;
    position: absolute;
    bottom: 0;
    right: 0;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }

  .chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    left: 0;
    width: 100%;
    height: 85vh;
    max-height: 600px;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .chat-window.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .chat-header {
    padding: 20px;
    border-radius: 20px 20px 0 0;
    position: relative;
  }

  .chat-header::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
  }

  .agent-avatar img {
    width: 40px;
    height: 40px;
  }

  .agent-details h4 {
    font-size: 1.5rem;
  }

  .online-status {
    font-size: 1.2rem;
  }

  .close-chat {
    width: 32px;
    height: 32px;
    font-size: 1.6rem;
  }

  .chat-messages {
    height: calc(85vh - 280px);
    min-height: 250px;
    padding: 15px;
    font-size: 1.3rem;
  }

  .message {
    max-width: 90%;
    margin-bottom: 12px;
  }

  .message-avatar img {
    width: 28px;
    height: 28px;
  }

  .message-bubble {
    padding: 12px 16px;
    font-size: 1.3rem;
    line-height: 1.5;
    border-radius: 16px;
  }

  .message-time {
    font-size: 1rem;
    margin-top: 4px;
  }

  .quick-actions {
    padding: 12px 15px;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .quick-actions::-webkit-scrollbar {
    display: none;
  }

  .action-btn {
    padding: 10px 16px;
    font-size: 1.2rem;
    min-width: 120px;
    flex-shrink: 0;
    border-radius: 25px;
    gap: 8px;
  }

  .action-btn i {
    font-size: 1.3rem;
  }

  .chat-input-area {
    padding: 15px 20px;
    background: white;
    border-radius: 0;
  }

  .input-container {
    gap: 12px;
  }

  #messageInput {
    padding: 14px 18px;
    font-size: 1.4rem;
    border-radius: 25px;
    border: 2px solid #e0e0e0;
  }

  .send-btn {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    flex-shrink: 0;
  }

  .whatsapp-connect {
    padding: 15px 20px;
    border-radius: 0;
  }

  .connect-text {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .whatsapp-link {
    padding: 12px 24px;
    font-size: 1.3rem;
    border-radius: 25px;
  }
}

@media (max-width: 480px) {
  .chatbot-widget {
    bottom: 15px;
    right: 15px;
    left: 15px;
  }

  .chat-toggle {
    width: 52px;
    height: 52px;
  }

  .chat-window {
    height: 90vh;
    max-height: 650px;
    bottom: 65px;
    border-radius: 15px 15px 0 0;
  }

  .chat-header {
    padding: 15px 20px;
  }

  .chat-header::before {
    width: 35px;
    height: 3px;
  }

  .agent-avatar img {
    width: 36px;
    height: 36px;
  }

  .agent-details h4 {
    font-size: 1.4rem;
  }

  .online-status {
    font-size: 1.1rem;
  }

  .close-chat {
    width: 28px;
    height: 28px;
    font-size: 1.4rem;
  }

  .chat-messages {
    height: calc(90vh - 300px);
    min-height: 200px;
    padding: 12px;
  }

  .message {
    max-width: 85%;
    margin-bottom: 10px;
  }

  .message-avatar img {
    width: 24px;
    height: 24px;
  }

  .message-bubble {
    padding: 10px 14px;
    font-size: 1.2rem;
    border-radius: 14px;
  }

  .message-time {
    font-size: 0.9rem;
  }

  .quick-actions {
    padding: 10px 12px;
    gap: 6px;
  }

  .action-btn {
    padding: 8px 12px;
    font-size: 1.1rem;
    min-width: 100px;
    border-radius: 20px;
  }

  .action-btn i {
    font-size: 1.2rem;
  }

  .chat-input-area {
    padding: 12px 15px;
  }

  .input-container {
    gap: 10px;
  }

  #messageInput {
    padding: 12px 16px;
    font-size: 1.3rem;
    border-radius: 20px;
  }

  .send-btn {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }

  .whatsapp-connect {
    padding: 12px 15px;
  }

  .connect-text {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .whatsapp-link {
    padding: 10px 20px;
    font-size: 1.2rem;
    border-radius: 20px;
  }
}

/* Landscape Mobile Chatbot Optimization */
@media (max-width: 768px) and (orientation: landscape) {
  .chat-window {
    height: 95vh;
    max-height: 450px;
    bottom: 60px;
  }

  .chat-header {
    padding: 12px 20px;
  }

  .chat-header::before {
    top: 6px;
    width: 30px;
    height: 3px;
  }

  .chat-messages {
    height: calc(95vh - 220px);
    min-height: 180px;
    padding: 10px;
  }

  .quick-actions {
    padding: 8px 15px;
  }

  .action-btn {
    padding: 6px 12px;
    font-size: 1.1rem;
    min-width: 90px;
  }

  .chat-input-area {
    padding: 10px 15px;
  }

  .whatsapp-connect {
    padding: 10px 15px;
  }
}

/* Ultra Small Screens (iPhone SE, etc.) */
@media (max-width: 375px) {
  .chatbot-widget {
    bottom: 10px;
    right: 10px;
    left: 10px;
  }

  .chat-toggle {
    width: 48px;
    height: 48px;
  }

  .chat-icon i {
    font-size: 2.4rem;
  }

  .notification-badge {
    width: 18px;
    height: 18px;
    font-size: 1rem;
    top: -6px;
    right: -6px;
  }

  .chat-window {
    height: 92vh;
    bottom: 60px;
    border-radius: 12px 12px 0 0;
  }

  .chat-header {
    padding: 12px 15px;
  }

  .agent-details h4 {
    font-size: 1.3rem;
  }

  .chat-messages {
    height: calc(92vh - 280px);
    padding: 10px;
  }

  .message-bubble {
    padding: 8px 12px;
    font-size: 1.1rem;
  }

  .action-btn {
    padding: 6px 10px;
    font-size: 1rem;
    min-width: 80px;
  }

  #messageInput {
    padding: 10px 14px;
    font-size: 1.2rem;
  }

  .send-btn {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }
}

/* Touch-Friendly Mobile Chatbot Improvements */
@media (hover: none) and (pointer: coarse) {
  .chat-toggle {
    min-height: 56px;
    min-width: 56px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .action-btn {
    min-height: 44px;
    min-width: 100px;
    padding: 12px 16px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .send-btn,
  .close-chat {
    min-height: 44px;
    min-width: 44px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .message-bubble {
    padding: 12px 16px;
    -webkit-user-select: text;
    user-select: text;
  }

  #messageInput {
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .chat-messages {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .quick-actions {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
}

/* iOS Safari Specific Optimizations */
@supports (-webkit-touch-callout: none) {
  .chat-window {
    /* Account for iOS Safari bottom bar */
    height: calc(85vh - env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
  }

  .chat-input-area {
    padding-bottom: calc(15px + env(safe-area-inset-bottom));
  }

  #messageInput {
    /* Prevent zoom on iOS */
    font-size: 16px;
  }
}

/* Android Chrome Specific Optimizations */
@media screen and (max-width: 768px) {
  .chat-window {
    /* Account for Android keyboard */
    max-height: calc(100vh - 100px);
  }

  .chat-messages {
    /* Smooth scrolling on Android */
    scroll-behavior: smooth;
  }
}

/* High DPI Mobile Displays */
@media (-webkit-min-device-pixel-ratio: 2) and (max-width: 768px) {
  .chat-toggle {
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .message-bubble {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  .action-btn {
    -webkit-font-smoothing: antialiased;
  }
}

/* Enhanced Super Responsive Design */
@media (max-width: 1200px) {
  .container {
    max-width: 95%;
  }

  .section-title {
    font-size: 3rem;
  }

  .hero .content h3 {
    font-size: 4rem;
  }
}

@media (max-width: 991px) {
  .header {
    padding: 1rem 2%;
  }

  .header .navbar {
    position: absolute;
    top: 99%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: all 0.3s ease;
  }

  .header .navbar.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .header .navbar a {
    display: block;
    margin: 1rem;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(52, 152, 219, 0.1);
    text-align: center;
    transition: all 0.3s ease;
  }

  .header .navbar a:hover {
    background: var(--main-color);
    color: white;
    transform: translateX(10px);
  }

  .header .icons div {
    padding: 10px;
    margin: 0 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
  }

  .section-title {
    font-size: 2.5rem;
  }

  .hero .content h3 {
    font-size: 3rem;
  }

  .hero .content p {
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 1rem 3%;
  }

  .header .logo {
    font-size: 2rem;
  }

  .header .icons div {
    padding: 8px;
    margin: 0 3px;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero .content h3 {
    font-size: 2.5rem;
  }

  .hero .content p {
    font-size: 1.3rem;
    line-height: 1.6;
  }

  .hero-actions {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  /* Mobile Header Icons Fix */
  .header .icons div i {
    font-size: 1.8rem;
  }

  /* Mobile Search and Login Forms */
  .header .search-form,
  .header .login-form {
    width: 95%;
    left: 2.5%;
    right: 2.5%;
    max-height: 80vh;
    overflow-y: auto;
  }

  /* Mobile Slider Improvements */
  .swiper-button-next,
  .swiper-button-prev {
    width: 40px !important;
    height: 40px !important;
    margin-top: -20px !important;
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 14px !important;
  }

  /* Mobile Grid Improvements */
  .services .box-container,
  .projects .box-container,
  .team .box-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about .row {
    flex-direction: column;
    gap: 2rem;
  }

  .about .image,
  .about .content {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 1rem 4%;
  }

  .header .logo {
    font-size: 1.8rem;
  }

  .header .icons {
    gap: 0.5rem;
  }

  .header .icons div {
    padding: 6px;
    margin: 0 2px;
  }

  .header .icons div i {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .hero .content h3 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero .content p {
    font-size: 1.2rem;
    line-height: 1.5;
  }

  .hero-actions .btn {
    padding: 12px 20px;
    font-size: 1.3rem;
  }

  /* Ultra Mobile Optimizations */
  .container {
    padding: 0 1rem;
  }

  section {
    padding: 3rem 0;
  }

  .box {
    padding: 2rem 1.5rem;
  }

  .btn {
    padding: 10px 18px;
    font-size: 1.2rem;
  }
}

/* Landscape Mobile Optimizations */
@media (max-width: 768px) and (orientation: landscape) {
  .hero .content h3 {
    font-size: 2.2rem;
  }

  .hero .content p {
    font-size: 1.2rem;
  }

  .header .navbar a {
    padding: 0.8rem;
    margin: 0.5rem;
  }

  .section-title {
    font-size: 2.2rem;
  }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero .content h3,
  .section-title {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  .btn,
  .box {
    -webkit-font-smoothing: antialiased;
  }
}

/* Enhanced Login Form Styles */
.login-form {
  max-height: 600px;
  overflow-y: auto;
}

.login-description {
  color: #666;
  font-size: 1.3rem;
  margin-bottom: 20px;
  text-align: center;
  font-style: italic;
}

.management-features {
  margin-top: 20px;
  padding: 15px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 10px;
  border: 1px solid #dee2e6;
}

.management-features h4 {
  color: var(--main-color);
  font-size: 1.4rem;
  margin-bottom: 10px;
  text-align: center;
}

.management-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.management-features li {
  padding: 5px 0;
  font-size: 1.2rem;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
}

.management-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--main-color);
  border-radius: 50%;
  flex-shrink: 0;
}

#login-submit {
  background: linear-gradient(135deg, var(--main-color), #2c5aa0);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin: 10px 0;
}

#login-submit:hover {
  background: linear-gradient(135deg, #2c5aa0, var(--main-color));
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.login-form a {
  color: var(--main-color);
  text-decoration: none;
  font-weight: 500;
}

.login-form a:hover {
  color: #2c5aa0;
  text-decoration: underline;
}

/* Management System Navigation Link */
.navbar .management-link {
  background: linear-gradient(135deg, var(--main-color), #2c5aa0);
  color: white !important;
  padding: 8px 16px;
  border-radius: 20px;
  margin-left: 10px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.navbar .management-link:hover {
  background: linear-gradient(135deg, #2c5aa0, var(--main-color));
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.navbar .management-link i {
  font-size: 1.2rem;
}

/* Mobile responsive for management link */
@media (max-width: 768px) {
  .navbar .management-link {
    margin-left: 0;
    margin-top: 10px;
    justify-content: center;
  }
}

/* Fix Header Component Backgrounds */
.header .icons div {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.header .icons div i {
  background: transparent !important;
  color: var(--black) !important;
  transition: all 0.3s ease;
}

.header .icons div:hover i {
  color: var(--main-color) !important;
  transform: scale(1.1);
}

/* Fix Search Form Background */
.header .search-form {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.header .search-form input {
  background: transparent !important;
  border: none !important;
}

/* Fix Login Form Background */
.header .login-form {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Fix Slider Arrow Backgrounds */
.swiper-button-next,
.swiper-button-prev {
  background: rgba(52, 152, 219, 0.9) !important;
  color: white !important;
  border-radius: 50% !important;
  width: 50px !important;
  height: 50px !important;
  margin-top: -25px !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--main-color) !important;
  transform: scale(1.1) !important;
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4) !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px !important;
  font-weight: bold !important;
}
