

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
  font-family: "Open Sans", sans-serif;
  color: #c8c9cc;
  background: #0a0e17;
}

a {
  color: #149ddd;
}

a:hover {
  color: #37b3ed;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Raleway", sans-serif;
  color: #e8e9eb;
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50px;
  right: 15px;
  bottom: 15px;
  background: #149ddd;
  color: #fff;
  transition: display 0.5s ease-in-out;
  z-index: 99999;
}

.back-to-top i {
  font-size: 24px;
  position: absolute;
  top: 7px;
  left: 8px;
}

.back-to-top:hover {
  color: #fff;
  background: #2eafec;
  transition: background 0.2s ease-in-out;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  transition: all ease-in-out 0.5s;
  z-index: 9997;
  transition: all 0.5s;
  padding: 0 15px;
  background: #060a12;
  border-right: 1px solid #1a1e2e;
  overflow-y: auto;
}

#header .profile img {
  margin: 15px auto;
  display: block;
  width: 120px;
  border: 8px solid #1a1e2e;
}

#header .profile h1 {
  font-size: 24px;
  margin: 0;
  padding: 0;
  font-weight: 600;
  -moz-text-align-last: center;
  text-align-last: center;
  font-family: "Poppins", sans-serif;
}

#header .profile h1 a, #header .profile h1 a:hover {
  color: #fff;
  text-decoration: none;
}

#header .profile .social-links a {
  font-size: 18px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

#header .profile .social-links a:hover {
  background: #149ddd;
  color: #fff;
}

#header .nav-menu {
  padding: 15px 0;
}

#header .nav-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#header .nav-menu ul li {
  padding: 0;
  margin: 0;
}

#header .nav-menu ul li a {
  font-size: 14px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  color: #8a8d98;
  transition: 0.3s;
}

#header .nav-menu ul li a i {
  font-size: 16px;
  margin-right: 10px;
  color: #5a5d68;
}

#header .nav-menu ul li a:hover, #header .nav-menu ul li.active > a {
  color: #fff;
}

#header .nav-menu ul li a:hover i, #header .nav-menu ul li.active > a i {
  color: #149ddd;
}

/* Nav toggle */
.nav-toggle {
  position: fixed;
  right: 15px;
  top: 15px;
  z-index: 9998;
  background: #149ddd;
  color: #fff;
  border: 0;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 4px;
}

.nav-hidden #header {
  margin-left: -300px;
}

.nav-hidden .nav-toggle i::before {
  content: "\e937";
}

/*--------------------------------------------------------------
# Mobile nav toggle
--------------------------------------------------------------*/
.mobile-nav-toggle {
  position: fixed;
  right: 15px;
  top: 15px;
  z-index: 9998;
  background: #149ddd;
  color: #fff;
  border: 0;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 4px;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  height: 100vh;
  background: url("../img/hero-bg.jpg") center center no-repeat;
  background-size: cover;
  position: relative;
}

#hero::before {
  content: "";
  background: rgba(4, 8, 18, 0.85);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

#hero .hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 15px;
}

#hero h1 {
  margin: 0 0 10px 0;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  font-family: "Poppins", sans-serif;
}

#hero p {
  color: #c8c9cc;
  margin: 0;
  font-size: 20px;
  font-weight: 300;
}

#hero .typed {
  color: #149ddd;
  font-weight: 600;
}

.gsoc-logo {
  max-height: 100px;
  width: auto;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.6));
}

.gsoc-hero-img {
  max-height: 300px;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
}

/*--------------------------------------------------------------
# Sections
--------------------------------------------------------------*/
section {
  padding: 60px 0;
  overflow: hidden;
}

.section-bg {
  background: #0d1220;
}

.section-title {
  text-align: center;
  padding-bottom: 30px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: #e8e9eb;
  position: relative;
  display: inline-block;
  padding: 0 0 10px 0;
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background: #149ddd;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.section-title p {
  margin-bottom: 0;
  color: #7a7d88;
  font-size: 15px;
}

.container {
  margin-left: 300px;
}

#main {
  margin-left: 300px;
}

#footer {
  margin-left: 300px;
  text-align: center;
  padding: 20px 0;
  color: #5a5d68;
  font-size: 14px;
  border-top: 1px solid #1a1e2e;
}

.content {
  padding-top: 30px;
}

.about-me p {
  margin-bottom: 15px;
  font-size: 15px;
}

