:root {
  /* Default Dark Theme Variables */
  --primary: #22D3EE;
  --primary-light: #60A5FA;
  --secondary: #94A3B8;
  --background: #030712;
  --section-bg: #111827;
  --card-bg: rgba(31, 41, 55, 0.7); /* Slate 800 with glass opacity */
  --gradient: linear-gradient(135deg, #22D3EE 0%, #3B82F6 50%, #8B5CF6 100%);
  --shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 50px rgba(34, 211, 238, 0.03);
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --border: #374151;
  
  --navbar-bg: rgba(3, 7, 18, 0.65);
  --navbar-scrolled-bg: rgba(17, 24, 39, 0.85);
  --navbar-border: rgba(55, 65, 81, 0.4);
  --navbar-link: #94A3B8;
  --navbar-link-hover: #F8FAFC;
  --navbar-collapse-bg: rgba(17, 24, 39, 0.98);
  
  --modal-bg: rgba(3, 7, 18, 0.88);
  --modal-text: #F8FAFC;
  --dot-color: rgba(255, 255, 255, 0.01);
  --ambient-opacity: 0.15;
}


body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--secondary);
  line-height: 1.6;
  background-color: var(--background) !important;
  transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6, 
.cal-sans-regular, 
.bento-hero-title, 
.modal-title {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Main cursor */
.cursor {
  width: 15px;
  height: 15px;
  background: #22D3EE;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 999;
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.8), 0 0 30px rgba(59, 130, 246, 0.6), 0 0 45px rgba(139, 92, 246, 0.4);
}

/* Trail effect */
.trail {
  width: 8px;
  height: 8px;
  background: #8B5CF6;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0.7;
  animation: fadeOut 0.5s linear forwards;
}

@keyframes fadeOut {
  to {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
}

a,
a:visited,
a:active {
  text-decoration: none !important;
}

a:hover {
  text-decoration: none !important;
  color: black !important;
}

/* Floating Glassmorphic Navbar & SlideTabs System */
.floating-navbar {
  top: 1.5rem !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 90%;
  max-width: 1200px;
  background: var(--navbar-bg) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--navbar-border) !important;
  border-radius: 50px !important;
  padding: 0.6rem 1.5rem !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 
              inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 1030;
}

/* Scrolled State */
.floating-navbar.scrolled {
  background: var(--navbar-scrolled-bg) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12) !important;
  border-color: var(--navbar-border) !important;
}

.cal-sans-regular {
  font-family: "Cal Sans", sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none !important;
  transition: transform 0.3s ease;
  white-space: nowrap !important;
}

.cal-sans-regular:hover {
  transform: scale(1.02);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(0, 0, 0, 0.03);
  padding: 0.3rem !important;
  border-radius: 50px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  margin-bottom: 0 !important;
}

.floating-navbar .nav-link {
  position: relative;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navbar-link) !important;
  padding: 0.6rem 1.2rem !important;
  border-radius: 50px;
  transition: color 0.3s ease !important;
  z-index: 2;
}

.floating-navbar .nav-link::after {
  display: none !important; /* Remove the old underline hover effect */
}

/* Active or Hovered Text Color */
.floating-navbar .nav-link.active-page,
.floating-navbar .nav-link.hovered-item {
  color: var(--navbar-link-hover) !important;
}

/* Slide Tabs Indicator Capsule */
.nav-indicator {
  position: absolute;
  height: calc(100% - 0.6rem);
  background: var(--gradient);
  border-radius: 50px;
  z-index: 1;
  transition: all 0.38s cubic-bezier(0.25, 1, 0.5, 1); /* Custom easing for spring-like physics */
  opacity: 0;
  pointer-events: none;
}

