:root {
  --primary: #163b6f;
  --primary-hover: #0f2f5c;
  --primary-light: #2f6fd6;
  --accent: #0e9ebd;
  --accent-hover: #0a7f99;
  --secondary: #0f172a;
  --bg-color: #FFFFFF;
  --bg-alt: #f7fafc;
  --bg-light: #eef4f8;
  --text-main: #1d2736;
  --text-muted: #5f6b7a;
  --border-color: #dce5ee;
  --success: #10B981;
  --warning: #F59E0B;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow-sm: 0 6px 20px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 14px 34px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 22px 50px rgba(15, 23, 42, 0.14);
  --surface-glass: rgba(255, 255, 255, 0.14);
  --scroll-progress: 0%;
  --transition: all 0.3s ease;
  --transition-smooth: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Reduce repaints and reflows */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.7;
  letter-spacing: 0.3px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

body.page-ready {
  opacity: 1;
  transform: translateY(0);
}

body.page-exit {
  opacity: 0;
  transform: translateY(8px);
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: var(--scroll-progress);
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light), var(--primary));
  z-index: 1200;
  transition: width 0.08s linear;
}

h1, h2, h3, h4, h5, h6, .logo-text {
  font-family: var(--font-heading);
  color: var(--secondary);
  letter-spacing: -0.02em;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Optimize image rendering */
img {
  max-width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  border-bottom: 1px solid rgba(220, 229, 238, 0.7);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  padding-top: 0.78rem;
  padding-bottom: 0.78rem;
}

.navbar:hover {
  box-shadow: var(--shadow-md);
}

.logo-container {
  display: flex;
  align-items: center;
  border-radius: 10%;
}

.logo {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #fff;
  width: 105px;
  height: 55px;
  padding: 0 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 2px;
  border-radius: 50px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  position: relative;
  transition: var(--transition-smooth);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.32s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

/* Dropdown */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.98);
  min-width: 150px;
  box-shadow: var(--shadow-md);
  border-radius: 8px;
  padding: 0.5rem 0;
  z-index: 10;
  opacity: 0;
  transform: translateY(10px) translateX(-50%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-content.show {
  display: block;
  opacity: 1;
  transform: translateY(0) translateX(-50%);
}

.dropdown-content a {
  display: block;
  padding: 0.7rem 1.2rem;
  text-transform: capitalize;
  font-size: 0.9rem;
  font-weight: 400;
}

.dropdown-content a:hover {
  background-color: var(--bg-alt);
  color: var(--primary);
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--secondary);
}

/* Hero Section */
.hero {
  position: relative;
  height: 85vh;
  min-height: 600px;
  /* Background image moved to an <img> for better LCP prioritization */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transform-origin: center;
  filter: contrast(0.95) saturate(0.95) brightness(0.95);
  transform: scale(1.03);
  animation: kenBurns 18s ease-in-out infinite alternate;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at top, rgba(14, 158, 189, 0.25), transparent 34%),
    linear-gradient(to bottom, rgba(7, 14, 25, 0.18) 0%, rgba(7, 14, 25, 0.5) 100%);
  animation: gradientFloat 9s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.09), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 2rem;
  animation: fadeInUp 0.75s ease-out;
}

.hero-content > * {
  animation-fill-mode: both;
}

.hero-content .btn-primary {
  animation: fadeInUp 0.7s ease-out 0.25s;
}

.hero-highlights {
  margin-top: 1.4rem;
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.hero-highlights span {
  font-size: 0.76rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: var(--surface-glass);
  backdrop-filter: blur(4px);
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  animation: fadeInUp 0.6s ease-out;
}

.hero-highlights span:nth-child(2) {
  animation-delay: 0.08s;
}

.hero-highlights span:nth-child(3) {
  animation-delay: 0.16s;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  animation: fadeInDown 0.65s ease-out 0.12s both;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 4.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2rem;
  text-shadow: 2px 4px 8px rgba(0,0,0,0.3);
  color: white;
  animation: slideInUp 0.75s ease-out 0.18s both;
  letter-spacing: -0.02em;
}

.hero-content p {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.88);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-size: 0.95rem;
  gap: 0.6rem;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.2);
  transition: left 0.5s ease;
  z-index: 0;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(27, 58, 107, 0.3);
  position: relative;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(27, 58, 107, 0.5);
}

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

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-3px);
  border-color: #fff;
}

/* Sections */
.section {
  padding: 5rem 5%;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  color: var(--secondary);
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
  animation: scaleInHorizontal 0.55s ease-out 0.18s forwards;
}

/* About Us Section (Home) */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  will-change: transform;
  contain: layout style paint;
  isolation: isolate;
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.about-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.35) 48%, transparent 70%);
  transform: translateX(-140%);
  transition: transform 0.65s ease;
  pointer-events: none;
  z-index: 1;
}

