.swiper-nav-wrapper {
  width: 100%;
  margin-top: 24px;
  margin-bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  position: relative;
}
.swiper-button-next, .swiper-button-prev {
  color: #ffd700;
  background: rgba(0,0,0,0.08);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  z-index: 10;
  margin: 0 8px;
}
.swiper-button-next:after, .swiper-button-prev:after {
  font-size: 1.5rem;
}
/* Testimonials Swiper and Card Layout */
.testimonials-main-slider {
  width: 100%;
  padding-bottom: 40px;
}
.testimonials-main-slider .swiper-wrapper {
  display: flex;
  align-items: stretch;
}
.testimonials-main-slider .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: auto;
}
.testimonial-card p {
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  margin-bottom: 1rem;
  font-style: italic;
  display: block;
  max-width: 100%;
  text-align: center;
  line-height: 1.6;
  hyphens: auto;
}
/* Fix orphaned declarations: apply to testimonial card */
.testimonial-card {
  width: 100%;
  max-width: 350px;
  min-width: 300px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  word-break: break-word;
  overflow-wrap: break-word;
}
.testimonial-card p {
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: pre-line;
  margin-bottom: 1rem;
}
.testimonial-card .d-flex {
  margin-top: 1rem;
}
.swiper-button-next, .swiper-button-prev {
  color: #ffd700;
  background: rgba(0,0,0,0.08);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 0;
  z-index: 10;
}
.swiper-button-next {
  right: 40%;
}
.swiper-button-prev {
  left: 40%;
}
/* Experience Section Theme Adaptation */
body.dark-theme #experience.section {
  background: #181c24;
  color: #fff;
}
body:not(.dark-theme) #experience.section {
  background: #f8f9fa;
  color: #232b3e;
}

