/* Improved Hero Section CSS */

.hero .container {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-content {
  position: relative;
  color: white;
  padding: 6rem 5rem;
}

.content-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(0.5rem);
  border-left: 0.3rem solid var(--color-accent);
  z-index: -1;
}

.content-inner {
  position: relative;
  z-index: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-tag {
  display: inline-block;
  color: var(--color-accent);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-sm);
  position: relative;
}

.section-tag::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-accent);
}

.hero-title {
  font-size: 5.6rem;
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease;
}

.hero-title .highlight {
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(196, 154, 108, 0.3);
  z-index: -1;
}

.hero-description {
  font-size: 1.8rem;
  margin-bottom: 4rem;
  max-width: 50rem;
  animation: fadeInUp 1s ease 0.2s;
  animation-fill-mode: both;
}

.hero-buttons {
  display: flex;
  gap: 2rem;
  animation: fadeInUp 1s ease 0.4s;
  animation-fill-mode: both;
}

.hero-buttons .btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero-buttons .btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.7s;
  z-index: -1;
}

.hero-buttons .btn:hover::before {
  left: 100%;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  border: none;
  padding: 12px 28px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.5px;
  border-radius: var(--border-radius-sm);
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: var(--color-accent-dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-white);
  padding: 12px 28px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.5px;
  border-radius: var(--border-radius-sm);
  transition: background-color 0.3s, color 0.3s;
}

.btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-accent);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  animation: fadeInUp 1s ease 0.6s;
  animation-fill-mode: both;
}

.scroll-down {
  width: 4rem;
  height: 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.chevron {
  width: 2rem;
  height: 0.8rem;
  opacity: 0;
  transform: scale(0.5);
  animation: scroll-down 3s ease-out infinite;
}

.chevron:before,
.chevron:after {
  content: "";
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  background: var(--color-accent);
}

.chevron:before {
  left: 0;
  transform: skewY(30deg);
}

.chevron:after {
  right: 0;
  transform: skewY(-30deg);
}

.chevron:first-child {
  animation-delay: 0s;
}

.chevron:nth-child(2) {
  animation-delay: 0.3s;
}

.chevron:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes move-chevron {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }
  20% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  80% {
    opacity: 1;
    transform: translateY(20px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(30px) scale(0.5);
  }
}

/* Responsive styles */
@media (max-width: 992px) {
  .hero-content-wrapper {
    justify-content: center;
  }

  .hero-content {
    text-align: center;
    max-width: 700px;
  }

  .section-tag::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-content {
    padding: var(--spacing-md);
  }

  .hero-title {
    font-size: var(--font-size-3xl);
  }

  .hero-description {
    font-size: var(--font-size-base);
  }

  .hero-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .hero-buttons .btn {
    width: 100%;
  }
}

/* Updated Logo CSS to match the image more closely */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.logo:hover {
  color: var(--color-accent);
}

/* Logo Icon/House */
.logo-icon {
  position: relative;
  width: 44px;
  height: 34px;
  margin-right: 10px;
}

.logo-house {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.logo-house-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawLine 1.5s forwards;
}

/* Logo Text */
.logo-text-wrapper {
  position: relative;
}

.logo-text {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  letter-spacing: 0.05em;
  font-weight: var(--font-weight-regular);
  opacity: 0;
  animation: fadeIn 0.5s forwards 1s;
}

.logo-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(5px);
}

.logo-text span:nth-child(1) {
  animation: fadeUpChar 0.3s forwards 1.1s;
}
.logo-text span:nth-child(2) {
  animation: fadeUpChar 0.3s forwards 1.15s;
}
.logo-text span:nth-child(3) {
  animation: fadeUpChar 0.3s forwards 1.2s;
}
.logo-text span:nth-child(4) {
  animation: fadeUpChar 0.3s forwards 1.25s;
}
.logo-text span:nth-child(5) {
  animation: fadeUpChar 0.3s forwards 1.3s;
}
.logo-text span:nth-child(6) {
  animation: fadeUpChar 0.3s forwards 1.35s;
}
.logo-text span:nth-child(7) {
  animation: fadeUpChar 0.3s forwards 1.4s;
}
.logo-text span:nth-child(8) {
  animation: fadeUpChar 0.3s forwards 1.45s;
}
.logo-text span:nth-child(9) {
  animation: fadeUpChar 0.3s forwards 1.5s;
}
.logo-text span:nth-child(10) {
  animation: fadeUpChar 0.3s forwards 1.55s;
}
.logo-text span:nth-child(11) {
  animation: fadeUpChar 0.3s forwards 1.6s;
}
.logo-text span:nth-child(12) {
  animation: fadeUpChar 0.3s forwards 1.65s;
}
.logo-text span:nth-child(13) {
  animation: fadeUpChar 0.3s forwards 1.7s;
}

/* Underline element */
.logo-underline {
  position: absolute;
  width: 36px;
  height: 1px;
  background-color: currentColor;
  left: 60px;
  bottom: 3px;
  opacity: 0;
  animation: widthGrow 0.5s forwards 1.8s;
}

@keyframes widthGrow {
  from {
    opacity: 0;
    width: 0;
  }
  to {
    opacity: 1;
    width: 36px;
  }
}

.logo-subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  letter-spacing: 0.08em;
  position: absolute;
  bottom: 0;
  right: 0;
  transform: translateX(-10px);
  opacity: 0;
  animation: fadeIn 0.5s forwards 1.9s;
}

.logo-dot {
  position: relative;
  display: inline-block;
  margin-left: 2px;
  opacity: 0;
  animation: fadeIn 0.3s forwards 2.1s;
}

/* Logo animations */
@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes fadeUpChar {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dark theme adjustments */
[data-theme="dark"] .logo {
  color: var(--color-white);
}

[data-theme="dark"] .logo-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

/* Footer logo adjustments */
.footer-logo {
  color: var(--color-white);
}

.footer-logo .logo-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .logo-icon {
    width: 36px;
    height: 28px;
    margin-right: 8px;
  }

  .logo-text {
    font-size: var(--font-size-lg);
  }

  .logo-subtitle {
    font-size: var(--font-size-xs);
  }

  .logo-underline {
    width: 30px;
    left: 50px;
    bottom: 2px;
  }

  @keyframes widthGrow {
    from {
      opacity: 0;
      width: 0;
    }
    to {
      opacity: 1;
      width: 30px;
    }
  }
}

@keyframes scroll-down {
  0% {
    opacity: 0;
    transform: translate(0, -2rem) scale(0.5);
  }
  20% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  80% {
    opacity: 1;
    transform: translate(0, 1rem) scale(0.8);
  }
  100% {
    opacity: 0;
    transform: translate(0, 2rem) scale(0.5);
  }
}

@media (max-width: 768px) {
  .hero-content {
    padding: 4rem 3rem;
  }

  .hero-title {
    font-size: 4rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 3.2rem;
  }

  .hero-content {
    padding: 3rem 2rem;
  }
}

.updated-title {
  color: #e4e4e4;
}

.updated-description {
  color: #a0a0a0;
}
