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

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f4f7fa;
}

/* Navbar Base */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #2c3e50;
  padding: 0.8rem 1.5rem;
  z-index: 1000;
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.2rem;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
}
.nav-links li a {
  color: #ecf0f1;
  text-decoration: none;
}
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    background: #2c3e50;
    flex-direction: column;
    width: 200px;
    display: none; /* hidden by default */
    padding: 1rem;
  }
  .nav-links.show {
    display: flex; /* shown when toggled */
  }
  .nav-links li {
    margin: 0.5rem 0;
  }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #3498db, #2c3e50);
  color: #fff;
  text-align: center;
  padding: 5rem 2rem 5rem;
}

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

.hero .tagline {
  margin: 1rem 0;
  font-size: 1.2rem;
}

.hero-links a {
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #fff;
  border-radius: 20px;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s;
}

.hero-links a:hover {
  background: #fff;
  color: #2c3e50;
}

/* Sections */
.section {
  padding: 2rem 2rem;
  max-width: 1000px;
  margin: auto;
}

.section h2 {
  margin-bottom: 1rem;
  border-bottom: 2px solid #3498db;
  display: inline-block;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.skills-grid h3 {
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

/* Timeline */
.timeline {
  border-left: 3px solid #3498db;
  padding-left: 1.5rem;
}

.timeline-item {
  margin-bottom: 2rem;
  position: relative;
  margin-left: 15px;

}

.timeline-item h3 {
  font-size: 1.2rem;
  color: #2c3e50;
}

.timeline-item span {
  font-size: 0.9rem;
  color: #7f8c8d;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 10px;
  width: 15px;
  height: 15px;
  background: #3498db;
  border-radius: 50%;
}

/* Contact */
.contact a {
  color: #3498db;
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

/* Smooth scroll animation */
html {
  scroll-behavior: smooth;
}