body.dark-theme #experience .section-title h2,
body.dark-theme #experience .section-title p {
  color: #ffd700;
}
body:not(.dark-theme) #experience .section-title h2,
body:not(.dark-theme) #experience .section-title p {
  color: #13447f;
}
/* --- Experience Timeline Card Responsive & Theme Adaptation --- */
.experience-timeline-card {
  margin-left: 38px;
  background: var(--experience-card-bg, #232b3e);
  border: 1.5px solid var(--experience-card-border, #ffd700);
  color: var(--experience-card-text, #fff);
}
body.dark-theme .experience-timeline-card {
  --experience-card-bg: #232b3e;
  --experience-card-border: #ffd700;
  --experience-card-text: #fff;
}
body:not(.dark-theme) .experience-timeline-card {
  --experience-card-bg: #ffffff; /* white in light mode */
  --experience-card-border: #065cc2; /* align with brand blue */
  --experience-card-text: var(--default-color); /* brand body text in day mode */
}
.custom-timeline-title {
  color: var(--experience-card-text, #fff);
}
.custom-timeline-date {
  color: var(--card-border-color, #ffd700);
}
.custom-calendar-icon {
  color: var(--card-border-color, #ffd700) !important;
}
.custom-timeline-card .timeline-desc {
  color: var(--experience-card-text, #fff);
}
.timeline-dot.custom-dot {
  left: 0;
  top: 32px;
}
.timeline.timeline-centered {
  padding-left: 80px;
}
@media (max-width: 991px) {
  .timeline.timeline-centered {
    padding-left: 40px;
  }
  .experience-timeline-card {
    margin-left: 18px;
  }
  .timeline-dot.custom-dot {
    left: 0;
    top: 24px;
  }
}
/* --- Custom Timeline Card Styles (matches design in image 1) --- */
.custom-timeline-card {
  background: var(--experience-card-bg, #232b3e);
  border: 1.5px solid var(--experience-card-border, #ffd700);
  border-radius: 20px;
  padding: 32px 28px 24px 28px;
  color: var(--experience-card-text, #fff);
  box-shadow: 0 5px 20px rgba(0,0,0,0.10);
  margin-bottom: 0;
  margin-top: 0;
  position: relative;
  z-index: 2;
}
.custom-timeline-title {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--experience-card-text, #fff);
  margin-bottom: 8px;
}
.custom-timeline-date {
  color: #ffd700;
  font-weight: 500;
  font-size: 1.08rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.custom-calendar-icon {
  color: #ffd700 !important;
  font-size: 1.1em;
  margin-right: 4px;
}
.custom-timeline-card .timeline-desc {
  color: #e6e6e6;
  font-size: 1.05rem;
  margin-bottom: 0;
}
.timeline-dot.custom-dot {
  width: 22px;
  height: 22px;
  background: #fff;
  border: 3px solid #ffd700;
  border-radius: 50%;
  position: absolute;
  top: 32px;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.timeline-item.left .timeline-dot.custom-dot {
  left: 50%;
  transform: translateX(-50%);
}
.timeline-item.right .timeline-dot.custom-dot {
  left: -11px;
  transform: none;
}
.timeline.timeline-centered::before {
  background: #ffd700;
  width: 3px;
  left: 0;
  top: 0;
  bottom: 0;
  content: '';
  position: absolute;
  z-index: 1;
}
.timeline.timeline-centered {
  position: relative;
  padding-left: 60px;
}
.timeline-item.left .custom-timeline-card,
.timeline-item.right .custom-timeline-card {
  margin-left: 0;
  margin-right: 0;
}
.timeline-item.left .custom-timeline-card {
  margin-right: auto;
}
.timeline-item.right .custom-timeline-card {
  margin-left: auto;
}

/* Ensure consistent card heights in Experience section */
#experience .custom-timeline-card {
  min-height: 200px; /* matches the taller card so the first equals the second */
}

/* Day mode: use brand colors for experience cards (no black) */
/* Experience cards (day mode): make body text and date/icon blue, keep titles as headings */
body:not(.dark-theme) #experience .custom-timeline-card .timeline-desc { color: #065cc2; }
body:not(.dark-theme) #experience .custom-timeline-card .custom-timeline-date { color: #065cc2; }
body:not(.dark-theme) #experience .custom-calendar-icon { color: #065cc2 !important; }
body:not(.dark-theme) #experience .custom-timeline-card .custom-timeline-title { color: var(--heading-color); }

/* Experience cards (night mode): make the date gold */
body.dark-theme #experience .custom-timeline-card .custom-timeline-date { color: #ffd700; }

/* Ensure variable-driven text resolves to brand colors in light mode */
body:not(.dark-theme) #experience .custom-timeline-title { color: var(--heading-color); }
body:not(.dark-theme) #experience .custom-timeline-card .timeline-desc { color: var(--experience-card-text, var(--default-color)); }
@media (max-width: 991px) {
  .timeline.timeline-centered {
    padding-left: 30px;
  }
  .timeline-dot.custom-dot {
    left: -11px;
    top: 24px;
  }
  .custom-timeline-card {
    padding: 20px 12px 16px 12px;
  }
}
/* --- Testimonials Section (original style restored) --- */
.testimonial-card {
  background: var(--surface-color);
  border-radius: 18px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.10);
  padding: 32px 28px 24px 28px;
  transition: box-shadow 0.3s, transform 0.3s;
  width: 100%;
  max-width: 460px;
  min-width: 300px;
  min-height: 400px;
  border: 1.5px solid var(--card-border-color, var(--testimonial-card-border, #065cc2));
}
.testimonial-card.active {
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  transform: translateY(-10px);
}
.testimonial-card.faded {
  opacity: 0.7;
}
.testimonial-card:hover {
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  transform: translateY(-10px);
}
.testimonial-card p {
  text-align: center;
  font-size: 1.08rem;
  color: var(--default-color);
}
.testimonial-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}
.testimonial-profile img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
}
.testimonial-profile h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: var(--heading-color);
}
.testimonial-profile h4 {
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin: 0;
}
.stars {
  color: #f9d923;
  margin-bottom: 12px;
  font-size: 1.2rem;
}
@media (max-width: 768px) {
  .testimonial-card {
    padding: 20px 10px 16px 10px;
  }
  .testimonial-profile img {
    width: 44px;
    height: 44px;
  }
}
body.dark-theme .testimonial-card {
  background: #1a1a1a;
  color: #fff;
  box-shadow: 0 5px 20px rgba(0,0,0,0.25);
}
body.dark-theme .testimonial-profile h3 {
  color: #f9d923;
}
/* Modern Contact Info Card (matches screenshot, supports light/dark theme) */
.contact-info-modern {
  background: var(--accent-color);
  border-radius: 28px;
  color: var(--contrast-color);
  box-shadow: 0 8px 32px 0 rgba(6,92,194,0.18), 0 1.5px 8px 0 rgba(0,0,0,0.08);
  min-height: 420px;
  transition: background 0.3s, color 0.3s;
  border: 1.5px solid var(--card-border-color);
}
.contact-info-modern .contact-title {
  font-family: var(--heading-font);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--contrast-color);
  margin-bottom: 0.5rem;
}
.contact-info-modern .contact-desc {
  color: color-mix(in srgb, var(--contrast-color), transparent 30%);
  font-size: 1.08rem;
  margin-bottom: 2rem;
}
.contact-info-modern .contact-info-block {
  margin-bottom: 1.5rem;
}
.contact-info-modern .contact-icon {
  width: 56px;
  height: 56px;
  background: color-mix(in srgb, var(--surface-color), transparent 10%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent-color);
  background: var(--contrast-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.3s, color 0.3s;
}
.contact-info-modern .contact-label {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--contrast-color);
}
.contact-info-modern .contact-value {
  font-size: 1.02rem;
  color: color-mix(in srgb, var(--contrast-color), transparent 10%);
  word-break: break-all;
}
.contact-info-modern a {
  color: inherit;
  text-decoration: underline dotted;
  transition: color 0.2s;
}
.contact-info-modern a:hover {
  color: var(--surface-color);
}
@media (max-width: 991px) {
  .contact-info-modern {
    margin-bottom: 2rem;
  }
}
body.dark-theme .contact-info-modern {
  background: #2a2a2a; /* match contact form background in dark mode */
  color: #fff;
}
body.dark-theme .contact-info-modern .contact-title,
body.dark-theme .contact-info-modern .contact-label {
  color: #fff;
}
body.dark-theme .contact-info-modern .contact-icon {
  background: #fff;
  color: #065cc2;
}
body.dark-theme .contact-info-modern .contact-value {
  color: #e0e8f8;
}
/**
* Template Name: Style
* Template URL: https://bootstrapmade.com/style-bootstrap-portfolio-template/
* Updated: Jul 02 2025 with Bootstrap v5.3.7
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/



/*--------------------------------------------------------------
# Font & Color Variables
# Help: https://bootstrapmade.com/color-system/
--------------------------------------------------------------*/
/* Fonts */
:root {
  --default-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Quicksand",  sans-serif;
  --nav-font: "Open Sans",  sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
  --background-color: #ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #314862; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #13447f; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #065cc2; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
  --card-border-color: #065cc2;
}

/* Global dark theme variables */
body.dark-theme { 
  --background-color: #0f1419;
  --default-color: #d7e3f1;
  --heading-color: #ffffff;
  --accent-color: #65aaff;
  --surface-color: #15202b;
  --contrast-color: #ffffff;
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: #314862;  /* The default color of the main navmenu links */
  --nav-hover-color: #065cc2; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #11427d; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #065cc2; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #acc4e0; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #ffffff; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #f7faff;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #065cc2;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --accent-color: #afcdf1;
  --surface-color: #2973cc;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
  margin: 0;
  padding: 0;
}

/* Global responsive media defaults */
img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}
iframe {
  max-width: 100%;
  border: 0;
}

html {
  margin: 0;
  padding: 0;
}

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

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

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

/* PHP Email Form Messages
------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

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

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
/* --- Header Navbar Custom Styles --- */
.header {
  background: #fff;
  box-shadow: none;
  border-bottom: 1px solid #d1d5db;
  padding: 0;
}

.header .logo {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin-right: 2rem;
}

.navbar-nav {
  flex-direction: row;
  gap: 1.5rem;
}

/* Navbar Centered and Underline Style */
.header .navbar-nav {
  justify-content: center;
  width: 100%;
  gap: 2.5rem;
}

/* Improve small-screen nav spacing and readability */
@media (max-width: 768px) {
  .header .navbar-nav { gap: 1rem; }
  .header .navbar-nav .nav-link {
    font-size: 1.05rem;
    padding: 0.35rem 0;
  }
}
@media (max-width: 576px) {
  .header .navbar-nav { gap: 0.75rem; }
  .header .navbar-nav .nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.3rem 0;
  }
}

.header .navbar-nav .nav-link {
  color: #19213a !important;
  font-size: 1.25rem;
  font-weight: 700;
  background: none;
  border-radius: 0;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s;
  box-shadow: none;
}

.header .navbar-nav .nav-link.active,
.header .navbar-nav .nav-link:hover {
  color: #065cc2 !important;
  background: none;
}

.header .navbar-nav .nav-link.active::after,
.header .navbar-nav .nav-link:hover::after {
  content: '';
  display: block;
  margin: 0 auto;
  width: 40px;
  height: 3px;
  background: #065cc2;
  border-radius: 2px;
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
}

.header .navbar-nav .nav-link::after {
  /* Only show underline on active/hover */
  display: none;
}

.header .logo span {
  font-family: var(--heading-font);
  color: #19213a;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
  color: #fff !important;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background: #007bff;
  color: #fff !important;
}

.navbar-nav .dropdown,
.navbar-nav .dropdown-menu,
.navbar-nav .dropdown-toggle {
  display: none !important;
}

/* Remove social icons from header */
.header .social-links {
  display: none !important;
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .navbar-nav {
    flex-direction: column;
    gap: 0.5rem;
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
  }
  .header .logo {
    margin-bottom: 1rem;
  }
}

@media (max-width: 991px) {
  .timeline.timeline-centered {
    max-width: 100%;
    padding: 0 10px;
  }
  .timeline-item,
  .timeline-item.left,
  .timeline-item.right {
    width: 100%;
    left: 0;
    text-align: left;
    padding: 0 0 0 40px;
  }
  .timeline.timeline-centered::before {
    left: 24px;
    transform: none;
  }
  .timeline-item .timeline-dot {
    left: -12px;
    right: auto;
  }
  .timeline-item .timeline-content {
    margin: 20px 0 20px 40px;
  }
}

/* --- Other Nice Touches --- */
.header {
  border-bottom: 2px solid #007bff;
}

.header .container-fluid {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 576px) {
  .header .container-fluid { padding: 0 16px; }
}

/* --- Remove dropdown arrow icon --- */
.navbar-nav .nav-link::after {
  display: none !important;
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: #ffffff;
  background-color: #1a2332; /* Darker blue instead of light blue */
  font-size: 14px;
  padding: 16px 0;
  position: relative;
  margin: 0;
  border: none;
  box-sizing: border-box;
}

.footer .copyright p {
  margin-bottom: 0;
  padding: 0;
  color: #ffffff;
}

.footer .social-links {
  margin-top: 8px; /* reduced from 20px */
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 5px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.footer .credits {
  margin-top: 6px;
  font-size: 13px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}

/* Dark theme footer */
body.dark-theme .footer {
  background-color: #0f1419; /* Even darker for dark theme */
  color: #ffffff;
}

body.dark-theme .footer .copyright p {
  color: #ffffff;
}

body.dark-theme .footer .credits {
  color: rgba(255, 255, 255, 0.8);
}

/* Ensure no white strip at bottom */
body, html {
  margin: 0 !important;
  padding: 0 !important;
}

.footer {
  margin-bottom: 0 !important;
  padding-bottom: 16px !important;
}

/* Fix unintended strip under footer */
.footer::before,
.footer::after { content: none !important; display: none !important; }
.footer { border: none !important; box-shadow: none !important; }
main.main { margin-bottom: 0 !important; }

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 25px 0;
  position: relative;
}

.page-title h1 {
  font-size: 24px;
  font-weight: 700;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.page-title .breadcrumbs ol li+li {
  padding-left: 10px;
}

.page-title .breadcrumbs ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  overflow: clip;
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 36px;
  font-weight: 700;
  padding: 0;
  line-height: 1px;
  margin: 0;
  letter-spacing: 0.5px;
  position: relative;
}

.section-title h2::after {
  content: "";
  width: 120px;
  height: 1px;
  display: inline-block;
  background: var(--accent-color);
  margin: 10px 10px;
}

.section-title p {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  margin: 5px 0 0 0;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--heading-font);
}

/* Unify all section subtitles to match Experience section subtitle colors */
body:not(.dark-theme) .section-title p {
  color: #13447f;
}
body.dark-theme .section-title p {
  color: #ffd700;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../img/bg/abstract-bg-1.webp") no-repeat center center;
  background-size: cover;
  opacity: 0.08;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

@media (max-width: 991px) {
  .hero .hero-content {
    padding: 60px 30px;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero .hero-content {
    padding: 40px 20px;
  }
}

.hero .content-wrapper {
  max-width: 600px;
  margin-top: 75px;
}

@media (max-width: 768px) {
  .hero .content-wrapper {
    margin-top: 40px;
  }
  
  .hero .hero-main-image {
    width: 100% !important;
    max-width: 400px !important;
  }
}

.hero .hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .hero .hero-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 576px) {
  .hero .hero-title {
    font-size: 1.8rem;
  }
}

.hero .hero-title .typed {
  color: var(--accent-color);
  position: relative;
}

.hero .lead {
  font-size: 1.2rem;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-bottom: 3rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hero .lead {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
}

.hero .hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .hero .hero-stats {
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .hero .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
}

.hero .hero-stats .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero .hero-stats .stat-item .purecounter {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
}

.hero .hero-stats .stat-item .stat-label {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-top: 0.25rem;
}

.hero .hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

/* Tablet widths: center the hero buttons */
@media (max-width: 991.98px) {
  .hero .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero .hero-actions {
    justify-content: center;
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .hero .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}

.hero .hero-actions .btn {
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero .hero-actions .btn.btn-primary {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border: 2px solid var(--accent-color);
}

.hero .hero-actions .btn.btn-primary:hover {
  background-color: transparent;
  color: var(--accent-color);
}

.hero .hero-actions .btn.btn-outline {
  background-color: transparent;
  color: var(--default-color);
  border: 2px solid color-mix(in srgb, var(--default-color), transparent 70%);
}

.hero .hero-actions .btn.btn-outline:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border-color: var(--accent-color);
}

.hero .social-links {
  display: flex;
  gap: 1rem;
}

@media (max-width: 768px) {
  .hero .social-links {
    justify-content: center;
  }
}

.hero .social-links a {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--surface-color);
  color: var(--default-color);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--default-color), transparent 90%);
}

.hero .social-links a:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-3px);
}

.hero .social-links a i {
  font-size: 1.2rem;
}

.hero .hero-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 30px;
}

@media (max-width: 991px) {
  .hero .hero-image {
    min-height: auto;
    padding: 40px 30px;
  }
}

.hero .image-container {
  position: relative;
  max-width: 600px;
  width: 100%;
}

.hero .hero-main-image {
  border-radius: 20px;
  box-shadow: 0 20px 60px color-mix(in srgb, var(--default-color), transparent 85%);
  position: relative;
  z-index: 2;
  width: 120%;
  max-width: 600px;
}

/* Glow avatar (orange ring + hover enlarge) */
.glow-avatar {
  --glow: #ff5a00; /* orange ring color */
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(220px, 40vw, 460px);
  aspect-ratio: 1 / 1; /* perfect circle */
  border-radius: 50%;
  overflow: hidden; /* crop image to a circle */
  background: #0d0d0d; /* dark inner circle like your sample */
  z-index: 1;
  margin-top: 63px; /* 10px higher than previous (73px) */
}

/* Ensure the image fills the circle and scales on hover */
.glow-avatar .hero-main-image {
  width: 100% !important;
  max-width: none !important;
  height: 100%;
  object-fit: cover;
  border-radius: 50% !important;
  box-shadow: none !important;
  transform: scale(1);
  transition: transform 500ms ease;
}

/* Outer orange radial glow ring */
.glow-avatar::before {
  content: "";
  position: absolute;
  inset: -18px; /* extend outside to show glow */
  border-radius: 50%;
  background: radial-gradient(closest-side,
    rgba(0, 0, 0, 0) 64%,
    color-mix(in srgb, var(--glow), transparent 45%) 74%,
    color-mix(in srgb, var(--glow), transparent 75%) 86%,
    rgba(0, 0, 0, 0) 98%);
  filter: blur(2px);
  z-index: 0;
  opacity: 0.9;
  transition: transform 500ms ease, opacity 500ms ease;
}

/* Hover: enlarge image slightly and intensify glow */
.glow-avatar:hover .hero-main-image {
  transform: scale(1.07);
}
.glow-avatar:hover::before {
  transform: scale(1.08);
  opacity: 1;
}

/* Timeline (center line + white dots) */
.timeline {
  position: relative;
  margin: 0 auto;
  padding: 20px 0;
}
.timeline.timeline-centered::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: color-mix(in srgb, var(--default-color), transparent 80%);
  transform: translateX(-50%);
}
.timeline-item {
  position: relative;
  margin: 30px 0;
  width: 50%;
}
.timeline-item.left { left: 0; text-align: right; padding-right: 40px; }
.timeline-item.right { left: 50%; text-align: left; padding-left: 40px; }
.timeline-item .timeline-dot {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translate(-50%, 0);
  width: 14px;
  height: 14px;
  background: var(--surface-color);
  border: 3px solid var(--accent-color);
  border-radius: 50%;
}


.hero .image-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  background: linear-gradient(45deg, var(--accent-color), color-mix(in srgb, var(--accent-color), transparent 30%));
  border-radius: 20px;
  z-index: 1;
}

.hero .floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
}

.hero .floating-card {
  position: absolute;
  background-color: var(--surface-color);
  padding: 15px 20px;
  border-radius: 15px;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--default-color), transparent 90%);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}

@media (max-width: 768px) {
  .hero .floating-card { padding: 8px 12px; font-size: 0.85rem; }
}

.hero .floating-card i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

@media (max-width: 768px) {
  .hero .floating-card i {
    font-size: 1.2rem;
  }
}

.hero .floating-card span {
  font-weight: 600;
  color: var(--default-color);
}

