@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --primary-blue: #002060;
  --secondary-blue: #1565c0;
  --accent-yellow: #fefe00;
  --font-family: 'Poppins', 'Helvetica', 'Arial', sans-serif;
  --bg-color: #ffffff;
  --bg-secondary-color: #f0f3f7;
  --text-color: #343a40;
  --text-light-color: #3e7fb8;
  --heading-color: #1f3564;
  --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  --header-bg: rgba(255, 255, 255, 0.85);
  --white: #fff;
  --dark-gray: #343a40;
  --border-color: #d6dc0c;
}

.dark {
  --bg-color: #242f43;
  --bg-secondary-color: #30394a;
  --text-color: #e2e8f0;
  --text-light-color: #a0aec0;
  --heading-color: #ffffff;
  --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  --header-bg: rgba(36, 47, 67, 0.85);
  --border-color: #4a5568;
  --white: #242f43;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: 1.7;
  font-size: 16px;
  color: var(--text-color);
  background: var(--bg-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  color: var(--heading-color);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  text-align: center;
  margin-bottom: 60px;
}

h3 {
  font-size: 1.5rem;
}

p {
  color: var(--text-light-color);
}

a {
  color: var(--secondary-blue);
  text-decoration: none;
}

.dark a {
  color: var(--accent-yellow);
}

section {
  padding: 100px 0;
}

:where(section[id], h2[id], h3[id]) {
  scroll-margin-top: 110px;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bg-white {
  background-color: var(--white) !important;
}

.rounded-lg {
  border-radius: 10px;
}

img {
  max-width: 100%;
  height: auto;
}

.main-header {
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  transition: height 0.3s ease-in-out;
}

.main-header.header-scrolled .container {
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 65px !important;
  width: auto;
  transition: none !important;
}

.main-header.header-scrolled .logo img {
  height: 65px !important;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
}

.nav-links > li {
  margin: 0;
  margin-left: 35px;
  position: relative;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 600;
  transition: color 0.3s ease;
  padding: 5px 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-links a .fa-chevron-down {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-yellow);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-blue);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.dark .nav-links a:hover,
.dark .nav-links a.active {
  color: var(--accent-yellow);
}

.theme-toggle-btn,
.social-btn {
  background: none;
  border: 2px solid var(--text-color);
  color: var(--text-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-btn::after {
  display: none !important;
}

.theme-toggle-btn:hover,
.social-btn:hover {
  background: var(--accent-yellow);
  color: #333;
  border-color: var(--accent-yellow);
  transform: translateY(-2px);
}

.theme-toggle-btn:hover {
  transform: rotate(180deg);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: -20px;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 10px 0;
  min-width: 250px;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  border: 1px solid var(--primary-blue);
  margin: 0;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown:hover > a .fa-chevron-down {
  transform: rotate(180deg);
}

.dropdown-menu li {
  margin: 0;
  padding: 0;
}

.dropdown-menu a {
  padding: 12px 20px;
  width: 100%;
  display: block;
}

.dropdown-menu a::after {
  display: none;
}

.dropdown-menu a:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.dark .dropdown-menu a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--accent-yellow);
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  width: 30px;
  height: 22px;
  position: relative;
}

.mobile-nav-toggle .line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--heading-color);
  position: absolute;
  left: 0;
  transition: all 0.3s ease-out;
}

.mobile-nav-toggle .line1 {
  top: 0;
}
.mobile-nav-toggle .line2 {
  top: 50%;
  transform: translateY(-50%);
}
.mobile-nav-toggle .line3 {
  bottom: 0;
}

.mobile-nav-toggle.open .line1 {
  transform: translateY(9.5px) rotate(45deg);
}

.mobile-nav-toggle.open .line2 {
  opacity: 0;
}

.mobile-nav-toggle.open .line3 {
  transform: translateY(-9.5px) rotate(-45deg);
}

.hero {
  background: linear-gradient(rgba(13, 71, 161, 0.6), rgba(21, 101, 192, 0.6)),
    url('/20250402_121238.jpg') no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 140px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.hero h1 {
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 20px auto 0 auto;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.features-section {
  padding: 0;
  margin-top: -80px;
  position: relative;
  z-index: 10;
  background: transparent;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-link {
  text-decoration: none;
}

.feature-item {
  background: var(--bg-color);
  padding: 30px 25px;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary-blue);
  cursor: pointer;
}

.feature-item:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-blue);
  background: var(--primary-blue);
}

.feature-item:hover h3 {
  color: #fff;
}

.dark .feature-item:hover {
  border-color: var(--accent-yellow);
  background: var(--accent-yellow);
}

.dark .feature-item:hover h3 {
  color: var(--dark-gray);
}

.feature-item h3 {
  font-size: 1.2rem;
  color: var(--heading-color);
  margin: 0;
  font-weight: 600;
  transition: color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-yellow);
  color: var(--dark-gray);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

.btn-primary:hover {
  background: #ffcd38;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.dark .btn-primary {
  color: var(--dark-gray);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  padding: 10px 25px;
}

.dark .btn-secondary {
  color: var(--accent-yellow);
  border-color: var(--accent-yellow);
}

.btn-secondary:hover {
  background-color: var(--primary-blue);
  color: #fff;
}

.dark .btn-secondary:hover {
  background-color: var(--accent-yellow);
  color: var(--dark-gray);
}

.about-preview {
  background-color: var(--bg-color);
}

.about-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
}