.about-card:hover::after {
  transform: translateX(140%);
}

.about-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.about-card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.about-card-content::before {
  content: '';
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin-bottom: 1rem;
}

.about-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.about-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.more-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  align-self: flex-start;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.more-link::after {
  content: '→';
  position: absolute;
  right: -20px;
  opacity: 0;
  transition: var(--transition-smooth);
}

.more-link:hover {
  color: var(--primary-hover);
}

.more-link:hover::after {
  right: -25px;
  opacity: 1;
}

/* Services Grid (Services Page) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-item {
  text-align: center;
  transition: var(--transition-smooth);
  background: #fff;
  border-radius: 18px;
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  will-change: transform;
  contain: layout style paint;
  isolation: isolate;
}

.service-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.service-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 24%, rgba(255, 255, 255, 0.28) 49%, transparent 74%);
  transform: translateX(-150%);
  transition: transform 0.65s ease;
  pointer-events: none;
  z-index: 1;
}

.service-item:hover::after {
  transform: translateX(150%);
}

.service-img-wrap {
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  height: 200px;
}

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

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

.service-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

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

.service-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* FAQ Section */
.faq-section {
  background-color: var(--bg-alt);
}

.reviews-section {
  background: linear-gradient(180deg, var(--bg-alt) 0%, #ffffff 100%);
}

.reviews-intro {
  margin-top: 1rem;
  color: var(--text-muted);
}

.testimonial-slider {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  border: 1px solid var(--border-color);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-md);
  padding: 2rem 2.2rem 1.5rem;
  overflow: hidden;
}

.testimonial-card {
  display: none;
  opacity: 0;
  transform: translateY(10px);
}

.testimonial-card.active {
  display: block;
  animation: fadeInUp 0.45s ease forwards;
}

.testimonial-text {
  font-size: 1.08rem;
  color: var(--text-main);
  margin-bottom: 1.4rem;
  line-height: 1.8;
}

.testimonial-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.testimonial-name {
  font-weight: 700;
  color: var(--secondary);
}

.testimonial-rating {
  color: #f5b301;
  letter-spacing: 1px;
  font-size: 1rem;
}

.testimonial-controls {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.testimonial-nav {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--secondary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-nav:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.testimonial-dots {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.testimonial-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #cad7e5;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.testimonial-dots .dot.active {
  background: var(--primary);
  transform: scale(1.15);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition-smooth);
  border: 1px solid var(--border-color);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.faq-question {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  color: var(--secondary);
  transition: var(--transition-smooth);
  letter-spacing: 0.3px;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  max-height: 500px; /* arbitrary large value */
  padding: 0 1.5rem 1.5rem;
}

/* Contact Page */
.contact-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .contact-layout {
    flex-direction: row;
    align-items: stretch;
  }
}

.contact-info {
  flex: 1;
  padding: 3rem;
  background: var(--bg-alt);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  animation: fadeInLeft 0.8s ease-out;
  border: 1px solid var(--border-color);
}

.contact-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.contact-phone {
  display: inline-block;
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 2rem;
  border-bottom: 3px solid var(--primary);
  padding-bottom: 0.5rem;
  transition: var(--transition-smooth);
  cursor: pointer;
  letter-spacing: 0.5px;
}

.contact-phone:hover {
  transform: translateY(-2px);
  color: var(--primary-hover);
  border-bottom-color: var(--primary-hover);
}

.contact-detail {
  margin-bottom: 1.5rem;
}

.contact-detail h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
  font-weight: 700;
}

.contact-detail p {
  color: var(--text-muted);
}

/* Button Container for Contact Section */
.contact-info > div[style*="display: flex"] {
  flex-wrap: wrap;
  align-items: center;
}

.contact-info .btn {
  min-width: auto;
  padding: 0.9rem 1.8rem;
}

/* Icon styling in buttons */
.btn svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.btn-whatsapp {
  background-color: #25D366;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 2.2rem;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
}

.btn-whatsapp:hover {
  background-color: #128C7E;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp:active {
  transform: translateY(-1px);
}

/* Stack buttons on mobile */
@media (max-width: 768px) {
  .btn-whatsapp {
    width: 100%;
    max-width: none;
    margin: 0.5rem auto !important;
  }
}
.minimal-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
  font-weight: 800;
  letter-spacing: -0.02em;
  animation: slideInUp 0.8s ease-out;
}

.minimal-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 50px;
  height: 3px;
  background-color: var(--primary);
  animation: scaleInHorizontal 0.8s ease-out 0.3s forwards;
}

.minimal-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  background: #fff;
  padding: 1rem 2rem;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
  margin-top: 2rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  letter-spacing: 0.5px;
}

