/* ============================================
   HARLEY INNOVATION HUB - Main Stylesheet
   Modern Tech Startup Design (Stripe-inspired)
   ============================================ */

/* ----- CSS Variables ----- */
:root {
  --primary: #ff6b35;
  --primary-dark: #e65929;
  --primary-light: #ff8c52;
  --secondary: #2a2a2a;
  --accent: #ffffff;
  --gradient-1: linear-gradient(135deg, #ff6b35 0%, #ffa366 100%);
  --gradient-2: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
  --gradient-hero: linear-gradient(145deg, #ff6b35 0%, #ff8c52 50%, #ffa366 100%);
  --text-primary: #2a2a2a;
  --text-secondary: #555555;
  --text-light: #999999;
  --bg-light: #fff8f5;
  --bg-white: #ffffff;
  --border-color: #ffe8df;
  --shadow-sm: 0 2px 8px rgba(255, 107, 53, 0.1);
  --shadow-md: 0 8px 30px rgba(255, 107, 53, 0.15);
  --shadow-lg: 0 20px 60px rgba(255, 107, 53, 0.2);
  --shadow-xl: 0 30px 80px rgba(255, 107, 53, 0.25);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  position: relative;
}

html {
  overflow-x: hidden;
  width: 100%;
}

::selection {
  background: var(--primary);
  color: #fff;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ----- Section Spacing ----- */
.section-padding {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-header h2 {
  margin-bottom: 20px;
  position: relative;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  background: rgba(255, 107, 53, 0.1);
  padding: 6px 16px;
  border-radius: 50px;
}

/* ----- Buttons ----- */
.btn-primary-custom {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn-primary-custom::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-primary-custom:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(255, 107, 53, 0.4);
}

.btn-primary-custom:hover::before {
  left: 100%;
}

.btn-outline-custom {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  padding: 12px 36px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline-custom:hover {
  background: #fff;
  color: var(--secondary);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  padding: 12px 36px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline-dark:hover {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

/* ===============================
   NAVBAR
   =============================== */
.navbar {
  padding: 20px 0;
  transition: var(--transition);
  z-index: 1000;
}

.navbar.transparent {
  background: transparent !important;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 30px rgba(10, 37, 64, 0.08);
  padding: 12px 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff !important;
  letter-spacing: -0.02em;
}

.navbar.scrolled .navbar-brand {
  color: var(--text-primary) !important;
}

.navbar-brand span {
  color: var(--accent);
}

.navbar.scrolled .navbar-brand span {
  color: var(--primary);
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 20px !important;
  transition: var(--transition);
  position: relative;
}

.navbar.scrolled .nav-link {
  color: var(--text-secondary) !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #fff !important;
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--primary) !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  border-radius: 2px;
}

.navbar.scrolled .nav-link::after {
  background: var(--primary);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.navbar .btn-nav {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.navbar .btn-nav:hover {
  background: #fff;
  color: var(--secondary);
}

.navbar.scrolled .btn-nav {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.navbar.scrolled .btn-nav:hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.35);
}

.navbar-toggler {
  border: none;
  padding: 4px 8px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2810, 37, 64, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===============================
   HERO SECTION
   =============================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 20px;
  border-radius: 50px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
}

.hero-badge i {
  font-size: 0.7rem;
}

.hero-title {
  color: #fff;
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 10px;
}

.hero-title .typed-text {
  color: var(--accent);
  position: relative;
}

.typed-cursor {
  color: var(--accent);
  font-weight: 300;
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
}

.hero-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  max-width: 520px;
  margin: 25px 0 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 50px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat h3 {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.hero-stat h3 span {
  color: var(--accent);
}

.hero-stat p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin: 0;
}

/* Hero Illustration */
.hero-illustration {
  position: relative;
  z-index: 2;
}

.hero-visual {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider-wrapper {
  padding-left: 30px;
}

.hero-visual-slider {
  height: auto;
  display: block;
}

.hero-slider {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.25);
  width: 100%;
  height: 500px;
}

.hero-slider .carousel-inner,
.hero-slider .carousel-item {
  height: 100%;
}

.hero-slider .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slider-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 24px 30px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.hero-slider-overlay h5 {
  color: #fff;
  margin-bottom: 4px;
}

.hero-slider-overlay p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.hero-slider .carousel-indicators {
  margin-bottom: 12px;
}

.hero-slider .carousel-indicators [data-bs-target] {
  width: 28px;
  height: 4px;
  border-radius: 999px;
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
  width: 42px;
  height: 42px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
}

.hero-slider .carousel-control-prev {
  left: 14px;
}

.hero-slider .carousel-control-next {
  right: 14px;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  color: #fff;
  animation: float 6s ease-in-out infinite;
  transition: var(--transition);
}

.floating-card:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.25);
}

.floating-card i {
  font-size: 1.8rem;
  margin-bottom: 10px;
  display: block;
  color: var(--accent);
}

.floating-card h5 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.floating-card p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  margin: 0;
}

.card-1 { top: 10%; left: 5%; animation-delay: 0s; }
.card-2 { top: 5%; right: 10%; animation-delay: 1s; }
.card-3 { bottom: 25%; left: 0%; animation-delay: 2s; }
.card-4 { bottom: 10%; right: 5%; animation-delay: 3s; }

.center-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--gradient-1);
  opacity: 0.15;
  filter: blur(40px);
  position: absolute;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Hero Gradient Orbs */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  z-index: 0;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -100px;
  right: -100px;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  bottom: -100px;
  left: -100px;
}

/* ===============================
   SERVICES SECTION
   =============================== */
.services-section {
  background: var(--bg-light);
}

.service-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 45px 35px;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  background: rgba(255, 107, 53, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: var(--transition);
}

.service-icon i {
  font-size: 1.8rem;
  color: var(--primary);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary);
}

.service-card:hover .service-icon i {
  color: #fff;
}

.service-card h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.service-card p {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 20px;
}

.service-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.service-link:hover {
  gap: 12px;
}

/* ===============================
   ABOUT SECTION
   =============================== */
.about-section {
  background: var(--bg-white);
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-image-placeholder {
  width: 100%;
  height: 450px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.about-image-placeholder:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 30px 80px rgba(255, 107, 53, 0.2),
              0 0 0 1px rgba(255, 107, 53, 0.1),
              0 0 100px rgba(255, 107, 53, 0.15);
}

/* Animated Gradient Background */
.gradient-bg {
  position: absolute;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    rgba(255, 107, 53, 0.15) 0%,
    rgba(255, 163, 102, 0.1) 25%,
    rgba(99, 91, 255, 0.08) 50%,
    rgba(255, 107, 53, 0.12) 75%,
    rgba(255, 107, 53, 0.15) 100%
  );
  animation: gradientMove 15s ease infinite;
  opacity: 0.8;
}

@keyframes gradientMove {
  0%, 100% {
    transform: translate(-25%, -25%) rotate(0deg);
  }
  50% {
    transform: translate(-75%, -75%) rotate(180deg);
  }
}

/* Glassmorphism Layer */
.glass-layer {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  background: rgba(255, 255, 255, 0.02);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

/* Icon Container */
.icon-container {
  position: relative;
  z-index: 10;
  animation: float 4s ease-in-out infinite;
  transition: transform 0.3s ease-out;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.icon-container i {
  font-size: 5rem;
  color: #ff6b35;
  filter: drop-shadow(0 10px 30px rgba(255, 107, 53, 0.4));
  animation: pulse 3s ease-in-out infinite;
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

/* Icon Glow */
.icon-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.3) 0%, transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.8;
  }
}

/* Floating Particles */
.particle {
  position: absolute;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.6), rgba(255, 163, 102, 0.3));
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: particleFloat 8s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.particle-1 {
  width: 8px;
  height: 8px;
  top: 20%;
  left: 15%;
  animation-delay: 0s;
  animation-duration: 6s;
}

