/* 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: "Raleway", sans-serif;
  --nav-font: "Poppins", 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: #272829; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #050d18; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #149ddd; /* 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. */
}

/* 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: #a8a9b4; /* The default color of the main navmenu links */
  --nav-hover-color: #ffffff; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #040b14; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #040b14; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #a8a9b4; /* 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: #f4fafd;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #040b14;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #151f2b;
  --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);
}

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 {
  color: var(--default-color);
  background-color: var(--background-color);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 0 15px;
  width: 300px;
  transition: all ease-in-out 0.3s;
  overflow-y: auto;
  z-index: 997;
  border-right: 1px solid
    color-mix(in srgb, var(--default-color), transparent 90%);
}

.header .profile-img img {
  margin: 15px auto;
  display: block;
  width: 120px;
  border: 8px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

.header .logo {
  line-height: 1;
  margin-bottom: 15px;
}

.header .logo img {
  max-height: 32px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 24px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}

.header .social-links {
  margin: 0 0 20px 0;
}

.header .social-links a {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  color: var(--default-color);
  margin: 0 2px;
  border-radius: 50%;
  text-align: center;
  width: 40px;
  height: 40px;
  transition: 0.3s;
}

.header .social-links a:hover {
  color: var(--contrast-color);
  background: var(--accent-color);
}

@media (min-width: 1200px) {
  .header ~ main,
  .header ~ #footer {
    margin-left: 300px;
  }
}

@media (max-width: 1199px) {
  .header {
    left: -100%;
  }
}

.header.header-show {
  left: 0;
}

.header .header-toggle {
  color: var(--contrast-color);
  background-color: var(--accent-color);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 9999;
  transition: background-color 0.3s;
}

.header .header-toggle:hover {
  color: var(--contrast-color);
  background-color: color-mix(in srgb, var(--accent-color) 90%, white 15%);
}

/* My Changes */
/* Download CV Button */
.download-btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #ffd700;
  color: #000;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  font-family: "Arial", sans-serif;
  min-width: 150px; /* Minimum width to prevent text overflow */
  text-align: center;
  white-space: nowrap; /* Prevent text wrapping */
}

/* WhatsApp Button Styling */
.whatsapp-btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #25d366;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  font-family: "Arial", sans-serif;
  min-width: 150px; /* Minimum width to prevent text overflow */
  text-align: center;
  white-space: nowrap; /* Prevent text wrapping */
}

/* Buttons Container */
.buttons-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on small screens */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .download-btn,
  .whatsapp-btn {
    padding: 10px 20px;
    font-size: 14px;
    min-width: 140px;
  }

  .buttons-container {
    gap: 10px;
    flex-direction: column; /* Stack buttons vertically on mobile */
    align-items: center;
  }
}

@media (max-width: 480px) {
  .download-btn,
  .whatsapp-btn {
    width: 100%; /* Full width on smallest screens */
    max-width: 220px;
    padding: 12px 15px;
    font-size: 13px;
  }
}

/* Hover Effects for Both Buttons */
.download-btn:hover,
.whatsapp-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Specific Hover Effects */
.download-btn:hover {
  background-color: #ffc107;
  border: 2px solid #000;
}

