/* Main CSS for InvasiveCarpConsortium.com */
:root {
  --primary-color: #1D7DAC;
  --secondary-color: #004970;
  --accent-color: #39B9A4;
  --text-color: #333333;
  --light-text: #FFFFFF;
  --light-bg: #E8F4F8;
  --medium-bg: #D0E6F0;
  --dark-bg: #004970;
  --header-font: 'Montserrat', sans-serif;
  --body-font: 'Open Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--light-bg);
}

h1, h2, h3, h4, h5 {
  font-family: var(--header-font);
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

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

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

.btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--accent-color);
  color: var(--light-text);
  border-radius: 30px;
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outlined {
  background-color: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
}

.btn-outlined:hover {
  background-color: var(--accent-color);
  color: var(--light-text);
}

.section-spacing {
  padding: 80px 0;
}

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

/* Header */
header {
  background-color: var(--light-bg);
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

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

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

.logo img {
  width: 45px;
  height: auto;
  margin-right: 10px;
}

.logo-text {
  font-family: var(--header-font);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav li {
  margin-left: 30px;
}

.main-nav a {
  color: var(--secondary-color);
  font-weight: 600;
  position: relative;
}

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

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--secondary-color);
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: url('hero-bg.svg') no-repeat center center;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 73, 112, 0.7) 0%, rgba(29, 125, 172, 0.6) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  color: var(--light-text);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--light-text);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

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

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.5rem;
}

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

.about-image svg {
  max-width: 100%;
  height: auto;
}

/* Mission Section */
.mission {
  background-color: var(--medium-bg);
}

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

.section-header h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
}

.mission-content {
  display: flex;
  justify-content: space-between;
}

.mission-card {
  background-color: var(--light-bg);
  border-radius: 10px;
  padding: 30px;
  margin: 0 15px;
  flex: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.mission-card:hover {
  transform: translateY(-10px);
}

.mission-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
}

.mission-card h3 {
  text-align: center;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* News Section */
.news {
  background-color: var(--light-bg);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.news-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

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

.news-card-content {
  padding: 25px;
}

.news-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.news-card p {
  color: #666;
  margin-bottom: 20px;
}

.news-links {
  border-top: 1px solid #eee;
  padding: 15px 25px;
}

/* Research Section */
.research {
  background-color: #ffffff;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.research-item {
  background-color: var(--light-bg);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.research-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.research-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.research-item h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* Call to Action */
.cta {
  background-color: var(--secondary-color);
  color: var(--light-text);
  text-align: center;
  padding: 80px 0;
}

.cta h2 {
  color: var(--light-text);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta p {
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 1.2rem;
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: var(--light-text);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-col h3 {
  color: var(--accent-color);
  margin-bottom: 25px;
  font-size: 1.3rem;
}

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

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

.footer-col a {
  color: var(--light-text);
  opacity: 0.8;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--accent-color);
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo img {
  width: 40px;
  height: auto;
  margin-right: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Media Queries */
@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .about-image {
    order: -1;
  }
  
  .mission-content {
    flex-direction: column;
  }
  
  .mission-card {
    margin-bottom: 30px;
  }
  
  .research-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 80%;
    height: 100%;
    background-color: var(--light-bg);
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 50px 30px;
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
  }
  
  .main-nav li {
    margin: 0 0 20px 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .research-grid {
    grid-template-columns: 1fr;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    text-align: center;
    margin-bottom: 15px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
}
