:root{
  --primary:#1e40af;
  --secondary:#2563eb;
  --accent:#60a5fa;

  --text:#0f172a;
  --text-light:#64748b;

  --white:#ffffff;

  --bg:#f8fafc;
  --border:#e2e8f0;

  --shadow:
    0 10px 40px rgba(15,23,42,.08);

  --radius:24px;
}

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

html{
  scroll-behavior:smooth;
}

body{
  font-family:'Inter',sans-serif;
  background:var(--bg);
  color:var(--text);
  overflow-x:hidden;
}

img{
  width:100%;
  display:block;
}

a{
  text-decoration:none;
}

.container{
  width:min(1200px,90%);
  margin:auto;
}

/* ========================= */
/* HEADER */
/* ========================= */

.header{
  position:fixed;
  top:0;
  width:100%;
  z-index:999;
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.4);
  transition:.3s;
}

.header.scrolled{
  box-shadow:var(--shadow);
}

.nav-container{
  height:85px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.logo{
  font-size:1.5rem;
  font-weight:900;
  color:var(--text);
}

.logo span{
  color:var(--primary);
}

.nav{
  display:flex;
  gap:2rem;
}

.nav a{
  color:var(--text);
  font-weight:600;
  position:relative;
}

.nav a::after{
  content:'';
  position:absolute;
  left:0;
  bottom:-6px;
  width:0%;
  height:2px;
  background:var(--primary);
  transition:.3s;
}

.nav a:hover::after{
  width:100%;
}

.menu-btn{
  display:none;
}

/* ========================= */
/* HERO */
/* ========================= */

.hero{
  min-height:100vh;
  position:relative;
  display:flex;
  align-items:center;
  overflow:hidden;
}

.hero-bg-grid{
  position:absolute;
  inset:0;

  background-image:
    linear-gradient(rgba(37,99,235,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.05) 1px, transparent 1px);

  background-size:70px 70px;
}

.floating{
  position:absolute;
  border-radius:50%;
  filter:blur(80px);
}

.floating-1{
  width:400px;
  height:400px;
  background:#93c5fd;
  top:-100px;
  right:-100px;
}

.floating-2{
  width:300px;
  height:300px;
  background:#bfdbfe;
  bottom:-100px;
  left:-100px;
}

.hero-content{
  position:relative;
  z-index:10;

  display:grid;
  grid-template-columns:1fr 1fr;
  gap:5rem;
  align-items:center;
}

.hero-badge{
  display:inline-flex;
  padding:.7rem 1.3rem;
  border-radius:999px;
  background:rgba(255,255,255,.8);
  backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,.5);

  font-weight:700;
  color:var(--primary);
}

.hero h1{
  margin-top:1.5rem;

  font-size:4.5rem;
  line-height:1.05;
  font-weight:900;
}

.hero p{
  margin-top:2rem;

  font-size:1.15rem;
  line-height:1.8;
  color:var(--text-light);
}

.hero-buttons{
  margin-top:2.5rem;
  display:flex;
  gap:1rem;
}

.btn-primary,
.btn-secondary,
.btn-white{
  padding:1rem 1.8rem;
  border-radius:18px;
  font-weight:700;
  transition:.3s;
}

.btn-primary{
  background:linear-gradient(
    135deg,
    var(--primary),
    var(--secondary)
  );

  color:white;
  box-shadow:
    0 10px 30px rgba(37,99,235,.25);
}

.btn-primary:hover{
  transform:translateY(-4px);
}

.btn-secondary{
  background:white;
  color:var(--text);
  border:1px solid var(--border);
}

.btn-secondary:hover{
  transform:translateY(-4px);
}

.hero-stats{
  margin-top:4rem;
  display:flex;
  gap:3rem;
}

.hero-stats h3{
  font-size:2rem;
  color:var(--primary);
}

.hero-stats span{
  color:var(--text-light);
}

.hero-card{
  position:relative;
  padding:2rem;

  border-radius:32px;

  background:
    rgba(255,255,255,.55);

  backdrop-filter:blur(18px);

  border:
    1px solid rgba(255,255,255,.4);

  box-shadow:var(--shadow);

  overflow:hidden;
}

.energy-lines{
  position:absolute;
  inset:0;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(37,99,235,.1),
      transparent
    );

  animation:move 4s linear infinite;
}

@keyframes move{
  from{
    transform:translateX(-100%);
  }
  to{
    transform:translateX(100%);
  }
}

.hero-card-top{
  display:flex;
  gap:1rem;
}

.mini-card{
  flex:1;

  background:white;
  padding:1rem;
  border-radius:20px;

  display:flex;
  align-items:center;
  gap:.8rem;

  box-shadow:var(--shadow);
}

.mini-card i{
  color:var(--primary);
}