/* Navbar Toggler Icon Customization */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%232563eb' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Mobile Nav Adjustments */
@media (max-width: 991.98px) {
  .floating-navbar {
    top: 1rem !important;
    width: 95%;
    border-radius: 24px !important;
    padding: 0.5rem 1rem !important;
  }
  
  .floating-navbar .container-fluid {
    flex-wrap: nowrap !important;
  }
  
  .floating-navbar .cal-sans-regular {
    font-size: 1.35rem !important;
  }
  
  .floating-navbar .navbar-collapse {
    background: var(--navbar-collapse-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    margin-top: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--navbar-border);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }
  
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    background: transparent;
    border: none;
    gap: 0.5rem;
  }
  
  .floating-navbar .nav-link {
    font-size: 0.85rem;
    padding: 0.75rem 1.2rem !important;
    text-align: center;
  }
  
  .floating-navbar .nav-link.active-page {
    background: var(--gradient) !important;
    color: #ffffff !important;
  }
  
  .nav-indicator {
    display: none !important; /* Disable slide indicator on mobile vertical list */
  }
}

/* Home Section */
#home {
  min-height: 100vh;
  padding-top: 120px; /* Leave space for the floating navbar */
  padding-bottom: 60px;
}

#home h1 {
  font-size: 3.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

#home img {
  border-radius: 50%;
  border: 6px solid var(--primary-light);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

/* Section Styling */
section {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  margin: 20px 0;
  padding: 30px;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

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

.skills-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  padding: 2rem;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

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

.skills-category {
  text-align: center;
}

.skills-category h3 {
  font-size: 1.3rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.skill-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.skill-icons img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.5rem;
}

.skill-icons img:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .skills-card {
    padding: 1rem;
  }

  .skill-icons {
    gap: 0.75rem;
  }

  .skill-icons img {
    width: 40px;
    height: 40px;
  }
}


/* Button Styling */
.btn {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--gradient);
  border: none;
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background: #f1f5f9;
  border: none;
  color: var(--secondary);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(30, 41, 59, 0.2);
  background: #e2e8f0;
}

/* Contact */
#contact.container {
  padding-left: 15px;
  padding-right: 15px;
}

#contact h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

#contact .list-unstyled {
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

#contact .list-unstyled li {
  margin-bottom: 0;
  position: relative;
  padding-left: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}

#contact .list-unstyled li i {
  position: relative;
  left: auto;
  font-size: 1.8rem;
  top: auto;
  transform: none;
  color: var(--primary);
}

#contact form {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

#contact label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
  color: var(--secondary);
}

#contact input,
#contact textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--background);
  color: var(--secondary);
}

#contact input:focus,
#contact textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

#contact .btn-primary {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Background Animation & Tech Texture */
.animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background-color: #0A0A0A;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(245, 166, 35, 0.06) 0%, transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 45px 45px, 45px 45px;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.25;
}

.bubble:nth-child(1) {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 20%;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.4), transparent 70%);
  animation: floatAmbient 35s infinite alternate;
}

.bubble:nth-child(2) {
  width: 400px;
  height: 400px;
  bottom: 10%;
  right: 15%;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.3), transparent 70%);
  animation: floatAmbient 45s infinite alternate-reverse;
}

.bubble:nth-child(3) {
  width: 250px;
  height: 250px;
  top: 50%;
  left: 70%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 70%);
  animation: floatAmbient 40s infinite alternate;
}

/* Hide other bubbles or make them tiny warm glows */
.bubble:nth-child(4),
.bubble:nth-child(5),
.bubble:nth-child(6) {
  display: none;
}

@keyframes floatAmbient {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(50px, -50px) scale(1.1);
  }
  100% {
    transform: translate(-30px, 40px) scale(0.9);
  }
}

/* Remove the gradient-bg class since we're not using it anymore */
.gradient-bg {
  display: none;
}

/* Timeline Styling */
.timeline {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background: #e5e7eb;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}

.timeline-progress-line {
  position: absolute;
  width: 4px;
  background: var(--primary);
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  height: 0;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.5), 0 0 20px rgba(37, 99, 235, 0.3);
  transition: height 0.1s ease-out;
}

.timeline-item {
  padding: 20px 10px;
  position: relative;
  width: 50%;
  margin-bottom: 40px;
}

.timeline-item.left {
  left: 0;
  padding-right: 40px;
}

.timeline-item.right {
  left: 50%;
  padding-left: 40px;
}

.timeline-dot {
  position: absolute;
  top: 15px;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #e5e7eb;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-item.active .timeline-dot {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.18);
  box-shadow: 0 0 15px var(--primary), 0 0 25px rgba(37, 99, 235, 0.4);
}