.about-preview-image img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
}

.about-preview-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-preview-content h2 {
  text-align: left;
  margin-bottom: 25px;
}

.about-preview-content p {
  margin-bottom: 20px;
}

.about-preview-content .btn {
  margin-top: auto;
  align-self: flex-start;
}

.initial {
  font-size: 1.25em;
  line-height: 1;
  vertical-align: baseline;
  margin-right: 0.05em;
  font-weight: 900;
  color: var(--primary-blue);
  letter-spacing: 2px;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.1);
}

.news {
  background-color: var(--primary-blue);
  padding: 100px 0;
}

.news h2 {
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.news > .container > .text-center > .btn-secondary {
  color: #fff;
  border-color: #fff;
}

.news > .container > .text-center > .btn-secondary:hover {
  background-color: #fff;
  color: var(--primary-blue);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  align-items: stretch;
}

.news-article {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-article:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.news-carousel {
  position: relative;
  width: 100%;
  height: 280px;
  background: #000;
  overflow: hidden;
}

.news-carousel .carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}

.news-carousel img,
.news-article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-carousel .carousel-prev,
.news-carousel .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 50%;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.news-carousel .carousel-prev:hover,
.news-carousel .carousel-next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.news-carousel .carousel-prev {
  left: 10px;
}

.news-carousel .carousel-next {
  right: 10px;
}

.news-information {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
  gap: 8px;
  flex-grow: 1;
}

.news-information h3 {
  color: #333;
  margin: 0 0 6px 0;
  font-size: 1.2rem;
  line-height: 1.3;
}

.news-information small {
  display: block;
  color: #777;
  font-size: 0.85rem;
  margin-bottom: 6px;
  font-weight: 500;
}

.news-information p {
  color: #555;
  margin: 0;
  line-height: 1.5;
  font-size: 0.95rem;
  flex-grow: 1;
}

.category-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  margin-top: 10px;
  align-self: flex-start;
}

.category-badge:hover {
  transform: scale(1.05);
}

.category-light-blue {
  background: linear-gradient(135deg, #5ba3e8 0%, #4a90e2 100%);
}

.category-dark-blue {
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
}

.category-very-dark-blue {
  background: linear-gradient(135deg, #003580 0%, #002060 100%);
}

.dark .news-article {
  background: #2d3748;
  border: 1px solid #4a5568;
}

.dark .news-information h3,
.dark .news-information p,
.dark .news-information small {
  color: #f0f0f0;
}

.dark .news-information small {
  color: #a0aec0;
}

.text-center {
  text-align: center;
}

.cta-section {
  background-color: var(--bg-color);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--heading-color);
}

.cta-section p {
  color: var(--text-color);
  max-width: 600px;
  margin: 0 auto;
}

.main-footer {
  background-color: var(--primary-blue);
  color: #a0aec0;
  padding: 60px 0 20px 0;
  transition: background-color 0.3s ease;
}

.main-footer a {
  color: #fff;
  transition: color 0.3s ease;
}

.main-footer a:hover {
  color: var(--accent-yellow);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col p {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #4a5568;
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--accent-yellow);
}

.page-header {
  background: var(--primary-blue);
  color: #fff;
  text-align: center;
  padding: 80px 20px 60px;
}

.page-header h1 {
  color: #fff;
}

.page-header p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 20px auto 0;
}

.solutions-list .solution-item {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.solutions-list .solution-item:nth-child(odd) {
  flex-direction: row;
}

.solutions-list .solution-item:nth-child(even) {
  flex-direction: row-reverse;
}

.solutions-list .solution-image,
.solutions-list .solution-content {
  flex: 1;
}

.solutions-list .solution-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.solutions-list .solution-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.solutions-list .solution-content h3 {
  margin-bottom: 15px;
  color: var(--heading-color);
}

.solutions-list .solution-content p {
  color: var(--text-color);
  line-height: 1.7;
}

.content-section p {
  max-width: 800px;
  margin: 0 auto 30px auto;
  text-align: center;
}

.means-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto 0;
}