.whatsapp-btn:hover {
  background-color: #128c7e; /* Darker WhatsApp Green */
  color: #fff; /* Ensure text remains white */
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 2px solid #fff; /* White Border */
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.mobile-nav-toggle {
  display: none;
}

.navmenu {
  padding: 0;
  z-index: 9997;
}

.navmenu ul {
  list-style: none;
  padding: 0 0 20px 0;
  margin: 0;
}

.navmenu a,
.navmenu a:focus {
  color: var(--nav-color);
  padding: 15px 10px;
  font-family: var(--nav-font);
  font-size: 16px;
  font-weight: 400;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: 0.3s;
  width: 100%;
}

.navmenu a .navicon,
.navmenu a:focus .navicon {
  font-size: 20px;
  margin-right: 10px;
}

.navmenu a .toggle-dropdown,
.navmenu a:focus .toggle-dropdown {
  font-size: 12px;
  line-height: 0;
  margin-left: auto;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.3s;
  flex-shrink: 0;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
}

.navmenu a .toggle-dropdown:hover,
.navmenu a:focus .toggle-dropdown:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus {
  color: var(--nav-hover-color);
}

.navmenu a:hover .navicon,
.navmenu .active .navicon,
.navmenu .active:focus .navicon {
  color: var(--accent-color);
}

.navmenu .active .toggle-dropdown,
.navmenu .active:focus .toggle-dropdown {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  transform: rotate(180deg);
}

.navmenu .dropdown {
  display: block;
}

.navmenu .dropdown a,
.navmenu .dropdown a:focus {
  color: --nav-dropdown-color;
}

.navmenu .dropdown a:hover,
.navmenu .dropdown .active,
.navmenu .dropdown .active:focus {
  color: var(--nav-dropdown-hover-color);
}

.navmenu .dropdown ul {
  position: static;
  display: none;
  z-index: 99;
  padding: 5px 10px;
  margin: 5px 10px;
  background-color: var(--nav-dropdown-background-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  box-shadow: none;
  transition: all 0.5s ease-in-out;
}

.navmenu .dropdown ul ul {
  background-color: rgba(33, 37, 41, 0.1);
}

.navmenu .dropdown > .dropdown-active {
  display: block;
  background-color: rgba(33, 37, 41, 0.03);
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  padding: 40px 0;
  position: relative;
  border-top: 1px solid
    color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 4px;
  font-size: 13px;
  text-align: center;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

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

/*--------------------------------------------------------------
# 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: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  bottom: 0;
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero:before {
  content: "";
  background: color-mix(in srgb, var(--background-color), transparent 70%);
  position: absolute;
  inset: 0;
  z-index: 2;
}

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

.hero h2 {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
}

.hero p {
  margin: 5px 0 0 0;
  font-size: 26px;
}

.hero p span {
  letter-spacing: 1px;
  border-bottom: 2px solid var(--accent-color);
}

.hero .social-links {
  margin-top: 25px;
}

.hero .social-links a {
  font-size: 24px;
  display: inline-block;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  line-height: 1;
  margin-right: 20px;
  transition: 0.3s;
}

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

@media (max-width: 768px) {
  .hero h2 {
    font-size: 32px;
  }

  .hero p {
    font-size: 20px;
  }
}

/* About Section Styles */
.about .section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 1rem;
}

.about .section-title p {
  font-size: 1.1rem;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  max-width: 800px;
  margin: 0 auto;
}

.about .profile-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.about .profile-image-wrapper img {
  transition: transform 0.3s ease;
}

.about .profile-image-wrapper:hover img {
  transform: scale(1.05);
}

.about .image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(var(--accent-color-rgb), 0.1),
    rgba(var(--accent-color-rgb), 0.05)
  );
}

.about .about-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 1.5rem;
}

.about .about-content .fst-italic {
  font-size: 1.1rem;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  border-left: 3px solid var(--accent-color);
  padding-left: 1rem;
}

.about .about-content ul li {
  margin-bottom: 1rem;
}

.about .about-content ul strong {
  color: var(--heading-color);
  margin-right: 0.5rem;
}

.about .about-content ul .text-muted {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.about .about-content ul i {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-right: 0.5rem;
}

.about .about-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--default-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .about .section-title h2 {
    font-size: 2rem;
  }

  .about .about-content h2 {
    font-size: 1.75rem;
  }

  .about .profile-image-wrapper {
    margin-bottom: 2rem;
  }
}

/*--------------------------------------------------------------
# Stats Section
--------------------------------------------------------------*/
.stats .stats-item {
  padding: 30px;
  width: 100%;
}

.stats .stats-item i {
  color: var(--accent-color);
  display: block;
  font-size: 44px;
  float: left;
  line-height: 0;
}

.stats .stats-item .purecounter {
  color: var(--heading-color);
  font-size: 48px;
  line-height: 40px;
  display: block;
  font-weight: 700;
  margin-left: 60px;
}

