/* ============================================================
   MG POWER – Design System
   Dark navy luxury aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ─── CSS Variables ─── */
:root {
  --bg: #080E1A;
  --bg-2: #0B1525;
  --surface: #0E1C2F;
  --surface-2: #122038;
  --border: rgba(255, 255, 255, 0.07);
  --accent: #1B4FFF;
  --accent-2: #3D6FFF;
  --accent-glow: rgba(27, 79, 255, 0.25);
  --text: #FFFFFF;
  --text-2: #A8BAD0;
  --text-3: #5E7A9A;
  --radius: 12px;
  --radius-lg: 20px;
  --nav-h: 80px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ─── Typography ─── */
h1,
h2,
h3,
h4 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

p {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.75;
}

/* ─── Utility ─── */
.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Ensure inline padding doesn't break container on mobile */
@media (max-width: 768px) {
  .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

.section {
  padding: 120px 0;
}

.section-sm {
  padding: 80px 0;
}

.text-accent {
  color: var(--accent-2);
}

.tag {
  display: inline-block;
  background: rgba(27, 79, 255, 0.12);
  color: var(--accent-2);
  border: 1px solid rgba(27, 79, 255, 0.25);
  padding: 4px 12px;
  border-radius: 40px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Energetic Tech Badge Style */
.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(27, 79, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(27, 79, 255, 0.15);
  padding: 8px 16px;
  border-radius: 12px;
  color: #fff;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tech-badge .tech-val {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-2);
  text-shadow: 0 0 10px rgba(27, 79, 255, 0.4);
}

.tech-badge .tech-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  font-weight: 600;
}

.tech-badge:hover {
  background: rgba(27, 79, 255, 0.12);
  border-color: rgba(27, 79, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 79, 255, 0.2);
}

.tech-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: 0.6s;
}

.tech-badge:hover::after {
  left: 100%;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 16px;
  display: block;
}

.divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 20px 0 32px;
}

/* ─────────────────────────────────
   NAVBAR
───────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(8, 14, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

@media (max-width: 768px) {
  .nav-inner {
    padding: 0 20px;
  }
}

.logo-img {
  height: 52px;
  width: auto;
  display: block;
  transition: transform var(--transition);
}

@media (max-width: 768px) {
  .logo-img {
    height: 40px;
  }
}

.nav-tagline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 32px;
  margin-right: auto;
  height: 52px;
  /* Matches logo height for vertical alignment */
  opacity: 0;
  animation: fadeIn 1s 0.3s ease forwards;
}

.tagline-line {
  width: 30px;
  height: 1px;
  background: var(--accent-2);
}

.nav-tagline span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-2);
}

@media (max-width: 1100px) {
  .nav-tagline {
    display: none;
  }
}

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

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--transition);
  letter-spacing: 0.02em;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition) !important;
}

.nav-cta:hover {
  background: var(--accent-2) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(27, 79, 255, 0.35) !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.nav-hamburger.active {
  background: var(--accent);
  border-color: var(--accent-2);
}

.nav-hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 14, 26, 0.85);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 100px 32px;
}

.mobile-menu::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(27, 79, 255, 0.15) 0%, transparent 40%);
  animation: bgRotate 20s linear infinite;
  pointer-events: none;
}

@keyframes bgRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: center;
  width: 100%;
}

.mobile-menu a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  transition: all 0.3s ease;
  display: block;
  opacity: 0;
  transform: translateY(20px);
}

.mobile-menu.active a {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation for mobile menu links */
.mobile-menu.active li:nth-child(1) a { transition-delay: 0.1s; }
.mobile-menu.active li:nth-child(2) a { transition-delay: 0.15s; }
.mobile-menu.active li:nth-child(3) a { transition-delay: 0.2s; }
.mobile-menu.active li:nth-child(4) a { transition-delay: 0.25s; }
.mobile-menu.active li:nth-child(5) a { transition-delay: 0.3s; }
.mobile-menu.active li:nth-child(6) a { transition-delay: 0.35s; }

.mobile-menu a:hover {
  color: var(--accent-2);
  transform: scale(1.1);
}

/* ─────────────────────────────────
   HERO
───────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('hero_new.jpg?v=3');
  background-size: cover;
  background-position: center;
  filter: saturate(1.2) contrast(1.1);
}

/* removed animation as per request */

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(8, 14, 26, 0.88) 0%,
      rgba(8, 14, 26, 0.65) 50%,
      rgba(8, 14, 26, 0.45) 100%);
}

