/* RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.loading {
  overflow: hidden !important;
  height: 100vh !important;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #0a0a0a;
  color: white;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Hide scrollbar */
html, body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}


/* BACKGROUND LAYERS */
.plasma-bg {
  position: fixed;
  inset: 0;
  background: url("../images/Tech.gif") center/cover no-repeat;
  filter: blur(0px) brightness(1);
  opacity: 0.08;
  z-index: -2;
}

/* Beehive Canvas positioning */
#hex-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none; /* Allows clicking through to buttons */
}

/* REUSABLE GLASS COMPONENT */
.glass {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1100px;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}
.navbar.glass:hover { transform: translateX(-50%) translateY(0); }

/* LOGO */
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.4rem; letter-spacing: -1px; }
.header-logo { height: 32px; width: auto; object-fit: contain; }
.logo span { color: cyan; }
nav a { margin-left: 24px; text-decoration: none; color: #bbb; font-weight: 500; transition: color 0.3s; }
nav a:hover { color: cyan; }

/* HERO */
.hero { min-height: 100vh; display: flex; justify-content: center; align-items: center; text-align: center; padding: 0 20px; }
.hero-content { width: 100%; max-width: 1800px; }

/* NEW STRIKING ANIMATION FOR "WE REVIVE THEM" */
.revive-text {
  font-size: clamp(3rem, 9vw, 7.5rem);
  text-transform: uppercase;
  letter-spacing: -2px;
  position: relative;
  margin-top: -10px;
}

.revive-text span {
  position: relative;
  display: inline-block;
  color: rgba(0, 255, 255, 0.2); /* Base color */
  background: linear-gradient(
    90deg, 
    transparent, 
    #00ffff, 
    #ffffff, 
    #00ffff, 
    transparent
  );
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  /* Striking Glow Sweep & Fluid Breathing */
  animation: revive-glow 4s linear infinite, text-breathe 4s ease-in-out infinite;
}

@keyframes revive-glow {
  0% { background-position: -200% 0; }
  30%, 100% { background-position: 200% 0; }
}

@keyframes text-breathe {
  0%, 100% { 
    transform: scale(1); 
    letter-spacing: -2px;
    filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0));
  }
  50% { 
    transform: scale(1.03); 
    letter-spacing: 4px;
    filter: drop-shadow(0 0 25px rgba(0, 255, 255, 0.8));
    color: rgba(0, 255, 255, 1);
  }
}

.hero p { font-size: clamp(1rem, 1.5vw, 1.4rem); color: #aaa; max-width: 1500px; margin: 0 auto 40px; }

/* ENGINE LOGOS */
.engine-logos { display: flex; gap: 40px; align-items: center; justify-content: center; flex-wrap: wrap; }
.engine-logos img { height: 50px; filter: brightness(0) invert(1); opacity: 0.5; transition: 0.4s ease; }
.engine-logos img:hover { opacity: 1; filter: drop-shadow(0 0 10px cyan) brightness(0) invert(1); transform: scale(1.1); }

/* SECTIONS */
.section, .wins-section {
  width: 90%;
  max-width: 1100px; 
  margin: 120px auto;
  padding: 60px;
  scroll-margin-top: 100px; 
}
.section h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 30px; letter-spacing: -1px; }

/* SERVICE GRID */
.service-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 30px;
  max-width: 900px; 
  margin: 1 auto;
}
.service-card {
  position: relative;
  height: 350px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25; 
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}
.service-card:hover .card-bg { transform: scale(1.1); opacity: 0.4; }
.card-content {
  position: relative;
  z-index: 2;
  padding: 30px;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.95), transparent);
  width: 100%;
}
.service-card h3 { color: cyan; font-size: 1.6rem; margin-bottom: 10px; }
.service-card p { color: #ccc; font-size: 1rem; }

/* TEAM */
.team-execs { display: flex; justify-content: center; gap: 40px; margin-bottom: 40px; flex-wrap: wrap; }
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; }
.team-card { overflow: hidden; text-align: center; }
.team-card.featured { flex: 0 1 400px; }
.member-image { width: 100%; aspect-ratio: 1/1; background: #1a1a1a; overflow: hidden; }
.member-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.team-card:hover .member-image img { transform: scale(1.1); }
.member-info { padding: 20px; background: rgba(0, 0, 0, 0.4); }
.member-info h4 { font-size: 1.2rem; margin-bottom: 5px; }
.member-info p { font-size: 0.9rem; color: cyan; text-transform: uppercase; }
.member-desc {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: #bbb;
  line-height: 1.4;
  text-transform: none;
}

#team.section{
  max-width: 1500px;
}

