html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

.panel {
  height: 100vh;
  width: 100vw;
  border: 1px solid #272727;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fade-group,
.panel img {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.panel.active img,
.panel.active .fade-group {
  opacity: 1;
}

.detail {
  min-width: 100vw;
  height: 100vh;
  padding-top: 100px;
  background-color: #FEDA00;
  border-left: 1px solid #272727;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

/* Mobile detail view scrolling */
@media (max-width: 768px) {
  .detail {
    height: auto;
    min-height: 100vh;
    align-items: flex-start;
    padding-top: 120px;
    padding-bottom: 60px;
  }
}

.home-project-image {
  width: 305px;
  height: 640px;
  padding-top: 100px;
}

/* Mobile spacing for project sections */
@media (max-width: 768px) {
  #section-2, #section-3, #section-4, #section-5 {
    padding: 40px 20px;
  }
  
  .home-project-image {
    padding-top: 0;
    width: 80%;
    max-width: 244px;
    height: auto;
  }
}

/* =========================
   DETAIL CONTENT LAYOUT
========================= */

.detail-content {
  width: 100%;
  max-width: 1200px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;

  color: #272727;

  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Mobile stack */
@media (max-width: 768px) {
  .detail-content {
    grid-template-columns: 1fr;
    padding: 40px 24px;
  }
}

.detail.show .detail-content {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   DETAIL 4 - FULL WIDTH CONTENT
========================= */

.detail-content-full {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
}

.detail-grid-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .detail-grid-row {
    grid-template-columns: 1fr;
  }
}

.detail-grid-item {
  width: 240px;
  height: 240px;
  background-color: #272727;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.detail-grid-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(39, 39, 39, 0.2);
}

.detail-grid-image {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .detail-grid-item {
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
  }
}

/* =========================
   LEFT COLUMN - WEB
========================= */

.detail-left-web {
  display: flex;
  flex-direction: column;
}


/* =========================
   LEFT COLUMN
========================= */

.detail-left {
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-image {
  width: 100%;
  max-width: 305px;
}

/* =========================
   RIGHT COLUMN
========================= */

.detail-right {
  display: flex;
  flex-direction: column;
}

/* H1 Title */
.detail-h1 {
  font-family: 'Inter', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  color: #272727;
}

/* Summary Text */
.detail-summary {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.7;
  color: #272727;
}

/* Spacer */
.detail-spacer {
  height: 40px;
}

.detail-spacer-web {
  height: 80px;
}

/* H2 Technologies Title */
.detail-h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #272727;
}

/* Technology List - 2 column grid */
.detail-tech-list-web {
  font-family: 'Inter', sans-serif;
  margin-bottom: 40px;
  font-size: 1rem;
  font-weight: 400;
  list-style: none;
  padding: 0;
}

.detail-tech-list-web li {
  position: relative;
  padding-left: 20px;
  color: #272727;
}

.detail-tech-list-web li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: #272727;
  font-size: 1.2em;
}

.detail-tech-list {
  font-family: 'Inter', sans-serif;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin-bottom: 40px;
  font-size: 1rem;
  font-weight: 400;
  list-style: none;
  padding: 0;
}

.detail-tech-list li {
  position: relative;
  padding-left: 20px;
  color: #272727;
}

.detail-tech-list li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: #272727;
  font-size: 1.2em;
}

/* =========================
   BUTTONS
========================= */

.detail-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.detail-btn {
  font-family: 'Inter', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.detail-btn-icon {
  height: 1em;
  width: auto;
  transition: filter 0.25s ease;
}

/* Primary Button - Dark background with yellow text */
.detail-btn-primary {
  background-color: #272727;
  color: #FEDA00;
  border: 2px solid #272727;
}

.detail-btn-primary:hover {
  background-color: #FEDA00;
  color: #272727;
  border: 2px solid #272727;
}

/* Secondary Button - Yellow background with dark text */
.detail-btn-secondary {
  background-color: #FEDA00;
  color: #272727;
  border: 2px solid #272727;
}

.detail-btn-secondary:hover {
  background-color: #272727;
  color: #FEDA00;
  border: 2px solid #272727;
}

#stickyNav {
  background-color: #FEDA00;
  border-bottom: 2px solid #272727;
}

/* Mobile nav spacing */
@media (max-width: 768px) {
  #stickyNav {
    padding-left: 20px;
    padding-right: 20px;
    justify-content: space-between;
    gap: 30px;
  }
  
  #stickyNav .flex {
    gap: 8px;
  }
  
  #stickyNav .nav-icon {
    width: 35px !important;
    height: 35px !important;
  }
}

.nav-disabled {
  opacity: 0.2;
  pointer-events: none;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 1px solid #ffffff;
  background-color: #272727;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.social-icon:hover {
  background-color: #FEDA00;
  border-color: #FEDA00;
}

.icon-img {
  height: 16px;
  width: auto;
}

#footer {
  background-color: #272727;
  color: #999999;
  border: 1px solid #272727;
}

/* Mobile footer spacing */
@media (max-width: 768px) {
  #footer {
    padding-bottom: 40px;
  }
}

/* Unvisited link */
#footer a:link {
  color: #FEDA00;
}

/* Visited link */
#footer a:visited {
  color: #FEDA00;
}

/* Mouse over link */
#footer a:hover {
  color: #FFFFFF;
}

/* Selected link (at the moment of click) */
#footer a:active {
  color: #FEDA00;
}

/* =========================
   SUPPORT PAGE STYLES
========================= */

.support-panel {
  min-height: 100vh;
  width: 100vw;
  background-color: #FEDA00;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 60px 60px 60px;
}

.support-title-top {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 40px;
}

.support-content {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  color: #272727;
}

.support-left,
.support-right {
  display: flex;
  flex-direction: column;
}

.support-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.support-link {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  color: #272727;
  text-decoration: underline;
  transition: opacity 0.25s ease;
}

.support-link:hover {
  opacity: 0.7;
}

/* Mobile support page */
@media (max-width: 768px) {
  .support-panel {
    padding: 120px 24px 40px 24px;
  }
  
  .support-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Mobile horizontal scroll container */
@media (max-width: 768px) {
  #horizontalScroll {
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
  
  #horizontalScroll .flex {
    flex-direction: column;
    height: auto;
  }
}
