/* ===== CSS Variables ===== */
:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #e0f2fe;
  --accent: #06b6d4;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-400: #9ca3af;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
}

/* ===== Reset ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-700);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
}

/* ===== Section Tags ===== */
.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-light), rgba(14,165,233,0.15), var(--primary-light));
  background-size: 200% 100%;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  animation: shimmer 3s ease-in-out infinite;
  border: 1px solid rgba(14,165,233,0.15);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 16px;
  font-weight: 800;
}

.section-header p {
  color: var(--gray-600);
  font-size: 1.1rem;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: var(--shadow);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-img {
  height: 50px;
  width: auto;
  transition: all var(--transition);
  filter: brightness(0) invert(1);
}

.navbar.scrolled .logo-img {
  height: 42px;
  filter: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 50px;
  transition: all var(--transition);
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.navbar.scrolled .nav-links a {
  color: var(--gray-700);
}

.navbar.scrolled .nav-links a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.navbar.scrolled .nav-toggle span {
  background: var(--dark);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 25%, #0c4a6e 50%, #1e3a5f 75%, #0f172a 100%);
  background-size: 400% 400%;
  animation: heroGradient 15s ease infinite;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(14,165,233,0.15) 0%, transparent 70%);
  border-radius: 50%;
  transform: translateY(calc(var(--parallax-y, 0px) * 0.5));
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6,182,212,0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translateY(calc(var(--parallax-y, 0px) * 0.3));
  animation: float 10s ease-in-out infinite reverse;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="g" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect fill="url(%23g)" width="100" height="100"/></svg>');
}

/* ===== Twinkling Stars ===== */
.twinkle-stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  opacity: 0;
  animation: twinkle ease-in-out infinite;
  box-shadow: 0 0 6px 1px rgba(255,255,255,0.4);
}

.star:nth-child(1) { top: 12%; left: 8%;  width: 3px; height: 3px; animation-duration: 4s;   animation-delay: 0s; }
.star:nth-child(2) { top: 25%; left: 75%; width: 4px; height: 4px; animation-duration: 5s;   animation-delay: 1.5s; }
.star:nth-child(3) { top: 60%; left: 20%; width: 3px; height: 3px; animation-duration: 4.5s; animation-delay: 3s; }
.star:nth-child(4) { top: 45%; left: 90%; width: 2px; height: 2px; animation-duration: 6s;   animation-delay: 2s; }
.star:nth-child(5) { top: 80%; left: 55%; width: 3px; height: 3px; animation-duration: 5.5s; animation-delay: 4s; }
.star:nth-child(6) { top: 15%; left: 45%; width: 2px; height: 2px; animation-duration: 4s;   animation-delay: 5s; }
.star:nth-child(7) { top: 70%; left: 85%; width: 3px; height: 3px; animation-duration: 5s;   animation-delay: 1s; }
.star:nth-child(8) { top: 35%; left: 35%; width: 2px; height: 2px; animation-duration: 6s;   animation-delay: 3.5s; }

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(14,165,233,0.15);
  border: 1px solid rgba(14,165,233,0.3);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero .highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.7);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  width: 100%;
  justify-content: center;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

/* ===== About ===== */
.about {
  padding: 120px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.about > .container,
.services > .container,
.testimonials > .container,
.contact > .container {
  width: 100%;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-badge-icon {
  width: 32px;
  height: 32px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.about-content h2 {
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.about-content > p {
  color: var(--gray-600);
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-features {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
}

.feature strong {
  display: block;
  color: var(--dark);
  margin-bottom: 2px;
}

.feature p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin: 0;
}

/* ===== Services ===== */
.services {
  padding: 30px 0 80px;
  background: var(--gray-50);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.service-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-img img {
  transform: scale(1.05);
}

.service-card-body {
  padding: 28px 28px 32px;
}

.service-card h3 {
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: 12px;
  font-weight: 700;
}

.service-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.service-link:hover {
  color: var(--primary-dark);
  letter-spacing: 0.5px;
}

/* ===== Testimonials ===== */
.testimonials {
  padding: 120px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--white);
  padding: 36px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-text {
  color: var(--gray-700);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
}

.testimonial-author strong {
  display: block;
  color: var(--dark);
  font-size: 0.95rem;
}

.testimonial-author span {
  color: var(--gray-400);
  font-size: 0.8rem;
}

/* ===== CTA ===== */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 800;
}

.cta p {
  color: rgba(255,255,255,0.7);
  font-size: 1.15rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Discover Card ===== */
.discover-card {
  background: linear-gradient(135deg, #0f172a, #1e3a5f, #0c4a6e) !important;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(14,165,233,0.2) !important;
}

.discover-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(14,165,233,0.08), transparent);
  transition: left 0.6s ease;
}

.discover-card:hover::before {
  left: 100%;
}

.discover-card .discover-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  height: 100%;
  min-height: 350px;
}

.discover-card-logo {
  height: 80px;
  width: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 15px rgba(0,0,0,0.3));
  transition: all 0.4s ease;
}

.discover-card:hover .discover-card-logo {
  transform: scale(1.08);
  filter: drop-shadow(0 6px 20px rgba(14,165,233,0.3));
}

.discover-card h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.discover-card p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.discover-card-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.discover-card:hover .discover-card-cta {
  gap: 12px;
  color: var(--accent);
}

.discover-card-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(14,165,233,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  animation: arrowBounce 2s ease-in-out infinite;
  transition: all 0.3s ease;
}

.discover-card:hover .discover-card-arrow {
  background: var(--primary);
  color: white;
  animation: none;
  transform: scale(1.1);
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ===== Partner Section ===== */
.partner-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #111827, #1a1a2e);
  position: relative;
  overflow: hidden;
}

.partner-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14,165,233,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.partner-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.partner-text .section-tag {
  color: var(--accent);
}

.partner-text h2 {
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 800;
}

.partner-text p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.partner-logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.partner-logo {
  max-width: 280px;
  width: 100%;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
}

.partner-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 8px 30px rgba(14,165,233,0.3));
}