@media (max-width: 1200px){
  .team-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px){
  .team-grid{ grid-template-columns: 1fr; }
}

.member-desc {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: 
    max-height 0.4s ease,
    opacity 0.3s ease,
    transform 0.3s ease;
}

.team-card:hover .member-desc {
  max-height: 80px;
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .member-desc {
    max-height: none;
    opacity: 1;
    transform: none;
    margin-top: 6px;
  }
}


/* WINS */
.wins-section { text-align: center; }
.wins-section h2 {
  color: cyan;
  margin-bottom: 60px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -1px;
}
.wins-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.win-card { padding: 50px 30px; }
.win-card h3 { font-size: 2.5rem; color: cyan; margin-bottom: 15px; }
.client { display: block; margin-top: 25px; font-size: 0.9rem; color: #777; font-style: italic; }

.wins-grid .win-card:nth-child(1) h3 {
  color: #ff3b3b;
}

.wins-grid .win-card:nth-child(2) h3 {
  color: #00ff88;
}

/* Mini results pills under the main wins cards */
.wins-mini-grid{
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.mini-win{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  color: #d6d6d6;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
}

.mini-ico{
  font-size: 1.05rem;
  opacity: 0.9;
}

/* CONTACT */
.email { font-size: 2rem; font-weight: 700; margin-top: 20px; color: cyan; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}

.contact-form label {
  font-size: 0.9rem;
  color: #bbb;
  margin-top: 15px;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 85%;
  padding: 14px;
  margin-top: 6px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: white;
}


.contact-form button {
  margin-top: 5px;
  padding: 14px;
  width: 85%;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, cyan, #7b5cff);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}


.contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-form label {
  width: 85%;
}


.contact-info {
  display: grid;
  gap: 20px;
}

.info-card {
  padding: 25px;
}

.info-card h4 {
  color: cyan;
  margin-bottom: 8px;
}


/* --- CENTERED LOADING SCREEN --- */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw; 
  height: 100vh;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.8s ease, visibility 0.8s;
}

#loader.loader-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
}

.loader-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.loader-logo-container {
  position: relative;
  width: 180px; 
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.loader-logo-img {
  width: 100px;
  z-index: 10;
  filter: drop-shadow(0 0 15px rgba(53, 196, 240, 0.5));
}

.logo-ring {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 2px solid rgba(53, 196, 240, 0.1);
  border-top: 3px solid #35C4F0;
  border-radius: 50%;
  animation: ring-spin 1s linear infinite;
  filter: drop-shadow(0 0 12px #35C4F0);
}

@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

#load-animation {
  position: relative;
  width: 600px;
  height: 40px;
  display: flex;
  justify-content: center;
}

#load-animation div {
  position: absolute;
  width: 20px;
  opacity: 0;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 900;
  font-size: 28px;
  color: #35C4F0;
  transform: rotate(180deg);
  animation: move 1.5s linear infinite;
}

#load-animation div:nth-child(1) { animation-delay: 0s; }
#load-animation div:nth-child(2) { animation-delay: 0.1s; }
#load-animation div:nth-child(3) { animation-delay: 0.2s; }
#load-animation div:nth-child(4) { animation-delay: 0.3s; }
#load-animation div:nth-child(5) { animation-delay: 0.4s; }
#load-animation div:nth-child(6) { animation-delay: 0.5s; }
#load-animation div:nth-child(7) { animation-delay: 0.6s; }
#load-animation div:nth-child(8) { animation-delay: 0.7s; }
#load-animation div:nth-child(9) { animation-delay: 0.8s; }
#load-animation div:nth-child(10) { animation-delay: 0.9s; }
#load-animation div:nth-child(11) { animation-delay: 1.0s; }
#load-animation div:nth-child(12) { animation-delay: 1.1s; }
#load-animation div:nth-child(13) { animation-delay: 1.2s; }
#load-animation div:nth-child(14) { animation-delay: 1.3s; }
#load-animation div:nth-child(15) { animation-delay: 1.4s; }

@keyframes move {
  0% { left: 0; opacity: 0; transform: rotate(180deg); }
  35% { left: 41%; transform: rotate(0deg); opacity: 1; }
  65% { left: 59%; transform: rotate(0deg); opacity: 1; }
  100% { left: 100%; transform: rotate(-180deg); opacity: 0; }
}

@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { text-shadow: 0 0 25px rgba(0, 255, 255, 0.4); opacity: 1; }
  20%, 24%, 55% { text-shadow: none; opacity: 0.8; }
}

