/* =========================
   ROOT VARIABLES (BRAND)
========================= */
:root {
  /* Primary diginuEgo colours */
  --ego-blue: #00B0B9;
  --ego-lime: #D0DF00;

  /* diginu brand ink (replace black) */
  --diginu-ink: #215C73;

  /* Subtle accents */
  --accent-mint: #5EC4B4;
  --accent-cyan: #2BD4DD;
  --accent-soft: #D6E48E;

  /* Neutrals */
  --white: #FFFFFF;
  --text-light: rgba(255, 255, 255, 0.92);
  --text-muted: rgba(255, 255, 255, 0.72);

  /* Glass system */
  --glass-bg: rgba(255, 255, 255, 0.00008);
  --glass-border: rgba(255, 255, 255, 0.25);

  /* Shadows & glow (kept subtle) */
  --shadow-deep: rgba(0, 0, 0, 0.42);
  --glow-blue: rgba(0, 176, 185, 0.45);
  --glow-lime: rgba(208, 223, 0, 0.22);
  
  /* Background */
  --ego-bg-image: url('https://49411925.fs1.hubspotusercontent-na1.net/hubfs/49411925/raw_assets/public/diginuEgo/bike%20background%20final.png');
  --ego-bg-image-mobile: url('https://49411925.fs1.hubspotusercontent-na1.net/hubfs/49411925/raw_assets/public/improved%20mobile%20pic.png');
    
  /*overlays*/
  --overlay-blue-a: 0.10;
  --overlay-lime-a: 0.06;
  --overlay-top-a: 0.12;    /* top darkness */
  --overlay-bottom-a: 0.32; /* bottom darkness */
}


/* =========================
   GLOBAL RESETS
========================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #0b0f14;
  color: var(--text-light);
  font-family: "Quicksand", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
}

/* =========================
   TYPOGRAPHY
========================= */
h1, h2, h3 {
  margin: 0 0 12px 0;
  font-weight: 500;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =========================
   GLASS CARD
========================= */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.18),
    0 0 18px rgba(0, 176, 185, 0.10),
    0 0 12px rgba(208, 223, 0, 0.05);
}



/* Glow variation (brand-safe) */
.glass.glow {
  box-shadow:
    0 0 36px rgba(0, 176, 185, 0.35),
    0 0 20px rgba(208, 223, 0, 0.12),
    inset 0 0 10px rgba(255, 255, 255, 0.12);
}




/* =========================
   BUTTONS
========================= */
/* =========================
   GLASS PILL BUTTON + GRADIENT BORDER
========================= */
.btn-glass {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 28px;
  border-radius: 999px; /* pill */
  font-weight: 600;
  text-decoration: none;

  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);  /* glass */
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);

  border: none; /* we will draw border with ::before */
  cursor: pointer;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Gradient border (same thickness all around) */
.btn-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;                 /* thickness of the border */
  border-radius: 999px;

  background: linear-gradient(
    135deg,
    rgba(0, 176, 185, 0.95),
    rgba(208, 223, 0, 0.95)
  );

  /* Cut out the center so only the border shows */
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  pointer-events: none;
  opacity: 0.95;
}

/* Subtle glow like your cards */
.btn-glass:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.18),
    0 0 18px rgba(0, 176, 185, 0.18),
    0 0 12px rgba(208, 223, 0, 0.08);
}

.btn-glass:active {
  transform: translateY(0);
}


/* =========================
   EGO-SCOPED GLASS (SAFE)
========================= */
.ego-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.18),
    0 0 18px rgba(0, 176, 185, 0.12),
    0 0 10px rgba(208, 223, 0, 0.05);
}


.ego-glass.ego-glow {
  box-shadow:
    0 0 36px rgba(0, 176, 185, 0.35),
    0 0 20px rgba(208, 223, 0, 0.12),
    inset 0 0 10px rgba(255, 255, 255, 0.12);
}


/* =========================
   HERO SECTION
========================= */
.ego-hero {
  min-height: 100vh;
  display: flex;
  position: center;
  padding: 120px 20px;
}

.ego-hero .glass {
  padding: 40px;
  max-width: 520px;
}
.ego-hero-full {
    min-height: 100vh;
    display: flex;
    /* Change this from center to flex-start */
    align-items: flex-start !important; 
    /* This creates the 'Header Safety Zone' */
    padding-top: 140px !important; 
    padding-left: 24px;
    padding-right: 24px;
}

@media (max-width: 900px) {
    .ego-hero-full {
        /* Smaller gap for mobile phones */
        padding-top: 100px !important; 
        align-items: flex-start;
    }
}
.ego-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}


