/* Animated Name and Cursor */
.logo-container {
  display: flex;
  align-items: center;
  min-height: 2.5rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.logo {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
}

.cursor {
  display: inline-block;
  width: 3px;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  color: var(--accent);
  font-weight: 400;
}

@keyframes blink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

/* Hero and About Section Layout */
.hero-about-container {
  display: flex;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  gap: 2rem;
  position: relative;
}

.hero {
  flex: 1;
  max-width: 45%;
  padding: 2.5rem 1.5rem 2rem; /* Adjusted top padding */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start; /* Align to top */
  margin-top: 1rem; /* Fine-tune vertical position */
}

.about-section {
  flex: 1;
  max-width: 50%;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 248, 255, 0.95));
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  color: #2d3748;
  line-height: 1.8;
  border: 1px solid rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--highlight));
  opacity: 0.9;
}

.about-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.about-section h2 {
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  font-size: 2.25rem;
  font-weight: 800;
  font-family: 'Quicksand', sans-serif;
  position: relative;
  display: inline-block;
  letter-spacing: -0.5px;
}

.about-section h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.about-section p {
  color: #4a5568;
  margin-bottom: 1.75rem;
  font-size: 1.1rem;
  line-height: 1.8;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.about-section a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.about-section a::before {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.about-section a:hover,
.about-section a:focus {
  color: var(--highlight);
  text-decoration: none;
  outline: none;
}

.about-section a:hover::before,
.about-section a:focus::before {
  width: 100%;
}

/* Decorative elements */
.about-section::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(186, 104, 200, 0.1) 0%, rgba(186, 104, 200, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.vertical-divider {
  position: absolute;
  left: 50%;
  top: 2rem;
  bottom: 2rem;
  width: 1px;
  background-color: var(--accent);
  opacity: 0.3;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-about-container {
    flex-direction: column;
    padding: 1rem;
  }
  
  .hero, .about-section {
    max-width: 100%;
    width: 100%;
  }
  
  .vertical-divider {
    display: none;
  }
}

/* --- Contact Form Heading and Button Modernization --- */
.contact-title-main {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  text-align: center;
  margin-bottom: 0.7em;
  letter-spacing: 0.01em;
  margin-top: -0.8em;
}

.contact-btn-modern {
  font-family: 'Quicksand', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  border-radius: 30px;
  padding: 0.8em 2.3em;
  background: linear-gradient(90deg, var(--accent) 60%, var(--highlight) 100%);
  box-shadow: 0 6px 18px rgba(186, 104, 200, 0.13);
  transition: background 0.3s, color 0.3s, transform 0.2s;
}
.contact-btn-modern:hover,
.contact-btn-modern:focus {
  background: linear-gradient(90deg, var(--highlight) 60%, var(--accent) 100%);
  color: #fff;
  outline: none;
  transform: translateY(-2px) scale(1.04);
}

.contact-info {
  margin-top: -0.2rem;
  margin-bottom: 0.2rem;
  padding-top: 1.1rem;
}
/* --- Contact Form Enhancements --- */
.contact-intro {
  font-size: 1.13rem;
  color: var(--text-light);
  margin-bottom: 2.2rem;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  word-break: break-word;
}

.contact-flex-row {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1 1 320px;
  min-width: 260px;
  max-width: 420px;
  background: #f9f6fd;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(186, 104, 200, 0.10), 0 1.5px 4px rgba(123, 31, 162, 0.07);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  font-size: 1.08rem;
  color: var(--text-dark);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
.contact-info h3 {
  font-size: 1.13rem;
  color: var(--accent);
  margin-bottom: 0.7em;
  font-weight: 700;
}
.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8em;
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: 0.7em;
  font-size: 1.05rem;
}
.contact-info i {
  color: var(--accent);
  font-size: 1.15em;
}
.contact-info a {
  color: var(--highlight);
  text-decoration: none;
  word-break: break-all;
}
.contact-info a:hover,
.contact-info a:focus {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .contact-flex-row {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }
  .contact-info {
    max-width: 100%;
    margin-top: 2rem;
    align-items: center;
    text-align: center;
    padding: 1.2rem 0.7rem;
  }
}
/* === Contact Form Section === */
.contact-section {
  max-width: 1000px;
  margin: 4rem auto 3rem auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(186, 104, 200, 0.10), 0 1.5px 4px rgba(123, 31, 162, 0.07);
  padding: 2.5rem 2rem 2rem 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.form-group {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
}

.form-group.full-width {
  flex-basis: 100%;
}

.contact-form label {
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.4em;
  font-size: 1.05rem;
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 1.05rem;
  padding: 0.7em 1em;
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  background: #f9f6fd;
  color: var(--text-dark);
  margin-bottom: 0.2em;
  transition: border 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--highlight);
  outline: none;
  box-shadow: 0 0 0 2px #e1bee7;
}

.contact-btn {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 25px;
  padding: 0.7em 2em;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(186, 104, 200, 0.18);
  transition: background 0.3s, color 0.3s, transform 0.2s;
}

.contact-btn:hover,
.contact-btn:focus {
  background: var(--highlight);
  color: #fff;
  outline: none;
  transform: translateY(-2px) scale(1.04);
}

#form-status {
  min-height: 1.5em;
  font-size: 1.05rem;
  margin-top: 0.5em;
}

/* Responsive Contact Form */
@media (max-width: 700px) {
  .contact-section {
    padding: 1.2rem 0.5rem;
    border-radius: 10px;
  }
  .form-row {
    flex-direction: column;
    gap: 0.7rem;
  }
  .contact-form input,
  .contact-form textarea {
    font-size: 1rem;
    padding: 0.6em 0.7em;
  }
}
:root {
  --bg-gradient: linear-gradient(to right, #fce4ec, #e1f5fe);
  --bg-light: #f8f9fa;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-section: rgba(255, 255, 255, 0.95);
  --accent: #ba68c8;
  --highlight: #7b1fa2;
  --accent-hover: #8e24aa;
  --text-dark: #3e3e3e;
  --text-light: #6f6f6f;
  --text-muted: #666666;
  --border-color: rgba(0, 0, 0, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.1);
  --card-bg: rgba(255, 255, 255, 0.8);
  --header-bg: rgba(255, 255, 255, 0.95);
  --footer-bg: #f8f9fa;
}

body {
  margin: 0;
  padding-top: 70px; /* offset for fixed header */
  font-family: 'Quicksand', sans-serif;
  background: var(--bg-gradient);
  color: var(--text-dark);
  line-height: 1.75;
  scroll-behavior: smooth;
  transition: background 0.5s ease, color 0.5s ease;
}

/* === Fixed Top Header === */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 6px var(--shadow-color);
  z-index: 1000;
  transition: background 0.3s ease;
}

.site-name {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--accent);
}

/* === Navigation Bar === */
.navbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1rem 0;
}

