/* ===== Base ===== */
body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #0f172a;
  color: #f8fafc;
  display: flex;
  scroll-behavior: smooth;
}

/* ===== Sidebar ===== */
.sidebar {
  width: 250px;
  background-color: #1e293b;
  height: 100vh;
  position: fixed;
  padding: 30px 20px;
  box-shadow: 2px 0 12px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin-bottom: 15px;
  object-fit: cover;
}

.sidebar h2 {
  color: #60a5fa;
  margin-bottom: 8px;
  text-align: center;
}

.sidebar .tagline {
  font-size: 0.9rem;
  color: #cbd5e1;
  text-align: center;
  margin-bottom: 20px;
}

.sidebar .contact-info {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 20px;
  text-align: center;
}

.sidebar .contact-info a {
  color: #38bdf8;
  display: block;
  margin: 4px 0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.sidebar .contact-info a:hover {
  color: #0ea5e9;
}

/* Resume Button */
.btn-download {
  display: inline-block;
  background-color: #0ea5e9;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  margin: 15px 0;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-download:hover {
  background-color: #0284c7;
  transform: translateY(-3px);
}

/* ===== Sidebar Links Two Column ===== */
.sidebar .nav-links {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 5px;
  margin-top: 20px;
}

.sidebar .nav-links a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 10px;
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
  border-radius: 5px;
  transition: background 0.3s, transform 0.2s ease;
}

.sidebar .nav-links a i {
  margin-right: 8px;
  transition: transform 0.3s;
}

.sidebar .nav-links a:hover {
  background-color: #334155;
  color: #0ea5e9;
}

.sidebar .nav-links a:hover i {
  transform: rotate(20deg);
}

/* Active link style */
.sidebar .nav-links a.active {
  background-color: #0ea5e9;
  color: #1e293b;
}

/* ===== Main Content ===== */
.main {
  margin-left: 250px;
  width: calc(100% - 250px);
  padding: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.card {
  background-color: #1e293b;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 25px;
  flex: 1 1 calc(48% - 20px);
  min-width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.2);
}

.card h2 {
  color: #38bdf8;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  border-left: 4px solid #0ea5e9;
  padding-left: 10px;
}

.card h2 i {
  margin-right: 10px;
  color: #60a5fa;
}

/* ===== Lists ===== */
ul {
  padding-left: 20px;
  line-height: 1.8;
}

/* Highlight text */
.highlight, .proj-title, .cert-course {
  font-weight: 600;
  color: #38bdf8;
}

/* Bullet styling */
.proj-list li::before,
.cert-list li::before {
  content: "\2022"; /* bullet */
  color: #ffffff; /* white bullet */
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* Lists without default bullets */
.proj-list, .cert-list {
  list-style: none;
  padding-left: 0;
}

.proj-list li, .cert-list li {
  margin-bottom: 12px;
  line-height: 1.6;
}

/* Inline links */
.view-link {
  color: #38bdf8;
  margin-left: 8px;
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.view-link:hover {
  color: #0ea5e9;
  text-decoration: underline;
}

/* Standard links */
.link {
  color: #38bdf8;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

footer {
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 40px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
  .main {
    margin-left: 0;
    width: 100%;
    padding: 20px;
    flex-direction: column;
  }
  .card {
    width: 100%;
  }
}