/* =========================
   SCROLL ANIMATIONS
========================= */
/* Change this in CSS */
.fade-up {
    opacity: 0;
    transform: translateY(20px); /* Smaller movement is more stable on mobile */
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: transform, opacity; /* Helps browser optimize */
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .ego-hero {
    padding: 100px 16px;
  }

  .ego-hero .glass {
    padding: 28px;
  }
}
/* Background section with cinematic overlay */

.ego-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


/* Keep content above overlay */
.ego-bg > * {
  position: relative;
  z-index: 1;
} 


.ego-hero-full {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 90px 24px;
}





/* Keep content above overlay */
.ego-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Left glass column */
.ego-left-stack {
  max-width: 620px; /* keeps cards nicely on the left */
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Card sizing */
.ego-card {
  padding: 28px;
}

/* Make text a touch crisper on glass */
.ego-card h1, .ego-card h3 { color: var(--white); }
.ego-card p { color: var(--text-muted); }

.ego-hero-full.ego-bg::before {
  display: none !important;
}


/* =========================
   MOBILE (STACKED + CLEAN)
========================= */

@media (max-width: 900px) {
  .ego-hero-full {
    padding: 90px 16px;
    align-items: flex-start;
  }

  .ego-left-stack {
    max-width: 100%;
  }

 
}


@media (max-width: 900px) {
  .ego-hero-full.ego-bg {
    background-attachment: scroll; /* safer on mobile */
  }
}

/* Ensure last card never sits under footer/cookie bars */
.ego-left-stack {
  padding-bottom: 60px;
}


/* If your theme wraps content in a main wrapper, ensure it’s above too */
.body-container-wrapper,
.content-wrapper {
  position: relative;
  z-index: 1;
  background: transparent !important;
}




/* Force soft glow on all ego cards */
.ego-card {
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.15),
    0 0 16px rgba(0, 176, 185, 0.10),
    0 0 8px rgba(208, 223, 0, 0.05) !important;
}

.ego-card.hero-glow {
  box-shadow:
    0 0 36px rgba(0, 176, 185, 0.35),
    0 0 20px rgba(208, 223, 0, 0.12),
    inset 0 0 10px rgba(255, 255, 255, 0.12) !important;
}

/* =========================
   INTRO BLOCK (CENTERED)
========================= */
.ego-intro-block {
    position: relative;
    margin-top: 20px; /* Gives it a little breathing room from the header */
    margin-bottom: 40px;
}

/* Big futuristic INTRODUCING */
.ego-intro-wrap {
  position: relative;
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow:
    0 10px 20px rgba(0,0,0,0.18),
    0 0 18px rgba(0, 176, 185, 0.10);
  margin-bottom: 14px;
}

.ego-intro {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: rgba(255,255,255,0.92);
  text-transform: uppercase;
  position: relative;
}

/* Moving light sweep */
.ego-intro-wrap::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -30%;
  width: 60%;
  height: 180%;
  transform: rotate(18deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.18),
    rgba(0,176,185,0.18),
    rgba(208,223,0,0.12),
    transparent
  );
  animation: egoSweep 2.6s ease-in-out infinite;
}

@keyframes egoSweep {
  0% { transform: translateX(-40%) rotate(18deg); opacity: 0; }
  15% { opacity: 1; }
  50% { opacity: 1; }
  85% { opacity: 0.9; }
  100% { transform: translateX(220%) rotate(18deg); opacity: 0; }
}

/* Logo under introducing */
.ego-logo {
  height: 156px;   /* was 34px */
  width: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.35));
}


/* Mobile adjustments */
@media (max-width: 900px) {
  .ego-intro {
    font-size: 12px;
    letter-spacing: 0.25em;
  }

  .ego-logo {
    height: 128px;
  }
}
/* =========================
   INTRO BAR + ENTRANCE ANIMATION
========================= */



/* The transparent black/grey strip behind INTRODUCING + logo */



  /* FULL-WIDTH STRIP with FIXED HEIGHT (size control is here) */
@media (max-width: 900px) {
  .ego-intro-block {
    position: relative;
    /* Change -60px to 0 or a positive number to bring it down */
    transform: translateY(40px) !important; 
    margin-bottom: 60px !important;
  }
}

  .ego-intro-block::before{
    content:"";
    position:absolute;
    left:0;
    right:0;

    height: 195px;                 /* size control */
    top: calc(30% - 75px);         /* centers it: 75px = half of height */

    background: rgba(0,0,0,0.45);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-radius: 0;
    z-index: 0;

    /* SLIDE IN FROM RIGHT */
    opacity: 0;
    transform: translateX(110%);
    animation: egoBarIn 0.9s cubic-bezier(.2,.9,.2,1) forwards;
    animation-delay: 1s;
  }

  .ego-intro-block > *{
    position: relative;
    z-index: 1;
  }
}