.navbar-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
  align-items: center;
}

.navbar-links li {
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.navbar-links a {
  color: var(--accent); /* Changed to match the accent color */
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  position: relative;
  opacity: 0.9;
}

.navbar-links a:hover,
.navbar-links a:focus,
.navbar-links a:active {
  color: var(--highlight);
  background-color: rgba(186, 104, 200, 0.1);
  outline: none;
  opacity: 1;
  transform: translateY(-1px);
}

/* Add underline effect on hover */
.navbar-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-links a:hover::after,
.navbar-links a:focus::after {
  width: 80%;
}

/* Dropdown menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--bg-color);
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 6px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.dropdown-content a {
  color: var(--text-color);
  padding: 0.75rem 1rem;
  text-decoration: none;
  display: block;
  transition: background-color 0.2s;
}

.dropdown-content a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Improve text readability */
body {
  color: var(--text-color);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p, li, .about-text, .section-description {
  color: var(--text-color);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color, #fff);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Ensure sufficient contrast for accessibility */
:root {
  --text-color: #e0e0e0;
  --heading-color: #ffffff;
  --accent: #BA68C8;
  --bg-color: #121212;
  --header-height: 70px; /* Height of your fixed header */
}

/* Add scroll padding to account for fixed header */
html {
  scroll-padding-top: calc(var(--header-height) + 20px); /* Header height + some extra space */
  scroll-behavior: smooth;
}

/* Ensure section headings are visible when navigated to */
:target::before {
  content: "";
  display: block;
  height: calc(var(--header-height) + 20px);
  margin: calc(-1 * (var(--header-height) + 20px)) 0 0;
  visibility: hidden;
}

/* Specific section spacing */
#skills,
#awards,
#interests-activities {
  scroll-margin-top: calc(var(--header-height) + 20px);
  padding-top: 2rem;
}

/* For smooth scrolling */
html {
  scroll-snap-type: y proximity;
}

/* Light mode adjustments */
[data-theme="light"] {
  --text-color: #333333;
  --heading-color: #000000;
  --bg-color: #ffffff;
}

/* === Hero Section === */
.hero {
  text-align: center;
  padding: 5rem 2rem 3rem;
  background: var(--bg-gradient);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--accent);
  font-family: monospace;
  letter-spacing: 0.1em;
  border: 2px solid var(--accent);
  padding: 0.2rem 0.75rem;
  border-radius: 12px;
  cursor: default;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}

.hero .hero-roles {
  width: 100%;
  max-width: 800px;
  margin: 1rem 0;
}

.roles-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.roles-list li {
  font-size: 1.3rem; /* Edit this value to change the font size */
  color: #000000; /* Changed to black */
  line-height: 1.6;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
  border-left: 3px solid var(--accent);
}

.roles-list li:hover {
  background: rgba(186, 104, 200, 0.1);
  transform: translateX(5px);
}

.roles-list li strong {
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 768px) {
  .roles-list li {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
  }
}

#darkToggle {
  cursor: pointer;
  border: none;
  background: var(--accent);
  color: white;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 1.25rem;
  border-radius: 25px;
  box-shadow: 0 5px 15px rgba(186, 104, 200, 0.4);
  transition: all 0.3s ease;
  margin-top: 1rem;
  letter-spacing: 0.5px;
}