/*--------------------------------------------------------------
# Project Section
--------------------------------------------------------------*/
.project-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-list li {
  padding: 8px 0;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  color: #b0b3bc;
}

.project-list li i {
  color: #149ddd;
  margin-right: 10px;
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  background: #149ddd;
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

/*--------------------------------------------------------------
# Repos Section
--------------------------------------------------------------*/
.repo-card {
  background: #111623;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  border: 1px solid #1a1e2e;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.repo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border-color: #252a3a;
}

.repo-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.repo-header i {
  font-size: 24px;
  margin-right: 10px;
  color: #149ddd;
}

.repo-header h4 {
  margin: 0;
  font-size: 18px;
}

.repo-header h4 a {
  color: #e8e9eb;
}

.repo-header h4 a:hover {
  color: #149ddd;
}

.repo-card p {
  color: #7a7d88;
  font-size: 14px;
  line-height: 1.6;
}

.repo-stats {
  display: flex;
  gap: 18px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #1a1e2e;
  font-size: 14px;
  color: #8a8d98;
}

.repo-stats span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.repo-stats i {
  color: #149ddd;
}

/*--------------------------------------------------------------
# Timeline
--------------------------------------------------------------*/
.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #149ddd, #0d6ea8);
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 10px 40px 30px;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-badge {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  z-index: 1;
  top: 15px;
  box-shadow: 0 0 0 4px #0d1220, 0 0 0 6px #149ddd;
}

.timeline-item.left .timeline-badge {
  right: -18px;
}

.timeline-item.right .timeline-badge {
  left: -18px;
}

.timeline-badge.merged {
  background: #28a745;
}

.timeline-badge.merged::after {
  box-shadow: 0 0 0 4px #0d1220, 0 0 0 6px #28a745;
}

.timeline-badge.open {
  background: #f0ad4e;
}

.timeline-badge.open::after {
  box-shadow: 0 0 0 4px #0d1220, 0 0 0 6px #f0ad4e;
}

.timeline-panel {
  background: #111623;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #1a1e2e;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border-color: #252a3a;
}

.timeline-item.left .timeline-panel::after {
  content: '';
  position: absolute;
  top: 20px;
  right: -8px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid #111623;
}

.timeline-item.right .timeline-panel::after {
  content: '';
  position: absolute;
  top: 20px;
  left: -8px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid #111623;
}

.timeline-date {
  font-size: 12px;
  font-weight: 600;
  color: #149ddd;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.timeline-repo {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: #3a3d48;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 8px;
}

.timeline-repo.highlight-repo {
  background: #149ddd;
}

.timeline-panel h4 {
  font-size: 15px;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.timeline-panel h4 a {
  color: #e8e9eb;
}

.timeline-panel h4 a:hover {
  color: #149ddd;
}

.timeline-panel p {
  font-size: 13px;
  color: #7a7d88;
  margin: 0 0 10px 0;
  line-height: 1.5;
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.merged {
  background: rgba(40, 167, 69, 0.15);
  color: #4cd67a;
}

.status-badge.open {
  background: rgba(240, 173, 78, 0.15);
  color: #f0c674;
}

/*--------------------------------------------------------------
# Stats
--------------------------------------------------------------*/
.stat-card {
  background: #111623;
  border-radius: 8px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #1a1e2e;
  margin-bottom: 20px;
  transition: transform 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: #252a3a;
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: #149ddd;
  font-family: "Poppins", sans-serif;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: #7a7d88;
  font-weight: 500;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 1199px) {
  #header {
    left: -300px;
  }

  #main, #footer, .container {
    margin-left: 0;
  }

  .nav-toggle {
    display: none;
  }
}

@media (max-width: 768px) {
  #hero h1 {
    font-size: 32px;
  }

  #hero p {
    font-size: 16px;
  }

  .timeline-container::before {
    left: 30px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
    text-align: left !important;
  }

  .timeline-item.right {
    left: 0;
  }

  .timeline-item.left .timeline-badge,
  .timeline-item.right .timeline-badge {
    left: 12px;
    right: auto;
  }

  .timeline-item.left .timeline-panel::after,
  .timeline-item.right .timeline-panel::after {
    left: -8px;
    right: auto;
    border-right: 8px solid #111623;
    border-left: none;
  }

  .stat-number {
    font-size: 28px;
  }

  .section-title h2 {
    font-size: 26px;
  }
}

@media (max-width: 576px) {
  .repo-stats {
    flex-direction: column;
    gap: 8px;
  }

  .tech-tags {
    justify-content: center;
  }
}
