:root {
  --accent: #00a4b3;
  --accent-dark: #008391;
  --dark: #1d2327;
  --darker: #14181b;
  --text: #555d63;
  --light: #f7f7f7;
  --white: #fff;
  --radius: 6px;
  --container: 1170px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 15px;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { color: var(--dark); line-height: 1.25; font-weight: 700; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.section { padding: 90px 0; }
.section.light { background: var(--light); }
.section-title { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-title h2 { font-size: 34px; text-transform: uppercase; margin-bottom: 14px; }
.section-title h2::after {
  content: ""; display: block; width: 60px; height: 3px;
  background: var(--accent); margin: 16px auto 0;
}

.btn {
  display: inline-block; background: var(--accent); color: var(--white);
  padding: 13px 34px; border-radius: var(--radius); font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px; font-size: 14px;
  border: 2px solid var(--accent); cursor: pointer; transition: all .2s;
}
.btn:hover { background: transparent; color: var(--accent); }
.btn.outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn.outline:hover { background: var(--white); color: var(--dark); }

/* Top bar & header */
.topbar { background: var(--darker); color: #aab; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #cdd; }
.topbar a:hover { color: var(--accent); }

.header {
  position: sticky; top: 0; z-index: 100; background: var(--white);
  box-shadow: 0 2px 14px rgba(0,0,0,.07);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo img { height: 40px; width: auto; }
.nav ul { list-style: none; display: flex; gap: 34px; }
.nav a {
  color: var(--dark); font-weight: 600; font-size: 14px; letter-spacing: .5px;
  text-transform: uppercase; padding: 30px 0; position: relative;
}
.nav a:hover, .nav a.active { color: var(--accent); }
.nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 22px; height: 2px; background: var(--accent);
}
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--dark); margin: 5px 0; border-radius: 2px; }

/* Hero slider */
.hero { position: relative; height: 640px; overflow: hidden; background: var(--darker); }
.slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s ease; display: flex; align-items: center;
}
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,14,16,.8), rgba(10,14,16,.25)); }
.slide.active { opacity: 1; }
.slide .container { position: relative; width: 100%; }
.slide-content { max-width: 620px; color: var(--white); }
.slide-content .pre { color: var(--accent); font-weight: 600; font-size: 22px; letter-spacing: 1px; text-transform: uppercase; }
.slide-content h1 { color: var(--white); font-size: 56px; text-transform: uppercase; margin: 6px 0 18px; }
.slide-content p { font-size: 18px; margin-bottom: 30px; color: #e5e9eb; }
.slide.active .slide-content > * { animation: up .8s ease both; }
.slide.active .slide-content > *:nth-child(2) { animation-delay: .15s; }
.slide.active .slide-content > *:nth-child(3) { animation-delay: .3s; }
.slide.active .slide-content > *:nth-child(4) { animation-delay: .45s; }
@keyframes up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.hero-dots { position: absolute; bottom: 30px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 2; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--white); background: transparent; cursor: pointer; }
.hero-dots button.active { background: var(--accent); border-color: var(--accent); }

/* Services */
.grid { display: grid; gap: 30px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.service {
  background: var(--white); padding: 40px 28px; border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0,0,0,.06); text-align: center; transition: transform .25s, box-shadow .25s;
  border-bottom: 3px solid transparent;
}
.service:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(0,0,0,.1); border-bottom-color: var(--accent); }
.service .icon {
  width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%;
  background: rgba(0,164,179,.1); color: var(--accent); display: grid; place-items: center;
}
.service .icon svg { width: 34px; height: 34px; }
.service h3 { font-size: 20px; margin-bottom: 12px; }

/* Why us */
.why {
  background: linear-gradient(rgba(20,24,27,.88), rgba(20,24,27,.88)), url(../img/abc.jpg) center/cover fixed;
  color: #cfd5d8;
}
.why h2 { color: var(--white); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why .lead { font-size: 17px; margin: 18px 0 30px; }
.video-link {
  display: inline-flex; align-items: center; gap: 14px; color: var(--white); font-weight: 600;
}
.video-link .play {
  width: 64px; height: 64px; border-radius: 50%; background: var(--accent); display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(0,164,179,.25);
}
.video-link:hover { color: var(--accent); }
.bar { margin-bottom: 22px; }
.bar-label { display: flex; justify-content: space-between; color: var(--white); font-weight: 600; margin-bottom: 8px; }
.bar-track { height: 6px; background: rgba(255,255,255,.15); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: var(--accent); transition: width 1.6s ease; }
.bar-fill.go { width: var(--w); }

.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 70px; text-align: center; }
.counter .num { font-size: 46px; font-weight: 700; color: var(--accent); }
.counter .label { color: var(--white); font-weight: 600; text-transform: uppercase; font-size: 14px; letter-spacing: .5px; }

