html {
  font-size: 14px !important;
  /* Scale down everything by ~12.5% */
}

/* =========================================================================
   HOMEPAGE CUSTOM STYLES
   ========================================================================= */

/* --- Variables & Core Setup --- */
:root {
  --bg-dark: #262A38;
  --bg-card: #333849;
  --accent: #FF6B4A;
  --text-main: #FFFFFF;
  --text-muted: #FFFFFF;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* --- Light Theme Variables --- */
[data-theme="light"] {
  --bg-dark: #f8f9fa;
  --bg-card: #ffffff;
  --accent: #c2410c;
  --text-main: #212529;
  --text-muted: #495057;
}

/* Light Theme Overrides */
[data-theme="light"] .navbar-custom {
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .footer-custom {
  background: #f1f3f5;
  border-top-color: #dee2e6 !important;
}

[data-theme="light"] .bg-section-alt {
  background-color: rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .stat-box,
[data-theme="light"] .content-card,
[data-theme="light"] .timeline-item {
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .btn-outline-light {
  color: var(--text-main);
  border-color: var(--text-muted);
}

[data-theme="light"] .btn-outline-light:hover {
  background-color: var(--text-main);
  color: #fff;
}

body {
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(circle at 85% 15%, rgba(255, 107, 74, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 15% 85%, rgba(255, 107, 74, 0.08) 0%, transparent 50%),
    radial-gradient(rgba(0, 0, 0, 0.06) 1.5px, transparent 1.5px);
  background-size: 100% 100%, 100% 100%, 30px 30px;
  background-position: 0 0, 0 0, 0 0;
  background-attachment: fixed;
  color: var(--text-muted);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 1rem;
}

[data-theme="dark"] body {
  background-image:
    radial-gradient(circle at 85% 15%, rgba(255, 107, 74, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 15% 85%, rgba(255, 107, 74, 0.1) 0%, transparent 50%),
    radial-gradient(rgba(255, 255, 255, 0.05) 1.5px, transparent 1.5px);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 600;
}

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

/* --- Simple Hover Effect --- */
.bouncy-flip {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bouncy-flip:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

a:hover {
  color: #ff856b;
}

/* --- Utilities --- */
.text-main {
  color: var(--text-main) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-accent {
  color: var(--accent) !important;
}

.bg-card {
  background-color: var(--bg-card) !important;
}

.bg-section-alt {
  background-color: rgba(0, 0, 0, 0.1) !important;
}

.bg-card {
  background-color: var(--bg-card) !important;
}

.section-padding {
  padding: 50px 0;
}

/* --- Navbar Styles --- */
.navbar-custom {
  background-color: rgba(38, 42, 56, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  padding: 12px 0;
}

.navbar-custom.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 10px 0;
}

.navbar-custom .navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  font-size: 1.5rem;
}

.navbar-custom .nav-link {
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0.8rem !important;
  font-size: 1.1rem;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--text-main);
}

/* Navbar Hover Underline Animation */
.navbar-custom .nav-link::before {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-custom .nav-link:hover::before,
.navbar-custom .nav-link.active::before {
  width: 70%;
}

/* --- Buttons --- */
.btn-accent {
  background-color: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 8px;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-accent:hover {
  background-color: #ff856b;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 107, 74, 0.4);
}

.btn-outline-accent {
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-outline-accent:hover {
  background-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 107, 74, 0.4);
}

/* --- Hero Section --- */
.hero-section {
  padding: 100px 0 20px;
  position: relative;
  background-color: transparent;
  /* Use body background */
}

[data-theme="dark"] .hero-section {
  background-color: transparent;
}

.img-wrapper {
  position: relative;
  display: inline-block;
  padding: 15px;
  width: 380px;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  box-sizing: content-box;
}

.img-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 2px dashed var(--accent);
  opacity: 0.6;
  animation: spin 25s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.prof-img {
  width: 100%;
  height: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 6px solid var(--bg-card);
  position: relative;
  z-index: 1;
}

.social-icons a {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icons a img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icons a:hover {
  transform: translateY(-5px) scale(1.1);
}

.social-icons a:hover img {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
}

/* --- Stat Counters --- */
.stat-box {
  background: var(--bg-card);
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 5px;
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Cards --- */
.content-card {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: 100%;
}

.content-card h3 {
  margin-bottom: 15px;
  font-size: 1.25rem;
}

/* --- Timeline Styles --- */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background-color: var(--text-muted);
  opacity: 0.2;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  background-color: var(--accent);
  height: 0%;
  transition: height 0.1s ease-out;
  z-index: 1;
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.timeline-dot {
  position: absolute;
  left: -37px;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--accent);
  border: 3px solid var(--bg-dark);
  box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.2);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  background-color: #fff;
  /* box-shadow removed as requested */
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}

.timeline-title {
  font-size: 1.15rem;
  transform: translateY(-5px);
  color: var(--text-main);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 991px) {

  /* Navbar */
  .navbar-custom .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }

  .navbar-custom .navbar-toggler:focus {
    box-shadow: none;
    outline: none;
  }

  .navbar-collapse {
    background-color: var(--bg-card);
    /* Solid background for open menu */
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }

  [data-theme="light"] .navbar-collapse {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  /* Hero Section */
  .hero-section {
    padding-top: 120px;
    /* Reduced from 160px on mobile */
    padding-bottom: 20px;
  }

  .hero-section h1 {
    font-size: 2.5rem;
    /* Smaller font on mobile */
  }

  /* Stats Grid */
  .stat-box {
    padding: 20px 10px;
    /* Reduced padding to fit text better */
  }

  .stat-number {
    font-size: 2rem;
    /* Reduced from 2.5rem */
  }

  .stat-label {
    font-size: 0.75rem;
    /* Smaller text for stats */
    letter-spacing: 0px;
  }

  /* Content Cards */
  .content-card {
    padding: 20px;
  }
}

@media (max-width: 575px) {
  .hero-section {
    padding-top: 100px;
  }

  .stat-box {
    padding: 15px 5px;
  }

  .stat-number {
    font-size: 1.8rem;
  }
}

.timeline-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --- Footer --- */
.footer-custom {
  background: linear-gradient(135deg, #161821 0%, #1a1c25 100%);
  padding: 80px 0 30px;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.footer-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, #ff9800 100%);
}

.footer-brand h3 {
  font-family: var(--font-heading);
}

.footer-custom h4 {
  color: var(--text-main);
  margin-bottom: 30px;
  font-size: 1.2rem;
  font-weight: 600;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.footer-custom h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
}

.footer-links {
  list-style-type: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.footer-links a i {
  font-size: 0.75rem;
  margin-right: 8px;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.footer-links a:hover {
  color: var(--text-main);
  transform: translateX(5px);
}

.footer-links a:hover i {
  transform: translateX(3px);
}

/* Contact widget icon hover */
.contact-icon {
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-widget>div {
  cursor: pointer;
}

.contact-widget>div:hover .contact-icon {
  background-color: var(--accent) !important;
  transform: translateY(-3px) scale(1.1);
  border-color: transparent;
}

.contact-widget>div:hover .contact-icon i {
  color: #fff !important;
}


/* --- Accordion Custom Styles --- */
.accordion-custom {
  background-color: var(--bg-card);
  border: 1px solid rgba(150, 150, 150, 0.2) !important;
  border-radius: 8px !important;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-custom:hover {
  border-left: 4px solid var(--accent) !important;
  transform: translateX(5px);
}

.accordion-custom .accordion-button:not(.collapsed) {
  background-color: transparent;
  color: var(--accent);
  box-shadow: none;
  border-bottom: 1px solid rgba(150, 150, 150, 0.1);
}

.accordion-custom .accordion-button {
  background-color: transparent;
  color: var(--text-main);
  box-shadow: none;
  font-weight: 600;
  padding: 1.2rem 1.5rem;
}

.accordion-custom .accordion-button::after {
  background-image: none !important;
  content: "\f067" !important;
  /* FontAwesome Plus */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: none !important;
  opacity: 1 !important;
  transform: rotate(0deg) !important;
  transition: transform 0.3s ease, content 0.3s;
}

.accordion-custom .accordion-button:not(.collapsed)::after {
  content: "\f068" !important;
  /* FontAwesome Minus */
  transform: rotate(180deg) !important;
}

.accordion-custom .accordion-body {
  color: var(--text-muted);
  padding: 1.5rem;
}

.accordion-custom ul {
  padding-left: 1.5rem;
}

.accordion-custom ul li {
  margin-bottom: 8px;
}

/* Custom Table inside Accordion */
.table-custom {
  color: var(--text-main);
  border-collapse: collapse;
}

.table-custom th,
.table-custom td {
  border: none !important;
  color: var(--text-main);
}

.accordion-body table,
.accordion-body table th,
.accordion-body table td,
.accordion-body table tr {
  border: none !important;
}

.table-custom thead th {
  background-color: rgba(150, 150, 150, 0.1);
}

/* Override Bootstrap striped background for dark/light mode */
[data-theme="dark"] .table-striped>tbody>tr:nth-of-type(odd)>* {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
}

[data-theme="dark"] .table-striped>tbody>tr:nth-of-type(even)>* {
  background-color: transparent;
  color: var(--text-main);
}

[data-theme="light"] .table-striped>tbody>tr:nth-of-type(odd)>* {
  background-color: rgba(0, 0, 0, 0.03);
  color: var(--text-main);
}

[data-theme="light"] .table-striped>tbody>tr:nth-of-type(even)>* {
  background-color: transparent;
  color: var(--text-main);
}

/* Publication Card Hover */
.publication-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 25px rgba(255, 87, 34, 0.15) !important;
}

[data-theme="dark"] .publication-card:hover {
  box-shadow: 0 10px 25px rgba(255, 87, 34, 0.1) !important;
}

/* Custom Scrollbar for Results */
.results-scrollbar {
  max-height: 800px;
  overflow-y: auto;
  padding-right: 15px;
}

.results-scrollbar::-webkit-scrollbar {
  width: 8px;
}

.results-scrollbar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.results-scrollbar::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

[data-theme='dark'] .results-scrollbar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

/* Custom Tabs */
.custom-tabs .nav-link {
  color: var(--text-main);
  font-weight: 500;
  border-radius: 50px;
  padding: 10px 25px;
  margin: 0 5px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.custom-tabs .nav-link:hover {
  color: var(--accent);
  background-color: rgba(255, 123, 0, 0.1);
}

.custom-tabs .nav-link.active {
  color: #fff;
  background-color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 10px rgba(255, 123, 0, 0.3);
}


/* Modern Link Styles for Content Sections */
.hero-section a:not(.nav-link):not(.btn):not(.dropdown-item):not(.navbar-brand) {
  color: var(--accent);
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
  font-weight: 500;
}

.hero-section a:not(.nav-link):not(.btn):not(.dropdown-item):not(.navbar-brand)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.hero-section a:not(.nav-link):not(.btn):not(.dropdown-item):not(.navbar-brand):hover {
  color: #e5652e;
  /* slightly darker accent */
}

.hero-section a:not(.nav-link):not(.btn):not(.dropdown-item):not(.navbar-brand):hover::after {
  width: 100%;
}

/* Bullet list styling in content sections */
.hero-section ul:not(.navbar-nav):not(.dropdown-menu):not(.footer-links):not(.nav) {
  list-style: none;
  padding-left: 1.2rem;
}

.hero-section ul:not(.navbar-nav):not(.dropdown-menu):not(.footer-links):not(.nav)>li {
  position: relative;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
}

.hero-section ul:not(.navbar-nav):not(.dropdown-menu):not(.footer-links):not(.nav)>li::before {
  content: '\f105';
  /* FontAwesome angle-right */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: -1.2rem;
  color: var(--accent);
  font-size: 0.9em;
  top: 0.2rem;
}

/* --- Testimonial Card Hover Effects --- */
.testimonial-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-left: 4px solid var(--accent) !important;
}

.testimonial-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4) !important;
  border-left-width: 8px !important;
}

.testimonial-card .bg-quote-icon {
  transition: all 0.5s ease;
  transform-origin: center;
}

.testimonial-card:hover .bg-quote-icon {
  transform: scale(1.2) rotate(-10deg);
  opacity: 0.1 !important;
  color: var(--accent);
}


.bg-accent {
  background-color: var(--accent) !important;
  color: white !important;
}

html,
body {
  overflow-x: hidden !important;
  width: 100%;
  position: relative;
}

/* --- Animated Hamburger Menu --- */
.custom-toggler {
  border: none;
  background: transparent;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
}

.custom-toggler:focus {
  box-shadow: none;
  outline: none;
}

.custom-toggler .icon-bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-main);
  display: block;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  margin: 2px 0;
  border-radius: 3px;
  transform-origin: center;
}

.custom-toggler:not(.collapsed) .top-bar {
  transform: translateY(7px) rotate(45deg);
}

.custom-toggler:not(.collapsed) .middle-bar {
  opacity: 0;
}

.custom-toggler:not(.collapsed) .bottom-bar {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Extracted Utility Classes --- */
.container-hero {
  max-width: 1100px;
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
}

.title-underline {
  width: 60px;
  height: 4px;
  background-color: var(--accent);
  border-radius: 2px;
}

/* --- Contact Page Styles --- */
.contact-identity-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(255, 133, 107, 0.05) 100%);
  border-radius: 20px;
  border-left: 5px solid var(--accent);
  position: relative;
  overflow: hidden;
}

.contact-identity-card::before {
  content: "\f3c5";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: -20px;
  bottom: -20px;
  font-size: 15rem;
  color: var(--accent);
  opacity: 0.03;
  transform: rotate(-15deg);
}

.contact-tile {
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2.5rem;
  height: 100%;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.contact-tile::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  filter: brightness(1.2);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.contact-tile:hover {
  transform: translateY(-10px) scale(1.03);
}

.contact-tile:hover::after {
  opacity: 1;
}

.tile-email {
  background: rgba(255, 133, 107, 0.1);
  color: var(--accent);
  border: 1px solid rgba(255, 133, 107, 0.3);
  box-shadow: 0 10px 30px rgba(255, 133, 107, 0.1);
}

.tile-email:hover {
  box-shadow: 0 15px 35px rgba(255, 133, 107, 0.25);
}

.tile-web {
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  border: 1px solid rgba(13, 110, 253, 0.3);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.1);
}

.tile-web:hover {
  box-shadow: 0 15px 35px rgba(13, 110, 253, 0.25);
}

.tile-blog {
  background: rgba(25, 135, 84, 0.1);
  color: #198754;
  border: 1px solid rgba(25, 135, 84, 0.3);
  box-shadow: 0 10px 30px rgba(25, 135, 84, 0.1);
}

.tile-blog:hover {
  box-shadow: 0 15px 35px rgba(25, 135, 84, 0.25);
}

.tile-youtube {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.3);
  box-shadow: 0 10px 30px rgba(220, 53, 69, 0.1);
}

.tile-youtube:hover {
  box-shadow: 0 15px 35px rgba(220, 53, 69, 0.25);
}

.tile-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  transition: transform 0.4s ease;
}

.contact-tile:hover .tile-icon {
  transform: scale(1.2);
}

.tile-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

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


/* --- Gallery Hover Fix (Removes orange line) --- */
.gallery .card-body a,
.gallery .card-body a:hover {
  text-decoration: none !important;
  display: block;
  overflow: hidden;
  position: relative;
  border-radius: 6px;
}

.gallery .card-body a img {
  transition: transform 0.4s ease, filter 0.4s ease;
  width: 100%;
}

.gallery .card-body a:hover img {
  transform: scale(1.08);
  filter: brightness(0.85);
}

/* Hide nav-link underline on mobile / collapsed navbar */
@media (max-width: 1199.98px) {}

.hero-section ul:not(.navbar-nav):not(.dropdown-menu):not(.footer-links):not(.nav)>li::before {
  content: '\f105';
  /* FontAwesome angle-right */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: -1.2rem;
  color: var(--accent);
  font-size: 0.9em;
  top: 0.2rem;
}

/* --- Testimonial Card Hover Effects --- */
.testimonial-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-left: 4px solid var(--accent) !important;
}

.testimonial-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4) !important;
  border-left-width: 8px !important;
}

.testimonial-card .bg-quote-icon {
  transition: all 0.5s ease;
  transform-origin: center;
}

.testimonial-card:hover .bg-quote-icon {
  transform: scale(1.2) rotate(-10deg);
  opacity: 0.1 !important;
  color: var(--accent);
}


.bg-accent {
  background-color: var(--accent) !important;
  color: white !important;
}

html,
body {
  overflow-x: hidden !important;
  width: 100%;
  position: relative;
}

/* --- Animated Hamburger Menu --- */
.custom-toggler {
  border: none;
  background: transparent;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
}

.custom-toggler:focus {
  box-shadow: none;
  outline: none;
}

.custom-toggler .icon-bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-main);
  display: block;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  margin: 2px 0;
  border-radius: 3px;
  transform-origin: center;
}