/* Keyframes for the bar */
@keyframes egoBarIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


  /* Make sure the text + logo are above the strip */
  .ego-intro-block > *{
    position: relative;
    z-index: 1;
  }
}

.ego-intro-block{
  position: relative;
  padding: 2px 2px;   /* 👈 THIS is now your size control */
}


/* Desktop: remove the grey strip (but keep the animations on INTRODUCING + logo) */
@media (min-width: 901px) {
  .ego-intro-block::before {
    display: none !important;
    content: none !important;
  }
}




/* INTRODUCING text animation */
.ego-intro-wrap{
  position: relative;
  z-index: 1;

  opacity: 0;
  animation: egoIntroIn 2.9s cubic-bezier(.2,.9,.2,1) forwards;
  animation-delay: 1s;
}

/* Logo animation */
.ego-logo{
  position: relative;
  z-index: 1;

  opacity: 0;
  animation: egoLogoIn 2.9s cubic-bezier(.2,.9,.2,1) forwards;
  animation-delay: 2s;
}

.ego-intro-block{
  position: relative;
  padding: 16px 0;  /* add this */
}


/* Keyframes */
@keyframes egoIntroIn{
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes egoLogoIn{
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* =========================
   ENERGY LINE BOTTOM BORDER
========================= */
.ego-card {
  position: relative;
  overflow: hidden;
}

/* Energy bar */
.ego-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 85%;
  height: 8px;

  background: radial-gradient(
    ellipse at center,
    rgba(0, 176, 185, 0.95) 0%,
    rgba(0, 176, 185, 0.85) 25%,
    rgba(208, 223, 0, 0.85) 55%,
    rgba(208, 223, 0, 0.95) 100%
  );

  border-radius: 999px;

  /* FASTER TAPER */
  mask-image: radial-gradient(
    ellipse at center,
    rgba(0,0,0,1) 25%,
    rgba(0,0,0,0.6) 40%,
    rgba(0,0,0,0.18) 55%,
    rgba(0,0,0,0) 70%
  );
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    rgba(0,0,0,1) 25%,
    rgba(0,0,0,0.6) 40%,
    rgba(0,0,0,0.18) 55%,
    rgba(0,0,0,0) 70%
  );

  filter: blur(2px);
  opacity: 0.95;
}




/* Phone */
@media (max-width: 768px) {
  .ego-hero-full.ego-bg {
    background-position: center top !important;
  }
}
/* =========================
   GLOBAL BACKGROUND + OVERLAY LAYERS
   background = body::after
   overlay = body::before
========================= */

/* Background image layer 
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background-image: var(--ego-bg-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #0b0f14;
  transform: translateZ(0);
}*/

/* Gradient overlay layer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background:
    radial-gradient(1100px 700px at 15% 20%, rgba(0, 176, 185, 0.10), transparent 60%),
    radial-gradient(900px 600px at 70% 20%, rgba(208, 223, 0, 0.06), transparent 55%),
    linear-gradient(180deg, rgba(11, 15, 20, 0.12), rgba(11, 15, 20, 0.32));
}

/* Content above everything */
body > * {
  position: relative;
  z-index: 2;
}

/* Tablet + Mobile background image swap */
@media (max-width: 1200px) {
  body::after {
    background-image: var(--ego-bg-image-mobile);
    background-size: contain;
    background-position: center top;
  }
}



/* Make sure page content sits above overlay */
body > * {
  position: relative;
  z-index: 2;              /* was 1 */
}





/* =========================
   STATIC BACKGROUND FIX (iOS / TOUCH)
   Uses a fixed layer behind content, not behind the page.
========================= */
@media (hover: none) and (pointer: coarse) {

  /* Ensure page wrappers don’t paint over the fixed background layer */
  html, body,
  .body-container-wrapper,
  .content-wrapper,
  .dnd-section {
    background: transparent !important;
  }

  /* Stop hero section background from scrolling */
  .ego-hero-full.ego-bg {
    background-image: none !important;
    background-attachment: scroll !important;
  }

  /* Fixed background image layer (now above page background) */
  body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;              /* IMPORTANT: not negative */
    pointer-events: none;

    background-image: var(--ego-bg-image-mobile);
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #0b0f14;

    transform: translateZ(0);
  }

  /* Keep overlay above background */
  body::before {
    z-index: 1;
  }

  /* Keep all actual content above overlay */
  body > * {
    position: relative;
    z-index: 2;
  }
}