.hero .floating-card.card-1 {
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

@media (max-width: 768px) {
  .hero .floating-card.card-1 {
    top: 5%;
    left: -5%;
  }
}

.hero .floating-card.card-2 {
  top: 60%;
  right: -15%;
  animation-delay: 2s;
}

@media (max-width: 768px) {
  .hero .floating-card.card-2 {
    top: 70%;
    right: -10%;
  }
}

.hero .floating-card.card-3 {
  bottom: 15%;
  left: -5%;
  animation-delay: 4s;
}

@media (max-width: 768px) {
  .hero .floating-card.card-3 {
    bottom: 10%;
    left: 0%;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/

/* About Cards Grid */
.about-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

/* About section border colors by theme: blue (day), gold (night) */
body:not(.dark-theme) #about {
  --card-border-color: #065cc2;
}
body.dark-theme #about {
  --card-border-color: #ffd700;
}

/* Skills section border colors by theme */
body:not(.dark-theme) #skills {
  --card-border-color: #065cc2;
}
body.dark-theme #skills {
  --card-border-color: #ffd700;
}

/* Work section border colors by theme */
body:not(.dark-theme) #work {
  --card-border-color: #065cc2;
}
body.dark-theme #work {
  --card-border-color: #ffd700;
}

/* Certifications section border colors by theme */
body:not(.dark-theme) #certifications {
  --card-border-color: #065cc2;
}
body.dark-theme #certifications {
  --card-border-color: #ffd700;
}

/* Review form section border colors by theme */
body:not(.dark-theme) #review-form {
  --card-border-color: #065cc2;
}
body.dark-theme #review-form {
  --card-border-color: #ffd700;
}

/* Contact form section border colors by theme */
body:not(.dark-theme) #contact {
  --card-border-color: #065cc2;
}
body.dark-theme #contact {
  --card-border-color: #ffd700;
}

.about-card {
  background: var(--surface-color);
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border: 1.5px solid var(--card-border-color);
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.about-card .card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: linear-gradient(135deg, var(--accent-color), #667eea);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
}

.about-card h4 {
  color: var(--heading-color);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
}

.about-card p {
  color: var(--default-color);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  opacity: 0.8;
}

/* My Story Section */
.my-story-section {
  background: var(--surface-color);
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border: 1.5px solid var(--card-border-color);
}

.my-story-section h3 {
  color: var(--heading-color);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
}

.story-content p {
  color: var(--default-color);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.story-content p:last-child {
  margin-bottom: 0;
}

/* My Learning & Growth Spaces Section */
.learning-growth-section {
  background: var(--surface-color);
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border: 1.5px solid var(--card-border-color);
  margin-top: 40px;
  overflow: hidden;
}

.learning-growth-section h3 {
  color: var(--heading-color);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}

.learning-growth-container {
  width: 100%;
}

.learning-growth-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.learning-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px 20px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  border: 1.5px solid var(--card-border-color);
}

.learning-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.learning-card .platform-logo {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--accent-color);
}

.learning-card .platform-logo i {
  font-size: 32px;
}

.learning-card .platform-logo a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.learning-card .platform-logo a:hover {
  transform: scale(1.1);
}

.learning-card .platform-image {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s ease;
}

.learning-card .platform-logo a:hover .platform-image {
  opacity: 0.8;
}

.learning-card .coursera-icon,
.learning-card .datacamp-icon {
  color: var(--accent-color);
}

.learning-card h4 {
  color: var(--heading-color);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.learning-card p {
  color: var(--default-color);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  opacity: 0.8;
}



/* Dark theme styles */
body.dark-theme .about-card {
  background: #1a1a1a;
  border: 1.5px solid var(--card-border-color);
}

body.dark-theme .about-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

body.dark-theme .my-story-section {
  background: #1a1a1a;
  border: 1.5px solid var(--card-border-color);
}

body.dark-theme .learning-growth-section {
  background: #1a1a1a;
  border: 1.5px solid var(--card-border-color);
}

body.dark-theme .learning-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid var(--card-border-color);
}

body.dark-theme .learning-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Dark theme styles for contact section */
body.dark-theme .contact.light-background {
  background-color: #1a1a1a !important;
}

body.dark-theme .contact .contact-form {
  background-color: #2a2a2a;
  border: 1.5px solid var(--card-border-color);
  color: #ffffff;
}

body.dark-theme .contact .contact-form h3 {
  color: #ffffff;
}

body.dark-theme .contact .contact-form p {
  color: #cccccc;
}

body.dark-theme .contact .contact-form .form-control,
body.dark-theme .contact .contact-form .form-select {
  background-color: #333333;
  border-color: #555555;
  color: #ffffff;
}

body.dark-theme .contact .contact-form .form-control:focus,
body.dark-theme .contact .contact-form .form-select:focus {
  background-color: #333333;
  border-color: var(--accent-color);
  color: #ffffff;
}

body.dark-theme .contact .contact-form .form-control::placeholder {
  color: #999999;
}

body.dark-theme .contact .contact-form .btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}



/* Responsive design */
@media (max-width: 768px) {
  .about-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }

  .about-card {
    padding: 30px 20px;
  }

  .my-story-section {
    padding: 30px 25px;
  }

  .my-story-section h3 {
    font-size: 24px;
  }

  .learning-growth-section {
    padding: 30px 25px;
    margin-top: 30px;
  }

  .learning-growth-section h3 {
    font-size: 24px;
  }

  .learning-growth-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .learning-card {
    padding: 25px 15px;
  }
}

@media (max-width: 480px) {
  .learning-growth-cards {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .learning-card {
    padding: 20px 15px;
  }

  .learning-card .platform-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
  }

  .learning-card .platform-logo i {
    font-size: 24px;
  }

  .learning-card .platform-image {
    width: 45px;
    height: 45px;
  }
}

/* Medium tablets: ensure two columns to avoid overflow */
@media (max-width: 991.98px) and (min-width: 769px) {
  .learning-growth-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}


.about .profile-image-wrapper {
  position: relative;
}

.about .profile-image-wrapper .profile-image {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--accent-color);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent-color), transparent 80%);
}

.about .profile-image-wrapper .profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .about .profile-image-wrapper .profile-image {
    width: 200px;
    height: 200px;
  }
}

.about .profile-image-wrapper .signature-section {
  text-align: center;
}

.about .profile-image-wrapper .signature-section .signature {
  max-width: 200px;
  height: auto;
  margin-bottom: 15px;
  opacity: 0.8;
}

.about .profile-image-wrapper .signature-section .quote {
  font-style: italic;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-size: 14px;
  margin: 0;
  max-width: 250px;
  margin: 0 auto;
}

.about .about-content .intro {
  margin-bottom: 40px;
}

.about .about-content .intro h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .about .about-content .intro h2 {
    font-size: 2rem;
    text-align: center;
  }
}

.about .about-content .intro p {
  font-size: 16px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

@media (max-width: 768px) {
  .about .about-content .intro p {
    text-align: center;
  }
}

.about .about-content .skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.about .about-content .skills-grid .skill-item {
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent-color), transparent 94%);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 85%);
  transition: all 0.3s ease;
}

.about .about-content .skills-grid .skill-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px color-mix(in srgb, var(--accent-color), transparent 85%);
}

.about .about-content .skills-grid .skill-item .skill-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  border-radius: 50%;
  color: var(--contrast-color);
  font-size: 24px;
}

.about .about-content .skills-grid .skill-item h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--heading-color);
}

.about .about-content .skills-grid .skill-item p {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin: 0;
}

.about .about-content .journey-timeline {
  margin-bottom: 40px;
}

.about .about-content .journey-timeline .timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  border-left: 3px solid var(--accent-color);
  background: color-mix(in srgb, var(--surface-color), transparent 30%);
  border-radius: 0 8px 8px 0;
  transition: all 0.3s ease;
}

.about .about-content .journey-timeline .timeline-item:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 95%);
  border-left-color: color-mix(in srgb, var(--accent-color), transparent 10%);
}

.about .about-content .journey-timeline .timeline-item:last-child {
  margin-bottom: 0;
}

.about .about-content .journey-timeline .timeline-item .year {
  font-weight: 700;
  color: var(--accent-color);
  font-size: 18px;
  min-width: 80px;
  margin-right: 20px;
}

.about .about-content .journey-timeline .timeline-item .description {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 576px) {
  .about .about-content .journey-timeline .timeline-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .about .about-content .journey-timeline .timeline-item .year {
    margin-right: 0;
    margin-bottom: 8px;
  }
}

.about .about-content .cta-section .fun-fact {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  padding: 15px 25px;
  background: color-mix(in srgb, var(--accent-color), transparent 94%);
  border-radius: 50px;
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 85%);
}

.about .about-content .cta-section .fun-fact .emoji {
  font-size: 20px;
  margin-right: 10px;
}

.about .about-content .cta-section .fun-fact .text {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .about .about-content .cta-section .fun-fact {
    justify-content: center;
    text-align: center;
  }
}

.about .about-content .cta-section .action-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

@media (max-width: 576px) {
  .about .about-content .cta-section .action-buttons {
    flex-direction: column;
    align-items: center;
  }
}

.about .about-content .cta-section .action-buttons .btn {
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 15px;
}

.about .about-content .cta-section .action-buttons .btn.btn-primary {
  background: var(--accent-color);
  color: var(--contrast-color);
  border: 2px solid var(--accent-color);
}

.about .about-content .cta-section .action-buttons .btn.btn-primary:hover {
  background: color-mix(in srgb, var(--accent-color), black 10%);
  border-color: color-mix(in srgb, var(--accent-color), black 10%);
  transform: translateY(-2px);
}

.about .about-content .cta-section .action-buttons .btn.btn-outline {
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

.about .about-content .cta-section .action-buttons .btn.btn-outline:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-2px);
}

@media (max-width: 992px) {
  .about .profile-image-wrapper {
    margin-bottom: 40px;
  }
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
/* Card container for left column */
.contact-info-panel {
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: 12px;
  padding: 18px;
}
/* Stacked list inside the panel with equal-height rows */
.contact-info-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (max-width: 576px) {
  .contact-info-list { gap: 10px; }
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  border-radius: 10px;
  text-decoration: none;
  color: var(--default-color);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  min-height: 64px; /* equal row height */
}

.contact-card .icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  font-size: 20px;
}

.contact-card .content h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 700;
}

.contact-card .content p {
  margin: 0;
  font-size: 14px;
  opacity: .9;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  border-color: color-mix(in srgb, var(--accent-color), transparent 70%);
}

@media (max-width: 992px) {
  .contact-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
}

/* Dark theme overrides for Contact section */
body.dark-theme #contact {
  /* Override light-background variables to dark palette */
  --background-color: #0f1419;
  --surface-color: #15202b; /* card background */
  --default-color: #d7e3f1; /* text */
  --heading-color: #ffffff;
  --accent-color: #65aaff; /* links/icons */
  --contrast-color: #ffffff;
}
body.dark-theme #contact .contact-info-panel {
  border-color: color-mix(in srgb, var(--default-color), transparent 88%);
}
body.dark-theme #contact .contact-card {
  border-color: color-mix(in srgb, var(--default-color), transparent 88%);
  box-shadow: none;
}
body.dark-theme #contact .contact-card:hover {
  box-shadow: 0 12px 26px rgba(0,0,0,.35);
}
body.dark-theme #contact .contact-card .icon-box {
  background: color-mix(in srgb, var(--accent-color), transparent 85%);
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Work Section
--------------------------------------------------------------*/

/* Work Grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1400px; /* increased to show wider images */
  margin: 0 auto;
}

