@import url('https://fonts.googleapis.com/css?family=Roboto&display=swap');

.about-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin: 0 auto 48px auto;
}

.aboutTitle {
  position: static;
  width: 100%;
  text-align: center;
  font-size: calc(0.75vw + 0.75vh);
  font-style: normal;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 16px;
}

.aboutTitle h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.aboutTitle h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Removed old thumbnail styling - now handled in index.css */

.aboutText {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  font-size: calc(0.9em + 0.2vw);
  line-height: 1.7;
  font-family: 'Poppins', sans-serif;
  text-align: left;
  position: static;
  letter-spacing: 0.0035em;
}

.text-wrapper {
  text-align: left;
  justify-content: center;
  display: flex;
  margin-top: 4vh;
  color: rgb(201, 201, 201);
}

.bottom-headline-wrapper {
  position: relative;
  z-index: -1; 
}


.bottom-headline-wrapper {
  display: block;
  position: relative;
  z-index: -1; 
}

.bottom-headline {
  text-align: center;
  padding: 40px 0px;
  background-color: #080808;
}

.info-card {
  color: rgb(200, 200, 200);
  margin-left: 3vw;
  margin-top: 2vh;
  display: inline-block;
  position: fixed;
  font-size: calc(0.6vw + 0.6vh);
}

.info-card::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: rgb(121, 29, 187);
    border-radius: 50%;
    position: absolute;
    margin-left: -32px;
    margin-top: 0.35vh;
}

.info-card-description {
  margin-left: 9.5vw;
  margin-top: 2.45vh;
  position: fixed;
  display: inline-block;
  color:#919191;
  font-size: calc(0.45vw + 0.45vh);
}

/* Styling for the whole HTML and body */
html, body {
  margin: 0;
  color: #c9c9c9;
  font-family: 'Arial', sans-serif;
}

body.fade-in {
  opacity: 1;
  transition: transform 0.75s ease-in-out, opacity 0.75s ease-in-out;
}

html {
  background-color:#121212;
}

body {
  opacity: 0;
}

.fade-word {
  opacity: 0;
  transition: opacity 1s ease;
  font-size: calc(0.87vw + 0.87vh);
}

.show {
  opacity: 1;
}

.info-container {
  display: inline-block;
  position: relative;
  left: 3.1%;
  top: 19vh;
  margin-right: 12vw;
  font-size: calc(0.5vw + 0.5vh);
}

.info-title {
  color: rgb(200, 200, 200);
  font-size: larger;
}

.copyright-text {
  color: #919191;
  font-size: calc(0.45vw + 0.45vh);
}

.project-select a {
  text-decoration: none;
  color: inherit;
}

.project-select {
  color:rgb(214, 214, 214);
  position: relative;
  align-content: center;
  font-family: "Arial";
  text-align: center;
  margin-top: -4vh;
  width: fit-content;
  font-weight: bold;
  padding: 2px 32px;
  height: 5vh;
  background-color: rgb(49, 56, 57);
  border-radius: 4px;
  transition: 0.2s;
  cursor: pointer;
  font-size: large;
  letter-spacing: 0em;
  overflow: hidden;
  animation: idleAnimation 3s infinite;
}

@keyframes idleAnimation {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.075);
  }
  100% {
    transform: scale(1);
  }
}

.project-select::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60px;
  width: 40px;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 100%);
  opacity: 0;
  filter: blur(1.5px);
  transform: skewX(-20deg);
  transition: opacity 0.2s;
  animation: none;
}

.project-select:hover::after {
  opacity: 1;
  animation: sparkleStreak 0.7s linear;
  animation-fill-mode: forwards;
}

@keyframes sparkleStreak {
  0% {
    left: -60px;
    opacity: 0.1;
  }
  30% {
    opacity: 1;
  }
  50% {
    left: 100%;
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0.1;
  }
}

.project-select:hover {
  background-color: rgb(231, 200, 0);
  scale: 1.1;
  color: black;
}

.project-select:active {
  background-color: rgb(121, 29, 187);
  scale: 0.95;
  color:black;
}

.video-wrapper {
  opacity: 0.05;
  position: absolute;
  display: block;
  z-index: -1000;
}

.contact-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
}

/* About page alternating layout */
.about-row {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  padding: 28px 28px;
  background: transparent;
  border: none;
  box-shadow: none;
  z-index: 0;
}

.about-row.reverse { 
  flex-direction: row-reverse !important; 
}

/* subtle ambient vignette behind each card */
.about-row::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;
  background: radial-gradient(80% 60% at 20% 50%, rgba(255,255,255,0.045), rgba(0,0,0,0) 60%),
              radial-gradient(80% 60% at 80% 50%, rgba(255,255,255,0.03), rgba(0,0,0,0) 60%);
  filter: blur(6px);
  opacity: 0.7;
  z-index: -1;
}

/* edge-to-edge card background depending on image side */
.about-row.left-edge {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: none;
}
.about-row.right-edge {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
}

/* Background extension for left-edge cards (image on left) */
.about-section .about-row.left-edge::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(-100vw);
  right: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.08);
  border-left: none;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  z-index: -1;
}

/* Background extension for right-edge cards (image on right) */
.about-section .about-row.right-edge::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: calc(-100vw);
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.08);
  border-right: none;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  z-index: -1;
}

/* Enforce correct ordering for the right-edge row */
.about-row.right-edge .about-text { order: 1; }
.about-row.right-edge .about-image { order: 2; }

.about-image {
  flex: 0 0 min(35vw, 350px);
  height: auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image img {
  width: 100%;
  height: auto;
  max-height: 450px;
  display: block;
}

.about-image.wide-image {
  flex-basis: min(42vw, 520px);
  align-self: center;
}

.about-image.wide-image img {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-position: center;
}

.jysep-row {
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #f3f2f2;
  font-family: 'Poppins', sans-serif;
}

.about-text p {
  font-size: 1.1em;
  line-height: 1.7;
  color: #f3f2f2b0;
  margin-bottom: 15px;
  font-family: 'Poppins', sans-serif;
}

.about-text a {
  color: #ffc20b;
  text-decoration: none;
  transition: color 0.3s ease;
}

.about-text a:hover {
  color: #ffd700;
  text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .about-row {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
  }
  
  .about-row.reverse {
    flex-direction: column-reverse;
    gap: 30px;
    margin-bottom: 50px;
  }
  
  .about-image {
    flex: 0 0 250px;
    height: 250px;
    width: 100%;
  }

  .about-image.wide-image {
    flex: 0 0 auto;
    align-self: center;
  }

  .about-image.wide-image img {
    max-height: 250px;
  }
  
  .about-text h3 {
    font-size: 1.5em;
  }
  
  .about-text p {
    font-size: 1em;
  }
}
