*,
*::after,
*::before {
	box-sizing: border-box;
}
main > .frame { padding-top: clamp(56px, 10vh, 96px); 
	margin-bottom: clamp(1rem, 3vh, 2rem) auto;
}
:root {
	font-size: 16px;
	--color-text: #f3f3f3;
	--color-bg: #0f0e0e;
	--color-link: #f3f3f3;
	--color-link-hover: #e35384;
	--page-padding: 2rem 3rem;
}

@font-face {
	font-family: 'blackoutregular';
	src: url('../fonts/blackout-webfont.woff2') format('woff2'),
	     url('../fonts/blackout-webfont.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}

@font-face {
    font-family: 'hacked_crtregular';
    src: url('../fonts/hacked_crt-webfont.woff2') format('woff2'),
         url('../fonts/hacked_crt-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'h19a_lunaluna';
    src: url('../fonts/h19a-luna-webfont.woff2') format('woff2'),
         url('../fonts/h19a-luna-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'capsule3regular';
    src: url('../fonts/capsule3-webfont.woff2') format('woff2'),
         url('../fonts/capsule3-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* --- 1. BASE LAYOUT & RESET --- */
html {
    width: 100%;
    overflow-x: hidden; /* Prevents horizontal scrolling bugs */
}

body {
    margin: 0;
    background-color: #050505 !important; /* Deep space black for the 3D background */
    color: #e0e0e0;
    font-family: 'Fira Code', 'Courier New', monospace; /* Sets the technical font globally */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- 2. 3D CANVAS POSITIONING --- */
#cyber-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Puts the 3D engine strictly in the background */
    pointer-events: none; /* Allows mouse clicks to pass through to your links */
}

/* --- 3. TRANSPARENCY FIX FOR TEMPLATE BLOCKS --- */
/* This forces the Codrops template to let the 3D canvas show through */
main, .content, .frame, section, .about, #about {
    background: transparent !important;
    background-color: transparent !important;
}

/* --- 4. TYPOGRAPHY & NEON AESTHETICS --- */
h1, h2, h3, h4 {
    font-family: 'Fira Code', 'Courier New', monospace !important;
    color: #ffffff !important;
    text-shadow: 0 0 15px rgba(0, 102, 204, 0.8) !important; /* IEEE Blue neon glow */
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Ensure paragraph text stays readable when 3D particles float behind it */
.content, .about, p {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

/* Page Loader */
.js .loading::before,
.js .loading::after {
	content: '';
	position: fixed;
	z-index: 5000;
}

.js .loading::before {
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--color-bg);
}

.js .loading::after {
	top: 50%;
	left: 50%;
	width: 60px;
	height: 60px;
	margin: -30px 0 0 -30px;
	border-radius: 50%;
	opacity: 0.4;
	background: var(--color-link);
	animation: loaderAnim 0.7s linear infinite alternate forwards;

}

@keyframes loaderAnim {
	to {
		opacity: 1;
		transform: scale3d(0.5,0.5,1);
	}
}

a {
	text-decoration: none;
	color: var(--color-link);
	outline: none;
	cursor: pointer;
	transition: all 0.3s ease;
}

a:hover {
	color: var(--color-link-hover);
	outline: none;
}

a:focus {
	outline: none;
}

a:focus-visible {
	outline: 2px solid red;
}

.unbutton {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	cursor: pointer;
}

.unbutton:focus {
	outline: none;
}

.frame {
	padding: var(--page-padding);
	position: relative;
	display: grid;
	z-index: 1000;
	width: 100%;
	height: 100%;
	grid-row-gap: 1rem;
	grid-column-gap: 2rem;
	pointer-events: none;
	justify-items: start;
	grid-template-columns: 100%;
	align-items: start;
	justify-content: start;
	grid-template-areas: 'title' 'prev' 'back' 'sub' 'sponsor';
}

.frame #cdawrap {
  justify-self: start;
}

.frame a {
  pointer-events: auto;
}

.frame__title {
  grid-area: title;
  font-size: clamp(2rem,10vw,4rem);
  font-weight: 100;
  line-height: 1;
  margin: 2rem 0 0 0;
}

.frame__back {
  grid-area: back;
  justify-self: start;
}

.frame__prev {
  grid-area: prev;
  justify-self: start;
}

.frame__sub {
  grid-area: sub;
}

.frame__demos {
	grid-area: demos;
	display: flex;
	gap: 1rem;
}

.content {
	min-height: auto;
	margin: clamp(2rem, 5vh, 4rem) auto;
	display: grid;
	place-items: center;
}

.content--flex {
	display: flex;
	justify-content: center;
}

.content--more {
	margin-top: 40vh;
}

.content--text {
	place-items: initial;
	align-content: center;
	max-width: 950px;
	padding: 0 10vw auto;
	margin: 10vh 10vw auto;
	row-gap: 0.75rem;
}

.content > h4 {
	background-color: #f3ec78;
	background-image: linear-gradient(172deg, #e35384, #e8a53c);
	background-size: 100%;
	-webkit-background-clip: text;
	-moz-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent; 
	-moz-text-fill-color: transparent;
	font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif;
	margin: 0 0 0.25rem 0;
}

.content > p {
	font-weight: 300;
	font-size: clamp(1.5rem,5vw,2.25rem);
	line-height: 1.15;
}

.content__title {
	font-size: 2rem;
	font-weight: normal;
}

.poster {
	width: 100%;
	height: 85vh;
	display: grid;
	place-items: center;
	--offset-x: 0%;
	--offset-y: 0%;
}

.poster--half {
	height: 28vw;
}

.poster__inner {
	width: calc(100% + var(--offset-x) * 2);
	height: calc(100% + var(--offset-y) * 2);
	background-size: cover;
	background-position: 50% 50%;
}

.poster__inner video {
	width: 100%;
	height: 100%;
	object-fit: fill;
}

.poster__inner--fixed {
	background-attachment: fixed;
}

.font-1 {
	font-family: "blackoutregular";
	font-weight: 400;
}

.font-2 {
	font-family: "hacked_crtregular", sans-serif;
	font-weight: 400;
	text-transform: uppercase;
}

.font-3 {
	font-family: "macula-solid", sans-serif;
	font-weight: 500;
}

.font-4 {
	font-family: "macula-line", sans-serif;
	font-weight: 400;
}

.font-5 {
	font-family: "octothorpe-pe", sans-serif;
	font-weight: 400;
}

.font-6 {
	font-family: "h19a_lunaluna", sans-serif;
	font-weight: 400;
}

.font-7 {
	font-family: "capsule3regular", sans-serif;
	font-weight: 400;
}

.font-8 {
	font-family: "flegrei", sans-serif;
	font-weight: 400;
}

.font-9 {
	font-family: gigantic, sans-serif;
	font-weight: 900;
	text-transform: uppercase;
}

.size-1 {
	font-size: 70vw;
}

.size-2 {
	font-size: 50vw;
}

.size-3 {
	font-size: 30vw;
}

.size-4 {
	font-size: 20vh;
}

svg {
	opacity: 0;
	position: absolute;
	pointer-events: none;
	width: 100%;
	height: 100vh;
	overflow: visible;
}

.h-200 {
	height: 200vh;
}

.w-25 {
	width: 50vw;
}

svg text {
	line-height: 1;
}

.credits {
	font-size: 2rem;
	text-align: center;
	margin: 50vh auto;
}

.card-wrap {
	margin-top: 5vh;
	display: grid;
	grid-gap: 2rem;
	grid-auto-flow: row;
	grid-template-columns: 250px;
}

.card__image {
	display: block;
	border-radius: 7px;
	background-size: cover;
	background-position: 50% 50%;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
}

.card__title {
	font-weight: normal;
	font-size: 1rem;
}

@media screen and (min-width: 53em) {
		.frame {
			grid-template-columns: auto auto auto 1fr;
			grid-template-areas: 'prev back sub sponsor' 'title title title title';
		}
		.frame #cdawrap {
		  justify-self: end;
		}
		.card-wrap {
			grid-template-columns: repeat(3,250px);
		}
		.w-25 {
			width: 25vw;
		}
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;   /* increased padding for both sides */
  box-sizing: border-box;
  z-index: 1000;
}

.navbar .logo {
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem; /* space between nav links and WIE */
}
.navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin-right: 1rem; /* pushes links slightly inward */
  padding: 0;
}

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

.navbar .nav-links a:hover {
  color: #ff4081;
}
.toggle span {
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

/* Sections */
.section {
  padding: 100px 20px;
  background: #111;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical centering */
  align-items: center;     /* horizontal centering */
  text-align: center;      /* center text */
  min-height: 60vh;        /* optional: make section taller for better centering */
}
.about,
.contact {
  padding: 100px 20px;
  background: #111;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* horizontal centering */
  text-align: center;  /* center text */
  min-height: 60vh;
  width: 100%;
  box-sizing: border-box;
}
/* About text */
.about p {
  max-width: 700px; /* limits width for readability */
  margin: 1rem auto; /* center horizontally */
}
/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  width: 100%;
  margin: 1rem auto; /* horizontal centering */
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border: none;
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
}

.contact-form button {
  padding: 0.8rem;
  background: #ff4081;
  border: none;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
  border-radius: 5px;
}

.contact-form button:hover {
  background: #e73370;
}
.contact-details {
  max-width: 500px;
  margin: 2rem auto; /* center horizontally */
  text-align: center;
  line-height: 1.5;
}
.map {
  width: 100%;
  max-width: 700px;
  margin: 2rem auto; /* center horizontally */
}
.footer {
  padding: 1.5rem 2rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  text-align: center;
  font-size: 0.9rem;
}

.footer a {
  color: #ff4081;
  text-decoration: none;
  margin-left: 0.5rem;
}

.footer a:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  .poster__video { display: none !important; }
  .content, .frame, .section-title, .section-lead { animation: none !important; transition: none !important; }
}
/* Media block for quotes/slogans with images */
.ieee-media {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(0.5rem, 2vw, 1rem) 0;
}

.ieee-media.reverse { flex-direction: row-reverse; }

.ieee-media__img {
  flex: 1 1 auto; 
  width: 100%;
  height: auto;
  object-fit: contain;

}

.ieee-media__img img {
  width: 100%;
  height: auto;
  /* aspect-ratio: 16 / 9; */
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.ieee-media__cap {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

.ieee-media__body { flex: 1 1 auto; }

.ieee-quote-title {
  margin: 0 0 0.5rem;
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.ieee-quote {
  margin: 0 0 1rem;
  line-height: 1.6;
}

/* Mobile stacking */
@media (max-width: 768px) {
  .ieee-media,
  .ieee-media.reverse { flex-direction: column; }
  .ieee-media__img { width: 100%; }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .ieee-media, .ieee-quote, .ieee-media__img img { transition: none !important; }
}


/* --- MOBILE SPACING FIX --- */
@media screen and (max-width: 768px) {
    /* Target the template's massive spacer elements */
    .content, section, .frame, .grid {
        min-height: auto !important;
        height: auto !important;
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* Remove artificial scroll distance */
    .spacing-huge {
        display: none !important;
    }
}
/* --- ANIMATED GRADIENT LIGHT TITLES --- */
.glow-title {
    position: relative;
    display: inline-block;
    /* Create a gradient combining IEEE Blue, WIE Purple, and Cyan */
    background: linear-gradient(90deg, #0066cc, #9900cc, #00ffff, #0066cc);
    background-size: 300% auto;
    color: transparent !important;
    -webkit-background-clip: text;
    background-clip: text;
    /* Animate the gradient moving across the text */
    animation: shine 4s linear infinite;
    text-shadow: none !important; /* Remove the old static shadow */
}

/* This creates the actual light bleeding out from behind the letters */
.glow-title::after {
    content: attr(data-text); /* Pulls the text from your HTML attribute */
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: linear-gradient(90deg, #0066cc, #9900cc, #00ffff, #0066cc);
    background-size: 300% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    filter: blur(12px); /* Diffuses the light */
    opacity: 0.8; /* Intensity of the glow */
    animation: shine 4s linear infinite;
}

/* The engine driving the light sweep */
@keyframes shine {
    to { background-position: 300% center; }
}
/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050505; /* Matches your deep space background */
}
::-webkit-scrollbar-thumb {
    background: #0066cc; /* IEEE Blue */
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #00ffff; /* Highlights cyan when hovered */
}
/* --- CUSTOM HIGHLIGHT/SELECTION COLOR --- */
::selection {
    background: rgba(153, 0, 204, 0.5); /* WIE Purple transparent */
    color: #ffffff;
    text-shadow: 0 0 5px #ffffff;
}
::-moz-selection {
    background: rgba(153, 0, 204, 0.5);
    color: #ffffff;
}
/* --- FROSTED GLASS DASHBOARD CARDS --- */
.glass-card {
    background: rgba(10, 15, 25, 0.4) !important; /* Dark, semi-transparent base */
    backdrop-filter: blur(12px); /* The magic frosted glass blur */
    -webkit-backdrop-filter: blur(12px); /* Safari support */
    
    /* Technical borders */
    border: 1px solid rgba(0, 102, 204, 0.3); /* IEEE Blue subtle border */
    border-top: 1px solid rgba(0, 255, 255, 0.5); /* Cyan top highlight */
    border-radius: 12px;
    
    padding: 2.5rem;
    margin: 2rem auto;
    max-width: 800px;
    
    /* Deep shadows for 3D depth */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.7), 
                inset 0 0 20px rgba(0, 102, 204, 0.05);
                
    /* Smooth hover animation */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

/* Hovering makes the card float up and glow cyan */
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 102, 204, 0.2), 
                inset 0 0 30px rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.5);
}

/* Ensure text inside the card is perfectly readable */
.glass-card p {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}
/* --- HERO TITLE CONTAINER --- */
.hero-title {
    text-align: center !important; /* Centers the massive title over your 3D canvas */
    margin: 10vh auto; /* Pushes it down slightly from the navbar */
    font-family: 'Fira Code', 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-container {
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertical */
    align-items: center;     /* horizontal */
    text-align: center;
}
/* --- MASSIVE MAIN TITLE (IEEE WIE CRCE) --- */
.hero-main {
    position: relative;
    display: inline-block;
    text-align: center;
    font-size: 6rem; /* Massive, dominant size */
    font-weight: 900;
    line-height: 1;
    
    /* The aggressive Cyan to Blue to Purple gradient */
    background: linear-gradient(90deg, #00ffff, #0066cc, #9900cc, #00ffff);
    background-size: 300% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    
    /* Sweeping light animation */
    animation: shine 4s linear infinite;
    
    /* Hard drop shadow to lift it off the 3D particles */
    filter: drop-shadow(0px 10px 15px rgba(0, 0, 0, 0.9));
}

/* The Volumetric Light Bleed (just like the smaller titles) */
.hero-main::after {
    content: attr(data-text);
    position: absolute;
	display: inline-block;
    text-align: center;
    left: 0;
    top: 0;
    z-index: -1;
    background: linear-gradient(90deg, #00ffff, #0066cc, #9900cc, #00ffff);
    background-size: 300% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    filter: blur(20px); /* Massive blur for a huge neon glow */
    opacity: 0.7;
    animation: shine 4s linear infinite;
}

/* --- SUBTITLE (Building a Future...) --- */
.hero-sub {
	display: inline-block;
    text-align: center;
    font-size: 3rem;
    color: #e0e0e0;
    font-weight: 400;
    letter-spacing: 4px; /* Widely tracked for a cinematic feel */
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.9);
}

/* --- ACCENT LINE (Innovate. Empower. Lead.) --- */
.hero-accent {
	display: inline-block;
    text-align: center;
    font-size: 2rem;
    color: #00ffff; /* High-contrast cyan */
    font-weight: 700;
    letter-spacing: 6px;
    opacity: 0.7;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* --- MOBILE RESPONSIVENESS --- */

@media screen and (max-width: 768px) {
  .hero-main { font-size: 2.5rem; }
  .hero-sub { font-size: 1.2rem; letter-spacing: 2px; }
  .hero-accent { font-size: 1rem; letter-spacing: 3px; }
  .ieee-media,
  .ieee-media.reverse {
    flex-direction: column;}
  .ieee-media__img {
    width: 100%;}
  .content, section, .frame, .grid {
    min-height: auto !important;
    height: auto !important;
    margin: 1.5rem 0 !important;
    padding: 1rem 0 !important;}
  .spacing-huge {
    display: none !important;
  }
}