  @import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800&display=swap');
  @import url('https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css');
  @import url('https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick-theme.css');

  :root {
    --cyan: #64ffda;
    --dark: #0a192f;
    --light: #e6f1ff;
    --gray: #8892b0;
    --light-gray: #ccd6f6;
    --dark-gray: #112240;
    --hover-bg: rgba(100, 255, 218, 0.1);
    --sidebar-bg: #0a192f;
    --transition: all 0.3s ease-in-out;
    --box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
  }
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
  }
  html {
    scroll-behavior: smooth;
  }
  main {
    flex: 1;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  body {
    background: var(--dark);
    color: var(--dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 16px;
    font-weight: 300;
  }

  h1, h2, h3, h4, h5, h6 {
    color: var(--cyan);
    margin: 0 0 15px 0;
    font-weight: 700;
    line-height: 0.1;
  }

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

  a:hover {
    color: var(--cyan);
  }

  p {
    margin: 0 0 15px 0;
    color: var(--gray);
  }

  .section-title {
    display: flex;
    align-items: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--light-gray);
    position: relative;
    width: 100%;
    white-space: nowrap;
  }

  .section-title i {
    margin-right: 15px;
    color: var(--cyan);
  }

  .section-title::after {
    content: '';
    display: block;
    position: relative;
    top: -5px;
    width: 100%;
    height: 1px;
    margin-left: 20px;
    background-color: var(--gray);
    opacity: 0.3;
  }

  /* Sidebar */
  .sidebar {
    width: 300px;
    background: var(--sidebar-bg);
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    z-index: 100;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .sidebar.collapsed {
    width: 150px;
  }

  .sidebar .toggle-btn {
      position: absolute;
      top: 400px;
      right: -10px;
      color: var(--cyan);
      padding: 5px;
      border-radius: 5px;
      cursor: pointer;
      font-size: x-large;
      display: none; /* Hide by default */
    
  }

  @media (max-width: 768px) {
    .sidebar{
      display: flex;
    }
  }

  .user {
    text-align: left;
    transition: all 0.3s ease;
  }

  .user img {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--gray);
    margin-bottom: 10px;
  }
  .user p {
    font-size: 1rem;
    color: var(--light);
    white-space: nowrap;

  }
  .user .name {
    font-size: 2rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--light-gray);
  }

  .user .bio {
    font-size: 1rem;
    color: #aaa;
    white-space: nowrap;
  }

  .sidebar.collapsed .user .name,
  .sidebar.collapsed .user .bio {
    display: none;
  }


  .nav-bar ul {
    list-style: none;
    padding: 1.5rem;
  }

  .nav-bar ul li a {
    display: flex;
    align-items: center;
    color: var(--light);
    margin: 1rem;
    border-radius: 5px;
    text-align: left;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 10px 15px;
    position: relative;
    background: rgba(100, 255, 218, 0.05);
    border-left: 2px solid transparent;
    width: 15rem;
  }

  .nav-bar ul li a:hover,
  .nav-bar ul li a.active {
    background: rgba(100, 255, 218, 0.1);
    color: var(--cyan);
    border-left: 2px solid var(--cyan);
    transform: translateX(5px);
  }

  .nav-bar ul li i {
    margin-right: 12px;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
  }

  .nav-bar ul li a:hover {
    background: var(--cyan);
    color: #000;
  }

  .sidebar.collapsed .nav-bar ul li a {
    font-size: 0;
    padding: 1rem 0;
  }
  .sidebar.collapsed .nav-bar ul li i {
    font-size: 1.5rem;
    padding: 0 10px;
    margin-bottom: 2px;
    scale: 1.2;
    transition: all 0.3s ease;
  }

  .sidebar.collapsed .nav-bar ul li a::before {
    font-size: 1.4rem;
  }

  /* Main Content */
  .main-content {
    margin-left: 250px;
    width: calc(100% - 250px);
    max-width: 100%;
    padding: 0 5%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--dark);
  }
/* Responsive Nav Bar */
.mobile-navbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(50px);
  background: rgba(10, 25, 47, 0.75);
  border-bottom: 1px solid rgba(100, 255, 218, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 10px 15px;
}

