/* 
  Molex Solutions - Main Stylesheet
*/

/* ========== General Styles ========== */
:root {
  --primary-color: #0047AB;
  --accent-color: #FFD700;
  --text-dark: #333333;
  --text-medium: #666666;
  --text-light: #FFFFFF;
  --bg-light: #FFFFFF;
  --bg-off-white: #F9F9F9;
  --border-color: #E5E7EB;
  --box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-medium);
  line-height: 1.6;
  background-color: var(--bg-light);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

ul {
  list-style: none;
}

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

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-underline {
  width: 80px;
  height: 4px;
  background-color: #949494;
  margin: 0 auto 1.5rem;
}

.section-description {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.primary-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 6px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.primary-button:hover {
  background-color: rgba(0, 71, 171, 0.9);
  color: white;
}

.secondary-button {
  display: inline-block;
  background-color: transparent;
  color: var(--primary-color);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  padding: 11px 27px;
  border-radius: 6px;
  border: 2px solid var(--primary-color);
  transition: var(--transition);
  cursor: pointer;
}

.secondary-button:hover {
  background-color: var(--primary-color);
  color: white;
}

.rounded-image {
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

/* Animation classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Header & Navigation ========== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-light);
  box-shadow: var(--box-shadow);
  z-index: 1000;
}

.navbar {
  height: 80px;
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-main {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.logo-accent {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: #949494;
  margin-left: 4px;
}

.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* ========== Hero Section ========== */
.hero-section {
  padding: 160px 0 80px;
  background-color: var(--bg-light);
  background-image: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)),
    url('https://images.unsplash.com/photo-1557804506-669a67965ba0?ixlib=rb-4.0.3&auto=format&fit=crop&w=1374&q=80');
  background-size: cover;
  background-position: center;
  position: relative;
}

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

.hero-title {
  font-size: 3rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-medium);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ========== About Section ========== */
.about-section {
  background-color: var(--bg-light);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
}

.about-subtitle {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.values-list {
  list-style: none;
  margin-top: 1rem;
}

.values-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.values-list li:last-child {
  border-bottom: none;
}

.values-list span {
  color: var(--primary-color);
  font-weight: 500;
}

/* ========== Services Section ========== */
.services-section {
  background-color: var(--bg-off-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--bg-light);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(0, 71, 171, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon i {
  font-size: 1.75rem;
  color: var(--primary-color);
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.service-description {
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
}

.service-features li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* ========== Contact Section ========== */
.contact-section {
  background-color: var(--bg-off-white);
}

.contact-wrapper {
  display: flex;
  gap: 3rem;
}

.contact-form-container,
.contact-info-container {
  flex: 1;
}

.contact-form-inner,
.contact-info-inner {
  background-color: var(--bg-light);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--box-shadow);
  height: 100%;
}

.contact-form-title,
.contact-info-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-medium);
}

.required {
  color: #e53e3e;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  color: var(--text-dark);
  transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.1);
}

.submit-button {
  display: block;
  width: 100%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.submit-button:hover {
  background-color: rgba(0, 71, 171, 0.9);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(0, 71, 171, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.25rem;
  color: var(--primary-color);
}

.contact-details h4 {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.contact-details p {
  margin-bottom: 0.25rem;
}

.linkedin-link {
  color: var(--primary-color);
}

.linkedin-link:hover {
  text-decoration: underline;
}

/* ========== Footer ========== */
.footer {
  background-color: var(--primary-color);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.footer-logo-main {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: white;
}

.footer-logo-accent {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: #d3d3d3;
  margin-left: 4px;
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  color: white;
  transition: var(--transition);
}

.social-link:hover {
  color: var(--accent-color);
}

.footer-title {
  font-size: 1.25rem;
  color: white;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  text-align: center;
}

.copyright {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

.copyright a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.copyright a:hover {
  color: var(--accent-color);
}

/* ========== Responsive Styles ========== */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-content {
    flex-direction: column;
    gap: 2rem;
  }

  .about-text,
  .about-image {
    flex: none;
    width: 100%;
  }

  .contact-wrapper {
    flex-direction: column;
  }

  .contact-form-container,
  .contact-info-container {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .navbar .container {
    position: relative;
  }

  .nav-menu {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--bg-light);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    border-radius: 0 0 8px 8px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
  }

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

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .mobile-menu-btn {
    display: block;
  }

  .cta-button {
    display: none;
  }

  .hero-section {
    padding: 140px 0 60px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

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

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

  .section-header {
    margin-bottom: 40px;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .service-card {
    padding: 1.5rem;
  }
}