:root{
  --bg: #ffffff;
  --surface: #ffffff;
  --muted: #6b7280;
  --text: #0f172a;
  --accent: #06b6d4;
  --accent-2: #0ea5a4;
  --glass: rgba(15,23,42,0.04);
  --radius:12px;
  --container:1200px;
  --gap:24px;
  --card-shadow: 0 6px 18px rgba(15,23,42,0.06);
  --glass-border: rgba(15,23,42,0.06);
  /* default header height fallback; JS will update this on load/resize */
  --header-height: 72px;
  color-scheme: light;
}

*{box-sizing:border-box}
html,body{height:100%}
/* use CSS scroll-padding-top as a progressive enhancement so
   native anchor jumps and some browser scrolling respect the header */
html {
  scroll-padding-top: var(--header-height);
}
body{
  margin:0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg,#ffffff 0%, #f7fafc 100%);
  color: var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.45;
  font-size:16px;
}

/* Utility */
.container{
  max-width:var(--container);
  margin:0 auto;
  padding: 0 20px;
}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:40;
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,0.8);
  border-bottom:1px solid rgba(15,23,42,0.04);
}
.header-inner{
  display:flex;
  align-items:center;
  gap:16px;
  padding:12px 0;
}
.logo{
  display:flex;
  align-items:center;
  text-decoration:none;
}
.logo svg{display:block;border-radius:8px}
.main-nav{margin-left:auto}
.main-nav ul{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  gap:18px;
  align-items:center;
}
.main-nav a{
  color:var(--muted);
  text-decoration:none;
  padding:8px 10px;
  border-radius:8px;
  font-weight:600;
}
.main-nav a:hover, .main-nav a:focus{color:var(--text); background:var(--glass)}
.nav-toggle{
  display:none;
  margin-left:12px;
  background:transparent;
  border:0;
  color:inherit;
  cursor:pointer;
}
.nav-toggle .burger{
  width:20px;height:2px;background:var(--muted);display:block;position:relative;
}
.nav-toggle .burger::before, .nav-toggle .burger::after{
  content:"";position:absolute;left:0;right:0;height:2px;background:var(--muted);
}
.nav-toggle .burger::before{top:-6px}
.nav-toggle .burger::after{top:6px}

/* Hero */
.hero{
  padding:56px 0;
}
.hero-inner{
  display:grid;
  grid-template-columns: 1fr 360px;
  gap:32px;
  align-items:center;
}
.hero-text h1{font-size:2rem;margin:0 0 12px}
.lead{color:var(--muted);margin:0 0 18px}
.hero-cta .btn{margin-right:12px}

/* Service circle visual */
.hero-visual{display:flex;align-items:center;justify-content:center}
.service-circle{
  --angle: 40deg; /* default: 360 / 9 (if you change items update angle) */
  position:relative;
  width:320px;
  height:320px;
  display:block;
  border-radius:50%;
}
.circle-decor{
  position:absolute;inset:0;border-radius:50%;
  background: radial-gradient(circle at 40% 30%, rgba(14,165,164,0.08), transparent 30%), radial-gradient(circle at 70% 70%, rgba(6,182,212,0.04), transparent 30%);
  border:1px solid var(--glass-border);
  box-shadow: var(--card-shadow);
}

/* items arranged in circle using rotate + translate trick */
.service-item{
  --r: 130px; /* radius from center */
  position:absolute;
  left:50%;
  top:50%;
  width:64px;
  height:64px;
  transform-origin: 0 0;
  transform: rotate(calc(var(--i) * var(--angle))) translateX(var(--r)) rotate(calc(-1 * var(--i) * var(--angle)));
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  border-radius:50%;
  border:1px solid rgba(15,23,42,0.06);
  box-shadow: 0 8px 20px rgba(15,23,42,0.06);
}
.service-item:hover{
  transform: rotate(calc(var(--i) * var(--angle))) translateX(var(--r)) rotate(calc(-1 * var(--i) * var(--angle))) scale(1.06);
  transition:transform .22s ease;
}
.service-item svg{display:block}

/* Sections */
.section{padding:36px 0}
.section-title{font-size:1.35rem;margin:0 0 8px}
.section-sub{color:var(--muted);margin:0 0 20px}

