:root {
  --bg-primary: #0b0f1a;
  --bg-secondary: #0f172a;
  --text-main: #e8eefc;
  --text-muted: #9db0d1;
  --solar: #ffd15c;
  --energy: #ff8f3f;
  --tech: #4bb6ff;
  --glass: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.16);
  --shadow-glow: 0 0 40px rgba(75, 182, 255, 0.24), 0 0 60px rgba(255, 209, 92, 0.1);
  --radius: 18px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  width: 100%;
  min-width: 0;
  font-family: "Inter", "Poppins", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at 15% 20%, rgba(255, 143, 63, 0.2), transparent 24%), var(--bg-primary);
  overflow-x: hidden;
}

main {
  display: block;
  width: 100%;
  min-width: 0;
}

.container {
  width: 100%;
  max-width: 1150px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 1.75rem);
  min-width: 0;
}
.section { padding: 6rem 0; position: relative; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 1rem; letter-spacing: -0.02em; }
p { color: var(--text-muted); line-height: 1.7; margin: 0 0 1rem; }
.eyebrow { color: var(--solar); text-transform: uppercase; letter-spacing: .2em; font-size: .76rem; font-weight: 700; margin-bottom: 1rem; }

#energyParticles {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.75;
}

.custom-cursor, .light-tracker {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
}

.custom-cursor {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.6);
  transform: translate(-50%, -50%);
  transition: transform .18s ease, opacity .3s ease;
}

.light-tracker {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75, 182, 255, 0.15) 0%, rgba(255, 209, 92, 0.05) 35%, transparent 70%);
  filter: blur(14px);
  transform: translate(-50%, -50%);
}

.loader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #080b14, #0f172a);
  display: grid;
  place-content: center;
  gap: 1rem;
  z-index: 99999;
  transition: opacity .8s ease, visibility .8s ease;
}
.loader-logo { animation: pulse 1.6s infinite; display: grid; place-items: center; }
.loader-logo img {
  width: min(260px, 64vw);
  height: auto;
  filter: drop-shadow(0 0 30px rgba(255, 164, 62, .35));
}
.loader-line { width: 240px; max-width: 80vw; height: 4px; background: linear-gradient(90deg, var(--solar), var(--energy), var(--tech)); border-radius: 99px; animation: load 1.6s infinite; }
.loader.hidden { opacity: 0; visibility: hidden; }

.site-header {
  position: fixed; top: 0; width: 100%;
  z-index: 2000; transition: .35s ease;
}
.site-header.scrolled {
  backdrop-filter: blur(14px);
  background: rgba(11, 15, 26, 0.65);
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  gap: .75rem;
  min-width: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  min-width: 0;
  flex-shrink: 1;
}
.brand-logo { height: 58px; width: auto; max-width: 180px; filter: drop-shadow(0 0 14px rgba(255, 209, 92, .22)); }
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-shrink: 0;
}
.main-nav a { color: #dbe7ff; text-decoration: none; font-weight: 500; position: relative; }
.main-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; background: linear-gradient(90deg, var(--solar), var(--tech)); transition: width .3s ease; }
.main-nav a:hover::after { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .9rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: all .35s cubic-bezier(.22,1,.36,1);
}
.btn-primary {
  background: linear-gradient(135deg, var(--solar), var(--energy));
  color: #131313;
  box-shadow: 0 0 22px rgba(255, 153, 71, .55);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 0 28px rgba(255, 209, 92, .8); }
.btn-outline { border-color: rgba(255,255,255,.38); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.08); }
.btn-nav { padding: .65rem 1rem; background: rgba(255,255,255,.1); }

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: 9rem;
  display: grid;
  align-items: center;
  overflow: hidden;
  overflow: clip;
  width: 100%;
  min-width: 0;
}
.hero-content { position: relative; z-index: 3; max-width: 740px; min-width: 0; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 4.3rem); }
.subtitle { font-size: clamp(1rem, 2.2vw, 1.22rem); max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,15,26,.65), rgba(11,15,26,.92)); z-index: 1; }

