/* =======================================
   VANTA Background Layer
======================================= */
#vanta-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Keeps animation behind everything */
  background: #f0f2f5;
}

/* =======================================
   General Body Styles
======================================= */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: transparent; /* Let VANTA show through */
  color: #333;
  line-height: 1.6;
  padding-top: 60px; /* Space for fixed navbar */
  overflow-x: hidden;
}

/* =======================================
   Navbar Styles
======================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(44, 62, 80, 0.95); /* Semi-transparent for overlay effect */
  color: white;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.navbar-brand {
  font-size: 1.6em;
  font-weight: 700;
  color: white;
  margin-left: 30px;
}

.navbar-nav {
  list-style: none;
  margin: 0 30px 0 0;
  padding: 0;
  display: flex;
  gap: 30px;
}

.navbar-nav li {
  margin-left: 0;
}

.navbar-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1em;
  padding: 5px 0;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

.navbar-nav a:hover {
  color: #3498db;
  border-bottom: 2px solid #3498db;
  text-decoration: none;
}

/* =======================================
   Layout Container
======================================= */
.container {
  display: flex;
  max-width: 1200px;
  margin: 20px auto;
  gap: 30px;
  position: relative;
  z-index: 10; /* Ensures content sits above animation */
}

/* =======================================
   Sidebar Styles
======================================= */
.sidebar {
  flex: 0 0 300px;
  background: rgba(255, 255, 255, 0.92); /* Slightly transparent */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  position: sticky;
  top: 80px;
  height: fit-content;
  backdrop-filter: blur(4px);
}

.sidebar .profile-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ecf0f1;
  margin-bottom: 15px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar h2 {
  font-size: 2em;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 5px;
}

.sidebar .role {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 30px;
}

.sidebar-contact {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.sidebar-contact h3 {
  font-size: 1.3em;
  color: #34495e;
  margin-bottom: 15px;
}

.sidebar-contact p {
  margin-bottom: 10px;
}

/* =======================================
   Main Content Styles
======================================= */
.main-content {
  flex: 1;
  z-index: 10;
}

/* =======================================
   Section Styling
======================================= */
section {
  padding: 30px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
  backdrop-filter: blur(3px);
}

section h2 {
  border-bottom: 2px solid #aeb6bf;
  padding-bottom: 15px;
  margin-bottom: 20px;
  color: #2c3e50;
  font-size: 2em;
  font-weight: 600;
}

/* =======================================
   Text, Lists, and Links
======================================= */
ul {
  list-style: none;
  padding: 0;
}

ul li {
  margin: 12px 0;
}

a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* =======================================
   Skills Section
======================================= */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 25px;
}

.skill-category {
  flex: 1 1 280px;
  background: rgba(248, 249, 250, 0.95);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
}

.skill-category h3 {
  margin-top: 0;
  color: #34495e;
  font-size: 1.25em;
  border-bottom: 1px dashed #d0d0d0;
  padding-bottom: 8px;
  margin-bottom: 15px;
}

.skill-category ul {
  padding-left: 20px;
  list-style-type: '👉 ';
}

/* =======================================
   Project Categories
======================================= */
.project-category {
  margin-bottom: 30px;
}

.project-category h3 {
  margin: 0 0 15px 0;
  font-size: 1.5em;
  color: #34495e;
  border-left: 5px solid #3498db;
  padding-left: 15px;
}

.project-category ul li a {
  font-weight: 500;
}

/* =======================================
   Download CV Button
======================================= */
.download-cv a {
  display: inline-block;
  background-color: #28a745;
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  margin-top: 20px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.download-cv a:hover {
  background-color: #218838;
  text-decoration: none;
  transform: translateY(-2px);
}

/* =======================================
   Footer
======================================= */
.site-footer {
  text-align: center;
  padding: 25px;
  background: rgba(44, 62, 80, 0.95);
  color: #ecf0f1;
  margin-top: 25px;
  backdrop-filter: blur(4px);
}

.site-footer p {
  margin: 0;
  font-size: 0.9em;
}

/* =======================================
   Responsive Design
======================================= */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
    margin: 20px;
  }

  .sidebar {
    position: static;
    width: auto;
    margin-bottom: 20px;
  }

  .navbar-nav {
    display: none;
  }

  .navbar {
    justify-content: center;
  }

  body {
    padding-top: 0;
  }
}