.particle-2 {
  width: 12px;
  height: 12px;
  top: 60%;
  left: 80%;
  animation-delay: 1.5s;
  animation-duration: 7s;
}

.particle-3 {
  width: 6px;
  height: 6px;
  top: 40%;
  left: 70%;
  animation-delay: 3s;
  animation-duration: 8s;
}

.particle-4 {
  width: 10px;
  height: 10px;
  top: 75%;
  left: 25%;
  animation-delay: 4.5s;
  animation-duration: 6.5s;
}

@keyframes particleFloat {
  0%, 100% {
    transform: translate(0, 0) scale(0);
    opacity: 0;
  }
  25% {
    opacity: 0.8;
    transform: translate(10px, -20px) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translate(-15px, -40px) scale(1.2);
  }
  75% {
    opacity: 0.4;
    transform: translate(20px, -60px) scale(0.8);
  }
}

/* Grid Overlay */
.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 107, 53, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 53, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
  pointer-events: none;
}

/* Hover effect for particles */
.about-image-placeholder:hover .particle {
  animation-duration: 4s;
}

.about-image-placeholder:hover .icon-container i {
  transform: scale(1.1);
  color: #ffa366;
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--primary);
  color: #fff;
  padding: 25px 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  text-align: center;
  z-index: 2;
}

