:root {
  --bg-color: #f4f4f4;
  --text-color: #333;
  --header-bg: #333;
  --menu-hover: #555;
}

body.dark {
  --bg-color: #1e1e1e;
  --text-color: #f4f4f4;
  --header-bg: #111;
  --menu-hover: #444;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  scroll-behavior: smooth;
}

header {
  background: var(--header-bg);
  padding: 1rem 0;
  position: relative;
  top: 0;
  z-index: 1000;
}

.menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: nowrap;
}

.menu a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.menu a.active {
  border-bottom: 2px solid white;
}

.menu a:hover {
  color: var(--menu-hover);
}

.menu-toggle {
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 1100;
  display: block;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

nav {
  flex: 1;
  text-align: right;
  min-width: 0;
}

#navbar {
  display: none;
  flex-direction: column;
  justify-content: flex-end;
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  z-index: 1000;
}

#navbar.active {
  display: flex;
}

.container {
  max-width: 1000px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  flex-wrap: nowrap;
}

.about-container {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.profile-photo {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #ccc;
}

.bio {
  flex: 1;
  min-width: 250px;
}

/* Experience section styles */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.experience-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.company-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: 50px;
  background: white;
  border: 1px solid #ccc;
}

.responsibilities {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
  list-style-type: disc;
  color: var(--text-color);
}

.responsibilities li {
  margin-bottom: 0.3rem;
}

.logo {
  white-space: nowrap;
  overflow: hidden;
  color: white;
}

.skills-columns {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.skills-column {
  flex: 1 1 300px;
}

.skills-column h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: var(--accent-color);
}

.skills-column ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.skills-column li {
  margin-bottom: 0.4rem;
}

.skill-level {
  font-size: 0.9rem;
  color: #777;
  margin-left: 0.3rem;
}

.cert-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.cert-tile {
  position: relative;
  width: 150px;
  height: 150px;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.3s;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.cert-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s;
}

.cert-hover {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.75);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  padding: 10px;
  text-align: center;
  transition: opacity 0.3s;
  font-size: 0.9rem;
}

.cert-tile:hover img {
  opacity: 0.2;
}

.cert-tile:hover .cert-hover {
  opacity: 1;
}

#podcast .podcast-embed {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
}

.podcast-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tab-button {
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  border: none;
  background: #ddd;
  cursor: pointer;
  font-weight: bold;
  border-radius: 8px;
  transition: background 0.3s;
}

.tab-button.active {
  background: #444;
  color: white;
}

.tab-content {
  display: none;
  justify-content: center;
  margin-bottom: 1rem;
}

.tab-content.active {
  display: flex;
}

.podcast-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.podcast-links a {
  background: #333;
  color: #fff;
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s;
}

.podcast-links a:hover {
  background: #555;
  margin-top: 1rem;
}

#darkToggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
}

main {
  padding: 2rem;
  max-width: 900px;
  margin: auto;
}

section {
  margin-bottom: 3rem;
  display: none;
}

section.active {
  display: block;
}

section h1 {
  margin-bottom: 1rem;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.5rem;
}

/* Responsive menu (optional) */
@media (max-width: 600px) {
  .menu {
    flex-direction: column;
    background: var(--header-bg);
    position: absolute;
    right: 0;
    top: 60px;
    display: none;
    width: 100%;
  }

  .menu.show {
    display: flex;
  }

  #menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    background: var(--header-bg);
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    padding: 1rem;
    border-radius: 0 0 10px 10px;
  }

  .menu.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .container {
    position: relative;
  }
}

@media (min-width: 769px) {
  #navbar {
    display: flex !important;
    position: static;
    flex-direction: row;
  }

  .menu-toggle {
    display: none;
  }
}