* {
  font-family: "Pixelify Sans", fantasy;
}

:root {
  --navbar-bg-light: #ffffff;
  --navbar-bg-dark: #1a1a1a;
  --text-color-light: #212529;
  --text-color-dark: #e9ecef;
  --hover-bg-light: #f8f9fa;
  --hover-bg-dark: #2d2d2d;
}

.navbar {
  background-color: var(--navbar-bg-light);
  padding: 10px 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 2rem;
  margin: 1rem;
  transition: all 0.3s ease;

  z-index: 10;
}

[data-bs-theme="dark"] .navbar {
  background-color: var(--navbar-bg-dark);
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

#navbar-path {
  margin-left: 8px;
  font-size: 18px;
  overflow: hidden;
}

#media {
  height: 220px;
  width: 320px;
}

.left-section {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.right-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.left-section,
.right-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  color: var(--text-color-light);
  padding: 0.4rem 0.7rem;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

[data-bs-theme="dark"] .nav-link {
  color: var(--text-color-dark);
}

.nav-link:hover {
  color: #0d6efd;
  background-color: var(--hover-bg-light);
  padding: 0.3rem 0.3rem 0.3rem 0.3rem;
  border-radius: 0.5rem;
}

[data-bs-theme="dark"] .nav-link:hover {
  background-color: var(--hover-bg-dark);
}

.dark-mode-toggle {
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
}

.dark-mode-toggle:hover {
  background-color: var(--hover-bg-light);
}

[data-bs-theme="dark"] .dark-mode-toggle:hover {
  background-color: var(--hover-bg-dark);
}

.sun-icon,
[data-bs-theme="dark"] .moon-icon {
  display: none;
}

[data-bs-theme="dark"] .sun-icon,
.moon-icon {
  display: block;
}

.nav-text {
  display: inline-block;
  margin-left: 0.2rem;
}

@media (max-width: 496px) {
  .nav-text {
    display: none;
  }
}

#blinking-cursor {
  display: inline-block;
  width: 1.5px;
  height: 0.9em;
  background-color: var(--text-color-light);
  position: relative;
  top: 0em;
  animation: blink 2s steps(2, start) infinite;
}

[data-bs-theme="dark"] #blinking-cursor {
  background-color: var(--text-color-dark);
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/* General Tech Section Styles */
.tech-section {
  padding: 1.5rem;
  font-family: "Pixelify Sans", fantasy;
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  margin: 1rem;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Table Structure */
.tech-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.5rem;
}

/* Category Headers */
.tech-category {
  font-size: 1.1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Light border shadow */
}

[data-bs-theme="dark"] .tech-category:hover {
  /* background-color: var(--navbar-bg-dark); */
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}


/* Tech Items */
.tech-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
}