.experience-badge h3 {
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 2px;
}

.experience-badge p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  margin: 0;
}

.about-content {
  padding-left: 40px;
}

.about-content h2 {
  margin-bottom: 20px;
}

.about-content .lead {
  margin-bottom: 30px;
}

.about-features {
  list-style: none;
  margin: 30px 0;
  padding: 0;
}

.about-features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.about-features li i {
  color: var(--primary);
  font-size: 1.1rem;
  margin-top: 4px;
  flex-shrink: 0;
}

/* ===============================
   TEAM SECTION
   =============================== */
.team-section {
  background: var(--bg-light);
}

.team-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  height: 100%;
}

.team-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.team-image {
  width: 100%;
  height: 350px;
  overflow: hidden;
  position: relative;
  background: var(--gradient-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-image img {
  transform: scale(1.08);
}

.team-avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-avatar-placeholder img.team-avatar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

.team-full-image .team-avatar-placeholder img.team-avatar {
  object-fit: contain;
}

.team-avatar-placeholder i {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.4);
}

.team-social {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(10, 37, 64, 0.8));
  padding: 30px 20px 15px;
  display: flex;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}

.team-card:hover .team-social {
  opacity: 1;
  transform: translateY(0);
}

.team-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  transition: var(--transition);
}

.team-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.team-info {
  padding: 25px;
  text-align: center;
}

.team-info h4 {
  margin-bottom: 4px;
  font-size: 1.15rem;
}

.team-info p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
}

/* ===============================
   CTA SECTION
   =============================== */
.cta-section {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.1;
  filter: blur(100px);
  top: -200px;
  right: -200px;
}

.cta-section::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.1;
  filter: blur(100px);
  bottom: -200px;
  left: -100px;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 20px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* ===============================
   FOOTER
   =============================== */
.footer {
  background: var(--secondary);
  padding: 80px 0 0;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  display: inline-block;
}

.footer-brand span {
  color: var(--accent);
}

.footer-description {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
  max-width: 300px;
  margin-bottom: 24px;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

.footer h5 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
}

.footer-contact li i {
  color: var(--accent);
  margin-top: 4px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  margin-top: 60px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
  margin: 0;
}

/* ===============================
   PAGE HEADERS (Inner Pages)
   =============================== */
.page-header {
  background: var(--gradient-hero);
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.08;
  filter: blur(100px);
  top: -200px;
  right: -100px;
}

.page-header h1 {
  color: #fff;
  margin-bottom: 16px;
}

.page-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.15rem;
  max-width: 600px;
}

.page-header .breadcrumb {
  background: none;
  margin-bottom: 20px;
}

.page-header .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.page-header .breadcrumb-item.active {
  color: var(--accent);
  font-size: 0.9rem;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.3);
}

/* ===============================
   CONTACT PAGE
   =============================== */