.stats .stats-item p {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding: 15px 0 0 0;
  margin: 0 0 0 60px;
  font-family: var(--heading-font);
  font-size: 14px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 25px;
  justify-items: center;
}

.skill-card {
  backdrop-filter: blur(12px);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 28px 18px;
  text-align: center;
  color: var(--heading-color);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.05),
    0 8px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
}

/* Moving gradient halo */
.skill-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
      circle at 30% 30%,
      var(--accent-color),
      transparent 60%
    ),
    radial-gradient(circle at 70% 70%, #ff7eb3, transparent 60%);
  animation: glowMove 8s linear infinite;
  opacity: 0.15;
}

@keyframes glowMove {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.05);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  justify-items: center;
  align-items: stretch; /* keeps equal height */
}

.skill-card {
  width: 100%;
  min-height: 160px; /* consistent height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 25px 18px;
  text-align: center;
  color: var(--heading-color);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.05),
    0 8px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
}

/* Slightly stronger light shadings for each skill */
.skill-python {
  background: linear-gradient(
    145deg,
    rgba(255, 229, 153, 0.25),
    rgba(255, 255, 255, 0.05)
  );
}
.skill-sql {
  background: linear-gradient(
    145deg,
    rgba(173, 216, 230, 0.25),
    rgba(255, 255, 255, 0.05)
  );
}
.skill-pandas {
  background: linear-gradient(
    145deg,
    rgba(121, 134, 203, 0.25),
    rgba(255, 255, 255, 0.05)
  );
}
.skill-numpy {
  background: linear-gradient(
    145deg,
    rgba(100, 181, 246, 0.25),
    rgba(255, 255, 255, 0.05)
  );
}
.skill-html {
  background: linear-gradient(
    145deg,
    rgba(255, 138, 101, 0.25),
    rgba(255, 255, 255, 0.05)
  );
}
.skill-snowflake {
  background: linear-gradient(
    145deg,
    rgba(144, 202, 249, 0.25),
    rgba(255, 255, 255, 0.05)
  );
}
.skill-docker {
  background: linear-gradient(
    145deg,
    rgba(66, 165, 245, 0.25),
    rgba(255, 255, 255, 0.05)
  );
}
.skill-aws {
  background: linear-gradient(
    145deg,
    rgba(255, 183, 77, 0.25),
    rgba(255, 255, 255, 0.05)
  );
}
.skill-airflow {
  background: linear-gradient(
    145deg,
    rgba(38, 166, 154, 0.25),
    rgba(255, 255, 255, 0.05)
  );
}
.skill-kafka {
  background: linear-gradient(
    145deg,
    rgba(158, 158, 158, 0.25),
    rgba(255, 255, 255, 0.05)
  );
}

.skill-card i {
  font-size: 2.6rem;
  margin-bottom: 8 px;
}

.skill-card span {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.skill-card:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* Certifications Section */
.certifications-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 20px;
  overflow: hidden;
  position: relative;
}

.cert-section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--heading-color);
  margin-bottom: 2rem;
  position: relative;
}

.cert-section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  margin: 10px auto;
}

/* Carousel Styles */
.cert-carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 20px;
  padding: 0 10px;
  scroll-behavior: smooth;
}