.hero-overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 200px;
  padding-top: 80px;
}

@media (max-width: 768px) {
  .hero-content {
    padding-bottom: 180px;
    padding-top: 100px;
    text-align: center;
  }
  
  .hero-text-block {
    text-align: center;
  }
}

.hero-text-block {
  max-width: 1200px;
  text-align: left;
}



.hero-title {
  margin-bottom: 32px;
  font-size: clamp(2.8rem, 6.5vw, 4.8rem);
  /* Slightly smaller to fit */
  line-height: 1.1;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s 0.5s ease forwards;
}

.hero-title em {
  font-style: normal;
  display: inline-block;
  background: linear-gradient(to right, var(--accent-2), #88aaff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(27, 79, 255, 0.3));
}

/* Global Energy Cable Integration */
.energy-flow-title {
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 540px;
  margin-bottom: 0;
  line-height: 1.75;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s 0.7s ease forwards;
}


.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 24px rgba(27, 79, 255, 0.35);
}

.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(27, 79, 255, 0.45);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1s 1.4s ease forwards;
}

.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent-2), transparent);
  animation: scrollPulse 2s ease infinite;
}

/* ─────────────────────────────────
   CONTACT CARD (new design)
───────────────────────────────── */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 80px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}

@media (max-width: 768px) {
  .contact-grid {
    gap: 24px;
    margin-top: 40px;
  }
}

.contact-card .contact-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-card .contact-item-icon {
  width: 50px;
  height: 50px;
  background: rgba(27, 79, 255, 0.08);
  border: 1px solid rgba(27, 79, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
  flex-shrink: 0;
}

.contact-item-text label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-3);
  margin-bottom: 4px;
}

.contact-item-text a,
.contact-item-text span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.contact-item-text a:hover {
  color: var(--accent-2);
}

@media (max-width: 992px) {
  .contact-card {
    padding: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ─────────────────────────────────
   HERO STATS BAR (visible above fold)
───────────────────────────────── */
.hero-stats-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: rgba(8, 14, 26, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 40px 24px;
  position: relative;
  flex: 1;
}

@media (max-width: 768px) {
  .stat-item {
    padding: 32px 16px;
  }
  
  .stat-item::after {
    display: none !important;
  }
  
  .stat-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .stat-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .stat-item:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  bottom: 25%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  font-weight: 800;
  color: var(--text);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
  background: linear-gradient(180deg, #fff, #aab);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-3);
}

.stat-item.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-item.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-value.animated {
  animation: statGlow 2s infinite alternate ease-in-out;
}

@keyframes statGlow {
  0% { filter: drop-shadow(0 0 5px rgba(27, 79, 255, 0.1)); }
  100% { filter: drop-shadow(0 0 15px rgba(27, 79, 255, 0.4)); }
}

/* Electric sparking animation */
.electric-aura {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.spark {
  position: absolute;
  background: var(--accent-2);
  border-radius: 50%;
  filter: blur(1px);
  box-shadow: 0 0 12px var(--accent-2), 0 0 4px #fff;
  opacity: 0;
  animation: sparkMove 4s infinite linear;
}

@keyframes sparkMove {
  0% {
    transform: translateY(800px) translateX(0) scale(0);
    opacity: 0;
  }

  20% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
    transform: translateY(400px) translateX(30px) scale(1.5);
  }

  80% {
    opacity: 0.6;
  }

  100% {
    transform: translateY(0px) translateX(0) scale(0);
    opacity: 0;
  }
}



.stat-prefix,
.stat-suffix {
  font-size: 0.45em;
  color: var(--accent-2);
  font-weight: 700;
  vertical-align: middle;
  margin: 0 4px;
}

/* ─────────────────────────────────
   ABOUT / PILLARS
───────────────────────────────── */
#about .about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.pillars {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: border-color var(--transition), transform var(--transition);
}

.pillar:hover {
  border-color: rgba(27, 79, 255, 0.4);
  transform: translateX(4px);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(27, 79, 255, 0.12);
  border: 1px solid rgba(27, 79, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.pillar h4 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.pillar p {
  font-size: 0.88rem;
  margin: 0;
}

.partners-section {
  margin-top: 32px;
}

.partners-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0;
}

/* Partners infinite marquee */
.partners-marquee-wrap {
  overflow: hidden;
  margin-top: 56px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.partners-marquee-wrap::before,
.partners-marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.partners-marquee-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.partners-marquee-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.partners-marquee {
  overflow: hidden;
}

.partners-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
  will-change: transform;
}

.partner-logo {
  min-width: 200px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 0.3s, color 0.3s, filter 0.3s;
  flex-shrink: 0;
  padding: 0 20px;
}

.partner-logo svg {
  width: 100%;
  height: 100%;
}

.partner-logo:hover {
  opacity: 0.85;
  color: var(--accent-2);
}

.partner-sep {
  width: 1px;
  height: 28px;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 16px;
}

@keyframes marqueeScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-33.3333%, 0, 0); }
}