.contact-info-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 35px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  height: 100%;
  text-align: center;
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.contact-icon {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: rgba(255, 107, 53, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.contact-icon i {
  font-size: 1.5rem;
  color: var(--primary);
}

.contact-form {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 50px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.contact-form .form-control,
.contact-form .form-select {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--bg-light);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
  background: #fff;
}

.contact-form label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 400px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-wrapper i {
  font-size: 3rem;
  color: var(--text-light);
}

/* ===============================
   SERVICES PAGE (Detailed)
   =============================== */
.service-detail-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 50px;
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
  transition: var(--transition);
}

.service-detail-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-detail-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: rgba(255, 107, 53, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.service-detail-icon i {
  font-size: 2rem;
  color: var(--primary);
}

.service-features {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--text-secondary);
}

.service-features li i {
  color: var(--primary);
  font-size: 0.85rem;
}

/* ===============================
   PROCESS SECTION
   =============================== */
.process-step {
  text-align: center;
  padding: 30px 20px;
  position: relative;
}

.process-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 20px;
}

.process-step h4 {
  margin-bottom: 10px;
}

.process-step p {
  font-size: 0.95rem;
}

/* ===============================
   SCROLL TO TOP
   =============================== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.35);
  z-index: 999;
  border: none;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ===============================
   PRELOADER
   =============================== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===============================
   RESPONSIVE
   =============================== */
@media (max-width: 991.98px) {
  .section-padding {
    padding: 80px 0;
  }

  .section-header {
    margin-bottom: 50px;
  }

  .hero-section {
    padding-top: 100px;
    text-align: center;
    min-height: auto;
    padding-bottom: 80px;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    height: 350px;
    margin-top: 50px;
  }

  .hero-slider-wrapper {
    padding-left: 0;
  }

  .hero-visual-slider {
    height: auto;
    margin-top: 40px;
  }

  .hero-slider .carousel-item img {
    height: 100%;
  }

  .hero-slider {
    height: 360px;
  }

  .floating-card {
    padding: 15px 20px;
  }

  .about-content {
    padding-left: 0;
    margin-top: 50px;
  }

  .experience-badge {
    bottom: -10px;
    right: 10px;
    padding: 20px 25px;
  }

  .cta-section {
    padding: 80px 0;
  }

  .contact-form {
    padding: 30px;
  }

  .navbar-collapse {
    background: rgba(255, 107, 53, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }

  .navbar.scrolled .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
  }

  .navbar-nav .nav-link {
    padding: 12px 20px !important;
    text-align: center;
  }

  .navbar .btn-nav {
    width: 100%;
    margin-top: 10px;
  }

  /* Better service cards on tablet */
  .service-card {
    margin-bottom: 20px;
  }

  /* Team cards spacing */
  .team-card {
    margin-bottom: 30px;
  }
}

