:root {
  --bg-color: #0f0f0f;
  --text-main: #e0e0e0;
  --accent: #ffffff;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
}

body.light-mode {
  --bg-color: #f7f7f7;
  --text-main: #111111;
  --accent: #000000;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for mobile browsers */
  width: 100vw;
  overflow: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.6s ease, color 0.6s ease;
}

.nav-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3.5rem 4.5rem; 
  z-index: 10;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0;
  animation: fadeIn 1s ease-out 1.5s forwards;
}

.brand-small {
  font-weight: 600;
  opacity: 1;
}

.contact-link {
  color: var(--text-main);
  text-decoration: none;
  position: relative;
  padding-bottom: 6px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.contact-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--text-main);
  transition: width 0.4s var(--ease-premium);
}

.contact-link:hover::after {
  width: 100%;
}

.hero-section {
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for mobile browsers */
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
  z-index: 1;
}

.reveal-text {
  overflow: hidden;
  display: block;
}

.tagline {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-main);
  opacity: 1;
  margin-bottom: 2.5rem;
  font-weight: 600;
  transform: translateY(100%);
  animation: slideUp 1.2s var(--ease-premium) 0.1s forwards;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 11vw, 9.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 4rem;
  transform: translateY(100%);
  opacity: 0;
  animation: slideUp 1.2s var(--ease-premium) 0.3s forwards;
  transition: color 0.5s ease;
}

.status-text {
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-main);
  opacity: 1;
  margin-bottom: 6rem;
  transform: translateY(100%);
  opacity: 0;
  animation: slideUp 1.2s var(--ease-premium) 0.5s forwards;
}

.status-label {
  color: var(--text-main);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.highlight {
  color: var(--text-main);
  font-weight: 600;
  border-bottom: 1px solid var(--text-main);
}

.progress-line {
  width: 1px;
  height: 80px;
  background-color: var(--text-main);
  opacity: 0;
  margin: 0 auto;
  transform: translateY(100%);
  animation: slideUpLine 1.2s var(--ease-premium) 0.8s forwards;
  transition: background-color 0.5s ease;
}

.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 3.5rem; /* Increased padding */
  z-index: 10;
  font-size: 0.85rem;
  color: var(--text-main);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0;
  animation: fadeIn 1s ease-out 2s forwards;
}

.theme-toggle {
  position: absolute;
  bottom: 3.5rem;
  right: 4.5rem;
  z-index: 20;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 1s ease-out 2s forwards;
  transition: transform 0.3s ease, color 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
  opacity: 1;
}

.theme-toggle svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-moon {
  display: none;
}

.icon-sun {
  display: block;
}

body.light-mode .icon-moon {
  display: block;
}

body.light-mode .icon-sun {
  display: none;
}

@keyframes slideUp {
  from {
    transform: translateY(120%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideUpLine {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 0.5;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 0 1.5rem;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile browsers */
  }

  .nav-bar {
    padding: 1.5rem 1.5rem;
    font-size: 0.8rem;
  }

  .footer {
    padding: 1.5rem;
    font-size: 0.7rem;
  }

  .theme-toggle {
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .tagline {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    margin-bottom: 1.5rem;
  }

  .brand-name {
    margin-bottom: 2rem;
  }

  .status-text {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 3rem;
  }

  .progress-line {
    height: 50px;
    margin-top: 0.5rem;
  }
}