@media (max-width: 850px) { .service-grid-2x2 { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .section, .navbar { padding: 30px 20px; } .navbar nav { display: none; } }

/* FOOTER COPYRIGHT STYLE */
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: #666;
  text-align: center;
  letter-spacing: 1px;
}

/* BLOG PAGE STYLES */
.blog-container {
  padding-top: 150px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto 100px;
}

.blog-header {
  text-align: center;
  margin-bottom: 80px;
}

.blog-header h1 {
  font-size: 4rem;
  letter-spacing: -2px;
}

.blog-header h1 span { color: cyan; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.4s ease;
}

.blog-image {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  filter: brightness(0.7);
  transition: filter 0.4s ease;
}

.blog-card:hover .blog-image {
  filter: brightness(1);
}

.blog-content {
  padding: 30px;
}

.blog-category {
  color: cyan;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  display: block;
  margin-bottom: 15px;
}

.blog-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  line-height: 1.3;
}

.blog-content p {
  color: #aaa;
  font-size: 0.95rem;
  margin-bottom: 25px;
}

.read-more {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.read-more:hover {
  color: cyan;
}

.navbar nav a.active {
  color: cyan;
  border-bottom: 2px solid cyan;
}

/* ARTICLE READER STYLES */
.article-reader-container {
  padding-top: 150px;
  width: 90%;
  max-width: 900px; /* Thinner for better reading flow */
  margin: 0 auto 100px;
}

.article-main-card {
  padding: 60px;
}

.article-header h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin: 15px 0 25px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.article-meta {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.article-featured-img {
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  margin-bottom: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-body {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #ccc;
}

.article-body h2 {
  color: white;
  margin: 40px 0 20px;
  font-size: 2rem;
}

.article-body p { margin-bottom: 25px; }

.article-body .lead {
  font-size: 1.4rem;
  color: cyan;
  font-weight: 500;
  line-height: 1.5;
}

.article-quote {
  border-left: 4px solid cyan;
  padding: 20px 30px;
  margin: 40px 0;
  background: rgba(0, 255, 255, 0.05);
  font-style: italic;
  font-size: 1.3rem;
  color: white;
}

.article-body ul {
  margin: 25px 0 25px 25px;
}

.article-body li {
  margin-bottom: 15px;
}

.article-footer {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-link {
  color: cyan;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s;
}

.back-link:hover { opacity: 0.7; }

/* ================================
   CYAN SECTION HEADERS – FLOATING NEON
   ================================ */

#contact h2,
#wins h2,
#team h2,
#services h2,
#about h2 {
  color: cyan;

  /* Centering */
  display: inline-block;
  text-align: center;
  margin-left: auto;
  margin-right: auto;

  /* Neon glow */
  text-shadow:
    0 0 6px rgba(0, 255, 255, 0.35),
    0 0 16px rgba(0, 255, 255, 0.28),
    0 0 32px rgba(0, 255, 255, 0.18);

  /* Depth & bloom */
  filter: drop-shadow(0 14px 26px rgba(0, 255, 255, 0.18));
  transform: translateZ(0);
  will-change: transform, text-shadow, filter;

  /* Pulsating animation */
  animation: headerPulse 2.8s ease-in-out infinite;
}

/* Glow plate behind text (depth illusion) */
#contact h2::before,
#wins h2::before,
#team h2::before,
#services h2::before,
#about h2::before {
  content: "";
  position: absolute;
  left: -15%;
  right: -15%;
  top: 55%;
  height: 0.9em;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(0, 255, 255, 0.25) 0%,
    rgba(0, 255, 255, 0.12) 45%,
    rgba(0, 255, 255, 0.0) 70%
  );
  filter: blur(14px);
  opacity: 0.55;
  z-index: -1;
  border-radius: 999px;
}

/* Hover = stronger lift */
#contact h2:hover,
#wins h2:hover,
#team h2:hover,
#services h2:hover,
#about h2:hover {
  transform: translateY(-6px) scale(1.04);
  text-shadow:
    0 0 10px rgba(0, 255, 255, 0.6),
    0 0 28px rgba(0, 255, 255, 0.45),
    0 0 60px rgba(0, 255, 255, 0.3);
  filter: drop-shadow(0 22px 40px rgba(0, 255, 255, 0.28));
  transition: all 260ms cubic-bezier(.2,.9,.2,1);
}

