* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Noto Sans KR', sans-serif;
  color: #000;
  background-color: #fff;
}

/* Korean font styling */
:lang(ko) body, 
:lang(kr) body,
[lang="ko"] body,
[lang="kr"] body {
  font-family: 'Noto Sans KR', 'Inter', sans-serif;
}

img {
  user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 950px) {
  html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    scroll-padding-top: 6.5rem;
    scroll-padding-bottom: 7.5rem;
  }
}

/* ================================================== Navigation ======================================================== */

.logo-container {
  display: flex;
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 4rem;
  justify-content: center;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

navigation {
  list-style: none;
  display: flex;
  padding: 0.75rem 2rem;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  min-width: fit-content;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 2000;
  border-radius: 2rem;
  gap: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#nav-toggle {
  display: none;
  cursor: pointer;
  background: #000;
  color: #fff;
  width: 3rem;
  height: 1.5rem;
  border-radius: 1rem 1rem 0 0;
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  transition: all 0.3s;
}

@media screen and (max-width: 768px) {
  #nav-toggle {
    display: flex;
  }

  navigation {
    flex-direction: column;
    width: 90%;
    bottom: 2rem;
    padding: 1.5rem 1rem;
    gap: 1.25rem;
    border-radius: 1.5rem;
    align-items: center;
  }

  navigation.minimized {
    padding: 1rem;
    height: 3rem;
    justify-content: center;
  }

  navigation.minimized #nav-links,
  navigation.minimized .lang-switcher {
    display: none;
  }

  navigation.minimized::after {
    content: 'Menu';
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
  }

  #nav-links {
    flex-direction: column;
    width: 100%;
    gap: 1.25rem;
  }

  .lang-switcher {
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    display: flex;
    justify-content: center;
  }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 0 0;
}

img.logo {
  width: 10em;
}

#nav-links {
  display: flex;
  align-items: center;
  align-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-button {
  color: #000;
}

.nav-button:hover {
  transform: rotateX(360deg);
  transition: transform 0.4s ease-out;
}

#nav-cta {
  display: flex;
  padding: 0.75rem 1rem;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;

  border-radius: 0.75rem;
  background: #000;
}

#nav-cta:hover {
  transform: scale(1.03);
  transition: transform 0.3s ease-out;
}

#nav-cta a {
  color: #fff;
}

#nav-cta a:hover {
  transform: rotateX(360deg);
  transition: transform 0.4s ease-out;
}

.lang-switcher {
  display: flex;
  padding: 0.75rem 1rem;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

@media screen and (max-width: 500px) {
  .navbar a {
    float: none;
    display: block;
  }
}

/* ================================================== Footer ======================================================== */

footer {
  display: flex;
  padding: 3rem 4rem;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: #fff;
  scroll-snap-align: start;
}

#footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#footer-links a img {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
  opacity: 0.7;
  transition: all 0.3s ease;
}

#footer-links a:hover img {
  opacity: 1;
  transform: translateY(-2px);
}

@media (max-width: 950px) {
  footer {
    scroll-snap-align: end;
    padding: 3rem 1.5rem 8rem; /* Extra bottom padding for nav bar */
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    justify-content: center;
  }
  
  #footer-links {
    justify-content: center;
    gap: 1.25rem;
  }
}

/* ================================================== Typography ======================================================== */

h1 {
  font-size: 4rem;
  font-style: normal;
  font-weight: 700;
  line-height: 110%;
  /* 4.4rem */
  letter-spacing: -0.08rem;
}

h2 {
  font-size: 3.5rem;
  font-style: normal;
  font-weight: 700;
  line-height: 110%;
  /* 3.85rem */
  letter-spacing: -0.07rem;
}

h3 {
  font-size: 3rem;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  /* 3.6rem */
  letter-spacing: -0.06rem;
}

h4 {
  text-align: center;
  font-size: 2.25rem;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  /* 2.7rem */
  letter-spacing: -0.045rem;
}

h5 {
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 600;
  line-height: 120%;
  /* 1.8rem */
  letter-spacing: -0.03rem;
}

