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

:root {
  --navy: #374782;
  --black: #25354f;
  --white: #ffffff;
  --accent: #fbc324;
  --accent-dark: #e0ad21;
  --gray: #7a7f9a;
  --gray-light: #eef0f8;
  --gray-mid: #c8cce0;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  background: var(--white);
  border-bottom: 1px solid var(--gray-mid);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(45,55,120,0.1); }

.nav-logo {
  text-decoration: none;
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--navy); }

.nav-cta {
  background: var(--accent);
  color: var(--navy) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; color: var(--navy) !important; }

/* HAMBURGER */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE MENU */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 65px; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.nav-mobile-menu a:hover { color: var(--accent); }
.nav-mobile-menu a:last-child {
  background: var(--accent);
  color: var(--navy);
  padding: 0.75rem 2.5rem;
  border-radius: 2rem;
  font-size: 1.25rem;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 9rem 3rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  background: var(--accent);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}

.hero-dot-grid {
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(45,55,120,0.2) 1px, transparent 1px);
  background-size: 32px 32px;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.2s;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--navy);
  max-width: 700px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.35s;
}

.hero h1 .accent-word {
  color: var(--black);
  position: relative;
  display: inline-block;
}

.hero-sub {
  margin-top: 2rem;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--gray);
  max-width: 420px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.5s;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.65s;
}

/* BUTTONS */
.btn-primary {
  background: var(--accent);
  color: var(--navy);
  padding: 0.85rem 2rem;
  border-radius: 2rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }

.btn-secondary {
  background: transparent;
  color: var(--navy);
  padding: 0.85rem 2rem;
  border-radius: 2rem;
  border: 1.5px solid var(--gray-mid);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-secondary:hover { border-color: var(--navy); transform: translateY(-2px); }

/* STATS */
.stats {
  background: var(--navy);
  padding: 4rem 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stat {
  border-left: 1px solid rgba(255,255,255,0.1);
  padding-left: 2rem;
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat-number {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.5rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* SECTION COMMON */
section { padding: 7rem 3rem; }

.section-tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--navy);
  max-width: 600px;
}

.section-title em {
  font-style: normal;
  color: var(--gray);
}

/* ABOUT */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-visual {
  background: var(--navy);
  border-radius: 1rem;
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-visual-inner {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0deg, var(--accent) 120deg, transparent 120deg, transparent 240deg, rgba(245,184,0,0.15) 240deg);
  animation: spin 12s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.about-visual::after {
  content: 'K';
  position: absolute;
  font-family: var(--font-head);
  font-size: 5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.05em;
}

.about-text p {
  color: var(--gray);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  margin-top: 1.5rem;
}
.about-text p + p { margin-top: 1rem; }

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

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

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

/* Card wrap stretches to fill grid cell */
.project-card-wrap {
  display: flex;
  transition: opacity 0.3s, transform 0.3s;
}
.project-card-wrap.hidden { display: none; }

/* Card fills wrap and uses flex column to push tags down */
.project-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 2.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(45,55,120,0.1); }
.project-card:hover::before { transform: scaleX(1); }

/* Banner image */
.project-banner {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}
.project-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Icon (emoji fallback) */
.project-icon {
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.project-number {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gray-mid);
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.project-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

/* Description expands to fill space, pushing tags down */
.project-desc {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 300;
  line-height: 1.7;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
}

/* Tags always at bottom */
.project-tags {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex-shrink: 0;
}

.project-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--accent);
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
}

/* Tags on the project detail page hero — navy with white text */
.project-hero-meta .project-tag {
  background: var(--navy);
  color: var(--white);
}

/* PROJECT DETAIL PAGE */
.project-hero {
  padding: 10rem 3rem 5rem;
  background: var(--accent);
  color: var(--navy);
  position: relative;
  overflow: hidden;
}
.project-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image: radial-gradient(circle, rgba(45,55,120,0.12) 1px, transparent 1px);
  background-size: 32px 32px;
}
.project-hero-content { position: relative; z-index: 1; max-width: 800px; }
.project-hero .section-tag { color: rgba(45,55,120,0.5); }
.project-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--navy);
  margin: 1rem 0 1.5rem;
}
.project-date {
  font-size: 0.85rem;
  color: rgba(45,55,120,0.5);
  margin-top: 0.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}