.timeline-item.active .timeline-dot i {
  color: #ffffff;
  animation: pulseRotate 0.6s ease-out;
}

.timeline-item.active .timeline-content {
  transform: translateY(-5px) scale(1.02);
}

@keyframes pulseRotate {
  0% {
    transform: scale(1) rotate(0deg);
  }

  50% {
    transform: scale(1.2) rotate(15deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

.timeline-item.left .timeline-dot {
  right: -25px;
}

.timeline-item.right .timeline-dot {
  left: -25px;
}

.timeline-dot i {
  color: #9ca3af;
  font-size: 24px;
  transition: color 0.4s ease;
}

#skills,
#projects,
#certificates,
#contact {
  scroll-margin-top: 120px;
}

/*Projects Filter*/
.filter-btn:hover {
  color: white !important;
}

#projects .col-sm-12 {
  transition: all 0.3s ease;
}

.filter-btn.btn-primary {
  color: #fff !important;
}


.timeline-content {
  position: relative;
  background: var(--card-bg);
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.15);
}

/* Modern Card Look (like screenshot) */
.card {
  background: var(--card-bg) !important;
  box-shadow: var(--shadow) !important;
  border-radius: 22px !important;
  border: 1px solid var(--navbar-border) !important;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: center;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s, background-color 0.3s;
}

.card:hover {
  box-shadow: var(--shadow) !important;
  transform: translateY(-4px) scale(1.02);
  border-color: var(--primary) !important;
}

.card-body {
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card-title,
.card-subtitle,
.card-text {
  text-align: center;
}

/* Timeline Card Enhancements */
.timeline-content.card {
  border-radius: 15px;
  overflow: hidden;
  background: var(--card-bg) !important;
  border: 1px solid var(--navbar-border) !important;
}

.timeline-content.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow) !important;
  border-color: var(--primary) !important;
}

.timeline-content .card-body {
  padding: 1.5rem;
}

.timeline-content .card-title {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.timeline-content .card-subtitle {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.timeline-content .card-body {
  text-align: left;
}

.timeline-content .card-title,
.timeline-content .card-subtitle,
.timeline-content .card-text {
  margin-bottom: 0.5rem;
}

/* Project Card Enhancements */
#projects .card {
  border-radius: 15px;
  padding: 1.5rem;
}

#projects .card h5 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

#projects .card h6 {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

#projects .card ul li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

#projects .card ul li::before {
  content: '•';
  color: var(--primary);
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

#projects .btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  transition: all 0.3s ease;
}

#projects .btn-outline-primary:hover {
  background: var(--gradient);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
}

/* Contact Section Social Icons */
.contact-wrapper {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-wrapper .list-unstyled {
  margin: 0;
  padding: 0;
}

.contact-wrapper .list-unstyled li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
  transition: all 0.3s ease;
}

.contact-wrapper .list-unstyled li a:hover {
  transform: translateY(-3px);
  background: var(--secondary);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
}

.contact-wrapper .list-unstyled li a:hover i {
  color: white;

}

.contact-wrapper .list-unstyled li a i {
  transition: all 0.3s ease;
  color: var(--primary);
}



/* Responsive Adjustments */

/* Large screens (1200px and up) */
@media (max-width: 1400px) {
  .container {
    max-width: 1140px;
    padding: 0 20px;
  }

  section {
    margin: 15px 0;
    padding: 25px;
  }
}

@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }

  #home h1 {
    font-size: 3.2rem;
  }

  .timeline-content {
    width: calc(100% - 70px);
    margin: 0 auto;
  }

  /* Project card left-align on large screens */
  #projects .card,
  #projects .card * {
    text-align: left !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }
}

/* Medium screens (992px and up) */
@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }

  #home {
    padding-top: 80px;
    min-height: calc(100vh - 80px);
  }

  #home h1 {
    font-size: 2.8rem;
  }

  .cal-sans-regular {
    font-size: 2rem;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
    width: 100%;
  }

  .timeline::after,
  .timeline-progress-line {
    left: 31px;
  }

  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px;
  }

  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-top: 10px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
  }

  .nav-link {
    padding: 0.8rem 1.2rem;
    margin: 0.3rem 0;
  }

  section {
    padding: 20px;
    margin: 10px 0;
  }


  .card {
    width: 100%;
  }
}