.custom-toggler:not(.collapsed) .top-bar {
  transform: translateY(7px) rotate(45deg);
}

.custom-toggler:not(.collapsed) .middle-bar {
  opacity: 0;
}

.custom-toggler:not(.collapsed) .bottom-bar {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Extracted Utility Classes --- */
.container-hero {
  max-width: 1100px;
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
}

.title-underline {
  width: 60px;
  height: 4px;
  background-color: var(--accent);
  border-radius: 2px;
}

/* --- Contact Page Styles --- */
.contact-identity-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(255, 133, 107, 0.05) 100%);
  border-radius: 20px;
  border-left: 5px solid var(--accent);
  position: relative;
  overflow: hidden;
}

.contact-identity-card::before {
  content: "\f3c5";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: -20px;
  bottom: -20px;
  font-size: 15rem;
  color: var(--accent);
  opacity: 0.03;
  transform: rotate(-15deg);
}

.contact-tile {
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2.5rem;
  height: 100%;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.contact-tile::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  filter: brightness(1.2);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.contact-tile:hover {
  transform: translateY(-10px) scale(1.03);
}

.contact-tile:hover::after {
  opacity: 1;
}

.tile-email {
  background: rgba(255, 133, 107, 0.1);
  color: var(--accent);
  border: 1px solid rgba(255, 133, 107, 0.3);
  box-shadow: 0 10px 30px rgba(255, 133, 107, 0.1);
}

.tile-email:hover {
  box-shadow: 0 15px 35px rgba(255, 133, 107, 0.25);
}

.tile-web {
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  border: 1px solid rgba(13, 110, 253, 0.3);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.1);
}

