/* ───────────────────────────────────────────────────────────────────────── */
/* 1) CSS Variables                                                           */
/* ───────────────────────────────────────────────────────────────────────── */
:root {
  --gold:    #d4af37;
  --dark:    #0a0a0a;
  --silver:  #D9D9D9;
  --emerald: #00c18c;
  --font-n:  'Nunito', sans-serif;
  --font-c:  'Crimson Text', serif;
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 2) Resets & Global Styles                                                  */
/* ───────────────────────────────────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-n);
  background: var(--dark);
  color: var(--silver);
  line-height: 1.6;
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 3) Main Layout & Container                                                  */
/* ───────────────────────────────────────────────────────────────────────── */
.main-container {
  position: relative;
  z-index: 10;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 0 20px;
  background: transparent;
}

@media (max-width: 1440px) {
  .main-container {
    padding: 0 2rem 20px;
  }
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 4) Header & Navigation                                                      */
/* ───────────────────────────────────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.5rem 1rem 2rem;
  background: rgba(0, 0, 0, 0.568);
  position: sticky;
  top: 0;
  z-index: 100;
}

.vault-link {
  font-family: var(--font-c);
  color: var(--emerald);
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: none;
}
.vault-link:hover {
  color: var(--silver);
  text-shadow: 0 0 8px var(--emerald);
}

.site-nav {
  display: flex;
}
.site-nav a {
  margin-left: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--emerald);
  text-shadow: 0 0 10px var(--silver);
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 5) Language Switcher                                                        */
/* ───────────────────────────────────────────────────────────────────────── */
.lang-switcher {
  position: relative;
  display: inline-block;
  margin-left: 1.2rem;
}

.lang-current {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 1.1rem;
  z-index: 200;
}
.lang-current .flag-icon {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.lang-list {
  position: absolute;
  right: 10px;
  list-style: none;
  border-radius: 0.5rem;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
}
.lang-switcher:hover .lang-list,
.lang-switcher:focus-within .lang-list {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.lang-list li {
  margin: 0;
}
.lang-list a {
  display: flex;
  align-items: center;
  padding: 0.25rem 0;
}
.lang-list .flag-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 6) Hero Section                                                             */
/* ───────────────────────────────────────────────────────────────────────── */
.hero-section {
  display: flex;
  align-items: flex-start;
  gap: 4rem;
  padding: 0 0 4rem 4rem;
  margin-bottom: 4rem;
  position: relative;
  z-index: 10;
  background: transparent;
  min-height: 100vh;
}

.hero-text {
  flex: 1;
  color: var(--gold);
  padding-top: 4rem;
}
.hero-text .role {
  font-size: 1.2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero-text h1 {
  font-size: 3rem;
  margin: 1rem 0;
  min-width: 350px;
}
.hero-text .tagline {
  color: var(--silver);
  width: 80%;
  max-width: 600px;
  line-height: 1.5;
}
.hero-text a{
  color: var(--emerald);
  text-decoration: none;
  font-weight: bold;
}
.hero-image {
  flex: 0 0 clamp(370px, 37%, 500px);
  width: 300px;
  overflow: hidden;
}
.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 7) About & Projects Sections                                                 */
/* ───────────────────────────────────────────────────────────────────────── */
.about-section h2,
.projects-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: inline;
  padding-left: 6rem;
  text-decoration: underline;
  text-underline-offset: 15px;
  text-decoration-thickness: 3px;
}
.about-section h2 {
  color: var(--gold);
  text-decoration-color: var(--silver);
}
.about-section p{
  margin: 1rem 0;
}
.about-section a{
  color: var(--emerald);
  text-decoration: none;
  font-weight: bold;
  font-family: var(--font-c);
}
.about-section a:hover{
  color: var(--gold);
}
.about-section li{
  margin: 0.5rem 2rem;
}
.projects-section h2 {
  color: var(--silver);
  text-decoration-color: var(--gold);
}