.dashboard{
  margin-top:2rem;
}

.dashboard-line{
  height:14px;
  border-radius:999px;
  background:linear-gradient(
    90deg,
    var(--primary),
    transparent
  );

  margin-bottom:1rem;
}

.system-grid{
  margin-top:2rem;

  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:1rem;
}

.grid-box{
  height:120px;
  border-radius:20px;

  background:
    linear-gradient(
      135deg,
      rgba(37,99,235,.12),
      rgba(96,165,250,.05)
    );

  border:1px solid rgba(255,255,255,.5);
}

/* ========================= */
/* SECTIONS */
/* ========================= */

section{
  padding:120px 0;
}

.section-tag{
  display:inline-flex;
  padding:.6rem 1rem;
  border-radius:999px;
  background:#dbeafe;
  color:var(--primary);
  font-weight:700;
}

.section-tag.white{
  background:rgba(255,255,255,.15);
  color:white;
}

.section-header{
  text-align:center;
  margin-bottom:5rem;
}

.section-header h2,
.about h2,
.contact h2,
.cta h2{
  margin-top:1rem;
  font-size:3rem;
  line-height:1.1;
}

/* ========================= */
/* ABOUT */
/* ========================= */

.about-container{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:5rem;
  align-items:center;
}

.about p{
  margin-top:1.5rem;
  color:var(--text-light);
  line-height:1.9;
}

.about-card{
  background:white;
  border-radius:32px;
  padding:2rem;
  box-shadow:var(--shadow);
}

.about-item{
  display:flex;
  gap:1rem;
  margin-bottom:2rem;
}

.about-item:last-child{
  margin-bottom:0;
}

.about-item i{
  width:60px;
  height:60px;

  display:flex;
  align-items:center;
  justify-content:center;

  border-radius:18px;

  background:#dbeafe;
  color:var(--primary);
}

/* ========================= */
/* SERVICES */
/* ========================= */

.services-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:2rem;
}

.service-card{
  background:white;
  border-radius:28px;
  padding:2rem;

  transition:.4s;
  box-shadow:var(--shadow);
}

.service-card:hover{
  transform:
    translateY(-10px);

  box-shadow:
    0 30px 50px rgba(15,23,42,.12);
}

.service-card i{
  width:70px;
  height:70px;

  display:flex;
  align-items:center;
  justify-content:center;

  border-radius:22px;

  background:#dbeafe;
  color:var(--primary);

  font-size:1.5rem;
}

.service-card h3{
  margin-top:1.5rem;
}

.service-card p{
  margin-top:1rem;
  line-height:1.8;
  color:var(--text-light);
}

/* ========================= */
/* PROJECTS */
/* ========================= */

.projects-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:2rem;
}

.project-card{
  overflow:hidden;
  border-radius:30px;
  box-shadow:var(--shadow);
}

.project-card img{
  height:420px;
  object-fit:cover;
  transition:1s;
}

.project-card:hover img{
  transform:scale(1.08);
}

/* ========================= */
/* CTA */
/* ========================= */

.cta-container{
  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--secondary)
    );

  border-radius:40px;
  padding:5rem;

  display:flex;
  align-items:center;
  justify-content:space-between;
}

.cta h2{
  color:white;
  max-width:700px;
}

.btn-white{
  background:white;
  color:var(--primary);
}

/* ========================= */
/* CONTACT */
/* ========================= */

.contact-container{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:5rem;
}

.contact p{
  margin-top:1.5rem;
  color:var(--text-light);
}

.contact-info{
  margin-top:2rem;
}

.contact-info div{
  margin-bottom:1rem;

  display:flex;
  align-items:center;
  gap:.8rem;
}

.contact-info i{
  color:var(--primary);
}

.contact-form{
  background:white;
  padding:2rem;
  border-radius:32px;
  box-shadow:var(--shadow);
}

.contact-form input,
.contact-form textarea{
  width:100%;
  margin-bottom:1rem;

  border:none;
  outline:none;

  background:#f8fafc;

  padding:1rem;
  border-radius:18px;

  font-family:inherit;
}

.contact-form textarea{
  min-height:180px;
  resize:none;
}

.contact-form button{
  width:100%;
  border:none;
  cursor:pointer;

  padding:1rem;

  border-radius:18px;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--secondary)
    );

  color:white;
  font-weight:700;
}

/* ========================= */
/* FOOTER */
/* ========================= */

.footer{
  background:#0f172a;
  color:white;
  padding:4rem 0;
}