.parallax-layer {
  position: absolute;
  inset: -8%;
  background-position: center;
  background-size: cover;
  transform: translate3d(0, 0, 0);
}
.layer-back { background-image: url("../images/page1_img1.jpeg"), url("../images/image.png"); z-index: 0; opacity: .35; }
.layer-front { background: radial-gradient(circle at 75% 20%, rgba(75, 182, 255, .28), transparent 33%); z-index: 2; }

.energy-lines { position: absolute; inset: auto 0 14% 0; z-index: 2; }
.energy-lines span {
  display: block; width: 40%; height: 2px; margin: 1rem 0;
  background: linear-gradient(90deg, transparent, var(--tech), transparent);
  animation: flow 5s linear infinite;
}
.energy-lines span:nth-child(2){ width: 55%; animation-delay: .8s; }
.energy-lines span:nth-child(3){ width: 34%; animation-delay: 1.6s; }

.split-grid { display: grid; gap: 1.6rem; }
.glass-card {
  background: linear-gradient(160deg, rgba(255,255,255,.13), rgba(255,255,255,.04));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px) saturate(120%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.2), 0 12px 26px rgba(0,0,0,.32);
}
.about-highlights { display: grid; gap: 1rem; margin-top: 1.5rem; }
.about-highlights article { padding: 1.1rem 1.2rem; }
.about-highlights strong { font-size: 1.4rem; display: block; }
.about-visual .visual-card {
  border-radius: calc(var(--radius) + 6px);
  padding: 2rem;
  min-height: 280px;
  display: grid;
  align-content: center;
  background:
    linear-gradient(145deg, rgba(9,13,22,.88), rgba(22,28,42,.8)),
    url("../images/page2_img1.jpeg") center/cover no-repeat,
    url("../images/image.png") center/cover no-repeat;
  box-shadow: 9px 9px 20px rgba(0,0,0,.45), -8px -8px 22px rgba(80,120,255,.08);
}

.card-grid, .diff-grid, .stats-grid { display: grid; gap: 1rem; }
.service-card, .diff-item, .stat {
  border-radius: var(--radius);
  padding: 1.4rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .4s ease;
}
.service-card:hover, .diff-item:hover { transform: translateY(-7px); box-shadow: var(--shadow-glow); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 180px;
  gap: 1rem;
}
.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,.12);
}
.project-card:nth-child(1){ grid-row: span 2; }
.project-card:nth-child(4){ grid-column: span 2; }
.project-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.22,1,.36,1);
}
.project-card div {
  position: absolute; inset: auto 0 0 0;
  padding: 1rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.8));
}
.project-card:hover img { transform: scale(1.08); }

.stats .stat { text-align: center; background: rgba(75,182,255,.08); }
.stats strong { display: block; font-size: clamp(2.1rem, 8vw, 3.6rem); color: #fff; text-shadow: 0 0 22px rgba(255,209,92,.35); }

.cta-box {
  text-align: center;
  padding: 2.6rem;
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(130deg, rgba(255, 209, 92, .2), rgba(75, 182, 255, .18), rgba(255, 143, 63, .2));
  border: 1px solid rgba(255,255,255,.25);
  animation: cinematic 8s linear infinite alternate;
}

.contact-shell {
  padding: 1.9rem;
  border: 1px solid rgba(255, 255, 255, .2);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 209, 92, .14), transparent 45%),
    radial-gradient(circle at 88% 88%, rgba(75, 182, 255, .16), transparent 42%),
    linear-gradient(150deg, rgba(255,255,255,.11), rgba(255,255,255,.02));
  box-shadow: 0 30px 60px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.18);
}

.contact-head p:last-child {
  max-width: 70ch;
}

.contact-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.contact-item {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  transition: transform .3s cubic-bezier(.22,1,.36,1), border-color .3s ease, box-shadow .3s ease;
}

