/**
* Template Name: Kelly
* Template URL: https://bootstrapmade.com/kelly-free-bootstrap-cv-resume-html-template/
* Updated: Aug 07 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# Font & Color Variables
# Help: https://bootstrapmade.com/color-system/z
--------------------------------------------------------------*/
/* 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: #444444; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #222222; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #34b7a7; /* 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: #444444;  /* The default color of the main navmenu links */
  --nav-hover-color: #34b7a7; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #ffffff; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #ffffff; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #444444; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #34b7a7; /* 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: #e9e8e6;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

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

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
/* Global reset and spacing fix */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Adjust this based on your navbar height */
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;

}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #222;
  z-index: 999;
  padding: 10px 0;
}

.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.navbar a {
  color: white;
  text-decoration: none;
  padding: 10px;
}

section {
  padding: 80px 20px 40px 20px; /* top padding ensures heading is visible */
  min-height: 100vh;
}

section h2 {
  margin-bottom: 20px;
  font-size: 2rem;
}

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);
  padding: 15px 0;
  transition: all 0.5s;
  z-index: 997;
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

.header .logo {
  line-height: 1;
}

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

.header .logo h1 {
  font-size: 32px;
  margin: 0;
  font-weight: 300;
  text-transform: uppercase;
  color: var(--heading-color);
}

.header .header-social-links {
  padding-right: 15px;
}

.header .header-social-links a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding-left: 6px;
  display: inline-block;
  transition: 0.3s;
  font-size: 16px;
}

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

.header .header-social-links a i {
  line-height: 0px;
}

@media (max-width: 1200px) {
  .header .logo {
    order: 1;
  }

  .header .header-social-links {
    order: 2;
  }

  .header .navmenu {
    order: 3;
  }
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Desktop Navigation */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu>ul>li {
    white-space: nowrap;
    padding: 15px 14px;
  }

  .navmenu>ul>li:last-child {
    padding-right: 0;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    font-size: 15px;
    padding: 0 2px;
    font-family: var(--nav-font);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    position: relative;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu>ul>li>a:before {
    content: "";
    position: absolute;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--nav-hover-color);
    visibility: hidden;
    width: 0px;
    transition: all 0.3s ease-in-out 0s;
  }

  .navmenu a:hover:before,
  .navmenu li:hover>a:before,
  .navmenu .active:before {
    visibility: visible;
    width: 25px;
  }

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

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

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

  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

/* Mobile Navigation */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

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

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

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

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

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

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

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    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);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu>ul {
    display: block;
  }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  padding: 40px 0;
  position: relative;
}

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

.footer .social-links {
  margin-top: 20px;
}

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

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

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

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

#preloader:before,
#preloader:after {
  content: "";
  position: absolute;
  border: 4px solid var(--accent-color);
  border-radius: 50%;
  animation: animate-preloader 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

#preloader:after {
  animation-delay: -0.5s;
}

@keyframes animate-preloader {
  0% {
    width: 10px;
    height: 10px;
    top: calc(50% - 5px);
    left: calc(50% - 5px);
    opacity: 1;
  }

  100% {
    width: 72px;
    height: 72px;
    top: calc(50% - 36px);
    left: calc(50% - 36px);
    opacity: 0;
  }
}