.mobile-navbar.scrolled {
  background: rgba(10, 25, 47, 0.224);
  backdrop-filter: blur(55px);
  -webkit-backdrop-filter: blur(55px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* Single Row Layout */
.mobile-navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Left Section - Profile */
.mobile-navbar-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.mobile-navbar-profile {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--cyan);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mobile-navbar-profile:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(100, 255, 218, 0.4);
}

/* Center Section - Navigation Icons */
.mobile-navbar-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  justify-content: center;
  padding: 0 10px;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: var(--gray);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  min-width: 40px;
  height: 40px;
}

.mobile-nav-item i {
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

/* Hide text labels */
.mobile-nav-item span {
  display: none;
}

/* Hover Effect */
.mobile-nav-item:hover {
  color: var(--cyan);
  transform: translateY(-3px);
  background: rgba(100, 255, 218, 0.1);
}

.mobile-nav-item:hover i {
  transform: scale(1.2);
  filter: drop-shadow(0 0 8px rgba(100, 255, 218, 0.5));
}

/* Active State */
.mobile-nav-item.active {
  color: var(--cyan);
  background: rgba(100, 255, 218, 0.15);
  border-bottom: 2px solid var(--cyan);
}

.mobile-nav-item.active i {
  transform: scale(1.15);
  filter: drop-shadow(0 0 6px rgba(100, 255, 218, 0.4));
}

/* Ripple Effect on Click */
.mobile-nav-item::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: var(--cyan);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.mobile-nav-item:active::after {
  opacity: 0.2;
}

/* Right Section - Resume Button */
.mobile-navbar-resume {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  background: rgba(100, 255, 218, 0.1);
  border: 1px solid var(--cyan);
  border-radius: 20px;
  color: var(--cyan);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.mobile-navbar-resume:hover {
  background: var(--cyan);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(100, 255, 218, 0.3);
}

.mobile-navbar-resume i {
  font-size: 0.85rem;
}

/* Show mobile navbar only on mobile devices */
@media (max-width: 768px) {
  .mobile-navbar {
    display: block;
  }

  /* Add padding to main content to prevent overlap */
  .main-content {
    padding-top: 70px;
  }

  /* Adjust headline spacing */
  .headline {
    margin-top: 20px;
  }

  /* Keep original sidebar hidden on mobile */
  .sidebar {
    display: none;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .mobile-navbar {
    padding: 8px 10px;
  }

  .mobile-navbar-profile {
    width: 35px;
    height: 35px;
  }

  .mobile-navbar-nav {
    gap: 3px;
    padding: 0 5px;
  }

  .mobile-nav-item {
    padding: 6px;
    min-width: 35px;
    height: 35px;
  }

  .mobile-nav-item i {
    font-size: 1.1rem;
  }

  .mobile-navbar-resume {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .mobile-navbar-resume span {
    display: none;
  }
}

/* Very small devices - show only icon in resume button */
@media (max-width: 360px) {
  .mobile-navbar-nav {
    gap: 2px;
  }

  .mobile-nav-item {
    padding: 5px;
    min-width: 32px;
    height: 32px;
  }

  .mobile-navbar-resume {
    padding: 8px;
    min-width: 35px;
  }
}
  /* Container for sections */
  .section-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }

  /* Responsive */
  @media (max-width: 992px) {
    .sidebar {
      display: none;
    }

    .main-content {
      margin-left: 0;
      width: 100%;
      padding: 0 20px;
    }

    .sidebar .toggle-btn {
      right: -40px;
      top: 20px;
      position: fixed;
      background: var(--cyan);
      color: white;
      width: 35px;
      height: 35px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 1001;
      box-shadow: 0 2px 10px rgba(0,0,0,0.2);
      display: none;
    }

    .sidebar.active .toggle-btn {
      right: 10px;
      top: 10px;
      background: rgba(255,255,255,0.2);
      backdrop-filter: blur(10px);
    }

    .sidebar.collapsed {
      left: -260px;
    }
  }
  .main-content .headline {
      font-size: large;
      margin: 5px -15px;
      color: var(--light-gray);
    }
  .headline .icons{
    gap: 8px;
    margin:auto
  }
  .headpic img {
      width: 100vw;
      margin-top: 5em ;
      margin-bottom: 2em;
    }
/* ========================================
   TABLET RESPONSIVENESS (768px - 1024px)
   ======================================== */

@media screen and (max-width: 1024px) {
  .skills-section {
    padding: 60px 30px;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 35px;
  }

  .skills-container {
    gap: 30px;
  }

  .skills-category h3 {
    font-size: 1.3rem;
    margin-bottom: 18px;
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .skill-badge {
    padding: 18px 12px;
    font-size: 0.95rem;
  }

  .skill-badge i,
  .skill-badge img {
    font-size: 2rem;
    height: 35px;
    width: 35px;
  }
}

/* ========================================
   TABLET LANDSCAPE (768px - 1024px)
   ======================================== */

@media screen and (max-width: 1024px) and (orientation: landscape) {
  .skills-section {
    padding: 50px 40px;
  }

  .section-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
  }

  .skills-container {
    gap: 25px;
  }

  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
  }

  .skill-badge {
    padding: 15px 10px;
    font-size: 0.9rem;
  }

  .skill-badge i,
  .skill-badge img {
    height: 32px;
    width: 32px;
  }
}

/* ========================================
   MOBILE RESPONSIVENESS (up to 767px)
   ======================================== */

@media screen and (max-width: 767px) {
  .skills-section {
    padding: 40px 20px;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 25px;
    text-align: center;
  }

  .section-title i {
    font-size: 1.4rem;
    margin-right: 8px;
  }

  .skills-container {
    gap: 25px;
  }

  .skills-category {
    padding: 20px 15px;
  }

  .skills-category h3 {
    font-size: 1.15rem;
    margin-bottom: 15px;
    text-align: center;
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .skill-badge {
    padding: 15px 10px;
    font-size: 0.85rem;
    flex-direction: column;
    text-align: center;
  }

  .skill-badge i,
  .skill-badge img {
    font-size: 1.8rem;
    height: 30px;
    width: 30px;
    margin-bottom: 8px;
  }

  .skill-badge span {
    margin-left: 0;
  }
}

/* ========================================
   MOBILE LANDSCAPE (up to 767px)
   ======================================== */

@media screen and (max-width: 767px) and (orientation: landscape) {
  .skills-section {
    padding: 30px 40px;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .skills-container {
    gap: 20px;
  }

  .skills-category {
    padding: 15px 20px;
  }

  .skills-category h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  .skills-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }

  .skill-badge {
    padding: 12px 8px;
    font-size: 0.8rem;
  }

  .skill-badge i,
  .skill-badge img {
    height: 28px;
    width: 28px;
    margin-bottom: 6px;
  }
}

/* ========================================
   SMALL MOBILE (up to 480px)
   ======================================== */

@media screen and (max-width: 480px) {
  .skills-section {
    padding: 30px 15px;
  }

  .section-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }

  .skills-container {
    gap: 20px;
    display: flex;
  }

  .skills-category {
    padding: 18px 12px;
  }

  .skills-category h3 {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .skill-badge {
    padding: 12px 8px;
    font-size: 0.75rem;
  }

  .skill-badge i,
  .skill-badge img {
    font-size: 1.5rem;
    height: 25px;
    width: 25px;
    margin-bottom: 6px;
  }
}

/* ========================================
   SMALL MOBILE LANDSCAPE (up to 480px)
   ======================================== */

@media screen and (max-width: 480px) and (orientation: landscape) {
  .skills-section {
    padding: 5px 5px;

  }

  .section-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }

  .skills-container {
    gap: 15px;
    width: 100px;
  }

  .skills-category {
    padding: 2px 5px;
    display: flex;
  }

  .skills-category h3 {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }

  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .skill-badge {
    padding: 10px 6px;
    font-size: 0.7rem;
  }

  .skill-badge i,
  .skill-badge img {
    height: 24px;
    width: 24px;
    margin-bottom: 5px;
  }
}

/* ========================================
   EXTRA SMALL MOBILE (up to 360px)
   ======================================== */

@media screen and (max-width: 360px) {
  .skills-section {
    padding: 25px 12px;
  }

  .section-title {
    font-size: 1.2rem;
    margin-bottom: 18px;
  }

  .skills-category h3 {
    font-size: 0.95rem;
  }

  .skills-grid {
    gap: 8px;
  }

  .skill-badge {
    padding: 10px 6px;
    font-size: 0.7rem;
  }

  .skill-badge i,
  .skill-badge img {
    height: 22px;
    width: 22px;
  }
}
  
  /* ----------icons -------- */

  .icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
  }

  .icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(100, 255, 218, 0.1);
    color: var(--light-gray);
    transition: all 0.3s ease;
    border: 1px solid rgba(100, 255, 218, 0.2);
    text-decoration: none;
  }

  .icons i {
    font-size: 18px;
    color: var(--light-gray);
    transition: all 0.3s ease;
  }

  .icons a:hover {
    background: var(--cyan);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }

  .icons a:hover i {
    color: var(--dark);
  }
  .nav-footer{
    color: var(--gray);
  }
  /* headline */
  .headline {
      text-align: center;
      border-radius: 10px;
      padding: 1em;
      margin-top: 50px;
      font-size: 1.5rem;
      align-items: center;
      margin-bottom: 30px;
  }
  .headline .se{
    color: var(--cyan);
    font-weight: bold;
  }
  .headline .icons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }

  .header{
    font-size: x-large;
    justify-content: center;
  }

  .headline .get-in-touch {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    font-size: 1rem;
    color: inherit;
    text-decoration: none;
    
  }
  .get-in-touch {
    text-align: center;
    margin: 40px 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
  }

  .get-in-touch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    border-radius: 15px;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
  }

  .get-in-touch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 35px;
    border: none;
    color: var(--dark);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 123, 0, 0.3);
  }

  .get-in-touch a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #ff9a3c 0%, var(--cyan) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
  }

  .get-in-touch a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 123, 0, 0.4);
  }

  .get-in-touch a:hover::before {
    opacity: 1;
  }

  .get-in-touch i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
  }

  .get-in-touch a:hover i {
    transform: translateX(3px);
  }
  .get-in-touch a {
    color: var(--cyan);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    border: solid 1px var(--cyan);
    border-radius: 30px;
    padding: 10px 20px;
  }
  .get-in-touch a:hover {
    color: #f0f0f0;        /* subtle color change */
    text-decoration: none; /* optional for hover styling */
    background: var(--cyan); /* change background on hover */
  }

  /* Header Pic */
  .headpic {
    display: flex;
    justify-content: center;
    border-radius: 79px;
  }
  /* Projects Section */
  .projects-section {
    padding: 100px 5%;
    background-color: var(--dark);
  }

  .projects-carousel {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 0 60px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: relative;
  }

  .project-card {
    background: var(--dark-gray);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    width: 350px;
    box-shadow: var(--box-shadow);
  }

  .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px -15px rgba(2, 12, 27, 0.7);
  }

  .project-image {
    position: relative;
    overflow: hidden;
    height: 200px;
  }

  .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
  }

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

  .project-links {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: var(--transition);
  }

  .project-card:hover .project-links {
    opacity: 1;
  }

  .project-links a {
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
  }

  .demo-btn {
    background: var(--cyan);
    color: var(--dark) !important;
  }

  .code-btn {
    border: 1px solid var(--cyan);
    color: var(--cyan) !important;
  }

  .project-info {
    padding: 25px;
  }

  .project-info h3 {
    color: var(--light-gray);
    margin-bottom: 15px;
    font-size: 1.5rem;
  }

  .project-info p {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
  }

  .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
  }

  .project-tags span {
    background: rgba(100, 255, 218, 0.1);
    color: var(--cyan);
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
  }

  /* Skills Section */
  .skills-section {
    padding: 100px 0;
    background-color: #0a192f;
    color: #ccd6f6;
  }

  .skills-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .skills-category {
    background-color: #1122403d;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .skills-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -15px rgba(2, 12, 27, 0.8);
  }

  .skills-category h3 {
    color: #64ffda;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 450;
    text-align: center;
    /* position: relative; */
    padding-bottom: 5px;
  }

  .skills-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: #64ffda;
  }

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