.mean-item {
  background: var(--bg-color);
  border: 2px solid var(--primary-blue);
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.mean-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 32, 96, 0.15);
}

.mean-item h3 {
  margin: 0 0 15px 0;
  font-size: 1.2rem;
  color: var(--heading-color);
  padding-bottom: 12px;
  border-bottom: 3px solid var(--primary-blue);
}

.mean-item p {
  margin: 0;
  color: var(--text-color);
  line-height: 1.6;
}

.dark .mean-item {
  background: #2d3748;
  border-color: var(--primary-blue);
}

.dark .mean-item h3 {
  color: #fff;
  border-bottom-color: var(--accent-yellow);
}

.dark .mean-item:hover {
  box-shadow: 0 8px 20px rgba(254, 254, 0, 0.2);
}

.map-container {
  margin-top: 40px;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-wrapper-modern {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  background-color: var(--bg-secondary-color);
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
}

.contact-info-modern {
  padding-right: 30px;
  border-right: 1px solid var(--primary-blue);
}

.contact-logo-modern {
  max-width: 150px;
  margin-bottom: 20px;
}

.contact-info-modern h3 {
  margin-bottom: 20px;
}

.contact-info-modern p {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.contact-info-modern i {
  color: var(--primary-blue);
  font-size: 1.2rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.dark .contact-info-modern i {
  color: var(--accent-yellow);
}

.contact-form-modern {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.form-group-modern {
  position: relative;
  width: calc(50% - 10px);
}

.form-group-modern.full-width {
  width: 100%;
}

.form-input-modern {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--primary-blue);
  border-radius: 5px;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-label-modern {
  position: absolute;
  left: 15px;
  top: 15px;
  background: var(--bg-color);
  padding: 0 5px;
  color: var(--text-light-color);
  transition: all 0.3s ease;
  pointer-events: none;
}

.form-input-modern:focus,
.form-input-modern:not(:placeholder-shown) {
  border-color: var(--primary-blue);
}

.form-input-modern:focus + .form-label-modern,
.form-input-modern:not(:placeholder-shown) + .form-label-modern {
  top: -10px;
  left: 10px;
  font-size: 0.85rem;
  color: var(--primary-blue);
}

.dark .form-input-modern:focus + .form-label-modern,
.dark .form-input-modern:not(:placeholder-shown) + .form-label-modern {
  color: var(--accent-yellow);
}

.admin-form-container,
.admin-list-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 30px;
  background-color: var(--bg-secondary-color);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
}

.admin-dashboard {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.dashboard-button {
  padding: 20px 30px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  background-color: var(--primary-blue);
  color: white;
  transition: all 0.3s ease;
}

.dashboard-button:hover {
  background-color: var(--secondary-blue);
  transform: translateY(-3px);
}

.publication-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-color);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
}

.publication-item-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.publication-item-info img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
}

.solution-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}

.solution-carousel-track {
  width: 100%;
  aspect-ratio: 3/2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.solution-carousel-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.solution-single-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.solution-carousel-prev,
.solution-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 3rem;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 5px;
  z-index: 10;
  transition: background 0.3s ease;
  line-height: 1;
  font-weight: 300;
}

.solution-carousel-prev:hover,
.solution-carousel-next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.solution-carousel-prev {
  left: 15px;
}

.solution-carousel-next {
  right: 15px;
}

.solution-carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.solution-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.solution-carousel-dot.active {
  background: white;
  width: 12px;
  height: 12px;
}

.solution-carousel-counter {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 10;
}

.partners-section {
  background: var(--bg-color);
  padding: 80px 0;
  overflow: hidden;
}

.partners-section h2 {
  text-align: center;
  margin-bottom: 50px;
  color: var(--heading-color);
}

.partners-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
}

.partners-track {
  display: flex;
  gap: 60px;
  width: fit-content;
  cursor: grab;
  user-select: none;
  animation: scroll-partners 90s linear infinite;
}

@keyframes scroll-partners {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.partners-track.dragging {
  animation-play-state: paused;
  cursor: grabbing;
}

.partners-track:hover {
  animation-play-state: paused;
}

.partner-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 10px;
  transition: transform 0.3s ease;
}

.partner-item:hover {
  transform: scale(1.05);
}

