@font-face {
  font-family: 'TAN Kindred';
  src: url('../fonts/TANKINDRED-Display.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  font-family: sans-serif;
  scroll-behavior: smooth;
}

/* Global Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'TAN Kindred', serif;
}

/* Hero Section */
.hero-bg {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  color: white;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.hero-text h1 {
  font-size: 4rem;
  color: white;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.circle-buttons {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.circle {
  display: inline-block;
  padding: 1rem 1.5rem;
  border-radius: 50%;
  border: 2px solid white;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.circle:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

/* About Section */
.about-section {
  background-color: #ffd1df;
  padding: 3rem 2rem 5rem 2rem;
}

.about-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 3rem;
  gap: 2rem;
}

.about-text {
  flex: 1;
  min-width: 300px;
  max-width: 550px;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #F47CB9;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 1.5rem;
}

.about-text ul {
  list-style: none;
  padding: 0;
}

.about-text li {
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.about-image {
  flex: 1;
  min-width: 300px;
  max-width: 450px;
  text-align: center;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Tabs */
.line-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.tab-content {
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
}

.tab-button {
  background: none;
  border: none;
  font-family: 'TAN Kindred', serif;
  font-size: 1.1rem;
  color: #F47CB9;
  cursor: pointer;
  position: relative;
  padding: 0.5rem 1rem;
  transition: color 0.3s;
  flex-shrink: 1;
}

.tab-button:hover {
  color: #F47CB9;
}

.tab-button:focus {
  outline: 2px dashed #F47CB9;
  outline-offset: 4px;
}

.tab-button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background-color: transparent;
  transition: width 0.3s, background-color 0.3s;
}

.tab-button.active::after {
  width: 100%;
  background-color: #F47CB9;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-panel strong {
  font-weight: bold;
  color: #F47CB9;
  display: block;
  margin-bottom: 0.3rem;
}

.tab-panel ul {
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.tab-panel li {
  font-weight: normal;
  margin-bottom: 0.75rem;
  line-height: 1.6;
  font-size: 1.1rem;
  color: #555;
}

.tab-panel ul ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.tab-panel ul ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
}

.tab-panel ul ul li::before {
  content: "★";
  position: absolute;
  left: 0;
  color: #F47CB9;
  font-size: 1.3rem;
  line-height: 1;
}

/* Projects */
.projects-section {
  background-image: url('../images/portfolio-bg.png');
  background-size: cover;
  background-position: center;
  padding: 4rem 2rem;
  color: white;
}

.projects-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.projects-section h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #fff;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-7px);
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.project-card p {
  font-size: 1rem;
  color: #fff;
}

.project-card video {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 1rem;
}

/* Interests Section */
.interests-section {
  background: linear-gradient(to bottom, #fff4fa, #ffe1ee);
  background-image: url('/images/interests-bg.png');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  min-height: 100vh;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.interests-title {
  margin-bottom: 2rem;
  text-align: center;
}

.interests-title h2 {
  font-family: 'TAN Kindred', serif;
  font-size: 2.5rem;
  color: #F47CB9;
  margin: 0;
}

.interest-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  width: 100%;
}

.interest-card {
  background: #ffe1ee;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  position: relative;
  height: 200px;
  perspective: 1000px;
}

.interest-card:hover {
  transform: scale(1.02);
}

.interest-front,
.interest-back {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.4s ease;
  backface-visibility: hidden;
  text-align: left;
  gap: 1rem;
}

.interest-front {
  z-index: 2;
  background-color: #ffe1ee;
  flex-direction: row;
}

.interest-front h3 {
  font-size: 1.2rem;
  color: #F47CB9;
  font-family: 'TAN Kindred', serif;
  margin: 0;
}

/* Icon */
.interest-icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Back Face */
.interest-back {
  background-color: #f47cb9;
  color: white;
  opacity: 0;
  z-index: 1;
  flex-direction: column;
  text-align: center;
}

.interest-back p {
  font-size: 1rem;
  line-height: 1.4;
  max-width: 90%;
  margin: 0 auto;
}

.interest-card:hover .interest-front {
  opacity: 0;
}

.interest-card:hover .interest-back {
  opacity: 1;
}

/* --- Mobile Fixes --- */
@media (max-width: 768px) {
  .interests-title h2 {
    font-size: 2rem;
  }

  .interest-stack {
    grid-template-columns: 1fr;
  }

  .interest-card {
    height: auto;
    min-height: 200px;
  }

  .interest-front,
  .interest-back {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .interest-icon {
    width: 60px;
    height: 60px;
  }

  .interest-front h3 {
    font-size: 1rem;
  }

  .interest-back p {
    font-size: 0.95rem;
  }
}

/* Contact */
.contact-section {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(to bottom, #ffe1ee, #fff4fa);
  padding: 0;
}

.contact-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.contact-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 800px;
  width: 100%;
  height: 100%;
  padding: 2rem;
  color: white;
  text-align: center;
  box-sizing: border-box;
}

.contact-overlay h2 {
  font-family: 'TAN Kindred', serif;
  font-size: 3.5rem;
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.contact-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-bottom: auto;
  flex-wrap: wrap;
}

.contact-icons img {
  width: 64px;
  height: 64px;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.contact-icons img:hover {
  transform: scale(1.15);
}

/* Credit text */
.icons8-credit {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  color: white;
  opacity: 0.8;
}

.icons8-credit a {
  color: #ffd1df;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .contact-overlay h2 {
    font-size: 2.2rem;
  }

  .contact-icons img {
    width: 48px;
    height: 48px;
  }

  .icons8-credit {
    font-size: 0.8rem;
  }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    padding: 1rem;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .circle-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .interest-stack {
    flex-direction: column;
  }

  .interest-icon {
    width: 100px;
    height: 100px;
  }

  .interest-card {
    height: auto;
    flex-direction: column;
    padding: 1rem;
  }

  .interest-front,
  .interest-back {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .contact-overlay h2 {
    font-size: 2rem;
  }

  .projects-section h2 {
    font-size: 2rem;
  }

  .project-card h3 {
    font-size: 1.25rem;
  }
}