/* ===== RESET ===== */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:'Inter',sans-serif;background:#090d14;color:#e9eef3;line-height:1.6;-webkit-font-smoothing:antialiased; padding-top:64px}

/* ===== VARIABLES ===== */
:root{
 --primary:#00d6ff;
 --accent:#ff00d4;
 --bg-dark:#06090e;
 --text:#e9eef3;
 --muted:#98a3b5;
 --radius:14px;
}

/* ===== BASE NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(9, 13, 20, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ===== LOGO ===== */
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}
.logo span {
  color: var(--accent);
}

/* ===== NAV LINKS (Desktop) ===== */
.nav-links {
  display: flex;
  list-style: none;
  gap: 1.6rem;
  align-items: center;
  transition: all 0.4s ease;
}
.nav-links li {
  width: 100%;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  display: block;
  width: 100%;
  text-align: left;

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

/* ===== HAMBURGER ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}
.nav-toggle span {
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: 0.4s ease;
}

/* === Hamburger Open Animation === */
.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ===== MOBILE STYLES ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    position: absolute;
    right: 1.5rem;
    top: 1.2rem;
    z-index: 1002;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 75%;
    max-width: 300px;
    flex-direction: column;
    justify-content: flex-start;
    padding: 4rem 2rem 2rem;
    background: rgba(9, 13, 20, 0.97);
    gap: 1.4rem;
    opacity: 0;
    pointer-events: none;
    transition: right 0.4s ease, opacity 0.4s ease;
    z-index: 1001;
    align-items: flex-start;
  }

  .nav-links.open {
    right: 0;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    text-align: right;
    width: 100%;
  }

  .nav-links a {
    font-size: 1rem;
    display: inline-block;
    width: 100%;
  }
}




/* ===== HERO ===== */
.hero{min-height:90vh;display:flex;align-items:center;justify-content:center;background:url('hero.webp') center/cover no-repeat}
.hero-inner{text-align:center;padding:0 1rem;max-width:780px}
.gradient-text{background:linear-gradient(90deg,var(--primary),var(--accent));background-size:200%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;font-size:clamp(2.2rem,7vw,4rem);font-weight:700;animation:gradientMove 8s linear infinite}
@keyframes gradientMove{to{background-position:200% center}}
.hero-tag{color:var(--muted);margin:1.1rem auto 2rem;max-width:550px;font-size:1.1rem}

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

/* ===== HERO TEXT fade‑up ===== */
.hero-inner{
  animation:heroUp 1s ease-out .3s both;
}
@keyframes heroUp{
  from{opacity:0;transform:translateY(40px)}
  to{opacity:1;transform:none}
}

.hero-tag{
  color:#eef3f7;                /* lighter text */
  text-shadow:0 2px 6px rgba(0,0,0,.6);
}