.tech-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.4rem;
  font-size: 0.9rem;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08); /* Light border shadow */
}
[data-bs-theme="dark"] .tech-item:hover {
  /* background-color: var(--navbar-bg-dark); */
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .tech-items:hover{
  /* background-color: var(--navbar-bg-dark); */
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}

.tech-item:hover {
  transform: translateY(-2px);
  background: var(--item-hover-bg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
}

/* Programming Language-Specific Colors */
.tech-item.python {
  color: #3572a5;
}
.tech-item.java {
  color: #f89820;
}
.tech-item.javascript {
  color: #f7df1e;
}
.tech-item.html {
  color: #e34c26;
}
.tech-item.css {
  color: #563d7c;
}
.tech-item.sql {
  color: #00758f;
}

/* Framework Colors */
.tech-item.spring {
  color: #6db33f;
}
.tech-item.react {
  color: #61dafb;
}
.tech-item.node {
  color: #68a063;
}

/* Tool Colors */
.tech-item.git {
  color: #f34f29;
}
.tech-item.docker {
  color: #0db7ed;
}
.tech-item.aws {
  color: #ff9900;
}

/* Icon Size */
.tech-icon {
  width: 1.2em;
  height: 1.2em;
}

/* Light Theme */
:root[data-theme="light"] {
  --bg-color: rgba(255, 255, 255, 0.9);
  --category-bg: rgba(240, 240, 240, 0.8);
  --item-bg: rgba(240, 240, 240, 0.7);
  --item-hover-bg: rgba(220, 220, 220, 0.9);
  --text-color: #333;
  --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Light shadow */
}

/* Dark Theme */
:root[data-theme="dark"] {
  --bg-color: rgba(30, 30, 30, 0.3);
  --category-bg: rgba(40, 40, 40, 0.5);
  --item-bg: rgba(60, 60, 60, 0.4);
  --item-hover-bg: rgba(80, 80, 80, 0.6);
  --text-color: #e9ecef;
  --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Dark shadow */
}

/* Applying Dynamic Theme Variables */
.tech-section {
  background: var(--bg-color);
  color: var(--text-color);
}

.tech-category {
  background: var(--category-bg);
  color: var(--text-color);
  box-shadow: var(--box-shadow);
}

.tech-item {
  background: var(--item-bg);
  color: var(--text-color);
  box-shadow: var(--box-shadow);
}

.tech-item:hover {
  background: var(--item-hover-bg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Highlight shadow */
}

.subheadings {
  font-size: 20px;
  font-style: normal;
  text-align: justify;
}
/* Mobile Optimizations */
@media (max-width: 768px) {
  .tech-section {
    padding: 1rem;
    margin: 0.5rem;
  }

  .tech-category {
    font-size: 1rem;
  }

  .tech-items {
    padding: 0.5rem;
  }

  .tech-item {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
}

.col-sm-5 {
  padding: 0;
  display: inline-block;
  gap: 30000px;
}

.hero-paragraph {
  margin-bottom: 2.5rem; /* Adds extra space below the paragraph */
  padding-bottom: 2.5rem; /* Adds space above the buttons */
}

/* Buttons */
.hero-buttons {
  display: inline-flex;
  gap: 1rem; /* Space between the buttons */
  margin-bottom: 2.5rem; /* Equal space between buttons and horizontal line */
}

.hero-button {
  padding: 0.75rem 1.5rem;
  margin-bottom: 2rem;
  margin-left: 30px;
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  background: #3572a5;
  border: none;
  border-radius: 0.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
}

/* Button Shadow and Glow */
.hero-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  z-index: -1;
  background: rgba(0, 123, 255, 0.5); /* Soft RGB glow */
  filter: blur(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0.8;
}

.hero-button:hover::before {
  opacity: 1;
  transform: scale(1.1); /* Slightly intensify glow */
}

.hero-button:hover {
  transform: translateY(-3px); /* Lift effect */
  box-shadow: var(--box-shadow-hover);
}

/* Light and Dark Theme-Specific Shadows */
:root[data-theme="light"] {
  --box-shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.2); /* Dark shadow in light mode */
}

:root[data-theme="dark"] {
  --box-shadow-hover: 0 6px 12px rgba(255, 255, 255, 0.2); /* Light shadow in dark mode */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-section {
    padding: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column; /* Stack buttons on smaller screens */
    gap: 1rem;
  }

  .hero-button {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }

  .hero-divider {
    margin-top: 2rem; /* Slight adjustment for smaller screens */
  }
}

.waving_hand {
  display: inline-block;
  font-size: 2rem; /* Adjust size */
  transform-origin: bottom center; /* Set pivot point for rotation */
  animation: wave 2s ease-in-out forwards; /* Animation properties */
}

@keyframes wave {
  0%,
  100% {
    transform: rotate(0deg); /* Neutral position */
  }
  25% {
    transform: rotate(20deg); /* Tilt right */
  }
  75% {
    transform: rotate(-20deg); /* Tilt left */
  }
}
.non-selectable {
  user-select: none; /* Prevent text selection */
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE/Edge */
}
/* General card styles */
.card {
  background-color: var(--card-bg); /* Dynamic background color */
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

.card-header {
  padding: 15px 20px;
  cursor: pointer;
  background-color: var(--card-bg);
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: left;
  font-size: 1rem;
  border-radius: 6px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Soft shadow */
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.card-header:hover {
  transform: translateY(-4px);
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.15); /* Larger shadow on hover */
  background-color: var(--bg-highlight); /* Subtle color change on hover */
  color: var(--text-primary-hover);
  /*glow effect*/
  box-shadow: 0 0 10px #3572a5, 0 0 20px #3572a5, 0 0 40px #3572a5;
  animation: animate 2s linear infinite;
}

.card-body {
  padding: 15px 20px;
  display: none; /* Initially hidden */
  color: var(--text-body);
}

.card-body.active {
  display: block; /* Shown when active */
}

/* Add smooth transitions */
.card-body {
  transition: max-height 0.3s ease-out;
}
/* Light mode theme */
body.light-mode {
  --card-bg: #fff;
  --text-primary: #333;
  --text-body: #666;
}

/* Dark mode theme */
body.dark-mode {
  --card-bg: #222;
  --text-primary: #f2f2f2;
  --text-body: #aaa;
}
/* General Styling for Education Section */
.education-item {
  margin-bottom: 20px;
  padding: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.university {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-primary);
}

.degree {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 5px;
}

.gpa {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 5px;
}

.text-end {
  text-align: right;
}

.location {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.duration {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Responsive Styling */
@media (max-width: 768px) {
  .text-end {
    text-align: left;
    margin-top: 10px;
  }
}
/* Section Styling */
.key-courses-section {
  margin-top: 20px;
  padding: 20px;
  background-color: var(--bg-secondary); /* Adjust for your theme */
  border-radius: 8px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

/* Section Title */
.section-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-primary); /* Theme-based text color */
  margin-bottom: 15px;
  text-align: left;
}

/* Courses List Grid Layout */
.key-courses-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px; /* Space between course cards */
  padding: 0;
  margin: 0;
}

/* Course Card Styling */
.course-card {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary); /* Theme-based text color */
  background-color: var(--bg-card); /* Slightly lighter background */
  padding: 10px 15px;
  border-radius: 6px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Soft shadow */
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.3s ease,
    background-color 0.3s ease;
}

[data-bs-theme="dark"] .course-card {
  background-color: var(--navbar-bg-dark);
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
}

/* Hover Effect for Course Cards */
.course-card:hover {
  transform: translateY(-4px); /* Slight lift effect */
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.15); /* Larger shadow on hover */
  background-color: var(--bg-highlight); /* Subtle color change on hover */
  color: var(--text-primary-hover); /* Theme-based color for hover */
}

/* Responsive Design */
@media (max-width: 768px) {
  .key-courses-list {
    grid-template-columns: 1fr; /* Stack cards on smaller screens */
  }
}

.education-section {
  margin-top: 20px;
  padding: 20px;
  background-color: var(--bg-secondary); /* Adjust for your theme */
  border-radius: 8px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}
[data-bs-theme="dark"] .education-section {
  background-color: var(--navbar-bg-dark);
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
}
.intro {
  margin-top: 20px;
  padding: 20px;
  background-color: var(--bg-secondary); /* Adjust for your theme */
  border-radius: 25px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .intro {
  background-color: var(--navbar-bg-dark);
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}

.cv {
  padding-top: 20px;
  margin-top: 10px;
  padding: 20px;
  text-align: justify;
  font-size: larger;
  user-select: none; /* Prevent text selection */

  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE/Edge */
}

.titles {
  /* text-align: center; */
  font-size: larger;
  font-weight: bold;
  color: var(--text-primary); /* Theme-based text color */
  margin-bottom: 15px;
  text-align: left;
}

.name {
  margin-left: 15px;
  font-size: 1.5rem;
}
