/* Modern CSS Reset & Variables */
:root {
  --color-bg: #ededed;
  --color-heading: #3c5e49; /* Mossy Green */
  --color-accent: #aabcb6;  /* Sage Green */
  --color-accent-hover: #8f9f99;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-brown: #765341;   /* Social Icons Brown */
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Linear Progress Bar at top */
.progress-bar-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.progress-bar-fill {
  height: 100%;
  width: 100%;
  background-color: var(--color-accent);
  transform-origin: left;
  transform: scaleX(1);
  transition: transform 0.1s linear;
}

/* Layout for Full Screen Background */
.page-container {
  position: relative;
  min-height: 100vh;
  width: 100%;
}

/* Background Container spanning full viewport */
.bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
  background-color: var(--color-bg);
}

.bg-dog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom; /* Horizontally centers the dog in the viewport */
  opacity: 0;
  z-index: 1;
  animation: fadeInImage 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.2s forwards;
}

/* Content Column overlaying background */
.content-section {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 4rem 3rem 6rem;
  z-index: 10;
  position: relative;
  min-height: 100vh;
  width: 55%; /* Occupy left side on desktop to not cover the dog */
  background: transparent;
}

.header {
  margin-bottom: 2rem;
}
.logo {
  height: 90px;
  width: auto;
  transition: var(--transition-smooth);
}
.logo:hover {
  transform: scale(1.02);
}

.announcement-card {
  max-width: 580px;
  margin: auto 0;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUpFade 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #ffffff;
  background-color: var(--color-accent);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 10px rgba(170, 188, 182, 0.2);
}

.main-heading {
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 800;
  color: var(--color-heading);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

.description strong {
  color: var(--color-text);
  font-weight: 600;
}

/* Redirection Counter Style */
.redirect-info {
  background-color: rgba(255, 255, 255, 0.6); /* Slightly more opaque overlay */
  border-left: 3px solid var(--color-accent);
  padding: 0.8rem 1.2rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 2.5rem;
  width: fit-content;
}

.timer-text {
  font-size: 0.95rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.countdown-wrapper {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--color-bg);
  border-radius: 4px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.countdown-number {
  font-family: var(--font-heading);
  color: var(--color-heading);
  font-size: 1.1rem;
  font-weight: 700;
  display: inline-block;
}

.countdown-number.tick {
  animation: pulseScale 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* CTA Button */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--color-accent);
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 1.1rem 2.2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(170, 188, 182, 0.3);
  transition: var(--transition-smooth);
}

.cta-button:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(170, 188, 182, 0.4);
}

.cta-button:active {
  transform: translateY(0);
}

.arrow-icon {
  transition: transform 0.3s ease;
}

.cta-button:hover .arrow-icon {
  transform: translateX(4px);
}

/* Footer Section */
.footer-left {
  position: absolute;
  bottom: 3rem;
  left: 6rem;
  font-size: 0.8rem;
  color: #999999;
  z-index: 10;
}

/* Social Media Section */
.social-links {
  position: absolute;
  bottom: 3rem;
  right: 4rem;
  display: flex;
  gap: 1.2rem;
  z-index: 10;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--color-brown);
  color: var(--color-brown);
  background-color: transparent;
  transition: var(--transition-smooth);
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.social-icon:hover {
  background-color: var(--color-brown);
  color: #ffffff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 4px 12px rgba(118, 83, 65, 0.3);
}

/* --- ANIMATIONS --- */
@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulseScale {
  0% {
    transform: scale(1.3);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* --- RESPONSIVE DESIGN --- */

/* For medium desktop screens where space is tighter, offset the dog to the right side */
@media (min-width: 1024px) and (max-width: 1450px) {
  .bg-dog-image {
    object-position: 30% bottom;
  }
}

/* For smaller screens and tablets (Max 1024px) */
@media (max-width: 1024px) {
  .content-section {
    padding: 3rem 2.5rem;
    min-height: 100vh;
    width: 100%;
    justify-content: space-between;
  }

  .announcement-card {
    margin: 4rem 0;
    max-width: 100%;
    background: rgba(237, 237, 237, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  }

  .main-heading {
    font-size: 3rem;
  }

  .bg-dog-image {
    object-position: center bottom; /* Center the dog image on tablet and below */
    opacity: 0.25; /* Faded significantly to support background reading */
  }

  .social-links {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 3rem;
    justify-content: center;
    width: 100%;
  }
  
  .footer-left {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 1.5rem;
    margin-bottom: 3rem;
    text-align: center;
    width: 100%;
    z-index: 10;
  }
}

/* Mobile specific styling (Max 480px) */
@media (max-width: 480px) {
  .content-section {
    padding: 2rem 1.5rem;
  }

  .announcement-card {
    padding: 1.5rem;
    margin: 2rem 0;
  }

  .main-heading {
    font-size: 2.2rem;
  }

  .description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .redirect-info {
    margin-bottom: 2rem;
  }

  .cta-button {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
  }
  
  .bg-dog-image {
    opacity: 0.15; /* More faded on small phones for readability */
  }

  .social-links {
    margin-top: 2rem;
  }
  
  .footer-left {
    margin-top: 1.2rem;
    margin-bottom: 2rem;
  }
}
