/* Critical CSS - Only styles needed for above-the-fold content */
:root {
  --cream: #f8f5f0;
  --light-beige: #eae6dd;
  --sand: #d5c9b5;
  --dark-sand: #c4b8a4;
  --copper: #a58577;
  --dark-copper: #957568;
  --charcoal: #212121;
  --light-charcoal: #5a5a5a;
  --white: #ffffff;
  --off-white: #faf8f5;
}

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

body {
  font-family: "Cormorant", serif;
  color: var(--charcoal);
  background-color: var(--cream);
  line-height: 1.6;
  font-size: 18px;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

html {
  overflow-x: hidden;
  width: 100%;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3%;
  width: 100%;
  box-sizing: border-box;
}

/* Header styles */
header {
  background-color: transparent;
  padding: 30px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  left: 0;
  right: 0;
}

header.scrolled {
  background-color: var(--white);
  padding: 15px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Italiana", serif;
  font-size: 1.4rem;
  color: var(--charcoal);
  text-decoration: none;
  transition: all 0.5s ease;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
  cursor: pointer;
  position: relative;
}

.logo:hover {
  color: var(--copper);
}

.logo::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--copper);
  transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.logo:hover::after {
  width: 100%;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 50px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.nav-menu li:nth-child(1) {
  animation-delay: 0.1s;
}

.nav-menu li:nth-child(2) {
  animation-delay: 0.2s;
}

.nav-menu li:nth-child(3) {
  animation-delay: 0.3s;
}

.nav-menu a {
  text-decoration: none;
  color: var(--charcoal);
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  position: relative;
  transition: all 0.5s ease;
}

.nav-menu a:hover {
  color: var(--copper);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  background-color: var(--copper);
  bottom: -5px;
  left: 0;
  transition: width 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-menu a:hover::after {
  width: 100%;
}

.book-button {
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--charcoal);
  background: transparent;
  border: 1px solid var(--copper);
  padding: 10px 20px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
  animation-delay: 0.4s;
}

.book-button:hover {
  background-color: var(--copper);
  color: var(--white);
}

.mobile-nav-toggle {
  display: none;
  cursor: pointer;
  color: var(--charcoal);
  font-size: 1.3rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
  animation-delay: 0.4s;
}

/* Hero section styles */
.hero {
  min-height: 100vh;
  padding-top: 170px;
  padding-bottom: 120px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background-color: var(--light-beige);
  z-index: 1;
}

.hero-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  width: 50%;
  padding-right: 5%;
}

.specialization {
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  padding-left: 60px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
  animation-delay: 0.3s;
}

.specialization::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 40px;
  height: 1px;
  background-color: var(--copper);
  transform: translateY(-50%);
}

.doctor-name {
  font-family: "Italiana", serif;
  font-size: 5.5rem;
  font-weight: 400;
  margin-bottom: 30px;
  line-height: 1;
  color: var(--charcoal);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
  animation-delay: 0.5s;
}

.doctor-name span {
  display: block;
  font-weight: 400;
  font-size: 6.5rem;
  color: var(--copper);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    background-color: var(--white);
    width: 100%;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    margin: 0 0 30px 0;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .book-button {
    display: none;
  }

  .hero::before {
    width: 100%;
    height: 50%;
    top: 50%;
  }

  .hero-container {
    flex-direction: column;
  }

  .hero-content,
  .hero-image {
    width: 100%;
  }

  .hero-content {
    margin-bottom: 60px;
    padding-right: 0;
  }
}