h6 {
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 600;
  line-height: 140%;
  /* 1.75rem */
  letter-spacing: -0.00625rem;
}

p {
  font-size: 1.125rem;
  font-style: normal;
  font-weight: 500;
  line-height: 145%;
  /* 1.63125rem */
  letter-spacing: -0.00563rem;
}

a {
  text-decoration: none;
  color: inherit;
}

navigation a {
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  line-height: 145%;
  /* 1.45rem */
  letter-spacing: -0.005rem;
}

#header-buttons {
  font-size: 1.125rem;
  font-style: normal;
  font-weight: 500;
  line-height: 145%;
  /* 1.63125rem */
  letter-spacing: -0.00563rem;
  text-align: center;
}

#hero-buttons {
  font-size: 1.125rem;
  font-style: normal;
  font-weight: 500;
  line-height: 145%;
  /* 1.63125rem */
  letter-spacing: -0.00563rem;
  text-align: left;

  display: flex;
  justify-content: flex-start;
  align-items: center;
  align-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;

  color: #fff;
  text-align: left;
}

.page-nav-item {
  color: #fff;
  text-align: center;
}

.portfolio-content p {
  color: rgba(0, 0, 0, 0.55);
}

#service-header h2 {
  color: rgba(0, 0, 0, 0.55);
}

#service-header p {
  color: rgba(0, 0, 0, 0.55);
}

/* ================================================== Buttons ======================================================== */

.button {
  display: flex;
  padding: 0.75rem 1rem;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;

  border-radius: 0.75rem;
  background: #fff;
  color: #000;
}

.button:hover {
  transform: scale(1.03);
  transition: transform 0.3s ease-out;
}

.outline-button {
  display: flex;
  padding: 0.75rem 1rem;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;

  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 1);
  color: #fff;
}

#hero-content #hero-buttons .button {
  background: #000;
  border: 1px solid rgb(0, 0, 0);
  color: #fff;
}

#hero-content #hero-buttons .outline-button {
  border: 1px solid #000;
  color: #000;
}

.outline-button:hover {
  transform: scale(1.03);
  transition: transform 0.3s ease-out;
}

.copied {
  background: #fff !important;
  color: #000 !important;
  border-color: #fff !important;
}

.copied a {
  color: #000 !important;
}

/* ================================================== Index.html ======================================================== */

.home-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #0f172a;
  box-sizing: border-box;
  padding-top: 6rem; /* Clearance for fixed logo-container */
  scroll-snap-align: start;
  flex-shrink: 0;
}

.layer {
  position: absolute;
  /* CRITICAL */
  top: 50%;
  left: 50%;
  width: 110%;
  height: auto;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.moving-layers {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  /* important */
  transition: transform 0.1s linear;
}

.home-hero-text {
  position: relative;
  z-index: 10;
  color: white;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
}


#header-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;

  color: #000;
  text-align: center;
}

#home-cards {
  height: 100vh;
  display: flex;
  flex-direction: row;
  padding: 7.5rem 4rem;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  box-sizing: border-box;
  scroll-snap-align: start;
  overflow-y: auto;
}

.home-card {
  display: flex;
  height: 30rem;
  flex-direction: column;

  align-items: flex-start;
  flex: 1 0 0;

  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.05);
}

.home-card .card-text {
  display: flex-row;
  padding: 2rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  align-self: stretch;
}

.home-card h6 {
  color: #000
}

.home-card p {
  color: rgba(0, 0, 0, 0.55);
}

.home-card img {
  max-width: fit-content;
  width: 15rem;
  align-self: center;
  /* border-radius: 2rem;
  border: 8px solid #fff;
  box-shadow: 0 0 4.4px 0 rgba(0, 0, 0, 0.06), 0 5px 19px 0 rgba(0, 0, 0, 0.08);
  mask-clip: fill-box; */
  /* mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%); */
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 0) 90%);
}

.home-card:nth-child(1) img {
  width: 18rem;
}

.home-card:nth-child(2) img {
  width: 22.5rem;
}

