/* ================= RESET ================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:"Segoe UI", Roboto, sans-serif;
}

body{
  background:#f5f7fb;
  color:#1e293b;
  line-height:1.7;
}

a{text-decoration:none}
img{max-width:100%;display:block}

/* ================= HEADER ================= */
header{
  background:#0f172a;
  padding:1px 1%;
  display:flex;
  align-items:center;
  justify-content:space-between;
}


.main-header{
  background:linear-gradient(
    90deg,
    #f7e7b4,
    #e6c97a,
    #c9a24d
  );
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  padding:10px 6%;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
   grid-column:2;
  text-align:center;
  font-size:20px;
  font-weight:600;
  letter-spacing:1.2px;
}

.logo img{
  height:48px;
}

/* Center text perfectly */
.header-title{
  grid-column:2;
  text-align:center;


  
  color:#cbd5e1;
  text-shadow:0 1px 2px rgba(0,0,0,.5);
  font-size:20px;
  font-weight:600;
  letter-spacing:1px;
}

/* Right empty space keeps text centered */
.main-header::after{
  content:"";
}
/* ================= NAV ================= */
nav{
  background:#020617;
  margin-bottom:0;
}

nav ul{
  list-style:none;
  display:flex;
  justify-content:center;
  gap:32px;
  padding:12px 0;
}

nav a{
  color:#e5e7eb;
  font-size:14px;
  font-weight:500;
}

nav a:hover{
  color:#38bdf8;
}

/* ================= HERO SLIDER ================= */
.hero-slider{
  position:relative;
  overflow:hidden;
  height:55vh;
  min-height:360px;
  margin-top:0;
}

.slide{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  opacity:0;
  transition:opacity 1.2s ease-in-out;
}

.slide::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    to right,
    rgba(2,6,23,.75),
    rgba(2,6,23,.45)
  );
}

.slide.active{
  opacity:1;
  z-index:1;
}

.hero-content{
  position:relative;
  z-index:2;
  color:#fff;
  max-width:600px;
  padding:90px 6%;
}

.hero-content h1{
  font-size:36px;
  font-weight:700;
  line-height:1.2;
}

.hero-content p{
  margin-top:12px;
  font-size:16px;
  color:#dbeafe;
}

/* ================= SECTIONS ================= */
section{
  padding:80px 6%;
}

.section-title{
  text-align:center;
  font-size:34px;
  margin-bottom:50px;
  color:#0f172a;
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:30px;
}

.card{
  background:#fff;
  padding:28px;
  border-radius:16px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
  transition:.3s;
}

.card:hover{
  transform:translateY(-6px);
}

.card img{
  border-radius:14px;
  margin-bottom:16px;
}

/* ================= FOOTER ================= */
footer{
  background:#020617;
  color:#cbd5f5;
  padding:70px 6% 30px;
}

.footer-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:40px;
}

footer h4{
  color:#38bdf8;
  margin-bottom:14px;
}

footer p{
  font-size:14px;
  color:#cbd5f5;
}

.copy{
  text-align:center;
  margin-top:30px;
  font-size:13px;
  color:#94a3b8;
}

/* ================= RESPONSIVE ================= */
@media(max-width:768px){

  header{
    flex-direction:column;
    gap:10px;
  }

  .logo img{
    height:44px;
  }

  nav ul{
    flex-direction:column;
    gap:16px;
    padding:16px 0;
  }

  .hero-slider{
    height:45vh;
  }

  .hero-content{
    padding:60px 5%;
    text-align:center;
  }

  .hero-content h1{
    font-size:26px;
  }

  .section-title{
    font-size:26px;
  }

  .card{
    padding:22px;
  }
}

@media(max-width:480px){
  .hero-slider{
    height:40vh;
  }

  footer{
    padding:50px 5% 20px;
  }
}