/* XG Badge on Service Cards */
.xg-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 6px 12px;
  background: rgba(14,165,233,0.08);
  border: 1px solid rgba(14,165,233,0.2);
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
}

.xg-badge img {
  height: 20px;
  width: auto;
}

.xg-badge:hover {
  background: rgba(14,165,233,0.15);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* Footer XG Link */
.footer-xg-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-decoration: none;
  margin-top: 8px;
  transition: all var(--transition);
}

.footer-xg-logo {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: all var(--transition);
}

.footer-xg-link:hover .footer-xg-logo {
  opacity: 1;
  filter: none;
}

.footer-xg-link span {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

.footer-xg-link:hover span {
  color: var(--primary-light);
}

/* ===== Contact ===== */
.contact {
  padding: 120px 0;
  background: var(--gray-50);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 16px;
  font-weight: 800;
}

.contact-info > p {
  color: var(--gray-600);
  font-size: 1.05rem;
  margin-bottom: 40px;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
}

.contact-item strong {
  display: block;
  color: var(--dark);
  margin-bottom: 2px;
}

.contact-item p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin: 0;
}

.contact-item a {
  color: var(--primary);
  transition: color var(--transition);
}

.contact-item a:hover {
  color: var(--primary-dark);
}

/* ===== Contact Form ===== */
.contact-form-wrapper {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.contact-form h3 {
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 28px;
  font-weight: 700;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--dark);
  transition: all var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-top: 12px;
}

/* ===== Form Success ===== */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.show {
  display: block;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}

.form-success h3 {
  color: var(--dark);
  margin-bottom: 8px;
}

.form-success p {
  color: var(--gray-600);
}

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  padding: 80px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
}

.footer-brand .logo-img {
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: var(--gray-400);
  margin-top: 16px;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-links h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a,
.footer-links li {
  color: var(--gray-400);
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
}

.footer-bottom p {
  color: var(--gray-400);
  font-size: 0.85rem;
  text-align: center;
}

/* ===== Scroll Progress Bar ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent), #a855f7);
  z-index: 10000;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(14,165,233,0.5), 0 0 20px rgba(14,165,233,0.3);
}

/* ===== Cursor Glow ===== */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,0.06), transparent 70%);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

/* ===== Card Shine Overlay ===== */
.card-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
  transition: background 0.3s ease;
}

/* ===== Word Reveal Animation ===== */
.word-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px) rotateX(20deg);
  animation: wordReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ===== Gradient Text Reveal ===== */
.gradient-text-reveal {
  background-size: 200% 100%;
  transition: background-position 0.8s ease;
}