/* Works */
.work { border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: 0 6px 24px rgba(0,0,0,.06); display: block; }
.work .thumb { overflow: hidden; aspect-ratio: 1/1; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.work:hover img { transform: scale(1.07); }
.work .caption { padding: 20px 24px; }
.work h3 { font-size: 18px; text-transform: uppercase; }
.work p { margin-top: 6px; font-size: 14px; color: var(--text); }
.work:hover h3 { color: var(--accent); }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(7, 1fr); gap: 20px; align-items: center; }
.partners img { filter: grayscale(1); opacity: .75; transition: all .3s; }
.partners img:hover { filter: none; opacity: 1; }

/* CTA */
.cta { background: var(--accent); color: var(--white); padding: 50px 0; }
.cta .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta h2 { color: var(--white); font-size: 28px; }

/* Page header */
.page-header {
  background: linear-gradient(rgba(20,24,27,.82), rgba(20,24,27,.82)), url(../img/abc.jpg) center/cover;
  padding: 90px 0; text-align: center; color: #cfd5d8;
}
.page-header h1 { color: var(--white); font-size: 44px; margin-bottom: 10px; }
.breadcrumb { font-size: 14px; }
.breadcrumb a { color: #cfd5d8; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 8px; color: var(--accent); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-grid h2 { font-size: 36px; margin-bottom: 10px; }
.about-grid h2 em { color: var(--accent); font-style: normal; }
.about-grid .sub { font-weight: 600; color: var(--dark); margin-bottom: 18px; }
.about-grid p + p { margin-top: 14px; }
.about-img { border-radius: var(--radius); box-shadow: 18px 18px 0 var(--accent); }

/* Projects list */
.project-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 30px; }
.project-list li {
  background: var(--white); padding: 18px 22px 18px 54px; border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,.05); position: relative; color: var(--dark); font-weight: 500;
}
.project-list li::before {
  content: "✓"; position: absolute; left: 18px; top: 16px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: var(--white); font-size: 13px; display: grid; place-items: center; font-weight: 700;
}

/* Portfolio detail */
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; align-items: start; }
.detail-grid img { border-radius: var(--radius); width: 100%; }
.detail-grid h2 { font-size: 24px; margin: 30px 0 12px; }
.info-box { background: var(--light); padding: 30px; border-radius: var(--radius); border-top: 3px solid var(--accent); }
.info-box h3 { font-size: 20px; margin-bottom: 16px; }
.info-box dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; }
.info-box dt { font-weight: 600; color: var(--dark); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; }
.contact-item { display: flex; gap: 18px; margin-bottom: 30px; }
.contact-item .icon {
  flex: 0 0 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--white);
  display: grid; place-items: center;
}
.contact-item .icon svg { width: 22px; height: 22px; }
.contact-item h4 { text-transform: uppercase; font-size: 16px; margin-bottom: 4px; }
.form { background: var(--light); padding: 40px; border-radius: var(--radius); }
.form h3 { font-size: 24px; margin-bottom: 20px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form input, .form textarea {
  width: 100%; padding: 14px 16px; border: 1px solid #dfe3e6; border-radius: var(--radius);
  font: inherit; margin-bottom: 16px; background: var(--white); color: var(--dark);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form textarea { min-height: 150px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form-msg { margin-top: 14px; font-weight: 600; }
.form-msg.ok { color: #1a8a3a; }
.form-msg.err { color: #c62828; }
.map { margin-top: 0; line-height: 0; }
.map iframe { width: 100%; height: 400px; border: 0; }

/* Footer */
.footer { background: var(--darker); color: #9aa4aa; padding-top: 70px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 40px; }
.footer h4 { color: var(--white); text-transform: uppercase; font-size: 16px; margin-bottom: 20px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 9px; }
.footer a { color: #9aa4aa; }
.footer a:hover { color: var(--accent); }
.footer .flogo { background: var(--white); display: inline-block; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 18px; }
.footer .flogo img { height: 34px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 50px; padding: 22px 0; text-align: center; font-size: 13px; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: var(--white); display: grid; place-items: center; font-size: 20px;
  opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 99; border: 0; cursor: pointer;
}
.to-top.show { opacity: 1; pointer-events: auto; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .partners { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .slide-content h1 { font-size: 44px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 84px; left: 0; right: 0; background: var(--white);
    box-shadow: 0 10px 20px rgba(0,0,0,.08); max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .nav.open { max-height: 400px; }
  .nav ul { flex-direction: column; gap: 0; padding: 10px 16px; }
  .nav a { display: block; padding: 12px 0; border-bottom: 1px solid #eee; }
  .nav a.active::after { display: none; }
  .why-grid, .about-grid, .detail-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .counters { grid-template-columns: 1fr 1fr; }
  .project-list { grid-template-columns: 1fr; }
  .why { background-attachment: scroll; }
}
@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .hero { height: 520px; }
  .slide-content h1 { font-size: 32px; }
  .slide-content .pre { font-size: 17px; }
  .slide-content p { font-size: 16px; }
  .grid-4, .grid-3, .footer-grid, .form .row { grid-template-columns: 1fr; }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .section-title h2 { font-size: 26px; }
  .page-header { padding: 60px 0; }
  .page-header h1 { font-size: 32px; }
  .form { padding: 26px; }
  .topbar .container { justify-content: center; }
  .topbar .hours { display: none; }
}
