/* ============================================================
   Traya Cluster Design Build — Main Stylesheet
   File: style.css
   ============================================================ */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy:   #0a1628;
  --blue:   #1b3d6e;
  --gold:   #d4a017;
  --light:  #f4f6fb;
  --white:  #ffffff;
  --gray:   #6b7280;
  --dark:   #111827;
  --accent: #e8b422;
  --green:  #1e9e54;
}

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; object-fit: cover; }

/* ===== NAVBAR ===== */
nav {
  background: var(--white);
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(10,22,40,0.10);
  height: 72px;
}

.logo { display: flex; align-items: center; gap: 12px; }

.logo-icon {
  width: 100px;
  height: 100px;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  mix-blend-mode: multiply;
}
.logo-icon i { color: var(--gold); font-size: 1.3rem; }

.logo-text { line-height: 1.1; }
.logo-text strong {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: var(--navy);
}
.logo-text span {
  font-size: 0.65rem;
  color: var(--gray);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

.nav-links > li > a {
  padding: 8px 16px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--navy);
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-links > li > a:hover {
  background: var(--light);
  color: var(--blue);
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--navy);
}

/* ===== HERO — Split Layout ===== */
.hero {
  height: 92vh;
  min-height: 560px;
  display: flex;
  overflow: hidden;
}

.hero-container {
  display: flex;
  width: 100%;
  height: 100%;
}

/* LEFT: Sliding images */
.hero-left {
  position: relative;
  flex: 1.2;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active { opacity: 1; }

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

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: var(--gold);
  width: 28px;
  border-radius: 4px;
}

/* RIGHT: Fixed logo panel */
.hero-right {
  flex: 0 0 400px;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 36px;
  text-align: center;
  gap: 8px;
}
.hero-logo {
  width: 220px;
  height: 220px;
  object-fit: contain;
  border-radius: 0;
  border: none;
  padding: 0;
  background: transparent;
  mix-blend-mode: screen;
  margin-bottom: 4px;
}
.hero-right h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: 1.5px;
}

.hero-right p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--navy);
  padding: 0 5%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat-item {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.6rem;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

/* ===== SECTION COMMON ===== */
section { padding: 88px 5%; }

.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--gray);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 40px;
}

/* ===== ABOUT ===== */
.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-img-wrap { position: relative; }
.about-img-wrap img { height: 500px; border-radius: 12px; }

.about-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--navy);
  color: var(--white);
  padding: 24px 28px;
  border-radius: 10px;
  border-left: 5px solid var(--gold);
  font-size: 0.85rem;
}

.about-badge strong {
  display: block;
  font-size: 2rem;
  font-family: 'Bebas Neue', sans-serif;
  color: var(--gold);
}

.about-features {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feat-item { display: flex; align-items: flex-start; gap: 12px; }

.feat-icon {
  width: 40px;
  height: 40px;
  background: var(--light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feat-icon i { color: var(--blue); font-size: 1rem; }
.feat-title { font-weight: 700; font-size: 0.88rem; color: var(--navy); }
.feat-desc { font-size: 0.8rem; color: var(--gray); margin-top: 2px; }

/* ===== PROJECTS ===== */
.projects { background: var(--light); }

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

/* Project group (Completed / Ongoing) */
.project-group { margin-bottom: 56px; }
.project-group:last-child { margin-bottom: 0; }

.project-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.project-group-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 1px;
  color: var(--navy);
}

.group-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.completed-dot { background: var(--green); }
.ongoing-dot   { background: var(--gold); }

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

/* First card in each group spans 2 columns */
.projects-grid .proj-card:first-child,
.projects-grid > a:first-child .proj-card {
  grid-column: 1 / 3;
}

.proj-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  height: 280px;
}

.projects-grid .proj-card:first-child,
.projects-grid > a:first-child .proj-card {
  height: 340px;
}

.proj-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.proj-card:hover img { transform: scale(1.06); }

.proj-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.85) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}

.proj-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
}

.proj-name { font-weight: 700; font-size: 1rem; color: var(--white); }
.proj-loc { font-size: 0.78rem; color: rgba(255,255,255,0.65); margin-top: 3px; }

/* Status badge (top-right corner of each card) */
.proj-status {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.proj-status.completed {
  background: rgba(30,158,84,0.92);
  color: var(--white);
}

.proj-status.ongoing {
  background: rgba(212,160,23,0.92);
  color: var(--navy);
}

/* ===== WHY US ===== */
.whyus { background: var(--navy); }
.whyus .section-title { color: var(--white); }

.whyus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.whyus-img img {
    width: 100%;
    height: 650px;
    object-fit: contain;
    border-radius: 12px;
    display: block;
}
.why-item { display: flex; gap: 18px; align-items: flex-start; }

.why-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  width: 40px;
}

.why-title { font-weight: 700; color: var(--white); margin-bottom: 4px; }
.why-desc { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.7; }

/* ===== CONTACT ===== */
.contact { background: var(--navy); }
.contact .section-title { color: var(--white); }
.contact .section-desc { color: rgba(255,255,255,0.6); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact-grid .section-desc { margin-left: auto; margin-right: auto; }

.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 28px;
  margin-top: 32px;
  text-align: left;
}

.ci-item { display: flex; gap: 14px; align-items: flex-start; }

.ci-icon {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ci-icon i { color: var(--gold); }
.ci-label { font-size: 0.72rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; }
.ci-value { font-size: 0.9rem; color: var(--white); margin-top: 2px; }

/* ===== FOOTER ===== */
footer {
  background: #060f1d;
  color: rgba(255,255,255,0.55);
  padding: 60px 5% 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.83rem; line-height: 1.8; max-width: 280px; }

.footer-socials { display: flex; gap: 10px; margin-top: 20px; }

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  transition: all 0.2s;
}

.footer-socials a:hover { background: var(--gold); color: var(--navy); }

.footer-col h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 16px; font-weight: 700; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 0.82rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
}

.footer-bottom a { color: var(--gold); }

/* ===== SCROLL TO TOP ===== */
#scrollTop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: background 0.2s, transform 0.2s;
  z-index: 999;
}

#scrollTop:hover { background: var(--accent); transform: translateY(-2px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-container { flex-direction: column; }
  .hero-left { flex: none; height: 55vh; }
  .hero-right {
    flex: none;
    padding: 32px 24px;
    gap: 14px;
  }
  .hero-logo { width: 100px; height: 100px; }
  .hero-right h1 { font-size: 1.5rem; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }

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

  .about-grid,
  .whyus-grid { grid-template-columns: 1fr; gap: 32px; }

  .about-badge { right: 0; bottom: -12px; }

  .projects-grid { grid-template-columns: 1fr; }
  .projects-grid .proj-card:first-child,
  .projects-grid > a:first-child .proj-card {
    grid-column: auto;
    height: 280px;
  }

  .contact-info { grid-template-columns: 1fr; }

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

@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { height: auto; }
  .hero-left { height: 50vw; min-height: 240px; }
}
