@import url("https://fonts.cdnfonts.com/css/thegoodmonolith");

@font-face {
  font-family: "PP Neue Montreal";
  src: url("https://fonts.cdnfonts.com/s/64587/PPNeueMontreal-Medium.woff2")
    format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --color-bg: #111111;
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.7);
  --color-text-dim: rgba(255, 255, 255, 0.6);
  --color-dot: #444;
  --color-star: rgba(209, 255, 255, 1);
  /* Typography */
  /* --font-anim: "Leclerli One", cursive; */
  --font-body: "TheGoodMonolith", sans-serif;
  --font-title: "PP Neue Montreal", sans-serif;
  --font-size-small: 1rem;
  --font-size-base: 1.5rem;
  --font-size-h2: 2.5rem;
  --font-size-h1: 3rem;
  --font-size-XL: 5rem;
  --letter-spacing-title: -0.03em;
  --line-height: 1.4;
  /* Spacing */
  --spacing-base: 1rem;
  --spacing-sm: 0.75rem;
  --spacing-xs: 0.25rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.8s ease;
  /* Effects */
  --blur-amount: 5px;
}

/* ===== RESET & BASE STYLES ===== */
*,
*:before,
*:after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.underline {
  text-decoration: underline;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: var(--line-height);
  margin: 0;
  font-size: var(--font-size-base);
  overflow-x: hidden;
}

/* Dust/Scratches background effect for the entire site */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://img.freepik.com/premium-photo/white-dust-scratches-black-background_279525-2.jpg?w=640");
  background-repeat: repeat;
  opacity: 0.05;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}

h2,
h3 {
  font-weight: normal;
  margin-bottom: var(--spacing-sm);
}

h2 {
  font-family: var(--font-title);
  font-size: var(--font-size-h2);
  letter-spacing: var(--letter-spacing-title);
  text-transform: uppercase;
  margin-bottom: var(--spacing-md);
}

p {
  margin-bottom: var(--spacing-xs);
  font-size: var(--font-size-base);
  opacity: 0.7;
}

ul {
  list-style: none;
}

li {
  margin-bottom: var(--spacing-xs);
  font-size:     var(--font-size-base);
  opacity:       0.7;
}


li a {
  color:    inherit;   /* so the link text is the same color/opacity as the <li> */
  font-size: inherit;
  opacity:  inherit;
  text-decoration: none; 
}

a,
.links span {
  position: relative;
  cursor: pointer;
  color: var(--color-text);
  padding: 0;
  display: inline-block;
  z-index: 1;
  text-decoration: none;
  font-size: var(--font-size-base);
  opacity: 0.7;
  transition: color var(--transition-medium);
}

a::after,
.links span::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--color-text);
  z-index: -1;
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

a:hover::after,
.links span:hover::after {
  width: 100%;
}

a:hover,
.links span:hover {
  color: black;
  mix-blend-mode: difference;
  opacity: 1;
}

/* ===== LAYOUT COMPONENTS ===== */
.footer {
  padding: var(--spacing-lg);
  width: 100%;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--spacing-base);
  width: 100%;
}

/* Grid column assignments */
.nav {
  grid-column: 1 / span 3;
}

.values {
  grid-column: 5 / span 2;
}

.location-2 {
  grid-column: 7 / span 2;
}

.contact {
  grid-column: 9 / span 2;
}

.social {
  grid-column: 11 / span 2;
  text-align: right;
}

/* Bottom bar */
.bottom-bar {
  margin-top: auto;
  padding-top: var(--spacing-lg);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--spacing-base);
  align-items: flex-end;
  width: 100%;
  position: relative;
  z-index: 5;
}

.coordinates {
  grid-column: 1 / span 3;
  opacity: var(--color-text-dim);
}

.links {
  grid-column: 5 / span 4;
  text-align: center;
}

.info {
  grid-column: 9 / span 4;
  text-align: right;
  opacity: var(--color-text-dim);
}

.links span {
  margin: 0 var(--spacing-base);
}

/* ===== LOGO COMPONENT ===== */
.logo-container {
  margin-bottom: var(--spacing-md);
  display: block;
  width: 3rem;
  height: 1.5rem;
  position: relative;
  transform: translate(1rem, 3rem)
}

.logo-circles {
  position: relative;
  width: 100%;
  height: 100%;
}

.circle {
  position: absolute;
  border-radius: 50%;
  transition: transform var(--transition-medium);
  width: 5rem;
  height: 5rem;
  background-color: var(--color-text);
  top: 50%;
}

