:root {
  --bg-color: #050510;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-glow: rgba(255, 255, 255, 0.02);
  --accent: #fff;
  --vh: 1vh;
}

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

html {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
}
html::-webkit-scrollbar {
  display: none;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
}

a {
  color: var(--text-primary);
  text-decoration: none;
}

/* LENIS SETUP */
html.lenis {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* BACKGROUND VIDEO */
.bg-video-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
}
.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05); /* Slight scale to hide edges during parallax */
}
.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(5,5,16,0.3) 0%, #050510 100%);
}

/* GLASSMORPHISM UTILITIES */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 var(--glass-glow);
  border-radius: 16px;
}

/* NAVIGATION */
.glass-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  z-index: 100;
  padding: 15px 30px;
  transition: all 0.3s ease;
}
.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.5rem;
  letter-spacing: 2px;
}
.nav-links {
  display: flex;
  gap: 30px;
}
.nav-link {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: opacity 0.3s;
}
.nav-link:hover {
  opacity: 0.7;
}

/* MOBILE TOGGLE */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 101;
}
.mobile-toggle .bar {
  width: 24px;
  height: 1px;
  background-color: var(--text-primary);
  transition: 0.3s;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  border-radius: 0;
}
.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}
.mobile-menu a {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* LAYOUT & SECTIONS */
.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}
.section-title {
  font-size: 4rem;
  margin-bottom: 2rem;
  line-height: 1.1;
}

/* HERO */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-content {
  padding: 4rem 6rem;
  text-align: center;
}
.hero-title {
  font-size: 7vw;
  line-height: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.hero-title .indent {
  margin-left: 15vw;
  font-style: italic;
  color: var(--text-secondary);
}
.hero-subtitle {
  margin-top: 2rem;
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 300;
  letter-spacing: 1px;
}
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.line-down {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--text-primary), transparent);
}

/* ABOUT */
.about {
  padding: 15vh 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
  align-items: center;
}
.about-text {
  padding: 4rem;
}
.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
}
.about-image-wrapper {
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
}
.parallax-img {
  width: 100%;
  height: 130%; /* Extra height for parallax */
  object-fit: cover;
  will-change: transform;
}

/* WORK */
.work {
  padding: 15vh 0;
}
.projects {
  display: flex;
  flex-direction: column;
  gap: 20vh;
  margin-top: 10vh;
}
.project-item {
  display: grid;
  grid-template-columns: 60% 40%;
  align-items: center;
  position: relative;
}
.project-item.reverse {
  grid-template-columns: 40% 60%;
}
.project-img-wrapper {
  aspect-ratio: 16/9;
  overflow: hidden;
  z-index: 1;
}
.project-info {
  padding: 3rem;
  margin-left: -5vw;
  z-index: 2;
}
.project-item.reverse .project-info {
  margin-left: 0;
  margin-right: -5vw;
  grid-row: 1;
  grid-column: 1;
  text-align: right;
}
.project-item.reverse .project-img-wrapper {
  grid-column: 2;
}
.project-info h3 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.project-info p {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
}

/* CONTACT */
.contact {
  padding: 15vh 0;
}
.contact-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem;
  text-align: center;
}
.contact-desc {
  margin-bottom: 3rem;
  color: var(--text-secondary);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.input-group input, 
.input-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 1rem 1.5rem;
  color: var(--text-primary);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}
.input-group input:focus, 
.input-group textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
}
.glass-btn {
  background: var(--text-primary);
  color: var(--bg-color);
  border: none;
  padding: 1.2rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
}
.glass-btn:hover {
  transform: translateY(-2px);
  background: var(--text-secondary);
}
.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
}
.form-status.success {
  color: #4CAF50;
}
.form-status.error {
  color: #F44336;
}

/* FOOTER */
.glass-footer {
  padding: 2rem 5%;
  border-top: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.socials {
  display: flex;
  gap: 20px;
}
.socials a {
  color: var(--text-secondary);
  transition: color 0.3s;
}
.socials a:hover {
  color: var(--text-primary);
}

/* MOBILE RESPONSIVE (separate UI feel) */
@media screen and (max-width: 900px) {
  .nav-links {
    display: none; /* Hide desktop links */
  }
  .mobile-toggle {
    display: flex;
  }
  
  .hero-content {
    padding: 2rem;
    width: 90%;
  }
  .hero-title {
    font-size: 12vw;
  }
  .hero-title .indent {
    margin-left: 10vw;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-text {
    padding: 2rem;
    order: 2;
  }
  .about-image-wrapper {
    order: 1;
  }

  .project-item, .project-item.reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .project-item .project-img-wrapper,
  .project-item.reverse .project-img-wrapper {
    grid-column: 1;
    grid-row: 1;
  }
  .project-info, .project-item.reverse .project-info {
    margin: 0;
    padding: 2rem;
    grid-column: 1;
    grid-row: 2;
    text-align: left;
  }
  
  .contact-container {
    padding: 2rem 1.5rem;
  }
  .section-title {
    font-size: 2.5rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
