:root {
  --bg-dark: #111;
  --text-light: #f1f1f1;
  --highlight: #ffd700;
  --primary: #1e1e1e;
  --accent: #4da8ff;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

/* Generic Section Styling */
.section {
  padding: 4rem 1rem;
  max-width: 1000px;
  margin: auto;
}

h2 {
  text-align: center;
  color: #cce7ff;
  margin-bottom: 2rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===================== Skills Section ===================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.skill p {
  margin: 0 0 0.5rem;
  font-weight: 500;
}

.skill-bar {
  background-color: #333;
  border-radius: 10px;
  height: 10px;
  overflow: hidden;
}

.skill-fill {
  background-color: var(--highlight);
  height: 100%;
  border-radius: 10px;
  transition: width 0.4s ease-in-out;
}

/* ===================== Project Section ===================== */
.project-section {
  max-width: 900px;
  margin: auto;
}

.project-section h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #444;
  padding-bottom: 0.5rem;
}

/* Project Card */
.project {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 1.5rem;
  border-left: 5px solid var(--highlight);
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.project:hover {
  transform: translateY(-5px);
}

/* Project Header */
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-header h3 {
  color: var(--highlight);
  font-size: 1.3rem;
  margin: 0;
  font-weight: 600;
}

.project-header a {
  color: var(--accent);
  font-size: 0.9rem;
  text-decoration: none;
}

.project-header a i {
  margin-right: 0.3rem;
}

/* Project List */
.project ul {
  padding-left: 1.2rem;
  margin-top: 0.8rem;
}

.project ul li {
  margin-bottom: 0.6rem;
  list-style-type: disc;
  line-height: 1.6;
}

.project ul li strong {
  color: #f5f5f5;
  font-weight: 600;
}

.year {
  font-style: italic;
  font-size: 0.9rem;
  color: #aaa;
  margin-left: 0.5rem;
}

/* ===================== Contact Info ===================== */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-top: 1rem;
  color: var(--text-light);
}

.contact-info i {
  margin-right: 0.5rem;
  color: var(--highlight);
}

.contact-info a {
  color: var(--accent);
  font-weight: 500;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* ===================== Dropdown Projects Styling ===================== */
.navbar .dropdown {
  position: relative;
}

.navbar .dropdown > a {
  font-weight: bold;
  cursor: pointer;
  position: relative;
}

.navbar .dropdown > a::after {
  content: " ▼";
  font-size: 0.7rem;
  color: #ccc;
  transition: transform 0.3s ease;
}

.navbar .dropdown:hover > a::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  list-style: none;
  padding: 0.5rem 0;
  background: #1b1b1b;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;
}

.navbar .dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-menu li {
  padding: 0.5rem 1rem;
}

.dropdown-menu a {
  color: #f1f1f1;
  font-weight: 600;
  display: block;
  transition: 0.3s ease;
}

.dropdown-menu a:hover {
  background-color: #292929;
  color: var(--highlight);
  border-left: 4px solid var(--highlight);
  padding-left: 0.75rem;
}

.profile-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f1c40f; /* Subtle gold border */
    box-shadow: 0 0 8px rgba(241, 196, 15, 0.4); /* Softer glow */
    display: block;
    margin: 2rem auto;
    background-color: #111; /* Match site background to avoid edge glow */
}


.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.9);
}