.home-card:hover {
  transform: scale(1.03);
  transition: transform 0.3s ease-out;

  img {
    mask-image: none;
    transition: mask-image 0.3s ease-out;
    transform: scale(1.1);
    transition: transform 0.3s ease-in-out;
  }
}

#home-faq {
  height: 100vh;
  display: flex;
  flex-direction: row;
  padding: 7.5rem 4rem;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  align-self: stretch;
  box-sizing: border-box;
  scroll-snap-align: start;
  overflow-y: auto;
}

#home-faq h1 {
  flex: 1 0 0;
  color: #000;
}

#faq-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  flex: 1 0 0;
}

.faq-item {
  display: flex;
  min-width: 20.25rem;
  padding: 1.5rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  align-self: stretch;
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.05);
}

/* ================================================== Home Page Responsive ======================================================== */

/* --- Tablet (max 950px) --- */
@media screen and (max-width: 950px) {
  .home-hero {
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .home-hero-text h1 {
    font-size: 2.75rem;
    padding: 0 1.5rem;
  }

  #home-cards {
    flex-direction: column;
    padding: 5rem 2rem;
    gap: 1.5rem;
    height: auto;
    min-height: 100vh;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .home-card {
    height: auto;
    width: 100%;
    flex-direction: row;
    align-items: center;
    padding: 1.25rem;
    gap: 1rem;
  }

  .home-card .card-text {
    flex: 1;
  }

  .home-card img {
    width: 8rem;
    flex-shrink: 0;
  }

  .home-card:nth-child(1) img {
    width: 9.6rem;
  }

  .home-card:nth-child(2) img {
    width: 12rem;
  }

  #home-faq {
    flex-direction: column;
    padding: 4rem 2rem;
    gap: 2rem;
    height: auto;
    min-height: 100vh;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  #home-faq h1 {
    flex: none;
  }

  .faq-item {
    min-width: unset;
  }
}

/* --- Mobile (max 600px) --- */
@media screen and (max-width: 600px) {
  .home-hero-text h1 {
    font-size: 2rem;
  }

  #home-cards {
    padding: 4rem 1.25rem;
    gap: 1rem;
  }

  .home-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
    gap: 0.5rem;
  }

  .home-card img {
    width: 100%;
    align-self: center;
  }

  #home-faq {
    padding: 3rem 1.25rem;
    gap: 1.5rem;
  }

  #home-faq h1 {
    font-size: 2.5rem;
  }

  .faq-item {
    padding: 1.25rem;
  }
}


/* ================================================== Portfolio.html ======================================================== */

#page-nav {
  display: flex;
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 1.5rem;
  flex-direction: column;
  z-index: 100;
}

.page-nav-item {
  display: flex;
  flex-direction: row-reverse;
  padding: 0rem 0.5rem;
  align-items: center;
}

.page-nav-item:hover {
  transform: scale(1.03);
  transition: transform 0.3s ease-out;

  img {
    transform: scale(1.15);
    transition: transform 0.3s ease-out;
  }

  p {
    color: #000;
  }
}

.page-nav-item img {
  width: 3rem;
  position: relative;
  right: -1.5rem;
}

.page-nav-item p {
  display: inline-block;
  color: rgba(0, 0, 0, 0.55);
  border-radius: 0.75rem;
  padding: 1em 1.25em 1em 2em;
  background: #fff;
  white-space: nowrap
}

.page-nav-item.active {
  transform: scale(1.05);
}

.page-nav-item.active img {
  transform: scale(1.2);
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.2));
}

.page-nav-item.active p {
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#page-nav-close {
  p {
    color: #000;
    background: none;
    border: 2px solid #000;
  }
}

@media screen and (max-width: 950px) {
  #page-nav {
    display: none;
  }
}

/* ================================================== Portfolio Enhancement ======================================================== */

.portfolio-content {
  display: contents;
}

.portfolio-section {
  display: flex !important;
  flex-direction: column !important;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: 100vh; /* Changed back to min-height to allow content expansion */
  padding: 8rem 4rem 4rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: flex-start;
  gap: 3rem;
  overflow: visible; 
}