/* ===== BUTTONS ===== */
.btn-primary{display:inline-flex;align-items:center;gap:.6rem;background:var(--accent);color:#fff;padding:14px 30px;border-radius:var(--radius);font-weight:600;box-shadow:0 0 10px rgba(255,0,212,.3);transition:.3s}
.btn-primary.big{font-size:1.1rem;padding:18px 36px;margin-top:1.6rem}
.btn-primary svg{width:1.1rem;height:1.1rem}
.btn-primary:hover{background:var(--primary);transform:translateY(-2px)}

/* ===== SECTIONS ===== */
.section{padding:5rem 1.2rem;max-width:1000px;margin:auto;text-align:center}
.section.dark{background:var(--bg-dark)}
.section-title{font-size:1.8rem;margin-bottom:2.6rem;color:var(--primary)}
.small{font-size:.9rem}
.alt{color:var(--muted)}

/* ===== GRID 3 ===== */
.grid3{display:grid;gap:2rem}
.grid3 .service{background:#0e141d;padding:2.2rem 1.4rem;border-radius:var(--radius);opacity:0;transform:translateY(50px);transition:.5s}
/* Reveal all cards once the grid itself gets .show */
.grid3.show .service {
  opacity: 1;
  transform: none;
}
/* ===== GRID 3 ===== */
.grid3 svg{
  width:36px;height:36px;margin-bottom:1rem;
  fill:var(--primary);         /* for filled icons   */
  stroke:var(--primary);       /* for stroked icons  */
  stroke-width:2;              /* default thickness  */
}

.grid3 h3{margin-bottom:.6rem;color:#fff;font-size:1.1rem}
.grid3 p{color:var(--muted);font-size:.95rem}
.grid3 .show{opacity:1;transform:none}
@media(min-width:700px){.grid3{grid-template-columns:repeat(3,1fr)}}

/* ===== CARDS ===== */
.cards{display:grid;gap:2rem}
.card{background:#0e141d;border-radius:var(--radius);overflow:hidden;box-shadow:0 4px 16px rgba(0,0,0,.4);opacity:0;transform:translateY(60px);transition:.55s}
.card.show{opacity:1;transform:none}
.card img{width:100%;height:auto;object-fit:cover}
.card-info{padding:1.2rem;text-align:left}
.card-info h3{color:#fff;margin-bottom:.2rem}
.btn-text{color:var(--accent);font-size:.9rem}
.btn-text:hover{color:var(--primary)}
@media(min-width:680px){.cards{grid-template-columns:repeat(2,1fr)}}

/* ===== ABOUT ===== */
.about-wrapper{display:grid;gap:2rem;align-items:center;text-align:left;opacity:0;transform:translateY(60px);transition:.6s}
.about-wrapper.show{opacity:1;transform:none}
.about-wrapper img{width:200px;height:200px;border-radius:50%;border:4px solid var(--accent);object-fit:cover}
.tech{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1rem}
.tech li{background:#111a27;padding:.4rem .8rem;border-radius:8px;font-size:.75rem;color:var(--muted);list-style:none}
@media(min-width:780px){.about-wrapper{grid-template-columns:200px 1fr}}

 /* ===== SLIDER ===== */
.slider{max-width:650px;margin:0 auto;position:relative; min-height: 150px;}
.slide{display:none}
.slide.current{display:block;animation:fadeIn .9s}
blockquote{font-size:1.1rem;margin-bottom:.8rem;color:#fff;font-style:italic}
.slider span{color:var(--primary);font-weight:600}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}

/* ===== CONTACT ===== */
.contact{background:#0e141d;border-radius:var(--radius)}
.contact .small{margin-top:1.2rem}

/* ===== FOOTER ===== */
footer{text-align:center;padding:2.6rem 1rem;background:#05070c;color:var(--muted);font-size:.85rem}

/* ===== REVEAL BASE ===== */
.reveal{opacity:0;transform:translateY(60px);transition:.6s}
.show{opacity:1;transform:none}

/* ===== REDUCED‑MOTION ===== */
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
/* === Back‑to‑Top button === */
#toTop{
  position:fixed;bottom:24px;right:20px;
  width:46px;height:46px;border-radius:50%;
  background:var(--primary);color:#fff;font-size:1.2rem;border:none;
  box-shadow:0 4px 12px rgba(0,0,0,.35);cursor:pointer;
  opacity:0;visibility:hidden;transition:.3s;
  z-index:999;
}
#toTop.show{opacity:1;visibility:visible}
#toTop:hover{background:var(--accent)}

/* ===== NO HORIZONTAL SCROLL ===== */
html, body {
  overflow-x: hidden;
}

/* ===== HERO TITLE SAFETY ===== */
.hero-title {
  word-break: break-word;
  line-height: 1.1;
}

/* ===== PREVENT WIDE CARDS/SERVICES ===== */
.cards, .grid3 {
  overflow: hidden;
}
.card, .service {
  max-width: 100%;
}

/* ===== MOBILE RESPONSIVENESS TWEAKS ===== */
@media (max-width: 400px) {
  .hero-inner {
    padding: 0 .8rem;
  }
  .section {
    padding: 3rem .8rem;
  }
  .nav-links a {
    font-size: .68rem;
  }
}

/* ===== TESTIMONIAL IMAGES ===== */
.testimonial-image {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.testimonial-image img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: 0 4px 12px rgba(0, 214, 255, 0.3);
}

/* Responsive testimonial layout */
@media (min-width: 600px) {
  .testimonial-image img {
    width: 100px;
    height: 100px;
  }
}

/* ===== CHAT TESTIMONIALS ===== */
.chat-testimonials-grid {
  display: flex;
  gap: 1rem;
  transition: transform 0.4s ease;
  will-change: transform;
}

.carousel-container {
  position: relative;
  max-width: 320px; /* adjust as needed */
  margin: 2rem auto 0 auto;
}

.chat-testimonials-wrapper {
  overflow: hidden;
}


/* Main chat reaction box */
.chat-bubble {
  min-width: 320px; 
  background: #8432b3;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  overflow: hidden;
  padding: 5px;
  position: relative;
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 1;
  transform: translateY(0);
}

/* Chat bubble image */
.chat-bubble img {
  width: 100%;
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
}

/* Chat bubble text */
.chat-bubble p {
  font-size: 0.85rem;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  color: #e7dbdb;
  margin: 0 10px;
  line-height: 1.5;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #352c47;
  border: none;
  color: white;
  font-size: 1.4rem;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  border-radius: 50%;
  user-select: none;
  z-index: 10;
}

.arrow-left {
  left: -25px;
}

.arrow-right {
  right: -20px;
}