/* Pulsating neon animation */
@keyframes headerPulse {
  0%, 100% {
    text-shadow:
      0 0 6px rgba(0,255,255,0.32),
      0 0 16px rgba(0,255,255,0.24),
      0 0 28px rgba(0,255,255,0.16);
    filter: drop-shadow(0 14px 26px rgba(0,255,255,0.16));
    transform: translateY(0) scale(1);
  }

  50% {
    text-shadow:
      0 0 12px rgba(0,255,255,0.6),
      0 0 30px rgba(0,255,255,0.45),
      0 0 64px rgba(0,255,255,0.3);
    filter: drop-shadow(0 24px 44px rgba(0,255,255,0.32));
    transform: translateY(-3px) scale(1.02);
  }
}

/* Staggered pulse (organic feel) */
#about h2    { animation-delay: 0s; }
#services h2 { animation-delay: .4s; }
#team h2     { animation-delay: .8s; }
#wins h2     { animation-delay: 1.2s; }
#contact h2  { animation-delay: 1.6s; }

/* Respect reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  #contact h2,
  #wins h2,
  #team h2,
  #services h2,
  #about h2 {
    animation: none;
  }
}
/* Ensure section headers are truly centered in their sections */
#contact,
#wins,
#team,
#services,
#about {
  text-align: center;
}

/* ================================
   HORIZONTAL MARQUEE (INFINITE)
   ================================ */

.h-marquee{
  width: 100%;
  overflow: hidden;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(10px);
}

.h-marquee-track{
  display: flex;
  width: max-content;
  animation: hMarquee 14s linear infinite;
  will-change: transform;
}

.h-marquee-group{
  display: inline-flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  padding-right: 40px; /* seam control */
}

.h-marquee-group span{
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  text-shadow: 0 0 12px rgba(0,255,255,0.18);
}

/* Move exactly one group length */
@keyframes hMarquee{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce){
  .h-marquee-track{ animation: none; }
}
/* Insert marquee after each main section */
section + .h-marquee{
  display: none;
}

section::after{
  content: "";
  display: block;
  height: 0;
}

section{
  position: relative;
}

/* Clone marquee visually after each section */
section > .h-marquee,
section + .h-marquee{
  display: block;
}

/* =========================================================
   MOBILE HAMBURGER NAV + TEAM GRID OVERRIDES
   (add at END of style.css)
   ========================================================= */

.hamburger{
  display: none;
  width: 38px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.25);
  cursor: pointer;
  align-items: center;
  margin-left: auto;
  justify-content: center;
  gap: 6px;
  padding: 0;
  position: relative;
}

.hamburger span{
  display: block;
  width: 16px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 999px;
  transition: transform 220ms ease, opacity 220ms ease;
}

.hamburger.is-open span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.hamburger.is-open span:nth-child(2){ opacity: 0; }
.hamburger.is-open span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