.skill-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #112240;
  border-radius: 8px;
  padding: 10px 10px;
  width: 100%;
  height: 100%;
  transition: all 0.3s ease;
  cursor: default;
}


  .skill-badge:hover {
    transform: translateY(-5px);
    background-color: #1a2f4f;
    border-color: #64ffda;
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.1);
  }

  .skill-badge i {
    font-size: 2rem;
    margin-bottom: 5px;
    transition: transform 0.3s ease;
  }

  .skill-badge:hover i {
    transform: scale(1.1);
  }

  .skill-badge span {
    font-size: 0.9rem;
    color: #ccd6f6;
    text-align: center;
    font-weight: 400;
  }
/* ======== RESPONSIVE DESIGN ======== */
@media (max-width: 992px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
}

@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr); /* Still 3 badges per row */
    gap: 10px;
  }

  .skill-badge {
    padding: 10px 5px;
  }

  .skill-badge i {
    font-size: 1.5rem;
    margin-bottom: 3px;
  }

  .skill-badge span {
    font-size: 0.75rem;
  }
}
  /* Certificates Section */
  .certificates-section {
    padding: 100px 0;
    background-color: var(--dark-gray);
    color: #ccd6f6;
    border-top: 1px solid #1e2a3a;
    position: relative;
    z-index: 1;
    overflow: hidden;
    margin-left: 250px;
    width: calc(100% - 250px);
  }

  .certificates-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
  }

  .certificates-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }

  @media (max-width: 992px) {
    .certificates-section {
      margin-left: 0;
      width: 100%;
    }
  }

  .certificates-carousel {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 60px 60px; /* Added side padding for arrows */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: relative;
  }

  .certificates-carousel::-webkit-scrollbar {
    display: none;
  }

  /* Mobile responsive styles for certificates */
  @media (max-width: 768px) {
    .certificates-carousel {
      flex-direction: column;
      gap: 20px;
      padding: 20px;
      overflow-x: visible;
      overflow-y: auto;
    }

    .certificate-card {
      min-width: 100%;
      max-width: 100%;
      width: 100%;
      margin: 0 auto;
    }

    .carousel-controls {
      display: none; /* Hide arrows on mobile */
    }
  }

  .certificate-card {
    background-color: #112240;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
  }

  .certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -15px rgba(2, 12, 27, 0.8);
  }

  .certificate-image {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
  }
  .certificate-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

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

  .certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .certificate-card:hover .certificate-overlay {
    opacity: 1;
  }

  .view-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    color: #64ffda;
    border: 1px solid #64ffda;
    border-radius: 4px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .view-btn:hover {
    background-color: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
  }

  .certificate-details {
    padding: 25px;
  }

  .certificate-details h3 {
    color: #e6f1ff;
    margin-bottom: 10px;
    font-size: 1.2rem;
  }

  .certificate-details p {
    color: #8892b0;
    font-size: 0.9rem;
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .certificate-details i {
    color: #64ffda;
    width: 16px;
    text-align: center;
  }

  /* Responsive Adjustments */
  @media (max-width: 992px) {
    .certificates-grid {
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .skills-grid {
      grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
  }

  @media (max-width: 768px) {
    .skills-category {
      padding: 20px 15px;
    }
    
    .certificate-details {
      padding: 20px 15px;
    }
    
    .skill-badge i {
      font-size: 2rem;
    }
    
    .skill-badge span {
      font-size: 0.8rem;
    }
  }

  @media (max-width: 576px) {
    .main-content {
      padding: 0 10px;
    }
    
    .skills-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
    }
    
    .certificates-grid {
      grid-template-columns: 1fr;
      gap: 20px;
    }
    
    .skill-badge {
      padding: 12px 8px;
    }
    
    .skill-badge i {
      font-size: 1.8rem;
    }
    
    .section-title {
      font-size: 1.8rem;
      margin-bottom: 30px;
    }
    
    .certificate-details h3 {
      font-size: 1.1rem;
    }
    
    .certificate-details p {
      font-size: 0.85rem;
    }
    
    .view-btn {
      padding: 8px 16px;
      font-size: 0.85rem;
    }
  }

  /* Contact Section */
  .contact-section {
    padding: 100px 5% 50px;
    background: #0a192f;
    position: relative;
    z-index: 1;
  }

  .contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }

  .social-icons-container {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .social-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 800px;
  }

  .social-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(17, 34, 64, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 255, 218, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 120px;
    color: var(--light-gray);
  }

  .social-icon:hover {
    transform: translateY(-5px);
    background: rgba(100, 255, 218, 0.1);
    border-color: var(--cyan);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: var(--cyan);
  }

  .social-icon i {
    font-size: 2rem;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
  }

  .social-icon:hover i {
    transform: scale(1.2);
  }

  .social-icon span {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
  }

  .footer-content {
    max-width: 1200px;
    margin: 0 auto;
  }

  .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
  }

  .social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dark);
    color: var(--light);
    font-size: 1.2rem;
    transition: var(--transition);
  }

  .social-links a:hover {
    background: var(--cyan);
    color: var(--dark);
    transform: translateY(-3px);
  }

  .main-footer p {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
  }

  /* Back to Top Button */
  .back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--cyan);
    color: var(--dark-gray);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }

  .back-to-top.visible {
    opacity: 1;
    visibility: visible;
  }

  .back-to-top:hover {
    background: #fff;
    color: var(--cyan);
    transform: translateY(-5px);
  }

  /* Responsive Design */
  @media (max-width: 1200px) {
    .skills-container {
      flex-direction: column;
      align-items: center;
    }
    
    .skill-category {
      width: 100%;
      max-width: 600px;
    }
  }

  @media (max-width: 768px) {
    .section-title {
      font-size: 1.8rem;
    }
    
    .project-card {
      width: 100%;
    }
    
    .contact-container {
      flex-direction: column;
    }
    
    .contact-form,
    .contact-info {
      width: 100%;
    }
  }

  /* Animation for skill bars */
  @keyframes fillBars {
    from { width: 0; }
    to { width: 100%; }
  }

  /* Initialize skill bars */
  .skill-level {
    animation: fillBars 1.5s ease-out forwards;
  }

  /* Carousel Controls */
  .carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
  }

  .carousel-btn {
    background: transparent;
    border: 2px solid var(--cyan);
    color: var(--cyan);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
  }

  .carousel-btn:hover {
    background: var(--cyan);
    color: var(--dark);
  }

  .carousel-dots {
    display: flex;
    gap: 10px;
  }

  .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray);
    cursor: pointer;
    transition: var(--transition);
  }

  .dot.active {
    background: var(--cyan);
    transform: scale(1.2);
  }

  /* Headline Section */
  .headpic img {
    width: clamp(250px, 35vw, 300px);
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--cyan);
    box-shadow: -4px 10px 49px 20px #262626;
    margin-bottom: 2em;
  }
