@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #0d47a1;
  --primary-dark: #08357d;
  --accent: #ff6b00;
  --accent-dark: #e55f00;
  --bg: #f4f8ff;
  --bg-alt: #eef4ff;
  --surface: #ffffff;
  --text: #1a1a2e;
  --text-muted: #5a6278;
  --border: rgba(13, 71, 161, 0.08);
  --shadow-sm: 0 4px 20px rgba(13, 71, 161, 0.06);
  --shadow-md: 0 12px 40px rgba(13, 71, 161, 0.1);
  --shadow-lg: 0 20px 60px rgba(13, 71, 161, 0.12);
  --radius: 16px;
  --radius-lg: 24px;
  --nav-height: 88px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* NAVBAR */

nav {
  width: 100%;
  height: var(--nav-height);
  padding: 0 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 72px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 10px;
  transition: color 0.25s, background 0.25s;
}

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

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

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

.menu-btn {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--primary);
  padding: 6px;
}

/* HERO */

.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 80px 8%;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(13, 71, 161, 0.08), transparent),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(255, 107, 0, 0.1), transparent),
    linear-gradient(135deg, #eaf2ff 0%, #fff8f2 50%, #f4f8ff 100%);
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 107, 0, 0.08);
  top: -80px;
  right: -60px;
  animation: heroOrb 8s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(13, 71, 161, 0.07);
  bottom: -70px;
  left: -50px;
  animation: heroOrb 10s ease-in-out infinite reverse;
  pointer-events: none;
}

.hero-text,
.hero-image {
  position: relative;
  z-index: 1;
}

.hero--compact {
  min-height: auto;
  padding: 100px 8% 70px;
  text-align: center;
  justify-content: center;
}

.hero--compact .hero-text {
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 107, 0, 0.12);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero-text {
  flex: 1;
  min-width: 300px;
}

.hero-text h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-text span {
  color: var(--accent);
  display: block;
}

.hero-text p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero--compact .hero-text p {
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero--compact .hero-actions {
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.3);
}

.btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.secondary-btn {
  background: var(--primary);
  box-shadow: 0 8px 24px rgba(13, 71, 161, 0.25);
}

.secondary-btn:hover {
  background: var(--primary-dark);
}

.hero-image {
  flex: 1;
  text-align: center;
  min-width: 280px;
}

.hero-image img {
  width: 90%;
  max-width: 420px;
  filter: drop-shadow(0 20px 40px rgba(13, 71, 161, 0.15));
  animation: floaty 4s ease-in-out infinite;
}

/* SECTIONS */

section {
  padding: 90px 8%;
}

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

.section-label {
  display: inline-block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.7;
}

.section-alt {
  background: var(--bg-alt);
}

/* SERVICES */

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

.service-card {
  background: var(--surface);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  text-align: left;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 107, 0, 0.2);
}

.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(13, 71, 161, 0.1), rgba(255, 107, 0, 0.12));
  border-radius: 14px;
  font-size: 24px;
  margin-bottom: 18px;
  transition: transform 0.35s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-6deg);
}

.service-card h3 {
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 15px;
}

/* ABOUT */

.about-section {
  display: flex;
  align-items: flex-start;
  gap: 56px;
  flex-wrap: wrap;
}

