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

body {
  font-family: 'Inter', sans-serif;
  background: #f8f8f8;
  color: #222;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* HEADER */
.site-header {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-name {
  font-weight: 700;
  font-size: 1.2rem;
  color: #800020;
}

.brand-sub {
  font-size: 0.85rem;
  color: #555;
}

/* NAV */
.main-nav a {
  margin-left: 1.5rem;
  font-weight: 500;
  transition: color 0.3s;
  color: #800020;
}

.main-nav a:hover {
  color: #a00030;
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* HERO */
.hero {
  background: #800020;
  color: #fff;
  padding: 4rem 0;
  border-bottom-left-radius: 50px;
  border-bottom-right-radius: 50px;
}

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

.hero-card {
  text-align: center;
}

/* Circular avatar & spacing */
.hero-card .avatar {
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
}

.hero-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-title {
  font-size: 2rem;
  margin-bottom: 0.3rem;
}

.hero-sub {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.hero-meta {
  font-size: 0.95rem;
  color: #e0c8d0;
  margin-bottom: 2rem; /* increased spacing before buttons */
}

.hero-links .btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  margin: 0.5rem;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s;
  background: #fff;
  color: #800020;
}

.hero-links .btn:hover {
  background: #f0d4da;
}

.hero-links .btn.ghost {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.hero-links .btn.ghost:hover {
  background: #fff;
  color: #800020;
}

/* PANEL TITLES */
.panel-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 600;
  position: relative;
}

.panel-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: #800020;
  margin-top: 0.5rem;
  border-radius: 2px;
}

/* PANELS */
.panel {
  margin: 4rem 0;
}

/* TIMELINE */
.timeline {
  position: relative;
  padding-left: 30px;
  margin-top: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10px;
  width: 3px;
  height: 100%;
  background: #ddd;
  border-radius: 2px;
}

.tl-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 20px;
}

.tl-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 15px;
  height: 15px;
  background: #800020;
  border-radius: 50%;
}

.tl-dot.teal {
  background: #a00030;
}

.tl-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.tl-content p {
  font-size: 0.95rem;
  color: #555;
}

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.project-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
  color: #800020;
}

.project-card p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
}

.project-card .link {
  color: #800020;
  font-weight: 500;
}

.project-card .link:hover {
  color: #a00030;
}

/* SKILLS */
.skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.skill-col {
  flex: 1;
  min-width: 220px;
}

.skill-item {
  margin-bottom: 1rem;
}

.skill-name {
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.skill-bar {
  background: #e0e0e0;
  border-radius: 10px;
  height: 10px;
  overflow: hidden;
}

/* Gradient skill bars */
.skill-bar > div {
  height: 100%;
  width: var(--value); /* use the --value from HTML */
  background: linear-gradient(90deg, #800020, #a00030); /* gradient fill */
  border-radius: 10px;
  transition: width 1s ease;
}


/* LANGUAGES */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.lang-card {
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  text-align: center;
  color: #800020;
}

.lang-card p {
  color: #000; /* black for language level */
}

/* FOOTER */
.site-footer {
  padding: 2rem 0;
  text-align: center;
  background: #fff;
  margin-top: 4rem;
  color: #800020;
}

.site-footer div {
  margin-bottom: 0.5rem;
}

.site-footer .small-links {
  font-weight: 500;
}

.site-footer .small-links a {
  margin-left: 1rem;
  font-size: 0.9rem;
  color: #800020;
}

.site-footer .small-links a:hover {
  color: #a00030;
}

/* RESPONSIVE */
@media(max-width:768px){
  .hero-grid {
    gap: 1rem;
  }
  .main-nav {
    position: absolute;
    top: 70px;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem;
    display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a {
    margin: 0.5rem 0;
  }
  .nav-toggle {
    display: block;
  }
}