/* =========================
   MOBILE HERO SPACING TWEAKS
========================= */
@media (max-width: 900px) {

  /* Move INTRODUCING + logo higher */
  .ego-intro-block {
    margin-top: -60px;   /* pulls it upward */
    margin-bottom: 48px; /* bigger gap before first card */
  }

  /* Push first card down to where second one was */
  .ego-left-stack .ego-card:first-of-type {
    margin-top: 48px;
  }

/* THIS IS THE NEW PART: It controls the gap between all cards */
.ego-left-stack .ego-card {
  margin-bottom: 48px; 
}
}


@media (max-width: 900px) {
  .ego-intro-block {
    margin-bottom: 220px !important;
    transform: translateY(-60px);
  }
}

/* Update this section in diginuEgo.css */
.ego-bg-layer {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh; /* Use 'dvh' (dynamic viewport height) for modern mobile browsers */
    z-index: 0;
    pointer-events: none;
    background: #0b0f14;
}

.ego-bg-layer img{
  width: 100%;
  height: 100%;
  object-fit: cover;              /* desktop */
  object-position: center center;
  display: block;
}

/* tablet + mobile */
@media (max-width: 1200px){
  .ego-bg-layer img{
    object-fit: contain;
    object-position: center top;
    background: #0b0f14;
  }
}

/* overlay layer (only if you still want a slight tint / readability) */
.ego-overlay-layer{
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  /* make this super light since Jessie wants it light */
  background: rgba(0,0,0,0.06);
}

/* Ensure all content is above bg + overlay */
body > *{
  position: relative;
  z-index: 2;
}
/* Add this to your diginuEgo.css */
body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

.ego-hero-full {
    overflow: hidden; /* This prevents the 'slide-in' elements from expanding the page width */
}

/* =========================
   SPLIT VIDEO SECTION
========================= */

.ego-video-split {
  padding: 80px 0;
}

.ego-video-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 900px) {
  .ego-video-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* VIDEO CARD (LEFT) */
.ego-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.ego-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* TEXT SIDE (RIGHT) */
.ego-video-text {
  max-width: 520px;
}
/* Gradient border pill – same method as .btn-glass */
.ego-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;

  color: rgba(255, 255, 255, 0.92);

  /* Glass interior (subtle) */
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);

  border: none; /* border drawn by ::before */
}

/* Strong gradient border */
.ego-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;               /* border thickness */
  border-radius: 999px;

  background: linear-gradient(
    135deg,
    rgba(0, 176, 185, 0.95),
    rgba(208, 223, 0, 0.95)
  );

  /* Cut out the center so only border shows */
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  pointer-events: none;
  opacity: 1;

  /* Glow */
  box-shadow:
    0 0 10px rgba(0, 176, 185, 0.35),
    0 0 18px rgba(208, 223, 0, 0.25);
}


.ego-video-title {
  font-size: 38px;
  line-height: 1.1;
  margin: 0 0 14px;
  color: var(--text-light);
}

.ego-video-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}
/* =========================
   LEFT COLUMN VIDEO SECTION
========================= */

/* The Section Wrapper */
.ego-video-left {
  width: 100%;
  padding: 80px 24px;
  position: relative;
  overflow: hidden; /* Extra insurance against the zoom bug */
}

/*The 'Invisible Lane' - This centers the content area */
.ego-video-left .ego-container {
  max-width: 1200px; /* Same width as your .ego-hero-inner */
  margin: 0 auto;    /* Centers the lane on the screen */
  display: block;    /* Ensures it behaves as a standard container */
}




/* PC/Desktop: Content centered WITHIN the left lane */
.ego-video-column {
  width: 100%;
  max-width: 640px;      /* The width of your video card */
  margin-left: 0;        /* Keep the column on the left of the screen container */
  margin-right: auto;
  
  display: flex;
  flex-direction: column;
  align-items: center;   /* THIS centers text AND video relative to each other */
}

/* Ensure the text block itself is centered */
.ego-video-text {
  text-align: center;    /* Centers the letters inside the Title and Subtitle */
  margin-bottom: 32px;
  width: 100%;           /* Ensures it takes up the full 640px width to center properly */
}



.ego-video-title {
  font-size: 38px;
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--text-light);
}

.ego-video-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* The video card is already centered because of align-items: center above, 
   but let's make sure it's 100% of the column width */
.ego-video-wrap {
  width: 100%;
  margin: 0 auto; 
}

/* Make video appear smaller than full content width */
.ego-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}