.about-image {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.about-image::before {
  content: '';
  position: absolute;
  inset: -12px -12px 12px 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-lg);
  opacity: 0.15;
  z-index: 0;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg);
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h2 {
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.about-text > p {
  color: var(--text-muted);
  line-height: 1.9;
  font-size: 17px;
}

/* WHY CHOOSE US */

.why-choose-us {
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.why-choose-us h3 {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 24px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 18px;
}

.why-card {
  background: var(--surface);
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s, box-shadow 0.35s;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.why-card h4 {
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
}

.why-card p {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 14px;
}

/* TESTIMONIALS */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s, box-shadow 0.35s;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 64px;
  line-height: 1;
  color: rgba(255, 107, 0, 0.15);
  font-weight: 800;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.testimonial-text {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 15px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.testimonial-name {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
}

/* CONTACT */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-item {
  background: var(--surface);
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contact-item:hover .contact-icon {
  animation: iconPop 0.5s ease;
}

.contact-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.contact-item p {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.contact-item a {
  color: var(--primary);
  text-decoration: none;
}

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

/* FOOTER */

footer {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
  padding: 28px 8%;
  font-size: 14px;
  font-weight: 500;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-brand .logo-img {
  height: 56px;
  width: auto;
  max-width: 180px;
}

/* Animations */

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

@keyframes heroOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -15px) scale(1.08); }
}

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

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

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

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

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

@keyframes iconPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

@keyframes btnShine {
  0% { left: -100%; }
  100% { left: 120%; }
}

@keyframes navLinkUnderline {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Page load */

.nav-animate {
  animation: fadeSlideDown 0.7s ease forwards;
}

.animate-on-load {
  opacity: 0;
}

body.is-loaded .animate-on-load {
  animation: fadeSlideUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.12s + (var(--delay, 0) * 0.12s));
}

body.is-loaded .animate-on-load[data-delay="0"] { --delay: 0; }
body.is-loaded .animate-on-load[data-delay="1"] { --delay: 1; }
body.is-loaded .animate-on-load[data-delay="2"] { --delay: 2; }
body.is-loaded .animate-on-load[data-delay="3"] { --delay: 3; }

/* Navbar scroll */

nav.nav-scrolled {
  box-shadow: 0 8px 30px rgba(13, 71, 161, 0.12);
  background: rgba(255, 255, 255, 0.98);
}

.nav-links a {
  position: relative;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta).active::after {
  transform: scaleX(1);
}

.menu-btn.is-open {
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}

/* Button shine */

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: none;
}

.btn:hover::after {
  animation: btnShine 0.6s ease;
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-left {
  transform: translateX(-36px);
}

.reveal-right {
  transform: translateX(36px);
}

.reveal-scale {
  transform: scale(0.94);
}

.reveal-in {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Portfolio filter */

.portfolio-card.is-filtered-out {
  display: none;
}

.portfolio-card.filter-pop {
  animation: scaleIn 0.45s ease forwards;
}

.filter-btn {
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.filter-btn:active {
  transform: scale(0.96);
}

/* Stats counter glow */

.stat-box h2 {
  transition: transform 0.3s ease;
}

.stat-box.is-counted h2 {
  animation: iconPop 0.6s ease;
}

/* CTA strip */

.cta-strip.reveal-in .btn {
  animation: fadeSlideUp 0.7s ease 0.2s both;
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .animate-on-load {
    opacity: 1;
    transform: none;
  }
}

.service-card,
.portfolio-card,
.testimonial-card,
.why-card,
.stat-box {
  will-change: transform;
}

/* PORTFOLIO PAGE */

.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  border: 2px solid transparent;
  background: var(--surface);
  color: var(--primary);
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.filter-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 50%;
}

.filter-btn:hover {
  border-color: rgba(255, 107, 0, 0.3);
  color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.35);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.portfolio-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    box-shadow 0.35s ease,
    visibility 0.4s ease;
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.portfolio-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}

.portfolio-card:hover img {
  transform: scale(1.04);
}

.portfolio-content {
  padding: 24px;
}

.portfolio-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(255, 107, 0, 0.1);
  padding: 5px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.portfolio-content h3 {
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.portfolio-content p {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
  font-size: 14px;
}

.portfolio-content a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 10px;
  transition: background 0.25s, transform 0.25s;
}

.portfolio-content a:hover {
  background: var(--primary-dark);
  transform: translateX(4px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 24px;
}

.stat-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.stat-box h2 {
  color: var(--accent);
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.stat-box p {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 15px;
}

/* CTA strip */

.cta-strip {
  text-align: center;
  padding: 70px 8%;
  background: linear-gradient(135deg, var(--primary) 0%, #1565c0 50%, var(--primary-dark) 100%);
  color: white;
}

.cta-strip h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-strip p {
  opacity: 0.9;
  margin-bottom: 28px;
  font-size: 17px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-strip .btn {
  background: var(--accent);
}

/* RESPONSIVE */

@media (max-width: 768px) {
  :root {
    --nav-height: 80px;
  }

  nav {
    padding: 0 5%;
  }

  .logo-img {
    height: 56px;
    max-width: 160px;
  }

  .hero {
    text-align: center;
    min-height: auto;
    padding: 50px 5%;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  section {
    padding: 60px 5%;
  }

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

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

  .filter-buttons {
    justify-content: flex-start;
  }

  .nav-links {
    position: absolute;
    top: var(--nav-height);
    right: 0;
    left: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    display: none;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    text-align: center;
  }

  .menu-btn {
    display: block;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
