/* ---------- Reset & base ---------- */
* { 
  box-sizing: border-box; 
  margin:0; 
  padding:0; 
}

html,body { 
  height:100%; 
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color:#0f2433;
  background: linear-gradient(180deg, #f6fbff 0%, #f0f6fb 40%, #eef4f8 100%);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

/* container utility */
.container { 
  max-width:1100px; 
  margin:0 auto; 
  padding:0 20px; 
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  left:0; right:0; top:0;
  height:72px;            /* initial height */
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 28px;
  z-index:1400;
  background: rgba(6,30,50,0.85);
  transition: background .45s ease, height .35s ease, box-shadow .35s ease, padding .35s ease;
}

/* header after scroll */
.site-header.scrolled {
  background: linear-gradient(180deg, rgba(6,30,50,0.95), rgba(6,30,50,0.95));
  height:90px; /* a little taller when scrolled to show prominence */
  box-shadow: 0 8px 32px rgba(6,20,40,0.18);
  padding:16px 28px;
}

/* brand */
.brand { 
  display:flex; 
  align-items:center; 
  gap:12px; 
}

.logo-img { 
  width:40px; 
  height:40px; 
  object-fit:contain; 
}

.brand-link { 
  color:#fff; 
  font-weight:800; 
  text-decoration:none; 
  letter-spacing:0.4px; 
  font-size:1rem; 
}

/* nav */
.site-nav { 
  display:flex; 
  gap:14px; 
  align-items:center;
}

.nav-link {
  color: rgba(255,255,255,0.9);
  text-decoration:none;
  font-weight:700;
  background:transparent;
  padding:8px 10px;
  border-radius:8px;
  transition: transform .18s ease, background .2s ease, color .2s ease;
}

.site-header:not(.scrolled) .nav-link { 
  color: rgba(255,255,255,0.95); 
} /* blend on top of hero */

.nav-link:hover { 
  transform: translateY(-3px); color:#d7f7ff; 
}

.nav-link.active { 
  box-shadow: inset 0 -3px 0 #1aa96b; 
}

/* ---------- Animated background elements ---------- */
.bg-animations {
  position:fixed; 
  inset:0; 
  pointer-events:none; 
  z-index:0;
}

.flow-svg { 
  position:absolute; 
  width:50vw; 
  height:6vw; 
  opacity:0.16; 
  fill:none; 
  stroke:#50a3ff; 
  stroke-width:2; 
  stroke-linecap:round; 
  filter: blur(0.5px); 
}

.flow-1 { 
  top:18vh; 
  left:-10vw; 
  animation: flowMove 12s linear infinite; transform-origin:center; 
}

.flow-2 { 
  top:40vh; 
  right:-10vw; 
  stroke:#7bd389; 
  animation: flowMove 18s linear infinite reverse; 
}

@keyframes flowMove { 
  0% { transform: translateX(0) } 50% { transform: translateX(40vw) } 100% { transform: translateX(0) } 
}

/* gears */
.gear { 
  position:absolute; 
  width:80px; 
  height:80px; 
  border-radius:50%; 
  border:4px dashed rgba(0,0,0,0.06); 
  opacity:0.08; 
  transform-origin:center; 
}

.gear-1 { 
  left:10vw; 
  top:12vh; 
  animation: spin 10s linear infinite; 
}

.gear-2 { 
  right:12vw; 
  top:60vh; 
  width:60px; 
  height:60px; 
  animation: spin 14s linear infinite reverse; 
}

@keyframes spin {
  from{transform:rotate(0deg)} to{transform:rotate(360deg)} 
}

/* ---------- HERO ---------- */
.hero {
  min-height:100vh;
  display:flex;
  align-items:center;
  padding: 120px 28px 60px; /* leave room for fixed header */
  background-image: url('images/bg-hero.jpg');
  background-position: center center;
  background-size: cover; /* full cover */
  background-attachment: fixed;
  position:relative;
  z-index:1;
}

.hero-panel {
  width:min(580px, 88%);
  background: rgba(255,255,255,0.92);
  padding:28px;
  border-radius:12px;
  box-shadow: 0 18px 40px rgba(6,18,34,0.06);
  text-align:left;
}

.hero-panel .subtle { 
  color:#406080; 
  font-size:14px; 
  text-transform:uppercase; 
  letter-spacing:1.2px; 
  margin-bottom:6px; 
}

.hero-panel:hover { 
  box-shadow: 0 28px 60px rgba(6,18,34,0.12); 
  transform: translateY(-4px); 
}

.hero-panel h1 { 
  font-size:34px; 
  color:#072138; 
  margin-bottom:8px; 
}

.hero-panel h3 { 
  color:#0a3a57; 
  font-weight:600; 
  margin-bottom:12px; 
}

.hero-panel p { 
  color:#274058; 
  margin-bottom:18px; 
  line-height:1.55; 
}

.hero-cta { 
  display:flex; 
  gap:12px; 
  align-items:center; 
}

.hero-image {
  flex: 1;
}

.hero-image img {
  width: 60%;
  margin-left: 200px;
  border-radius: 12px;
}

.hero-image img:hover {
  transform: translateY(-10px);
}

/* buttons */
.btn {
  display:inline-flex; 
  align-items:center; 
  gap:10px;
  padding:10px 16px; 
  border-radius:999px; 
  font-weight:700; 
  font-size: 20px;
  cursor:pointer; 
  border:none; 
  text-decoration:none;
  transform-origin:center;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn.primary, .btn.primary:focus { 
  display: inline-flex;           /* use flex for perfect centering */
  justify-content: center;
  align-items: center;
  padding: 12px 24px;
  font-weight: 700;
  border-radius: 10px;
  background:#1aa96b; 
  color:#fff; 
  border: none;
  text-shadow:0 2px 6px rgba(26,169,107,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn.primary:hover { 
  background:#0e5a39; 
  transform: translateY(-4px); 
  box-shadow:0 12px 30px rgba(26,169,107,0.18);
}

.btn.outline { 
  background: linear-gradient(90deg,#00aaff,#0078ff); 
  color:white; 
}

.explore-btn { 
  background: linear-gradient(90deg,#00aaff,#0078ff); 
  color:white; 
}

/* hover tilt effect for main CTA */
.explore-btn:hover { 
  transform: rotate(-3deg) translateY(-6px); 
  box-shadow: 0 10px 26px rgba(3,30,60,0.12); 
}

.btn.outline:hover { 
  transform: rotate(-3deg) translateY(-6px); 
  box-shadow: 0 10px 26px rgba(3,30,60,0.12); 
}

/* ---------- Sections ---------- */
.section { 
  padding:64px 0; 
  z-index:2; 
  position:relative; 
}

.section h2 { 
  text-align:center; 
  font-size:26px; 
  margin-bottom:6px; 
  color:#052b44; 
}

.lede { 
  text-align:center; 
  color:#365a75; 
  margin-bottom:18px; 
}

/* SERVICES */
.service-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap:18px;
  margin-top:18px;
}

.service-card {
  background:#fff; 
  border-radius:12px; 
  padding:14px; 
  text-align:left; 
  overflow:hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.service-card img { 
  width:100%; 
  height:160px; 
  object-fit:cover; 
  border-radius:8px; 
  margin-bottom:12px; 
}

.service-card:hover { 
  transform: translateY(-8px) rotate(-1deg); 
  box-shadow:0 18px 40px rgba(10,20,40,0.08); 
}

.service-title { 
  font-size:18px; 
  margin-bottom:8px; 
  transition: color .18s ease, transform .18s ease; 
}

.service-card:hover .service-title { 
  color:#0078ff; 
  transform: rotate(-1deg) translateY(-4px); 
}

/* PROJECTS */
.projects-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap:18px; margin-top:18px;
}

.project-card { 
  display: inline-block;
  background:#fff; 
  border-radius:12px; 
  overflow:hidden; 
  box-shadow:0 8px 24px rgba(8,18,30,0.06); 
  transition: all 0.3s ease;
}

.project-title { 
  display:inline-block;
  font-size:18px; 
  margin-bottom:8px; 
}

.project-card img { 
  width:100%; 
  height:180px; 
  object-fit:cover; 
  display:block; 
}

.project-card figcaption { 
  padding:12px; 
}

.project-card:hover .project-title { 
  color: #0078ff; 
  transform: rotate(-1deg) translateY(-4px); 
}

.projects-grid .project-card:hover { 
  transform: translateY(-8px) rotate(-1deg); 
  box-shadow:0 18px 40px rgba(10,20,40,0.08); 
}

/* REVIEWS */
.reviews-wrap { 
  max-width: 720px; 
  margin: 18px auto 0; 
  position: relative; 
  height: 180px; /* fixed height to prevent layout jump */
}

.review { 
  opacity: 0; 
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  background: #fff; 
  padding: 22px; 
  border-radius: 12px; 
  box-shadow: 0 8px 30px rgba(8,18,30,0.06); 
  text-align: center; 
  transition: opacity 0.6s ease-in-out; 
}

.review.active { 
  opacity: 1; 
  position: relative; 
}

.review strong { 
  display: block; 
  margin-top: 12px; 
  color: #0b2b3b; 
}

.stars {
  font-size: 18px;
  margin-top: 8px;
}

.review-dots {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  gap: 6px;
}

.review-dots .dot {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.review-dots .dot.active {
  background: #0078ff;
}

/* FAQ */
.faq-list { 
  max-width:820px; 
  margin:24px auto; 
  font-family: Arial, sans-serif;
}

.faq-item { 
  background:#fff; 
  border-radius:12px; 
  margin-bottom:12px; 
  overflow:hidden; 
  box-shadow:0 8px 25px rgba(5,20,35,0.05); 
  transition: transform 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
}

.faq-question { 
  width:100%; 
  text-align:left; 
  background:#f7fbff; 
  padding:16px 20px; 
  border:none; 
  font-weight:700; 
  cursor:pointer; 
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.faq-question:hover { 
  background: #e3f0ff; 
}

.faq-answer {  
  max-height: 0; 
  padding: 0 20px; 
  color: #143a4f; 
  overflow: hidden; 
  transition: max-height 0.4s ease, padding 0.4s ease; 
}

.faq-item.active .faq-answer { 
  max-height: 500px; /* adjust for longer answers */ 
  padding: 12px 20px;
}

.faq-icon {
  font-size: 18px;
  transition: transform 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg); /* rotates + to × */
}

/* BOOK FORM */
.book-form { 
  max-width:680px; 
  margin:24px auto; 
  background:#fff; 
  padding:28px 32px; 
  border-radius:16px; 
  box-shadow:0 12px 40px rgba(6,18,34,0.08); 
  transition: transform 0.3s ease;
}

.book-form:hover {
  transform: translateY(-4px);
}

.form-row { 
  display:flex; 
  flex-direction: column; 
  gap:16px; 
  margin-bottom:16px;
}

.form-row input, .form-row select, .form-row textarea {
  flex:1; 
  padding:14px 16px; 
  border-radius:10px; 
  border:1px solid #e6eef6; 
  outline:none;
  transition: all 0.3s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: #0078ff;
  box-shadow: 0 0 8px rgba(0, 120, 255, 0.2);
}

.book-status {
  margin-top: 8px;
  color: #0b6;
  font-weight: 700;
  transition: opacity 0.4s ease;
  opacity: 0;
}

.book-status.error {
  color: #c00;
}

.book-status.active {
  opacity: 1;
}

/* CONTACT */
.contact-section {
  text-align: center;
  padding: 60px 20px;
  background: #f7fbff; /* soft background for contrast */
}

.contact-section h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #0b2b3b;
}

.contact-lede {
  font-size: 16px;
  color: #143a4f;
  margin-bottom: 36px;
}

.contact-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px 28px;
  min-width: 220px;
  flex: 1;
  box-shadow: 0 10px 30px rgba(6,18,34,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  box-shadow: 0 14px 40px rgba(6,18,34,0.1); 
  transform: translateY(-8px) rotate(-1deg); 
  box-shadow:0 18px 40px rgba(10,20,40,0.08); 
}

.contact-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0078ff;
}

.contact-card a {
  color: #0b2b3b;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-card a:hover {
  color: #0078ff;
}

.contact-card p {
  color: #143a4f;
  margin: 0;
}

/* FOOTER */
.site-footer {
  background: #0b2b3b;
  color: #fff;
  padding: 40px 20px 20px;
  font-family: Arial, sans-serif;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto 20px;
  justify-content: space-between;
}

.footer-brand h3 {
  font-size: 24px;
  margin-bottom: 8px;
  color: #0078ff;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: #d0d8e0;
}

.footer-contact h4,
.footer-links h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #0078ff;
}

.footer-contact p,
.footer-links ul li {
  font-size: 14px;
  margin: 4px 0;
}

.footer-contact a {
  color: #ffffff;        /* make links white */
  text-decoration: none; /* optional: remove underline */
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: #0078ff;        /* optional: blue on hover */
}

.footer-contact p,
.footer-links ul li {
  font-size: 14px;
  margin: 4px 0;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #d0d8e0;
}

.footer-links ul li a {
  color: #d0d8e0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: #0078ff;
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: #a0a8b5;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 12px;
}

/* CHATBOT */
#chatbot-root { 
  position:fixed; 
  right:22px; 
  bottom:20px; 
  z-index:1600; 
}

#chatbot-toggle {
  width:56px; 
  height:56px; 
  border-radius:50%; 
  background:#1aa96b; 
  color:#fff; 
  border:none; 
  cursor:pointer;
  box-shadow:0 12px 30px rgba(0,0,0,0.18); font-size:22px;
}

.chatbot-box { 
  width:320px; 
  max-height:480px; 
  background:#fff; 
  border-radius:12px; 
  box-shadow:0 18px 40px rgba(6,18,34,0.12); 
  overflow:hidden; 
  display:none; 
  flex-direction:column; 
}

.chatbot-header { 
  background:#00263b; 
  color:#fff; 
  padding:10px 12px; 
  display:flex; 
  justify-content:space-between; 
  align-items:center; 
}

.chatbot-messages { 
  padding:12px; 
  flex:1; 
  overflow-y:auto; 
  font-size:14px; 
  background:linear-gradient(180deg,#fbfdff,#f8fbff); 
}

.chatbot-input { 
  display:flex; 
  border-top:1px solid #eee; 
}

.chatbot-input input { 
  flex:1; 
  border:none; 
  padding:10px; 
}

.chatbot-input button { 
  background:#0078ff; 
  color:#fff; 
  border:none; 
  padding:0 16px; 
  cursor:pointer; 
}

/* ---------- Responsive for Tablets & Mobile ---------- */
@media (max-width: 920px) {
  .site-nav { display: none; } /* Already hidden */
  .hero { padding: 100px 18px; }
  .hero-panel { width: 100%; padding: 20px; }
  .form-row { flex-direction: column; }

  /* Hero image */
  .hero-image img {
    width: 80%;
    margin-left: 0;
    margin-top: 20px;
  }

  /* Buttons */
  .btn.primary, .btn.outline, .explore-btn {
    font-size: 16px;
    padding: 10px 18px;
  }

  /* Service grid */
  .service-grid, .projects-grid {
    grid-template-columns: 1fr; /* single column on mobile */
    gap: 16px;
  }

  /* Reviews */
  .reviews-wrap {
    height: auto;
  }

  /* Contact cards */
  .contact-cards {
    flex-direction: column;
    gap: 16px;
  }

  /* Footer */
  .footer-grid {
    flex-direction: column;
    gap: 24px;
  }

  /* FAQ */
  .faq-list {
    margin: 16px;
  }

  .faq-question {
    padding: 14px 16px;
    font-size: 14px;
  }

  .faq-answer {
    font-size: 14px;
  }

  /* Hero panel typography */
  .hero-panel h1 { font-size: 28px; }
  .hero-panel h3 { font-size: 20px; }
  .hero-panel p { font-size: 14px; }
}

/* Smaller devices: mobile phones */
@media (max-width: 600px) {
  .site-header { padding: 10px 16px; }
  .site-header.scrolled { padding: 12px 16px; }

  .hero { padding: 80px 16px; }
  .hero-panel h1 { font-size: 24px; }
  .hero-panel h3 { font-size: 18px; }
  .hero-panel p { font-size: 13px; }

  /* Buttons */
  .btn.primary, .btn.outline, .explore-btn {
    font-size: 14px;
    padding: 8px 14px;
  }

  .hero-image img {
    width: 100%;
    margin-left: 0;
  }

  /* Reduce gear & background animation sizes */
  .gear, .flow-svg {
    width: 40px;
    height: 40px;
  }

  /* Reduce sections padding */
  .section {
    padding: 40px 16px;
  }

  /* Contact cards */
  .contact-card {
    min-width: auto;
    padding: 18px 20px;
  }

  /* Footer font sizes */
  .footer-brand h3 { font-size: 20px; }
  .footer-contact h4, .footer-links h4 { font-size: 14px; }
  .footer-contact p, .footer-links ul li { font-size: 12px; }
}

/* Very small devices: small phones */
@media (max-width: 400px) {
  .hero-panel h1 { font-size: 20px; }
  .hero-panel h3 { font-size: 16px; }
  .hero-panel p { font-size: 12px; }

  .btn.primary, .btn.outline, .explore-btn {
    font-size: 12px;
    padding: 6px 12px;
  }

  .site-footer { padding: 30px 12px 20px; }
  .footer-bottom { font-size: 11px; }
}