/* Footer */
.footer {
  background:
    radial-gradient(circle at 20% 15%, rgba(47, 111, 214, 0.09), transparent 42%),
    radial-gradient(circle at 82% 20%, rgba(14, 158, 189, 0.12), transparent 35%),
    var(--bg-alt);
  padding: 4rem 5% 2rem;
  text-align: center;
  border-top: 2px solid var(--border-color);
}

.footer-content {
  margin-bottom: 2rem;
}

.footer .logo-container {
  justify-content: center;
  margin-bottom: 1.5rem;
}

.footer-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: #888;
  font-size: 0.8rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

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

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes scaleInHorizontal {
  from {
    transform: translateX(-50%) scaleX(0);
  }
  to {
    transform: translateX(-50%) scaleX(1);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
  }
  50% {
    box-shadow: 0 6px 25px rgba(0, 136, 204, 0.7);
  }
}

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

@keyframes kenBurns {
  from {
    transform: scale(1.02) translateY(0);
  }
  to {
    transform: scale(1.08) translateY(-1.5%);
  }
}

@keyframes gradientFloat {
  0%,
  100% {
    opacity: 0.95;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-1.2%);
  }
}

/* Scroll triggered animations */
.about-card:not(.visible),
.service-item:not(.visible),
.faq-item:not(.visible),
.section:not(.visible) {
  opacity: 0;
  transform: translateY(24px);
}

.about-card.visible,
.service-item.visible,
.faq-item.visible {
  animation: fadeInUp 0.55s ease-out forwards;
  animation-delay: var(--reveal-delay, 0ms);
}

.section.visible {
  animation: fadeInUp 0.55s ease-out forwards;
}

.hero-content .btn-primary {
  box-shadow: 0 16px 30px rgba(15, 47, 92, 0.28);
}

.hero-content .btn-primary:hover {
  box-shadow: 0 22px 40px rgba(15, 47, 92, 0.35);
}