.circle-1 {
  left: 0;
  transform: translate(0, -50%);
}

.circle-2 {
  left: 0.8rem;
  transform: translate(0, -50%);
  mix-blend-mode: exclusion;
}

.logo-container:hover .circle-1 {
  transform: translate(-2.5rem, -50%);
}

.logo-container:hover .circle-2 {
  transform: translate(2.5rem, -50%);
}

/* ===== DOT GRID ===== */
.dot-grid {
  width: 100%;
  height: 150px;
  position: relative;
  margin-top: var(--spacing-base);
  overflow: hidden;
  z-index: 1;
}

.dot {
  position: absolute;
  font-size: 10px;
  color: var(--color-dot);
  transition: all var(--transition-fast);
  will-change: transform, color;
}

/* ===== WEBGL SECTION ===== */
.sticky-container {
  position: relative;
  height: 500vh;
  width: 100%;
  margin: 0;
}

.webgl-section {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  overflow: hidden;
  will-change: transform, opacity, filter;
}

.canvas-container {
  width: 100%;
  height: 100%;
  position: relative;
  will-change: transform, opacity, filter;
  display: flex;
  justify-content: center;
  align-items: center;
}

canvas#space {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ===== ANIMATED TEXT ===== */
.animated-text {
  position: absolute;
  top: auto;
  left: 50%;
  transform: translate(-50%, calc(-50% + 40px));
  color: var(--color-text);
  font-family: var(--font-title);
  /* font-size: var(--font-size-XL); */
  font-size: clamp(2rem, 15vw, 5rem);
  text-align: center;
  opacity: 0;
  z-index: 20;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-title);
  pointer-events: none;
  width: 80%;
  max-width: 800px;
  will-change: opacity, transform, filter;
  filter: blur(8px);
  transition: filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== ADDITIONAL SECTION ===== */
.additional-section {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--spacing-lg);
  position: relative;
  z-index: 20;
  overflow: hidden;
}