/* Small screens (768px and up) */
@media (max-width: 768px) {
  .container {
    max-width: 540px;
    padding: 0 15px;
    width: 95%;
  }

  section {
    padding: 1.5rem;
    margin: 8px 0;
    width: 95%;
  }

  section h2 {
    font-size: 1.8rem;
    text-align: center;
    width: 100%;
  }

  section h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  #home {
    text-align: center;
    padding-top: 70px;
  }

  #home h1 {
    font-size: 2.5rem;
  }

  #home .btns {
    justify-content: center;
    gap: 1rem;
  }

  #home img {
    max-width: 250px;
    margin: 0 auto;
  }

  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .timeline::after,
  .timeline-progress-line {
    left: 50%;
  }

  .timeline-item {
    width: 100%;
    padding-left: 40px;
    padding-right: 0;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
  }

  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot {
    display: none;
  }

  .timeline-content {
    width: 100%;
    margin-left: 0;
    padding: 1rem;
  }

  .timeline-item.left {
    padding-right: 0;
  }

  .timeline-item.right {
    padding-left: 40px;
  }

  .timeline-dot {
    width: 45px;
    height: 45px;
  }

  .timeline-dot i {
    font-size: 1.2rem;
  }

  .timeline-content .card-body {
    text-align: center;
  }

  .timeline-content .card-title {
    font-size: 1.3rem;
  }

  .timeline-content .card-subtitle {
    font-size: 1.1rem;
  }

  .timeline-content .card-text {
    font-size: 1rem;
  }

  .card {
    margin-bottom: 1rem;
    padding: 1.5rem;
    width: 100%;
  }

  .card-body {
    padding: 1.25rem;
  }

  #projects .card {
    width: 100%;
    padding: 1.5rem;
  }

  .contact-wrapper {
    padding: 1.5rem;
  }

  .contact-wrapper .list-unstyled {
    gap: 1rem !important;
  }

  .contact-wrapper .list-unstyled li a {
    width: 45px;
    height: 45px;
  }

  .contact-wrapper .list-unstyled li a i {
    font-size: 1.5rem;
  }
}

/* Extra small screens (576px and up) */
@media (max-width: 576px) {
  .container {
    padding: 0 10px;
    width: 100%;
  }

  section {
    padding: 1.2rem;
    margin: 5px 0;
    width: 100%;
  }

  #home h1 {
    font-size: 2.2rem;
  }

  .cal-sans-regular {
    font-size: 1.12rem !important;
  }

  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .timeline {
    padding: 0 5px;
  }

  .timeline-item {
    padding-left: 30px;
  }

  .timeline-item.right {
    padding-left: 30px;
  }

  .timeline::after,
  .timeline-progress-line {
    left: 20px;
  }

  .timeline-dot {
    width: 40px;
    height: 40px;
    left: 0;
  }

  .timeline-dot i {
    font-size: 1rem;
  }

  .timeline-content {
    width: 100%;
    margin-left: 0;
    padding: 1.2rem;
  }

  .timeline-content .card-title {
    font-size: 1.2rem;
  }

  .timeline-content .card-subtitle {
    font-size: 1rem;
  }

  .timeline-content .card-text {
    font-size: 0.95rem;
  }

  #contact input,
  #contact textarea {
    font-size: 16px;
  }

  #contact form {
    padding: 1rem;
  }

  .card {
    margin-bottom: 0.8rem;
    padding: 1.2rem;
    width: 100%;
  }

  .card-body {
    padding: 1rem;
  }

  #projects .card {
    width: 100%;
    padding: 1.2rem;
  }

  #contact .list-unstyled {
    gap: 1rem;
  }

  .contact-wrapper {
    padding: 1rem;
    width: 100%;
  }

  .contact-wrapper .list-unstyled {
    gap: 0.8rem !important;
  }

  .contact-wrapper .list-unstyled li a {
    width: 40px;
    height: 40px;
  }

  .contact-wrapper .list-unstyled li a i {
    font-size: 1.3rem;
  }
}

