@import url('../../css/variable.css');

.intro-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
  overflow: hidden;
  /* Force GPU rendering for Edge compatibility */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.intro-modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: opacity, visibility;
}

.intro-modal.hidden .intro-modal-content {
  visibility: hidden;
}

.intro-modal-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  position: relative;
  z-index: 1;
}

.intro-tagline {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0;
  text-align: center;
  width: 100%;
  /* border: var(--debug); */
}

.intro-name-wrapper {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 400;
  letter-spacing: 0.15em;
}

.intro-letter {
  display: inline-block;
  color: var(--text-primary);
  overflow: hidden;
  white-space: nowrap;
  transition:
    opacity 0.4s ease-out,
    transform 0.4s ease-out,
    filter 0.4s ease-out,
    width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    margin 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fade out animation for U, A, A */
.intro-letter.to-remove.fading {
  opacity: 0;
  transform: translateY(-15px) scale(0.7);
  filter: blur(6px);
}

/* Responsive for intro modal */
@media (max-width: 768px) {
  .intro-name-wrapper {
    letter-spacing: 0.1em;
  }

  /* .intro-tagline {
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    letter-spacing: 0.15em;
    padding: 0 20px;
    text-align: center;
    border: var(--debug);
    width: 100%;
  } */
}

@media (max-width: 480px) {
  .intro-name-wrapper {
    font-size: 2.5rem;
    letter-spacing: 0.1em;
  }

  /* .intro-tagline {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
  } */
}

.navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: transparent;
  transition: background-color var(--transition-medium), box-shadow var(--transition-medium);
}

.navigation.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border-lighter);
}

.nav-cont {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  /* justify-content: space-between; */
  justify-content: center;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px
}

.nav-link {
  font-family: var(--font-syne);
  /* font-family: var(--font-serif); */
  /* font-size: 0.85rem; */
  font-weight: 400;
  letter-spacing: 0.1em;
  position: relative;
  color: var(--text-muted);
  /* color: var(--text-primary); */
  /* text-transform: uppercase; */
  /* padding: 5px 0; */
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: width var(--transition-medium), left var(--transition-medium);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform var(--transition-medium), opacity var(--transition-medium);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Placeholder Background - Replace with actual photo */
.placeholder-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    #f5f5f5 0%,
    #e8e8e8 25%,
    #f0f0f0 50%,
    #e5e5e5 75%,
    #f5f5f5 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* When you have an actual photo, use this instead:
.hero-bg {
  background-image: url('../images/your-hero-photo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
*/

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.3) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 20px;
}

.hero-name {
  /* font-family: var(--font-montserrat);
  font-size: clamp(3rem, 10vw, 12rem);
  font-weight: 900;
  letter-spacing: -0.1em; */
  /* position: relative; */


  font-family: var(--font-serif);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 3.5s;
}

.hero-tagline {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 3.8s;
}

.hero-signature {
  font-family: var(--font-amsterdam);
  /* font-size: clamp(0.5rem, 10vw, 4rem); */
  font-size: min(4rem, 4vw);
  font-weight: 300;
  color: var(--text-red);
  position: absolute;
  top: 30%;
  left: 20%;
  transform: rotate(-8deg);
  opacity: 0;
  animation: slant 1s ease forwards;
  animation-delay: 0.6s;
  z-index: 2;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }

}

@keyframes slant {
  from {
    opacity: 0;
    transform: translateY(20px) rotate(-8deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(-8deg);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 4.2s;
}

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

.scroll-text {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-arrow {
  color: var(--text-muted);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(8px);
  }
  60% {
    transform: translateY(4px);
  }
}

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-medium);
}

body.no-intro .hero-name,
body.no-intro .hero-tagline {
  opacity: 1;
  transform: none;
  animation: none;
}

body.no-intro .scroll-indicator {
  opacity: 1;
  transform: translateX(-50%);
  animation: none;
}

/* .feature {
  padding: 0;
  background: var(--bg-light);
} */

