body {
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
 background-image: url('../images/pexels-olliecraig1-9154279.jpg');
  background-size: cover;  
  background-position: center; 
  background-repeat: no-repeat; 
  background-attachment: fixed;
  line-height: 1.6;
  margin: 0;
  padding: 0;
 /* background-color: #f4f4f4;*/
}

@media (max-width: 480px) {
  /* Header */
  .ford-icon {
    height: 40px;
  }

  .nav-items {
    gap: 10px;
  }
}

/* Header Styles */
header {
  background-color: white;
  padding: 15px 0;
  border-bottom: 2px inset rgb(19, 19, 136);
  box-shadow: 0px 7px 10px rgb(59, 34, 174);
  position: relative;
  z-index: 10;
  width: 100vw; /* Full viewport width */
  margin: 0; /* Remove any default margin */
  left: 0;
  top: 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 2000px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Rest of your existing styles remain the same */
.ford-logo {
  display: flex;
  align-items: center;
}

.ford-icon {
  height: 50px;
  width: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 15px;
}

.nav-items a {
  text-decoration: none;
  color: black;
  display: inline-block;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 5px 0;
  font-size: 1rem;
}

.nav-items a:hover {
  color: black;
  text-decoration: underline;
  transform: scale(1.05) translateY(-2px);
  text-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.language-switcher {
  display: flex;
  gap: 0.5rem;
  margin-left: 15px;
}

.language-switcher button {
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 0.8rem;
  transition: background-color 0.3s ease;
}

.language-switcher button:hover {
  background-color: #ddd;
}

/* Responsive styles  */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    padding: 10px;
    gap: 10px;
  }
  
  nav {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
  
  .nav-items {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  
  .language-switcher {
    margin-left: 0;
    justify-content: center;
  }
  
  .ford-icon {
    height: 40px;
  }
}

@media (max-width: 480px) {
  .nav-items {
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }
  
  .nav-items a {
    font-size: 0.9rem;
  }
  
  .language-switcher {
    margin-top: 10px;
  }
}

.container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

section {
  background-color: white;
  padding: 1rem;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem; 
}

h2 {
  color: #003366;
  margin: 0;
}

.media { 
  transition: all 0.3s ease; 
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
  width: auto; 
}


.scroll {
  opacity: 0;
  transform: translateY(20px); /* Чуть ниже */
  transition: all 0.5s ease-in-out;
}

.show {
  opacity: 1;
  transform: translateY(0);
}


.media:hover {
  transform: scale(1.02);
  box-shadow: 0px 0px 20px rgba(0, 0, 139, 0.8);
  filter: brightness(0.9); /* Немного затемняет картинку */
}


.media img, .media video {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

.media video {
  width: 100%;
  max-width: 1000px; 
}

.gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  position: relative;
}

.gallery-images {
  position: relative;
  width: 100%;
  max-width: 700px;
  height: 400px; 
  overflow: hidden;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* img fill container */
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease; /* smooth transition */
}

.gallery-img.active {
  opacity: 1;
}

.gallery-arrow {
  background-color: rgba(0, 51, 102, 0.7);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.5rem;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.gallery-arrow.left {
  left: 0;
}

.gallery-arrow.right {
  right: 0;
}

.gallery-arrow:hover {
  background-color: rgba(0, 51, 102, 1);
}




@media (max-width: 600px) {
  .nav-list {
      flex-direction: column;
      align-items: center;
  }
  
  .container {
      padding: 1rem;
  }
  
  header {
      padding: 0.5rem;
  }
  
  .media video {
      max-width: 100%;
  }
}

html {
  scroll-behavior: smooth;
}




/* Footer styling */
.ford-footer {
background-color: #f5f5f5;
color: #333;
padding: 40px 0 20px;
font-family: Arial, sans-serif;
border-top: 1px solid #e0e0e0;


}

.footer-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}

.footer-main-row {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}

.footer-section {
flex: 1;
min-width: 150px;
padding: 0 15px;
}

.footer-heading {
color: #002D55;
font-size: 1.1rem;
margin-bottom: 15px;
font-weight: 600;
}

.footer-links {
list-style: none;
padding: 0;
margin: 0;
}

.footer-links li {
margin-bottom: 10px;
}

.footer-links a {
color: #333;
text-decoration: none;
font-size: 0.9rem;
transition: color 0.2s;
}

.footer-links a:hover {
color: #004F9F;
text-decoration: underline;
}
.footer-bottom {
border-top: 1px solid #ddd;
padding-top: 20px;
margin-top: 30px;
display: flex;
flex-direction: column; /* Changed to column layout */
gap: 20px; /* Added gap between sections */
}

/* Social Links Section */
.social-links {
display: flex;
justify-content: center; /* Center social links */
gap: 24px;
padding-bottom: 20px 0;
border-bottom: 1px solid #ddd; /* Divider line */
margin-bottom: 20px;
}

.social-links a {
display: flex;
align-items: center;
gap: 8px;
color: #002D55;
text-decoration: none;
font-size: 0.9rem;
font-weight: 600;
transition: color 0.2s;
transition: all 0.2s ease;
margin-bottom: 20px;
}

.social-links img {
width: 17px;
height: 17px;
transition: transform 0.2s ease;
}

.social-links a:hover {
color: #004F9F;
text-decoration: underline;
}

.legal-links {
display: flex;
flex-wrap: wrap;
gap: 15px;
align-items: center;
font-size: 0.8rem;
}

.legal-links a {
color: #666;
text-decoration: none;
transition: color 0.2s;
}

.copyright {
width: 100%;
text-align: center;
color: #666;
font-size: 0.8rem;
margin-top: 10px;
}

/*scrolling text feature*/
.scroll-text {
  opacity: 0;               
  transform: translateY(20px); 
  transition: opacity 0.5s ease, transform 0.5s ease; 
}


.scroll-text.show {
  opacity: 1;              
  transform: translateY(0); 
}