@media (max-width: 576px) {
  .projects-carousel {
    gap: 0;
    padding: 0 0 40px;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .project-card {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    margin: 0;
  }
}

  /* Scroll */
  .section-section {
    scroll-margin-top: 1px; /* offset for sticky headers */
  }

  fieldset {
    border: 2px solid var(--cyan);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
  }
  .about-section {
    margin: 20px 0;
    padding: 20px;
    background: var(--sidebar-bg);
    border-radius: 10px;
    color: var(--light);
    font-size: 1rem;
  }
  .about-section a {
    color: var(--cyan);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    gap: 10px;
  }
  .abouts{
    margin-bottom: 2em;
  }
  .abouts a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cyan);
    text-decoration: none;
  }
  .resume > a{
    text-decoration: none;
    color: var(--gray);
  }
  .resume a:hover {
    color: var(--cyan);
  }

  .about-education {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .date{
    font-size: 0.8rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .about-education p{
    font-weight: lighter;
    font-size: 0.9rem;
    margin: auto 15px;
    margin-bottom: 7px;
  }
  .about-education h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    margin-top: 10px;
  }
/* ...existing code... */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(10, 25, 47, 0.85);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: var(--dark-gray);
  margin: 5% auto;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  box-shadow: var(--box-shadow);
  position: relative;
}

