/* 
old 
:root {
  --bg: #0a0a0a;
  --fg: #f5f5f5;
  --accent: #ffffff;
  --card: #111;
  --dim: #888;
} */
 
:root {
  --bg: #111111;
  --fg: #323232;
  --accent: #ffffff;
  --card: #121212;
  --dim: #989898;
    --border: #3a3a3a;

}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--fg);
    font-family: 'Roboto', sans-serif;
  padding: 5vh 6vw;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
/* CSS */
.topheader {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  height: 60px;
  background-color: white; /* or whatever you want */
  z-index: 1000;
  /* border-bottom: 1px solid #eee; optional styling */
}

.toplogo {
  height: 20px;
  cursor: pointer;
}

.topmenu-icon {
  font-size: 24px;
  cursor: pointer;
  color: var(--accent);
}

header {
  text-align: center;
}

header h1 {
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--accent);
}

header p {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  color: var(--dim);
  font-style: italic;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  max-width: 960px;
  margin: 1rem auto;
   
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.7rem;
  border-radius: 10px;
  transition: 0.3s ease;
    text-align: start;
    cursor: pointer;
  display: flex;
  flex-direction: column; /* keep text stacked */
  justify-content: center; /* vertical center */
  
}

.card:hover {
  border-color: var(--accent);
  background: var(--card);
}

.card h2 {
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 500;
  margin:0.5rem 0rem;
}

.card p {
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  color: var(--dim);
    padding: 0rem;
  margin:0.1rem 0rem;
  
}
btntxt{
  color: #318cfb;
  font-weight: bold;
   cursor: pointer;
  margin:0.5rem 0rem;
}
button{
    background: #191919;
  border: 1px solid var(--fg);
  padding: 0.5rem;
  border-radius: 10px;
  transition: 0.3s ease;
  color: #ffffff;
  font-weight: bold;
  margin: 5px 5px;

}


section h3 {
  text-align: center;
  font-size: 1.4rem;
  margin:0.1rem 0rem;
  color: var(--accent);

}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  font-size: 0.85rem;
  color: #444;
}
.menu-icon {
  position: fixed;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
  color: var(--dim);
}
.quote-box {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #666;
  font-style: italic;
  transition: opacity 0.5s ease, filter 0.5s ease;
}

.quote-box.fade {
  opacity: 0;
  filter: blur(4px);
}
 
/* Splash overlay styles */
#splash {
  position: fixed;
  inset: 0; /* shorthand for top, right, bottom, left: 0 */
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
}


/* Fade-out class */
#splash.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Image styling */
#splash img {
  max-width: 50vw;
  max-height: 50vh;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: filter 0.8s ease;
}
 #example-scanning-overlay {
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	background: transparent;
	z-index: 2;
      }
      @media (min-aspect-ratio: 1/1) {
	#example-scanning-overlay .inner {
	  width: 50vh;
	  height: 50vh;
	}
      }
      @media (max-aspect-ratio: 1/1) {
	#example-scanning-overlay .inner {
	  width: 80vw;
	  height: 80vw;
	}
      }

      #example-scanning-overlay .inner {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;

	background:
	  linear-gradient(to right, white 10px, transparent 10px) 0 0,
	  linear-gradient(to right, white 10px, transparent 10px) 0 100%,
	  linear-gradient(to left, white 10px, transparent 10px) 100% 0,
	  linear-gradient(to left, white 10px, transparent 10px) 100% 100%,
	  linear-gradient(to bottom, white 10px, transparent 10px) 0 0,
	  linear-gradient(to bottom, white 10px, transparent 10px) 100% 0,
	  linear-gradient(to top, white 10px, transparent 10px) 0 100%,
	  linear-gradient(to top, white 10px, transparent 10px) 100% 100%;
	background-repeat: no-repeat;
	background-size: 40px 40px;
      }

      #example-scanning-overlay.hidden {
	display: none;
      }

      #example-scanning-overlay img {
	opacity: 0.6;
	width: 50%;
	align-self: center;
      }

      #example-scanning-overlay .inner .scanline {
	position: absolute;
	width: 100%;
	height: 10px;
	background: white;
	animation: move 2s linear infinite;
      }
      @keyframes move {
	0%, 100% { top: 0% }
	50% { top: calc(100% - 10px) }
      }
.video-container {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-height: 300px;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Blur effect during fade */
#splash.fade-out img {
  filter: blur(5px);
}


@media (max-width: 600px) {
  header h1 {
    font-size: 2.5rem;
  }
}