/* ─────────────────────────────────
   SERVICES
───────────────────────────────── */
#services {
  background: var(--bg-2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(27, 79, 255, 0.3), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  border-color: rgba(27, 79, 255, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.service-icon-svg {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(27, 79, 255, 0.10);
  border: 1px solid rgba(27, 79, 255, 0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
  margin-bottom: 20px;
  padding: 10px;
}

.service-short {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 8px;
}

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-card p {
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ─────────────────────────────────
   PROJECTS / REFERENCE
───────────────────────────────── */

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

.view-all {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-2);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.view-all:hover {
  gap: 10px;
}

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

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  border-color: rgba(27, 79, 255, 0.3);
}

.project-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.05);
}

.project-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 28, 47, 0.8), transparent 60%);
}

.project-year {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(8, 14, 26, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-2);
}

.project-body {
  padding: 24px 26px 28px;
}

.project-cat {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 8px;
}

.project-body h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.project-body p {
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-2);
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  transition: gap var(--transition);
}

.project-link:hover {
  gap: 10px;
}

/* ─────────────────────────────────
   UPCOMING
───────────────────────────────── */
#upcoming {
  background: var(--bg-2);
}

.upcoming-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(8, 14, 26, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(27, 79, 255, 0.5);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: absolute;
  top: 16px;
  left: 16px;
}

.upcoming-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-2);
  border-radius: 50%;
  animation: blink 1.5s ease infinite;
}

/* ─────────────────────────────────
   BLOG
───────────────────────────────── */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 0;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border-color: rgba(27, 79, 255, 0.25);
}

.blog-img {
  height: 180px;
  overflow: hidden;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-img img {
  transform: scale(1.05);
}

.blog-body {
  padding: 24px;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.blog-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.blog-date {
  font-size: 0.75rem;
  color: var(--text-3);
}

.blog-body h3 {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 10px;
}

.blog-body p {
  font-size: 0.85rem;
  line-height: 1.65;
}

.blog-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-2);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  transition: gap var(--transition);
}

.blog-link:hover {
  gap: 10px;
}

/* ─────────────────────────────────
   CONTACT
───────────────────────────────── */
#contact {
  background: var(--surface);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 16px;
}

.contact-info p {
  max-width: 340px;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-2);
  font-size: 0.95rem;
}

