:root{
  --bg:#14243a;
  --text:#e9eefc;
  --muted:#b7c3e6;
  --brand:#2f6df6;
  --brand2:#2dd4bf;
  --shadow: 0 12px 40px rgba(0,0,0,.35);
  --radius: 18px;
}

/* Base */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:linear-gradient(180deg, #14243a, #172a43 42%, #14243a);
}
a{color:inherit}
.container{max-width:1100px;margin:0 auto;padding:0 20px}
.muted{color:var(--muted)}
.small{font-size:12px}

/* Skip */
.skip{
  position:absolute;left:-999px;top:10px;background:#fff;color:#000;
  padding:10px 14px;border-radius:10px;z-index:1000
}
.skip:focus{left:10px}

/* Header */
.site-header{
  position:sticky;top:0;z-index:50;
  background: rgba(3,6,11,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 0}
.brand{display:flex;align-items:center;text-decoration:none;flex:0 0 auto}
.brand-logo{
  display:block;
  mix-blend-mode:screen;
  width:220px;
  height:auto;
  max-height:118px;
  object-fit:contain;
}

.nav-links{display:flex;gap:18px;align-items:center}
.nav-links a,
.nav-dropdown-toggle{
  text-decoration:none;
  color: rgba(233,238,252,.82);
  font-weight:700;
  font-size:13px;
  padding:10px 14px;
  border-radius:12px;
}
.nav-dropdown-toggle{
  font-family:inherit;
  line-height:normal;
  border:0;
  background:transparent;
  cursor:pointer;
}
.nav-dropdown-toggle span{display:inline-block;margin-left:3px;font-size:10px;transition:transform .18s ease}
.nav-links a:hover,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible{color:var(--text);background:rgba(255,255,255,.06)}
.nav-links a.active{
  color:#fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.nav-dropdown{position:relative}
.nav-dropdown-menu{
  display:none;
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  width:230px;
  padding:7px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  background:rgba(3,6,11,.98);
  box-shadow:0 16px 36px rgba(0,0,0,.35);
}
.nav-dropdown-menu a{display:block;padding:11px 12px;border-radius:9px;white-space:nowrap}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu{display:block}
.nav-dropdown.open .nav-dropdown-toggle span{transform:rotate(180deg)}

.hamburger{
  display:none;
  width:44px;height:44px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  background:rgba(255,255,255,.03);
  cursor:pointer;
}
.hamburger span{display:block;height:2px;width:18px;margin:0 auto;background:var(--text);border-radius:2px}
.hamburger span + span{margin-top:5px}

/* Hero */
.hero{
  position:relative;
  min-height: calc(100vh - 64px);
  display:flex;
  align-items:center;
  overflow:hidden;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hero-bg{position:absolute;inset:0;background-position:center;background-size:cover;transform:scale(1.03);filter:saturate(1.05) contrast(1.05)}
.hero-overlay{
  position:absolute;inset:0;
  background:
    radial-gradient(1200px 700px at 20% 35%, rgba(47,109,246,.40), rgba(7,12,22,.18)),
    linear-gradient(90deg, rgba(7,12,22,.86), rgba(7,12,22,.55) 55%, rgba(7,12,22,.28));
}
.hero-content{
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  padding: 90px 0;
}
.hero-card{
  width: min(760px, 92vw);
  padding: 26px 26px;
  border-radius: 22px;
  background: rgba(13, 23, 40, .46);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
  backdrop-filter: blur(10px);
}
.hero-badge{
  display:inline-flex;align-items:center;gap:10px;
  padding:8px 12px;border-radius:999px;
  background: rgba(15, 35, 64, .52);
  border: 1px solid rgba(111, 215, 255, .25);
  color: rgba(233,238,252,.92);
  font-weight:700;font-size:13px;
  margin-bottom:18px;
}
.hero-badge .dot{
  width:10px;height:10px;border-radius:999px;
  background:#7dd3fc;
  box-shadow: 0 0 0 4px rgba(125,211,252,.18);
}
.hero-title{
  margin:0 0 12px 0;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.02;
}
.hero-subtitle{
  margin:0 0 18px 0;
  color: rgba(183,195,230,.92);
  font-size:15px;
  line-height:1.65;
  max-width:680px;
}
.hero-quote{
  margin:18px 0 0 0;
  color: rgba(183,195,230,.82);
  font-size:13px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top:14px;
}

/* Buttons */
.hero-cta{display:flex;gap:12px;flex-wrap:wrap}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:12px 16px;border-radius:14px;text-decoration:none;
  font-weight:700;font-size:14px;
  border:1px solid rgba(255,255,255,.14);
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}
.btn.primary{background:linear-gradient(135deg,var(--brand),#4f46e5);border-color:transparent}
.btn.primary:hover{filter:brightness(1.08)}
.btn.ghost{background:rgba(255,255,255,.04)}
.btn.ghost:hover{background:rgba(255,255,255,.08)}

/* Sections */
.section{padding:70px 0}
.section.alt{
  background:linear-gradient(180deg, rgba(49,76,108,.48), rgba(35,59,89,.34));
  border-top:1px solid rgba(255,255,255,.09)
}
.section-head{margin-bottom:22px}
.section-head h2{margin:0;font-size:28px}
.section-head .muted{margin:10px 0 0 0}

/* Cards */
.cards{display:grid;gap:16px}
.card{
  background: rgba(32,55,82,.92);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: var(--shadow);
}
.card h3{margin:0 0 10px 0}
.card p{line-height:1.7;color:var(--muted)}
.card ul{margin:12px 0 0 18px;color:var(--muted)}
.card.highlight{background: linear-gradient(135deg, rgba(47,109,246,.18), rgba(45,212,191,.08));}

/* About grid */
.content-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:18px;
  align-items:start;
}

/* Services: centered vertical panels + gradients + spacing */
#services .cards.three{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 32px;
}
#services .cards.three > article.card{
  width: 100%;
  max-width: 720px;
}
#services .card{
  background: linear-gradient(135deg,
    rgba(37, 66, 99, 0.98),
    rgba(58, 112, 181, 0.58)
  );
  border: 1px solid rgba(125, 211, 252, 0.25);
}
#services .card:hover{
  background: linear-gradient(135deg,
    rgba(45, 79, 116, 0.98),
    rgba(79, 154, 231, 0.62)
  );
  transition: background .3s ease;
}

