:root {
  --primary: rgb(85 90 146);
  --secondary: rgb(92 93 114);
  --tertiary: rgb(120 83 107);
  --background: rgb(234, 218, 252);
  --surface: rgb(251 248 255);
  --surface-dim: rgb(221, 169, 255);
  --on-surface: rgb(27 27 33);
}

.darkmode {
  --primary: rgb(190 194 255);
  --secondary: rgb(197 196 221);
  --tertiary: rgb(232 185 213);
  --background: rgb(19 19 24);
  --surface: rgb(19 19 24);
  --surface-dim: rgb(37, 37, 45);
  --on-surface: rgb(228 225 233);
}

.header {
    font-family: Roboto;
    background-color: var(--surface-dim);
    padding: 20px;
    margin: 0px;
    margin-left: 10px;
    margin-right: 10px;
    text-align: center;
    border-radius: 25px;
}


.header-title {
    margin: 0;
    padding-top: 0;
    font-size: clamp(2rem, 6vw, 4rem);  
    font-family: Roboto;
    color: var(--primary);
}

.header-subtitle {
    margin: 0;
    padding-top: 0;
    font-size: clamp(1rem, 3vw, 2rem);
    font-family: Roboto;
    color: var(--on-surface);
}
html, body {
  min-height: 100vh;
  margin: 0;
  background-color: var(--background);
  color: var(--on-surface);
  font-family: Roboto;
  }

/* The "M3 Standard Expressive" Curve */
:root {
  --m3-easing: cubic-bezier(0.2, 0, 0, 1);
  --m3-duration: 400ms;
}

html, body, .header, .panel, .header-title, .header-subtitle {
  /* No delays - everything moves together for that "snappy" feel */
  transition: 
    background-color var(--m3-duration) var(--m3-easing),
    color var(--m3-duration) var(--m3-easing);
}

/* Optional: Subtle scale pop like M3 buttons */
#theme-switch {
  transition: transform 200ms var(--m3-easing), background-color var(--m3-duration) var(--m3-easing);
}

#theme-switch:active {
  transform: scale(0.9); /* Gives tactile feedback when clicked */
}



body {
  padding: 10px;
  box-sizing: border-box;
}

#theme-switch {
  height: 50px;
  width: 50px;
  padding: 0;
  border-radius: 50%;
  background-color: var(--background);
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 20px;
  right: 20px;
  overflow: hidden;
  cursor: pointer;
}

#theme-switch svg {
  color: var(--on-surface);
  position: absolute;
  transition: transform var(--m3-duration) var(--m3-easing), opacity var(--m3-duration) var(--m3-easing);
  left: 50%;
  top: 50%;
  margin: -12px 0 0 -12px;
}

#theme-switch svg:first-child { transform: translateY(0); opacity: 1; }
#theme-switch svg:last-child { transform: translateY(-100%); opacity: 0; }
.darkmode #theme-switch svg:first-child { transform: translateY(100%); opacity: 0; }
.darkmode #theme-switch svg:last-child { transform: translateY(0); opacity: 1; }


#home {
    height: 50px;
  width: 50px;
  padding: 0;
  border-radius: 50%;
  background-color: var(--background);
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 20px;
  left: 30px;
}

.panel {
    font-family: Roboto;
    background-color: var(--surface-dim);
    padding: 20px;
    margin: 10px;
    text-align: center;
    border-radius: 25px;
    flex: 1; 
}

a {
    text-decoration: none; 
    color: inherit;
  }

.popup {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0; 
  top: 0; 
  width: 100%; 
  height: 100%;
  background-color: rgba(0,0,0,0.5);           
  justify-content: center;   
  align-items: center;       
}

.popup-content {
  background-color: var(--surface-dim);
  color: var(--on-surface);
  padding: 30px;
  width: 90%;
  max-width: 450px;
  border-radius: 28px; 
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  position: relative;
}

#popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  cursor: pointer;
  font-size: 28px;
}


/* Desktop: Side-by-side */
.image {
  display: flex;
  flex-direction: row;
  size: ;
}

/* Mobile: Stacked underneath when screen is 600px or less */
@media (max-width: 600px) {
  .image {
    flex-direction: column;
  }
}



/* Makes the iframe responsive while maintaining 16:9 aspect ratio */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  width: 100%;
  overflow: hidden;
  border-radius: 15px; /* Slightly smaller radius for the inner video */
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}



.top-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 10px;
}

.about-panel {
    flex: 2;
}

.video-panel {
    padding: 0px;
    margin: 0px;
    border-radius: 25px;
    flex: 1;
    display: flex;
    align-items: center;
}

@media (max-width: 800px) {
    .top-row {
        flex-direction: column;
    }
    .about-panel, .video-panel {
        flex: none;
        margin: 10px;
    }
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    width: 100%;
    overflow: hidden;
    border-radius: 25px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}


.intro {
  text-align: justify;
}

.wrapper {
  display: grid;
  grid-template-columns: 200px 200px 200px;
}

.content {
  padding: 10px;
}