@media (max-width: 767.98px) {
  /* Typography adjustments */
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }

  .typed-cursor {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .hero-stats {
    gap: 30px;
    flex-wrap: wrap;
  }

  .hero-stat h3 {
    font-size: 1.5rem;
  }

  .hero-visual {
    height: 280px;
  }

  .hero-slider .carousel-item img {
    height: 100%;
  }

  .hero-slider {
    height: 300px;
  }

  .hero-slider-overlay {
    padding: 16px 16px 22px;
  }

  .hero-slider-overlay h5 {
    font-size: 1rem;
  }

  .hero-slider-overlay p {
    font-size: 0.85rem;
  }

  .hero-slider .carousel-control-prev,
  .hero-slider .carousel-control-next {
    width: 36px;
    height: 36px;
  }

  .floating-card {
    padding: 12px 16px;
  }

  .floating-card h5 {
    font-size: 0.85rem;
  }

  .floating-card i {
    font-size: 1.4rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.2rem; }

  p {
    font-size: 1rem;
  }

  .lead {
    font-size: 1.1rem;
  }

  .service-detail-card {
    padding: 30px 20px;
  }

  /* Better button sizing */
  .btn-primary-custom,
  .btn-outline-custom,
  .btn-outline-dark {
    padding: 12px 28px;
    font-size: 0.95rem;
  }

  /* Service cards */
  .service-card {
    padding: 35px 25px;
  }

  /* About section */
  .about-image-placeholder {
    height: 350px;
  }
  
  .icon-container i {
    font-size: 4rem;
  }
  
  .glass-layer {
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
  }
  
  .particle {
    display: none;
  }

  .about-features li {
    font-size: 0.95rem;
  }

  /* Footer adjustments */
  .footer {
    padding: 60px 0 0;
  }

  .footer h5 {
    margin-top: 30px;
  }

  /* Page header */
  .page-header {
    padding: 140px 0 80px;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .page-header p {
    font-size: 1rem;
  }
}

@media (max-width: 575.98px) {
  /* Extra small devices - phones */
  body {
    font-size: 15px;
  }

  /* Hero section */
  .hero-section {
    padding-top: 90px;
    padding-bottom: 60px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .typed-cursor {
    font-size: 1.75rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-slider .carousel-item img {
    height: 100%;
  }

  .hero-slider {
    height: 240px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
  }

  .hero-stat {
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-buttons .btn-primary-custom,
  .hero-buttons .btn-outline-custom {
    width: 100%;
    justify-content: center;
  }

  /* Section spacing */
  .section-padding {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }
  h4 { font-size: 1rem; }

  p {
    font-size: 0.95rem;
  }

  .lead {
    font-size: 1rem;
  }

  /* Buttons - better touch targets */
  .btn-primary-custom,
  .btn-outline-custom,
  .btn-outline-dark {
    padding: 14px 24px;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }

  /* Navbar */
  .navbar-brand {
    font-size: 1.3rem;
  }

  /* Service cards */
  .service-card {
    padding: 30px 20px;
  }

  .service-icon {
    width: 60px;
    height: 60px;
  }

  .service-icon i {
    font-size: 1.5rem;
  }

  /* About section */
  .about-image-placeholder {
    height: 300px;
  }
  
  .icon-container i {
    font-size: 3.5rem;
  }
  
  .glass-layer {
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
  
  .grid-overlay {
    background-size: 30px 30px;
  }

  .experience-badge {
    position: static;
    margin-top: 20px;
    display: inline-block;
  }

  .about-features {
    margin: 20px 0;
  }

  /* Team section */
  .team-image {
    height: 280px;
  }

  .team-info h4 {
    font-size: 1.05rem;
  }

  .team-info p {
    font-size: 0.9rem;
  }

  /* CTA section */
  .cta-section {
    padding: 60px 0;
  }

  .cta-content h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .cta-content p {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  /* Footer */
  .footer {
    padding: 50px 0 0;
  }

  .footer-brand {
    font-size: 1.3rem;
  }

  .footer-description {
    font-size: 0.9rem;
  }

  .footer h5 {
    font-size: 0.95rem;
    margin-top: 25px;
    margin-bottom: 20px;
  }

  .footer-links a,
  .footer-contact li {
    font-size: 0.9rem;
  }

  .footer-bottom {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
  }

  .footer-bottom p {
    font-size: 0.85rem;
  }

  .footer-bottom .col-md-6 {
    margin-bottom: 10px;
  }

  /* Contact page */
  .contact-form {
    padding: 25px 20px;
  }

  .contact-info-card {
    padding: 25px 20px;
    margin-bottom: 20px;
  }

  /* Page header */
  .page-header {
    padding: 120px 0 60px;
  }

  .page-header h1 {
    font-size: 1.75rem;
  }

  .page-header p {
    font-size: 0.95rem;
  }

  /* Scroll to top button */
  .scroll-top {
    width: 44px;
    height: 44px;
    bottom: 20px;
    right: 20px;
    font-size: 1rem;
  }

  /* Process steps */
  .process-step {
    padding: 20px 15px;
    margin-bottom: 20px;
  }

  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
  }

  /* Service detail cards */
  .service-detail-card {
    padding: 25px 20px;
    margin-bottom: 20px;
  }

  .service-detail-icon {
    width: 70px;
    height: 70px;
  }

  .service-detail-icon i {
    font-size: 1.8rem;
  }
}

/* Extra small devices - very small phones */
@media (max-width: 374.98px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .typed-cursor {
    font-size: 1.5rem;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.3rem; }

  .navbar-brand {
    font-size: 1.2rem;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 6px 16px;
  }

  .section-tag {
    font-size: 0.75rem;
  }
}

/* ===============================
   UTILITY CLASSES
   =============================== */
.text-gradient {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient {
  background: var(--gradient-1);
}

.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-5px);
}

/* Animations for inner pages */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   PROMOTIONAL POPUP MODAL
   =============================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #ffffff;
  border-radius: 20px;
  max-width: 550px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.7);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
              opacity 0.3s ease;
  overflow: hidden;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #666;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-close:hover {
  background: #ff6b35;
  color: white;
  transform: rotate(90deg);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.modal-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #ff6b35 0%, #ffa366 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 48px;
  gap: 10px;
}

.modal-image-placeholder span {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.modal-content {
  padding: 40px 35px;
}

.modal-badge {
  display: inline-block;
  background: rgba(255, 107, 53, 0.1);
  color: #ff6b35;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 26px;
  font-weight: 700;
  color: #2a2a2a;
  margin-bottom: 14px;
  line-height: 1.3;
}

.modal-description {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 28px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.modal-actions .btn-primary {
  background: #ff6b35;
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.25);
}

.modal-actions .btn-primary:hover {
  background: #e65929;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
}

.modal-actions .btn-secondary {
  background: transparent;
  color: #666;
  border: 2px solid #e0e0e0;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 140px;
}

.modal-actions .btn-secondary:hover {
  border-color: #ff6b35;
  color: #ff6b35;
  background: rgba(255, 107, 53, 0.05);
}

@media (max-width: 600px) {
  .modal-container {
    max-width: 95%;
    border-radius: 16px;
  }

  .modal-image {
    height: 200px;
  }

  .modal-content {
    padding: 25px 20px;
  }

  .modal-badge {
    font-size: 11px;
    padding: 5px 12px;
  }

  .modal-title {
    font-size: 20px;
  }

  .modal-description {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .modal-actions {
    flex-direction: column;
    gap: 10px;
  }

  .modal-actions .btn-primary,
  .modal-actions .btn-secondary {
    width: 100%;
    min-width: auto;
    padding: 13px 24px;
  }

  .modal-close {
    width: 32px;
    height: 32px;
    font-size: 18px;
    top: 12px;
    right: 12px;
  }
}

/* Prevent zoom on input fields - iOS Safari */
@media (max-width: 767.98px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* Better touch targets for mobile */
@media (hover: none) {
  a, button, .btn, .nav-link {
    -webkit-tap-highlight-color: rgba(255, 107, 53, 0.2);
  }
}

/* Landscape orientation on phones */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding: 80px 0 60px;
  }

  .hero-visual {
    display: none;
  }

  .page-header {
    padding: 100px 0 60px;
  }
}

/* ===============================
   ECOSYSTEM CARDS
   =============================== */
.ecosystem-card {
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.ecosystem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(255, 163, 102, 0.05) 100%);
  transition: left 0.5s ease;
  z-index: 0;
}

.ecosystem-card:hover::before {
  left: 100%;
}

.ecosystem-card:hover {
  border-color: var(--primary);
  transform: translateY(-12px);
  box-shadow: 0 25px 70px rgba(255, 107, 53, 0.2);
}

.ecosystem-number {
  position: absolute;
  top: -25px;
  right: 20px;
  font-size: 5rem;
  font-weight: 900;
  color: rgba(255, 107, 53, 0.08);
  line-height: 1;
  z-index: 0;
}

.ecosystem-icon {
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 163, 102, 0.1) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.ecosystem-icon i {
  font-size: 1.8rem;
  color: var(--primary);
  transition: var(--transition);
}

.ecosystem-card:hover .ecosystem-icon {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(255, 163, 102, 0.15) 100%);
  transform: scale(1.1) rotate(-5deg);
}

.ecosystem-card:hover .ecosystem-icon i {
  transform: scale(1.15);
  color: var(--primary-dark);
}

.ecosystem-card h3 {
  font-size: 1.35rem;
  margin-bottom: 15px;
  color: var(--text-primary);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.ecosystem-card p {
  font-size: 0.95rem;
  margin-bottom: 25px;
  flex-grow: 1;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

.ecosystem-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
  transition: var(--transition);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.ecosystem-link i {
  transition: var(--transition);
  transform: translateX(0);
}

.ecosystem-card:hover .ecosystem-link {
  color: var(--primary-dark);
  border-bottom-color: var(--primary);
}

.ecosystem-card:hover .ecosystem-link i {
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
  .ecosystem-card {
    padding: 30px;
  }

  .ecosystem-number {
    font-size: 3rem;
    top: -15px;
    right: 15px;
  }

  .ecosystem-icon {
    width: 55px;
    height: 55px;
  }

  .ecosystem-icon i {
    font-size: 1.5rem;
  }

  .ecosystem-card h3 {
    font-size: 1.2rem;
  }

  .ecosystem-card p {
    font-size: 0.9rem;
  }
}

/* ===============================
   TRAINING CARDS
   =============================== */
.training-card {
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 35px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.training-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.03) 0%, rgba(255, 163, 102, 0.03) 100%);
  transition: left 0.5s ease;
  z-index: 0;
}

.training-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 1;
}