/*--------------------------------------------------------------
# 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;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

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

.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;
  scroll-margin-top: 100px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 66px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  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;
  right: 0;
  bottom: 0;
  margin: auto;
}

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

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

@media (max-width: 1200px) {
  .hero {
    min-height: calc(100vh - 68px);
  }
}

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

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

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

.hero p {
  margin: 10px 0 0 0;
  font-size: 24px;
  color: var(--heading-color);
}

.hero .btn-get-started {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-family: var(--heading-font);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 40px;
  border-radius: 50px;
  transition: 0.5s;
  margin-top: 30px;
}

.hero .btn-get-started:hover {
  background: color-mix(in srgb, var(--accent-color) 90%, white 20%);
}

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

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

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .content h2 {
  font-weight: 700;
  font-size: 24px;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.about .content ul strong {
  margin-right: 10px;
}

.about .content ul i {
  font-size: 16px;
  margin-right: 5px;
  color: var(--accent-color);
  line-height: 0;
}

.profile-img {
  border-radius: 30px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/*--------------------------------------------------------------
# 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%);
}


.skills-section {
  padding: 0px 0px;
  background-color: var(--bg-color);
  color: var(--text-color);
}

.skills-section .section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 0px;
  color: var(--accent-color);
}

.skills-category {
  margin-top: 0px;
  margin-bottom: 0px;
  padding: 10px;
  
}

.skills-category h3 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  text-align: center;
  color: var(--accent-color);
}

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

.skill-card {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 140px;
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
}

.skill-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 10px;
}

.skill-card span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

/* Responsive styles for soft skills */
/* --- KEEP YOUR ORIGINAL CODE ABOVE THIS LINE --- */

/* Target Mobile and Tablet (Typically below 1024px) */
@media (max-width: 1024px) {
  
  .skills-grid {
    /* Force exactly 3 columns */
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    width: 100%;
  }

  .skill-card {
    /* Remove the fixed 140px width so they fit 3-across */
    width: 100% !important;
    padding: 15px 5px !important;
    box-sizing: border-box;
  }

  .skill-card img {
    /* Scale down images to fit perfectly */
    width: 32px !important;
    height: 32px !important;
    margin-bottom: 8px !important;
  }

  .skill-card span {
    /* Scale down font size for small screens */
    font-size: 0.85rem !important;
    display: block;
    line-height: 1.2;
  }
}

/* Extra optimization for very small mobile screens */
@media (max-width: 400px) {
  .skills-grid {
    gap: 8px !important;
  }
  
  .skill-card span {
    font-size: 0.75rem !important;
  }
  
  .skill-card img {
    width: 28px !important;
    height: 28px !important;
  }
}


/* ✅ NEW: Wider layout just for soft skills */
.soft-skills-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.soft-skill {
  width: 250px;
}

.soft-skill img {
  width: 128px;
  height: 68px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* Responsive styles for soft skills */
@media (max-width: 600px) {
  .soft-skills-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .soft-skill {
    width: 95vw;
    max-width: 200px;
    margin: 0 auto;
  }
  .soft-skill img {
    width: 60vw;
    max-width: 100px;
    height: auto;
  }
}
/* =========================
   Certificate Slider Styling
   ========================= */

.slider-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  overflow: hidden;
  margin: auto;
  padding: 20px;
}

.slider {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 20px;
  padding: 10px 0;
  max-width: 90%;
}

.slider::-webkit-scrollbar {
  display: none; /* Hide scrollbar */
}

