:root {
  --bg-color: #0f172a;
  --text-color: #e2e8f0;
  --accent-color: #38bdf8;
  --card-bg: #1e293b;
  --navbar-bg: rgba(15, 23, 42, 0.9);
  --font-main: "Outfit", sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #7dd3fc;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--navbar-bg);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
}

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

.lang-switch {
  font-weight: 600;
  border: 1px solid var(--accent-color);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.lang-switch:hover {
  background-color: var(--accent-color);
  color: var(--bg-color);
}

/* Main Content */
.main-content {
  padding-top: 5rem;
  min-height: 80vh;
}

/* Hero */
.hero {
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: #94a3b8;
}

/* Timeline */
.timeline-section {
  padding: 3rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
  padding-bottom: 0.5rem;
  left: 50%;
  position: relative;
  transform: translateX(-50%);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 2px;
  background-color: var(--accent-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  right: -10px;
  background-color: var(--bg-color);
  border: 2px solid var(--accent-color);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item:nth-child(even)::after {
  left: -10px;
}

.timeline-content {
  padding: 20px;
  background-color: var(--card-bg);
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.date {
  font-weight: 700;
  color: var(--accent-color);
  display: block;
  margin-bottom: 0.5rem;
}

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

.skill-card {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

.skill-card h3 {
  margin-bottom: 1rem;
  color: var(--accent-color);
}

/* Projects */
.projects-grid {
  margin-top: 20px;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding-bottom: 3rem;
}

.project-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  transition: transform 0.2s, border-color 0.2s;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  color: var(--text-color);
}

.project-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-info {
  padding: 1.5rem;
}

.project-card h3 {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

/* About List */
.about-section {
  margin-top: 30px;
}

.about-list {
  list-style: none;
  text-align: center;
}

.about-list li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 0;
  color: #64748b;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive Timeline */
@media screen and (max-width: 600px) {
  .timeline::after {
    left: 31px;
  }

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

  .timeline-item::after {
    left: 21px !important;
  }

  .timeline-item:nth-child(even) {
    left: 0%;
  }
}