.close {
  color: #fff;
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.close:hover {
  color: var(--cyan);
} 
h3, #heading{
    color: var(--cyan);
  }

  /* Badge section */
.badge-container {
  overflow-x: auto;
  width: 100%;
  margin: 30px;
  scrollbar-width: thin;
  scrollbar-color: #999 transparent;
}
.badge-wrapper {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  width: max-content; /* Ensures all badges are in one row and allows scrolling */
}
.badge-wrapper > div {
  flex-shrink: 0; /* Prevents badges from shrinking */
  transition: transform 0.3s ease; /* Smooth hover transition */
}


/* Certificate */
#certificates {
  padding: 40px 20px;
}

#certificates h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
}

/* Scrollable container */
.cert-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 15px;
  scrollbar-width: thin;
  scrollbar-color: #999 transparent;
}

/* Each card */
.cert-card {
  position: relative;
  flex: 0 0 auto;
  scroll-snap-align: start;
  border-radius: 10px;
  overflow: hidden;
  width: 420px; /* default size */
  height: 320px;
  aspect-ratio: 4 / 3;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.cert-card:hover {
  transform: scale(1.03);
}

/* Certificate image */
.cert-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Hover button overlay */
.view-btn {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  color: var(--dark-gray);
  font-weight: 600;
  text-decoration: none;
  display: flex;
  justify-content: left;
  align-items: left;
  opacity: 0;
  transition: opacity 0.3s;
  
}
.view-txt{
  color: var(--gray);
  font-size: 1rem;
}
.view-txt:hover{
  color: var(--cyan);
}

.cert-card:hover .view-btn {
  opacity: 1;
}

/* Scrollbar styling for webkit browsers */
.cert-container::-webkit-scrollbar {
  height: 8px;
}

.cert-container::-webkit-scrollbar-thumb {
  background: #aaa;
  border-radius: 4px;
}

/* Responsive for certificate cards */
@media (max-width: 768px) {
  .cert-card {
    width: 320px;
    aspect-ratio: 4 / 3; /* slightly taller for smaller screen */
  }
}

/* Mobile view */
@media (max-width: 480px) {
  .cert-card {
    width: 260px;
    aspect-ratio: 3 / 2; /* taller and fits vertical scroll better */
  }
}
/* Contact section */
.contact{
  text-align: left;
  margin: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 35px;
  background-color: var(--dark-gray);
  border-radius: 10px;
  font-size: 1rem;
  padding: 2px 20px 20px;
}
form{
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 700px;
  margin: 2rem;
}
.field{
  background-color: var(--dark);
  border-radius: 10px;
  padding: 10px;
  border: none;
  color: var(--light-gray);
  font-size: 1rem;
  width: 100%;
  box-shadow: var(--box-shadow);
}
.field:hover{
  border: 1px solid var(--cyan);
}
.contact > button{
  color: var(--dark);
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--box-shadow);
}
button:hover{
  background-color: var(--dark);
  transform: translateY(-3px);
  color: var(--cyan);
}
footer{
  margin-top: 50px;
  text-align: center;
  color: var(--gray);
  font-size: 0.9rem;
  border-top: px solid var(--sidebar-bg);
}
/* Contact section */
.contact {
  text-align: left;
  margin: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 35px;
  background-color: var(--dark-gray);
  border-radius: 10px;
  font-size: 1rem;
  padding: 2px 20px 20px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 700px;
  margin: 2rem;
}