/* =========================
   MOBILE VIDEO FIX (CENTERED & STABLE)
========================= */
@media (max-width: 900px) {
  .ego-video-left {
    padding: 60px 16px;
  }

  .ego-video-column {
    max-width: 100%;
    margin: 0 auto !important; /* Forces centering on phones */
    text-align: center;
  }

  .ego-video-text {
    text-align: center;
  }
  
  .ego-video-wrap {
    width: calc(100vw - 32px); /* Matches your previous logic for mobile spacing */
    margin: 0 auto;
  }
}

/* Extra small phones fix */
@media (max-width: 480px) {
  .ego-video-title {
    font-size: 28px !important;
  }
  .ego-video-wrap {
      width: 100% !important;
      aspect-ratio: 16 / 9;
    
  }
}
/* Mobile Tweak */
@media (max-width: 900px) {
  .ego-container {
    justify-content: center; /* Center the lane content on mobile */
  }

  
/* =========================================
   STRICT PC OVERRIDE - NO MORE WHITE BOXES
   ========================================= */

/* Force every input on the page to be glass - PC/Firefox/Chrome */
#ego-contact-form input[type="text"],
#ego-contact-form input[type="email"],
#ego-contact-form input[type="tel"],
#ego-contact-form input[type="number"],
#ego-contact-form textarea {
    background: rgba(255, 255, 255, 0.05) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 50px !important;
    color: #ffffff !important;
    padding: 14px 25px !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
}

/* Specific fix for the Textarea shape */
#ego-contact-form textarea {
    border-radius: 20px !important;
    min-height: 80px;
}

/* CHECKBOX GROUP - PC ALIGNMENT */
#ego-contact-form .checkbox-group {
    display: flex !important;
    flex-direction: row !important; /* Forces side-by-side on PC */
    flex-wrap: wrap !important;
    gap: 20px !important;
    margin: 20px 0 !important;
}

/* THE CUSTOM TICKBOXES */
#ego-contact-form .check-container {
    position: relative !important;
    padding-left: 30px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    color: white !important;
}

/* Hide the ugly default browser box */
#ego-contact-form .check-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* The Glass Square */
#ego-contact-form .checkmark {
    position: absolute;
    left: 0;
    height: 20px !important;
    width: 20px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 4px !important;
}

/* The Ego Blue Glow when clicked */
#ego-contact-form .check-container input:checked ~ .checkmark {
    background-color: #00B0B9 !important;
    border-color: #D0DF00 !important;
    box-shadow: 0 0 12px #00B0B9 !important;
}

/* The White Tick */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

#ego-contact-form .check-container input:checked ~ .checkmark:after {
    display: block !important;
}
  


/* Fix for the white-background "Autofill" bug */
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #1a1e23 inset !important;
    -webkit-text-fill-color: white !important;
}
  
/* =========================
   SAMSUNG INTERNET QUICK FIX
   (keeps glass + gradients looking decent)
========================= */

/* Detect Samsung Internet via CSS (supported only there) */
@supports (-webkit-touch-callout: none) and (not (backdrop-filter: blur(1px))) {
  /* stronger glass tint when blur is unreliable */
  .ego-glass,
  .gallery-card::before,
  .video-card {
    background: rgba(0, 0, 0, 0.40) !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
  }
}

/* If mask-composite isn't behaving, fall back to border-image gradients */
@supports not ((-webkit-mask-composite: xor) or (mask-composite: exclude)) {
  .btn-glass::before,
  .glass-btn::before,
  .pill-neon-wrap::before {
    content: none !important; /* remove the masked border layer */
  }

  .btn-glass,
  .glass-btn,
  .pill-neon-wrap {
    border: 2px solid transparent !important;
    border-image: linear-gradient(135deg, rgba(0,176,185,0.95), rgba(208,223,0,0.95)) 1 !important;
    background: rgba(255,255,255,0.06) !important;
  }
}

/* Bottom glow line fallback if mask-image acts up */
@supports not ((mask-image: radial-gradient(circle, #000, transparent)) or (-webkit-mask-image: radial-gradient(circle, #000, transparent))) {
  .gallery-card::after{
    height: 3px !important;
    width: 78% !important;
    filter: blur(0px) !important;
    background: linear-gradient(90deg, rgba(0,176,185,0.95), rgba(208,223,0,0.95)) !important;
  }
}



/* Hide HubSpot's default branding if using a paid tier */
.hs-cta-embed-branding { display: none !important; }

body, h1, h2, h3, h4, h5, h6, p, a, button, input, textarea, label {
  font-family: "Quicksand", system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
}