/* Global Styles */
:root {
  --primary-color: #0a477e;
  --secondary-color: #19a687;
  --background-color: #f5f7fa;
  --text-color: #333;
  --light: #ffffff;
  --dark-overlay: rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Container Utility */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--primary-color);
  color: var(--light);
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
}

.brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
}

nav {
  position: relative;
}

.nav-list {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.nav-list li {
  margin-left: 2rem;
}

.nav-list a {
  font-weight: 600;
  color: var(--light);
  transition: color 0.2s ease-in-out;
}

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

/* Mobile navigation */
#nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
}

#nav-toggle .hamburger,
#nav-toggle .hamburger::before,
#nav-toggle .hamburger::after {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--light);
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
  content: '';
}

#nav-toggle .hamburger::before {
  transform: translateY(-8px);
}

#nav-toggle .hamburger::after {
  transform: translateY(5px);
}

#nav-toggle.active .hamburger {
  background: transparent;
}

#nav-toggle.active .hamburger::before {
  transform: rotate(45deg) translate(5px, 5px);
}

#nav-toggle.active .hamburger::after {
  transform: rotate(-45deg) translate(6px, -7px);
}

@media (max-width: 768px) {
  .nav-list {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--primary-color);
    flex-direction: column;
    align-items: flex-start;
    width: 200px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
  }

  .nav-list.open {
    max-height: 300px;
  }

  .nav-list li {
    width: 100%;
    margin: 0;
  }

  .nav-list a {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
  }

  #nav-toggle {
    display: block;
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 90vh;
  background: url('images/hero.png') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-overlay);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1rem;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

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

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  border: none;
  transition: background 0.2s ease-in-out;
}

.btn-primary {
  background: var(--secondary-color);
  color: var(--light);
}

.btn-primary:hover {
  background: #17a07d;
}

/* Sections */
.section {
  padding: 5rem 0 4rem;
}

.section-alt {
  background-color: #ffffff;
}

section h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.section p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Skills list */
.skills {
  margin-top: 1rem;
}

.skills h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.skills ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.skills li::before {
  content: '\f058'; /* Font Awesome check icon */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary-color);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--light);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.service-card i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.95rem;
}

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

/* Timeline (Experience) */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--secondary-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1rem 2rem;
  background: var(--light);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.timeline-item:nth-child(odd) {
  align-self: flex-start;
  margin-left: 0;
}

.timeline-item:nth-child(even) {
  align-self: flex-end;
  margin-right: 0;
}

.timeline-date {
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0.25rem;
}

.timeline-item h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.timeline-item p {
  font-size: 0.95rem;
  margin: 0;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 8px;
  }
  .timeline-item {
    width: 100%;
    margin-left: 1.5rem;
  }
  .timeline-item:nth-child(even) {
    align-self: flex-start;
  }
}

/* Contact */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.contact-info {
  flex: 1 1 300px;
}

.contact-info ul {
  list-style: none;
  padding: 0;
}

.contact-info li {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.contact-info i {
  color: var(--secondary-color);
  margin-right: 0.5rem;
}

.contact-form {
  flex: 1 1 300px;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(25, 166, 135, 0.2);
}

.contact-form button {
  margin-top: 0.5rem;
}

/* Footer */
footer {
  background: var(--primary-color);
  color: var(--light);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 0.9rem;
  }
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Why Us section */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.why-us-item {
  background: var(--light);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.why-us-item h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.why-us-item p {
  font-size: 0.95rem;
  margin: 0;
}

.why-us-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}