.mobile-menu{
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  transform: none;
  width: 100%;
  max-width: none;
  padding: 10px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 16px;
}

.mobile-menu a{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: #ddd;
  font-weight: 600;
  background: rgba(0,0,0,0.20);
  border: 1px solid rgba(255,255,255,0.08);
}

.mobile-menu a:hover{
  filter: brightness(1.08);
}

/* Optional: lock background scroll when menu open */
body.menu-open{
  overflow: hidden;
}

@media (max-width: 768px){
  /* Desktop nav hidden; hamburger shown */
  .navbar nav{ display: none !important; }
  .hamburger{ display: inline-flex; }

  /* Make sure logo + hamburger align nicely */
  .navbar{
    padding: 10px 12px;
    width: calc(100% - 16px);
    border-radius: 14px;
    gap: 10px;
  }

  /* TEAM: CEO + MD are 1 per row, others are 2 per row */
  .team-execs{
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .team-card.featured{
    flex: 1 1 auto;
    width: 100%;
  }
  .team-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px;
  }
  .member-info{
    padding: 16px;
  }
  .member-info h4{
    font-size: 1.05rem;
  }
  .member-desc{
    font-size: 0.82rem;
  }
}

@media (max-width: 360px){
  /* Still keep 2 per row but reduce gaps/padding for tiny phones */
  .team-grid{ gap: 12px; }
  .member-info{ padding: 14px; }
  .mobile-menu{ top: 74px; }
}


/* Ensure hidden attribute actually hides the dropdown */
.mobile-menu[hidden]{ display:none !important; }


@media (min-width: 769px){
  .hamburger{ display:none !important; }
  .mobile-menu{ display:none !important; }
}


/* =========================================================
   V3 MOBILE FIXES: navbar fit, compact hamburger, contact layout
   ========================================================= */

/* Ensure hamburger never appears on desktop */
.hamburger{ display: none !important; flex: 0 0 auto; }

/* Desktop navbar stays clean */
.navbar{ box-sizing: border-box; }

/* Mobile-only hamburger + dropdown + navbar fit */
@media (max-width: 768px){
  /* Navbar should fit inside viewport with equal side spacing */
  .navbar{
    width: calc(100% - 20px) !important;   /* 10px margin each side */
    max-width: none !important;
    padding: 10px 12px !important;
    left: 50%;
    transform: translateX(-50%) !important;
    gap: 10px;
  }

  /* Hide desktop links on mobile */
  .navbar nav{ display: none !important; }

  /* Compact hamburger aligned to far-right */
  .hamburger{
    display: inline-flex !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 36px !important;
    padding: 0 !important;
    margin: 0 0 0 auto !important;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto !important;
    line-height: 0;
  }

  /* Make the bars slightly tighter */
  .hamburger span{
    width: 16px;
    height: 2px;
  }

  /* Dropdown should match navbar inner width (no overflow) */
  .mobile-menu{
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 14px;
    padding: 10px !important;
  }
  .mobile-menu a{
    padding: 12px 12px;
    border-radius: 12px;
  }

  /* CONTACT: form full width, info cards below in a compact row */
  .contact-grid{
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .contact-form{
    width: 100% !important;
    padding: 18px !important;
    margin: 0 auto !important;
  }
  .contact-form input,
  .contact-form textarea,
  .contact-form button{
    width: 100% !important;
  }

  .contact-info{
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    align-items: stretch;
  }
  .info-card{
    padding: 12px 10px !important;
    text-align: center;
  }
  .info-card h4{
    font-size: 0.9rem !important;
    margin-bottom: 6px !important;
  }

  /* Perfect centering: keep sections symmetric on small screens */
  .section, .wins-section{
    width: calc(100% - 20px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 420px){
  /* If 3 cards feel too tight on very small phones, allow wrap to 2+1 */
  .contact-info{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .contact-info .info-card:nth-child(3){
    grid-column: 1 / -1;
  }
}

/* ===== HERO TITLE: always 1 line & never clips on mobile ===== */
.hero-title {
  font-size: 100px;  /* keeps desktop similar */
  font-weight: 800;
  text-align: center;
  margin: 0;
}

@media (max-width: 768px) {
  .hero { padding-top: 120px; }

  .hero-content{
    width: 100%;
    max-width: 100vw;
    padding: 0 12px;
    overflow: visible;
    text-align: center;
  }

  .hero-content text{
    white-space: nowrap;
    font-size: min(11vw, 46px) !important; /* OVERRIDES inline 100px */
    line-height: 1.05;
    letter-spacing: -0.04em;
    display: block;
    max-width: 100%;
  }

  .hero-title{
    white-space: nowrap;              /* one line */
    font-size: min(11vw, 46px);       /* SHRINK to fit width */
    line-height: 1.05;
    letter-spacing: -0.04em;          /* tiny squeeze so it fits */
    display: block;
    max-width: 100%;
  }
}

/* CONTACT ICONS */

#contact .contact-grid{
  grid-template-columns: 1fr !important; /* make contact area single column */
  justify-items: center;
}

#contact .contact-form{
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

/* Row of icons below the form */
#contact .contact-actions{
  margin-top: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

/* Glass icon button */
#contact .contact-icon-btn{
  width: 44px;
  height: 44px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: 0;
  line-height: 0;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

/* Image inside — hard-sized so all align perfectly */
#contact .contact-icon-btn img{
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
}

/* Hover */
#contact .contact-icon-btn:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.16);
  box-shadow: 0 0 14px rgba(0,255,255,0.25);
}

/* Mobile */
@media (max-width: 768px){
  #contact .contact-form{ max-width: 92%; }

  #contact .contact-icon-btn{
    width: 40px;
    height: 40px;
  }
  #contact .contact-icon-btn img{
    width: 20px;
    height: 20px;
  }
}