.work-card {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  border: 1.5px solid var(--card-border-color, #065cc2);
}

.work-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.work-card .card-image {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
}

@media (max-width: 576px) {
  .work-card .card-image { height: 220px; }
}

.work-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px 15px 0 0;
  transition: transform 0.3s ease;
}

.work-card:hover .card-image img {
  transform: scale(1.05);
}

.work-card .image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.work-card:hover .image-overlay {
  opacity: 1;
}

.work-card .overlay-icons {
  display: flex;
  gap: 15px;
}

.work-card .icon-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #065cc2;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.work-card .icon-btn:hover {
  background: #065cc2;
  color: white;
  transform: scale(1.1);
}

.work-card .card-content {
  padding: 30px;
}

.work-card .card-title {
  color: #13447f;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: var(--heading-font);
}

.work-card .card-subtitle {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.work-card .card-description {
  color: #666;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.work-card .card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.work-card .tag {
  background: #e3f2fd;
  color: #065cc2;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Dark theme styles */
body.dark-theme .work-card {
  background: #1a1a1a;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

body.dark-theme .work-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

body.dark-theme .work-card .card-title {
  color: #f9d923;
}

body.dark-theme .work-card .card-subtitle,
body.dark-theme .work-card .card-description {
  color: #ccc;
}

body.dark-theme .work-card .tag {
  background: rgba(249, 217, 35, 0.2);
  color: #f9d923;
}

/* Responsive design */
@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .work-card .card-image {
    height: 280px;
  }

  .work-card .card-content {
    padding: 25px;
  }

  .work-card .card-title {
    font-size: 20px;
  }
}

/* Image Modal/Lightbox Styles */
.image-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.image-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: scaleIn 0.3s ease;
}

.image-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.image-modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.modal-image {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.modal-info {
  padding: 20px;
  background: white;
}

.modal-info h3 {
  color: #13447f;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  font-family: var(--heading-font);
}

.modal-info p {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

/* Dark theme modal styles */
body.dark-theme .image-modal-content {
  background: #1a1a1a;
}

body.dark-theme .modal-info {
  background: #1a1a1a;
}

body.dark-theme .modal-info h3 {
  color: #f9d923;
}

body.dark-theme .modal-info p {
  color: #ccc;
}

/* Modal animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive modal */
@media (max-width: 768px) {
  .image-modal-content {
    max-width: 95%;
    max-height: 95%;
  }

  .modal-info {
    padding: 15px;
  }

  .modal-info h3 {
    font-size: 20px;
  }

  .modal-info p {
    font-size: 14px;
  }
}

/*--------------------------------------------------------------
# Certifications Section
--------------------------------------------------------------*/

/* Certifications Grid */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.certification-card {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  border: 1.5px solid var(--card-border-color, #065cc2);
}

.certification-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-image {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 250px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 576px) {
  .card-image { min-height: 180px; }
}

.card-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 15px 15px 0 0;
  transition: transform 0.3s ease;
  max-height: none;
}

.certification-card:hover .card-image img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.certification-card:hover .image-overlay {
  opacity: 1;
}

.overlay-icons {
  display: flex;
  gap: 15px;
}

.icon-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #065cc2;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.icon-btn:hover {
  background: #065cc2;
  color: white;
  transform: scale(1.1);
}

.card-content {
  padding: 25px;
}

.card-title {
  color: #13447f;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: var(--heading-font);
}

.card-subtitle {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
  font-weight: 500;
}

.card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: #e3f2fd;
  color: #065cc2;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Dark theme styles */
body.dark-theme .certification-card {
  background: #1a1a1a;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

body.dark-theme .certification-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

body.dark-theme .card-title {
  color: #f9d923;
}

body.dark-theme .card-subtitle {
  color: #ccc;
}

body.dark-theme .tag {
  background: rgba(249, 217, 35, 0.2);
  color: #f9d923;
}

/* Responsive design */
@media (max-width: 992px) {
  .certifications-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .certifications-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card-image {
    height: 180px;
  }

  .card-content {
    padding: 20px;
  }

  .card-title {
    font-size: 18px;
  }
}

/* Image Modal Styles */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.image-modal .modal-content {
  position: relative;
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 800px;
  top: 50%;
  transform: translateY(-50%);
  cursor: default;
}

.image-modal .modal-content img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.image-modal .close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.image-modal .close-btn:hover {
  color: #f9d923;
}

@media (max-width: 768px) {
  .image-modal .modal-content {
    width: 95%;
  }

  .image-modal .close-btn {
    top: -35px;
    font-size: 30px;
  }
}

/*--------------------------------------------------------------
# Skills Section
--------------------------------------------------------------*/

/* Skills Tech Grid */
.skills-tech-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.tech-card {
  background: var(--surface-color);
  padding: 40px 20px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  border: 1.5px solid var(--card-border-color, #065cc2);
}

.tech-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, var(--accent-color), #667eea);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tech-card:hover::before {
  opacity: 1;
}

.tech-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  position: relative;
  background: #f8f9fa;
  padding: 10px;
}

.tech-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
}

.tech-card h4 {
  color: var(--heading-color);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

/* Dark theme styles */
body.dark-theme .tech-card {
  background: #1a1a1a;
  border: 1.5px solid var(--card-border-color);
}

body.dark-theme .tech-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Responsive design */
@media (max-width: 992px) {
  .skills-tech-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .skills-tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .tech-card {
    padding: 30px 15px;
  }

  .tech-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    padding: 8px;
  }

  .tech-icon img {
    width: 44px;
    height: 44px;
  }

  .tech-card h4 {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .skills-tech-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}
.skills .skills-grid .skill-card {
  background: linear-gradient(135deg, var(--surface-color) 0%, color-mix(in srgb, var(--surface-color), var(--accent-color) 5%) 100%);
  /* FIX: color-mix syntax is valid, but ensure browser support. If not supported, fallback to a solid color or remove. */
  border-radius: 15px;
  padding: 30px;
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 85%);
  transition: all 0.3s ease;
}

.skills .skills-grid .skill-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), color-mix(in srgb, var(--accent-color), var(--heading-color) 30%));
}

.skills .skills-grid .skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px color-mix(in srgb, var(--accent-color), transparent 80%);
  border-color: color-mix(in srgb, var(--accent-color), transparent 60%);
}

.skills .skills-grid .skill-card .skill-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  gap: 15px;
}

.skills .skills-grid .skill-card .skill-header i {
  font-size: 28px;
  color: var(--accent-color);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  border-radius: 12px;
}

.skills .skills-grid .skill-card .skill-header h3 {
  font-size: 20px;
  margin: 0;
  color: var(--heading-color);
}

.skills .skills-grid .skill-card .skill-item {
  margin-bottom: 20px;
}

.skills .skills-grid .skill-card .skill-item:last-child {
  margin-bottom: 0;
}

.skills .skills-grid .skill-card .skill-item .skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.skills .skills-grid .skill-card .skill-item .skill-info .skill-name {
  font-weight: 600;
  color: var(--heading-color);
  font-size: 15px;
}

.skills .skills-grid .skill-card .skill-item .skill-info .skill-percentage {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-color);
}

.skills .skills-grid .skill-card .skill-item .skill-bar {
  height: 6px;
  background: color-mix(in srgb, var(--default-color), transparent 92%);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.skills .skills-grid .skill-card .skill-item .skill-bar .progress-bar {
  height: 100%;
  background: linear-gradient(45deg, var(--accent-color), color-mix(in srgb, var(--accent-color), var(--heading-color) 20%));
  border-radius: 10px;
  width: 0;
  transition: width 1.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.skills .skills-grid .skill-card .skill-item .skill-bar .progress-bar:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

.skills .skills-summary {
  background: var(--surface-color);
  padding: 40px 30px;
  border-radius: 15px;
  height: fit-content;
  position: sticky;
  top: 20px;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--default-color), transparent 90%);
}

.skills .skills-summary h3 {
  color: var(--heading-color);
  margin-bottom: 20px;
  font-size: 24px;
}

.skills .skills-summary p {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-bottom: 30px;
  line-height: 1.6;
}

.skills .skills-summary .summary-stats {
  margin-bottom: 30px;
}

.skills .skills-summary .summary-stats .stat-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 15px;
}

.skills .skills-summary .summary-stats .stat-item:last-child {
  margin-bottom: 0;
}

.skills .skills-summary .summary-stats .stat-item .stat-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), var(--heading-color) 30%));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skills .skills-summary .summary-stats .stat-item .stat-circle i {
  color: var(--contrast-color);
  font-size: 20px;
}

.skills .skills-summary .summary-stats .stat-item .stat-info .stat-number {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1;
}

.skills .skills-summary .summary-stats .stat-item .stat-info .stat-label {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.skills .skills-summary .skills-badges h4 {
  color: var(--heading-color);
  margin-bottom: 15px;
  font-size: 18px;
}

.skills .skills-summary .skills-badges .badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills .skills-summary .skills-badges .badge-list .skill-badge {
  background: linear-gradient(45deg, var(--accent-color), color-mix(in srgb, var(--accent-color), var(--heading-color) 20%));
  color: var(--contrast-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 991px) {
  .skills .skills-summary {
    margin-top: 30px;
    position: relative;
    top: auto;
  }
}

@media (max-width: 767px) {
  .skills .skills-grid .skill-card {
    padding: 25px 20px;
  }

  .skills .skills-grid .skill-card .skill-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .skills .skills-grid .skill-card .skill-header h3 {
    font-size: 18px;
  }

  .skills .skills-summary {
    padding: 30px 20px;
  }

  .skills .skills-summary .summary-stats .stat-item .stat-circle {
    width: 45px;
    height: 45px;
  }

  .skills .skills-summary .summary-stats .stat-item .stat-circle i {
    font-size: 18px;
  }

  .skills .skills-summary .summary-stats .stat-item .stat-info .stat-number {
    font-size: 20px;
  }
}

/* Experience Timeline Styles */
.experience.section {
  padding: 60px 0;
  background: #fff;
}

.timeline.timeline-centered {
  position: relative;
  margin: 40px auto;
  max-width: 900px;
  padding: 0;
}

.timeline.timeline-centered::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: #1976d2;
  border-radius: 2px;
  z-index: 0;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 40px;
  box-sizing: border-box;
  margin: 0 10px;
}
.swiper {
  overflow: visible;
}
.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-item .timeline-dot {
  position: absolute;
  top: 32px;
  width: 24px;
  height: 24px;
  background: #fff;
  border: 4px solid #1976d2;
  border-radius: 50%;
  z-index: 2;
}

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

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

.timeline-item .timeline-content {
  background: var(--surface-color);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--default-color), transparent 90%);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: 14px;
  padding: 28px 28px 22px 28px;
  margin-top: 20px;
  position: relative;
  max-width: 560px;
  width: 100%;
}

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

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

.timeline-date {
  display: block;
  color: #1976d2;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 1rem;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 2px;
  color: var(--heading-color);
}

.timeline-company {
  font-size: 1.1rem;
  color: #888;
  margin-bottom: 12px;
}