.contact-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 209, 92, .45);
  box-shadow: 0 16px 30px rgba(0,0,0,.25);
}

.contact-label {
  display: inline-block;
  font-size: .68rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #ffd981;
  margin-bottom: .35rem;
  font-weight: 700;
}

.contact-item p {
  margin: 0;
  color: #f1f6ff;
  font-weight: 600;
}

.contact-item a {
  color: #f1f6ff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 209, 92, .5);
  text-underline-offset: 3px;
}

.contact-item a:hover {
  text-decoration-color: rgba(255, 209, 92, .95);
}

.contact-grid-premium .contact-primary {
  grid-column: 1 / -1;
}

.contact-primary p {
  font-size: 1.04rem;
}

.contact-badges {
  margin-top: .9rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.contact-badges span {
  padding: .35rem .65rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  font-size: .76rem;
  color: #dce9ff;
}

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: .8rem;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: #fff;
  background: linear-gradient(135deg, #ffce68, #ff9447);
  box-shadow: 0 0 18px rgba(255, 166, 74, .35);
  flex-shrink: 0;
}

.contact-item:not(.contact-primary) {
  display: flex;
  align-items: center;
}

.contact-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.service-card h3 strong,
.project-card h3 strong {
  display: inline-block;
  margin-right: .2rem;
  color: #fff2cc;
  text-shadow: 0 0 20px rgba(255, 209, 92, .3);
}

.technical-note {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
}

.technical-note p {
  margin-bottom: .55rem;
}

.map-wrap {
  overflow: hidden;
  min-height: 320px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  filter: grayscale(.45) contrast(1.1) brightness(.85) saturate(.95);
}

.company-grid,
.participants-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

.company-card,
.participant-card {
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
}

.company-card:hover,
.participant-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.pill {
  display: inline-flex;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 209, 92, .25), rgba(255, 143, 63, .2));
  border: 1px solid rgba(255, 209, 92, .4);
  color: #ffe9b2;
  font-weight: 700;
}

.participant-role {
  margin-bottom: .4rem;
  color: #ffd37a;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .76rem;
  font-weight: 700;
}

.participant-photo-wrap {
  width: 100%;
  max-width: 170px;
  margin: 0 0 .85rem;
  padding: 4px;
  border-radius: 20px;
  background: linear-gradient(140deg, rgba(255, 209, 92, .75), rgba(75, 182, 255, .7));
  box-shadow: 0 0 24px rgba(255, 173, 79, .32);
}

.participant-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  display: block;
}

.participant-content h3 {
  margin-bottom: .55rem;
}

.participant-bio {
  margin: 0;
  color: #d7e6ff;
  max-width: 58ch;
}

.participant-featured {
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  gap: 1rem;
}

.impact-metrics {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.impact-metrics article {
  padding: 1.1rem;
}

.impact-metrics h3 {
  color: #ffe5a7;
  margin-bottom: .45rem;
}

.status-banner {
  margin-top: 1rem;
  padding: 1.2rem;
  border: 1px solid rgba(255, 209, 92, 0.28);
  background: linear-gradient(150deg, rgba(255, 209, 92, 0.14), rgba(75, 182, 255, 0.08));
}

.site-footer { border-top: 1px solid rgba(255,255,255,.1); padding: 3rem 0 1.6rem; background: rgba(8, 12, 20, .8); }
.footer-grid { display: grid; gap: 1.2rem; }
.footer-grid a { color: #dbe7ff; text-decoration: none; display: inline-block; margin-bottom: .5rem; }
.footer-bottom { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.08); }
.footer-logo-img {
  width: 130px;
  height: auto;
  margin-bottom: .8rem;
  filter: drop-shadow(0 0 18px rgba(76, 179, 255, .22));
}

.back-to-top {
  position: fixed; right: 1rem; bottom: 1rem; width: 42px; height: 42px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.3);
  background: rgba(10,15,30,.68); color: #fff; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s ease;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: .35rem;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.mobile-menu-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; }

img, video, iframe, canvas {
  max-width: 100%;
}

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(.98);
  transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1);
}
.reveal.active { opacity: 1; transform: translateY(0) scale(1); }
.cinematic-section { transition: transform 1.2s cubic-bezier(.2,.8,.2,1), opacity .9s ease; }