.cert-slide {
  min-width: calc(100% - 20px);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  background: var(--card-bg-color);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.cert-image {
  width: 150px;
  height: 150px;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 3px solid var(--accent-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cert-content {
  max-width: 600px;
}

.cert-content h3 {
  color: var(--heading-color);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.cert-meta {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.cert-desc {
  color: var(--default-color);
  line-height: 1.6;
  font-size: 1rem;
}

/* Hover Effects */
.cert-slide:hover {
  transform: translateY(-5px);
}

.cert-slide:hover .cert-image {
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Carousel Navigation Dots */
.cert-carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.cert-carousel-dots .dot {
  width: 12px;
  height: 12px;
  background: color-mix(in srgb, var(--default-color), transparent 80%);
  border-radius: 50%;
  margin: 0 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cert-carousel-dots .dot.active {
  background: var(--accent-color);
}

/* Responsive Design */
@media (min-width: 768px) {
  .cert-slide {
    min-width: calc(50% - 20px); /* Show 2 slides on tablets */
  }
}

@media (min-width: 992px) {
  .cert-slide {
    min-width: calc(33.333% - 20px); /* Show max 3 slides on desktops */
  }
}

/* Portfolio Section */
.portfolio-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.portfolio-header {
  text-align: center;
  margin-bottom: 3rem;
}

.portfolio-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--heading-color);
  position: relative;
  display: inline-block;
}

.portfolio-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent-color);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.portfolio-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.portfolio-card {
  position: relative;
  height: 100%;
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.portfolio-content {
  text-align: center;
  padding: 1rem;
  color: white;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.portfolio-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.portfolio-content p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.portfolio-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.portfolio-link {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.portfolio-link:hover {
  color: var(--accent-color);
}

/* Hover Effects */
.portfolio-item:hover {
  transform: translateY(-5px);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover .portfolio-content {
  transform: translateY(0);
}

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

/* Responsive */
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .portfolio-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .portfolio-header {
    margin-bottom: 2rem;
  }

  .portfolio-title {
    font-size: 1.8rem;
  }

  .portfolio-content h3 {
    font-size: 1.3rem;
  }
}
*/

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .service-item {
  position: relative;
}

.services .service-item .icon {
  background: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  transition: 0.5s;
  border: 1px solid var(--accent-color);
  margin-right: 20px;
}

.services .service-item .icon i {
  color: var(--contrast-color);
  font-size: 24px;
  line-height: 0;
}

.services .service-item:hover .icon {
  background: var(--surface-color);
}

.services .service-item:hover .icon i {
  color: var(--accent-color);
}

.services .service-item .title {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 18px;
}

.services .service-item .title a {
  color: var(--heading-color);
}

.services .service-item .title a:hover {
  color: var(--accent-color);
}

.services .service-item .description {
  line-height: 24px;
  font-size: 14px;
}
/* Resume Section - Fixed and Contained */
#resume {
  --resume-shadow-light: 0 2px 10px rgba(0, 0, 0, 0.08);
  --resume-shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.12);
  --resume-gradient-primary: linear-gradient(
    135deg,
    var(--heading-color) 0%,
    var(--accent-color) 100%
  );
  --resume-gradient-accent: linear-gradient(
    135deg,
    var(--accent-color) 0%,
    color-mix(in srgb, var(--accent-color), #ffffff 20%) 100%
  );
  --resume-border-light: color-mix(
    in srgb,
    var(--accent-color),
    transparent 85%
  );
}

.resume {
  padding: 80px 0;
  background: var(--background-color);
  position: relative;
  /* FIXED: Changed from hidden to visible and added proper containment */
  overflow: visible;
  font-family: var(--default-font);
  line-height: 1.6;
  color: var(--default-color);
  /* Add layout containment to prevent affecting other sections */
  contain: layout style;
}

/* FIXED: Removed the problematic floating animation */
.resume::before {
  display: none;
}

.resume .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
  /* Ensure container doesn't overflow */
  overflow: visible;
}

.resume .section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.resume .section-title h2 {
  font-size: 3rem;
  font-weight: 700;
  background: var(--resume-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  position: relative;
}

.resume .section-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--resume-gradient-accent);
  border-radius: 2px;
}

.resume .section-title p {
  font-size: 1.1rem;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  padding: 0 20px;
}

.resume .resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
  position: relative;
  /* FIXED: Ensure grid doesn't overflow */
  overflow: visible;
}

.resume .resume-column {
  position: relative;
  /* FIXED: Prevent column overflow */
  overflow: visible;
  /* FIXED: Ensure column stays within bounds */
  max-width: 100%;
}

.resume .resume-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--heading-color);
  font-family: var(--heading-font);
  margin-bottom: 30px;
  padding: 15px 0;
  border-bottom: 3px solid var(--accent-color);
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
}

.resume .resume-title i {
  font-size: 1.5rem;
  background: var(--resume-gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.resume .resume-item {
  background: var(--surface-color);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--resume-shadow-light);
  border: 1px solid var(--resume-border-light);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  /* FIXED: Ensure items stay within their container */
  width: 100%;
  box-sizing: border-box;
}

.resume .resume-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--resume-gradient-accent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.resume .resume-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--resume-shadow-medium);
}