#darkToggle:hover,
#darkToggle:focus {
  background: var(--highlight);
  outline: none;
}

/* === Scroll Callout Section === */
.scroll-callout {
  text-align: center;
  padding: 2rem 0;
  margin: 1rem 0;
}

.scroll-callout-content {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ba68c8;
  font-family: 'Quicksand', sans-serif;
  font-size: 2.55rem;
  font-weight: 500;
  animation: bounce 2s infinite;
  opacity: 0.9;
}

.scroll-callout i {
  font-size: 1.8rem;
  color: #ba68c8;
}

.scroll-callout span {
  color: #ba68c8;
  font-size: 2.55rem;
  line-height: 1.2;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* === Main Content === */
main {
  padding: 2rem 1rem;
}

/* === Dark Mode Variables === */
.dark-mode {
  --bg-gradient: linear-gradient(to right, #1a1a2e, #16213e);
  --bg-light: #2d2d44;
  --bg-card: rgba(45, 45, 68, 0.8);
  --bg-section: rgba(26, 26, 46, 0.9);
  --accent: #bb86fc;
  --highlight: #bb86fc;
  --accent-hover: #8b5cf6;
  --text-dark: #ffffff;
  --text-light: #e0e0e0;
  --text-muted: #a0a0a0;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.3);
  --card-bg: rgba(45, 45, 68, 0.6);
  --header-bg: rgba(26, 26, 46, 0.95);
  --footer-bg: #1a1a2e;
}

/* --- Enhanced Interests & Activities Section --- */
.interests-activities-section {
  padding: 4rem 0;
  background: var(--bg-light);
  border-radius: 16px;
  margin: 2rem auto;
  max-width: 1400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.interests-activities-container {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  padding: 0 2rem;
  margin-top: 2rem;
}

.interests-activities-column {
  flex: 1;
  min-width: 0;
}

.interests-activities-section .section-title {
  text-align: center;
  color: var(--text-dark);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-family: 'Quicksand', sans-serif;
}

.subsection-title {
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  font-family: 'Quicksand', sans-serif;
  position: relative;
  padding-bottom: 0.5rem;
}


.subsection-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--highlight));
  border-radius: 3px;
}