.cert-image {
  width: 400px;
  max-width: 90vw;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

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

.slider-btn {
  background-color: #0f766e;
  color: white;
  border: none;
  font-size: 24px;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.3s;
  z-index: 1;
}

.slider-btn:hover {
  background-color: #115e59;
}

.slider-btn.left {
  margin-right: 10px;
}

.slider-btn.right {
  margin-left: 10px;
}

/* Responsive styles */
@media (max-width: 600px) {
  .slider-container {
    padding: 10px 0;
  }
  .slider {
    gap: 10px;
    max-width: 100%;
    padding: 5px 0;
  }
  .cert-image {
    width: 70vw;
    max-width: 300px;
    border-radius: 8px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }
  .slider-btn {
    font-size: 18px;
    padding: 7px 12px;
    border-radius: 6px;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  .slider-container {
    /* Slightly larger padding than mobile */
    padding: 20px 0; 
  }
  .slider {
    /* Larger gap than mobile */
    gap: 20px; 
    max-width: 100%;
    padding: 10px 0;
  }
  .cert-image {
    /* Make images larger for tablet view */
    width: 50vw; 
    max-width: 500px;
    border-radius: 10px;
  }
  .slider-btn {
    /* Slightly larger buttons */
    font-size: 20px; 
    padding: 10px 15px;
    border-radius: 8px;
  }
}
/* ===== Projects Section ===== */
/* Projects Section */
/* =========================
   Projects Section Styling
   ========================= */
.projects {
  padding: 60px 15px;
  background: #ffffff;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(299px, 1fr));
  gap: 25px;
}

/* Card Styling */
.card {
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover img {
  transform: scale(1.1);
}

.card-body {
  padding: 20px;
}

.card-body h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #34b7a7;
}

.card-body p {
  font-size: 1rem;
  color: #444444;
  margin-bottom: 15px;
}

.card-body .tag {
  display: inline-block;
  background: #34b7a7;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

/* Tech Stack Styling */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.tech-stack span {
  background: #f5f8f7;
  color: #34b7a7;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease-in;
}

/* 🔥 Hover Effect on Tech Stack */
.tech-stack span:hover {
  
  border: 0.01px solid #34b7a7;
  box-shadow: 0 4px 10px rgba(54, 169, 155, 0.492);
}

/* Buttons */
.buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 15px 0 20px;
}

.btn {
  padding: 8px 18px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn.github {
  background: #444444;
  color: #ffffff;
}

.btn.github:hover {
  background: #34b7a7;
  color: #ffffff;
}

.btn.demo {
  background: #34b7a7;
  color: #ffffff;
}

.btn.demo:hover {
  background: #ffffff;
  color: #34b7a7;
  border: 2px solid #34b7a7;
}

.certifications {
  padding: 60px 20px;
  background: #fff;
}

.certifications-section {
  padding: 40px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.certifications .section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
}

.certifications .section-title span {
  color: #007bff;
}

/* Grid Layout */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr)); /* Desktop 3-col */
  gap: 20px;
}

/* --- Desktop View remains as you provided above --- */
/* --- Desktop View remains as you provided above --- */

/* TABLET VIEW: Keep 3 frames per column (768px to 1024px) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
.certifications-grid {
    grid-template-columns: 1fr !important; /* Single column */
    gap: 20px !important;
  }

  .certifications-section {
    padding: 20px 10px !important; /* Tighter padding on section edges */
  }

  .cert-card {
    padding: 20px !important; 
  }
  
  .cert-card .title {
    font-size: 1.2rem !important;
  }

  .cert-card .desc {
    font-size: 0.9rem !important; /* Smallest description font */
  }

  .cert-card .issuer a {
    font-size: 1.8rem !important;
  }
}

/* MOBILE VIEW: 1 frame down by down (Below 768px) */
@media screen and (max-width: 767px) {
  .certifications-grid {
    grid-template-columns: 1fr !important; /* Single column */
    gap: 20px !important;
  }

  .certifications-section {
    padding: 20px 10px !important; /* Tighter padding on section edges */
  }

  .cert-card {
    padding: 20px !important; 
  }
  
  .cert-card .title {
    font-size: 1.2rem !important;
  }

  .cert-card .desc {
    font-size: 0.9rem !important; /* Smallest description font */
  }

  .cert-card .issuer a {
    font-size: 1.8rem !important;
  }
  
}


/* Card Styling */
.cert-card {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0; /* start hidden */
  transform: translateY(20px); /* start slightly lower */
}

.cert-card:hover {
  transform: translateY(-5px), scale(1.02);
  box-shadow: 0 8px 16px rgba(0,0,0,0.5);
}

/* Typography */
.cert-card .year {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.cert-card .title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 5px 0;
}

.cert-card .issuer a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 2rem;
}

.cert-card .issuer a:hover {
  text-decoration: underline green 1px;
}

.cert-card .desc {
  font-size: 0.95rem;
  color: #444;
  margin-top: 10px;
}

/* Badge Styling */
.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.8rem;
  border-radius: 12px;
  font-weight: 600;
  margin: 5px 0 10px;
}

