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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background-color: #f5f5f5;
  color: #333;
}

a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #004a99;
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Navbar */
.navbar {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

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

.logo {
  font-weight: 700;
  font-size: 1.3rem;
  color: #333;
}

.nav-links ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
}

.nav-links a {
  font-weight: 500;
  color: #333;
}

.nav-links a:hover {
  color: #0066cc;
}

.burger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #50a9ff, #a7e7ff);
  padding: 8rem 0 6rem;
  text-align: center;
  color: #ffffff;
  margin-top: 70px; /* accommodate fixed navbar */
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

.hero .subtitle {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.9;
}

.hero-text {
  margin-top: 1rem;
  font-size: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
}

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

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  text-align: center;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
  background-color: #ffffff;
  color: #0066cc;
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-primary:hover {
  background-color: #e6f0ff;
  color: #004a99;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.35);
}

/* Outline button (used in contact section) */
.btn-outline {
  background: transparent;
  color: #0066cc;
  border: 2px solid #0066cc;
}

.btn-outline:hover {
  background-color: #e6f0ff;
  color: #004a99;
}

.stats-row {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* About Section */
.about {
  background: #ffffff;
  color: #333;
  padding: 4rem 0;
}

.about h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about p {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.7;
}

/* Project Sections */
.project {
  background: #f0f8ff;
  padding: 4rem 0;
}
.project.alt {
  background: #ffffff;
}

.project h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.project-tagline {
  text-align: center;
  font-style: italic;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.project-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.project-text {
  max-width: 700px;
}

.project-text h3 {
  margin-top: 1.5rem;
  font-size: 1.4rem;
}

.project-text p,
.project-text ul {
  margin-top: 0.5rem;
  line-height: 1.6;
}

.project-text ul {
  list-style: inside disc;
  padding-left: 1rem;
}

.project-buttons {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Timeline */
.timeline-section {
  background: #ffffff;
  padding: 4rem 0;
}
.timeline-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.timeline {
  position: relative;
  margin: 0 auto;
  max-width: 800px;
  /* ensure floats are cleared */
  overflow: hidden;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: #0066cc;
  opacity: 0.3;
}

.timeline-item {
  margin: 2rem 0;
  position: relative;
  width: 50%;
  padding: 1rem 2rem;
}

.timeline-item:nth-child(odd) {
  float: left;
  text-align: right;
  clear: both;
}

.timeline-item:nth-child(even) {
  float: right;
  text-align: left;
  clear: both;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 1.2rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0066cc;
  border: 3px solid #ffffff;
}

.timeline-item:nth-child(odd)::before {
  right: -7px;
}
.timeline-item:nth-child(even)::before {
  left: -7px;
}

.timeline-date {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #0066cc;
}

.timeline-content {
  background: #f7fbff;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

/* Stats Section */
.stats-section {
  background: #f0f8ff;
  padding: 4rem 0;
}

.stats-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.stats-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.stat-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
}

.stat-card ul {
  list-style: inside disc;
  padding-left: 1rem;
  line-height: 1.5;
}

.stat-card.stats-numbers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-items: center;
}

.stat-card .stat-item {
  text-align: center;
}

.stat-card .stat-item .stat-number {
  font-size: 2rem;
  font-weight: 700;
}
.stat-card .stat-item .stat-label {
  display: block;
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

/* Tech Section */
.tech-section {
  background: #ffffff;
  padding: 4rem 0;
}

.tech-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.tech-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.tech-item {
  background: #f7fbff;
  padding: 1.5rem;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tech-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #0066cc;
}
.tech-item p {
  font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
  background: #f0f8ff;
  padding: 4rem 0;
}
.contact-section h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.contact-section p {
  max-width: 700px;
  margin: 0 auto 1rem;
  text-align: center;
}

.contact-info {
  text-align: center;
  margin-bottom: 1.5rem;
}

.contact-info p {
  margin: 0.4rem 0;
}

.cta-buttons {
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: #ffffff;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  border-top: 1px solid #eaeaea;
}

.footer .quote {
  margin-top: 0.3rem;
  font-style: italic;
  color: #888;
}

/* Responsive behaviour */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #ffffff;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  .nav-links ul {
    flex-direction: column;
    gap: 1rem;
  }
  .burger {
    display: block;
  }
  .timeline::before {
    left: 8px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 30px;
    padding-right: 10px;
    margin: 1.5rem 0;
  }
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    float: none;
    text-align: left;
  }
  .timeline-item::before {
    left: 0px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  .stats-row {
    flex-direction: column;
    gap: 1rem;
  }
}