.timeline-content p {
  margin: 0;
  color: var(--default-color);
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 991px) {
  .timeline.timeline-centered {
    max-width: 100%;
    padding: 0 10px;
  }
  .timeline-item,
  .timeline-item.left,
  .timeline-item.right {
    width: 100%;
    left: 0;
    text-align: left;
    padding: 0 0 0 40px;
  }
  .timeline.timeline-centered::before {
    left: 24px;
    transform: none;
  }
  .timeline-item .timeline-dot {
    left: -12px;
    right: auto;
  }
  .timeline-item .timeline-content {
    margin: 14px 0 14px 40px;
  }
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .service-item {
  height: 100%;
  padding: 2rem;
  background-color: var(--surface-color);
  border-radius: 12px;
  box-shadow: 0 5px 25px -5px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
}

.services .service-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background-color: var(--accent-color);
  transition: height 0.3s ease-in-out;
}

.services .service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px -5px rgba(0, 0, 0, 0.08);
}

.services .service-item:hover::before {
  height: 100%;
}

.services .service-item:hover .icon i {
  transform: scale(1.1) rotate(5deg);
  color: var(--accent-color);
}

.services .service-item:hover .icon img {
  transform: scale(1.1) rotate(5deg);
}

.services .service-item:hover .link-item i {
  transform: translateX(5px);
}

.services .service-item .icon {
  margin-bottom: 1.5rem;
}

.services .service-item .icon i {
  font-size: 2.5rem;
  color: color-mix(in srgb, var(--accent-color), transparent 15%);
  transition: all 0.3s ease-in-out;
}

.services .service-item .icon img {
  width: 50px;     
  height: auto;
  display: block;
  transition: transform 0.3s ease-in-out;
}

.services .service-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--heading-color);
  font-family: var(--heading-font);
}