.footer,
.section,
.about-card,
.service-item,
.faq-item,
.contact-info {
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  body::before {
    transition: none;
  }

  body {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.section:nth-of-type(even) {
  background: linear-gradient(180deg, #ffffff, var(--bg-alt));
}

/* Responsive */
/* Tablet & Small Devices (768px and below) */
@media (max-width: 768px) {
  /* Navbar */
  .navbar {
    padding: 0.8rem 4%;
  }

  .logo {
    width: 90px;
    height: 50px;
    font-size: 1.3rem;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 2rem 0;
    box-shadow: var(--shadow-md);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-in-out;
    gap: 1.5rem;
  }
  
  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  .mobile-toggle {
    display: block;
    cursor: pointer;
    transition: var(--transition-smooth);
  }

  .mobile-toggle:active {
    transform: scale(0.95);
  }

  .dropdown-content {
    position: static;
    transform: none;
    box-shadow: none;
    background: var(--bg-alt);
    margin-top: 1rem;
    display: none;
    border-radius: 8px;
    margin-left: 1rem;
    margin-right: 1rem;
  }
  
  .dropdown-content.show {
    display: block;
    animation: slideDown 0.3s ease-out;
  }

  .dropdown-content a {
    padding: 0.8rem 1rem;
  }
  
  /* Hero Section */
  .hero {
    min-height: 500px;
    height: 80vh;
    justify-content: flex-end;
    padding-bottom: 3rem;
  }

  .hero-content {
    padding: 0 1.5rem;
  }

  .hero-tagline {
    font-size: 0.9rem;
    letter-spacing: 2px;
  }
  
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-highlights {
    margin-top: 1.1rem;
    gap: 0.5rem;
  }

  .hero-highlights span {
    font-size: 0.7rem;
    padding: 0.38rem 0.62rem;
  }

  .hero::after {
    height: 120px;
  }

  /* Buttons */
  .btn {
    padding: 0.9rem 2rem;
    font-size: 0.85rem;
    letter-spacing: 1px;
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
  }

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

  /* Contact buttons stack on tablet */
  .contact-info > div[style*="display: flex"] {
    flex-direction: column;
    gap: 1rem !important;
  }

  .contact-info .btn {
    width: 100%;
    max-width: none;
  }

  /* Sections */
  .section {
    padding: 3rem 4%;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }

  .section-title::after {
    width: 50px;
  }

  /* Cards */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-card {
    animation: fadeInUp 0.6s ease-out !important;
  }

  .about-card img {
    height: 200px;
  }

  .about-card-content {
    padding: 1.5rem;
  }

  .about-card-content::before {
    width: 36px;
    margin-bottom: 0.8rem;
  }

  .about-card h3 {
    font-size: 1.1rem;
  }

  .about-card p {
    font-size: 0.9rem;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-item {
    padding: 1.2rem;
    animation: fadeInUp 0.6s ease-out !important;
  }

  .service-img-wrap {
    height: 180px;
    margin-bottom: 1rem;
  }

  .service-title {
    font-size: 1rem;
  }

  .service-price {
    font-size: 1.1rem;
  }

  /* Contact Section */
  .contact-layout {
    gap: 2rem;
  }

  .contact-info {
    padding: 2rem;
    animation: fadeInUp 0.6s ease-out !important;
  }

  .contact-title {
    font-size: 1.5rem;
  }

  .contact-phone {
    font-size: 1.3rem;
  }

  .contact-detail h4 {
    font-size: 1rem;
  }

  .contact-map {
    min-height: 300px;
  }

  /* Minimal Page */
  .minimal-page {
    padding: 2rem 1.5rem;
  }

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

  .minimal-subtitle {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }

  /* FAQ */
  .faq-container {
    max-width: 100%;
  }

  .faq-question {
    padding: 1.2rem;
    font-size: 0.95rem;
  }

  .testimonial-slider {
    padding: 1.5rem 1.4rem 1.2rem;
    border-radius: 16px;
  }

  .testimonial-text {
    font-size: 0.96rem;
    margin-bottom: 1rem;
  }

  .testimonial-nav {
    width: 34px;
    height: 34px;
    font-size: 1.3rem;
  }

  .faq-icon {
    font-size: 1.2rem;
  }

  /* Footer */
  .footer {
    padding: 3rem 4% 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
  }
}

/* Mobile Only (500px and below) */
@media (max-width: 500px) {
  html {
    font-size: 15px;
  }

  /* Navbar */
  .navbar {
    padding: 0.7rem 3%;
  }

  .logo-container {
    margin-right: auto;
  }

  .logo {
    width: 80px;
    height: 45px;
    font-size: 1.2rem;
    letter-spacing: 1.5px;
  }

  .mobile-toggle {
    font-size: 1.3rem;
  }

  .nav-links {
    padding: 1.5rem 0;
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.8rem;
    padding: 0.5rem 1.5rem;
  }

  .dropdown-content a {
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem;
  }

  /* Hero */
  .hero {
    min-height: 420px;
    height: 70vh;
    padding-bottom: 2rem;
  }

  .hero-content {
    padding: 0 1rem;
    max-width: 100%;
  }

  .hero-tagline {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    margin-bottom: 0.7rem;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

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

  .hero-highlights {
    margin-top: 0.9rem;
    gap: 0.45rem;
  }

  .hero-highlights span {
    font-size: 0.66rem;
    padding: 0.34rem 0.55rem;
    letter-spacing: 0.5px;
  }

  .hero::after {
    height: 90px;
  }

  /* Buttons */
  .btn {
    padding: 0.8rem 1.8rem;
    font-size: 0.8rem;
    letter-spacing: 0.8px;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    max-width: 280px;
  }

  /* Contact buttons on mobile */
  .contact-info > div[style*="display: flex"] {
    flex-direction: column;
    gap: 1rem !important;
  }

  .contact-info .btn {
    width: 100%;
    max-width: none;
  }

  /* Sections */
  .section {
    padding: 2.5rem 3%;
  }

  .section-header {
    margin-bottom: 2rem;
  }

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

  /* Cards */
  .about-card-content {
    padding: 1.2rem;
  }

  .about-card-content::before {
    width: 32px;
    margin-bottom: 0.7rem;
  }

  .about-card h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }

  .about-card p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .more-link {
    font-size: 0.8rem;
  }

  /* Services */
  .service-item {
    padding: 1rem;
  }

  .service-img-wrap {
    height: 160px;
  }

  .service-title {
    font-size: 0.95rem;
  }

  .service-price {
    font-size: 1rem;
  }

  /* Contact */
  .contact-info {
    padding: 1.5rem;
  }

  .contact-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .contact-phone {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .contact-detail {
    margin-bottom: 1.2rem;
  }

  .contact-detail h4 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
  }

  .contact-detail p {
    font-size: 0.85rem;
  }

  .contact-map {
    min-height: 280px;
  }

  /* Minimal */
  .minimal-page {
    padding: 1.5rem 1rem;
  }

  .minimal-title {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
  }

  .minimal-title::after {
    bottom: -12px;
    width: 40px;
  }

  .minimal-subtitle {
    font-size: 0.95rem;
    padding: 0.7rem 1.2rem;
    margin-top: 1.5rem;
  }

  /* FAQ */
  .faq-question {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .faq-icon {
    font-size: 1rem;
  }

  .faq-item {
    margin-bottom: 0.8rem;
  }

  .testimonial-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  /* Footer */
  .footer {
    padding: 2rem 3% 1rem;
  }

  .footer-info p {
    font-size: 0.8rem;
  }

  .footer-bottom {
    font-size: 0.75rem;
  }
}