/* Follow-the-sun processing feature */
.follow-sun-panel{
  position:relative;
  min-height:340px;
  margin-top:24px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.18);
  border-radius:16px;
  background:
    linear-gradient(90deg, rgba(8,20,37,.96) 0%, rgba(8,20,37,.88) 44%, rgba(8,20,37,.38) 72%, rgba(8,20,37,.14) 100%),
    url("assets/follow-the-sun-philippines.webp") center/cover no-repeat;
  box-shadow:0 14px 34px rgba(0,0,0,.34);
}
.follow-sun-content{
  position:relative;
  z-index:1;
  width:min(66%, 520px);
  padding:28px;
}
.follow-sun-kicker{
  margin:0 0 8px !important;
  color:#7dd3fc !important;
  font-size:12px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.follow-sun-panel h4{
  margin:0;
  color:#fff;
  font-size:clamp(24px, 3vw, 34px);
  line-height:1.1;
}
.follow-sun-tagline{
  margin:12px 0 10px !important;
  color:#fff !important;
  font-size:16px;
  font-weight:700;
  line-height:1.45 !important;
}
.follow-sun-panel .follow-sun-content > p:not(.follow-sun-kicker):not(.follow-sun-tagline){
  margin:0;
  color:rgba(233,238,252,.9);
  font-size:13px;
  line-height:1.65;
}
.follow-sun-roles{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:18px;
}
.follow-sun-roles div{
  padding:10px 11px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:10px;
  background:rgba(3,10,20,.54);
}
.follow-sun-roles strong,
.follow-sun-roles span{display:block}
.follow-sun-roles strong{color:#fff;font-size:12px}
.follow-sun-roles span{margin-top:4px;color:rgba(233,238,252,.76);font-size:10px;line-height:1.4}

/* Project Design gallery */
.project-design-gallery{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:22px;
  margin-top:22px;
}
.pd-item{display:flex;flex-direction:column}
.pd-item img{
  width:100%;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.pd-item p{
  margin-top:12px;
  font-size:13px;
  line-height:1.6;
  color: rgba(233,238,252,.9);
}

/* Project Execution gallery */
.project-execution-gallery{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
  margin-top:18px;
}
.project-execution-gallery img{
  width:100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.15);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

/* Experience pills */
.pill-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.pill{
  display:inline-flex;
  padding:8px 10px;
  border-radius:999px;
  font-size:12px;
  color:var(--text);
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}

/* Contact */
.contact-grid{
  display:grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap:64px;
  align-items:center;
}
.contact-logo-panel{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  overflow:hidden;
  background:transparent;
}
#contact .card{
  background:#000;
  border-color:rgba(255,255,255,.14);
}
.contact-logo{
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
}
label{display:block;margin-top:12px;color:var(--muted);font-weight:600;font-size:13px}
input, textarea{
  width:100%;
  margin-top:6px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  color:var(--text);
  outline:none;
}
input:focus, textarea:focus{border-color: rgba(47,109,246,.6); box-shadow:0 0 0 4px rgba(47,109,246,.15)}

/* Footer */
.site-footer{padding:26px 0;border-top:1px solid rgba(255,255,255,.08);background:#080d15}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.back-to-top{text-decoration:none;color:var(--muted);font-weight:700}
.back-to-top:hover{color:var(--text)}

/* Responsive */
@media (max-width: 980px){
  .brand-logo{width:170px;max-height:91px}
  .content-grid{grid-template-columns:1fr}
  .contact-grid{grid-template-columns:1fr;gap:28px}
  .contact-logo-panel{width:100%}
  .nav-links{
    display:none;
    position:absolute;right:20px;top:64px;
    flex-direction:column;gap:6px;
    background: rgba(3,6,11,.98);
    border:1px solid rgba(255,255,255,.10);
    border-radius:16px;
    padding:10px;
    width: min(260px, calc(100vw - 40px));
  }
  .nav-links a{padding:12px 12px}
  .nav-dropdown{width:100%}
  .nav-dropdown-toggle{display:flex;width:100%;align-items:center;justify-content:space-between;padding:12px;text-align:left}
  .nav-dropdown-menu{
    position:static;
    width:100%;
    margin:2px 0 0;
    padding:4px 4px 4px 12px;
    border:0;
    border-left:1px solid rgba(84,178,225,.35);
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }
  .nav-dropdown-menu a{white-space:normal;color:rgba(148,209,238,.92)}
  .hamburger{display:inline-grid;place-items:center}
  .nav-links.open{display:flex}
  .project-design-gallery{grid-template-columns:1fr}
  .project-execution-gallery{grid-template-columns:1fr}
}


/* === FORCE spacing between Services panels === */
#services .cards.three > article.card{
  margin-bottom: 40px;
}

#services .cards.three > article.card:last-child{
  margin-bottom: 0;
}


/* === FORCE equal width for all Services panels === */
#services .cards.three{
  display: flex;
  flex-direction: column;
  align-items: center;
}