.services .service-item p {
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.services .service-item .card-links {
  margin-top: auto;
}

.services .service-item .card-links .link-item {
  display: inline-flex;
  align-items: center;
  color: var(--accent-color);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.services .service-item .card-links .link-item i {
  margin-left: 0.5rem;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.services .service-item .card-links .link-item:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
}

@media (max-width: 991px) {
  .services .card-item {
    padding: 1.75rem;
  }

  .services .card-item h3 {
    font-size: 1.35rem;
  }

  .services .card-item .icon i {
    font-size: 2.25rem;
  }

  .services .card-item .icon img {
    width: 40px;
  }
}

@media (max-width: 767px) {
  .services .card-item {
    padding: 1.5rem;
  }

  .services .card-item h3 {
    font-size: 1.25rem;
  }

  .services .card-item .icon i {
    font-size: 2rem;
  }


  .services .card-item .icon img {
    width: 35px;
  }

  .services .card-item:hover {
    transform: translateY(-3px);
  }
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio .portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 0;
  margin: 0 0 40px;
  list-style: none;
}

.portfolio .portfolio-filters li {
  font-size: 15px;
  font-weight: 500;
  padding: 12px 25px;
  cursor: pointer;
  background: var(--surface-color);
  color: var(--default-color);
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.portfolio .portfolio-filters li i {
  font-size: 1.1em;
  transition: transform 0.3s ease;
}

.portfolio .portfolio-filters li:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
}

.portfolio .portfolio-filters li:hover i {
  transform: scale(1.1);
}

.portfolio .portfolio-filters li.filter-active {
  background: var(--accent-color);
  color: var(--contrast-color);
}

@media (max-width: 768px) {
  .portfolio .portfolio-filters {
    gap: 10px;
  }

  .portfolio .portfolio-filters li {
    padding: 8px 20px;
    font-size: 14px;
  }
}

.portfolio .portfolio-entry {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-color);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.portfolio .portfolio-entry .entry-image {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.portfolio .portfolio-entry .entry-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio .portfolio-entry .entry-image .entry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
  display: flex;
  align-items: flex-end;
  padding: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio .portfolio-entry .entry-image .entry-overlay .overlay-content {
  width: 100%;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio .portfolio-entry .entry-image .entry-overlay .entry-meta {
  color: var(--accent-color);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.portfolio .portfolio-entry .entry-image .entry-overlay .entry-title {
  color: var(--contrast-color);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 10px;
}

.portfolio .portfolio-entry .entry-image .entry-overlay .entry-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.portfolio .portfolio-entry .entry-image .entry-overlay .entry-links {
  display: flex;
  gap: 15px;
}

.portfolio .portfolio-entry .entry-image .entry-overlay .entry-links a {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-color);
  color: var(--accent-color);
  border-radius: 12px;
  font-size: 20px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.portfolio .portfolio-entry .entry-image .entry-overlay .entry-links a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-2px);
}

.portfolio .portfolio-entry .entry-image .entry-overlay .entry-links a:nth-child(1) {
  transition-delay: 0.1s;
}

.portfolio .portfolio-entry .entry-image .entry-overlay .entry-links a:nth-child(2) {
  transition-delay: 0.2s;
}

.portfolio .portfolio-entry:hover .entry-image img {
  transform: scale(1.05);
}

.portfolio .portfolio-entry:hover .entry-image .entry-overlay {
  opacity: 1;
  transform: translateY(0);
}

.portfolio .portfolio-entry:hover .entry-image .entry-overlay .overlay-content {
  transform: translateY(0);
}

.portfolio .portfolio-entry:hover .entry-image .entry-overlay .entry-links a {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .portfolio .portfolio-entry .entry-image .entry-overlay {
    padding: 20px;
  }

  .portfolio .portfolio-entry .entry-image .entry-overlay .entry-title {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .portfolio .portfolio-entry .entry-image .entry-overlay .entry-links a {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

.portfolio .portfolio-item .entry-image {
  aspect-ratio: 4/3;
}

@media (min-width: 1200px) {
  .portfolio .portfolio-item .entry-title {
    font-size: 20px;
  }
}

@media (min-width: 768px) {
  .portfolio .row {
    margin-left: -10px;
    margin-right: -10px;
  }

  .portfolio .row .portfolio-item {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (min-width: 992px) {
  .portfolio .row {
    margin-left: -12px;
    margin-right: -12px;
  }

  .portfolio .row .portfolio-item {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (min-width: 1200px) {
  .portfolio .row {
    margin-left: -15px;
    margin-right: -15px;
  }

  .portfolio .row .portfolio-item {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (min-width: 1200px) {
  .portfolio .entry-overlay {
    padding: 25px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .portfolio .entry-overlay {
    padding: 20px;
  }
}

@media (max-width: 991px) {
  .portfolio .entry-overlay {
    padding: 20px;
  }
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonial-card {
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  background: var(--experience-card-bg, #fff);
  color: var(--experience-card-text, #232b3e);
  width: 100%;
  max-width: 350px;
  min-width: 300px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  word-break: break-word;
  overflow-wrap: break-word;
}
 

.testimonials .critic-reviews .critic-review .review-quote {
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 80px;
  font-family: Georgia, serif;
  color: var(--accent-color);
  opacity: 0.2;
  line-height: 1;
}

.testimonials .critic-reviews .critic-review .stars {
  margin-bottom: 15px;
  display: flex;
}

.testimonials .critic-reviews .critic-review .stars i {
  color: #FFD700;
  margin-right: 3px;
  font-size: 18px;
}

.testimonials .critic-reviews .critic-review p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--default-color);
  font-style: italic;
}

.testimonials .critic-reviews .critic-review .critic-info .critic-name {
  font-weight: 600;
  color: var(--heading-color);
  font-size: 16px;
}

.testimonials .critic-reviews .critic-review:hover {
  transform: translateY(-10px);
}

.testimonials .testimonials-container {
  margin-bottom: 60px;
}

.testimonials .testimonials-container .swiper-wrapper {
  height: auto !important;
  padding-bottom: 20px;
}

.testimonials .testimonials-container .testimonial-item {
  background-color: var(--surface-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  border-top: 3px solid var(--accent-color);
}

.testimonials .testimonials-container .testimonial-item .stars {
  margin-bottom: 15px;
  display: flex;
}

.testimonials .testimonials-container .testimonial-item .stars i {
  color: #FFD700;
  margin-right: 3px;
  font-size: 16px;
}

.testimonials .testimonials-container .testimonial-item p {
  font-size: 15px;
  font-style: italic;
  margin-bottom: 20px;
  color: var(--default-color);
  line-height: 1.6;
}

.testimonials .testimonials-container .testimonial-item .testimonial-profile {
  display: flex;
  align-items: center;
}

.testimonials .testimonials-container .testimonial-item .testimonial-profile img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 4px solid color-mix(in srgb, var(--accent-color), transparent 80%);
  margin-right: 15px;
}

.testimonials .testimonials-container .testimonial-item .testimonial-profile div h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 5px;
  color: var(--heading-color);
}

.testimonials .testimonials-container .testimonial-item .testimonial-profile div h4 {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin: 0;
  font-weight: normal;
}

.testimonials .testimonials-container .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.testimonials .testimonials-container .swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: color-mix(in srgb, var(--accent-color), transparent 70%);
  opacity: 1;
}

.testimonials .testimonials-container .swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background-color: var(--accent-color);
  width: 20px;
  border-radius: 10px;
}

/* Testimonials Section - Custom Layout */
.testimonials .testimonials-main-slider {
  margin-top: 40px;
  margin-bottom: 0; /* Remove bottom margin so pagination sits directly below */
}

.testimonials .swiper-pagination {
  margin-top: 32px;
  text-align: center;
  position: static; /* Not absolute, so it stays below the slider */
}

.testimonials .testimonial-card {
  background: var(--surface-color);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
  padding: 48px 32px 32px 32px;
  text-align: center;
  transition: box-shadow 0.3s, opacity 0.3s, filter 0.3s;
  max-width: 420px;
  margin: 0 auto;
  opacity: 1;
  filter: none;
}

@media (max-width: 576px) {
  .testimonials .testimonial-card { padding: 28px 16px 20px 16px; }
}

.testimonials .testimonial-card .stars {
  margin-bottom: 18px;
  display: flex;
  justify-content: center;
}

.testimonials .testimonial-card .stars i {
  color: #FFD700;
  margin: 0 2px;
  font-size: 22px;
}

.testimonials .testimonial-card p {
  font-size: 1.15rem;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-style: italic;
  margin-bottom: 32px;
  min-height: 90px;
  line-height: 1.6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonials .testimonial-card .testimonial-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}

.testimonials .testimonial-card .testimonial-profile img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 4px solid color-mix(in srgb, var(--accent-color), transparent 80%);
}

.testimonials .testimonial-card .testimonial-profile h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 2px;
}

.testimonials .testimonial-card .testimonial-profile h4 {
  font-size: 1rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-weight: 400;
  margin-bottom: 0;
}

.testimonials .testimonial-card.active {
  box-shadow: 0 12px 40px rgba(6,92,194,0.13);
  border: 2px solid var(--accent-color);
  background: #fff;
  opacity: 1;
  filter: none;
  z-index: 2;
}

.testimonials .testimonial-card.faded {
  opacity: 0.45;
  filter: blur(1px);
  box-shadow: none;
  border: none;
  background: var(--surface-color);
  z-index: 1;
}

.testimonials .testimonials-main-slider .swiper-wrapper {
  align-items: center;
}

.testimonials .testimonials-main-slider .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: auto;
}

.testimonials .testimonials-main-slider .swiper-pagination {
  margin-top: 32px;
  text-align: center;
}

.testimonials .testimonials-main-slider .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: color-mix(in srgb, var(--accent-color), transparent 70%);
  opacity: 1;
  margin: 0 6px;
  border-radius: 50%;
  transition: background 0.3s;
}

.testimonials .testimonials-main-slider .swiper-pagination .swiper-pagination-bullet-active {
  background: var(--accent-color);
  width: 18px;
  border-radius: 9px;
}

@media (max-width: 991px) {
  .testimonials .testimonials-main-slider .swiper-slide {
    max-width: 100%;
  }
  .testimonials .testimonial-card {
    padding: 32px 16px 24px 16px;
    max-width: 95vw;
  }
}

@media (max-width: 767px) {
  .testimonials .testimonials-main-slider .swiper-slide {
    max-width: 100%;
  }
  .testimonials .testimonial-card {
    padding: 24px 8px 16px 8px;
    max-width: 99vw;
    font-size: 1rem;
  }
  .testimonials .testimonial-card .testimonial-profile img {
    width: 56px;
    height: 56px;
  }
}

/*--------------------------------------------------------------
# Faq Section
--------------------------------------------------------------*/
.faq {
  padding-top: 60px;
  padding-bottom: 60px;
}

.faq .faq-container .faq-item {
  background-color: var(--surface-color);
  position: relative;
  padding: 20px;
  margin-bottom: 15px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: 5px;
  overflow: hidden;
}

.faq .faq-container .faq-item:last-child {
  margin-bottom: 0;
}

.faq .faq-container .faq-item h3 {
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  margin: 0 30px 0 0;
  transition: 0.3s;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.faq .faq-container .faq-item h3 .num {
  color: var(--accent-color);
  padding-right: 5px;
}

.faq .faq-container .faq-item h3:hover {
  color: var(--accent-color);
}

.faq .faq-container .faq-item .faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: 0.3s ease-in-out;
  visibility: hidden;
  opacity: 0;
}

.faq .faq-container .faq-item .faq-content p {
  margin-bottom: 0;
  overflow: hidden;
}

.faq .faq-container .faq-item .faq-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 16px;
  line-height: 0;
  transition: 0.3s;
  cursor: pointer;
}

.faq .faq-container .faq-item .faq-toggle:hover {
  color: var(--accent-color);
}

.faq .faq-container .faq-active {
  background-color: color-mix(in srgb, var(--accent-color), transparent 97%);
  border-color: color-mix(in srgb, var(--accent-color), transparent 80%);
}

.faq .faq-container .faq-active h3 {
  color: var(--accent-color);
}

.faq .faq-container .faq-active .faq-content {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
  padding-top: 10px;
}

.faq .faq-container .faq-active .faq-toggle {
  transform: rotate(90deg);
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-box {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  padding: 3rem;
  border-radius: 1rem;
  height: 100%;
}

.contact .info-box h3 {
  color: var(--contrast-color);
  font-size: 2rem;
  margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
  .contact .info-box h3 {
    font-size: 1.75rem;
  }
}

.contact .info-box p {
  opacity: 0.8;
  margin-bottom: 2rem;
}

.contact .info-box a {
  color: var(--contrast-color);
}

@media (max-width: 992px) {
  .contact .info-box {
    padding: 1.5rem;
  }
}

.contact .info-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact .info-item:last-child {
  margin-bottom: 0;
}

.contact .info-item .icon-box {
  width: 3.5rem;
  height: 3.5rem;
  background-color: color-mix(in srgb, var(--contrast-color), transparent 85%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: 0.3s;
}

.contact .info-item .icon-box i {
  font-size: 1.5rem;
  color: var(--contrast-color);
}

.contact .info-item:hover .icon-box {
  background-color: color-mix(in srgb, var(--contrast-color), transparent 70%);
}

.contact .info-item .content h4 {
  color: var(--contrast-color);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.contact .info-item .content p {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.contact .info-item .content p:last-child {
  margin-bottom: 0;
}

.contact .contact-form {
  background-color: var(--surface-color);
  padding: 3rem;
  border-radius: 1rem;
  height: 100%;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.05);
  border: 1.5px solid var(--card-border-color);
}

@media (max-width: 992px) {
  .contact .contact-form {
    padding: 1.5rem;
  }
}

.contact .contact-form h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .contact .contact-form h3 {
    font-size: 1.75rem;
  }
}

.contact .contact-form p {
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  margin-bottom: 2rem;
}

.contact .contact-form .form-control,
.contact .contact-form .form-select {
  padding: 0.875rem 1.25rem;
  border-color: color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 0.5rem;
  background-color: color-mix(in srgb, var(--surface-color) 90%, white 5%);
  color: var(--default-color);
}

.contact .contact-form .form-control:focus,
.contact .contact-form .form-select:focus {
  box-shadow: none;
  border-color: var(--accent-color);
}

.contact .contact-form .form-control::placeholder,
.contact .contact-form .form-select::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.contact .contact-form .btn {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  padding: 1rem 2rem;
  border-radius: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: 0.3s;
}

.contact .contact-form .btn i {
  font-size: 1.25rem;
}

.contact .contact-form .btn:hover {
  background-color: color-mix(in srgb, var(--accent-color), var(--contrast-color) 20%);
}

/*--------------------------------------------------------------
# Portfolio Details Section
--------------------------------------------------------------*/
.portfolio-details {
  --section-spacing: 2.5rem;
}

.portfolio-details .portfolio-details-media {
  position: relative;
}

.portfolio-details .portfolio-details-media .main-image {
  margin-bottom: 1rem;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider {
  position: relative;
}

.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-wrapper {
  height: auto !important;
}

.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-slide img {
  aspect-ratio: 3/2;
  object-fit: cover;
  width: 100%;
}

.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-button-next,
.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-button-prev {
  background-color: var(--contrast-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-button-next:after,
.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-button-prev:after {
  font-size: 16px;
  color: var(--accent-color);
  font-weight: bold;
}

.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-button-next:hover,
.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-button-prev:hover {
  background-color: var(--accent-color);
}

.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-button-next:hover:after,
.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-button-prev:hover:after {
  color: var(--contrast-color);
}

.portfolio-details .portfolio-details-media .thumbnail-grid img {
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.portfolio-details .portfolio-details-media .tech-stack-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.5rem;
}

.portfolio-details .portfolio-details-media .tech-stack-badges span {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 20px;
  background-color: color-mix(in srgb, var(--heading-color), transparent 85%);
  color: var(--heading-color);
  transition: all 0.3s ease;
}

.portfolio-details .portfolio-details-media .tech-stack-badges span:hover {
  background-color: color-mix(in srgb, var(--heading-color), transparent 70%);
  transform: translateY(-2px);
}

.portfolio-details .portfolio-details-content {
  padding: 0 0 0 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portfolio-details .portfolio-details-content .project-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.portfolio-details .portfolio-details-content .project-meta .badge-wrapper .project-badge {
  display: inline-block;
  padding: 8px 16px;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
}

.portfolio-details .portfolio-details-content .project-meta .date-client {
  display: flex;
  gap: 1.5rem;
}

.portfolio-details .portfolio-details-content .project-meta .date-client .meta-item {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.portfolio-details .portfolio-details-content .project-meta .date-client .meta-item i {
  margin-right: 6px;
  color: var(--accent-color);
}

.portfolio-details .portfolio-details-content .project-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--heading-color);
}

.portfolio-details .portfolio-details-content .project-website {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.portfolio-details .portfolio-details-content .project-website i {
  font-size: 22px;
  color: var(--accent-color);
  margin-right: 8px;
}

.portfolio-details .portfolio-details-content .project-website a {
  font-weight: 500;
  transition: all 0.3s;
}

.portfolio-details .portfolio-details-content .project-website a:hover {
  letter-spacing: 0.5px;
}

.portfolio-details .portfolio-details-content .project-overview {
  margin-bottom: var(--section-spacing);
}

.portfolio-details .portfolio-details-content .project-overview .lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
  margin-bottom: 1.5rem;
}

.portfolio-details .portfolio-details-content .project-overview .project-accordion .accordion-item {
  border: none;
  background: none;
  margin-bottom: 10px;
}

.portfolio-details .portfolio-details-content .project-overview .project-accordion .accordion-item .accordion-header .accordion-button {
  padding: 1rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--heading-color);
  background-color: color-mix(in srgb, var(--surface-color), transparent 70%);
  border-radius: 8px !important;
  box-shadow: none;
}

.portfolio-details .portfolio-details-content .project-overview .project-accordion .accordion-item .accordion-header .accordion-button:not(.collapsed) {
  background-color: var(--surface-color);
  color: var(--accent-color);
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.portfolio-details .portfolio-details-content .project-overview .project-accordion .accordion-item .accordion-header .accordion-button:not(.collapsed) i {
  color: var(--accent-color);
}

.portfolio-details .portfolio-details-content .project-overview .project-accordion .accordion-item .accordion-header .accordion-button::after {
  background-size: 14px;
  width: 14px;
  height: 14px;
}

.portfolio-details .portfolio-details-content .project-overview .project-accordion .accordion-item .accordion-header .accordion-button i {
  font-size: 1.1rem;
}

.portfolio-details .portfolio-details-content .project-overview .project-accordion .accordion-item .accordion-body {
  padding: 1rem;
  background-color: var(--surface-color);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.portfolio-details .portfolio-details-content .project-overview .project-accordion .accordion-item .accordion-body p {
  margin-bottom: 0;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  line-height: 1.6;
}

.portfolio-details .portfolio-details-content .project-features {
  margin-bottom: var(--section-spacing);
}

.portfolio-details .portfolio-details-content .project-features h3 {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  margin-bottom: 1.2rem;
}

.portfolio-details .portfolio-details-content .project-features h3 i {
  margin-right: 10px;
  color: var(--accent-color);
  font-size: 1.1em;
}

.portfolio-details .portfolio-details-content .project-features .feature-list {
  list-style: none;
  padding-left: 0;
}

.portfolio-details .portfolio-details-content .project-features .feature-list li {
  display: flex;
  align-items: center;
  padding: 8px 0;
  font-size: 15px;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
}

.portfolio-details .portfolio-details-content .project-features .feature-list li i {
  color: var(--accent-color);
  margin-right: 10px;
  font-size:  1.1em;
}

.portfolio-details .portfolio-details-content .cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: auto;
}

.portfolio-details .portfolio-details-content .cta-buttons .btn-view-project {
  padding: 12px 28px;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.portfolio-details .portfolio-details-content .cta-buttons .btn-view-project:hover {
  background-color: color-mix(in srgb, var(--accent-color), black 15%);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-details .portfolio-details-content .cta-buttons .btn-next-project {
  padding: 12px 28px;
  background-color: color-mix(in srgb, var(--heading-color), transparent 90%);
  color: var(--heading-color);
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.portfolio-details .portfolio-details-content .cta-buttons .btn-next-project i {
  transition: transform 0.3s ease;
}

.portfolio-details .portfolio-details-content .cta-buttons .btn-next-project:hover {
  background-color: color-mix(in srgb, var(--heading-color), transparent 80%);
}

.portfolio-details .portfolio-details-content .cta-buttons .btn-next-project:hover i {
  transform: translateX(3px);
}

@media (max-width: 1199.98px) {
  .portfolio-details .portfolio-details-content {
    padding-left: 1rem;
  }
}

@media (max-width: 991.98px) {
  .portfolio-details .portfolio-details-content {
    padding: 2rem 0 0 0;
  }

  .portfolio-details .portfolio-details-content .cta-buttons {
    margin-top: 2rem;
  }
}

@media (max-width: 767.98px) {
  .portfolio-details .project-meta {
    flex-direction: column;
    gap: 1rem;
  }

  .portfolio-details .project-meta .date-client {
    flex-direction: column;
    gap: 0.5rem;
  }

  .portfolio-details .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .portfolio-details .cta-buttons a {
    width: 100%;
    text-align: center;
  }
}

/*--------------------------------------------------------------
# Service Details Section
--------------------------------------------------------------*/
.service-details .service-hero {
  position: relative;
  margin-bottom: 40px;
  border-radius: 12px;
  overflow: hidden;
}

.service-details .service-hero img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.service-details .service-hero .service-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent-color);
  color: var(--contrast-color);
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
}

.service-details .service-content .service-header {
  margin-bottom: 40px;
}

.service-details .service-content .service-header h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--heading-color);
}

.service-details .service-content .service-header .service-intro {
  font-size: 18px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.service-details .service-content h4 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 30px;
  color: var(--heading-color);
}

.service-details .service-features {
  margin-bottom: 50px;
}

.service-details .service-features .feature-item {
  display: flex;
  align-items: flex-start;
  padding: 20px;
  background: var(--surface-color);
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  transition: all 0.3s ease;
}

.service-details .service-features .feature-item:hover {
  box-shadow: 0 8px 25px color-mix(in srgb, var(--default-color), transparent 90%);
  transform: translateY(-2px);
}

.service-details .service-features .feature-item .feature-icon {
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
}

.service-details .service-features .feature-item .feature-icon i {
  font-size: 24px;
  color: var(--accent-color);
}

.service-details .service-features .feature-item .feature-content h5 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--heading-color);
}

.service-details .service-features .feature-item .feature-content p {
  font-size: 14px;
  margin: 0;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.service-details .service-process {
  margin-bottom: 50px;
}

.service-details .service-process .process-steps .process-step {
  display: flex;
  margin-bottom: 30px;
  position: relative;
}

.service-details .service-process .process-steps .process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 60px;
  width: 2px;
  height: 40px;
  background: color-mix(in srgb, var(--accent-color), transparent 70%);
}

.service-details .service-process .process-steps .process-step .step-number {
  background: var(--accent-color);
  color: var(--contrast-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: 25px;
  flex-shrink: 0;
  font-size: 16px;
}

.service-details .service-process .process-steps .process-step .step-content h5 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--heading-color);
}

.service-details .service-process .process-steps .process-step .step-content p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.service-details .service-gallery {
  margin-bottom: 30px;
}

.service-details .service-gallery img {
  transition: transform 0.3s ease;
}

.service-details .service-gallery img:hover {
  transform: scale(1.05);
}

.service-details .service-sidebar .service-menu {
  background: var(--surface-color);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.service-details .service-sidebar .service-menu h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 25px;
  color: var(--heading-color);
}

.service-details .service-sidebar .service-menu .menu-list .menu-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  color: var(--default-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.service-details .service-sidebar .service-menu .menu-list .menu-item:last-child {
  border-bottom: none;
}

.service-details .service-sidebar .service-menu .menu-list .menu-item:hover,
.service-details .service-sidebar .service-menu .menu-list .menu-item.active {
  color: var(--accent-color);
  padding-left: 10px;
}

.service-details .service-sidebar .service-menu .menu-list .menu-item:hover i,
.service-details .service-sidebar .service-menu .menu-list .menu-item.active i {
  color: var(--accent-color);
}

.service-details .service-sidebar .service-menu .menu-list .menu-item i {
  margin-right: 12px;
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  transition: color 0.3s ease;
}

.service-details .service-sidebar .service-menu .menu-list .menu-item span {
  font-weight: 500;
}

.service-details .service-sidebar .service-info {
  background: var(--surface-color);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.service-details .service-sidebar .service-info h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 25px;
  color: var(--heading-color);
}

.service-details .service-sidebar .service-info .info-list .info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.service-details .service-sidebar .service-info .info-list .info-item:last-child {
  border-bottom: none;
}

.service-details .service-sidebar .service-info .info-list .info-item .info-label {
  font-weight: 500;
  color: var(--default-color);
}

.service-details .service-sidebar .service-info .info-list .info-item .info-value {
  font-weight: 600;
  color: var(--accent-color);
}

.service-details .service-sidebar .contact-card {
  background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #000 20%));
  padding: 30px;
  border-radius: 10px;
  color: var(--contrast-color);
}

.service-details .service-sidebar .contact-card .contact-content h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--contrast-color);
}

.service-details .service-sidebar .contact-card .contact-content p {
  margin-bottom: 20px;
  opacity: 0.9;
  font-size: 14px;
  line-height: 1.6;
}

.service-details .service-sidebar .contact-card .contact-content .contact-info {
  margin-bottom: 25px;
}

.service-details .service-sidebar .contact-card .contact-content .contact-info .contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.service-details .service-sidebar .contact-card .contact-content .contact-info .contact-item i {
  margin-right: 10px;
  opacity: 0.8;
}

.service-details .service-sidebar .contact-card .contact-content .contact-info .contact-item span {
  font-size: 14px;
}

.service-details .service-sidebar .contact-card .contact-content .btn {
  background: var(--contrast-color);
  color: var(--accent-color);
  border: none;
  padding: 12px 25px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.service-details .service-sidebar .contact-card .contact-content .btn:hover {
  background: color-mix(in srgb, var(--contrast-color), transparent 10%);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .service-details .service-hero img {
    height: 250px;
  }

  .service-details .service-hero .service-badge {
    top: 15px;
    right: 15px;
    padding: 6px 15px;
    font-size: 12px;
  }

  .service-details .service-content .service-header h2 {
    font-size: 24px;
  }

  .service-details .feature-item {
    padding: 15px !important;
  }

  .service-details .feature-item .feature-icon {
    width: 50px !important;
    height: 50px !important;
    margin-right: 15px !important;
  }

  .service-details .feature-item .feature-icon i {
    font-size: 20px !important;
  }

  .service-details .service-sidebar {
    margin-top: 30px;
  }
}

/* Dark theme styles */
body.dark-theme {
  --background-color: #19213a;
  --default-color: #e3e8f0;
  --heading-color: #ffffff;
  --accent-color: #f9d923;
  --surface-color: #222a3a;
  --contrast-color: #19213a;
}

body.dark-theme .header {
  background: #222a3a;
  border-bottom: 1px solid #444;
}

body.dark-theme .header .navbar-nav .nav-link {
  color: #e3e8f0 !important;
}

body.dark-theme .header .navbar-nav .nav-link.active,
body.dark-theme .header .navbar-nav .nav-link:hover {
  color: #f9d923 !important;
}

body.dark-theme .header .navbar-nav .nav-link.active::after,
body.dark-theme .header .navbar-nav .nav-link:hover::after {
  background: #f9d923;
}

body.dark-theme .header .logo span {
  color: #f9d923;
}

body.dark-theme .section-title h2,
body.dark-theme .section-title p {
  color: #f9d923;
}

body.dark-theme .section-title h2::after {
  background: #f9d923;
}

/* Remove animated background for hero image */
.animated-bg-container,
.animated-bg {
  display: none !important;
}

/* Update profile image to simple 2D circle */
.animated-profile-img {
  position: relative;
  z-index: 2;
  width: 380px;
  height: 380px;
  object-fit: cover;
  border-radius: 50%;
  background: none;
  border: 2px solid #e3e8f0; /* subtle border for clarity */
  box-shadow: none;
  margin: 0 auto;
  display: block;
  animation: none;
}

/*--------------------------------------------------------------
# Review Form Section
--------------------------------------------------------------*/
.review-form {
  background: var(--background-color);
  padding: 80px 0;
}

.review-form-card {
  background: var(--surface-color);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1.5px solid var(--card-border-color);
}

.review-form .form-label {
  color: var(--heading-color);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.review-form .form-control {
  border: 2px solid #e3e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: var(--surface-color);
  color: var(--default-color);
}

.review-form .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(6, 92, 194, 0.25);
  outline: none;
}

.review-form .form-control::placeholder {
  color: #8a9bb5;
}

/* Star Rating Styles */
.rating-section {
  text-align: center;
}

.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
}

.star-rating input[type="radio"] {
  display: none;
}

.star-rating .star {
  cursor: pointer;
  font-size: 2rem;
  color: #ddd;
  transition: color 0.3s ease;
}

.star-rating .star i {
  color: inherit;
}

.star-rating input[type="radio"]:checked ~ .star,
.star-rating .star:hover,
.star-rating .star:hover ~ .star {
  color: #ffd700;
}

.star-rating .star:hover {
  transform: scale(1.1);
}

/* Button Styles */
.review-form .btn {
  background: var(--accent-color);
  border: none;
  color: var(--contrast-color);
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.review-form .btn:hover {
  background: #0548a3;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(6, 92, 194, 0.3);
}

/* Dark Theme Support */
body.dark-theme .review-form-card {
  background: #1a1a1a;
  border: 1.5px solid var(--card-border-color);
}

body.dark-theme .review-form .form-control {
  background: #2a2a2a;
  border-color: #444;
  color: #f9d923;
}

body.dark-theme .review-form .form-control:focus {
  border-color: #f9d923;
  box-shadow: 0 0 0 0.2rem rgba(249, 217, 35, 0.25);
}

body.dark-theme .review-form .form-control::placeholder {
  color: #888;
}

body.dark-theme .review-form .form-label {
  color: #f9d923;
}

/* Testimonial stars styling for new reviews */
.testimonial-card .stars i.bi-star {
  color: #ddd;
}

.testimonial-card .stars i.bi-star-fill {
  color: #ffd700;
}

/* Fixed testimonial card sizes and hover behavior */
.testimonial-card {
  min-height: 450px;
  max-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 30px;
  transition: background-color 0.3s ease, color 0.3s ease !important;
  transform: none !important;
  background: var(--surface-color);
  border: none;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  color: var(--default-color);
  margin-bottom: 60px;
}

.testimonial-card p {
  flex-grow: 1;
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  overflow: hidden;
  line-height: 1.6;
  color: inherit;
  transition: color 0.3s ease;
}

.testimonial-card .testimonial-profile {
  margin-top: auto;
  flex-shrink: 0;
  text-align: center;
  position: relative;
  z-index: 2;
}

.testimonial-card .testimonial-profile img {
  margin-bottom: 15px;
  position: relative;
  z-index: 3;
}

.testimonial-card .testimonial-profile h3 {
  color: inherit;
  margin-bottom: 5px;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.testimonial-card .testimonial-profile h4 {
  color: inherit;
  opacity: 0.8;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

/* Active and faded states - Light Mode */
.testimonial-card.active {
  opacity: 1;
  transform: scale(1);
  background: var(--surface-color);
  color: var(--default-color);
}

.testimonial-card.active p {
  color: var(--default-color);
}

.testimonial-card.active .testimonial-profile h3 {
  color: var(--heading-color);
}

.testimonial-card.active .testimonial-profile h4 {
  color: var(--default-color);
  opacity: 0.8;
}

.testimonial-card.faded {
  opacity: 0.7;
  transform: scale(0.95);
  background: var(--surface-color);
  color: var(--default-color);
}

.testimonial-card.faded p {
  color: var(--default-color);
}

.testimonial-card.faded .testimonial-profile h3 {
  color: var(--heading-color);
}

.testimonial-card.faded .testimonial-profile h4 {
  color: var(--default-color);
}

/* Disable swiper auto-slide and hover effects */
.swiper-slide {
  transition: none !important;
  transform: none !important;
}

.swiper-slide:hover {
  transform: none !important;
}

/* Ensure consistent card behavior */
.testimonial-card:hover {
  transform: none !important;
  transition: none !important;
}

/* Pause swiper on hover */
.testimonials-main-slider:hover {
  pointer-events: auto;
}

.testimonials-main-slider:hover .swiper-wrapper {
  animation-play-state: paused !important;
}

/* Dark theme testimonial cards */
body.dark-theme .testimonial-card {
  background: #1a1a1a !important;
  color: #ffffff !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

body.dark-theme .testimonial-card p {
  color: #ffffff !important;
}

body.dark-theme .testimonial-card .testimonial-profile h3 {
  color: #ffffff !important;
}

body.dark-theme .testimonial-card .testimonial-profile h4 {
  color: #ffffff !important;
  opacity: 0.8;
}

body.dark-theme .testimonial-card.faded {
  background: #1a1a1a !important;
  color: #ffffff !important;
}

body.dark-theme .testimonial-card.faded p {
  color: #ffffff !important;
}

body.dark-theme .testimonial-card.faded .testimonial-profile h3 {
  color: #ffffff !important;
}

body.dark-theme .testimonial-card.faded .testimonial-profile h4 {
  color: #ffffff !important;
  opacity: 0.8;
}

body.dark-theme .testimonial-card.active {
  background: #2c3e50 !important;
  color: #ffffff !important;
}

body.dark-theme .testimonial-card.active p {
  color: #ffffff !important;
}

body.dark-theme .testimonial-card.active .testimonial-profile h3 {
  color: #ffffff !important;
}

body.dark-theme .testimonial-card.active .testimonial-profile h4 {
  color: #ffffff !important;
  opacity: 0.9;
}

/* Testimonials pagination positioning */
.testimonials-main-slider .swiper-pagination {
  position: relative;
  bottom: auto;
  margin-top: 30px;
  text-align: center;
}

.testimonials-main-slider .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  margin: 0 6px;
  background: #ccc;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.testimonials-main-slider .swiper-pagination-bullet-active {
  background: var(--accent-color);
  opacity: 1;
  transform: scale(1.2);
}

/* Testimonials arrows color by theme */
body:not(.dark-theme) #testimonials .swiper-button-next,
body:not(.dark-theme) #testimonials .swiper-button-prev {
  color: #065cc2;
}
body:not(.dark-theme) #testimonials .swiper-button-next:after,
body:not(.dark-theme) #testimonials .swiper-button-prev:after {
  color: #065cc2;
}
body.dark-theme #testimonials .swiper-button-next,
body.dark-theme #testimonials .swiper-button-prev {
  color: #ffd700;
}
body.dark-theme #testimonials .swiper-button-next:after,
body.dark-theme #testimonials .swiper-button-prev:after {
  color: #ffd700;
}

/* Dark theme pagination */
body.dark-theme .testimonials-main-slider .swiper-pagination-bullet {
  background: #666;
}

body.dark-theme .testimonials-main-slider .swiper-pagination-bullet-active {
  background: #ffffff;
}

/* --- Testimonials: keep text readable, responsive, and cards auto-growing --- */
#testimonials .testimonial-card {
  min-height: auto !important;
  max-height: none !important;
  height: auto !important;
}
#testimonials .testimonial-card p {
  word-break: keep-all;
  overflow-wrap: break-word;
  white-space: normal;
  hyphens: none !important;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  line-height: 1.6;
}
@media (max-width: 576px) {
  #testimonials .testimonial-card p { font-size: 0.95rem; }
}
@media (min-width: 992px) {
  #testimonials .testimonial-card p { font-size: 1.1rem; }
}

/* Ensure consistent slide/card vertical sizing in Testimonials */
#testimonials .testimonials-main-slider .swiper-wrapper { align-items: stretch !important; }
#testimonials .testimonials-main-slider .swiper-slide { display: flex; align-items: stretch !important; }
#testimonials .testimonials-main-slider .swiper-slide > .testimonial-card { height: auto !important; }

/*--------------------------------------------------------------
# Enhanced Hero Name and Position Animations
--------------------------------------------------------------*/

/* Enhanced Hero Title Styling */
.hero .hero-title {
  font-size: 4rem !important;
  font-weight: 700 !important;
  margin-bottom: 2rem !important;
  line-height: 1.2 !important;
}

/* Animated Name Styling */
.animated-name {
  font-size: 3.2rem !important;
  font-weight: 800 !important;
  background: linear-gradient(45deg, #065cc2, #f9d923, #e74c3c, #9b59b6, #3498db);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite, bounceIn 1s ease-out;
  display: inline-block;
  text-shadow: none;
}

/* Data Analyst Position Styling */
.hero .hero-title span[style*="color:#065cc2"] {
  font-size: 3rem !important;
  font-weight: 700 !important;
  color: #065cc2 !important;
  animation: colorPulse 2s ease-in-out infinite, slideInUp 1s ease-out !important;
  display: inline-block !important;
  text-shadow: 0 4px 8px rgba(6, 92, 194, 0.5), 0 0 15px rgba(6, 92, 194, 0.3) !important;
  letter-spacing: 1px !important;
  margin-top: 10px !important;
  text-transform: capitalize !important;
}

/* Gradient Animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Color Pulse Animation for Position */
@keyframes colorPulse {
  0% {
    color: #065cc2;
    transform: scale(1);
    text-shadow: 0 6px 12px rgba(6, 92, 194, 0.7), 0 0 20px rgba(6, 92, 194, 0.4);
  }
  20% {
    color: #f9d923;
    transform: scale(1.1);
    text-shadow: 0 6px 12px rgba(249, 217, 35, 0.7), 0 0 25px rgba(249, 217, 35, 0.5);
  }
  40% {
    color: #e74c3c;
    transform: scale(1.05);
    text-shadow: 0 6px 12px rgba(231, 76, 60, 0.7), 0 0 20px rgba(231, 76, 60, 0.4);
  }
  60% {
    color: #9b59b6;
    transform: scale(1.1);
    text-shadow: 0 6px 12px rgba(155, 89, 182, 0.7), 0 0 25px rgba(155, 89, 182, 0.5);
  }
  80% {
    color: #2ecc71;
    transform: scale(1.05);
    text-shadow: 0 6px 12px rgba(46, 204, 113, 0.7), 0 0 20px rgba(46, 204, 113, 0.4);
  }
  100% {
    color: #065cc2;
    transform: scale(1);
    text-shadow: 0 6px 12px rgba(6, 92, 194, 0.7), 0 0 20px rgba(6, 92, 194, 0.4);
  }
}

/* Bounce In Animation */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(-50px);
  }
  50% {
    opacity: 1;
    transform: scale(1.1) translateY(0);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Slide In Up Animation */
@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero .hero-title {
    font-size: 3rem !important;
  }
  
  .animated-name {
    font-size: 3.5rem !important;
  }
  
  .hero .hero-title span[style*="color:#065cc2"] {
    font-size: 2.5rem !important;
    letter-spacing: 1px !important;
  }
}

@media (max-width: 576px) {
  .hero .hero-title {
    font-size: 2.5rem !important;
  }
  
  .animated-name {
    font-size: 2.8rem !important;
  }
  
  .hero .hero-title span[style*="color:#065cc2"] {
    font-size: 2rem !important;
    letter-spacing: 1px !important;
  }
}

/* Dark theme adjustments */
body.dark-theme .animated-name {
  background: linear-gradient(45deg, #f9d923, #3498db, #e74c3c, #9b59b6, #2ecc71);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.dark-theme .hero .hero-title span[style*="color:#065cc2"] {
  color: #f9d923 !important;
  text-shadow: 0 6px 12px rgba(249, 217, 35, 0.7), 0 0 20px rgba(249, 217, 35, 0.4) !important;
}

/* --- Responsive Enhancements (Appended) --- */
/* Navbar: show hamburger and tidy collapsed menu */
.navbar-light .navbar-toggler {
  border-color: rgba(0,0,0,0.1);
}
.navbar-light .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='%23065cc2' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
@media (max-width: 991.98px) {
  .navbar .navbar-collapse .navbar-nav {
    flex-direction: column;
    gap: 0.5rem;
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
  }
  .header .navbar-nav .nav-link {
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.25rem;
  }
}

/* Dark theme: collapsed mobile nav background and link colors */
@media (max-width: 991.98px) {
  body.dark-theme .navbar .navbar-collapse .navbar-nav {
    background: #1d2233;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  body.dark-theme .header .navbar-nav .nav-link {
    color: #e3e8f0 !important;
  }
  body.dark-theme .header .navbar-nav .nav-link:hover,
  body.dark-theme .header .navbar-nav .nav-link.active {
    color: #f9d923 !important;
  }
}

/* Prevent any card overflow and keep images proportional */
.work-card,
.certification-card,
.testimonial-card,
.about-card,
.tech-card,
.review-form-card,
#contact .contact-form,
.contact-info-modern {
  max-width: 100%;
  overflow: hidden;
}
.work-card .card-image img,
.certification-card .card-image img,
.image-modal img { /* generic safeguard */
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 480px) {
  /* Allow testimonial/card min-widths to shrink slightly on very small screens */
  .testimonial-card { min-width: 260px; max-width: 95vw; }
}

/* Ensure grids stack cleanly on tablets/mobiles */
@media (max-width: 992px) {
  .work-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Global responsive helpers */
img, video {
  max-width: 100%;
  height: auto;
}

/* Comfortable side padding on very small devices */
@media (max-width: 575.98px) {
  .section > .container,
  #header .container-fluid,
  #footer .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Swiper arrows: use wrapper layout; avoid absolute overlap on small screens */
#testimonials .swiper-nav-wrapper .swiper-button-next,
#testimonials .swiper-nav-wrapper .swiper-button-prev {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
}
@media (max-width: 768px) {
  #testimonials .swiper-nav-wrapper { gap: 20px; }
}

@media (max-width: 767.98px) {
  .testimonial-card {
    min-height: auto !important;
    max-height: none !important;
    padding: 24px 12px !important;
  }
  .testimonial-card p {
    overflow: visible !important;
    white-space: normal !important;
  }
  .testimonials .testimonials-main-slider .swiper-slide {
    height: auto !important;
  }
}

@media (max-width: 767.98px) {
  #footer .row {
    justify-content: center !important;
  }
  #footer .col-md-6 {
    display: flex;
    justify-content: center !important;
    text-align: center !important;
    width: 100%;
  }
  #footer .col-md-6.text-end { /* social icons column */
    order: 1;
    margin-bottom: 10px;
  }
  #footer .col-md-6.text-start { /* copyright column */
    order: 2;
  }
  #footer .social-links {
    justify-content: center !important;
  }
}

/* Tablets (md) keep icons aligned fully to the right */
@media (min-width: 768px) and (max-width: 991.98px) {
  #footer .social-links {
    justify-content: flex-end !important;
    margin-left: auto;
    margin-right: 16px; /* nudge left a bit on tablets */
  }
}