/* Main Variables */
:root {
  --primary-color: #1a5f7a;
  --secondary-color: #159895;
  --accent-color: #57c5b6;
  --light-color: #dafffb;
  --dark-color: #002b36;
  --text-color: #333;
  --bg-color: #f8f8f8;
  --font-main: 'Lato', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin-bottom: 1rem;
}

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

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

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

/* Header */
header {
  background: white;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

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

.logo h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
  font-weight: 700;
  color: var(--primary-color);
}

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

.menu-icon {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

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

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: var(--dark-color);
  font-weight: 600;
  position: relative;
}

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

nav ul li a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(26, 95, 122, 0.9), rgba(21, 152, 149, 0.9));
  color: white;
  padding: 80px 0;
  text-align: center;
}

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

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

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

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

/* Features Section */
.features {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.2rem;
  color: var(--primary-color);
  display: inline-block;
  position: relative;
  margin-bottom: 0.5rem;
}

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

.section-title p {
  color: #777;
  max-width: 700px;
  margin: 0 auto;
  margin-top: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-box {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
}

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

.feature-icon {
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
  font-size: 2.5rem;
}

.feature-box h3 {
  margin-bottom: 1rem;
  color: var(--dark-color);
}

/* News Section */
.news {
  padding: 5rem 0;
  background-color: #f0f9ff;
}

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

.news-item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-content {
  padding: 1.5rem;
}

.news-content h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.news-content p {
  color: #666;
  margin-bottom: 1rem;
}

.news-content a {
  color: var(--secondary-color);
  font-weight: 600;
  position: relative;
  display: inline-block;
  text-decoration: underline;
  transition: all 0.3s ease;
}

.news-content a:hover {
  color: var(--primary-color);
}

/* Testimonials */
.testimonials {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-align: center;
}

.testimonial-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.testimonial-text {
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.testimonial-author {
  font-weight: 600;
}

/* Call to Action */
.cta {
  padding: 5rem 0;
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta h2 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-column h3 {
  color: var(--light-color);
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #ccc;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-contact p {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
}

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

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

.footer-logo h2 {
  color: var(--light-color);
  font-size: 1.3rem;
  margin-bottom: 0;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: white;
    transition: all 0.4s ease;
    padding: 2rem;
  }

  nav.active {
    left: 0;
  }

  nav ul {
    flex-direction: column;
  }

  nav ul li {
    margin: 1.5rem 0;
    margin-left: 0;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
  }

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