#contact .contact-form button{
  margin-top: 24px !important;     /* space ABOVE button */
  margin-bottom: 12px !important;  /* space BELOW button */
}

.dies-word{
  color: #ff3b3b; /* clean red */
  text-shadow:
    0 0 10px rgba(255, 59, 59, 0.4),
    0 0 22px rgba(255, 59, 59, 0.25);
}

@media (max-width: 768px){

  .wins-grid{
    grid-template-columns: 1fr !important; /* single column */
    justify-items: center !important;      /* center cards */
  }

  .win-card{
    width: 100%;
    max-width: 360px;  /* keeps cards visually centered */
    margin-left: auto;
    margin-right: auto;
  }
}

/* =========================================================
   MOBILE EXPANDING TOPBAR – 2 ROW GRID (LIKE YOUR 2nd IMAGE)
   ========================================================= */
@media (max-width: 768px){

  /* Turn navbar into 2-row grid */
  .navbar{
    /* fit screen with equal side spacing */
    width: calc(100% - 20px) !important;
    max-width: none !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: 10px !important;

    /* grid layout */
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-rows: 60px 1fr !important;
    grid-template-areas:
      "logo burger"
      "nav  nav" !important;

    align-items: center !important;
    justify-items: stretch !important;

    padding: 0 14px !important;   /* keep inner breathing space */
    overflow: hidden !important;

    height: 60px !important;      /* closed height */
    transition: height 260ms cubic-bezier(.2,.9,.2,1) !important;
  }

  /* expanded height */
  .navbar.nav-open{
    height: 340px !important;     /* enough for 7 buttons */
  }

  /* Kill previous absolute pinning */
  .navbar .logo,
  .navbar .hamburger,
  .navbar nav{
    position: static !important;
  }

  /* Place logo + hamburger in first row */
  .navbar .logo{
    grid-area: logo !important;
    justify-self: start !important;
    align-self: center !important;
    margin: 0 !important;
  }

  .navbar .hamburger{
    grid-area: burger !important;
    justify-self: end !important;
    align-self: center !important;

    width: 38px !important;
    height: 36px !important;
    min-width: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Place nav in second row */
  .navbar nav{
    grid-area: nav !important;

    /* IMPORTANT: override any display:none */
    display: grid !important;

    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;

    width: 100% !important;

    /* spacing below the brand row */
    padding: 12px 0 14px !important;

    /* start from top of the nav area */
    align-content: start !important;

    /* hidden when closed */
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .navbar.nav-open nav{
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Button styling: full width pills (no right-side tiny boxes) */
  .navbar nav a{
    margin: 0 !important;                 /* kill desktop margin-left */
    width: 100% !important;

    padding: 14px 12px !important;
    border-radius: 16px !important;
    text-align: center !important;

    background: rgba(0,0,0,0.22) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    color: rgba(255,255,255,0.92) !important;

    font-weight: 700 !important;
    text-decoration: none !important;
    line-height: 1 !important;
  }

  /* Make the last button (Contact) span full width */
  .navbar nav a:last-child{
    grid-column: 1 / -1 !important;
  }

  /* We are not using the old dropdown anymore */
  #mobile-menu{ display: none !important; }
}

/* =====================================================
   HAMBURGER ICON – clean 3-bar hamburger (and nice X)
   ===================================================== */
.hamburger{
  display: none;                 /* shown only on mobile by your media query */
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.22);
  backdrop-filter: blur(10px);
  cursor: pointer;

  /* center the bars */
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;                      /* spacing between bars */
  padding: 0;
  line-height: 0;
}

/* the 3 bars */
.hamburger span{
  display: block;
  width: 20px;                   /* bar length */
  height: 3px;                   /* bar thickness */
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  transition: transform 200ms ease, opacity 200ms ease;
  transform-origin: center;
}

/* OPEN state -> perfect X */
.hamburger.is-open span:nth-child(1){
  transform: translateY(10px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2){
  opacity: 0;
}
.hamburger.is-open span:nth-child(3){
  transform: translateY(-10px) rotate(-45deg);
}

.contact-icon-btn img[src*="linkedin"]{
  width: 40px;
  height: 40px;
}

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

/* =====================================================
   RESTORE PREMIUM GLASS HOVER + GLOW EDGES
   ===================================================== */

/* Default hover glow for every glass panel */
.glass:hover{
  transform: translateY(-6px);
  border-color: rgba(0, 255, 255, 0.32);
  box-shadow:
    0 24px 70px rgba(0,0,0,0.55),
    0 0 0 1px rgba(0, 255, 255, 0.16),
    0 0 26px rgba(0, 255, 255, 0.18);
}

/* Focus glow for form panels */
.glass:focus-within{
  border-color: rgba(0, 255, 255, 0.35);
  box-shadow:
    0 24px 70px rgba(0,0,0,0.55),
    0 0 0 1px rgba(0, 255, 255, 0.18),
    0 0 28px rgba(0, 255, 255, 0.22);
}

/* Keep navbar stable (don’t float up like cards) */
.navbar.glass:hover{
  transform: translateX(-50%) !important;
}

/* Optional: don’t “lift” tiny icon buttons */
#contact .contact-icon-btn:hover{
  transform: translateY(-2px); /* keep your existing behavior */
}

/* TEAM CARD BUTTONS */
.member-buttons{
  margin-top: 10px;
  margin-bottom: 6px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.mini-btn{
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .4px;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(0, 255, 255, 0.14);
  border: 1px solid rgba(0, 255, 255, 0.35);
  transition: all 0.2s ease;
}

.mini-btn:hover{
  background: rgba(0, 255, 255, 0.28);
  box-shadow: 0 0 12px rgba(0,255,255,0.35);
}

/* Secondary button for CEO */
.mini-btn.alt{
  background: rgba(123, 92, 255, 0.18);
  border-color: rgba(123, 92, 255, 0.45);
}

.mini-btn.alt:hover{
  background: rgba(123, 92, 255, 0.35);
  box-shadow: 0 0 12px rgba(123,92,255,0.35);
}

/* ICON BUTTON VARIANT */
.mini-btn.icon-btn{
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Ensure logo fits perfectly */
.mini-btn.icon-btn img{
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

/* Slightly nicer hover for icons */
.mini-btn.icon-btn:hover{
  transform: translateY(-1px) scale(1.08);
}

.mini-btn.icon-btn{
  width: 34px;
  height: 34px;
}

.mini-btn.icon-btn img{
  width: 34px;
  height: 34px;
}