/* Services grid */
.services-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
}
.service-card{
  background: var(--surface);
  border-radius:var(--radius);
  padding:20px;
  border:1px solid var(--glass-border);
  box-shadow: var(--card-shadow);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.service-card h3{margin:0 0 8px}
.service-card p{color:var(--muted);margin:0 0 16px}
.card-footer{margin-top:12px;display:flex;justify-content:flex-start}
.btn{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:10px;border:0;cursor:pointer;font-weight:600;text-decoration:none}
.btn.primary{background:linear-gradient(90deg,var(--accent),var(--accent-2));color:#072026}
.btn.ghost{background:transparent;border:1px solid rgba(15,23,42,0.06);color:var(--muted)}
.btn.contact{background:transparent;border:1px dashed rgba(15,23,42,0.06);color:var(--accent-2)}

/* About */
.about-grid{display:grid;grid-template-columns: 1fr 360px; gap:20px;align-items:start}
.about-contact a{color:var(--accent-2);text-decoration:none}

/* Footer */
.site-footer{border-top:1px solid rgba(15,23,42,0.04);padding:18px 0;margin-top:30px}
.footer-inner{display:flex;justify-content:space-between;align-items:center;gap:12px}
.footer-right a{color:var(--muted);text-decoration:none;margin-left:16px}

/* Modal */
.modal-backdrop[hidden]{ display: none !important; }

.modal-backdrop{
  position:fixed;inset:0;background:rgba(2,6,23,0.4);display:flex;align-items:center;justify-content:center;padding:20px;
}
.modal-dialog{
  width:100%;max-width:720px;background:#fff;
  border-radius:14px;padding:20px;border:1px solid rgba(15,23,42,0.06);
  box-shadow: 0 18px 50px rgba(15,23,42,0.08);
  position:relative;
}
.modal-close{
  position:absolute;top:12px;right:14px;background:transparent;border:0;color:var(--muted);font-size:24px;cursor:pointer;
}
.modal-body{display:flex;gap:18px;align-items:flex-start}
.modal-logo{flex:0 0 64px}
.modal-text{color:var(--muted)}

/* Accessibility helper */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Responsive */
@media (max-width: 980px){
  .hero-inner{grid-template-columns:1fr; text-align:left}
  .hero-visual{margin-top:20px}
  .service-circle{width:260px;height:260px}
  .service-item{width:56px;height:56px}
  .about-grid{grid-template-columns:1fr}
}
@media (max-width: 820px){
  .services-grid{grid-template-columns: repeat(2,1fr)}
}
@media (max-width: 520px){
  /* stack items in a compact row on very small screens */
  .service-circle{width:100%;height:auto;display:flex;flex-wrap:wrap;gap:12px;justify-content:center;align-items:center;padding:8px}
  .circle-decor{display:none}
  .service-item{position:static;transform:none;width:64px;height:64px}
  .services-grid{grid-template-columns: 1fr}
  .main-nav{display:none}
  .nav-toggle{display:block}
  .nav-toggle .burger, .nav-toggle .burger::before, .nav-toggle .burger::after { background: #374151 }
  .header-inner{align-items:center}
  .mobile-nav{background:rgba(15,23,42,0.02);padding:12px;border-top:1px solid rgba(15,23,42,0.02)}
  .mobile-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
  .mobile-nav a{display:block;color:var(--muted);text-decoration:none;padding:8px;border-radius:8px}
}

/* Small tweaks */
a { color:inherit; }

/* highlight animation for contact area */
.highlight-pulse{box-shadow: 0 8px 30px rgba(14,165,164,0.12); border-radius:8px; animation: pulse 1.2s ease;}
@keyframes pulse{0%{transform:translateY(0)}50%{transform:translateY(-4px)}100%{transform:translateY(0)}}

/* Define the animation */
@keyframes fadeInUp {
  /* Starting state (0% of the animation duration) */
  0% {
    opacity: 0; /* Fully transparent */
    transform: translateY(30px); /* Start 20 pixels below its final position (adjust as needed for a more/less subtle "pull up") */
  }
  /* Ending state (100% of the animation duration) */
  100% {
    opacity: 1; /* Fully opaque/visible */
    transform: translateY(0); /* End at its original vertical position */
  }
}

/* Apply the animation to the desired class */
.fadeInUp-animation{
  animation-name: fadeInUp;
  animation-duration: 2s; /* The duration of the animation */
  animation-fill-mode: forwards; /* Ensures the element stays in its final state after the animation finishes */
  /* Add more properties for customization, e.g., animation-delay: 0.5s; */
}
.fadeInUp-animation:nth-child(1) {
  animation-delay: 0.5s;
}
.fadeInUp-animation:nth-child(2) {
  animation-delay: 1s;
}
.fadeInUp-animation:nth-child(3) {
  animation-delay: 1.5s;
}
.fadeInUp-animation:nth-child(4) {
  animation-delay: 2s;
}