.portfolio-header {
  flex-shrink: 0;
  margin-bottom: 2rem;
}

.gallery-grid, 
.slideshow-container, 
.server-year-group {
  width: 100%;
  height: auto;
  overflow: visible;
}


.server-year-group {
  margin-top: 3rem;
  width: 100%;
}

.year-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.1);
  width: fit-content;
  color: #333;
}


@media (max-width: 950px) {
  .portfolio-section {
    padding-bottom: 7.5rem;
    height: auto;
    min-height: 100vh;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
}

.portfolio-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.portfolio-header h3, .portfolio-header h4 {
  text-align: left;
}

.portfolio-header p {
  max-width: 600px;
  color: rgba(0, 0, 0, 0.6);
}

.portfolio-subcategory {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.4);
  margin: 2rem 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #f8f8f8;
  aspect-ratio: 16 / 9;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item.square {
  aspect-ratio: 1 / 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h6 {
  color: white;
  font-size: 1rem;
  margin: 0;
}

/* Masonry Layout */
.gallery-masonry {
  column-count: 3;
  column-gap: 1.5rem;
  padding: 0;
}

.masonry-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 1.5rem;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.masonry-item img {
  width: 100%;
  display: block;
}

.masonry-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

@media (max-width: 900px) {
  .gallery-masonry {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .gallery-masonry {
    column-count: 1;
  }
}

/* Video Slideshow Layout */
.video-slideshow {
  width: 100%;
  overflow: hidden;
  border-radius: 2rem;
  background: #000;
  padding: 2rem;
}

.slideshow-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 2rem;
  padding-bottom: 1rem;
}


.slide {
  flex: 0 0 70%;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #111;
  border-radius: 1.5rem;
  color: #fff;
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #222;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-weight: 700;
  border: 2px dashed #333;
}

.cosmetic-img {
  width: 100%;
  max-height: 45vh;
  object-fit: contain;
  border-radius: 1rem;
}

.slide h6 {
  color: #fff;
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .slide {
    flex: 0 0 90%;
  }
}

/* Tech category specific styling */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.tech-card {
  padding: 2rem;
  background: #000;
  color: #fff;
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-5px);
  background: #111;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.tech-card h5 {
  color: #fff;
}

.tech-card p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

.tech-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(255,255,255,0.15);
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: auto;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.tech-tags .tech-tag {
  margin-top: 0;
}

/* Legacy Portfolio Styles Removed - Replaced by Portfolio Enhancement */

/* ================================================== Media Queries ======================================================== */
/* body {
  background: #f2f2f2;
} */


/* <div class="container">
  <div class="img-section"></div>
  <div class="img-section"></div>
  <div class="img-section"></div>
  <div class="img-section"></div>
  <div class="img-section"></div>
</div> */
/* 
.container {
  display: flex;
  height: ~"calc(100vh - 100px)";
  max-width: 1400px;
  box-shadow: 0 0 25px rgba(0,0,0,.2);
  margin:50px;
  margin-left: auto;
  margin-right: auto;
}

.img-section {
  opacity:0.8;
  width:20%;
  background-size: cover;
  background-position: center;
  transition:0.5s cubic-bezier(0.235, 0.035, 0.000, 1.530);
  
  &:nth-of-type(1) {
    background-image: url(https://unsplash.it/800/880/?random);
  }
  &:nth-of-type(2) {
    background-image: url(https://unsplash.it/800/750/?random);
  }
  &:nth-of-type(3) {
    background-image: url(https://unsplash.it/800/900/?random);
  }
  &:nth-of-type(4) {
    background-image: url(https://unsplash.it/800/1000/?random);
  }
  &:nth-of-type(5) {
    background-image: url(https://unsplash.it/800/800/?random);
  }
  
  &:hover {
    width:40%; 
  }
} */


/* ================================================== Service.html ======================================================== */

#service-header {
  display: flex;
  padding: 7.5rem 4rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  align-self: stretch;
}

#headline {
  display: inline-flex;
  flex-direction: column;
  /* align-items: flex-start; */
  /* align-self: stretch; */
}