.gradient-text-reveal.visible,
.visible .gradient-text-reveal {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 50%, var(--dark) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

/* ===== Counter Done Ping ===== */
.counter-done {
  animation: counterPing 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== Keyframe Animations ===== */
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

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

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4); }
  50% { box-shadow: 0 4px 28px rgba(14, 165, 233, 0.7); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes wordReveal {
  from { opacity: 0; transform: translateY(30px) rotateX(20deg); }
  to { opacity: 1; transform: translateY(0) rotateX(0); }
}

@keyframes gradientShift {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

@keyframes counterPing {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 5px rgba(14,165,233,0.2), 0 0 20px rgba(14,165,233,0.1); }
  50% { box-shadow: 0 0 15px rgba(14,165,233,0.4), 0 0 40px rgba(14,165,233,0.2); }
}

@keyframes borderGlow {
  0% { border-color: var(--gray-200); }
  50% { border-color: var(--primary); }
  100% { border-color: var(--gray-200); }
}

@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== Scroll Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-60px) translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(60px) translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ===== Hero Animations ===== */
.hero-badge {
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero h1 {
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-subtitle {
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-buttons {
  animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-stats {
  animation: fadeInUp 0.8s ease 1s both;
}

.hero-stats .stat {
  animation: fadeInUp 0.6s ease both;
}

.hero-stats .stat:nth-child(1) { animation-delay: 1.1s; }
.hero-stats .stat:nth-child(2) { animation-delay: 1.3s; }
.hero-stats .stat:nth-child(3) { animation-delay: 1.5s; }

/* ===== Button Animations ===== */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translate(var(--btn-x, 0), var(--btn-y, 0));
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

.btn-primary {
  animation: pulse 3s ease-in-out infinite;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  animation: none;
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.5);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-outline:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.15);
  box-shadow: 0 8px 25px rgba(255,255,255,0.1);
}

.btn-outline:active {
  transform: translateY(-1px) scale(0.98);
}

/* ===== Navbar Animation ===== */
.navbar {
  animation: slideDown 0.6s ease both;
}

.navbar.scrolled {
  animation: none;
}

.nav-links a {
  position: relative;
  transition: all 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active-link::after {
  width: 60%;
  left: 20%;
}

.nav-cta::after {
  display: none !important;
}

/* ===== Service Card Animations ===== */
.service-card {
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.service-card:hover {
  box-shadow: 0 25px 50px rgba(0,0,0,0.15), 0 0 30px rgba(14,165,233,0.08);
}

.service-card-img img {
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.service-link {
  position: relative;
  transition: all 0.3s ease;
}

.service-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.service-link:hover::after {
  width: 100%;
}

.service-link:hover {
  letter-spacing: 0;
  padding-left: 4px;
}

/* ===== Testimonial Card Animations ===== */
.testimonial-card {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.testimonial-avatar {
  transition: transform 0.4s ease;
}

.testimonial-card:hover .testimonial-avatar {
  transform: scale(1.1) rotate(5deg);
}

/* ===== About Image Animation ===== */
.about-image-wrapper {
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.about-image-wrapper:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.about-badge {
  transition: all 0.4s ease;
  animation: float 4s ease-in-out infinite;
}

/* ===== Contact Item Animations ===== */
.contact-item {
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateX(8px);
}

.contact-icon {
  transition: all 0.4s ease;
}

.contact-item:hover .contact-icon {
  background: var(--primary);
  transform: rotate(8deg) scale(1.1);
}

.contact-item:hover .contact-icon svg {
  stroke: var(--white);
}

/* ===== Feature Icon Animations ===== */
.feature {
  transition: all 0.3s ease;
}

.feature:hover {
  transform: translateX(8px);
}

.feature-icon {
  transition: all 0.4s ease;
}

.feature:hover .feature-icon {
  background: var(--primary);
  transform: rotate(-8deg) scale(1.1);
}

.feature:hover .feature-icon svg {
  stroke: var(--white);
}

/* ===== CTA Section Animation ===== */
.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 25%, #0c4a6e 50%, #1e3a5f 75%, #0f172a 100%);
  background-size: 400% 400%;
  animation: heroGradient 12s ease infinite;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(14,165,233,0.08) 0%, transparent 50%);
  animation: float 8s ease-in-out infinite;
}

/* ===== Form Input Animations ===== */
.form-group input,
.form-group select,
.form-group textarea {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14,165,233,0.15), 0 0 0 3px rgba(14,165,233,0.1);
  border-color: var(--primary);
  animation: glowPulse 2s ease-in-out infinite;
}

/* ===== Smooth scroll indicator ===== */
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ===== Footer link animations ===== */
.footer-links a {
  transition: all 0.3s ease;
  position: relative;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 6px;
}

/* ===== Counter animation for stats ===== */
.stat-number {
  transition: all 0.4s ease;
}

.stat:hover .stat-number {
  transform: scale(1.15);
  color: var(--primary);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .about-grid {
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 4px;
    transition: right var(--transition);
    box-shadow: -4px 0 20px rgba(0,0,0,0.2);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    color: rgba(255,255,255,0.8) !important;
    padding: 12px 16px;
    width: 100%;
    border-radius: var(--radius-sm);
  }

  .nav-links a:hover {
    background: rgba(255,255,255,0.05) !important;
    color: var(--white) !important;
  }

  .logo-img {
    height: 32px;
  }

  .navbar.scrolled .logo-img {
    height: 28px;
  }

  .navbar {
    padding: 10px 0;
  }

  .hero {
    min-height: 100vh;
    padding: 0;
  }

  .hero-content {
    padding: 80px 0 30px;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 5px 14px;
    margin-bottom: 16px;
  }

  .hero h1 {
    font-size: 2rem;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero-stats {
    gap: 32px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-badge {
    right: 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .section-header h2,
  .about-content h2,
  .contact-info h2,
  .cta h2 {
    font-size: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper {
    padding: 28px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about,
  .services,
  .testimonials,
  .contact {
    padding: 80px 0;
  }

  .cta {
    padding: 60px 0;
  }

  .partner-section {
    padding: 80px 0;
  }

  .partner-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .partner-text .section-tag {
    justify-content: center;
  }

  .partner-logo {
    max-width: 200px;
  }

  .footer-partner {
    align-items: flex-start;
  }

  html {
    scroll-padding-top: 70px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 70px 0 20px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .hero-buttons .btn {
    padding: 12px 28px;
    font-size: 0.9rem;
  }

  .container {
    padding: 0 16px;
  }
}
