:root {
  --primary: #c4471f;
  --dark: #333;
  --light: #f5f5f5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  overflow-x: hidden;
  background-color: #f9f9f9;
  background-image: 
    linear-gradient(135deg, rgba(196, 71, 31, 0.03) 25%, transparent 25%),
    linear-gradient(225deg, rgba(196, 71, 31, 0.03) 25%, transparent 25%),
    linear-gradient(45deg, rgba(196, 71, 31, 0.03) 25%, transparent 25%),
    linear-gradient(315deg, rgba(196, 71, 31, 0.03) 25%, transparent 25%);
  background-position: 40px 0, 40px 0, 0 0, 0 0;
  background-size: 80px 80px;
  background-repeat: repeat;
  animation: gradientShift 60s linear infinite;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

main, nav {
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

main:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.news-list li, .attractions-list li, .contact-page, .gallery-item {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-list li:hover, .attractions-list li:hover {
  transform: translateX(10px) translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.95);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

@keyframes gradientShift {
  0% {
    background-position: 40px 0, 40px 0, 0 0, 0 0;
  }
  100% {
    background-position: 240px 200px, 240px 200px, 200px 200px, 200px 200px;
  }
}

/* Header */
header {
  background-image: url('pano6.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  height: 300px;
  color: white;
  margin-bottom: 2rem;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
    rgba(196, 71, 31, 0.9) 0%,
    rgba(196, 71, 31, 0.7) 35%,
    rgba(51, 51, 51, 0.6) 100%);
  z-index: 1;
  transition: opacity 0.3s ease;
}

header:hover::before {
  opacity: 0.8;
}

@media (min-width: 769px) {
  header {
    animation: subtle-zoom 20s infinite alternate;
  }
}

@keyframes subtle-zoom {
  from {
    background-size: 100%;
  }
  to {
    background-size: 110%;
  }
}

header .container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

header h1 {
  text-align: center;
  font-size: 3.5rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInTitle 1.5s ease-out;
}

header h1::after {
  content: '';
  display: block;
  width: 150px;
  height: 4px;
  background: rgba(255, 255, 255, 0.8);
  margin: 15px auto 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: expandLine 1s ease-out;
}

@keyframes fadeInTitle {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes expandLine {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 150px;
    opacity: 1;
  }
}

/* Navigation */
nav {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  margin: 1rem 0;
  position: relative;
  overflow: hidden;
}

nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

nav:hover::before {
  left: 100%;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

nav a {
  color: var(--dark);
  text-decoration: none;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

nav a i {
  margin-right: 0.5rem;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

nav a:hover {
  color: var(--primary);
  background: rgba(196, 71, 31, 0.1);
  border-radius: 4px;
}

nav a:hover i {
  transform: translateY(-2px);
}

nav li.active a {
  color: var(--primary);
  background: rgba(196, 71, 31, 0.05);
}

/* Main Content */
main {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
}

main h2 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
}

/* News List */
.news-list li {
  background: var(--light);
  margin-bottom: 1rem;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.news-list h3 {
  color: var(--primary);
  margin: 0.5rem 0;
  font-size: 1.2rem;
}

.news-list i {
  color: var(--primary);
  margin-right: 0.5rem;
}

.news-date {
  color: #666;
  font-weight: 500;
}

/* Attractions List */
.attractions-list {
  list-style: none;
  padding: 0;
}

.attractions-list li {
  background: var(--light);
  margin-bottom: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
  font-size: 1.1rem;
}

.attractions-list i {
  color: var(--primary);
  margin-right: 1rem;
  width: 20px;
  text-align: center;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  padding: 20px 0;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero Image */
.hero-image {
  margin: -2rem -2rem 2rem -2rem;
  max-height: 400px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* City Description */
.city-description p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: #444;
}

/* Contact Page */
.contact-page {
  background: var(--light);
  padding: 2rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.contact-page h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.contact-page .contact-info {
  margin-left: 1rem;
}

.contact-page p {
  margin: 1rem 0;
  font-size: 1.1rem;
}

.contact-page i {
  color: var(--primary);
  width: 25px;
  margin-right: 0.5rem;
}

.work-hours {
  margin-left: 2.5rem;
  color: #666;
}

/* Footer */
footer {
  background: linear-gradient(135deg,
    rgba(196, 71, 31, 0.9),
    rgba(51, 51, 51, 0.95));
  color: white;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M321.39 56.44c58-10.79 114.16-30.13 172-41.86 82.39-16.72 168.19-17.73 250.45-.39C823.78 31 906.67 72 985.66 92.83c70.05 18.48 146.53 26.09 214.34 3V0H0v27.35a600.21 600.21 0 00321.39 29.09z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-size: cover;
  transform: translateY(-100%);
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(196, 71, 31, 0.3) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  position: relative;
  z-index: 1;
  padding: 0 2rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-section.center {
  align-items: center;
}

.footer-section.right {
  align-items: flex-end;
}

footer h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

footer h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.footer-contact p {
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact i {
  width: 20px;
  color: var(--primary);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

.footer-nav a {
  color: white;
  text-decoration: none;
  padding: 0.3rem 1rem;
  transition: all 0.3s ease;
  opacity: 0.8;
  border-radius: 4px;
}

.footer-nav a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: flex-end;
}

.social-links a {
  color: white;
  font-size: 2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  opacity: 0.8;
  position: relative;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}

.social-links a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  opacity: 1;
  transform: translateY(-3px);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.social-links a:hover::before {
  width: 40px;
  height: 40px;
}

@keyframes glow {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
  100% { filter: brightness(1); }
}

.social-links a:hover i {
  animation: glow 2s infinite;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  grid-column: 1 / -1;
  position: relative;
  margin: 2rem -20px 0;
  padding: 3rem 20px 2rem;
  background: rgba(0, 0, 0, 0.2);
}

.footer-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
}

.footer-links {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.footer-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-links a:hover::before {
  transform: translateX(0);
}

@keyframes wave {
  0%, 100% {
    transform: translateY(-100%) translateX(-5%);
  }
  50% {
    transform: translateY(-100%) translateX(5%);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

footer::before {
  animation: wave 10s ease-in-out infinite;
}

.social-links a {
  animation: float 3s ease-in-out infinite;
}

.social-links a:nth-child(2) {
  animation-delay: 0.2s;
}

.social-links a:nth-child(3) {
  animation-delay: 0.4s;
}

.social-links a:hover {
  animation-play-state: paused;
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    height: 200px;
    background-attachment: scroll;
  }

  header h1 {
    font-size: 2rem;
    padding: 0 1rem;
  }

  header h1::after {
    width: 100px;
    height: 3px;
    margin: 10px auto 0;
  }

  nav ul {
    flex-direction: column;
  }

  nav a {
    text-align: center;
    border-bottom: 1px solid var(--light);
  }

  nav li:last-child a {
    border: none;
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}