.resume .resume-item:hover::before {
  transform: scaleX(1);
}

.resume .resume-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  width: 100%;
}

.resume .resume-image-container {
  position: relative;
  margin-bottom: 20px;
}

.resume .resume-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid transparent;
  background: var(--resume-gradient-primary);
  padding: 4px;
  transition: all 0.4s ease;
  box-shadow: var(--resume-shadow-light);
}

.resume .resume-img:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--resume-shadow-medium);
}

.resume .resume-details h4 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--heading-color);
  font-family: var(--heading-font);
  margin-bottom: 8px;
  position: relative;
}

.resume .resume-details h5 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent-color);
  margin-bottom: 10px;
  padding: 5px 15px;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  border-radius: 20px;
  display: inline-block;
}

.resume .resume-details p em {
  font-style: normal;
  color: var(--heading-color);
  font-weight: 600;
  font-size: 1.05rem;
}

.resume .resume-details p {
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  line-height: 1.7;
  margin-bottom: 15px;
}

.resume .resume-details ul {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.resume .resume-details ul li {
  position: relative;
  padding: 8px 0 8px 25px;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  line-height: 1.6;
}

.resume .resume-details ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-color);
  font-size: 0.9rem;
}

.resume .achievement-badge {
  background: var(--resume-gradient-accent);
  color: var(--contrast-color);
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  margin: 10px 5px;
  box-shadow: var(--resume-shadow-light);
  animation: resume-pulse 2s infinite;
}

@keyframes resume-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* FIXED: Properly contained timeline elements */
.resume .timeline-dot {
  position: absolute;
  right: -15px; /* Reduced from -20px */
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: var(--accent-color);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--surface-color), 0 0 0 8px var(--accent-color);
  z-index: 2;
  /* FIXED: Ensure it doesn't overflow the section */
  max-width: 12px;
}

.resume .resume-column::before {
  content: "";
  position: absolute;
  right: -21px; /* Adjusted to match timeline-dot */
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-color), transparent);
  z-index: 1;
  /* FIXED: Ensure timeline stays within section bounds */
  max-height: 100%;
}

.resume .resume-column:last-child::before {
  display: none;
}

.resume .resume-column:last-child .timeline-dot {
  display: none;
}

/* FIXED: Add proper clearfix and isolation for sections after resume */
.resume::after {
  content: "";
  display: table;
  clear: both;
}

/* FIXED: Ensure sections following resume are not affected */
#resume + section,
#resume + .section,
.resume + section,
.resume + .section {
  position: relative;
  z-index: 1;
  clear: both;
  isolation: isolate;
}

/* Mobile Responsive - Fixed */
@media (max-width: 768px) {
  .resume {
    padding: 60px 0;
    overflow: visible; /* Maintain fix on mobile */
  }

  .resume .section-title h2 {
    font-size: 2.2rem;
  }

  .resume .resume-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    overflow: visible; /* Maintain fix on mobile */
  }

  .resume .resume-column::before,
  .resume .timeline-dot {
    display: none;
  }

  .resume .resume-title {
    font-size: 1.6rem;
  }

  .resume .resume-img {
    width: 100px;
    height: 100px;
  }

  .resume .container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .resume .section-title h2 {
    font-size: 1.8rem;
  }

  .resume .resume-item {
    padding: 20px;
  }

  .resume .resume-img {
    width: 80px;
    height: 80px;
  }
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
}

.testimonials .testimonial-item {
  box-sizing: content-box;
  text-align: center;
  min-height: 320px;
}

.testimonials .testimonial-item .testimonial-img {
  width: 90px;
  border-radius: 50%;
  margin: 0 auto;
}