@media (min-width: 760px) {
  .split-grid { grid-template-columns: 1fr 1fr; align-items: center; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .impact-metrics { grid-template-columns: repeat(3, 1fr); }
  .company-grid { grid-template-columns: repeat(2, 1fr); }
  .participants-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (max-width: 1024px) {
  .section { padding: 4.5rem 0; }
  .brand-logo { height: 48px; max-width: 150px; }
  .mobile-menu-toggle { display: block; }
  .site-header.scrolled { background: rgba(8, 12, 21, .88); }
  .main-nav {
    position: fixed; right: 3%; left: 3%; top: 74px;
    display: none; flex-direction: column; align-items: flex-start;
    gap: .85rem;
    max-height: calc(100vh - 98px);
    overflow-y: auto;
    padding: 1rem; border-radius: 14px; backdrop-filter: blur(12px);
    background: rgba(8, 12, 21, .9); border: 1px solid rgba(255,255,255,.1);
  }
  .main-nav a { font-size: .95rem; }
  .main-nav a::after { display: none; }
  .hero { min-height: auto; padding-top: 7.4rem; padding-bottom: 4rem; }
  .hero-content { max-width: 100%; }
  .hero h1 { font-size: clamp(1.75rem, 8.4vw, 2.55rem); line-height: 1.15; }
  .subtitle { font-size: .97rem; max-width: 100%; }
  .hero-actions { width: 100%; gap: .7rem; }
  .hero-actions .btn { width: 100%; }
  .energy-lines { display: none; }
  .about-visual .visual-card { min-height: 220px; padding: 1.25rem; }
  .service-card, .diff-item, .stat, .company-card, .participant-card { padding: 1rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .main-nav.open { display: flex; }
  .project-grid { grid-template-columns: 1fr; grid-auto-rows: 210px; }
  .project-card div { padding: .75rem; }
  .project-card:nth-child(1), .project-card:nth-child(4) { grid-column: auto; grid-row: auto; }
  .contact-shell { padding: 1.2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: .75rem; }
  .contact-grid-premium .contact-primary { grid-column: auto; }
  .contact-actions { flex-direction: column; }
  .contact-actions .btn { width: 100%; }
  .participant-featured { grid-template-columns: 1fr; }
  .participant-photo-wrap { max-width: 150px; margin-bottom: .3rem; }
  .participant-bio { font-size: .95rem; }
  .footer-grid { gap: 1.6rem; }
  .custom-cursor, .light-tracker { display: none; }
}

@media (max-width: 560px) {
  .section { padding: 4rem 0; }
  .eyebrow { font-size: .68rem; letter-spacing: .16em; }
  h2 { font-size: clamp(1.4rem, 6.8vw, 1.9rem); }
  p { font-size: .95rem; line-height: 1.62; }
  .btn { padding: .82rem 1rem; font-size: .9rem; }
  .loader-logo img { width: min(210px, 72vw); }
  .map-wrap iframe { min-height: 260px; }
  .back-to-top { right: .65rem; bottom: .65rem; width: 38px; height: 38px; }
}

@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes load { 0% { transform: scaleX(.2); opacity: .5; } 50% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(.2); opacity: .5; } }
@keyframes flow { 0% { transform: translateX(-20%); opacity: .3; } 50% { opacity: 1; } 100% { transform: translateX(120%); opacity: .2; } }
@keyframes cinematic { 0% { filter: saturate(100%); } 100% { filter: saturate(130%) brightness(1.08); } }
