/* Reset */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background-color: #0d1117;
  color: #cbd5e1;
  line-height: 1.7;
}

.navbar {
  position: fixed;
  top: 24px;
  right: 40px;
  z-index: 1000;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1001;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: #fff;
  height: 2px;
  width: 24px;
  position: absolute;
  transition: all 0.3s ease;
}

.nav-toggle-label span::before {
  content: '';
  top: -8px;
}

.nav-toggle-label span::after {
  content: '';
  top: 8px;
}

.nav-menu {
  display: flex;
  gap: 24px;
  background-color: rgba(13, 17, 23, 0.85);
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid #2e3745;
  backdrop-filter: blur(10px);
}

.nav-menu a {
  text-decoration: none;
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .nav-toggle-label {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 40px;
    right: 0;
    flex-direction: column;
    display: none;
    width: 180px;
    text-align: right;
    padding: 20px;
  }

  .nav-toggle:checked + .nav-toggle-label + .nav-menu {
    display: flex;
  }
}
.header {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 20px;
  background: transparent;
}

.hamburger {
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 1001;
  display: none;
}

.side-menu {
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100%;
  background-color: #0d1117;
  color: #fff;
  padding: 60px 20px 20px;
  transition: right 0.3s ease;
  z-index: 1002;
  box-shadow: -2px 0 10px rgba(0,0,0,0.4);
}

.side-menu ul {
  list-style: none;
  padding: 0;
}

.side-menu ul li {
  margin: 20px 0;
}

.side-menu ul li a {
  color: #f1f5f9;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.side-menu ul li a:hover {
  color: #3b82f6;
}

.side-menu.active {
  right: 0;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 26px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 0%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease, width 0s linear 0.3s;
}

.overlay.active {
  width: 100%;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Show hamburger only on mobile */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.hero {
  height: 100vh;
  background: url('assets/profile-bg.jpg') center center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  background: linear-gradient(to bottom, rgba(13, 17, 23, 0.4), rgba(13, 17, 23, 0.95));
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  max-width: 700px;
  padding: 20px;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 16px;
}

.tagline {
  font-size: 1.1rem;
  font-weight: 400;
  color: #94a3b8;
  margin-bottom: 32px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hero {
    background-position: right;
  }
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.download-btn {
  padding: 12px 20px;
  background-color: #161b22;
  color: #cbd5e1;
  font-weight: 500;
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
  margin-top: 20px;
}

.download-btn:hover {
  background-color: #60a5fa;
  transform: translateY(-2px);
}

.icon-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background-color: #161b22;
  border: 1px solid #2e3745;
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.icon-btn:hover {
  background-color: #3b82f6;
  color: #0f172a;
  border-color: #3b82f6;
  transform: translateY(-2px);
}

.icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.announcements, .timeline, .projects, .articles {
  background-color: #0d1117;
  padding: 100px 20px;
  color: #cbd5e1;
}

.projects h2, .timeline h2, .announcements h2, .articles h2 {
  text-align: center;
  font-size: 2.4rem;
  color: #f8fafc;
  margin-bottom: 60px;
  font-weight: 600;
}

.project-grid, .article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.project-card, .article-card {
  background-color: #161b22;
  border: 1px solid #2e3745;
  padding: 24px;
  border-radius: 14px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover, .article-card:hover {
  transform: translateY(-4px);
  border-color: #3b82f6;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
a{
  color: #3b82f6;
}
.tags li {
  background-color: #1e293b;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #f1f5f9;
  list-style: none;
}

.announcement-list, .timeline-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
  position: relative;
  border-left: 2px solid #2e3745;
  padding-left: 30px;
}

.announcement-item, .timeline-item {
  position: relative;
  padding-left: 10px;
}

.announcement-item::before, .timeline-dot {
  content: "";
  position: absolute;
  left: -9px;
  top: 4px;
  width: 16px;
  height: 16px;
  background-color: #3b82f6;
  border-radius: 50%;
  border: 3px solid #0d1117;
}

.announcement-item h3, .timeline-content h3 {
  font-size: 1.1rem;
  color: #f8fafc;
  font-weight: 600;
  margin-bottom: 6px;
}

.announcement-item .date, .timeline-date, .article-date {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 6px;
  display: inline-block;
}

.timeline-content p, .announcement-item p, .article-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.read-more {
  font-size: 0.9rem;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}

.read-more:hover {
  color: #60a5fa;
}

@media (max-width: 600px) {
  .timeline-list, .announcement-list {
    padding-left: 24px;
  }

  .timeline-content h3, .announcement-item h3 {
    font-size: 1rem;
  }

  .timeline-content p, .announcement-item p, .article-card p {
    font-size: 0.9rem;
  }

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