.testimonials .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0 5px 0;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin: 0;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--accent-color), transparent 40%);
  font-size: 26px;
  line-height: 0;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 15px 15px 15px;
  padding: 20px;
  background-color: var(--surface-color);
  position: relative;
  margin-bottom: 35px;
  border-radius: 6px;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

.testimonials .testimonial-item p::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 20px solid var(--surface-color);
  border-right: 20px solid transparent;
  border-left: 20px solid transparent;
  position: absolute;
  bottom: -20px;
  left: calc(50% - 20px);
}

.testimonials .swiper-wrapper {
  height: auto;
}

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

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: var(--background-color);
  opacity: 1;
  border: 1px solid var(--accent-color);
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-wrap {
  background-color: var(--surface-color);
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

@media (max-width: 575px) {
  .contact .info-wrap {
    padding: 20px;
  }
}

.contact .info-item {
  margin-bottom: 40px;
}

.contact .info-item i {
  font-size: 20px;
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  margin-right: 15px;
}

.contact .info-item h3 {
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.contact .info-item:hover i {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.contact .php-email-form {
  background-color: var(--surface-color);
  height: 100%;
  padding: 30px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 575px) {
  .contact .php-email-form {
    padding: 20px;
  }
}

.contact .php-email-form input[type="text"],
.contact .php-email-form input[type="email"],
.contact .php-email-form textarea {
  font-size: 14px;
  padding: 10px 15px;
  box-shadow: none;
  border-radius: 0;
  color: var(--default-color);
  background-color: var(--surface-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.contact .php-email-form input[type="text"]:focus,
.contact .php-email-form input[type="email"]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
}

.contact .php-email-form input[type="text"]::placeholder,
.contact .php-email-form input[type="email"]::placeholder,
.contact .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .php-email-form button[type="submit"] {
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 0;
  padding: 10px 30px;
  transition: 0.4s;
  border-radius: 50px;
}

.contact .php-email-form button[type="submit"]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 25%);
}

/*--------------------------------------------------------------
# Portfolio Details Section
--------------------------------------------------------------*/
.portfolio-details .portfolio-details-slider img {
  width: 100%;
}

.portfolio-details .portfolio-details-slider .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.portfolio-details
  .portfolio-details-slider
  .swiper-pagination
  .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: color-mix(in srgb, var(--default-color), transparent 85%);
  opacity: 1;
}

.portfolio-details
  .portfolio-details-slider
  .swiper-pagination
  .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

.portfolio-details .portfolio-info {
  padding: 30px;
  box-shadow: 0px 0 30px rgba(0, 0, 0, 0.1);
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid
    color-mix(in srgb, var(--default-color), transparent 85%);
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.portfolio-details .portfolio-info ul li + li {
  margin-top: 10px;
}

.portfolio-details .portfolio-description {
  padding-top: 30px;
}

.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

.portfolio-details .portfolio-description p {
  padding: 0;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

/*--------------------------------------------------------------
# Service Details Section
--------------------------------------------------------------*/
.service-details .services-list {
  padding: 10px 30px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  margin-bottom: 20px;
}

.service-details .services-list a {
  display: block;
  line-height: 1;
  padding: 8px 0 8px 15px;
  border-left: 3px solid
    color-mix(in srgb, var(--default-color), transparent 70%);
  margin: 20px 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  transition: 0.3s;
}

.service-details .services-list a.active {
  color: var(--heading-color);
  font-weight: 700;
  border-color: var(--accent-color);
}

.service-details .services-list a:hover {
  border-color: var(--accent-color);
}

.service-details .services-img {
  margin-bottom: 20px;
}

.service-details h3 {
  font-size: 26px;
  font-weight: 700;
}

.service-details h4 {
  font-size: 20px;
  font-weight: 700;
}

.service-details p {
  font-size: 15px;
}

.service-details ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.service-details ul li {
  padding: 5px 0;
  display: flex;
  align-items: center;
}

.service-details ul i {
  font-size: 20px;
  margin-right: 8px;
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Starter Section Section
--------------------------------------------------------------*/
.starter-section {
  /* Add your styles here */
}