#services .cards.three > article.card{
  width: 100%;
  max-width: 720px;
}


/* ===== Services panels: lock to Project Design width + spacing ===== */
#services .cards.three{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 40px !important;            /* space between panels */
}

#services .cards.three > article.card{
  width: min(720px, 100%) !important;  /* match Project Design panel width */
  max-width: 720px !important;
  margin: 0 !important;
}

#services .cards.three > article.card *{
  max-width: 100%;
}

.project-design-gallery,
.project-execution-gallery{
  width: 100%;
}
.project-design-gallery img,
.project-execution-gallery img{
  display: block;
  width: 100%;
}

/* Blue Ocean Data image */
.blue-ocean-data-image{
  margin-top:18px;
}
.blue-ocean-data-image img{
  width:100%;
  max-width:100%;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.15);
  box-shadow:0 12px 30px rgba(0,0,0,.35);
}


.experience-card{
  max-width: 900px;
}


/* --- Experience card with right-side hex image --- */
#experience .card{
  position: relative;
  overflow: hidden;
}

.experience-card-wrap{
  position: relative;
  display: grid;
  grid-template-columns: 62% 38%;
  min-height: 420px;
}

.experience-card-text{
  position: relative;
  z-index: 2;
  padding-right: 24px;
}

#experience .card::after{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 38%;
  height: 100%;
  background-image: url("assets/experience_hex_bg.png");
  background-size: cover;
  background-position: center;
  opacity: 0.95;
}

/* Mobile: remove image completely to keep text clean */
@media (max-width: 900px){
  .experience-card-wrap{
    grid-template-columns: 1fr;
    min-height: auto;
  }
  #experience .card::after{
    display: none;
  }
}

@media (max-width: 640px){
  .follow-sun-panel{
    min-height:auto;
    background:
      linear-gradient(180deg, rgba(8,20,37,.62) 0%, rgba(8,20,37,.94) 38%, rgba(8,20,37,.98) 100%),
      url("assets/follow-the-sun-philippines.webp") 68% center/cover no-repeat;
  }
  .follow-sun-content{width:100%;padding:190px 20px 22px}
  .follow-sun-roles{grid-template-columns:1fr}
}