#work-process {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  align-self: stretch;
}

#process-steps {
  display: flex;
  justify-content: center;
  width: 72rem;
  align-items: flex-start;
  gap: 2rem;
}

.process-step {
  display: flex;
  min-width: 15rem;
  padding: 2em;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;

  border-radius: 2rem;
  border: 0.5px solid rgba(0, 0, 0, 0.10);
  background: #FFF;
  box-shadow: 0 0 4.4px 0 rgba(0, 0, 0, 0.06), 0 5px 19px 0 rgba(0, 0, 0, 0.08);

  img {
    width: 5rem;
  }
}

.process-step h4 {
  color: #000;
  white-space: nowrap
}

.process-step p {
  color: rgba(0, 0, 0, 0.55);
  white-space: nowrap
}

.process-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media screen and (max-width: 500px) {
  .process-steps {
    display: flex;
    padding: 3rem 1.5rem;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    align-self: stretch;
  }
}

#price {
  display: grid;
  padding: 7.5rem 4rem;
  row-gap: 2rem;
  column-gap: 2rem;
  align-self: stretch;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-card {
  display: flex;
  flex-direction: column;
  width: 25em;
  padding: 2rem;
  gap: 2rem;
  justify-self: center;
  justify-content: center;

  border-radius: 1rem;
  border: 0.5px solid rgba(0, 0, 0, 0.10);
  background: #FFF;
  box-shadow: 0 0 4.4px 0 rgba(0, 0, 0, 0.06), 0 5px 19px 0 rgba(0, 0, 0, 0.08);
}

.price-text {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  align-self: stretch;
}

.price-title p {
  color: rgba(0, 0, 0, 0.55);
}

.price-text p {
  color: rgba(0, 0, 0, 0.55);
}

.feature-list p {
  display: flex;
  gap: 0.75rem;
}

/* ================================================== Term.html ======================================================== */

#copyright {
  display: flex;
  padding: 7.5rem 15rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 3rem;
  align-self: stretch;

  h2 {
    color: #000;
    text-align: center;
    font-size: 2.25rem;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    /* 2.7rem */
    letter-spacing: -0.045rem;
  }
}

#cr-range {
  display: flex;
  min-width: 20.25rem;
  padding-top: 1.5rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  align-self: stretch;
}

#cr-dont {
  display: flex;
  min-width: 20.25rem;
  padding-top: 1.5rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  align-self: stretch;
}

/* ================================================== Contact.html ======================================================== */

.contact-snap-section {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center vertically */
  align-items: center;
  box-sizing: border-box;
  overflow-y: auto;
  padding: 8rem 4rem 4rem; /* Top padding for header, more bottom/side padding */
}

.contact-hero-section hero {
  padding-top: 0;
}

@media screen and (max-width: 950px) {
  .contact-snap-section {
    min-height: 100vh;
    padding: 8rem 1rem 6rem; /* Ensure header clearance and some breathing room */
    justify-content: center;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
}

hero {
  display: flex;
  padding: 0 4rem;
  justify-content: center;
  align-items: center;
  align-self: stretch;
}

#hero-content {
  display: flex;
  padding: 2.5rem 2rem;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  flex: 1 0 0;
}

#hero-content h1 {
  margin-bottom: 0.5rem;
}

#hero-content h6 {
  color: rgba(0, 0, 0, 0.55);
  max-width: 450px;
  font-weight: 500;
}

#hero-image {
  display: flex;
  width: 50%;
  max-width: 800px;
  justify-content: center;
  align-items: center;

  img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

@media screen and (max-width: 950px) {
  .contact-hero-section hero {
    padding: 2rem 0;
  }

  #hero-content {
    align-items: center;
    padding: 2rem 0;
  }

  #hero-content h1 {
    font-size: 3rem;
  }

  #hero-content h6 {
    max-width: 100%;
  }

  #hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
  }
}

/* New Contact Redesign Styles */
.grouped-section {
  display: flex;
  gap: 2rem;
  width: 100%;
  max-width: 1000px;
  align-items: stretch;
}

