/* Font Definitions */
@font-face {
  font-family: 'Alte Haas Grotesk';
  src: url('/fonts/AlteHaasGroteskRegular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Alte Haas Grotesk';
  src: url('/fonts/AlteHaasGroteskBold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

.experience-description {
  margin-top: 10px;
  padding-left: 20px;
  list-style-type: disc;
  color: var(--secondary-black);
  font-size: 15px;
  line-height: 1.6;
}


/* Updated navigation styles */
.unified-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 40px 0;
}

.nav-left {
  display: flex;
  align-items: center;
}

.nav-right {
  display: flex;
  justify-content: flex-end;
}

.nav-right a {
  margin-left: 30px;
  color: var(--primary-black);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.2s ease;
}

.nav-right a:hover {
  opacity: 0.7;
}

.back-arrow {
  display: flex;
  align-items: center;
  color: var(--primary-black);
  text-decoration: none;
  transition: all 0.2s ease;
}

.back-arrow:hover {
  opacity: 0.5;
  text-decoration: none;
  color: var(--accent-2);       /* calm blue, matches footer hover */
}

.back-arrow .arrow-icon {
  font-size: 15px;
  line-height: 1;
  margin-right: 10px;
  color: var(--primary-black);
}

.back-arrow span:not(.arrow-icon) {
  font-size: 15px;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .unified-nav {
    padding: 10px 0;
  }
  
  .nav-right a {
    margin-left: 20px;
    font-size: 15px;
  }
}

/* 90/10 Layout */
.main-content-area {
  display: flex;
  gap: 80px; /* Increased gap between columns */
}

.content-area {
  width: 88%; /* Slightly reduced to accommodate the increased gap */
}

/* Table of Contents */
.table-of-contents {
  width: 10%; /* Slightly increased to accommodate the increased gap */
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
}

.toc-inner {
  background-color: var(--toc-bg);
  border-radius: 12px;
  padding: 5px 20px; /* Increased padding inside TOC */
  box-shadow: var(--box-shadow-light);
  border: 1px solid var(--toc-border);
  width: 100%;
}

.toc-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px; /* Increased bottom margin */
  color: var(--primary-black);
  text-align: left;
}

.toc-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-link {
  display: block;
  padding: 8px 6px; /* Increased padding */
  margin-bottom: 8px; /* Increased margin between links */
  border-radius: 6px;
  color: var(--toc-text);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 13px;
  text-align: left;
}

.toc-link:hover {
  background-color: var(--toc-hover);
  text-decoration: none;

}

.toc-link.active {
  background-color: var(--toc-active);
  font-weight: 500;
  color: var(--accent-blue);
}

/* Header section */
.text-section-line {
  width: 100%;
  background: linear-gradient(90deg, #FFFFFF 0%, #F3EFFD 50%, #FFF5F8 100%);
  border-radius: 16px; /* Adds rounded corners to the container */
  padding: 40px 40px 60px 40px; /* Added horizontal padding */
  margin-bottom: 40px; /* Space below the container */
  border-bottom: 1px solid var(--section-divider);
}

.header-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.header-left-column {
  flex: 1;
  min-width: 300px;
  max-width: 900px;
}

.heading-3 {
  font-size: 42px;
  font-weight: 500;
  margin: 0 0 16px 0;
  line-height: 1.2;
  color: var(--primary-black);
}

.text-block-2 {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 36px;
  color: var(--secondary-black);
}

.project-meta-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-meta {
  margin-bottom: 0;
}

.meta-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px 0;
  color: var(--primary-black);
}

.meta-content {
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  color: var(--secondary-black);
}

.header-right-column {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.header-image {
  width: 100%;
  height: auto;
  max-height: 260px; /* 👈 keeps it visually short */
  object-fit: cover; /* ensures it stays proportional */
  border-radius: 12px;
  box-shadow: var(--box-shadow);
}

/* Content Sections */
.content-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--section-divider);
}

.section-title {
  font-size: 32px;
  font-weight: 500;
  margin: 0 0 30px 0;
  color: var(--primary-black);
}

.section-content {
  color: var(--secondary-black);
  font-size: 16px;
  line-height: 1.6;
}

/* Project description styling */
.project-description {
  margin-bottom: 30px;
  font-size: 16px;
  line-height: 1.6;
}

.cta-text {
  font-weight: 500;
  color: var(--primary-black);
}

/* Feature lists */
.feature-list {
  margin-left: 0px;
  margin-bottom: 30px;
}

.feature-list li {
  margin-bottom: 20px;
}

/* Project showcase image */
.project-showcase {
  width: 100%;
  margin: 40px 0;
}

.problem-solution-list {
  margin: 1rem 0 1rem 1.25rem;
  padding: 0;
  list-style-type: disc;
}

.problem-solution-list li {
  margin-bottom: 1rem;
  line-height: 1.5;
}