.card-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.interest-card {
  background: white;
  padding: 1.25rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.5;
  border-left: 3px solid var(--accent);
}

.interest-card i {
  color: var(--accent);
  font-size: 1.25rem;
  min-width: 1.5rem;
  text-align: center;
}

.interest-card:hover, .interest-card:focus {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 24px rgba(123, 31, 162, 0.13), 0 2px 8px rgba(186, 104, 200, 0.13);
  background: var(--bg-gradient);
  color: var(--accent);
}

.divider-vertical {
  width: 2px;
  background: linear-gradient(to bottom, var(--accent) 0%, #fff 100%);
  min-height: 320px;
  align-self: stretch;
  border-radius: 2px;
  margin: 0 1.5rem;
  opacity: 0.5;
}

@media (max-width: 900px) {
  .interests-activities-container {
    flex-direction: column;
    gap: 2.5rem;
    align-items: stretch;
  }
  .divider-vertical {
    display: none;
  }
}

/* --- Social Sidebar with Pink Line and No Overlap --- */
.social-sidebar {
  position: fixed;
  top: 50%;
  left: 0;
  width: 70px; /* Reserve space for sidebar and line */
  height: auto;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none; /* Prevents accidental overlap clicks */
}

.social-sidebar-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  pointer-events: auto; /* Allow interaction with icons */
}

.social-sidebar-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  z-index: 0;
  transform: translateX(-50%);
  opacity: 0.4;
}

.social-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: relative;
  z-index: 1;
}

.social-sidebar li {
  margin: 0;
  padding: 0;
}

.social-sidebar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: var(--accent);
  font-size: 1.3rem;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  opacity: 0.9;
}

.social-sidebar a:hover,
.social-sidebar a:focus {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(186, 104, 200, 0.25);
  outline: none;
  opacity: 1;
}

.social-sidebar a[data-tooltip]:hover::after,
.social-sidebar a[data-tooltip]:focus::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 120%;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: var(--accent);
  padding: 0.3em 0.8em;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(186, 104, 200, 0.13);
  white-space: nowrap;
  font-size: 0.98rem;
  z-index: 10;
}

@media (max-width: 900px) {
  .social-sidebar {
    display: none;
  }
}

/* Prevent main content from being overlapped by sidebar */
body {
  padding-left: 70px; /* Same as .social-sidebar width */
}

@media (max-width: 900px) {
  body {
    padding-left: 0;
  }
}

/* --- Hero Buttons: Restore horizontal, pill-shaped, and icon spacing --- */
.hero-buttons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent);
  color: white;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-size: 1.08rem;
  box-shadow: 0 5px 15px rgba(186, 104, 200, 0.18);
  transition: background 0.3s, color 0.3s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.hero-btn i {
  font-size: 1.2em;
}

.hero-btn:hover,
.hero-btn:focus {
  background: var(--highlight);
  color: #fff;
  outline: none;
  transform: translateY(-2px) scale(1.04);
}

/* Featured Projects Section */
.featured-projects-section {
  margin: 4rem 0 3rem 0;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
  text-align: center;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  margin-top: 0.5rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.project-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(186, 104, 200, 0.10), 0 1.5px 4px rgba(123, 31, 162, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 8px 28px rgba(123, 31, 162, 0.13), 0 2px 8px rgba(186, 104, 200, 0.13);
}

.project-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  display: block;
}