.tile-web:hover {
  box-shadow: 0 15px 35px rgba(13, 110, 253, 0.25);
}

.tile-blog {
  background: rgba(25, 135, 84, 0.1);
  color: #198754;
  border: 1px solid rgba(25, 135, 84, 0.3);
  box-shadow: 0 10px 30px rgba(25, 135, 84, 0.1);
}

.tile-blog:hover {
  box-shadow: 0 15px 35px rgba(25, 135, 84, 0.25);
}

.tile-youtube {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.3);
  box-shadow: 0 10px 30px rgba(220, 53, 69, 0.1);
}

.tile-youtube:hover {
  box-shadow: 0 15px 35px rgba(220, 53, 69, 0.25);
}

.tile-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  transition: transform 0.4s ease;
}

.contact-tile:hover .tile-icon {
  transform: scale(1.2);
}

.tile-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

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


/* --- Gallery Hover Fix (Removes orange line) --- */
.gallery .card-body a,
.gallery .card-body a:hover {
  text-decoration: none !important;
  display: block;
  overflow: hidden;
  position: relative;
  border-radius: 6px;
}

.gallery .card-body a img {
  transition: transform 0.4s ease, filter 0.4s ease;
  width: 100%;
}

.gallery .card-body a:hover img {
  transform: scale(1.08);
  filter: brightness(0.85);
}

