:root {
  --bg: #f4f4f4;
  --text: #333;
  --sidebar-bg: #1e1e2f;
  --accent: #00bfa6; /* Mint Green */
  --accent-dark: #00a08a;
  --white: #fff;
  --code-font: 'Roboto Mono', monospace;
  --body-font: 'Poppins', sans-serif;
  --card-bg: #fff;
  --border-color: #eaeaea;
}

body.dark {
  --bg: #121212;
  --text: #f0f0f0;
  --sidebar-bg: #1a1a2e;
  --accent: #4fa3ff; /* Electric Blue */
  --accent-dark: #3a8ef8;
  --white: #1e1e1e;
  --card-bg: #252532;
  --border-color: #2c2c3e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  background-color: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
}

h1, h2, h3 {
  font-weight: 600;
  font-family: var(--body-font);
}

p, li, a {
  font-weight: 400;
  line-height: 1.7;
}

.dashboard {
   display: flex;
}

/* --- SIDEBAR --- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  background-color: var(--sidebar-bg);
  color: white;
  width: 250px;
  padding: 25px;
  box-sizing: border-box;
  transition: background 0.3s ease;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  text-align: center;
}

.profile-photo {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 10px;
  border: 3px solid var(--accent);
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.sidebar h2 {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.sidebar-subtitle {
  font-family: var(--code-font);
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

#toggleTheme {
  background: var(--accent);
  color: white;
  border: none;
  padding: 8px 15px;
  margin: 10px auto;
  display: block;
  border-radius: 5px;
  cursor: pointer;
  font-family: var(--body-font);
  font-weight: 600;
  transition: background 0.3s;
}

#toggleTheme:hover {
  background: var(--accent-dark);
}

.sidebar nav ul {
  list-style: none;
  margin-top: 20px;
  text-align: left;
}

.sidebar nav a {
  text-decoration: none;
  color: white;
  display: block;
  padding: 12px 15px;
  border-radius: 5px;
  transition: background 0.3s, color 0.3s;
  font-weight: 500;
}

.sidebar nav a:hover,
.sidebar nav a.active {
  background-color: var(--accent);
  color: var(--sidebar-bg);
}

/* --- CONTENT --- */
.content {
  flex-grow: 1;
  padding: 40px 50px 40px 300px;
  box-sizing: border-box;
  background: var(--bg);
  transition: background 0.3s ease;
}

section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  padding-top: 20px;
  margin-bottom: 50px;
}

section.show {
  opacity: 1;
  transform: translateY(0);
}

.content h1 {
  font-size: 2.5rem;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 10px;
  margin-bottom: 25px;
  display: inline-block;
}

/* --- Typewriter Effect --- */
#typewriter {
  font-family: var(--code-font);
}
.typewriter-cursor {
  display: inline-block;
  background-color: var(--text);
  width: 10px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { background-color: transparent; }
  50% { background-color: var(--text); }
}

/* --- Experience Timeline --- */
.timeline {
  position: relative;
  margin-left: 20px;
  border-left: 2px solid var(--accent);
  padding: 20px 0;
}
.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 40px;
}
.timeline-dot {
  position: absolute;
  left: -9px;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
}
.timeline-date {
  font-family: var(--code-font);
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
  font-weight: 500;
}
.timeline-content h3 {
  margin-bottom: 5px;
}
.timeline-content ul {
  padding-left: 20px;
  margin-top: 10px;
}

/* --- Project Cards --- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}
.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.project-card h3 {
  margin-bottom: 10px;
  color: var(--accent);
}
.project-tags {
  margin: 15px 0;
}
.tag {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: var(--code-font);
  margin-right: 5px;
  margin-bottom: 5px;
}
.project-link {
  margin-top: auto;
  text-decoration: none;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.3s;
}
.project-link:hover {
  color: var(--accent-dark);
}

/* --- Skills --- */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
}
.skill-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 15px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  transition: transform 0.2s;
}
.skill-item:hover {
  transform: scale(1.05);
  color: var(--accent);
}
.skill-item i {
  font-size: 2rem;
  color: var(--accent);
}
.cert-list {
  padding-left: 20px;
}

/* --- Contact Section --- */
.contact-links {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.contact-btn {
  background: var(--accent);
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background 0.3s;
}
.contact-btn:hover {
  background: var(--accent-dark);
}

/* --- Mobile Responsive --- */
@media screen and (max-width: 992px) {
  .content {
    padding-left: 270px; /* Adjust padding for smaller desktop */
  }
}

@media screen and (max-width: 768px) {
  .dashboard {
    flex-direction: column;
  }
  .sidebar {
    position: relative;
    height: auto;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  .sidebar nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
  }
  .sidebar nav li {
    flex-grow: 1;
    text-align: center;
  }
  .content {
    padding: 20px;
  }
  .content h1 {
    font-size: 2rem;
  }
}

.ci-cd-pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0;
  padding: 20px;
  background: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.stage {
  padding: 10px 20px;
  border-radius: 5px;
  background-color: #ccc;
  color: #333;
  position: relative;
  overflow: hidden;
}
.stage::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: translateX(-100%);
  transition: transform 0.8s ease;
}
/* This class will be added by JavaScript */
.stage.active::after {
  transform: translateX(0);
}
.stage span {
  position: relative;
  z-index: 2;
  color: white; /* Text will be visible on top of the animation */
}
.arrow {
  font-size: 1.5rem;
  color: var(--accent);
}

/* system operational */
.status-widget {
  font-family: var(--code-font);
  font-size: 0.8rem;
  color: #ADFF2F; /* Green Yellow */
  text-align: left;
  margin-top: 0px;
  padding: 8px 10px;
  background: rgba(0,0,0,0.3);
  border-radius: 5px;
  display: flex;
  align-items: center;
}
.status-dot {
  width: 10px;
  height: 10px;
  background: #ADFF2F;
  border-radius: 50%;
  margin-right: 8px;
  animation: blink-live 1.5s infinite;
}
@keyframes blink-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* --- Education Section --- */
.education-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.education-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.education-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.education-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 5px;
}
.education-header i {
  font-size: 1.5rem;
  color: var(--accent);
}
.education-date {
  font-family: var(--code-font);
  color: var(--text);
  opacity: 0.7;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

/* --- New Contact Section --- */
#contact p {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 30px auto;
  font-size: 1.1rem;
}
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border-color: var(--accent);
}
.contact-card i {
  font-size: 2rem;
  color: var(--accent);
}
.contact-info h4 {
  margin: 0 0 5px 0;
}
.contact-info span {
  font-size: 0.9rem;
  opacity: 0.8;
}