
/* Custom styles with color variables */
:root {
  --heading-color: #e8e8ec;
  --subheading-color: #ff708f;
  --body-color: #ffffff;
  --accent-color: #ff708f;
  --date-color: #ff708f;
  --button-color: #ff708f;
  --bulk-text-color: #c4c4c4;
  --details-text-color: #c4c4c4;
}

body {
  font-family: 'Inter', sans-serif;
  background: none; /* Remove default background for main page */
  background-color: #2d2d2d; /* Fallback */
  overflow-x: hidden;
  color: var(--body-color);
  min-height: 100vh;
}

.background-fixed {
  display: none; /* Hidden on desktop */
}

@media (max-width: 768px) {
  body {
    background: none; /* Remove body background on mobile */
    background-color: #2d2d2d; /* Fallback */
  }

  .background-fixed {
    display: block;              /* Show on mobile */
    position: fixed;             /* Fix to viewport */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/nestori-bg.jpg'); /* or whatever bg */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;                 /* Behind content */
  }
}

.richard-bg, .vihtori-bg, .nestori-bg {
  background-size: cover;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.4);
}

.richard-bg {
  background-image: url('../images/richard-bg.jpg');
}

.vihtori-bg {
  background-image: url('../images/vihtori-bg.jpg');
}

.nestori-bg {
  background-image: url('../images/nestori-bg.jpg');
}

@media (max-width: 768px) {
  .richard-bg, .vihtori-bg, .nestori-bg {
    background-image: none;
  }
  .richard-bg .content-container::before,
  .vihtori-bg .content-container::before,
  .nestori-bg .content-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
  }
  .richard-bg .content-container::before {
    background-image: url('../images/richard-bg.jpg');
  }
  .vihtori-bg .content-container::before {
    background-image: url('../images/vihtori-bg.jpg');
  }
  .nestori-bg .content-container::before {
    background-image: url('../images/nestori-bg.jpg');
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

html {
  scroll-behavior: smooth;
}

.content-container {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  position: relative;
}

.underline-turquoise {
  border-bottom: 1px solid var(--accent-color);
}

#about, #career {
  background-color: rgba(0, 0, 0, 0.6);
}

#home, #education, #contact, #thank-you {
  background-color: rgba(0, 0, 0, 0.3);
}

.heading {
  color: var(--heading-color);
  font-weight: 500;
  transition: text-shadow 0.3s ease;
}

.heading.glow {
  animation: heading-glow 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
}

@keyframes heading-glow {
  0% { text-shadow: 0 0 0 var(--accent-color); }
  40% { text-shadow: 0 0 8px var(--accent-color), 0 0 15px var(--accent-color); }
  100% { text-shadow: 0 0 0 var(--accent-color); }
}

.subheading {
  color: var(--accent-color);
  font-weight: 300;
}

.body-text {
  color: var(--bulk-text-color);
  font-weight: 300;
}

.date-text {
  color: var(--date-color);
  font-weight: 300;
}

.accent {
  color: var(--accent-color);
}

.accent:hover {
  color: color-mix(in srgb, var(--accent-color), #ffffff 20%);
}

.details-text {
  color: var(--details-text-color);
  font-weight: 300;
}

.about-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.about-text {
  flex: 1;
  text-align: left;
}

.about-image {
  flex-shrink: 0;
  width: 150px;
  height: auto;
  border: 1px solid var(--accent-color);
  background-color: #f199cc3f;
  padding: 0px;
}

.about-details {
  width: 100%;
}

@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }
  .about-image {
    margin: 0 auto;
  }
  .about-details {
    margin-top: 1rem;
  }
}

nav a {
  color: var(--heading-color);
}

nav a:hover {
  color: var(--accent-color);
  transition: color 0.3s ease;
}

.edu-logo {
  width: 90px;
  height: auto;
  margin-right: 10px;
  filter: brightness(1.8) contrast(1.5);
}

/* Tailwind hover:transition override */
.hover\:transition:hover {
  color: var(--accent-color);
  transition: color 0.3s ease;
}