/* Modern Color Scheme & Base Styles */
:root {
  --primary: #6a00f4;
  --secondary: #0084f4;
  --dark: #f8f9ff;
  --light: #0a0a14;
  --accent: #ff3e82;
  --glass: rgba(10, 10, 20, 0.08);
  --text-primary: #0a0a14;
  --text-secondary: rgba(10, 10, 20, 0.8);
  --bg-primary: #f8f9ff;
  --bg-secondary: #e6e9ff;
  --border-color: rgba(10, 10, 20, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Futuristic Header with Scroll Animation */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 5%;
  position: fixed;
  width: 100%;
  height: 80px;
  z-index: 100;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transform: translateY(0);
  transition: transform 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

header.hidden {
  transform: translateY(-100%);
}

header.scrolled {
  padding: 0.8rem 5%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.logo {
  font-size: 0.6rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
  transition: all 0.3s ease;
}

nav a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--secondary);
  transition: width 0.3s ease;
}

nav a:hover:after {
  width: 100%;
}

nav a.active {
  color: var(--secondary);
}

nav a.active:after {
  width: 100%;
}
.logoHeader > img {
  height: 100%;
}
.gerbHeader > img {
  height: 100%;
}
.news-grid > a {
  text-decoration: none;
  color: auto;
}
.authorName {
  width: 100%;
  text-align: center;
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
}
/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 101;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  color: var(--secondary);
}
/* Root Variables for Theme */
:root {
  --bg-light: #f9fafc;
  --bg-gradient: linear-gradient(135deg, #fdfdfe, #dbe3ff);
  --primary-text: #1e293b;
  --card-bg: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.544);
  --radius: 16px;
  --transition: all 0.3s ease-in-out;
  --padding: clamp(1rem, 2vw, 2rem);
  --font-size: clamp(1.3rem, 1.1vw, 1.2rem);
}

main {
  width: 100%;
}
main > .outer {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}
main > .outer > .img {
  width: 70%;
  aspect-ratio: 16 / 7;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
main > .outer > .img > img {
  position: absolute;
  width: 100%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

main > .outer > .text {
  width: 80%;
  overflow: hidden;
  position: relative;
  text-align: justify;
}
.outerText {
  width: 100%;
  margin: 20px 0;
  padding-right: 10%;
  display: flex;
  justify-content: end;
  align-items: center;
}
.aboutText {
  width: fit-content;
  text-align: start;
}

@media screen and (max-width: 700px) {
  main > .outer > .img {
    width: 100%;
    aspect-ratio: 16 / 7;
    border-radius: 0;
    overflow: hidden;
    position: relative;
  }

  main > .outer > .text {
    width: 90%;
    overflow: hidden;
    position: relative;
    text-align: justify;
  }
}

/* Advanced Footer */
footer {
  margin-top: 10px;
  padding: 4rem 5% 2rem;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(
      rgba(254, 254, 254, 0.69),
      rgba(255, 255, 255, 0.74)
    ),
    url(../lib/img/indexImg/muzey_2.JPG);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://i.imgur.com/JQ9p6dW.png") center/cover no-repeat;
  opacity: 0.03;
  z-index: 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.footer-column {
  flex: 1;
  min-width: 250px;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  display: inline-block;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-about {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-contact {
  margin-top: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.contact-item i {
  margin-right: 1rem;
  color: var(--secondary);
  width: 20px;
  text-align: center;
}

.footer-links h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links h3::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--secondary);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

.footer-newsletter p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  margin-bottom: 1.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  background: var(--glass);
  color: var(--text-primary);
  border-radius: 50px 0 0 50px;
  outline: none;
}

.newsletter-form button {
  padding: 0 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 0 50px 50px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background: var(--secondary);
}

.social-links {
  display: flex;
  gap: 1rem;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

/* Responsive Styles */
@media (min-width: 992px) {
  .logo {
    font-size: 1.1rem;
  }
  .logoHeader > img {
    height: 150%;
  }
  .gerbHeader > img {
    height: 150%;
  }
  .floating-museum-img {
    display: block;
  }

  .museum-container {
    flex-direction: row;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem 5%;
  }

  nav ul {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: left 0.3s ease;
    z-index: 99;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
  }

  nav ul.active {
    left: 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .museum-content p {
    max-width: 100%;
  }

  .floating-museum {
    padding-top: 200px;
    background: var(--bg-primary);
    height: fit-content;
    flex-direction: column-reverse;
  }

  .floating-museum-img {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    margin-top: 2rem;
    animation: fadeInUp 1s ease 0.6s forwards, float 6s ease-in-out 2s infinite;
  }
}

@media (max-width: 480px) {
  .section-title:after {
    width: 100%;
  }

  .footer-column {
    min-width: 100%;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    border-radius: 50px;
    margin-bottom: 0.5rem;
  }

  .newsletter-form button {
    border-radius: 50px;
    padding: 0.8rem;
  }
}