.additional-content {
  max-width: 800px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.additional-content.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced width for paragraphs */
.additional-content p {
  font-size: 1.5rem;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: var(--spacing-base);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.section-transition {
  position: relative;
  overflow: hidden;
}

/* Who am I + Education Section */

.who-is-lucid {
  background-color: var(--color-bg);
  color:            var(--color-text);
  padding:          calc(var(--spacing-base) * 2) var(--spacing-base);
  text-align:       center;
  display:          flex;
  flex-direction:   column;
  align-items:      center;
  /* Reduce the gap between items slightly */
  gap:              var(--spacing-lg); /* instead of var(--spacing-base) */
}


.who-is-lucid .subtitle,
.who-is-lucid .body-text {
  font-family: var(--font-body);
  font-size:   var(--font-size-base);
  margin:      0;
  opacity:     0.7;
}

#eduExpTech {
  padding-top: 25rem; 
  padding-bottom: 25rem;
}
/* =================================================
   Education section title (new rule → same styling)
   =================================================
*/
.education .section-title {
  font-family:    var(--font-body);
  font-size:      var(--font-size-h2);
  letter-spacing: var(--letter-spacing-title);
  margin:         0 0 var(--spacing-base) 0; 
  color:          var(--color-text);
  text-align:     center;
}
.education .degree {
  display:          flex;
  flex-direction:   row;
  align-items:      center;  
  justify-content:  center;
  
  margin-top:       var(--spacing-sm); /* was var(--spacing-base) */
  gap:              var(--spacing-sm);
}

/* UofA icon */
.education .degree img {
  height:         48px;   
  width:          auto;
  object-fit:     contain;

  /* Add a subtle glow/highlight */
  filter:         drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
  transition:     transform 0.2s ease-in-out, filter 0.2s ease-in-out;
}

/* On hover, make the logo slightly brighter and scale up */
.education .degree img:hover {
  transform:      scale(1.1);
  filter:         drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
}

/* ↑ UPDATED: Degree text ↑ */
.education .degree span {
  font-family:    var(--font-title);       
  font-size:      1.25rem;                 
  color:          var(--color-text);
  white-space:    nowrap;                  
  letter-spacing: 0.02em;
}

/* ===== Tech Stack Section ===== */
.tech-stack {
  
  width:            100%;
  background-color: var(--color-bg);
  color:            var(--color-text);

  
  display:          flex;
  flex-direction:   column;
  align-items:      center;  /* horizontally center children */
  padding:          2rem var(--spacing-base); /* vertical/horizontal padding */
  box-sizing:       border-box;
}

/* Section title (<h2>) centered + styled */
.tech-stack .section-title {
  font-family:    var(--font-body);
  font-size:      var(--font-size-h2);
  letter-spacing: var(--letter-spacing-title);
  margin:         0 0 var(--spacing-base) 0; /* bottom margin to separate from icons */
  color:          var(--color-text);
  text-align:     center;
}

/* Flex‐container for icons: centered + wrap onto multiple rows if needed */
.tech-stack .tech-icons {
  display:         flex;
  flex-wrap:       wrap;             
  justify-content: center;           
  align-items:     center;           
  gap:             var(--spacing-base); 
  max-width:       800px;            
  margin:          0 auto;           
  box-sizing:      border-box;
  padding:         0 var(--spacing-sm); /* small horizontal padding so icons don’t hug edges */
}


.tech-stack .tech-icons img {
  height:       60px;   
  width:        auto;   /* keep aspect ratio */
  object-fit:   contain;
  transition:   transform 0.2s ease-in-out;
  cursor:       default;
}

/*hover effect: slightly enlarge on hover */
.tech-stack .tech-icons img:hover {
  transform:    scale(1.1);
}
/* Footer Styling */
/* ======================================
   Site Footer (at very bottom of the page)
   ====================================== */
.site-footer {
  background-color: var(--color-bg);       
  color:            var(--color-text-dim); /* slightly muted white */
  padding:          var(--spacing-base) 0; /* vertical padding */
  text-align:       center;                /* center all text/links */
  font-family:      var(--font-body);
  font-size:        var(--font-size-base);
}


.site-footer .footer-content {
  max-width:  900px;       
  margin:     0 auto;      /* center the footer-content container */
  padding:    0 var(--spacing-base);
  display:    flex;
  flex-direction: column;
  align-items: center;
  gap:       var(--spacing-sm); /* space between rows (copy, nav, social) */
}


.site-footer .footer-copy {
  margin: 0;
  opacity: 0.7; /* slightly dim compared to main text */
}


.site-footer .footer-nav {
  display:    flex;
  flex-wrap:  wrap;
  justify-content: center;
  gap:        var(--spacing-base);
}

.site-footer .footer-link {
  color:           var(--color-text);
  text-decoration: none;
  transition:      color 0.2s ease;
}

.site-footer .footer-link:hover {
  color:           var(--color-text);
  text-decoration: underline;
}


.site-footer .footer-social {
  display:    flex;
  flex-wrap:  wrap;
  justify-content: center;
  gap:        var(--spacing-base);
}

.site-footer .footer-social .footer‐icon {
  color:           var(--color-text);
  text-decoration: none;
  transition:      color 0.2s ease;
}

.site-footer .footer-social .footer‐icon:hover {
  color:           var(--color-text);
  opacity:         0.9;     /* slightly brighten on hover */
  text-decoration: underline;
}


.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Projects section */
.projects-section {
  background-image: url("https://raw.githubusercontent.com/llLucidll/CDN/main/PortfolioWebsite/backdrop.jpeg");
  background-size:  cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #111111; /* fallback */
  min-height:        100vh;
  padding:           4rem 2rem;
  color:             var(--color-text);
  text-align:        center;
}


.projects-section .section-title {
  font-family:    var(--font-body);
  font-size:      var(--font-size-h1);
  letter-spacing: var(--letter-spacing-title);
  margin-bottom:  var(--spacing-base);
  text-transform: uppercase;
  color:          var(--color-text);
}


.projects-grid {
  display:        grid;
  grid-template-columns: repeat(2, 1fr);
  gap:            var(--spacing-xl);
  justify-items:  center; /* center each card in its column */
  max-width:      1200px; /* prevents it from growing too wide on huge screens */
  margin:         0 auto;
  padding:        var(--spacing-base) 0;
}

/* Individual project card */
.project-card {
  background-color: rgba(0, 0, 0, 0.6);  /* semi‐transparent black overlay */
  border:           1px solid rgba(255, 255, 255, 0.1);
  border-radius:    8px;
  overflow:         hidden;
  width:            100%;
  max-width:        280px;  /* keeps thumbnails from stretching too big */
  cursor:           pointer;
  transition:       transform 0.2s ease, box-shadow 0.2s ease;
}

/* On hover: slightly “lift” the card */
.project-card:hover {
  transform:    translateY(-4px);
  box-shadow:   0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Thumbnail image inside card */
.project-thumb {
  display:        block;
  width:          100%;
  height:         auto;
  object-fit:     cover;
}

/* Project title below the image */
.project-title {
  font-family:    var(--font-body);
  font-size:      var(--font-size-base);
  margin:         var(--spacing-sm) 0 var(--spacing-base) 0;
  color:          var(--color-text);
}

/* ------------------------------------------
   Modal Overlay & Content (start hidden)
   ------------------------------------------ */
.modal-overlay {
  display:        none;             /* hide until JS sets display:flex */
  position:       fixed;
  top:            0;
  left:           0;
  width:          100%;
  height:         100%;
  background:     rgba(0, 0, 0, 0.8); /* semi-transparent black */
  justify-content: center;
  align-items:     center;
  z-index:        10000;            /* sit above everything else */
}

.modal-content {
  background-color: var(--color-bg);      
  border:           1px solid rgba(255,255,255,0.2);
  border-radius:    8px;
  padding:          2rem;
  max-width:        500px;
  width:            90%;
  color:            var(--color-text);
  position:         relative;
  text-align:       center;
}

.modal-close {
  position:    absolute;
  top:         8px;
  right:       12px;
  background:  none;
  border:      none;
  font-size:   1.5rem;
  color:       var(--color-text);
  cursor:      pointer;
}

.modal-inner h3 {
  margin-top:   0;
  font-family:  var(--font-title);
  font-size:    var(--font-size-h2);
  margin-bottom: var(--spacing-base);
}

.modal-inner p {
  font-family: var(--font-body);
  font-size:   var(--font-size-base);
  margin-bottom: var(--spacing-base);
}

.modal-inner a {
  color: var(--color-text);
  text-decoration: underline;
}

.modal-inner iframe {
  width: 100%;
  height: 200px;
  border: none;
  margin-top: var(--spacing-base);
  border-radius: 4px;
}

/* Mobile Fixes */
@media (max-width: 800px) {
  html {
    /*this makes all rem-based sizes x% of normal */
    font-size: 85%;
  }

  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .footer-col, .nav, .contact, .social {
    margin: 0.5rem 0;     /* instead of 1rem+ */
  }

  
  .logo img, .site-logo {
    max-width: 120px;      
    height: auto;
  }

  
  .grid-3-cols {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
    
  .container {
    grid-template-columns: 1fr !important;
    column-gap: 0 !important;       
  }

  
  .nav,
  .values,
  .location-2,
  .contact,
  .social {
    grid-column: 1 / -1 !important; 
    width: 100%;
    text-align: center;             
    margin: var(--spacing-sm) 0;    /* give them breathing room */
  }
}

/* Hide the circle logo on desktop, show only on desktops */
.mobile-logo {
  display: none;
}

@media (max-width: 800px) {
  .logo-container,
  .mobile-logo {
    display: none !important;
  }
}

/* Courses List */
/* Container */
.courses-list {
  max-width: 700px;
  margin: 3rem auto;
  padding: 0 1rem;
  font-family: sans-serif;
  color: #f5f5f5;
  background: #121212; /* or whatever your bg is */
}

/* Main title */
.courses-list > h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

/* Term heading */
.courses-list .term h2 {
  font-size: 1.75rem;
  margin: 2rem 0 0.75rem;
  color: #ddd;
}

/* Remove default bullets */
.courses-list ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

/* Each course item */
.courses-list li {
  display: flex;
  align-items: center;
  margin: 0.6rem 0;
}

/* Custom bullet */
.courses-list li::before {
  content: '▹';
  color: #888;
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

/* Course code badge */
.course-badge {
  display: inline-block;
  background: #333;
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-right: 0.75rem;
  min-width: 3.5em;
  text-align: center;
}

/* Course text */
.courses-list li span + text,
.courses-list li {
  line-height: 1.4;
  font-size: 1rem;
}

/* Optional: make them links */
.courses-list li a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.courses-list li a:hover .course-badge,
.courses-list li a:hover {
  color: #42a5f5;
}

/* style for the linked course title */
.course-link {
  color: inherit;            /* match your text color */
  text-decoration: underline;
  padding-left: 0.5rem;      /* space from the badge */
  transition: color 0.2s ease;
}

.course-link:hover {
  color: #4a4a4a;            /* or your accent-hover color */
}