.training-card:hover::after {
  transform: scaleX(1);
}

.training-card:hover::before {
  left: 100%;
}

.training-card:hover {
  border-color: var(--primary);
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(255, 107, 53, 0.15);
}

.training-featured {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.02) 0%, rgba(255, 163, 102, 0.02) 100%);
}

.training-featured:hover {
  box-shadow: 0 25px 70px rgba(255, 107, 53, 0.25);
}

.training-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gradient-1);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 5;
}

.training-header {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.training-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.12) 0%, rgba(255, 163, 102, 0.12) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.training-card:hover .training-icon {
  transform: scale(1.1) rotate(-8deg);
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.18) 0%, rgba(255, 163, 102, 0.18) 100%);
}

.training-icon i {
  font-size: 1.6rem;
  color: var(--primary);
  transition: var(--transition);
}

.training-card:hover .training-icon i {
  transform: scale(1.15);
  color: var(--primary-dark);
}

.training-meta {
  flex-grow: 1;
}

.training-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 107, 53, 0.1);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 6px;
}

.training-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0;
  color: var(--text-primary);
}

.training-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.training-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
  flex-grow: 1;
}

.training-details {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  padding: 15px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.training-details span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.training-details i {
  color: var(--primary);
  font-size: 1rem;
}

.training-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--border-color);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  width: fit-content;
  text-decoration: none;
}

.training-btn i {
  transition: var(--transition);
  transform: translateX(0);
}

.training-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateX(2px);
}

.training-btn:hover i {
  transform: translateX(4px);
}

.btn-featured {
  background: var(--gradient-1);
  color: white;
  border-color: transparent;
}

.btn-featured:hover {
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.training-wide {
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .training-wide {
    grid-column: auto;
  }
  
  .training-card {
    padding: 25px;
  }

  .training-icon {
    width: 50px;
    height: 50px;
  }

  .training-icon i {
    font-size: 1.3rem;
  }

  .training-meta {
    flex: 1;
  }

  .training-card h3 {
    font-size: 1.1rem;
  }

  .training-details {
    flex-direction: column;
    gap: 8px;
  }
}

/* ===============================
   SKILLS SHOWCASE
   =============================== */
.skills-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-top: 40px;
}

.skill-badge {
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
}

.skill-badge:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

@media (max-width: 768px) {
  .skills-showcase {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
  }

  .skill-badge {
    font-size: 0.85rem;
    padding: 10px 16px;
  }
}