.contact-item-icon {
  width: 42px;
  height: 42px;
  background: rgba(27, 79, 255, 0.1);
  border: 1px solid rgba(27, 79, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-3);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(27, 79, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(27, 79, 255, 0.12);
}

.form-group textarea {
  min-height: 140px;
}

.form-submit {
  background: var(--accent);
  color: #fff;
  padding: 15px 32px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-submit:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(27, 79, 255, 0.4);
}

/* ─────────────────────────────────
   FOOTER
───────────────────────────────── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

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

.footer-logo-block .nav-logo {
  margin-bottom: 16px;
}

.footer-logo-block p {
  font-size: 0.88rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col li a {
  font-size: 0.9rem;
  color: var(--text-2);
  transition: color var(--transition);
}

.footer-col li a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-3);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.82rem;
  color: var(--text-3);
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: var(--text-2);
}

/* ─────────────────────────────────
   ANIMATIONS
───────────────────────────────── */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.4;
    transform: scaleY(0.6);
    transform-origin: top;
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ─────────────────────────────────
   RESPONSIVE
───────────────────────────────── */
@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .stat-item:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 900px) {

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

  #about .about-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .footer-logo-block {
    grid-column: 1/-1;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .container {
    padding: 0 20px;
  }

  /* Hero */
  .hero-title {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
    margin-bottom: 24px;
    line-height: 1.05;
  }

  .hero-sub {
    font-size: 0.95rem;
    max-width: 100%;
    opacity: 0.8;
  }

  .energy-cable {
    margin: 24px auto 0 !important;
    max-width: 240px;
  }

  /* Stats bar — grid */
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-value {
    font-size: clamp(1.8rem, 10vw, 2.6rem);
  }

  /* Grids */
  /* Carousel override for mobile */
  .projects-grid,
  .blog-grid,
  .services-grid,
  .stats-grid,
  .gallery-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 20px 40px;
    margin: 0 -20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    grid-template-columns: none; /* Reset grid */
  }

  .projects-grid::-webkit-scrollbar,
  .blog-grid::-webkit-scrollbar,
  .services-grid::-webkit-scrollbar,
  .gallery-grid::-webkit-scrollbar {
    display: none;
  }

  .project-card,
  .blog-card,
  .service-card,
  .gallery-item {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }

  .gallery-item {
    height: 300px;
  }

  .section-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    margin-bottom: 40px;
  }
  
  .view-all {
    margin-top: 8px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .footer-col ul {
    display: inline-block;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 32px 0;
  }

  /* Contact card */
  .contact-card {
    padding: 32px 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
  }

  /* Project hero */
  .project-hero-immersive {
    height: auto;
    min-height: 480px;
    padding-bottom: 48px;
    text-align: center;
  }

  .project-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .energy-flow-title {
    font-size: clamp(1.8rem, 9vw, 2.8rem);
  }

  .project-hero-stats {
    flex-direction: column !important;
    gap: 12px;
    margin-top: 32px;
    width: 100%;
  }

  .project-hero-stat-item {
    min-width: unset;
    padding: 16px 20px;
    text-align: left;
  }

  .project-hero-stat-item span {
    font-size: 1.3rem;
  }

  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Project detail main */
  main.container {
    padding-top: 40px;
    padding-bottom: 64px;
  }

  .section-title-premium {
    font-size: 1.6rem;
  }

  /* Tech params */
  .tech-params-grid {
    gap: 8px;
    justify-content: center;
  }

  .tech-badge {
    font-size: 0.85rem;
    padding: 6px 12px;
  }

  /* About layout */
  #about .about-layout {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  
  .about-text h2 {
    font-size: 1.8rem;
  }
  
  .divider {
    margin-left: auto;
    margin-right: auto;
  }

  .pillars {
    text-align: left;
  }

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

/* Project Detail / Gallery Enhancements */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: transform var(--transition);
}

.gallery-item:hover {
  transform: scale(1.04) rotate(1deg);
  z-index: 10;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.3s;
}

.back-link:hover {
  color: var(--accent-2);
}

.wysiwyg-content {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-2);
}

.section-title-premium {
  font-size: 2.2rem;
  margin-bottom: 32px;
  position: relative;
  display: inline-block;
}

.section-title-premium::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
}

/* Touch feedback for cards and buttons */
@media (hover: none) {
  .project-card:active,
  .blog-card:active,
  .service-card:active,
  .btn:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.1s;
  }
  
  .nav-hamburger:active {
    transform: scale(0.9);
  }
}

/* New Premium Project Hero (Immersive) */
.project-hero-immersive {
  position: relative;
  height: 85vh; /* Reduced from 100vh for better continuity */
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}

.project-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.project-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) saturate(1.1);
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, 
    rgba(8, 14, 26, 0.4) 0%, 
    rgba(8, 14, 26, 0.7) 50%,
    var(--bg) 100%
  );
  z-index: 2;
}

