/* styles.css */

/* 1. Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;       /* consistent sizing model */ 
  margin: 0;
  padding: 0;
}

html {
    height: 100%;
    margin:0px;
}

/* Bring toggle button to front */
.mobile-toggle {
  position: relative;
  z-index: 1100;        /* above header & overlays */
}


/* Float dropdown on top */
.mobile-menu {
  position: center;   /* or fixed */
  top: 100%;            /* just below header */
  right: 1rem;
  z-index: 1100;        /* same high layer */
}


body {
  min-height: 100vh;      /* ensure the body is at least the height of the viewport */
  display: flex;
  flex-direction: column;
  font-family: sans-serif;
  color: #fff;
  position: relative;
  overflow-x: hidden;

  /* your existing offset and background shorthand */
  --bg-offset: 4rem;
  background:
    url('./assets/banner.jpg')
    center var(--bg-offset) / cover
    no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

/* 3. Full-Page Shaded Overlay & Animation */
body::before {
  content: '';
  position: fixed;
  top: var(--bg-offset);        /* start just below header */ 
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(1px);
  z-index: 0;
  animation: breathe 10s ease-in-out infinite alternate;
}

/* 4. Breathe Animation */
@keyframes breathe {
  0%, 100% {
    filter: blur(2px) contrast(1.05);
  }
  25% {
    filter: blur(0px) contrast(1);
  }
}

/* 5. Frosted-Glass Header */
header {
  position: fixed;              /* pin at the top */ 
  top: 0;
  left: 0;
  width: 100%;
  height: var(--bg-offset);     /* consistent height with offset */ 
  z-index: 1000;                /* sit above overlay & content */ 
  isolation: isolate;           /* new stacking context */ 
  background-color: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  display: flex;
  align-items: center;
  padding: 0 2rem;
}

/* 6. Navigation Styles */
nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav a:hover,
nav a:focus {
  color: #14b8a6;
}

/* 7. Content Container & Sticky Footer */
.container {
  flex: 1 0 auto;               /* grow/shrink to fill space */ 
  position: relative;
  z-index: 1;                   /* above overlay */ 
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--bg-offset) + 1rem) 2rem 2rem;
}

footer {
  flex-shrink: 0;               /* never shrink */ 
  background-color: rgba(31, 41, 55, 0.9);
  text-align: center;
  padding: 1rem 2rem;
  z-index: 2;
}

/* 8. Feature Cards Grid */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.features .card {
  background-color: rgba(31, 41, 55, 0.8);
  padding: 1.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
}

.features .card:hover,
.features .card:focus-within {
  background-color: rgba(31, 41, 55, 1);
}

/* 9. Buttons */
a.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #14b8a6;
  color: #fff;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

a.button:hover,
a.button:focus {
  background-color: #0d9488;
}

/* Lava Heading with Semi-Transparent Overlay */
h1.lava-black {
  position: relative;                         /* establish positioning context */ :contentReference[oaicite:1]{index=1}
  display: inline-block;                      /* shrink-wrap width for precise overlay */ :contentReference[oaicite:2]{index=2}
  font-size: 1rem;
  font-weight: 300;
  /* 2. Clip Gradient to Text */
  color: white;                         /* hide fallback text color */ :contentReference[oaicite:4]{index=4}
  padding: 1rem 2rem;
}

/* 5. Semi-Transparent Overlay Behind Text */
h1.lava-black::before {
  content: '';                                /* required to render pseudo-element */ :contentReference[oaicite:8]{index=8}
  position: absolute;                         /* position relative to h1 */ :contentReference[oaicite:9]{index=9}
  top: 0; left: 0; right: 0; bottom: 0;      /* full size of h1 */ :contentReference[oaicite:10]{index=10}
  background-color: rgba(0, 0, 0, 0.3);       /* darken behind text */ :contentReference[oaicite:11]{index=11}
  backdrop-filter: blur(2px);                 /* optional soft blur */ :contentReference[oaicite:12]{index=12}
  z-index: -1;                                /* place beneath the text */ :contentReference[oaicite:13]{index=13}
}