.section-box {
  width: 90%;
  max-width: 1200px;
  margin: 2rem 4rem 5rem;
  border-radius: 2rem;
  overflow: hidden;
  background-clip: padding-box;
}
.about-section .section-box {
  height: auto;
  border: 4px solid var(--gold);
  background: rgba(10, 10, 10, 0.8);
  padding: 2rem;
  border-radius: 1rem;
}
.projects-section .section-box {
  height: 50vh;
  max-height: 600px;
  border: 4px solid var(--silver);
  background: url("../img/panel_background.png") no-repeat center/cover;
  position: relative;
}

.project-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 8) Projects Carousel                                                         */
/* ───────────────────────────────────────────────────────────────────────── */
.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  overflow: visible;
  perspective: 10000px;
}
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  transform-style: preserve-3d;
}
.project-card {
  position: absolute;
  flex: 0 1 300px;
  aspect-ratio: 3 / 2;
  height: 70%;
  background: #222;
  border: 2px solid var(--dark);
  border-radius: 1rem;
  box-shadow: 0 1px 7px var(--emerald);
  color: var(--gold);
  backface-visibility: hidden;
  transition: transform 1s ease-in-out;
  transform-origin: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-image {
  width: 100%;
  height: 60%;
  object-fit: cover;
  border-radius: 0.8rem 0.8rem 0 0;
  transition: transform 0.3s ease;
}

.project-content {
  padding: 1rem;
  height: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.project-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--gold);
}

.project-content p {
  font-size: 0.9rem;
  color: var(--silver);
  line-height: 1.4;
}

/* Hover effect for project cards */
.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-card:hover {
  box-shadow: 0 6px 12px var(--emerald);
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 9) Contact Section                                                           */
/* ───────────────────────────────────────────────────────────────────────── */
.contact-section {
  padding: 2rem 4rem 0;
  margin-bottom: 0;
  position: relative;
  z-index: 10;
}
.contact-section .section-box {
  margin-left: 0;
  padding: 5px;
  height: auto;
  border-radius: 0;
}
.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 500px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  color: var(--silver);
}
.contact-form input,
.contact-form textarea {
  margin-top: 0.5rem;
  padding: 0.75rem;
  border: 2px solid var(--gold);
  border-radius: 0.5rem;
  background: rgba(10, 10, 10, 0.8);
  color: var(--silver);
}
.contact-form button {
  padding: 0.75rem 1.5rem;
  background: var(--gold);
  border: none;
  border-radius: 0.5rem;
  color: var(--dark);
  font-weight: bold;
  cursor: pointer;
  justify-self: end;
}
.contact-form button:hover {
  background: var(--gold);
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 10) Social Links & Footer                                                    */
/* ───────────────────────────────────────────────────────────────────────── */
.social-links {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  margin: 2rem;
}
.social-links img {
  width: 32px;
  height: auto;
}

.footer-credit {
  text-align: center;
  margin-top: 4rem;
  color: var(--silver);
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 11) Parallax Enhancements                                                     */
/* ───────────────────────────────────────────────────────────────────────── */
.parallax-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
}
.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  will-change: transform;
}
.parallax-layer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#sora-layer { z-index: 1; }
#tairona-layer {
  z-index: 2;
  top: 70vh;
  left: 140px;
  height: 145vh;
}
#tairona-layer img {
  object-fit: contain;
  object-position: top center;
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 12) Responsive Media Queries                                                 */
/* ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
  }
  .hero-image {
    margin-top: 2rem;
  }
  .site-header {
    flex-direction: column;
    align-items: center;
  }
  .site-nav {
    margin-top: 1rem;
  }
}
.bottom-indicator{
    position: absolute;
    bottom: 0;
    right: 0px;
    display: flex;
    z-index: 10;
    margin: 0 32px;
}
.bottom-indicator img{
  width: 100%;
  /* height: 100%; */
}