@media screen and (max-width: 950px) {
  .grouped-section {
    flex-direction: column;
    margin: 2rem auto;
  }
}

.status-card {
  flex: 1;
  text-align: center;
  padding: 2.5rem;
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.status-card.no-margin {
  margin: 0;
}

.status-open {
  color: #28a745;
  font-weight: bold;
}

.contact-guide-container {
  width: 100%;
  max-width: 1000px;
  padding: 0 2rem;
  margin: 0; /* Section handles centering */
}

.guide-intro {
  text-align: center;
  margin-bottom: 4rem;
}

.guide-intro p {
  color: #555;
  margin-top: 1rem;
}

.guide-section {
  margin-bottom: 4rem;
  background: #fff;
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.guide-section h3 {
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 1rem;
}

.req-section ul {
  list-style-type: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.warning-box {
  background: rgba(255, 193, 7, 0.1);
  border-left: 4px solid #ffc107;
  padding: 1.5rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin-top: 1.5rem;
}

.warning-box p {
  color: #856404;
  margin: 0;
}

.gui-image-container {
  text-align: center;
  margin-bottom: 2rem;
}

.gui-image-container img {
  max-width: 90%;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gui-tool {
  background: #fafafa;
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
}

.gui-tool-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

#gui-row-select {
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  border: 1px solid #ccc;
  font-size: 1rem;
  outline: none;
}

.download-btn {
  background: #000;
  color: #fff;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 0.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.download-btn:hover {
  background: #333;
  transform: translateY(-2px);
}

.process-section {
  flex: 2;
  margin-bottom: 0;
}

.process-section.no-shadow {
  box-shadow: none;
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.05);
}

.process-section h4 {
  text-align: center;
  border-bottom: none;
  margin-bottom: 2rem;
}

.process-steps-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  position: relative;
}

.process-step-item {
  flex: 1;
  text-align: center;
  min-width: 120px;
}

.step-circle {
  width: 40px;
  height: 40px;
  background: #000;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  font-weight: bold;
}

.refund-policy {
  background: rgba(220, 53, 69, 0.1);
  border-left: 4px solid #dc3545;
  padding: 1.5rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

.refund-policy p {
  color: #721c24;
  margin: 0;
}

@media screen and (max-width: 768px) {
  .guide-section {
    padding: 2rem 1.5rem;
  }
  
  .process-step-item {
    min-width: 45%;
    margin-bottom: 1rem;
  }
}

/* Deskop Grid for Requirements & Type A */
@media screen and (min-width: 951px) {
  .guide-grid.desktop-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
  }
  
  .guide-grid.desktop-row .guide-section {
    flex: 1;
    margin-bottom: 0;
    height: auto;
  }
}

#contact-help {
  display: flex;
  padding: 7.5rem 15rem;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  align-self: stretch;
}

.help-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  align-self: stretch;
}

.help-item {
  display: flex;
  /* max-width: 24.25rem; */
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  flex: 1 0 0;

  img {
    height: 30em;
    width: auto;
  }
}

.help-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  align-self: stretch;
}

/* ================================================== About Page ======================================================== */

#about-hero {
  display: flex;
  padding: 5rem 4rem;
  justify-content: space-between;
  align-items: center;
  background-color: #000;
  color: #fff;
  border-radius: 1rem;
  margin: 2rem 4rem;
}

#about-intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#about-intro h2 {
  color: #fff;
}

#about-intro p {
  color: rgba(255, 255, 255, 0.8);
}

#about-profile-img {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

#about-profile-img img {
  max-width: 450px;
  width: 100%;
  border-radius: 1rem;
}

#about-stats {
  display: flex;
  justify-content: space-around;
  padding: 4rem;
  background-color: rgba(0, 0, 0, 0.03);
  margin: 0 4rem;
  border-radius: 1rem;
}

#about-top-section,
#service-top-section {
  display: flex;
  flex-direction: column;
  padding-top: 6rem; /* Global clearance for fixed header */
}

.stat-item {
  text-align: center;
}