.badge-blue { background: #e3f2fd; color: #0d6efd; }
.badge-green { background: #e6f4ea; color: #28a745; }
.badge-orange { background: #fff3cd; color: #d48806; }
.badge-purple { background: #f3e8ff; color: #9c27b0; }
.badge-red { background: #fdecea; color: #dc3545; }

/* Fade-in Animation */
.fade-in {
  animation: fadeUp 1s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.2s; }
.fade-in:nth-child(2) { animation-delay: 0.4s; }
.fade-in:nth-child(3) { animation-delay: 0.6s; }
.fade-in:nth-child(4) { animation-delay: 0.8s; }
.fade-in:nth-child(5) { animation-delay: 1s; }
.fade-in:nth-child(6) { animation-delay: 1.2s; }

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



/* Medal image badge */
.corner-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 40px;   /* adjust size */
  height: 40px;  /* adjust size */
  object-fit: contain;
  z-index: 5;
}

.achievements-section {
  padding: 50px 20px;
  background: #fff;
}

.achievements-section h2 {
  font-size: 28px;
  text-align: center;
  font-weight: 700;
  margin-bottom: 30px;
}

.achievements-section h2 span {
  color: var(--accent-color); 
}

.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.achievement-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.achievement-card .icon {
  width: 30px;
  height: 30px;
  margin-right: 15px;
}

.achievement-card:nth-child(2) .icon {
  color: #007bff; /* blue for star */
}

.achievement-card:nth-child(3) .icon {
  color: #28a745; /* green for medal */
}
.achievement-card .content h4 {
  font-size: 18px;
  margin-bottom: 5px;
  font-weight: 600;
}

.achievement-card .content h4 span {
  font-weight: 700;
  display: block;
  text-align: left;
  transition: color 0.3s;
}

.content p{
  text-align: left;
}

/* Hover effect for h4 span when hovered directly or when the card is hovered */
.achievement-card .content h4 span:hover,
.achievement-card:hover .content h4 span {
  color: var(--accent-color);
}

.achievement-card p,
.achievement-card .content h4 {
  transition: color 0.3s;
}

/* Hover effect for p and h4 inside .achievement-card */
.achievement-card:hover p,
.achievement-card:hover .content h4 {
  color: black;
}

.achievement-card p {
  margin: 0;
  color: #555;
  font-size: 15px;
}

.achievement-card .year {
  position: absolute;
  top: 15px;
  right: 20px;
  background: #f1f1f1;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

#internships {
  padding: 80px 20px;
  background: #f8f9fc;
  text-align: center;
  font-family: "Poppins", sans-serif;
}

#internships .section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #222;
}

#internships .section-title p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 40px;
}

/* Grid Container */
.internship-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  background-color: white;
}

/* Internship Card */
.internship-card {
  background: white;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  animation: internship-fade-in 0.8s forwards;
}

@keyframes internship-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dynamic fade-in delay for each card */
.internship-card:nth-child(1) { animation-delay: 0.15s; }
.internship-card:nth-child(2) { animation-delay: 0.3s; }
.internship-card:nth-child(3) { animation-delay: 0.45s; }
.internship-card:nth-child(4) { animation-delay: 0.6s; }
.internship-card:nth-child(5) { animation-delay: 0.75s; }
.internship-card:nth-child(6) { animation-delay: 0.9s; }
.internship-card:nth-child(7) { animation-delay: 1.05s; }
.internship-card:nth-child(8) { animation-delay: 1.2s; }
.internship-card:nth-child(9) { animation-delay: 1.35s; }
.internship-card:nth-child(10) { animation-delay: 1.5s; }

.internship-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.internship-card h3 {
  font-size: 1.4rem;
  color: #2c3e50;
  margin-bottom: 15px;
  font-weight: 600;
}

.internship-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Apply Button */
.apply-btn {
  display: inline-block;
  padding: 10px 20px;
  background:#34b7a7;
  color : #fff;
  border-radius: 25px;
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.apply-btn:hover {
  background: white;
  transform: scale(1.05);
  box-shadow: 0 4px 15px #60a9a1;
  color: #34b7a7;
}