:root {
  --primary-color: #0d6efd; /* Bootstrap blue default, adjusted for neon feel if needed */
  --secondary-color: #6610f2;
  --dark-bg: #121212;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
  --text-main: #e0e0e0;
  --text-muted: #a0a0a0;
  --accent-gradient: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

body {
  background-color: var(--dark-bg);
  color: var(--text-main);
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
  background-image: radial-gradient(
      circle at 10% 20%,
      rgba(13, 110, 253, 0.15) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(102, 16, 242, 0.15) 0%,
      transparent 40%
    );
  background-attachment: fixed;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.5px;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Layout Utilities */
section {
  padding: 4rem 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section */
.hero-section {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-muted);
  min-height: 1.6em; /* Prevent layout shift on typing */
}

/* Cards */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  /* height: 100%; REMOVED CAUSING OVERLAP */
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--glass-shadow);
  border-color: rgba(255, 255, 255, 0.3);
}

.project-card .glass-card {
  height: 100%; /* Restore height 100% only for project cards grid alignment */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.project-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Buttons */
.btn-glow {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-glow:hover {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 0 15px var(--primary-color);
}

/* Timeline specific styles */
.timeline-item {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid var(--primary-color);
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--dark-bg);
  border: 2px solid var(--secondary-color);
}

.role-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.company-name {
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.period-badge {
  display: inline-block;
  font-size: 0.85rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

/* Skill Tags */
.skill-tag {
  color: #fff;
  background: rgba(255, 255, 255, 0.08); /* Slightly darker/transparent */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  display: inline-block;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.skill-tag:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* Footer */
footer {
  border-top: 1px solid var(--card-border);
  padding: 3rem 0;
  margin-top: 4rem;
  background: rgba(0, 0, 0, 0.2);
}

.hover-primary:hover {
  color: var(--primary-color) !important;
  transition: color 0.3s ease;
}

/* Top Header */
.top-header {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-socials {
  display: flex;
  gap: 15px;
  font-size: 1.2rem;
}

.header-socials a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.header-socials a:hover {
  color: var(--primary-color);
}

/* Language Switcher */
.lang-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px;
  border-radius: 30px;
  backdrop-filter: blur(10px);
}

.lang-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-btn.active {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.lang-btn:hover:not(.active) {
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .hero-section {
    padding-top: 6rem; /* Make space for header if it wraps */
    min-height: auto;
  }

  .top-header {
    position: relative;
    top: auto;
    right: auto;
    justify-content: center;
    margin-bottom: 2rem;
    padding-top: 1rem;
    width: 100%;
  }

  /* Center hero content on mobile */
  .hero-section .row {
    text-align: center;
  }

  .hero-section .col-lg-8 {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .text-start {
    text-align: center !important;
  }

  .justify-content-start {
    justify-content: center !important;
  }
}

/* Profile Picture */
.profile-picture {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.profile-picture:hover {
  transform: scale(1.05);
  border-color: var(--primary-color);
}

/* Toast Notification Styles */
#toast-notification .toast {
  background-color: var(--card-bg); /* Use semi-transparent dark bg */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--success-color, #198754); /* Green border */
  color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#toast-notification .toast-body i {
  font-size: 1.2rem;
}