.stat-item h2 {
  color: #000;
  margin-bottom: 0.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 0 4rem;
  align-items: flex-start;
}

#about-details,
#about-tools,
#about-process,
#about-timeline {
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 0 4rem;
}



.about-grid #about-details,
.about-grid #about-tools {
  margin: 0;
  padding: 5rem 1rem;
}

.skills-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tag {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.25rem;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 2rem;
  font-weight: 600;
  white-space: nowrap;
  font-size: 0.95rem;
}

.tag-icon {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
}

.skills-group h5 {
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
  margin-top: 1rem;
}


.process-steps {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
}

.step-num {
  width: 3rem;
  height: 3rem;
  background: #000;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-weight: bold;
  font-size: 1.25rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 1.2rem;
  top: 0;
  height: 100%;
  width: 2px;
  background: rgba(0, 0, 0, 0.1);
}

.timeline-item {
  display: flex;
  gap: 2rem;
  position: relative;
}

.timeline-dot {
  width: 1rem;
  height: 1rem;
  background: #000;
  border-radius: 50%;
  margin-top: 0.25rem;
  margin-left: 0.8rem;
  z-index: 1;
}

.timeline-content {
  background: rgba(0, 0, 0, 0.03);
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  flex: 1;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 2rem;
  color: #000;
  font-weight: 500;
  transition: all 0.3s;
}

.social-btn img {
  width: 1.5rem;
  height: 1.5rem;
}

.social-btn:hover {
  background: #000;
  color: #fff;
}

.social-btn.icon-only {
  width: 5rem;
  height: 5rem;
  padding: 0;
  justify-content: center;
  border-radius: 1.25rem;
}

.social-btn.icon-only img {
  max-width: 60%;
  max-height: 60%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Responsive Design for About Page & Global layout */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@media screen and (max-width: 950px) {
  .about-grid {
    grid-template-columns: 1fr;
    margin: 0 2rem;
  }

  #about-hero,
  #about-stats,
  #about-details,
  #about-tools,
  #about-process,
  #about-timeline {
    padding: 3rem 2rem;
    margin: 1rem 2rem;
  }



  #about-hero {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  #about-profile-img {
    justify-content: center;
  }

  #hero-buttons {
    justify-content: center;
  }

  #about-stats {
    flex-direction: column;
    gap: 2rem;
  }

  .process-steps {
    flex-direction: column;
    gap: 3rem;
  }


}

@media screen and (max-width: 500px) {

  #about-hero,
  #about-stats,
  #about-details,
  #about-tools,
  #about-process,
  #about-timeline {
    padding: 2rem 1rem;
    margin: 1rem 1rem;
  }



  #about-intro h2 {
    font-size: 2.5rem;
  }

  .timeline-content {
    padding: 1rem;
  }
}

/* Specific fixes for mobile navigation overlap and tags */
.language-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
  margin-top: 1rem !important;
  white-space: normal !important;
}

.tag {
  white-space: nowrap !important;
}

#about-hero {
  padding-top: 120px !important;
  /* Clearance for fixed logo-container */
}

#about-tools h3 {
  margin-bottom: 2rem;
}

@media screen and (max-width: 500px) {

  /* Fix for fixed header overlap */
  body {
    padding-top: 40px;
  }

  .logo-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 1rem !important;
  }

  .language-tags {
    justify-content: center;
  }

  #about-details,
  #about-tools,
  #about-process,
  #about-timeline {
    text-align: center;
    align-items: center;
    padding: 3rem 1.5rem !important;
  }

  #home-socials {
    text-align: center;
    align-items: center;
    padding: 3rem 1.5rem !important;
  }
}

/* ================================================== Terms Tabs ======================================================== */
.tab-btn {
  background-color: transparent;
  color: rgba(0, 0, 0, 0.55);
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  text-align: center;
}

.tab-btn:hover {
  color: #000;
  background-color: rgba(0, 0, 0, 0.03);
  border-radius: 0.5rem 0.5rem 0 0;
}

.tab-btn.active {
  color: #000;
  border-bottom: 2px solid #000;
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s;
}

.tab-content.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}