.project-hero-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.project-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 3rem;
}
.project-body h2 {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 3rem 0 1rem;
}
.project-body p {
  color: var(--gray);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.85;
  margin-bottom: 1.25rem;
  text-align: justify;
}
.project-body strong {
  font-weight: 700;
  color: var(--navy);
}
.project-body ul,
.project-body ol {
  color: var(--gray);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.85;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.project-body li {
  color: var(--gray);
  margin-bottom: 0.4rem;
}
.project-body li span,
.project-body li p {
  color: var(--gray);
  font-weight: 300;
}
.project-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(45,55,120,0.6);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.project-back:hover { color: var(--navy); }

/* CONTACT */
.contact {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact .section-tag { color: rgba(255,255,255,0.4); }
.contact .section-title { color: var(--white); max-width: 700px; text-align: center; }
.contact .section-title em { color: var(--accent); font-style: normal; }
.contact-sub {
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  font-weight: 300;
  margin-top: 1.5rem;
  margin-bottom: 3rem;
}
.contact-email {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.03em;
  transition: opacity 0.2s;
}
.contact-email:hover { opacity: 0.7; }

/* FILTER BUTTONS */
.filter-btn {
  background: var(--gray-light);
  border: 1.5px solid transparent;
  color: var(--gray);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.filter-btn:hover { border-color: var(--gray-mid); color: var(--navy); }
.filter-btn.active { background: var(--accent); color: var(--navy); border-color: var(--accent); }

/* DASHBOARD EMBED */

.dashboard-embed {
  margin: 2rem 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1e1e1e;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.dashboard-embed iframe {
  display: block;
  width: 100%;
  height: 600px;
  border: none;
}

.dashboard-note {
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted, #979593);
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: 0;
}

.dashboard-note code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  font-size: 0.85em;
}

/* Hide the setup note once a real src URL is in place —
   add class="dashboard-note hidden" to the <p> when live */
.dashboard-note.hidden {
  display: none;
}

/* Responsive: shrink height on smaller screens */
@media (max-width: 768px) {
  .dashboard-embed iframe {
    height: 420px;
  }
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: 8rem 1.5rem 4rem; }
  .hero-bg { width: 100%; clip-path: none; opacity: 1; }
  .hero-dot-grid { display: none; }
  .hero h1 { font-size: clamp(2.5rem, 10vw, 4.5rem); }
  .hero-tag { color: var(--black); }
  .hero-sub { color: var(--black); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero .btn-primary, .hero .btn-secondary {
    background: var(--navy);
    color: var(--white) !important;
    border-color: var(--navy);
    justify-content: center;
  }
  .hero .btn-primary:hover, .hero .btn-secondary:hover {
    background: var(--black);
    border-color: var(--black);
  }
  .stats { grid-template-columns: repeat(2, 1fr); padding: 3rem 1.5rem; }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
  section { padding: 5rem 1.5rem; }
  .about { grid-template-columns: 1fr; gap: 3rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .projects-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .project-hero { padding: 8rem 1.5rem 3rem; }
  .project-body { padding: 3rem 1.5rem; }
}

/* FOOTER COMPANY SECTION */
.footer-company {
  background: var(--accent);
  padding: 3rem 3rem;
  border-top: 1px solid rgba(45,55,120,0.12);
}
.footer-company-header {
  margin-bottom: 2rem;
}
.footer-company-header .section-tag {
  color: rgba(55,71,130,0.5);
}
.footer-company-header .section-title em {
  font-style: normal;
  color: var(--black);
}
.footer-company-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.company-info-item {
  border-left: 2px solid rgba(45,55,120,0.2);
  padding-left: 1.25rem;
}
.company-info-item:first-child {
  border-left: none;
  padding-left: 0;
}
.company-info-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.company-info-value {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.4;
}
a.company-info-value { text-decoration: none; color: var(--navy); }
a.company-info-value:hover { opacity: 0.7; }

/* FOOTER STRIP */
.site-footer {
  background: var(--accent);
  padding: 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-size: 0.8rem;
  color: rgba(45,55,120,0.5);
  font-weight: 300;
}
.footer-logo {
  text-decoration: none;
  display: inline-block;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.footer-logo:hover { opacity: 1; }
.site-footer .footer-logo img {
  filter: none;
}

@media (max-width: 900px) {
  .footer-company { padding: 2.5rem 1.5rem; }
  .footer-company-grid { grid-template-columns: 1fr 1fr; }
  .site-footer { padding: 1.25rem 1.5rem; }
}
@media (max-width: 600px) {
  .footer-company-grid { grid-template-columns: 1fr; }
}
/* LANGUAGE SWITCHER */
.nav-right {
  display: none;
  align-items: center;
  gap: 1rem;
}
.nav-lang-toggle {
  display: flex;
  align-items: center;
  background: var(--gray-light);
  border-radius: 2rem;
  padding: 0.2rem;
  gap: 0;
}
.nav-lang-pill {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  line-height: 1;
  padding: 0.35rem 0.75rem;
  border-radius: 2rem;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.nav-lang-pill.active {
  background: var(--accent);
  color: var(--navy);
  opacity: 1;
}
.nav-lang-pill:not(.active) {
  background: transparent;
  opacity: 0.4;
}
.nav-lang-pill:not(.active):hover {
  opacity: 0.7;
}

@media (max-width: 900px) {
  li.nav-lang-toggle { display: none; }
  .nav-right { display: flex; }
}
