:root {
    --green: blue;
}

/* ===== THEME ===== */
body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background: #020617;
    color: #e5e7eb;
}

/* toggle this class to test light mode */
body.light {
    background: #ffffff;
    color: #020617;
}

/* ===== WELCOME SECTION ===== */
.welcome-box {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;

    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-radius: 6px;
}

body:not(.light) .welcome-box {
    background: rgba(0,0,0,0.35);
}

.welcome-content {
    text-align: center;
    max-width: 900px;
}

.welcome-text {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 16px;
}

/* IMPORTANT: per-letter transition */
.welcome-text span {
    transition: color 1.4s linear;
}

.welcome-tagline {
    margin-bottom: 30px;
    opacity: 0.85;
}

.welcome-btn {
    padding: 14px 36px;
    border-radius: 6px;
    border: none;
    background: var(--green);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

/* ===== SERVICE MODES ===== */
.service-modes {
  position: relative;
  background: radial-gradient(circle at center, #0b1220, #020617);
  min-height: 100vh; /* ensures full height on all screens */
}

.solutions-header {
  color: #fff;
  padding: 20px;
  text-align: center;
  position: sticky; /* sticky everywhere */
  top: 0;
  z-index: 10;
  font-size: 2.1rem;
  font-weight: 700;
  background: radial-gradient(circle at center, #0b1220, #020617);
}

.service-display {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 8%;
  color: #ffffff;
  z-index: 1;
}

.mode-core {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #2563eb, #1e3a8a);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow:
    0 0 0 30px rgba(37,99,235,0.08),
    0 0 0 60px rgba(37,99,235,0.04);
  animation: corePulse 4s infinite ease-in-out;
}

.mode-core i {
  font-size: 6rem;
  color: #ffffff;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mode-content {
  max-width: 520px;
}

.mode-content h2 {
  font-size: 2.6rem;
  margin-bottom: 20px;
  line-height: 1.2;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mode-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #cbd5f5;
  transition: opacity 0.3s ease, transform 0.3s ease;
  margin-bottom: 50px;
}

.explore-btn {
  padding: 12px 28px;
  margin-top: 30px;
  font-size: 1rem;
  font-weight: 600;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.explore-btn:hover {
  background: #16a34a;
}

.service-state {
  height: 100vh;
}

@keyframes corePulse {
  0% {
    box-shadow:
      0 0 0 30px rgba(37,99,235,0.08),
      0 0 0 60px rgba(37,99,235,0.04);
  }
  50% {
    box-shadow:
      0 0 0 45px rgba(37,99,235,0.12),
      0 0 0 90px rgba(37,99,235,0.03);
  }
  100% {
    box-shadow:
      0 0 0 30px rgba(37,99,235,0.08),
      0 0 0 60px rgba(37,99,235,0.04);
  }
}

/* Responsive */
@media (max-width:1024px){
  .service-display {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 20px;
  }
  .mode-core {
    margin: 0 auto 20px;
    width: 200px;
    height: 200px;
  }
  .mode-content h2 {
    font-size: 2rem;
  }
  .mode-content p {
    font-size: 1rem;
  }
  .explore-btn {
    font-size: 0.95rem;
    padding: 10px 24px;
  }
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

:root{
    --bg:#020617;
    --panel:#0f172a;
    --text:#e5e7eb;
    --muted:#94a3b8;
    --accent:#38bdf8;
    --border:rgba(255,255,255,0.08);
}

body.light{
    --bg:#f8fafc;
    --panel:#ffffff;
    --text:#020617;
    --muted:#475569;
    --border:rgba(0,0,0,0.08);
}

body{
    background:var(--bg);
    color:var(--text);
}

/* ===== Section ===== */
.feature-section{
    margin:1.5rem auto;
    padding:0 2.5rem;
}

/* ===== Navigation ===== */
.section-nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding-bottom:1.5rem;
    border-bottom:1px solid var(--border);
}

.nav-brand{
    font-weight:700;
    font-size:1.2rem;
}

.nav-right button{
    background:none;
    border:1px solid var(--border);
    color:var(--text);
    padding:.4rem .6rem;
    border-radius:.4rem;
    cursor:pointer;
}

.menu-toggle{display:none}

/* ===== Mobile Nav ===== */
.mobile-nav{
    display:flex;
}

.nav-links{
    display:flex;
    gap:2rem;
    list-style:none;
}

.nav-links a{
    text-decoration:none;
    color:var(--muted);
}

.nav-links a:hover{
    color:var(--text);
}

.close-menu{
    display:none;
}

/* ===== Carousel ===== */
.carousel-wrapper{
    position:relative;
    margin-top:1.5rem;
    overflow:hidden;
}

.carousel-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:2.5rem;
}

.carousel-card{
    aspect-ratio:4/3;
    overflow:hidden;
    border-radius:.5rem;
    box-shadow:0 20px 50px rgba(0,0,0,.25);
    background:#000;
    transition: all 0.5s ease;
    position:relative;
}

.carousel-card::before {
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(45deg, rgba(56,189,248,0.1), transparent);
    pointer-events:none;
    opacity:0;
    transition: opacity 0.5s ease;
}

.carousel-card:hover::before {
    opacity:1;
}

.carousel-card:hover {
    box-shadow:0 40px 80px rgba(56,189,248,0.3);
    transform: translateY(-6px) scale(1.02);
}

.carousel-track{
    display:flex;
    height:100%;
    transition:transform .8s cubic-bezier(.65,0,.35,1);
}

.carousel-track img{
    width:100%;
    height:100%;
    object-fit:cover;
    flex-shrink:0;
    transition: transform 0.6s ease;
}

.carousel-track img:hover{
    transform: scale(1.05);
}

/* ===== Overlay ===== */
.carousel-overlay{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    background:rgba(15,23,42,.85);
    backdrop-filter:blur(8px);
    border:1px solid var(--border);
    padding:2rem 2.5rem;
    border-radius:.5rem;
    text-align:center;
    max-width:580px;
    z-index:10;
    animation: overlayPulse 3s ease-in-out infinite;
    box-shadow:0 0 30px rgba(56,189,248,0.15);
}

.overlay-tag{
    color:var(--accent);
    letter-spacing:.12em;
    font-size:.7rem;
    text-transform:uppercase;
}

@keyframes overlayPulse{
    0%,100%{transform:translate(-50%,-50%) scale(1);}
    50%{transform:translate(-50%,-50%) scale(1.02);}
}

/* PARTICLES */
.particle{
    position:absolute;
    border-radius:50%;
    background: rgba(56,189,248,0.15);
    pointer-events:none;
    animation: particleMove linear infinite;
}

@keyframes particleMove{
    0%{transform:translateY(0) scale(0.5); opacity:0.5;}
    50%{transform:translateY(-120px) scale(1); opacity:1;}
    100%{transform:translateY(-250px) scale(0.5); opacity:0;}
}

/* ===== Mobile ===== */
@media(max-width:900px){
    .carousel-grid{
        grid-template-columns:1fr;
    }
    .carousel-overlay{
        width:90%;
        max-width:90%;
        font-size:0.9rem;
        padding:1.5rem 2rem;
    }
    .menu-toggle{
        display:inline-block;
    }
    .mobile-nav{
        position:fixed;
        inset:0;
        background:var(--panel);
        flex-direction:column;
        padding:4rem 2rem;
        transform:translateX(100%);
        transition:transform .3s ease;
        z-index:999;
    }
    .mobile-nav.show{
        transform:translateX(0);
    }
    .nav-links{
        flex-direction:column;
        gap:1.5rem;
    }
    .close-menu{
        display:block;
        position:absolute;
        top:1rem;
        right:1rem;
        background:none;
        border:1px solid var(--border);
        color:var(--text);
        font-size:1.5rem;
        padding:.2rem .5rem;
        cursor:pointer;
    }
    .carousel-card::before{opacity:0;} /* remove hover glow on mobile */

    .feature-section{
        margin:1.5rem auto;
        padding:0 0.5rem;
    }

    .section-nav{
      padding: 0 1.5rem;
    }
  
}


/* ABOUT INTRO */
.about-intro{
  padding:3rem 2rem;
  text-align:center;
}

.about-intro p{
  font-size:1.1rem;
  color:var(--text);
  max-width:750px;
  margin:0 auto;
  line-height:1.7;
}



/* SPLIT DIVIDER */
.split-divider{
  margin:4rem 0;
  position:relative;
  display:grid;
  grid-template-columns:1fr 1fr;
}

/* HORIZONTAL LINE */
.split-divider::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:1px;
  background:var(--border);
}

/* VERTICAL LINE */
.split-divider::after{
  content:"";
  position:absolute;
  top:0;
  left:50%;
  width:1px;
  height:100%;
  background:var(--border);
}

/* SPLITS */
.split{
  padding:3rem 3rem;
  display:flex;
  flex-direction:column;
  gap:1.5rem;
}

.split h3{
  font-size:1.25rem;
  letter-spacing:.02em;
  color:var(--text);
}

/* SIGNAL LIST */
.signal-list{
  position:relative;
  padding-left:32px;
}

.signal-list::before{
  content:"";
  position:absolute;
  left:10px;
  top:0;
  bottom:0;
  width:2px;
  background:linear-gradient(to bottom, var(--accent), transparent);
}

.signal-item{
  position:relative;
  margin-bottom:20px;
  padding-left:26px;
}

.signal-item p{
  font-size:1rem;
  color:var(--text);
  line-height:1.7;
}

.signal-dot{
  position:absolute;
  left:-2px;
  top:6px;
  width:14px;
  height:14px;
  background:var(--accent);
  border-radius:50%;
  box-shadow:0 0 0 6px rgba(56,189,248,0.12);
  animation:pulse 2.5s infinite;
}

@keyframes pulse{
  0%{box-shadow:0 0 0 6px rgba(56,189,248,0.12);}
  50%{box-shadow:0 0 0 12px rgba(56,189,248,0.06);}
  100%{box-shadow:0 0 0 6px rgba(56,189,248,0.12);}
}


/* INDUSTRIES */
.industries{ padding:70px 5%; background:var(--bg); }
.industries-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.industry-card{ position:relative; border-radius:6px; overflow:hidden; height:220px; box-shadow:0 15px 40px rgba(0,0,0,0.08); cursor:pointer; transition:transform .4s ease, box-shadow .4s ease; background:var(--bg); border:1px solid var(--border); }
.industry-card img{ width:100%; height:100%; object-fit:cover; transition:transform .6s ease; }
.industry-overlay{ position:absolute; inset:0; background:linear-gradient(to top, rgba(0,0,0,0.45), transparent); display:flex; align-items:flex-end; padding:18px; }
.industry-overlay h3{ color:var(--text); font-size:1.1rem; font-weight:600; }
.industry-card:hover{ transform:translateY(-8px); box-shadow:0 25px 55px rgba(0,0,0,0.14); }
.industry-card:hover img{ transform:scale(1.06); }
.section-title h2{ font-size:1.6rem;text-align: center; }
.section-title p{ font-size:1.1rem;text-align: center;padding: 10px; }
@media(max-width:1024px){ .industries-grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:600px){ .industries{ padding:48px 6%; } .industries-grid{ grid-template-columns:1fr; } .industry-card{ height:180px; } .section-title h2{ font-size:1.6rem;text-align: center; } }


/* CONTACT */
.contact-card{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px;
  border-radius:6px;
  transition:transform .3s ease, background .3s ease;
}

.contact-card i{
  font-size:1.2rem;
  color:var(--accent);
}

.contact-card span{
  font-size:.85rem;
  color:var(--muted);
}

.contact-card strong{
  display:block;
  font-size:1rem;
  color:var(--text);
}

.contact-card:hover{
  transform:translateX(6px);
  background:rgba(56,189,248,0.03);
}

/* FOOTER */
.site-footer{

  margin-top:60px;
}

.footer-inner{
  display:grid;
  grid-template-columns:1.2fr auto 1fr;
  align-items:center;
  gap:24px;
}

.footer-brand h3{
  font-size:1.4rem;
}

.footer-brand .tagline{
  font-size:.9rem;
  color:var(--muted);
}

.footer-contact{
  display:flex;
  gap:20px;
  justify-content:flex-end;
}

.footer-item{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:.95rem;
  transition:transform .3s ease;
}

.footer-item i{color:var(--accent);}
.footer-item:hover{transform:translateY(-3px);}

.footer-bottom{
  margin-top:30px;
  padding-top:20px;
  border-top:1px solid var(--border);
  text-align:center;
  font-size:.85rem;
  color:var(--muted);
}

/* MOBILE */
@media(max-width:900px){
  .footer-inner{grid-template-columns:1fr;text-align:center;}
  .footer-contact{justify-content:center;flex-direction:column;}
}

@media(max-width:768px){
  .split-divider{
    grid-template-columns:1fr;
    padding-top:2rem;
  }

  .split-divider::after{display:none;}

  .split{
    padding:2.5rem 1.5rem;
  }

  .split + .split{
    border-top:1px solid var(--border);
    padding-top:3rem;
  }
}

@media(max-width:480px){
  .split{
    padding:2rem 1.25rem;
  }

  .signal-item p,
  .contact-card strong{
    font-size:.95rem;
  }
}


 .featured-clients {
  padding: 0.4rem 0.2rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.featured-clients h2 {
  color: var(--text);
  font-size: 1.5rem;
  margin-bottom: 3rem;
}

/* GRID */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Desktop */
  width: 100%;
  gap: 0;
  box-sizing: border-box;
}

/* CLIENTS — all borders by default */
.clients-grid .client {
  border: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.client img {
  width: 100px;
  object-fit: contain;
  margin-bottom: 0.2rem;
}

.client p {
  color: var(--text);
  font-size: 1rem;
  text-align: center;
}

/* Desktop 3 columns — remove outer edges */
.clients-grid .client:nth-child(3n+1) {
  border-left: none;
}
.clients-grid .client:nth-child(-n+3) {
  border-top: none;
}
.clients-grid .client:nth-child(3n) {
  border-right: none;
}
.clients-grid .client:nth-last-child(-n+3) {
  border-bottom: none;
}

/* Tablet / small screens — 2 columns */
@media(max-width:900px){
  .clients-grid {
    grid-template-columns: repeat(2,1fr);
  }

  .clients-grid .client:nth-child(2n+1) {
    border-left: none;
  }
  .clients-grid .client:nth-child(-n+2) {
    border-top: none;
  }
  .clients-grid .client:nth-child(2n) {
    border-right: none;
  }
  .clients-grid .client:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .client {
    padding: 1.5rem;
  }
  .client img {
    width: 80px;
    margin-bottom: 0.75rem;
  }
}

/* Small screens ≤300px — still 2 columns */
@media(max-width:300px){
  .clients-grid {
    grid-template-columns: repeat(2,1fr);
  }

  .client {
    padding: 1rem;
  }
  .client img {
    width: 60px;
    margin-bottom: 0.5rem;
  }
}