.feature-container {
  width: 100%;
  max-width: 100%;
  /* max-width: 1200px; */
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.feature-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
}

.feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* transition: transform 0.6s ease; */
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: grayscale(100%);
}


.feature-item:hover .feature-img {
  transform: scale(1.05);
  filter: grayscale(0%);
}
.feature-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

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

.feature-location {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.statement {
  padding: 120px 40px;
  /* background: var(--bg-cream); */
}

.statement-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.statement-text {
  font-family: var(--font-syne);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.social {
  padding: 80px 40px;
  text-align: center;
  background: var(--bg-light);
}

.social-container {
  max-width: 600px;
  margin: 0 auto;
}

.social-label {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.social-link {
  color: var(--text-secondary);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.social-link:hover {
  color: var(--text-primary);
  transform: translateY(-3px);
}

.social-link svg {
  width: 24px;
  height: 24px;
}

.footer {
  /* padding: 40px; */
  background: var(--bg-light);
  /* border-top: 1px solid var(--border-lighter); */
}

.footer-container {
  padding: 40px 0;
  border-top: 1px solid var(--border-lighter);
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-text {
  font-family: var(--font-syne);
  /* font-size: 0.85rem; */
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile Bottom Navigation - Hidden on Desktop */
.mobile-bottom-nav {
  display: none;
}

/* Floating Contact Button - Hidden on Desktop */
.contact-fab {
  display: none;
}

@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
    --section-padding: 60px;
  }

  /* Hide desktop navigation on mobile */
  .navigation {
    display: none;
  }

  /* Mobile Bottom Navigation */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-lighter);
    z-index: 1000;
    padding: 6px 0;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    justify-content: space-evenly;
    align-items: center;
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
    gap: 3px;
    min-width: 50px;
    flex: 1;
  }

  .mobile-nav-item svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
  }

  .mobile-nav-item span {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }

  .mobile-nav-item:hover,
  .mobile-nav-item.active {
    color: var(--text-primary);
  }

  .mobile-nav-item:hover svg,
  .mobile-nav-item.active svg {
    transform: scale(1.1);
  }

  .mobile-nav-item.active {
    color: var(--text-primary);
  }

  /* Floating Contact Button (FAB) */
  .contact-fab {
    display: flex;
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--text-primary);
    color: #fff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  }

  .contact-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  }

  .contact-fab svg {
    width: 24px;
    height: 24px;
  }

  /* Add padding at bottom for content to not be hidden by bottom nav */
  body {
    padding-bottom: 60px;
  }

  .hero-name {
    letter-spacing: 0.1em;
  }

  .hero-tagline {
    letter-spacing: 0.15em;
  }

  .scroll-indicator {
    bottom: 90px; /* Adjusted for bottom nav */
  }

  .section {
    padding: var(--section-padding) 20px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .feature-item {
    aspect-ratio: 16/9;
  }

  .feature-overlay {
    opacity: 1;
    padding: 15px;
  }

  .statement {
    padding: 80px 25px;
  }

  .statement-text {
    font-size: 1.15rem;
    line-height: 1.7;
  }

  .social {
    padding: 60px 25px;
  }

  .social-label {
    font-size: 0.75rem;
    margin-bottom: 20px;
  }

  .social-links {
    gap: 25px;
    flex-wrap: wrap;
  }

  .social-link svg {
    width: 22px;
    height: 22px;
  }

  /* Footer responsive for mobile */
  .footer-container {
    padding: 30px 20px;
  }

  .footer-text {
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) and (max-height: 700px) {
  .hero-name {
    margin-bottom: 12px;
  }

  .scroll-indicator {
    bottom: 76px;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 2.5rem;
  }

  .hero-tagline {
    font-size: 0.9rem;
  }

  .nav-logo {
    font-size: 1.3rem;
  }

  .footer-text {
    font-size: 0.75rem;
  }
}

  .hero {
    min-height: 100dvh;
    height: 100dvh;
  }

  .hero-content {
    width: 100%;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