/* NEW PREMIUM PROJECT HERO (V7 - Refined) */
.project-hero-immersive {
  position: relative;
  height: 70vh; /* REDUCED HEIGHT */
  min-height: 550px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}

.project-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.project-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65) saturate(1.1);
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, 
    rgba(8, 14, 26, 0.85) 0%, 
    rgba(8, 14, 26, 0.4) 50%,
    rgba(8, 14, 26, 0.2) 100%
  ),
  linear-gradient(to bottom,
    transparent 60%,
    var(--bg) 100%
  );
  z-index: 2;
}

.project-hero-content {
  position: relative;
  z-index: 4;
  width: 100%;
  padding-top: 40px;
}

.energy-flow-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  color: #fff;
  position: relative;
  display: inline-block; /* To match width of title */
  padding-bottom: 12px;
}

/* THE ELECTRIC CABLE (Under Title) */
.energy-cable {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

.energy-cable-pulse {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60px;
  height: 100%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2), 0 0 20px rgba(27, 79, 255, 0.6);
  /* 1s pulse + 2s pause = 3s total cycle */
  animation: energy-shot 3s ease-in infinite;
}

@keyframes energy-shot {
  0% { left: -100%; }
  33% { left: 100%; } /* Finishes in 1s (of 3s) */
  100% { left: 100%; }
}

/* Old bars hidden */
.project-hero-stats {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}

.project-hero-stat-item {
  flex: 1;
  min-width: 180px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 4px solid transparent;
}

.project-hero-stat-item:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--accent-2);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.project-hero-stat-item label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-2);
  margin-bottom: 12px;
  font-weight: 700;
}

.project-hero-stat-item span {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}
.tech-params-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0;
}

/* Blog hiding */
section#blog.hidden {
  display: none;
}

.wysiwyg-content p { margin-bottom: 20px; }
.wysiwyg-content ul { padding-left: 20px; margin-bottom: 24px; }
.wysiwyg-content li { margin-bottom: 8px; color: var(--text-2); }
.wysiwyg-content table { width: 100%; border-collapse: collapse; margin: 32px 0; background: var(--surface); border-radius: 12px; overflow: hidden; }
.wysiwyg-content th, .wysiwyg-content td { padding: 16px; text-align: left; border-bottom: 1px solid var(--border); }
.wysiwyg-content th { background: rgba(255,255,255,0.05); color: #fff; font-weight: 700; }

/* ─────────────────────────────────
   CARD SPARK AURA (project / upcoming cards)
───────────────────────────────── */
.card-spark-aura {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}

.card-spark {
  position: absolute;
  bottom: -10px;
  background: var(--accent-2);
  border-radius: 50%;
  filter: blur(0.5px);
  box-shadow: 0 0 8px var(--accent-2), 0 0 3px #fff;
  opacity: 0;
  animation: cardSparkRise 4s infinite linear;
}

@keyframes cardSparkRise {
  0% {
    transform: translateY(0) scale(0);
    opacity: 0;
  }
  15% { opacity: 0.7; }
  60% {
    opacity: 0.5;
    transform: translateY(-140px) translateX(12px) scale(1.2);
  }
  100% {
    transform: translateY(-220px) translateX(-8px) scale(0);
    opacity: 0;
  }
}

/* Spark also visible on project hero image in project.html */
.project-hero-sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}

.project-hero-spark {
  position: absolute;
  bottom: 0;
  background: var(--accent-2);
  border-radius: 50%;
  filter: blur(1px);
  box-shadow: 0 0 12px var(--accent-2), 0 0 4px #fff;
  opacity: 0;
  animation: cardSparkRise 5s infinite linear;
}
/* --- V7 MOBILE OVERRIDES --- */
@media (max-width: 768px) {
  .project-hero-immersive {
    height: auto !important;
    min-height: 100vh !important;
    align-items: flex-start !important;
    padding-top: 80px !important;
    padding-bottom: 60px !important;
  }
  .project-hero-content {
    padding-top: 40px !important;
  }
  .hero-content {
    padding-top: 60px !important;
  }
  .hero-title, .energy-flow-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
    word-wrap: normal !important;
    hyphens: none !important;
  }
  .hero-title em {
    white-space: normal !important;
  }
}