/* Very small devices */
@media (max-width: 360px) {
  #home h1 {
    font-size: 2rem;
  }

  .cal-sans-regular {
    font-size: 1.6rem;
  }

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

  .timeline-content {
    padding: 0.8rem;
  }

  .card-body {
    padding: 0.8rem;
  }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
  #home {
    min-height: auto;
    padding: 100px 0 50px;
  }

  .navbar {
    padding: 0.5rem 0;
  }

  .nav-link {
    padding: 0.5rem 1rem;
  }
}

/* Tablets in landscape */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  #home {
    min-height: auto;
    padding: 100px 0 50px;
  }
}

/* Modern Bento Grid & Dark Skills Tile System */
.bento-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--navbar-border);
  border-radius: 24px;
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow), 
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow), 
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.bento-card-title {
  color: var(--text-main) !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.bento-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 1rem;
  width: 100%;
  margin-top: 1rem;
  justify-content: center;
}

.bento-skill-item {
  position: relative;
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  overflow: hidden;
}

/* Background gradient layer for subtle brand color glow behind the icon */
.bento-skill-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  background: var(--brand-color);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1;
}

.bento-skill-item i, 
.bento-skill-item svg {
  font-size: 2.5rem;
  position: relative;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-skill-item svg {
  width: 2.5rem;
  height: 2.5rem;
  display: block;
}

.bento-skill-item span {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

/* Hover State */
.bento-skill-item:hover {
  background: #0d1321;
  border-color: var(--brand-color);
  transform: translateY(-6px);
  box-shadow: 0 12px 24px -10px var(--brand-color), 
              0 0 20px -5px rgba(255, 255, 255, 0.05);
}

.bento-skill-item:hover::before {
  opacity: 0.15;
  transform: translate(-50%, -50%) scale(1.2);
}

.bento-skill-item:hover i, 
.bento-skill-item:hover svg {
  transform: scale(1.15);
  filter: drop-shadow(0 0 12px var(--brand-color));
}

.bento-skill-item:hover span {
  color: #ffffff;
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
  .bento-card {
    padding: 1.75rem 1.5rem;
  }
  
  .bento-skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
    gap: 0.85rem;
  }
  
  .bento-skill-item {
    padding: 1.25rem 0.85rem;
    gap: 0.6rem;
  }
  
  .bento-skill-item i, 
  .bento-skill-item svg {
    font-size: 2.2rem;
  }
  
  .bento-skill-item svg {
    width: 2.2rem;
    height: 2.2rem;
  }
  
  .bento-skill-item span {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
  }
}

/* Premium Footer Styling & Section Cards */
.premium-footer {
  background: var(--navbar-bg) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--navbar-border) !important;
  border-radius: 50px !important;
  padding: 0.6rem 1.5rem !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 
              inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  max-width: 1200px;
  width: 90%;
  margin: 2rem auto 1.5rem auto !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.premium-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}

.premium-footer .cal-sans-regular {
  font-size: 1.4rem;
  text-decoration: none !important;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s ease;
  display: inline-block;
}

.premium-footer .cal-sans-regular:hover {
  transform: scale(1.03);
}

.premium-footer-copyright {
  font-family: var(--bs-font-monospace), SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.7rem !important;
  color: #64748b !important; /* Slate 500 */
  font-weight: 600 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0 !important;
}

/* Consolidated Page Section Card Styling (Projects & Certificates) */
.img-fixed {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 10px;
  border-radius: 8px;
  transition: all 0.4s ease;
}

/* Make cards inside projects/certificates look super premium, matching the dark bento theme! */
#projectsModal .card,
#certificatesModal .card {
  background: var(--card-bg) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--navbar-border) !important;
  border-radius: 20px !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden;
}

#projectsModal .card:hover,
#certificatesModal .card:hover {
  transform: translateY(-8px);
  border-color: var(--primary) !important;
  box-shadow: var(--shadow) !important;
}

#projectsModal .card-title,
#certificatesModal .card-title {
  color: var(--text-main) !important;
  font-weight: 700 !important;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

#projectsModal .card-body,
#certificatesModal .card-body {
  padding: 1.25rem !important;
}

