:root {
  --primary: #9c27b0;
  --bg-color: #f4f6f9;
  --card-bg: #ffffff;
  --text-color: #2c3e50;
  --text-muted: #6c757d;
  --tag-bg: #f3e5f5;
  --tag-text: #7b1fa2;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  --border-radius: 16px;
  --transition: all 0.3s ease;
  --preview-bg: #faf7fc;
  --preview-border: #e1bee7;
}

body.dark-mode {
  --bg-color: #121216;
  --card-bg: #1e1e24;
  --text-color: #f1f1f5;
  --text-muted: #a0a0b0;
  --tag-bg: #381a4a;
  --tag-text: #e1bee7;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  --preview-bg: #282430;
  --preview-border: #4a2d5e;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: var(--transition);
}

/* Welcome Overlay */
.welcome-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #a113b4, #5c0869);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.5s ease;
}

.welcome-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.welcome-box {
  background: var(--card-bg);
  padding: 30px;
  border-radius: var(--border-radius);
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.btn-welcome {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 25px;
  cursor: pointer;
  margin: 15px 0 10px;
  font-weight: 600;
}

.hidden-content {
  display: none;
}

.hidden-content.show-content {
  display: block;
}

/* Navigation Bar */
.navbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  padding: 15px 40px;
  background: #a113b4;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: none;
  margin: 0;
  border: none;
}

/* Header & Hero Section */
.hero-header {
  background: linear-gradient(180deg, #a113b4 0%, #5c0869 100%);
  color: #fff;
  text-align: center;
  padding: 20px 20px 80px;
  margin: 0;
  border: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: opacity 0.3s ease;
}

.nav-links a:hover {
  opacity: 0.8;
}

.hero-content {
  padding-top: 10px;
}

.hero-content .subtitle {
  margin-bottom: 15px;
}

.hero-header .highlight {
  color: #ffd54f;
}

.btn-theme {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
}

.welcome-box .btn-theme {
  background: var(--tag-bg);
  color: var(--tag-text);
}

/* Dropdown Container */
.nav-links li.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border-radius: 12px;
  list-style: none;
  padding: 10px 0;
  min-width: 200px;
  z-index: 200;
  border: 1px solid var(--preview-border);
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--text-color) !important;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
  background: var(--tag-bg);
  color: var(--tag-text) !important;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.active .dropdown-menu {
  display: block;
}

/* Layout */
.container {
  max-width: 900px;
  margin: -40px auto 40px;
  padding: 0 20px;
}

/* Cards */
.card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 25px;
}

.video-layout-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 25px;
  align-items: center;
}

.card-num {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.card-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 0.95rem;
}

/* Media Components */
.profile-card {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}

.bio-details {
  list-style: none;
}

.tech-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.tech-tags span {
  background: var(--tag-bg);
  color: var(--tag-text);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
}

.preview-box {
  background: var(--preview-bg);
  border: 1px solid var(--preview-border);
  border-radius: 12px;
  padding: 20px;
}

.badge-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.badge-list li {
  background: var(--card-bg);
  border: 1px solid var(--preview-border);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.media-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.media-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--preview-bg);
  border: 1px solid var(--preview-border);
  padding: 8px 12px;
  border-radius: 10px;
}

.media-card strong {
  display: block;
  font-size: 0.9rem;
}

.media-card small {
  color: var(--text-muted);
}

.thumb-img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
}

/* Project Link Styling */
.project-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.project-link:hover {
  text-decoration: underline;
  opacity: 0.8;
}

footer {
  text-align: center;
  padding: 40px 20px 20px;
  color: var(--text-muted);
}

.contact-title {
  font-weight: bold;
  font-size: 28px;
  margin-bottom: 8px;
}

footer a {
  font-size: 16px;
  text-decoration: none;
  color: var(--primary);
}

/* Responsive styles */
@media (max-width: 600px) {
  .navbar {
    justify-content: center;
  }
}