.showcase-image {
  width: 100%;
  max-width: 800px;
  display: block;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

/* Footer styles */
.footer-row {
  margin-top: 60px;
  padding: 30px 0;
  border-top: 1px solid var(--section-divider);
}

.footer-text {
  text-align: center;
  color: var(--secondary-black);
  font-size: 14px;
  line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .main-content-area {
    gap: 20px; /* Reduce gap on smaller screens */
  }
  
  .toc-link {
    font-size: 12px;
    padding: 8px 10px;
  }
  
  .toc-inner {
    padding: 20px 15px;
  }
}

@media (max-width: 992px) {
  .main-content-area {
    flex-direction: column;
    gap: 20px;
  }
  
  .content-area {
    width: 100%;
  }
  
  /* Hide table of contents on mobile */
  .table-of-contents {
    display: none;
  }
  
  .header-left-column, 
  .header-right-column {
    flex: 100%;
    max-width: 100%;
  }
  
  .header-right-column {
    order: -1; /* Image first on mobile */
  }
  
  .heading-3 {
    font-size: 36px;
    margin-top: 30px;
  }
  
  .text-section-line {
    padding: 30px 25px 40px 25px;
  }
}

@media (max-width: 768px) {
  .custom-container {
    width: 92%;
  }
  
  .heading-3 {
    font-size: 32px;
  }
  
  .text-block-2 {
    font-size: 16px;
    margin-bottom: 25px;
  }
  
  .project-meta-wrapper {
    gap: 16px;
  }
  
  .back-arrow {
    margin: 15px 0 30px 0;
  }
  
  .project-showcase {
    margin: 30px 0 40px 0;
  }
  
  .section-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: #F6C84C;
  }
  
  .text-section-line {
    padding: 25px 20px 35px 20px;
  }
}

@media (max-width: 576px) {
  .custom-container {
    width: 95%;
  }
  
  .top-nav-project {
    padding: 30px 0;
  }
  
  .nav-links a {
    margin-right: 20px;
    font-size: 15px;
  }
  
  .heading-3 {
    font-size: 28px;
  }
  
  .back-arrow {
    margin: 0px;
  }
  
  .project-showcase {
    margin: 30px 0 40px 0;
  }
}

@media (max-width: 576px) {
  .text-section-line {
    background: #ffffff !important;
  }
}

@media (max-width: 576px) {
  .text-section-line {
    margin-bottom: 16px !important;
  }

  .content-section:first-of-type {
    padding-top: 24px;
  }
}
/* Header section overrides */
.text-section-line .heading-3,
.text-section-line .text-block-2,
.text-section-line .meta-title,
.text-section-line .meta-content {
  color: #333; /* or var(--primary-black-light) if you define one */
}


/* Content sections overrides */
.content-section .section-title,
.content-section .section-content {
  color: #EEE; /* or var(--primary-text-dark) */
}

.content-section .section-title {
  color: var(--accent-2);
}


.toc-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px; /* Increased bottom margin */
  color: #333;
  text-align: left;
}


:root {
  /* ===== SURFACES ===== */
  --bg: #181615;         /* page background (near-black, warm) */
  --surface: #221F1C;    /* card / sidebar */
  --surface-2: #26221F;  /* hover / raised */
  --border: #302C27;     /* border color */

  /* ===== TEXT ===== */
  --text-1: #F4F1EA;     /* primary text (warm off-white) */
  --text-2: #D8D2C7;     /* secondary text */
  --text-3: #A9A196;     /* tertiary text */

  /* ===== ACCENTS ===== */
  --accent-1: #F6C84C;   /* sunflower yellow */
  --accent-2: #69A9FF;   /* calm blue (links / CTAs) */
  --success: #77D17B;    /* green for success states */

  /* ===== EFFECTS ===== */
  --shadow: 0 12px 32px rgba(0, 0, 0, .45);
  --shadow-hover: 0 22px 48px rgba(0, 0, 0, .55);
  --overlay-bottom: linear-gradient(to top, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0));

  /* ===== TABLE OF CONTENTS ===== */
  --section-divider: rgba(255, 255, 255, 0.1);
  --toc-bg: #FFFFFF;
  --toc-border: rgba(0, 0, 0, 0.05);
  --toc-hover: rgba(0, 0, 0, 0.02);
  --toc-active: rgba(0, 71, 130, 0.15); /* light blue highlight */
  --toc-text: #575549;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --box-shadow-light: 0 2px 10px rgba(0, 0, 0, 0.03);

  /* ===== PROJECT HEADER ===== */
  --primary-black: #EEE;   /* replaces "primary-black" */
  --secondary-black: #EEE; /* replaces "secondary-black" */

  
}

/* Active state */
.toc-link.active {
  background-color: var(--toc-active);
  color: #004782;   /* higher contrast color */
}

/* ====== Base ====== */
body {
  font-family: 'Alte Haas Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: #171716; /* dark background */
  color: #eee;
  line-height: 1.5;
}
/* Custom container to standardize widths */
.custom-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

/* Desktop (≥ 992px) */
@media (min-width: 992px) {
  .custom-container { padding: 10px 40px; }
}

/* About button — base */
.about-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;                     /* space between text + arrow */
  border-radius: 6px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-1);         /* warm off-white */
  background: transparent;
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}

/* Hover state */
.about-btn:hover {
  color: var(--accent-2);       /* calm blue, matches footer hover */
  opacity: 1;                   /* keep crisp (no fade) */
  text-decoration: none;
}

/* Arrow animation */
.about-arrow {
  display: inline-block;
  font-size: 24px;
  padding: 0 2px;
  transition: transform .2s ease;
}

.about-btn:hover .about-arrow {
  transform: translate(2px, -2px);
}


.back-arrow:hover {
  opacity: 0.5;
  text-decoration: none;
  color: var(--accent-2);       /* calm blue, matches footer hover */
}

.content-section .section-title {
  color: var(--accent-2);
}

/* Active state */
.toc-link.active {
  background-color: var(--toc-active);
  color: #004782;   /* higher contrast color */
}

/* Arrow animation */
.about-arrow {
  display: inline-block;
  font-size: 24px;
  padding: 0 2px;
  transition: transform .2s ease;
}

.about-btn:hover .about-arrow {
  transform: translate(2px, -2px);
}

.modal-backdrop { display:none !important; pointer-events:none !important; }