#projectsModal .text-muted,
#certificatesModal .text-muted {
  color: var(--text-muted) !important;
  font-size: 0.8rem !important;
  font-weight: 500;
}

@media (max-width: 768px) {
  .premium-footer {
    width: 95% !important;
    border-radius: 24px !important;
    padding: 0.8rem 1rem !important;
    margin-top: 1.2rem !important;
    margin-bottom: 1rem !important;
  }
  
  .premium-footer-container {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }
}

/* ==========================================
   INTERACTIVE BENTO GRID LANDING PAGE SYSTEM
   ========================================== */

/* Bento Container */
.bento-container {
  max-w: 1200px;
  margin: 0 auto;
}

/* Bento Card base style */
.bento-card {
  background: var(--card-bg) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--navbar-border) !important;
  border-radius: 28px !important;
  box-shadow: var(--shadow) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden;
}

/* Interactive card hover */
.bento-interactive-card {
  cursor: pointer;
}

.bento-interactive-card:hover {
  transform: translateY(-6px) scale(1.01) !important;
  border-color: var(--primary) !important;
  box-shadow: var(--shadow) !important;
  background: var(--card-bg) !important;
}

.bento-interactive-card:hover .bento-arrow-btn:not(.small) {
  background: var(--primary) !important;
  color: #ffffff !important;
  transform: rotate(45deg) scale(1.1) !important;
  box-shadow: 0 0 15px rgba(245, 166, 35, 0.4) !important;
}

.bento-sub-card:hover .bento-arrow-btn.small {
  background: var(--primary) !important;
  color: #ffffff !important;
  transform: rotate(45deg) scale(1.1) !important;
  box-shadow: 0 0 15px rgba(245, 166, 35, 0.4) !important;
}

/* Hero block styles */
.bento-hero-card {
  background: var(--card-bg) !important;
  border-color: var(--navbar-border) !important;
}

.bento-hero-title {
  font-size: 2.8rem;
  line-height: 1.15;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.bento-profile-img {
  border-radius: 24px !important;
  border: 4px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
  max-width: 180px;
  transition: transform 0.4s ease !important;
}

.bento-hero-card:hover .bento-profile-img {
  transform: scale(1.05) rotate(2deg) !important;
}

/* Arrow Button inside interactive cards */
.bento-arrow-btn {
  width: 42px;
  height: 42px;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Tech stack small grid */
.bento-tech-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.bento-tech-icon {
  position: relative;
  aspect-ratio: 1/1;
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.04) !important;
  border-radius: 12px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease !important;
}

.bento-tech-icon i,
.bento-tech-icon svg {
  font-size: 1.4rem;
  transition: all 0.3s ease !important;
}

.bento-tech-icon:hover {
  border-color: var(--brand-color) !important;
  background: #0d1321 !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 5px 15px -5px var(--brand-color) !important;
}

.bento-tech-icon:hover i,
.bento-tech-icon:hover svg {
  transform: scale(1.1) !important;
}

/* Contacts details styling */
.bento-contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px !important;
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.04) !important;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: all 0.3s ease !important;
}

.bento-contact-icon:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  transform: translateY(-3px) !important;
}

/* Text styles */
.text-light-muted {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.5;
}

.bg-secondary-dark {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* ==========================================
   ULTRA-PREMIUM GLASSMORPHIC MODAL SYSTEM
   ========================================== */

.bento-modal .modal-dialog {
  max-width: 1180px !important;
  width: 94% !important;
  margin-top: 4rem !important;
  margin-bottom: 4rem !important;
}

#contactModal .modal-dialog {
  max-width: 550px !important;
}

.bento-modal .modal-content {
  background: var(--modal-bg) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  border: 1px solid var(--navbar-border) !important;
  border-radius: 32px !important;
  color: var(--modal-text) !important;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35),
              0 0 100px rgba(245, 166, 35, 0.05) !important;
  overflow: hidden;
  padding: 1.5rem !important;
  opacity: 0;
  transform: scale(0.92) translate3d(0, 30px, 0);
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Fade / Zoom transition when modal shows */
.bento-modal.show .modal-content {
  opacity: 1 !important;
  transform: scale(1) translate3d(0, 0, 0) !important;
}

