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

*{
   box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
   margin: 0;
}

:root{
   --bg-box: #081ee67c;
   --bg-color-1: #0b5bdb;
   --bg-color: #0A1931;
   --primary: #1ea5ff;
   --accent: #3ed17b;
   --text: #ffffff;
   --muted: rgba(255,255,255,0.82);
}

.container{
   width: auto;
   max-width: 1200px;
   margin: 0 auto;
   padding: 0 20px;
}

.header-content{
   position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10,25,49,0.9);
  backdrop-filter: blur(6px);
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-content .container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo-header{
 display: flex;
 align-items: center;
 gap: 12px;
 color: yellow;
}
.logo-header img{
 height: 56px;
 width: auto;
 object-fit: contain;
 display: block;
}

.text-tittle{
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: flex-start;
}
.text-tittle h3{
 margin: 0;
 font-size: 18px;
 line-height: 1.05;
 color: var(--text);
}
.text-tittle p{ margin: 0; font-size: 12px; color: var(--muted); }

.header-inner{
 display: flex;
 align-items: center;
 justify-content: space-between;
 width: 100%;
 gap: 20px;
}

.ul-nav{
 display: flex;
 align-items: center;
 gap: 20px;
 list-style: none;
 margin: 0;
 padding: 0;
}
.ul-nav li{ margin: 0; }
.ul-nav a{
 text-decoration: none;
 color: var(--text);
 padding: 8px 12px;
 border-radius: 8px;
 font-weight: 600;
 letter-spacing: 0.6px;
 transition: all 180ms ease;
}
.ul-nav a:hover{
 color: var(--primary);
 background: rgba(255,255,255,0.03);
 transform: translateY(-2px);
}