.project-content {
  padding: 1.3rem 1.2rem 1.1rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.5rem 0;
  text-align: left;
}

.project-desc {
  color: var(--text-light);
  font-size: 1.05rem;
  text-align: left;
  margin: 0;
}

.projects-btn-row {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.projects-btn {
  font-size: 1.08rem;
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 5px 15px rgba(186, 104, 200, 0.18);
  transition: background 0.3s, color 0.3s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.projects-btn:hover,
.projects-btn:focus {
  background: var(--highlight);
  color: #fff;
  outline: none;
  transform: translateY(-2px) scale(1.04);
}

@media (max-width: 600px) {
  .project-thumb {
    height: 140px;
  }
}

/* --- Skills Section --- */
.skills-section {
  margin: 4rem auto 3rem auto;
  max-width: 1200px;
  padding: 0 1rem;
  text-align: center;
}

.skills-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.2rem;
  letter-spacing: 0.02em;
}

.skills-underline {
  width: 70px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0 auto 2.5rem auto;
  opacity: 0.5;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 0.5rem 4.5rem;
  justify-items: center;
  margin: 0 auto;
  max-width: 1600px;
  padding: 0.5rem 0;
  position: relative;
  z-index: 1;
}

.skill-category {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(186, 104, 200, 0.10), 0 1.5px 4px rgba(123, 31, 162, 0.07);
  padding: 2rem 1.8rem 1.8rem 1.8rem;
  text-align: left;
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.18s, box-shadow 0.18s;
  margin: 1.5rem 0 3rem; /* Increased bottom margin to prevent overlap */
  position: relative;
  z-index: 2; /* Ensure cards stack properly */
}

/* Add subtle separator between skill categories */
.skill-category::after {
  content: '';
  position: absolute;
  bottom: -1.75rem;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(186, 104, 200, 0.2), transparent);
  opacity: 0.7;
  z-index: 1;
}

.skill-category:hover,
.skill-category:focus-within {
  transform: translateY(-4px) scale(1.025);
  box-shadow: 0 8px 28px rgba(123, 31, 162, 0.13), 0 2px 8px rgba(186, 104, 200, 0.13);
}

.skill-category h3 {
  font-size: 1.25rem; /* Slightly larger font size */
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 1.2rem 0; /* Adjusted margins */
  padding-bottom: 0.7rem; /* Added bottom padding */
  border-bottom: 2px solid rgba(186, 104, 200, 0.15); /* Subtle bottom border */
  width: 100%; /* Full width to contain the border */
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.skill-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-category li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.9rem; /* Increased bottom margin for better separation */
  font-size: 1.06rem; /* Slightly larger font */
  color: var(--text-dark);
  line-height: 1.5; /* Better line height for readability */
  padding-left: 0.3rem; /* Slight indent for better alignment */
}