.bento-modal .modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding-bottom: 1rem !important;
}

.bento-modal .modal-header a {
  transition: all 0.3s ease;
}

.bento-modal .modal-header a:hover {
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.8);
}

.bento-modal .modal-title {
  font-weight: 700 !important;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.5rem;
}

.bento-modal .btn-close {
  background: rgba(255, 255, 255, 0.1) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em no-repeat !important;
  border-radius: 50% !important;
  width: 36px;
  height: 36px;
  padding: 0;
  opacity: 0.7;
  transition: all 0.3s ease !important;
}

.bento-modal .btn-close:hover {
  opacity: 1 !important;
  background-color: rgba(255, 255, 255, 0.2) !important;
  transform: rotate(90deg) !important;
}

.bento-modal .modal-body {
  max-height: 70vh !important;
  overflow-y: auto !important;
  padding: 1.5rem 1rem !important;
}

/* Custom scrollbar inside modal bodies */
.bento-modal .modal-body::-webkit-scrollbar {
  width: 4px;
}
.bento-modal .modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}
.bento-modal .modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

@media (max-width: 768px) {
  .bento-hero-title {
    font-size: 2rem;
  }
  
  .bento-profile-img {
    max-width: 140px;
  }
  
  .bento-tech-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Modal Tabs & Nav Pills Customization */
.bento-modal .nav-pills .nav-link {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  color: #A3A3A3 !important;
  transition: all 0.3s ease !important;
  font-size: 0.9rem;
}
.bento-modal .nav-pills .nav-link:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
.bento-modal .nav-pills .nav-link.active {
  background: var(--gradient) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 0 15px rgba(245, 166, 35, 0.3) !important;
}

/* Homepage Skill Icon Micro-interaction */
.bento-skill-icon-wrapper {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}
.bento-interactive-card:hover .bento-skill-icon-wrapper {
  transform: scale(1.15) translateY(-2px);
}

/* Premium Badge Custom Style */
.badge-custom {
  background-color: rgba(245, 166, 35, 0.12) !important;
  color: var(--primary) !important;
  border: 1px solid rgba(245, 166, 35, 0.15) !important;
  font-size: 0.8rem !important;
}

/* ==========================================
   HIGH-CONTRAST DARK THEME MODAL ACCESSIBILITY OVERRIDES
   ========================================== */
.bento-modal .modal-title,
.bento-modal h4,
.bento-modal h5,
.bento-modal h6 {
  color: #ffffff !important;
}

.bento-modal p,
.bento-modal .text-light-muted,
.bento-modal span:not(.badge):not(.skill-badge) {
  color: #e2e8f0 !important; /* Extremely high legibility light slate */
}

.bento-modal .text-muted {
  color: #cbd5e1 !important; /* Highly visible slate-300 for captions */
}

/* ==========================================
   PREMIUM GLASSMORPHIC FORM STYLING
   ========================================== */
.bento-modal .form-control {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  color: #ffffff !important;
  padding: 0.8rem 1.1rem !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  font-family: inherit;
}

.bento-modal .form-control:focus {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.15) !important;
  color: #ffffff !important;
}

/* ==========================================
   UNIFIED HOMEPAGE SKILL CARD STYLING (1 DIV)
   ========================================== */
.bento-sub-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border: 1px solid rgba(255, 255, 255, 0.04) !important;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02) !important;
}

.bento-sub-card:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  transform: translateY(-4px);
  border-color: var(--primary) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 650;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  color: #e2e8f0;
  transition: all 0.2s ease;
  margin: 2px;
}

.skill-badge i {
  font-size: 0.85rem;
}

.bento-sub-card:hover .skill-badge {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

/* Devicon GitHub Adaptive Color */
.devicon-github-original {
  color: #ffffff;
}

/* Pulsing status dot & badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 100px;
  color: #34D399; /* Emerald 400 */
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  width: fit-content;
  line-height: 1;
}
.status-dot {
  width: 8px;
  height: 8px;
  background-color: #10B981; /* Emerald 500 */
  border-radius: 50%;
  position: relative;
  display: inline-block;
}
.status-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #10B981;
  border-radius: 50%;
  animation: pulse-ring 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.85;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}