.hero{
    /* overlay + image for a modern look */
    background-image: linear-gradient(rgba(10,25,49,0.55), rgba(10,25,49,0.55)), url(../image/office.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    width: 100%;
    min-height: 70vh;
    /* offset so fixed header doesn't cover hero content */
    padding-top: 80px;
    display: flex;
    align-items: center;
    color: var(--text);
}

.hero img{
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* center the hero text and make it look modern */
.layanan{
    margin: 1em;
    padding: 2em 1em;
}
.hero .container{
    display: flex;
    justify-content: center;
    align-items: center; 
}


    /* layanan */

.tittle-layanan{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-left: 3em;
    color: var(--text);
}
.tittle-layanan ::after{
    display: block;
    content: "";
    background-color: aquamarine;
    width: 3em;
    height: 2px;
    margin: 6px 0;
}

.hero-teks{
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 36px 24px;
    color: var(--text);
    /* background: rgba(255,255,255,0.03); */
    border-radius: 12px;
    /* box-shadow: 0 6px 30px rgba(2,6,23,0.45); */
    font-weight: bolder;
}

.parent-layanan {
    display: grid;
    grid-template-columns: 0fr repeat(3, 1fr) 0fr;
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 14px;
    grid-row-gap: 10px;    
    
    /* margin: 2em ; */
    padding: 2em;
}

.div1 { grid-area: 1 / 2 / 2 / 3; }
.div2 { grid-area: 1 / 3 / 2 / 4; }
.div3 { grid-area: 1 / 4 / 2 / 5; }
.div4 { grid-area: 2 / 2 / 3 / 3; }
.div5 { grid-area: 2 / 3 / 3 / 4; }
.div6 { grid-area: 2 / 4 / 3 / 5; }

.card{
    background-color: var(--bg-color-1);
    border-radius: 8px;
    box-sizing: border-box;
    padding: 10px 20px;

     grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
     color: var(--text);
     cursor: pointer;
      transition: ease 1.5s;
      border: solid 2px var(--bg-color-1);
}
.card:hover{
    box-sizing: border-box;
    border: solid 2px var(--text);
}

.card h3{
    color: var(--text);
}
.card h3::after{
    margin-top: 2em 0;
    margin: 1em 0;
    display: block;
    content: "";
    background-color: black;
    width: 10em;
    height: 3px;
} 

/* footer */

.footer {
   width: 100%;
   background: linear-gradient(180deg, #171717 0%, #0f0f0f 100%);
   color: var(--text);
   box-sizing: border-box;
   padding-top: 8px;
   margin-top: 20px;
}

.footer-content {
   width: 100%;
   max-width: 1200px;
   min-height: 360px;
   display: flex;
   justify-content: space-between;
   align-items: flex-start;
   gap: 36px;
   padding: 72px 22px 38px;
   box-sizing: border-box;
   margin: 0 auto;
   background: transparent;
}

.logo-footer {
   margin-top: 0;
   overflow: hidden;
   min-width: 3px;
   min-height: 35px;
   box-sizing: border-box;
   color: var(--text);
}

.logo-footer img {
   width: 170px;
   object-fit: contain;
   display: block;
   filter: brightness(1.08);
}

.text-footer {
   margin-top: 14px;
}

.logo-footer p,
.layanan-footer p,
.call-me .contact-item,
.call-me .contact-brand {
   margin: 0; 
   color: var(--muted);
   word-break: break-word;
}

.layanan-footer,
.call-me {
   display: flex;
   justify-content: flex-start;
   align-items: flex-start;
   flex-direction: column;
   color: var(--text);
   gap: 10px;
}

.layanan-footer h3,
.call-me h3 {
   color: #ffffff;
   margin: 0 0 8px;
   font-size: 1.2rem;
   letter-spacing: 0.5px;
   position: relative;
   padding-bottom: 8px;
}

.layanan-footer h3::after,
.call-me h3::after {
   content: "";
   position: absolute;
   left: 0;
   bottom: 0;
   width: 42px;
   height: 3px;
   border-radius: 999px;
   background: linear-gradient(90deg, var(--bg-color-1), #5ec4ff);
}

.footer-col {
   flex: 1;
   display: flex;
   align-items: flex-start;
   justify-content: flex-start;
   flex-direction: column;
}

.contact-brand {
   font-size: 1.02rem;
   font-weight: 700;
   color: #ffffff;
   letter-spacing: 0.5px;
   margin-bottom: 2px;
}

.contact-item {
   display: flex;
   align-items: flex-start;
   gap: 10px;
   line-height: 1.7;
   color: var(--muted);
   font-size: 0.96rem;
   background: rgba(255, 255, 255, 0.02);
   border: 1px solid rgba(255, 255, 255, 0.06);
   border-radius: 10px;
   padding: 8px 12px;
   width: 100%;
   box-sizing: border-box;
}

.contact-icon {
   min-width: 20px;
   display: inline-flex;
   justify-content: center;
   align-items: center;
   font-size: 1rem;
   line-height: 1;
}

.copyright {
   width: 100%;
   background-color: #121212;
   color: var(--text);
   border-top: 1px solid rgba(255, 255, 255, 0.12);
   box-sizing: border-box;
}

.copyright-content {
   display: flex;
   justify-content: center;
   align-items: center;
   padding: 20px 20px 30px;
   text-align: center;
   color: var(--text);
   font-size: 14px;
}

.copyright-content p {
   margin: 0;
   color: rgba(255, 255, 255, 0.82);
}

/* Floating WhatsApp button (shared) */
.whatsapp-float{
   position: fixed;
   right: 3em;
   bottom: 3em;
   width: 70px;
   height: 70px;
   border-radius: 50%;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   background: linear-gradient(180deg,#25D366,#1DA851);
   box-shadow: 0 8px 24px rgba(37,211,102,0.22);
   z-index: 9999;
   transition: transform 160ms ease, box-shadow 160ms ease;
}

.wa-button::before,
.whatsapp-float::after{
   position: absolute;
   opacity: 2;  z-index: -1;
            border-radius: 100%;
            display: block; justify-content: center; align-items: center;
            content: "";
            display: flex; justify-content: center; align-items: center;
            width: 70px; height: 70px;
            border: 1px solid gold;  background-color: aqua;
            animation: whatsapp 2.5s ease-out infinite;
        
}

.whatsapp-float svg{ display: block; color: var(--text);}
.whatsapp-float:hover{
   animation-play-state: paused;
   transform: translateY(-4px) scale(1.04);
   box-shadow: 0 12px 40px rgba(37,211,102,0.26);
}

/* pulse keyframes */
@keyframes whatsapp{
    0% {
            transform: scale(0);
            opacity: 0;
        }

        70% {
         
            opacity: 0.2;
        }

        100% {
            transform: scale(1.2);
            opacity: 0;
        }
}

@media (max-width: 520px){
   .whatsapp-float{ width: 60px; height: 60px; bottom: 2em; right: 1em; animation-duration: 3.2s; }
}

/* Responsive navbar, cards, footer */
.nav-toggle{ display:none; background:transparent; border:0; width:44px; height:44px; align-items:center; justify-content:center; cursor:pointer; padding:8px; }
.nav-toggle .hamburger{ width:22px; height:2px; background:var(--text); display:block; position:relative; border-radius:2px; transition: background 200ms ease; }
.nav-toggle .hamburger::before, .nav-toggle .hamburger::after{ content:""; position:absolute; left:0; width:100%; height:2px; background:var(--text); border-radius:2px; transition: transform 220ms ease, top 220ms ease, opacity 220ms ease; }
.nav-toggle .hamburger::before{ top:-7px; }
.nav-toggle .hamburger::after{ top:7px; }
/* transform hamburger to X when menu open */

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .ul-nav { display: none; position: absolute; top: 64px; right: 16px; background: var(--surface, #fff); box-shadow: 0 8px 24px rgba(0,0,0,0.12); padding: 12px; border-radius: 8px; flex-direction: column; gap: 8px; min-width: 200px; z-index: 120; }
  body.nav-open .ul-nav { display: flex; }
  .ul-nav .li-nav { margin: 6px 0; }
  .ul-nav .li-nav a { display:block; padding:8px 12px; }
  
  /* header .header-content { position: fixed; } */
}
body.nav-open .nav-toggle .hamburger{ background: transparent; }
body.nav-open .nav-toggle .hamburger::before{ transform: rotate(45deg); top:0; }
body.nav-open .nav-toggle .hamburger::after{ transform: rotate(-45deg); top:0; }

@media (max-width: 768px){
   .responsive{ display: flex; justify-content: center; align-items: center; flex-direction: column;}

  .nav-toggle{ display:inline-flex; }
  .header-content .container, .header-inner{ display:flex; justify-content:space-between; align-items:center;}
  .ul-nav{ display:none !important; }
  body.nav-open .ul-nav{
    display:flex !important;
    position:absolute;
    top:64px;
    right:18px;
    background:rgba(10,25,49,0.95);
    padding:12px;
    border-radius:10px;
    flex-direction:column;
    gap:8px;
    box-shadow:0 10px 30px rgba(0,0,0,.4);
    z-index:9998;
    min-width:200px;
  }
  .ul-nav li{ margin:0; }
  .ul-nav a{ padding:8px 10px; display:inline-block; white-space:nowrap; }
  /* .header-content{ position:fixed; left:0; right:0; top:0; } */
}

/* .card{ background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border-radius:12px; padding:18px; box-shadow:0 6px 18px rgba(2,6,23,0.25); color:var(--muted); display:flex; flex-direction:column; gap:12px; align-items:flex-start; min-height:160px; transition: transform 220ms ease, box-shadow 220ms ease; } */

/* article and why card styles */
.card-why, .card-list, .articles{ display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap:1.25rem; align-items:stretch; }

.card-article, .article-card, .card-why .card{ display:flex; flex-direction:column; background:inherit; padding:18px; border-radius:12px; min-height:220px; }
.card-article .thumb, .article-card .thumb{ width:100%; height:160px; border-radius:8px; object-fit:cover; display:block; margin-bottom:12px; }
.card-article h3, .card-why h3{ margin:0 0 8px; font-size:1.05rem; color:var(--text); }
.card-article p, .card-why p{ margin:0; color:var(--muted); flex:1; }

.card:hover{ transform: translateY(-6px); box-shadow: 0 14px 44px rgba(2,6,23,0.30); }

@media (max-width: 768px){
  .card-why, .card-list, .articles{ grid-template-columns: 1fr; }
  .card-article .thumb{ height:140px; }
  .card{ min-height:140px; }
}

@media (prefers-reduced-motion: reduce){
  .card, .card-article{ transition: none; transform: none; }
}

/* generic card grid for pages that list cards */
.card-list, .card-why{ display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:1rem; align-items:stretch; }

.why-icon img, .card .why-icon img{ width:56px; height:56px; object-fit:contain; display:block; }

@media (max-width: 768px){
  .card{ padding:14px; min-height:130px; }
  .card-list, .card-why{ grid-template-columns: 1fr; }
}

.footer-content{ flex-wrap:wrap; gap:24px; }
.footer-col{ min-width:220px; flex:1 1 220px; }

@media (prefers-reduced-motion: reduce){
  .whatsapp-float{ animation:none !important; }
}

/* small-screen navbar single-line overrides removed to allow standard hamburger overlay */



/* small responsive adjustments for the header */
@media (max-width: 768px) {
  .header-content .container{ padding: 10px 16px; }
  .text-tittle h3{ font-size: 16px; }
  .ul-nav{ gap: 12px; font-size: 14px; flex-wrap: wrap; justify-content: flex-end; }
  .logo-header img{ height: 48px; }
  .hero{ padding-top: 72px; }
}