.footer-container{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.footer-logo{
  font-size:1.5rem;
  font-weight:900;
}

.footer p{
  margin-top:1rem;
  color:#94a3b8;
}

.footer-links{
  display:flex;
  gap:2rem;
}

.footer-links a{
  color:#cbd5e1;
}

/* ========================= */
/* REVEAL */
/* ========================= */

.reveal{
  opacity:0;
  transform:translateY(50px);
  transition:1s;
}

.reveal.active{
  opacity:1;
  transform:translateY(0);
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media(max-width:1100px){

  .hero-content,
  .about-container,
  .contact-container,
  .services-grid,
  .projects-grid{
    grid-template-columns:1fr;
  }

  .hero h1{
    font-size:3.5rem;
  }

}

@media(max-width:768px){

  .nav{
    position:fixed;
    top:85px;
    right:-100%;

    width:280px;
    height:calc(100vh - 85px);

    background:white;

    flex-direction:column;

    padding:2rem;

    transition:.4s;
  }

  .nav.active{
    right:0;
  }

  .menu-btn{
    display:block;
    border:none;
    background:none;
    font-size:1.4rem;
  }

  .hero{
    padding-top:140px;
  }

  .hero h1{
    font-size:2.8rem;
  }

  .hero-stats{
    flex-direction:column;
    gap:1rem;
  }

  .cta-container,
  .footer-container{
    flex-direction:column;
    gap:2rem;
    text-align:center;
  }

}

/* ========================= */
/* COMMERCIAL */
/* ========================= */

.commercial{
  background:white;
}

.commercial .section-header{
  max-width:850px;
  margin-inline:auto;
}

.commercial .section-header p{
  margin-top:1.5rem;
  color:var(--text-light);
  line-height:1.9;
}

.commercial-grid{
  margin-top:5rem;

  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:2rem;
}

.commercial-card{
  position:relative;

  overflow:hidden;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.9),
      rgba(248,250,252,.9)
    );

  border:1px solid rgba(226,232,240,.8);

  border-radius:30px;

  padding:2rem;

  transition:.4s;

  box-shadow:
    0 10px 35px rgba(15,23,42,.05);
}

.commercial-card::before{
  content:'';

  position:absolute;
  top:0;
  left:0;

  width:100%;
  height:4px;

  background:
    linear-gradient(
      90deg,
      var(--primary),
      var(--accent)
    );

  transform:scaleX(0);

  transition:.4s;
}

.commercial-card:hover::before{
  transform:scaleX(1);
}

.commercial-card:hover{
  transform:
    translateY(-10px);

  box-shadow:
    0 25px 60px rgba(15,23,42,.12);
}

.commercial-card i{
  width:72px;
  height:72px;

  display:flex;
  align-items:center;
  justify-content:center;

  border-radius:22px;

  background:
    linear-gradient(
      135deg,
      rgba(37,99,235,.15),
      rgba(96,165,250,.1)
    );

  color:var(--primary);

  font-size:1.5rem;
}

.commercial-card h3{
  margin-top:1.5rem;

  font-size:1.2rem;
}

.commercial-card span{
  display:block;

  margin-top:1rem;

  line-height:1.8;

  color:var(--text-light);
}

@media(max-width:1100px){

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

}

@media(max-width:768px){

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

}

/* ========================= */
/* HERO VISUAL SYSTEM */
/* ========================= */

.grid-box{
  padding:1.2rem;

  display:flex;
  flex-direction:column;
  justify-content:space-between;

  min-height:140px;
}

.grid-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.grid-top span{
  color:var(--text-light);
  font-size:.9rem;
}

.grid-top strong{
  color:var(--text);
  font-size:1.1rem;
}

.progress{
  width:100%;
  height:10px;

  border-radius:999px;

  background:
    rgba(255,255,255,.6);

  overflow:hidden;
}

.progress-bar{
  height:100%;

  border-radius:999px;

  background:
    linear-gradient(
      90deg,
      var(--primary),
      var(--accent)
    );
}

.w-90{
  width:90%;
}

.w-95{
  width:95%;
}

.status{
  width:16px;
  height:16px;

  border-radius:50%;
}

.status.success{
  background:#22c55e;

  box-shadow:
    0 0 20px rgba(34,197,94,.5);
}

.chart-bars{
  display:flex;
  align-items:flex-end;
  gap:.5rem;

  height:60px;
}

.chart-bars div{
  flex:1;

  border-radius:999px 999px 0 0;

  background:
    linear-gradient(
      180deg,
      var(--primary),
      var(--accent)
    );

  animation:pulse 2s infinite ease-in-out;
}

.chart-bars div:nth-child(1){
  height:40%;
}

.chart-bars div:nth-child(2){
  height:75%;
}

.chart-bars div:nth-child(3){
  height:55%;
}

.chart-bars div:nth-child(4){
  height:90%;
}

@keyframes pulse{

  0%,100%{
    opacity:.6;
  }

  50%{
    opacity:1;
  }

}