.partner-logo {
  width: 100%;
  height: auto;
  max-width: 160px;
  object-fit: contain;
  filter: none;
  opacity: 0.9;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.partner-item:hover .partner-logo {
  opacity: 1;
}

.filter-news {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
  gap: 15px;
  width: 100%;
}

.filter-news select {
  padding: 10px 20px;
  outline: none;
  border: 2px solid #fff;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  max-width: 400px;
  width: 100%;
}

@media (min-width: 992px) {
  .initial {
    font-size: 1.6em;
  }
}

@media (max-width: 991px) {
  .about-preview-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-preview-content h2 {
    text-align: center;
  }

  .about-preview-content .btn {
    align-self: center;
  }

  .means-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
    margin-bottom: 40px;
  }

  .container {
    padding: 0 15px;
  }

  :where(section[id], h2[id], h3[id]) {
    scroll-margin-top: 120px;
  }

  .main-header .container {
    height: 80px;
  }

  .main-header.header-scrolled .container {
    height: 70px;
  }

  .logo img {
    height: 50px !important;
  }

  .main-header.header-scrolled .logo img {
    height: 50px !important;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    height: calc(100vh - 80px);
    position: fixed;
    top: 80px;
    left: -100%;
    background: var(--bg-color);
    padding: 40px 20px;
    transition: left 0.35s ease-in-out;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 0;
    margin-left: 0 !important;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links > li > a {
    padding: 20px;
    width: 100%;
    justify-content: space-between;
    font-size: 1.1rem;
  }

  .nav-links a::after {
    display: none;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    min-width: auto;
    padding: 0;
    background: rgba(0, 0, 0, 0.05);
    display: none;
    border: none;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    padding-left: 40px !important;
    font-size: 0.95rem;
  }

  .social-btn,
  .theme-toggle-btn {
    margin: 10px 20px;
  }

  .hero {
    min-height: auto;
    padding: 80px 20px 60px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .features-section {
    margin-top: -40px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .about-preview-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-preview-image img {
    max-height: 300px;
  }

  .about-preview-content {
    text-align: center;
  }

  .about-preview-content h2 {
    text-align: center;
  }

  .about-preview-content .btn {
    align-self: center;
  }

  .initial {
    font-size: 1.2em;
  }

  .news {
    padding: 60px 0;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news-carousel {
    height: 240px;
  }

  .news-carousel .carousel-prev,
  .news-carousel .carousel-next {
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
  }

  .news-information {
    padding: 12px;
  }

  .news-information h3 {
    font-size: 1.15rem;
  }

  .category-badge {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .cta-section {
    padding: 60px 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-col ul {
    padding: 0;
  }

  .solutions-list .solution-item:nth-child(odd),
  .solutions-list .solution-item:nth-child(even) {
    flex-direction: column;
    gap: 20px;
  }

  .contact-wrapper-modern {
    grid-template-columns: 1fr;
    padding: 30px 20px;
  }

  .contact-info-modern {
    border-right: none;
    border-bottom: 1px solid var(--primary-blue);
    padding-right: 0;
    padding-bottom: 30px;
    margin-bottom: 30px;
  }

  .form-group-modern {
    width: 100% !important;
  }

  .means-grid {
    grid-template-columns: 1fr;
  }

  .page-header {
    padding: 60px 20px 40px;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .solution-carousel-track {
    aspect-ratio: 4/3;
  }

  .solution-carousel-prev,
  .solution-carousel-next {
    font-size: 2rem;
    padding: 8px 12px;
  }

  .partners-section {
    padding: 60px 0;
  }

  .partners-track {
    gap: 45px;
    animation-duration: 35s;
  }

  .partner-item {
    min-width: 140px;
  }

  .partner-logo {
    max-width: 130px;
  }
}

@media (max-width: 600px) {
  .means-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mean-item {
    padding: 20px;
  }

  .mean-item h3 {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .feature-item h3 {
    font-size: 1rem;
  }

  .btn {
    padding: 12px 25px;
    font-size: 0.9rem;
  }

  .news-carousel {
    height: 220px;
  }

  .news-carousel .carousel-prev,
  .news-carousel .carousel-next {
    width: 32px;
    height: 32px;
    font-size: 1.3rem;
  }

  .form-input-modern {
    padding: 12px;
    font-size: 0.9rem;
  }

  .solution-carousel-prev,
  .solution-carousel-next {
    font-size: 1.5rem;
    padding: 6px 10px;
  }

  .partners-track {
    gap: 35px;
    animation-duration: 30s;
  }

  .partner-item {
    min-width: 120px;
  }

  .partner-logo {
    max-width: 110px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .main-header,
  .main-footer,
  .theme-toggle-btn,
  .social-btn,
  .btn {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}

@media (hover: none) and (pointer: coarse) {
  .partners-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .partners-track::-webkit-scrollbar {
    display: none;
  }

  .partner-item {
    scroll-snap-align: start;
  }
}