/* Hide nav-link underline on mobile / collapsed navbar */
@media (max-width: 1199.98px) {
  .navbar-custom .nav-link::before {
    display: none !important;
  }
}

.profile-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 10px !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2) !important;
}

.social-icons .profile-icon {
  width: 32px;
  height: 32px;
}

/* --- Notice Board Specific --- */
.notice p.h4 {
  font-size: 1.15rem !important;
  margin-top: 0.5rem !important;
  line-height: 1.5;
}

.notice label {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.notice ul li {
  font-size: 0.95rem;
  color: var(--text-muted);
}
/* =========================================================================
   CUSTOM ADDITIONS FOR BHAVDIP'S PORTFOLIO
   (Original site loaded a homepage.js that wasn't part of this template
   export, so a small reveal-on-scroll utility + icon-badge styles are
   added here to keep the same visual behaviour.)
   ========================================================================= */

/* Icon badges used in place of missing social/profile images */
.icon-circle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.icon-circle i {
  line-height: 1;
  display: block;
}
.icon-circle:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  background: var(--accent);
  color: #fff;
}

/* Simple tag/pill for the Skills section */
.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  padding: 10px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 6px;
}
.skill-pill i {
  color: var(--accent);
}

/* Placeholder profile image box (until a real photo is added) */
.prof-img-placeholder {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 6px solid var(--bg-card);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 5rem;
}