.skill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--bg-gradient);
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
  border-radius: 6px; /* Rounded corners */
  box-shadow: 0 1px 4px rgba(186, 104, 200, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.skill-category li:hover .skill-icon {
  transform: scale(1.1); /* Slight scale on hover */
  box-shadow: 0 2px 6px rgba(186, 104, 200, 0.2);
}

.skill-badge {
  margin-left: auto;
  padding: 0.2em 0.9em;
  border-radius: 12px;
  font-size: 0.92em;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 1px 4px rgba(186, 104, 200, 0.10);
  letter-spacing: 0.01em;
  vertical-align: middle;
}

.skill-basic { background: #bdbdbd; }
.skill-intermediate { background: #64b5f6; }
.skill-proficient { background: #81c784; }
.skill-advanced { background: #ba68c8; }
.skill-expert { background: #ffb300; }

@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 1rem 0;
  }
  .skill-category {
    max-width: 100%;
    margin: 0.5rem 0 3rem; /* Increased bottom margin for mobile */
  }
  .skill-category::after {
    bottom: -1.5rem;
    left: 15%;
    right: 15%;
  }
}

/* --- Awards + Recommendations Section --- */
.awards-section {
  margin: 4rem auto 2rem auto;
  max-width: 1200px;
  padding: 0 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
  justify-items: center;
  max-width: 100%;
  margin: -10px auto;
  padding: 1rem 0;
}

.award-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(186, 104, 200, 0.10);
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
  width: 100%;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  min-height: 60px;
  box-sizing: border-box;
}

.award-card:hover,
.award-card:focus-within {
  box-shadow: 0 6px 20px rgba(123, 31, 162, 0.13);
  transform: translateY(-2px) scale(1.02);
}

.award-icon {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.award-title {
  font-size: 1.50rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.award-org {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.award-desc {
  font-size: 1.05rem;
  color: #000000;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .awards-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    max-width: 500px;
    padding: 0.5rem 1rem;
  }
  
  .award-card {
    max-width: 100%;
    margin: 0;
    padding: 1.2rem;
  }
}

.awards-title {
  font-size: 3.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.2rem;
  letter-spacing: 0.01em;
}

.ampersand {
  color: var(--highlight);
  font-size: 1.1em;
  font-weight: 700;
}

.awards-underline {
  width: 70px;
  height: 4px;
  background: var(--accent);
  background: var(--bg-gradient);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(186, 104, 200, 0.10);
  margin-top: 2px;
}

.award-title {
  font-weight: 700;
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.1rem;
  text-align: left;
}

.award-org {
  font-size: 0.93rem;
  color: var(--text-light);
  margin-bottom: 0.1rem;
  text-align: left;
}

.award-desc {
  font-size: 0.92rem;
  color: var(--text-dark);
  text-align: left;
}
/* ——— Endorsements Text Formatting Fix ——— */
.endorsement-quote {

  line-height: 1.2; /* adjust line-height to reduce spacing */
  margin: 0; /* ensure no margins are introducing gaps */
  padding: 0; /* ensure no padding is introducing gaps */
  display: block; /* ensure display property is set correctly */
  white-space: pre-line; /* alternative to nowrap, allows line breaks */
  word-break: normal; /* reset word-break to normal behavior */
  overflow-wrap: normal; /* reset overflow-wrap to normal behavior */
  box-sizing: border-box;
  text-align: left;
  width: 100%;
  max-width: 100%;
  line-height: 1.4;
  padding: 0;
}

/* completely remove manual <br> breaks inside endorsements */
.endorsement-quote br {
  display: none !important;
}

/* Endorsements Section */
.endorsements-section {
  margin: 3rem auto 3rem auto;
  max-width: 1200px;
  padding: 0 1rem;
  text-align: center;
  margin-top: 0px;
}

.endorsements-title {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.2rem;
  letter-spacing: 0.01em;
}

.endorsements-underline {
  width: 70px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0 auto 2.5rem auto;
  opacity: 0.5;
}

.endorsements-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.endorsement-card {
background: #fff;
border-radius: 18px;
box-shadow: 0 2px 18px rgba(186,104,200,0.10);
padding: 2.5rem 2.2rem 2rem 2.2rem;
min-width: 320px;
max-width: 600px;
width: 100%;
min-height: 320px;
max-height: none;
display: flex;
flex-direction: column;
align-items: center;
position: relative;
transition: box-shadow 0.2s, transform 0.2s;
margin: 0 auto;
text-align: center;
justify-content: center;
box-sizing: border-box;
overflow: visible;
word-break: break-word;
white-space: normal;
}

.endorsement-card .rec-avatar-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 0.7rem auto;
  border: 3px solid var(--accent);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.endorsement-card .rec-avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.endorsement-card .rec-quote {
  color: var(--highlight);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.endorsement-card .rec-content {
  text-align: center;
}

.endorsement-card .rec-name {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.08rem;
  margin-bottom: 0.1rem;
}

.endorsement-card .rec-role {
  font-size: 0.98rem;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}

.endorsement-card .rec-role strong {
  color: var(--accent);
  font-weight: 700;
}

.endorsement-card .rec-text {
font-size: 0.97rem;
color: var(--text-dark);
margin-top: 0.4rem;
font-style: italic;
word-break: break-word;
white-space: normal;
overflow-wrap: break-word;
box-sizing: border-box;
text-align: left;
width: 100%;
max-width: 100%;
line-height: 1.4;
padding: 0;
}

/* --- Endorsements Carousel (Site Theme, Smooth, Compact) --- */
.endorsements-carousel-outer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 900px; /* Increased max-width for more space */
  margin: 0 auto;
  width: 100%;
  position: relative;
}

.endorsements-carousel {
  position: relative;
  width: 100%;
  max-width: 900px; /* Increased max-width for more space */
  min-height: 320px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.endorsement-card {
  background: #fff;
  color: var(--text-dark);
  border-radius: 18px;
  box-shadow: 0 2px 18px rgba(186,104,200,0.10);
  padding: 2.5rem 2.2rem 2rem 2.2rem; /* More generous padding */
  margin: 0 auto;
  font-family: 'Quicksand', sans-serif;
  min-width: 100%;
  max-width: 100%;
  min-height: 320px;
  max-height: none; /* Remove max-height restriction */
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s, transform 0.5s;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  overflow-y: auto; /* Allow scrolling if content is very long */
}

.endorsement-card.active {
  display: flex;
  opacity: 1;
  position: relative;
  z-index: 2;
  animation: fadeInSlide 0.5s;
}

@keyframes fadeInSlide {
  from { opacity: 0; transform: translateY(30px);}
  to { opacity: 1; transform: translateY(0);}
}

.endorsement-quote {
  font-size: 1.08rem;
  line-height: 1.4;
  margin-bottom: 1.2rem;
  margin-top: 0;
  color: var(--text-dark);
  position: relative;
  z-index: 1;
}

/* Remove top margin from first child in .endorsement-card to prevent extra spacing */
.endorsement-card > *:first-child {
  margin-top: -40px !important;
}

.quote-mark {
  font-size: 2rem;
  color: var(--accent);
  vertical-align: top;
  font-family: serif;
  opacity: 0.7;
}

.endorsement-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.1rem auto;
  border: 2px solid var(--accent);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.endorsement-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.endorsement-name {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.05rem;
  margin-bottom: 0.1rem;
}

.endorsement-role {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}

.carousel-arrow {
  background: #fff;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  z-index: 2;
}
.carousel-arrow:hover,
.carousel-arrow:focus {
  background: var(--accent);
  color: #fff;
  border-color: var(--highlight);
  outline: none;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.2rem;
  gap: 0.5rem;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-light);
  opacity: 0.5;
  border: none;
  transition: background 0.2s, opacity 0.2s;
  cursor: pointer;
}
.carousel-dot.active,
.carousel-dot:focus {
  background: var(--accent);
  opacity: 1;
  outline: 2px solid var(--highlight);
}

@media (max-width: 768px) {
  .endorsements-carousel-outer {
    gap: 0.3rem;
    max-width: 100vw;
  }
  .endorsements-carousel {
    max-width: 100vw;
    min-height: 180px;
  }
  .endorsement-card {
    padding: 1rem 0.2rem 1rem 0.2rem;
    border-radius: 10px;
    font-size: 0.96rem;
    min-height: 120px;
  }

  .endorsements-section{
    margin-top: 1rem;
  }
}

/* Fix for horizontal scroll on body */
body {
  overflow-x: hidden;
}
.featured-projects-section {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  overflow-x: hidden;
}