.field {
  background-color: var(--dark);
  border-radius: 10px;
  padding: 10px;
  border: none;
  color: var(--light-gray);
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box; /* Prevents overflow */
  box-shadow: var(--box-shadow);
}

.field:hover {
  border: 1px solid var(--cyan);
}

.contact > button {
  color: var(--dark);
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--box-shadow);
  min-width: 120px; /* Ensures button has minimum width */
}

button:hover {
  background-color: var(--dark);
  transform: translateY(-3px);
  color: var(--cyan);
}

footer {
  margin-top: 50px;
  text-align: center;
  color: var(--gray);
  font-size: 0.9rem;
  border-top: 1px solid var(--sidebar-bg); /* Fixed missing '1' */
}

/* Tablet: 1024px and below */
@media (max-width: 1024px) {
  .contact {
    margin: 15px;
    gap: 25px;
    padding: 15px;
  }

  form {
    margin: 1.5rem;
    max-width: 600px;
  }

  .field {
    padding: 12px;
    font-size: 0.95rem;
  }

  .contact > button {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
}

/* Tablet/Small Tablet: 768px and below */
@media (max-width: 768px) {
  .contact {
    flex-direction: column; /* Stack vertically */
    margin: 10px;
    gap: 20px;
    padding: 20px 15px;
    text-align: center; /* Center align for better mobile UX */
  }

  form {
    margin: 1rem 0;
    max-width: 100%;
  }

  .field {
    padding: 14px;
    font-size: 1rem;
  }

  .contact > button {
    width: 100%; /* Full width buttons on mobile */
    max-width: 300px; /* But not too wide */
    margin: 0 auto; /* Center the button */
    padding: 14px;
  }

  footer {
    margin-top: 40px;
    padding: 0 15px;
    font-size: 0.85rem;
  }
}

/* Mobile: 480px and below */
@media (max-width: 480px) {
  .contact {
    margin: 5px;
    padding: 15px 10px;
    gap: 15px;
    border-radius: 8px;
  }

  form {
    margin: 0.5rem 0;
    gap: 12px;
  }

  .field {
    padding: 12px;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  .contact > button {
    width: 100%;
    max-width: 100%; /* Full width on small mobile */
    padding: 14px;
    font-size: 0.95rem;
  }

  footer {
    margin-top: 30px;
    font-size: 0.8rem;
  }
}