/* 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);
}

/* Section Wrapper */
.president-section {
  max-width: 1200px;
  margin: 60px auto;
  background: var(--bg-gradient);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: var(--padding);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Container Layout */
.president-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

/* Image Container */
.president-image {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.president-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.president-image img:hover {
  transform: scale(1.03);
}


.president-text {
  flex: 2 1 400px;
  padding: 10px;
  color: var(--primary-text);
  font-size: var(--font-size);
  line-height: 1.8;
  font-family:Arial, Helvetica, sans-serif;
}


@media (max-width: 768px) {
  .president-container {
    flex-direction: column;
    text-align: center;
    
  }

  .president-text {
    padding-top: 0;
    font-size: small;
  }

  .president-image img {
    max-width: 90%;
  }
}





/* Floating Museum Section with PNG */
.floating-museum {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 5%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    to right,
    var(--bg-primary) 50%,
    transparent 100%
  );
}

.museum-content {
  width: 100%;
  max-width: 600px;
  z-index: 2;
}

.museum-content h1 {
  font-size: clamp(2.5rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, var(--text-primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
  animation: fadeInUp 1s ease;
}

.museum-content p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 80%;
  color: var(--text-secondary);
  animation: fadeInUp 1s ease 0.2s forwards;
  opacity: 0;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--primary);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease 0.4s forwards;
  opacity: 0;
}

.btn:hover {
  background: transparent;
  border-color: var(--primary);
  color: var(--text-primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(106, 0, 244, 0.3);
}

.floating-museum-img {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 40%;
  max-width: 600px;
  height: auto;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
  opacity: 0;
  animation: fadeInRight 1s ease 0.6s forwards, float 6s ease-in-out 2s infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(-50%) translateX(0) rotate(0deg);
  }
  50% {
    transform: translateY(-50%) translateX(10px) rotate(2deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

/* News Section */
.news-section {
  padding: 8rem 5% 6rem;
  background: var(--bg-primary);
}

.section-title {
  width: 100%;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  color: var(--text-primary);
  opacity: 0;
  animation: fadeInUp 1s ease 0.2s forwards;
}

.section-title:after {
  content: "";
  position: absolute;
  width: 50%;
  height: 4px;
  bottom: -10px;
  left: 0;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 2px;
}

.news-container {
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg-secondary);
}

.news-container::-webkit-scrollbar {
  height: 8px;
}

.news-container::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 10px;
}

.news-container::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border-radius: 10px;
}

.news-grid {
  display: inline-flex;
  gap: 2rem;
  padding-bottom: 1rem;
  min-width: 100%;
}

.news-card {
  background: var(--glass);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  min-width: 300px;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.news-card:nth-child(1) {
  animation-delay: 0.3s;
}
.news-card:nth-child(2) {
  animation-delay: 0.4s;
}
.news-card:nth-child(3) {
  animation-delay: 0.5s;
}
.news-card:nth-child(4) {
  animation-delay: 0.6s;
}
.news-card:nth-child(5) {
  animation-delay: 0.7s;
}
.news-card:nth-child(6) {
  animation-delay: 0.8s;
}
.news-card:nth-child(7) {
  animation-delay: 0.9s;
}
.news-card:nth-child(8) {
  animation-delay: 1s;
}
.news-card:nth-child(9) {
  animation-delay: 1.1s;
}
.news-card:nth-child(10) {
  animation-delay: 1.2s;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.news-img {
  height: 200px;
  overflow: hidden;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-img img {
  transform: scale(1.1);
}

.news-content {
  padding: 1.5rem;
}

.news-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.news-content p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 1rem;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-secondary);
}

.news-date {
  font-size: 0.8rem;
  color: var(--secondary);
}

/* Makalalar Section */
.makalalar-section {
  padding: 6rem 5%;
  background: linear-gradient(
    to bottom,
    var(--bg-primary),
    var(--bg-secondary)
  );
}

.makalalar-container {
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg-secondary);
}

.makalalar-container::-webkit-scrollbar {
  height: 8px;
}

.makalalar-container::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 10px;
}

.makalalar-container::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border-radius: 10px;
}

.makalalar-grid {
  display: inline-flex;
  gap: 2rem;
  padding-bottom: 1rem;
}

.makalalar-card {
  background: var(--glass);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  min-width: 300px;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.makalalar-card:nth-child(1) {
  animation-delay: 0.3s;
}
.makalalar-card:nth-child(2) {
  animation-delay: 0.4s;
}
.makalalar-card:nth-child(3) {
  animation-delay: 0.5s;
}
.makalalar-card:nth-child(4) {
  animation-delay: 0.6s;
}
.makalalar-card:nth-child(5) {
  animation-delay: 0.7s;
}
.makalalar-card:nth-child(6) {
  animation-delay: 0.8s;
}
.makalalar-card:nth-child(7) {
  animation-delay: 0.9s;
}
.makalalar-card:nth-child(8) {
  animation-delay: 1s;
}
.makalalar-card:nth-child(9) {
  animation-delay: 1.1s;
}
.makalalar-card:nth-child(10) {
  animation-delay: 1.2s;
}

.makalalar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(106, 0, 244, 0.2);
}

.makalalar-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}

.makalalar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.makalalar-card:hover .makalalar-img img {
  transform: scale(1.1);
}

.makalalar-name {
  padding: 1.2rem;
  text-align: center;
  font-weight: 600;
  color: var(--text-primary);
}

/* Museum Section */
.museum-section {
  padding: 6rem 5%;
  background: var(--bg-secondary);
  opacity: 0;
  animation: fadeInUp 1s ease 0.3s forwards;
}

.museum-container {
  display: flex;
  flex-direction: column-reverse;
  gap: 3rem;
}

.museum-text {
  flex: 1;
}

.museum-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.museum-text p {
  line-height: 1.2;
  opacity: 0.9;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.museum-visual {
  flex: 1;
  position: relative;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0px 20px rgba(0, 0, 0, 0.3);
}

.museum-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.museum-visual:hover img {
  transform: scale(1.05);
}
/* About Section */
.about-section {
  padding: 6rem 5%;
  background: linear-gradient(
    to bottom,
    var(--bg-secondary),
    var(--bg-primary)
  );
  opacity: 0;
  animation: fadeInUp 1s ease 0.4s forwards;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.about-content p {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

/* Advanced Footer */
footer {
  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;
  }
}
