/* ==========================================================================
   style.css - Portfolio (Ridhwan S)
   ========================================================================== */

/* 1. CUSTOM PROPERTY (variables)
 * 2. RESET
 * 3. REUSED STYLE (shared components)
 * 4. MAIN (layout)
 * 5. SIDEBAR
 * 6. NAVBAR
 * 7. ABOUT
 * 8. RESUME (timeline, skills)
 * 9. PORTFOLIO (filter, projects)
 * 10. BLOG
 * 11. CONTACT (map, form)
 * 12. MODAL / OVERLAYS
 * 13. MEDIA QUERIES (responsive)
   ========================================================================== */

/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/

:root {

  /**
   * colors
   */

  /* gradient */

  --bg-gradient-onyx: linear-gradient(
    to bottom right, 
    hsl(240, 1%, 25%) 3%, 
    hsl(0, 0%, 19%) 97%
  );
  --bg-gradient-jet: linear-gradient(
    to bottom right, 
    hsla(240, 1%, 18%, 0.251) 0%, 
    hsla(240, 2%, 11%, 0) 100%
  ), hsl(240, 2%, 13%);
  --bg-gradient-yellow-1: linear-gradient(
    to bottom right, 
    hsl(45, 100%, 71%) 0%, 
    hsla(36, 100%, 69%, 0) 50%
  );
  --bg-gradient-yellow-2: linear-gradient(
    135deg, 
    hsla(45, 100%, 71%, 0.251) 0%, 
    hsla(35, 100%, 68%, 0) 59.86%
  ), hsl(240, 2%, 13%);
  --border-gradient-onyx: linear-gradient(
    to bottom right, 
    hsl(0, 0%, 25%) 0%, 
    hsla(0, 0%, 25%, 0) 50%
  );
  --text-gradient-yellow: linear-gradient(
    to right, 
    hsl(45, 100%, 72%), 
    hsl(35, 100%, 68%)
  );

  /* solid */

  --jet: hsl(0, 0%, 22%);
  --onyx: hsl(240, 1%, 17%);
  --eerie-black-1: hsl(240, 2%, 13%);
  --eerie-black-2: hsl(240, 2%, 12%);
  --smoky-black: hsl(0, 0%, 7%);
  --white-1: hsl(0, 0%, 100%);
  --white-2: hsl(0, 0%, 98%);
  --orange-yellow-crayola: hsl(45, 100%, 72%);
  --vegas-gold: hsl(45, 54%, 58%);
  --light-gray: hsl(0, 0%, 84%);
  --light-gray-70: hsla(0, 0%, 84%, 0.7);
  --bittersweet-shimmer: hsl(0, 43%, 51%);

  /**
   * typography
   */

  /* font-family */
  --ff-poppins: 'Poppins', sans-serif;

  /* font-size */
  --fs-1: 24px;
  --fs-2: 18px;
  --fs-3: 17px;
  --fs-4: 16px;
  --fs-5: 15px;
  --fs-6: 14px;
  --fs-7: 13px;
  --fs-8: 11px;

  /* font-weight */
  --fw-300: 300;
  --fw-400: 400;
  --fw-500: 500;
  --fw-600: 600;

  /**
   * shadow
   */
  
  --shadow-1: -4px 8px 24px hsla(0, 0%, 0%, 0.25);
  --shadow-2: 0 16px 30px hsla(0, 0%, 0%, 0.25);
  --shadow-3: 0 16px 40px hsla(0, 0%, 0%, 0.25);
  --shadow-4: 0 25px 50px hsla(0, 0%, 0%, 0.15);
  --shadow-5: 0 24px 80px hsla(0, 0%, 0%, 0.25);

  /**
   * transition
   */

  --transition-1: 0.25s ease;
  --transition-2: 0.5s ease-in-out;

  /* Form Validation Styles */
  --red: hsl(0, 100%, 50%);
  --green: hsl(120, 100%, 50%);

}

/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a { text-decoration: none; }

li { list-style: none; }

img, ion-icon, a, button, time, span { display: block; }

button {
  font: inherit;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

input, textarea {
  display: block;
  width: 100%;
  background: none;
  font: inherit;
}

::selection {
  background: var(--orange-yellow-crayola);
  color: var(--smoky-black);
}

:focus { outline-color: var(--orange-yellow-crayola); }

html { font-family: var(--ff-poppins); }

body { background: var(--smoky-black); }

/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/

.sidebar,
article {
  background: var(--eerie-black-2);
  border: 1px solid var(--jet);
  border-radius: 20px;
  padding: 15px;
  box-shadow: var(--shadow-1);
  z-index: 1;
}

.separator {
  width: 100%;
  height: 1px;
  background: var(--jet);
  margin: 16px 0;
}

.icon-box {
  position: relative;
  background: var(--border-gradient-onyx);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  color: var(--orange-yellow-crayola);
  box-shadow: var(--shadow-1);
  z-index: 1;
}

.icon-box::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--eerie-black-1);
  border-radius: inherit;
  z-index: -1;
}

.icon-box .material-icons {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.icon-box:hover .material-icons {
  transform: scale(1.1);
}

@media (min-width: 580px) {
  .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .icon-box .material-icons {
    font-size: 24px;
  }
}

.icon-box ion-icon { --ionicon-stroke-width: 35px; }

article { display: none; }

article.active {
  display: block;
  animation: fade 0.5s ease backwards;
}

@keyframes fade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.h2,
.h3,
.h4,
.h5 {
  color: var(--white-2);
  text-transform: capitalize;
}

.h2 { font-size: var(--fs-1); }

.h3 { font-size: var(--fs-2); }

.h4 { font-size: var(--fs-4); }

.h5 {
  font-size: var(--fs-7);
  font-weight: var(--fw-500);
}

.article-title {
  position: relative;
  padding-bottom: 7px;
}

.article-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--text-gradient-yellow);
  border-radius: 3px;
}

.has-scrollbar::-webkit-scrollbar {
  width: 5px; /* for vertical scrollbar */
  height: 5px; /* for horizontal scrollbar */
}

.has-scrollbar::-webkit-scrollbar-track {
  background: var(--onyx);
  border-radius: 5px;
}

.has-scrollbar::-webkit-scrollbar-thumb {
  background: var(--orange-yellow-crayola);
  border-radius: 5px;
}

.has-scrollbar::-webkit-scrollbar-button { width: 20px; }

.content-card {
  position: relative;
  background: var(--border-gradient-onyx);
  padding: 15px;
  padding-top: 45px;
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  cursor: pointer;
  z-index: 1;
}

.content-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

/*-----------------------------------*\
  #MAIN
\*-----------------------------------*/

main {
  margin: 15px 12px;
  margin-bottom: 75px;
  min-width: 259px;
}

/*-----------------------------------*\
  #SIDEBAR
\*-----------------------------------*/

.sidebar {
  margin-bottom: 15px;
  max-height: 112px;
  overflow: hidden;
  transition: var(--transition-2);
}

.sidebar.active { max-height: 405px; }

.sidebar-info {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
}

.avatar-box {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-1);
  overflow: hidden;
  border-radius: 20px;
  border: 3px solid var(--orange-yellow-crayola);
  box-shadow: var(--shadow-2);
}

.avatar-box:hover {
  transform: scale(1.05);
  border-color: var(--vegas-gold);
}

.avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  transition: var(--transition-1);
}

.info-content .name {
  color: var(--white-2);
  font-size: var(--fs-3);
  font-weight: var(--fw-500);
  letter-spacing: -0.25px;
  margin-bottom: 10px;
}

.info-content .title {
  color: var(--white-1);
  background: var(--onyx);
  font-size: var(--fs-8);
  font-weight: var(--fw-300);
  width: max-content;
  padding: 3px 12px;
  border-radius: 8px;
}

.info_more-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  border-radius: 0 15px;
  font-size: 13px;
  color: var(--orange-yellow-crayola);
  background: var(--border-gradient-onyx);
  padding: 10px;
  box-shadow: var(--shadow-2);
  transition: var(--transition-1);
  z-index: 1;
}

.info_more-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: var(--bg-gradient-jet);
  transition: var(--transition-1);
  z-index: -1;
}

.info_more-btn:hover,
.info_more-btn:focus { background: var(--bg-gradient-yellow-1); }

.info_more-btn:hover::before,
.info_more-btn:focus::before { background: var(--bg-gradient-yellow-2); }

.info_more-btn span { display: none; }

.sidebar-info_more {
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-2);
}

.sidebar.active .sidebar-info_more {
  opacity: 1;
  visibility: visible;
}

.contacts-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.contact-item {
  min-width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-info {
  max-width: calc(100% - 46px);
  width: calc(100% - 46px);
}

.contact-title {
  color: var(--light-gray-70);
  font-size: var(--fs-8);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.contact-info :is(.contact-link, time, address) {
  color: var(--white-2);
  font-size: var(--fs-7);
}

.contact-info address { font-style: normal; }

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.social-item {
  position: relative;
  transition: transform 0.3s ease;
}

.social-item:hover {
  transform: translateY(-5px);
}

.social-item .social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: var(--white-2);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.social-item .social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* LinkedIn */
.social-item .social-link[href*="linkedin"]::before {
  background: #0077B5;
}

/* GitHub */
.social-item .social-link[href*="github"]::before {
  background: #333333;
}

/* Kaggle */
.social-item .social-link[href*="kaggle"]::before {
  background: #20BEFF;
}

/* LeetCode */
.social-item .social-link[href*="leetcode"]::before {
  background: #FFA116;
}

/* HackerRank */
.social-item .social-link[href*="hackerrank"]::before {
  background: #2EC866;
}

/* X (Twitter) */
.social-item .social-link[href*="x.com"]::before {
  background: #000000;
}

.social-item .social-link:hover::before {
  opacity: 1;
}

.social-item .social-link img {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease, filter 0.3s ease;
  position: relative;
  z-index: 1;
}

.social-item .social-link:hover img {
  transform: scale(1.2);
  filter: brightness(0) invert(1);
}

.social-item .social-link span {
  display: none;
  color: var(--smoky-black);
  font-weight: 500;
  margin-left: 8px;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .social-item .social-link {
    width: auto;
    height: 45px;
    padding: 0 20px;
    border-radius: 25px;
  }

  .social-item .social-link span {
    display: inline-block;
  }
}

@media (min-width: 1024px) {
  .social-list {
    gap: 20px;
  }

  .social-item .social-link {
    padding: 0 25px;
    font-size: 15px;
  }
}

/*-----------------------------------*\
  #NAVBAR
\*-----------------------------------*/

.navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: hsla(240, 1%, 17%, 0.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--jet);
  border-radius: 12px 12px 0 0;
  box-shadow: var(--shadow-2);
  z-index: 5;
}

.navbar-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
}

.navbar-link {
  color: var(--light-gray);
  font-size: var(--fs-8);
  padding: 20px 7px;
  transition: color var(--transition-1);
}

.navbar-link:hover,
.navbar-link:focus { color: var(--light-gray-70); }

.navbar-link.active { color: var(--orange-yellow-crayola); }

/*-----------------------------------*\
  #ABOUT
\*-----------------------------------*/

.about .article-title { margin-bottom: 15px; }

.about-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
}

.about-text p { margin-bottom: 15px; }

/**
 * #service 
 */

.service { margin-bottom: 35px; }

.service-title { margin-bottom: 20px; }

.service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-item {
  position: relative;
  background: var(--border-gradient-onyx);
  padding: 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  z-index: 1;
}

.service-item::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.service-icon-box { margin-bottom: 10px; }

.service-icon-box img { margin: auto; }

.service-content-box { text-align: center; }

.service-item-title { margin-bottom: 7px; }

.service-item-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-3);
  line-height: 1.6;
}


/**
 * #clients 
 */

.clients { margin-bottom: 15px; }

.clients-list {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 15px;
  margin: 0 -15px;
  padding: 25px;
  padding-bottom: 25px;
  overflow-x: auto;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scroll-padding-inline: 25px;
}

.clients-item {
  min-width: 50%;
  scroll-snap-align: start;
}

.clients-item img {
  width: 100%;
  filter: grayscale(1);
  transition: var(--transition-1);
}

.clients-item img:hover { filter: grayscale(0); }

/*-----------------------------------*\
  #RESUME
\*-----------------------------------*/

.article-title { margin-bottom: 30px; }


/**
 * education and experience 
 */

.timeline { margin-bottom: 30px; }

.timeline .title-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.timeline-list {
  font-size: var(--fs-6);
  margin-left: 45px;
}

.timeline-item { position: relative; }

.timeline-item:not(:last-child) { margin-bottom: 20px; }

.timeline-item-title {
  font-size: var(--fs-6);
  line-height: 1.3;
  margin-bottom: 7px;
}

.timeline-list span {
  color: var(--vegas-gold);
  font-weight: var(--fw-400);
  line-height: 1.6;
}

.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: -25px;
  left: -30px;
  width: 1px;
  height: calc(100% + 50px);
  background: var(--jet);
}

.timeline-item::after {
  content: "";
  position: absolute;
  top: 5px;
  left: -33px;
  height: 6px;
  width: 6px;
  background: var(--text-gradient-yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--jet);
}

.timeline-text {
  color: var(--light-gray);
  font-weight: var(--fw-300);
  line-height: 1.6;
}


/**
 * skills 
 */

.skills-title { margin-bottom: 20px; }

.skills-list { padding: 20px; }


.skills-item:not(:last-child) { margin-bottom: 15px; }

.skill .title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.skill .title-wrapper data {
  color: var(--orange-yellow-crayola);
  font-weight: var(--fw-600);
}

.skill-text {
  color: var(--light-gray-70);
  font-size: var(--fs-7);
  margin-top: 5px;
  line-height: 1.6;
}

.skill-progress-bg {
  background: var(--smoky-black);
  height: 6px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.skill-progress-fill {
  background: var(--orange-yellow-crayola);
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

/*-----------------------------------*\
  #PORTFOLIO
\*-----------------------------------*/

.filter-list { 
  display: none; 
}

.filter-select-box {
  position: relative;
  margin-bottom: 25px;
  z-index: 3;
}

.filter-select {
  background: var(--eerie-black-2);
  color: var(--light-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--jet);
  border-radius: 14px;
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  cursor: pointer;
}

.filter-select.active .select-icon { 
  transform: rotate(0.5turn); 
}

.select-list {
  background: var(--eerie-black-2);
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  padding: 6px;
  border: 1px solid var(--jet);
  border-radius: 14px;
  z-index: 4;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.15s ease-in-out;
}

.filter-select.active + .select-list {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.select-item button {
  background: var(--eerie-black-2);
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  text-transform: capitalize;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  transition: 0.3s ease;
}

.select-item button:hover { 
  background: var(--jet);
  color: var(--orange-yellow-crayola);
}

/* Portfolio Grid */
.project-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 10px;
}

.project-item {
  display: none;
  opacity: 0;
  transform: translateY(20px);
}

.project-item.active {
  display: block;
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile View Styles */
@media (max-width: 580px) {
  .filter-select-box {
    margin-bottom: 20px;
  }

  .filter-select {
    padding: 10px 14px;
    font-size: var(--fs-7);
  }

  .select-list {
    padding: 4px;
  }

  .select-item button {
    font-size: var(--fs-7);
    padding: 8px 12px;
  }

  .project-list {
    gap: 20px;
  }
}

/* Tablet View */
@media (min-width: 581px) and (max-width: 768px) {
  .project-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

/* Desktop View */
@media (min-width: 769px) {
  .filter-select-box { 
    display: none; 
  }

  .filter-list {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 25px;
    padding-left: 5px;
    margin-bottom: 30px;
  }

  .filter-item button {
    color: var(--light-gray);
    font-size: var(--fs-5);
    transition: var(--transition-1);
  }

  .filter-item button:hover { 
    color: var(--light-gray-70); 
  }

  .filter-item button.active { 
    color: var(--orange-yellow-crayola); 
  }

  .project-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-item > a { width: 100%; }

.project-img {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 15px;
}

.project-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 1;
  transition: var(--transition-1);
}

.project-item > a:hover .project-img::before { background: hsla(0, 0%, 0%, 0.5); }

.project-item-icon-box {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.3s ease;
  background: transparent !important;
  padding: 0;
  margin: 0;
  border: none;
  box-shadow: none;
}

.project-item:hover .project-item-icon-box {
  opacity: 1;
  transform: translateY(0);
  background: transparent !important;
}

.project-item-icon-box button,
.project-item-icon-box a {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  margin: 0;
  background: var(--smoky-black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: 0.3s ease;
  border: none;
  cursor: pointer;
}

.project-item-icon-box button:hover,
.project-item-icon-box a:hover {
  background: var(--orange-yellow-crayola);
  color: var(--smoky-black);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-item-icon-box ion-icon {
  font-size: 20px;
  color: var(--white);
  transition: 0.3s ease;
}

@media (max-width: 768px) {
  .project-item-icon-box {
    top: 10px;
    right: 10px;
  }

  .project-item-icon-box button,
  .project-item-icon-box a {
    width: 35px;
    height: 35px;
    min-width: 35px;
    min-height: 35px;
  }

  .project-item-icon-box ion-icon {
    font-size: 18px;
  }
}

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

.project-item > a:hover img { transform: scale(1.1); }

.project-title,
.project-category { margin-left: 10px; }

.project-title {
  color: var(--white-2);
  font-size: var(--fs-5);
  font-weight: var(--fw-400);
  text-transform: capitalize;
  line-height: 1.3;
}

.project-category {
  color: var(--light-gray-70);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
}

.project-description {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
  margin: 10px 0;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.project-tech span {
  background: var(--onyx);
  color: var(--orange-yellow-crayola);
  font-size: var(--fs-7);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: var(--fw-300);
}

.project-item {
  background: var(--border-gradient-onyx);
  padding: 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  transition: var(--transition-1);
}

.project-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-3);
}

.project-img {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
}

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

.project-item:hover .project-img img {
  transform: scale(1.1);
}

.project-item-icon-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: var(--onyx);
  color: var(--orange-yellow-crayola);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition-1);
}

.project-item:hover .project-item-icon-box {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.project-title {
  color: var(--white-2);
  font-size: var(--fs-5);
  font-weight: var(--fw-400);
  margin-bottom: 5px;
}

.project-category {
  color: var(--orange-yellow-crayola);
  font-size: var(--fs-7);
  font-weight: var(--fw-300);
  margin-bottom: 10px;
}

/*-----------------------------------*\
  #BLOG
\*-----------------------------------*/

.blog-posts { margin-bottom: 10px; }

.blog-posts-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.blog-post-item > a {
  position: relative;
  background: var(--border-gradient-onyx);
  height: 100%;
  box-shadow: var(--shadow-4);
  border-radius: 16px;
  z-index: 1;
}

.blog-post-item > a::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: var(--eerie-black-1);
  z-index: -1;
}

.blog-banner-box {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
}

.blog-banner-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-1);
}

.blog-post-item > a:hover .blog-banner-box img { transform: scale(1.1); }

.blog-content { padding: 15px; }

.blog-meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}

.blog-meta :is(.blog-category, time) {
  color: var(--light-gray-70);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
}

.blog-meta .dot {
  background: var(--light-gray-70);
  width: 4px;
  height: 4px;
  border-radius: 4px;
}

.blog-item-title {
  margin-bottom: 10px;
  line-height: 1.3;
  transition: var(--transition-1);
}

.blog-post-item > a:hover .blog-item-title { color: var(--orange-yellow-crayola); }

.blog-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
}

/*-----------------------------------*\
  #CONTACT
\*-----------------------------------*/

.mapbox {
  position: relative;
  height: 250px;
  width: 100%;
  border-radius: 16px;
  margin-bottom: 30px;
  border: 1px solid var(--jet);
  overflow: hidden;
}

.mapbox figure { height: 100%; }

.mapbox iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(1) invert(1);
}

.contact-form { margin-bottom: 10px; }

.form-title { margin-bottom: 20px; }

.input-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-bottom: 25px;
}

.form-input {
  color: var(--white-2);
  font-size: var(--fs-6);
  font-weight: var(--fw-400);
  padding: 13px 20px;
  border: 1px solid var(--jet);
  border-radius: 14px;
  outline: none;
}

.form-input::placeholder { font-weight: var(--fw-500); }

.form-input:focus { border-color: var(--orange-yellow-crayola); }

textarea.form-input {
  min-height: 100px;
  height: 120px;
  max-height: 200px;
  resize: vertical;
  margin-bottom: 25px;
}

textarea.form-input::-webkit-resizer { display: none; }

.form-input:focus:invalid { border-color: var(--bittersweet-shimmer); }

.form-btn {
  position: relative;
  width: 100%;
  background: var(--border-gradient-onyx);
  color: var(--orange-yellow-crayola);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 14px;
  font-size: var(--fs-6);
  text-transform: capitalize;
  box-shadow: var(--shadow-3);
  z-index: 1;
  transition: var(--transition-1);
}

.form-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
  transition: var(--transition-1);
}

.form-btn ion-icon { font-size: 16px; }

.form-btn:hover { background: var(--bg-gradient-yellow-1); }

.form-btn:hover::before { background: var(--bg-gradient-yellow-2); }

.form-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-btn:disabled:hover { background: var(--border-gradient-onyx); }

.form-btn:disabled:hover::before { background: var(--bg-gradient-jet); }

.form-group {
  position: relative;
  margin-bottom: 20px;
}

.form-error {
  position: absolute;
  bottom: -20px;
  left: 0;
  color: var(--bittersweet-shimmer);
  font-size: var(--fs-7);
  font-weight: var(--fw-300);
  opacity: 0;
  transition: var(--transition-1);
}

.form-input:invalid:not(:placeholder-shown) + .form-error {
  opacity: 1;
}

.form-status {
  margin: 15px 0;
  padding: 10px;
  border-radius: 8px;
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(0, 255, 0, 0.1);
  color: #00ff00;
  border: 1px solid rgba(0, 255, 0, 0.2);
}

.form-status.error {
  display: block;
  background: rgba(255, 0, 0, 0.1);
  color: var(--bittersweet-shimmer);
  border: 1px solid rgba(255, 0, 0, 0.2);
}

.form-input:focus:invalid {
  border-color: var(--red);
}

.form-input:focus:valid {
  border-color: var(--green);
}

/*-----------------------------------*\
  #RESPONSIVE
\*-----------------------------------*/

/**
 * responsive larger than 450px screen
 */

@media (min-width: 450px) {

  /**
   * client
   */

  .clients-item { min-width: calc(33.33% - 10px); }

  /**
   * #PORTFOLIO, BLOG 
   */

  .project-img,
  .blog-banner-box { height: auto; }

}

/**
 * responsive larger than 580px screen
 */

@media (min-width: 580px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-1: 32px;
    --fs-2: 24px;
    --fs-3: 26px;
    --fs-4: 18px;
    --fs-6: 15px;
    --fs-7: 15px;
    --fs-8: 12px;

  }

  /**
   * #REUSED STYLE
   */

  .sidebar, article {
    width: 520px;
    margin-inline: auto;
    padding: 30px;
  }

  .article-title {
    font-weight: var(--fw-600);
    padding-bottom: 15px;
  }

  .article-title::after {
    width: 40px;
    height: 5px;
  }

  .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 18px;
  }

  /**
   * #MAIN
   */

  main {
    margin-top: 60px;
    margin-bottom: 100px;
  }

  /**
   * #SIDEBAR
   */

  .sidebar {
    max-height: 180px;
    margin-bottom: 30px;
  }

  .sidebar.active { max-height: 584px; }

  .sidebar-info { gap: 25px; }

  .avatar-box {
    width: 150px;
    height: 150px;
  }

  .avatar-box img { width: 100%; }

  .info-content .name { margin-bottom: 15px; }

  .info-content .title { padding: 5px 18px; }

  .info_more-btn {
    top: -30px;
    right: -30px;
    padding: 10px 15px;
  }

  .info_more-btn span {
    display: block;
    font-size: var(--fs-8);
  }

  .info_more-btn ion-icon { display: none; }

  .separator { margin: 32px 0; }

  .contacts-list { gap: 20px; }

  .contact-info {
    max-width: calc(100% - 64px);
    width: calc(100% - 64px);
  }

  /**
   * #NAVBAR
   */

  .navbar { border-radius: 20px 20px 0 0; }

  .navbar-list { gap: 20px; }

  .navbar-link { --fs-8: 14px; }

  /**
   * #ABOUT
   */

  .about .article-title { margin-bottom: 20px; }

  .about-text { margin-bottom: 40px; }

  /* service */

  .service-item {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 18px;
    padding: 30px;
  }

  .service-icon-box {
    margin-bottom: 0;
    margin-top: 5px;
  }

  .service-content-box { text-align: left; }

  /* testimonials */

  .testimonials-title { margin-bottom: 25px; }

  .testimonials-list {
    gap: 30px;
    margin: 0 -30px;
    padding: 30px;
    padding-bottom: 35px;
  }

  .content-card {
    padding: 30px;
    padding-top: 25px;
  }

  .testimonials-avatar-box {
    transform: translate(30px, -30px);
    border-radius: 20px;
  }

  .testimonials-avatar-box img { width: 80px; }

  .testimonials-item-title {
    margin-bottom: 10px;
    margin-left: 95px;
  }

  .testimonials-text {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  /* testimonials modal */

  .modal-container { padding: 20px; }

  .testimonials-modal {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    gap: 25px;
    padding: 30px;
    border-radius: 20px;
  }

  .modal-img-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .modal-avatar-box {
    border-radius: 18px;
    margin-bottom: 0;
  }

  .modal-avatar-box img { width: 65px; }

  .modal-img-wrapper > img {
    display: block;
    flex-grow: 1;
    width: 35px;
  }

  /* clients */

  .clients-list {
    gap: 50px;
    margin: 0 -30px;
    padding: 45px;
    scroll-padding-inline: 45px;
  }

  .clients-item { min-width: calc(33.33% - 35px); }

  /**
   * #RESUME
   */

  .timeline-list { margin-left: 65px; }

  .timeline-item:not(:last-child)::before { left: -40px; }

  .timeline-item::after {
    height: 8px;
    width: 8px;
    left: -43px;
  }

  .skills-item:not(:last-child) { margin-bottom: 25px; }

  


  /**
   * #PORTFOLIO, BLOG
   */

  .project-img, .blog-banner-box { border-radius: 16px; }

  .blog-posts-list { gap: 30px; }

  .blog-content { padding: 25px; }

  /**
   * #CONTACT
   */

  .mapbox {
    height: 380px;
    border-radius: 18px;
  }

  .input-wrapper {
    gap: 30px;
    margin-bottom: 30px;
  }

  .form-input { padding: 15px 20px; }

  textarea.form-input { margin-bottom: 30px; }

  .form-btn {
    --fs-6: 16px;
    padding: 16px 20px;
  }

  .form-btn ion-icon { font-size: 18px; }

}

/**
 * responsive larger than 768px screen
 */

@media (min-width: 768px) {

  /**
   * REUSED STYLE
   */

  .sidebar, article { width: 700px; }

  .has-scrollbar::-webkit-scrollbar-button { width: 100px; }

  /**
   * SIDEBAR
   */

  .contacts-list {
    grid-template-columns: 1fr 1fr;
    gap: 30px 15px;
  }

  /**
   * NAVBAR
   */

  .navbar-link { --fs-8: 15px; }

  /**
   * ABOUT
   */

  /* testimonials modal */

  .testimonials-modal {
    gap: 35px;
    max-width: 680px;
  }

  .modal-avatar-box img { width: 80px; }

  /**
   * PORTFOLIO
   */

  .article-title { padding-bottom: 20px; }

  .filter-select-box { display: none; }

  .filter-list {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 25px;
    padding-left: 5px;
    margin-bottom: 30px;
  }

  .filter-item button {
    color: var(--light-gray);
    font-size: var(--fs-5);
    transition: var(--transition-1);
  }

  .filter-item button:hover { color: var(--light-gray-70); }

  .filter-item button.active { color: var(--orange-yellow-crayola); }

  /* portfolio and blog grid */

  .project-list, .blog-posts-list { grid-template-columns: 1fr 1fr; }

  /**
   * CONTACT
   */

  .input-wrapper { grid-template-columns: 1fr 1fr; }

  .form-btn {
    width: max-content;
    margin-left: auto;
  }
  
}

/**
 * responsive larger than 1024px screen
 */

@media (min-width: 1024px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
    * shadow
    */

    --shadow-1: -4px 8px 24px hsla(0, 0%, 0%, 0.125);
    --shadow-2: 0 16px 30px hsla(0, 0%, 0%, 0.125);
    --shadow-3: 0 16px 40px hsla(0, 0%, 0%, 0.125);

  }

  /**
   * REUSED STYLE
   */

  .sidebar, article {
    width: 950px;
    box-shadow: var(--shadow-5);
  }

  /**
   * MAIN 
   */

  main { margin-bottom: 60px; }

  .main-content {
    position: relative;
    width: max-content;
    margin: auto;
  }

  /**
   * NAVBAR
   */

  .navbar {
    position: absolute;
    bottom: auto;
    top: 0;
    left: auto;
    right: 0;
    width: max-content;
    border-radius: 0 20px;
    padding: 0 20px;
    box-shadow: none;
  }

  .navbar-list {
    gap: 30px;
    padding: 0 20px;
  }

  .navbar-link { font-weight: var(--fw-500); }

  /**
   * ABOUT
   */

  /* service */

  .service-list {
    grid-template-columns: 1fr 1fr;
    gap: 20px 25px;
  }

  /* testimonials */

  .testimonials-item { min-width: calc(50% - 15px); }

  /* clients */

  .clients-item { min-width: calc(25% - 38px); }

  /**
   * PORTFOLIO
   */

  .project-list { grid-template-columns: repeat(3, 1fr); }

  /**
   * BLOG
   */

  .blog-banner-box { height: 230px; }

}

/**
 * responsive larger than 1250px screen
 */

@media (min-width: 1250px) {

  /**
   * RESET
   */

  body::-webkit-scrollbar { width: 20px; }

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

  body::-webkit-scrollbar-thumb {
    border: 5px solid var(--smoky-black);
    background: hsla(0, 0%, 100%, 0.1);
    border-radius: 20px;
    box-shadow: inset 1px 1px 0 hsla(0, 0%, 100%, 0.11),
                inset -1px -1px 0 hsla(0, 0%, 100%, 0.11);
  }

  body::-webkit-scrollbar-thumb:hover { background: hsla(0, 0%, 100%, 0.15); }

  body::-webkit-scrollbar-button { height: 60px; }

  /**
   * REUSED STYLE
   */

  .sidebar, article { width: auto; }

  article { min-height: 100%; }

  /**
   * MAIN
   */

  main {
    max-width: 1200px;
    margin-inline: auto;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 25px;
  }

  .main-content {
    min-width: 75%;
    width: 75%;
    margin: 0;
  }

  /**
   * SIDEBAR
   */

  .sidebar {
    position: sticky;
    top: 60px;
    max-height: max-content;
    height: 100%;
    margin-bottom: 0;
    padding-top: 60px;
    z-index: 1;
  }

  .sidebar-info { flex-direction: column; }

  .avatar-box img { width: 150px; }

  .info-content .name {
    white-space: nowrap;
    text-align: center;
  }

  .info-content .title { margin: auto; }

  .info_more-btn { display: none; }

  .sidebar-info_more {
    opacity: 1;
    visibility: visible;
  }

  .contacts-list { grid-template-columns: 1fr; }

  .contact-info :is(.contact-link) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .contact-info :is(.contact-link, time, address) {
    --fs-7: 14px;
    font-weight: var(--fw-300);
  }

  .separator:last-of-type {
    margin: 15px 0;
    opacity: 0;
  }

  .social-list { justify-content: center; }

  /**
	 * RESUME
	 */

  .timeline-text { max-width: 700px; }

}

/*-----------------------------------*\
  #ACHIEVEMENTS
\*-----------------------------------*/

.achievements { margin-bottom: 30px; }

.achievements-title { margin-bottom: 20px; }

.achievements-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.achievement-item {
  background: var(--border-gradient-onyx);
  padding: 20px;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.achievement-item:hover {
  transform: translateY(-5px);
}

.achievement-title {
  color: var(--orange-yellow-crayola);
  margin-bottom: 10px;
}

.achievement-text {
  color: var(--light-gray-70);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .achievements-list {
    grid-template-columns: 1fr;
  }
}

/*-----------------------------------*\
  #TECHNICAL EXPERTISE
\*-----------------------------------*/

.technical-expertise { 
  margin-bottom: 30px; 
}

.technical-expertise-title { 
  margin-bottom: 20px; 
}

.technical-expertise-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.technical-expertise-item {
  background: var(--border-gradient-onyx);
  padding: 20px;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.technical-expertise-item:hover {
  transform: translateY(-5px);
}

.technical-expertise-title {
  color: var(--orange-yellow-crayola);
  margin-bottom: 10px;
}

.technical-expertise-text {
  color: var(--light-gray-70);
  line-height: 1.6;
}

/* Mobile view for technical expertise */
@media (max-width: 580px) {
  .technical-expertise-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .technical-expertise-item {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .technical-expertise-title {
    margin-bottom: 0;
    font-size: var(--fs-6);
  }

  .technical-expertise-text {
    font-size: var(--fs-7);
    margin-left: auto;
  }
}

/* Form Validation Styles */
.form-input:invalid {
  border-color: var(--red);
  background-color: rgba(255, 0, 0, 0.1);
}

.form-input:valid {
  border-color: var(--green);
  background-color: rgba(0, 255, 0, 0.1);
}

.form-input:focus:invalid {
  box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.2);
}

.form-input:focus:valid {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(0, 255, 0, 0.2);
}

.form-error {
  display: none;
  color: var(--red);
  font-size: 12px;
  margin-top: 4px;
}

.form-error.visible {
  display: block;
}

.form-status {
  margin: 16px 0;
  padding: 12px;
  border-radius: 8px;
  display: none;
}

.form-status.visible {
  display: block;
}

.form-status.success {
  background-color: rgba(0, 255, 0, 0.1);
  color: var(--green);
  border: 1px solid var(--green);
}

.form-status.error {
  background-color: rgba(255, 0, 0, 0.1);
  color: var(--red);
  border: 1px solid var(--red);
}

.form-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background-color: var(--jet);
}

.form-btn:disabled:hover {
  background-color: var(--jet);
  transform: none;
}

/* Loading States */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--orange-yellow-crayola);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Form Feedback Improvements */
.form-input:focus {
  border-color: var(--orange-yellow-crayola);
  box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.2);
}

.form-input:focus:valid {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(0, 255, 0, 0.2);
}

.form-input:focus:invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.2);
}

.form-group {
  position: relative;
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--light-gray);
  font-size: var(--fs-6);
  transition: color var(--transition-1);
}

.form-group:focus-within label {
  color: var(--orange-yellow-crayola);
}

.form-error {
  position: absolute;
  bottom: -20px;
  left: 0;
  color: var(--red);
  font-size: var(--fs-7);
  opacity: 0;
  transform: translateY(-10px);
  transition: all var(--transition-1);
}

.form-error.visible {
  opacity: 1;
  transform: translateY(0);
}

.form-status {
  margin: 15px 0;
  padding: 12px;
  border-radius: 8px;
  font-size: var(--fs-6);
  opacity: 0;
  transform: translateY(-10px);
  transition: all var(--transition-1);
}

.form-status.visible {
  opacity: 1;
  transform: translateY(0);
}

.form-status.success {
  background: rgba(0, 255, 0, 0.1);
  color: var(--green);
  border: 1px solid var(--green);
}

.form-status.error {
  background: rgba(255, 0, 0, 0.1);
  color: var(--red);
  border: 1px solid var(--red);
}

/* Keyboard Navigation */
:focus-visible {
  outline: 2px solid var(--orange-yellow-crayola);
  outline-offset: 2px;
}

.navbar-link:focus-visible,
.form-btn:focus-visible,
.social-link:focus-visible {
  outline: 2px solid var(--orange-yellow-crayola);
  outline-offset: 2px;
}

/* Skip Link for Keyboard Navigation */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--orange-yellow-crayola);
  color: var(--smoky-black);
  padding: 8px;
  z-index: 100;
  transition: top var(--transition-1);
}

.skip-link:focus {
  top: 0;
}

/* Loading Animation for Projects */
.project-item {
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-2);
}

.project-item.active {
  opacity: 1;
  transform: translateY(0);
}

/* Loading State for Images */
.project-img {
  position: relative;
  background: var(--jet);
  overflow: hidden;
}

.project-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 1.5s infinite;
}

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

.project-img img.loaded {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Animation Classes */
.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.5s ease forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.5s ease forwards;
}

/* Project Preview Styles */
.project-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}

.project-preview.active {
  opacity: 1;
  visibility: visible;
}

.preview-content {
  background: var(--eerie-black-1);
  border: 1px solid var(--orange-yellow-crayola);
  border-radius: 20px;
  padding: 30px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: 0.3s ease;
}

.project-preview.active .preview-content {
  transform: translateY(0);
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--orange-yellow-crayola);
}

.preview-title {
  color: var(--orange-yellow-crayola);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 5px;
}

.preview-category {
  color: var(--light-gray-70);
  font-size: 16px;
}

.preview-close {
  background: transparent;
  border: none;
  color: var(--orange-yellow-crayola);
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  transition: 0.3s ease;
}

.preview-close:hover {
  transform: rotate(90deg);
  color: var(--light-gray-70);
}

.preview-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 20px;
  background: var(--eerie-black-2);
}

.preview-description {
  color: var(--light-gray-70);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.preview-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.preview-tech span {
  background: var(--orange-yellow-crayola);
  color: var(--eerie-black-1);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
  transition: 0.3s ease;
}

.preview-tech span:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 165, 0, 0.3);
}

.preview-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.preview-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-yellow-crayola);
  font-size: 16px;
  transition: 0.3s ease;
  padding: 8px 16px;
  border: 1px solid var(--orange-yellow-crayola);
  border-radius: 20px;
}

.preview-link:hover {
  background: var(--orange-yellow-crayola);
  color: var(--eerie-black-1);
  transform: translateY(-2px);
}

.preview-link ion-icon {
  font-size: 18px;
}

@media (max-width: 768px) {
  .preview-content {
    width: 95%;
    padding: 20px;
  }

  .preview-image {
    max-height: 300px;
  }

  .preview-title {
    font-size: 20px;
  }

  .preview-links {
    flex-direction: column;
  }

  .preview-link {
    width: 100%;
    justify-content: center;
  }
}

.preview-content::-webkit-scrollbar {
  width: 8px;
}

.preview-content::-webkit-scrollbar-track {
  background: var(--eerie-black-2);
  border-radius: 4px;
}

.preview-content::-webkit-scrollbar-thumb {
  background: var(--orange-yellow-crayola);
  border-radius: 4px;
}

.preview-content::-webkit-scrollbar-thumb:hover {
  background: var(--light-gray-70);
}

/* Profile Picture Modal */
.profile-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.profile-modal.active {
  display: flex;
  opacity: 1;
}

.profile-modal-content {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  padding: 5px;
  background: var(--bg-gradient-onyx);
  border: 4px solid var(--orange-yellow-crayola);
  box-shadow: var(--shadow-3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.profile-modal.active .profile-modal-content {
  transform: scale(1);
}

.profile-modal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: var(--transition-1);
}

/* Responsive adjustments */
@media (min-width: 580px) {
  .profile-modal-content {
    width: 400px;
    height: 400px;
  }
}

/* Typing Effect Styles */
.typing-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 24px;
  margin: 5px 0;
}

.typing-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--orange-yellow-crayola);
  letter-spacing: 0.5px;
}

.cursor {
  width: 2px;
  height: 16px;
  background-color: var(--orange-yellow-crayola);
  animation: blink 0.7s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Certifications & Competitions Sections */
.certifications,
.competitions {
  margin-bottom: 30px;
  background: var(--border-gradient-onyx);
  padding: 25px;
  border-radius: 14px;
  box-shadow: var(--shadow-2);
}

.certifications-title,
.competitions-title {
  color: var(--orange-yellow-crayola);
  font-size: var(--fs-2);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.certifications-title ion-icon,
.competitions-title ion-icon {
  font-size: 24px;
}

.certifications-list,
.competitions-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.certification-item,
.competition-item {
  background: var(--bg-gradient-jet);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--jet);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certification-item:hover,
.competition-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-3);
}

.certification-title,
.competition-title {
  color: var(--white-2);
  font-size: var(--fs-4);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.certification-title ion-icon,
.competition-title ion-icon {
  color: var(--orange-yellow-crayola);
  font-size: 20px;
}

.certification-text,
.competition-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  line-height: 1.6;
  margin-left: 28px;
}

@media (min-width: 768px) {
  .certifications-list,
  .competitions-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.download-resume {
  text-align: center;
  margin: 30px 0;
}

.button {
  display: inline-block;
}

.anchor {
  text-decoration: none;
  color: var(--white);
  display: inline-block;
  font-family: var(--ff-poppins);
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid var(--orange-yellow-crayola);
  padding: 14px 40px 13px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

.anchor:hover {
  color: var(--onyx);
}

.button a::before {
  position: absolute;
  content: "";
  z-index: 0;
  background-color: var(--orange-yellow-crayola);
  left: -5px;
  right: -5px;
  bottom: -5px;
  height: 111%;
  transition: all 0.3s ease;
}

.button a:hover::before {
  height: 11%;
}

.button span {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--bg-gradient-yellow-1);
  border-radius: 12px;
  color: var(--smoky-black);
  font-weight: var(--fw-500);
  transition: transform 0.3s ease;
}

.download-btn:hover {
  transform: translateY(-2px);
}

.download-btn ion-icon {
  font-size: 20px;
}

.certificates-page {
  padding: 20px;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.certificate-card {
  background: var(--eerie-black-2);
  border: 2px solid var(--orange-yellow-crayola);
  border-radius: 16px;
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.certificate-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.certificate-icon {
  width: 50px;
  height: 50px;
  background: var(--orange-yellow-crayola);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.certificate-icon ion-icon {
  font-size: 24px;
  color: var(--eerie-black-2);
}

.certificate-title {
  color: var(--white-2);
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.certificate-issuer {
  color: var(--orange-yellow-crayola);
  font-weight: 500;
  margin-bottom: 5px;
}

.certificate-date {
  color: var(--light-gray-70);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.certificate-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.certificate-details li {
  color: var(--light-gray-70);
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.certificate-details li::before {
  content: "•";
  color: var(--orange-yellow-crayola);
  position: absolute;
  left: 0;
}

@media (max-width: 768px) {
  .certificates-grid {
    grid-template-columns: 1fr;
  }
  
  .certificate-card {
    padding: 20px;
  }
}

/* Modern CSS Features with Fallbacks */
@supports not (display: grid) {
  .certificates-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
  }
  
  .certificate-card {
    flex: 1 1 300px;
    margin: 15px;
  }
}

/* Fallback for CSS Variables */
:root {
  /* Modern browsers */
  --orange-yellow-crayola: hsl(45, 100%, 72%);
  --smoky-black: hsl(0, 0%, 7%);
  --eerie-black-2: hsl(240, 2%, 12%);
  --light-gray-70: hsl(0, 0%, 84%);
  --white-2: hsl(0, 0%, 100%);
}

/* Fallback for older browsers */
@supports not (--foo: green) {
  .certificate-card {
    background: #1a1a1a;
    border: 2px solid #ffd700;
  }
  
  .navbar-link:hover,
  .navbar-link.active {
    color: #ffd700;
  }
}

/* Modern Layout Fallbacks */
@supports not (display: grid) {
  .project-list {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
  }
  
  .project-item {
    flex: 1 1 300px;
    margin: 15px;
  }
}

/* Modern Animation Fallbacks */
@supports not (animation: none) {
  .project-item:hover {
    transform: translateY(-5px);
  }
  
  .certificate-card:hover {
    transform: translateY(-5px);
  }
}

/* Modern Filter Fallbacks */
@supports not (filter: blur(0)) {
  .project-img::before {
    background: rgba(0, 0, 0, 0.5);
  }
}

/* Modern Backdrop Filter Fallbacks */
@supports not (backdrop-filter: blur(0)) {
  .project-preview {
    background: rgba(0, 0, 0, 0.9);
  }
}

/* Modern CSS Grid Fallbacks */
@supports not (display: grid) {
  .input-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
  }
  
  .form-group {
    flex: 1 1 300px;
    margin: 10px;
  }
}

/* Modern Flexbox Fallbacks */
@supports not (display: flex) {
  .navbar-list {
    display: block;
  }
  
  .navbar-item {
    display: inline-block;
    margin-right: 20px;
  }
}

/* Modern CSS Custom Properties Fallbacks */
@supports not (--foo: green) {
  .service-icon-box {
    background: #ffd700;
  }
  
  .service-icon-box ion-icon {
    color: #1a1a1a;
  }
}

/* Modern CSS Grid Auto-fit Fallbacks */
@supports not (grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))) {
  .certificates-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
  }
  
  .certificate-card {
    flex: 1 1 300px;
    margin: 15px;
  }
}

/* Modern CSS Aspect Ratio Fallbacks */
@supports not (aspect-ratio: 1) {
  .project-img {
    height: 200px;
  }
}

/* Modern CSS Container Queries Fallbacks */
@supports not (container-type: inline-size) {
  .certificate-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* Enhanced Responsive Design */
/* Base Mobile Styles */
@media (max-width: 480px) {
  .sidebar-info {
    padding: 15px;
  }
  
  .navbar-list {
    padding: 10px;
  }
  
  .navbar-link {
    padding: 8px 12px;
    font-size: 14px;
  }
  
  .project-item {
    margin-bottom: 20px;
  }
  
  .certificate-card {
    padding: 15px;
  }
  
  .form-input {
    padding: 10px 15px;
  }
}

/* Tablet Styles */
@media (min-width: 481px) and (max-width: 768px) {
  .sidebar {
    max-width: 100%;
  }
  
  .main-content {
    padding: 20px;
  }
  
  .project-list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .certificates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Touch Device Optimizations */
@media (hover: none) {
  .project-item:hover,
  .certificate-card:hover {
    transform: none;
  }
  
  .navbar-link {
    padding: 12px 16px; /* Larger touch targets */
  }
  
  .social-link {
    padding: 12px; /* Larger touch targets */
  }
  
  .form-btn {
    padding: 15px 30px; /* Larger touch targets */
  }
  
  /* Add touch feedback */
  .project-item:active,
  .certificate-card:active {
    transform: scale(0.98);
  }
  
  .navbar-link:active,
  .social-link:active,
  .form-btn:active {
    opacity: 0.7;
  }
}

/* Print Styles */
@media print {
  .sidebar,
  .navbar,
  .project-item-icon-box,
  .form-btn,
  .social-list {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .main-content {
    padding: 0;
  }
  
  article {
    break-inside: avoid;
  }
  
  .project-item,
  .certificate-card {
    break-inside: avoid;
    border: 1px solid #ddd;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --smoky-black: hsl(0, 0%, 7%);
    --eerie-black-2: hsl(240, 2%, 12%);
    --light-gray-70: hsl(0, 0%, 84%);
    --white-2: hsl(0, 0%, 100%);
  }
}

/* Landscape Mode Optimizations */
@media (max-height: 500px) and (orientation: landscape) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
  }
  
  .main-content {
    margin-left: 250px;
  }
  
  .navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--smoky-black);
  }
}

/* Large Screen Optimizations */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
    margin: 0 auto;
  }
  
  .project-list,
  .certificates-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-contrast: high) {
  :root {
    --orange-yellow-crayola: hsl(45, 100%, 85%);
    --light-gray-70: hsl(0, 0%, 90%);
  }
}

/* Certificate Image and Modal Styles */
.certificate-image {
  position: relative;
  width: 100%;
  height: 200px;
  margin: 15px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--orange-yellow-crayola);
}

.certificate-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

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

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

.view-certificate {
  background: var(--orange-yellow-crayola);
  color: var(--eerie-black-1);
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: transform 0.3s ease;
}

.view-certificate:hover {
  transform: translateY(-2px);
}

.view-certificate ion-icon {
  font-size: 18px;
}

/* Certificate Gallery */
.certificate-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 15px 0;
}

.gallery-item {
  position: relative;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--orange-yellow-crayola);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

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

.gallery-item:hover .certificate-overlay {
  opacity: 1;
}

.certificate-actions {
  display: flex;
  gap: 15px;
}

.certificate-actions button,
.certificate-actions a {
  width: 40px;
  height: 40px;
  background: var(--smoky-black);
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-2);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.certificate-actions button:hover,
.certificate-actions a:hover {
  background: var(--orange-yellow-crayola);
  color: var(--smoky-black);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.certificate-actions ion-icon {
  font-size: 20px;
  color: inherit;
}

/* Certificate Modal Styles */
.certificate-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 30px;
  cursor: pointer;
}

.certificate-modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  background: var(--eerie-black-2);
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 1200px;
  border: 2px solid var(--orange-yellow-crayola);
  cursor: default;
}

.modal-image-container {
  position: relative;
  width: 100%;
  height: calc(90vh - 100px);
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: grab;
}

.modal-image-container.zoomed {
  overflow: auto;
  cursor: grab;
  justify-content: flex-start;
  align-items: flex-start;
}

.modal-image {
  max-width: 100%;
  max-height: calc(90vh - 140px);
  object-fit: contain;
  transform-origin: center;
  transition: transform 0.3s ease;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  margin: auto;
}

.modal-image.zoomed {
  margin: 0;
  transform-origin: top left;
}

.modal-image-container.zoomed::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.modal-image-container.zoomed::-webkit-scrollbar-track {
  background: var(--eerie-black-1);
  border-radius: 6px;
}

.modal-image-container.zoomed::-webkit-scrollbar-thumb {
  background: var(--orange-yellow-crayola);
  border-radius: 6px;
  border: 3px solid var(--eerie-black-1);
}

.modal-image-container.zoomed::-webkit-scrollbar-corner {
  background: var(--eerie-black-1);
}

/* Ensure modal content has proper padding */
.modal-content {
  position: relative;
  background: var(--eerie-black-2);
  padding: 25px;
  border-radius: 16px;
  width: 95%;
  max-width: 1200px;
  border: 2px solid var(--orange-yellow-crayola);
  cursor: default;
}

/* Add padding for controls */
.modal-controls {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  gap: 12px;
  z-index: 10;
  background: var(--eerie-black-1);
  padding: 12px;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Zoom level indicator */
.zoom-level {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: var(--eerie-black-1);
  color: var(--light-gray);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: var(--fs-7);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Touch device optimizations */
@media (hover: none) {
  .modal-image-container {
    touch-action: pan-x pan-y;
  }

  .modal-image-container.zoomed {
    touch-action: pan-x pan-y;
  }

  .modal-controls {
    bottom: 20px;
    right: 20px;
  }

  .zoom-level {
    bottom: 20px;
    left: 20px;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal-content {
    padding: 20px;
  }

  .modal-image-container {
    padding: 15px;
  }

  .modal-controls {
    padding: 10px;
    gap: 10px;
  }

  .modal-controls button {
    width: 40px;
    height: 40px;
  }
}

/* Connect With Me Section Styles */
.connect-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.connect-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--eerie-black-1);
  border: 1px solid var(--jet);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.connect-link img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.connect-link span {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-500);
  transition: color 0.3s ease;
}

/* LinkedIn */
.connect-link[href*="linkedin"]:hover {
  background: #0077B5;
  border-color: #0077B5;
}

/* GitHub */
.connect-link[href*="github"]:hover {
  background: #333333;
  border-color: #333333;
}

/* Kaggle */
.connect-link[href*="kaggle"]:hover {
  background: #20BEFF;
  border-color: #20BEFF;
}

/* LeetCode */
.connect-link[href*="leetcode"]:hover {
  background: #FFA116;
  border-color: #FFA116;
}

/* HackerRank */
.connect-link[href*="hackerrank"]:hover {
  background: #2EC866;
  border-color: #2EC866;
}

/* X (Twitter) */
.connect-link[href*="x.com"]:hover {
  background: #000000;
  border-color: #000000;
}

/* Common hover effects */
.connect-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.connect-link:hover img {
  transform: scale(1.15);
  filter: brightness(0) invert(1);
}

.connect-link:hover span {
  color: var(--white-1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .connect-links {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
  }

  .connect-link {
    padding: 10px 14px;
  }

  .connect-link img {
    width: 20px;
    height: 20px;
  }

  .connect-link span {
    font-size: var(--fs-7);
  }
}

@media (max-width: 480px) {
  .connect-links {
    grid-template-columns: 1fr;
  }
}

/* Active/Focus states for accessibility */
.connect-link:focus-visible {
  outline: 2px solid var(--orange-yellow-crayola);
  outline-offset: 2px;
}

/* Touch device optimizations */
@media (hover: none) {
  .connect-link {
    padding: 14px 18px;
  }
  
  .connect-link:active {
    transform: scale(0.98);
  }
}

/*-----------------------------------*\
  #CONNECT WITH ME
\*-----------------------------------*/

.connect-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 25px;
}

.connect-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: var(--eerie-black-1);
  border: 2px solid var(--jet);
  border-radius: 16px;
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 1;
}

.connect-link::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
  z-index: -1;
}

.connect-link img {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease, filter 0.3s ease;
  z-index: 1;
}

.connect-link span {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-500);
  transition: color 0.3s ease;
  z-index: 1;
}

/* Platform-specific styles */
.connect-link[href*="linkedin"]::before { background: #0077B5; }
.connect-link[href*="github"]::before { background: #333333; }
.connect-link[href*="kaggle"]::before { background: #20BEFF; }
.connect-link[href*="leetcode"]::before { background: #FFA116; }
.connect-link[href*="hackerrank"]::before { background: #2EC866; }
.connect-link[href*="x.com"]::before { background: #000000; }

/* Hover effects */
.connect-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border-color: transparent;
}

.connect-link:hover::before {
  transform: scaleX(1);
}

.connect-link:hover img {
  transform: scale(1.15) rotate(5deg);
  filter: brightness(0) invert(1);
}

.connect-link:hover span {
  color: var(--white-1);
}

/* Active/Focus states */
.connect-link:active {
  transform: translateY(-2px);
}

.connect-link:focus-visible {
  outline: 3px solid var(--orange-yellow-crayola);
  outline-offset: 2px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .connect-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .connect-links {
    grid-template-columns: 1fr;
  }

  .connect-link {
    padding: 15px;
  }

  .connect-link img {
    width: 28px;
    height: 28px;
  }

  .connect-link span {
    font-size: var(--fs-7);
  }
}

/* Touch device optimizations */
@media (hover: none) {
  .connect-link {
    padding: 18px;
  }

  .connect-link img {
    width: 36px;
    height: 36px;
  }

  .connect-link:active {
    transform: scale(0.98);
    background: var(--jet);
  }
}

/*-----------------------------------*\
  #PORTFOLIO AND CERTIFICATES LAYOUT
\*-----------------------------------*/

/* Enhanced spacing and alignment */
.project-item,
.certificate-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-img,
.certificate-image {
  aspect-ratio: 16/9;
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.project-content,
.certificate-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-description,
.certificate-details {
  flex: 1;
  margin: 15px 0;
}

/* Grid & card layout */
.project-list,
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 30px 0;
}

.project-item,
.certificate-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--border-gradient-onyx);
  border-radius: 16px;
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-img,
.certificate-image {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 2px solid var(--jet);
}

.project-img img,
.certificate-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Content Styles */
.project-content,
.certificate-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-description,
.certificate-details {
  flex: 1;
  margin: 15px 0;
  color: var(--light-gray);
  line-height: 1.6;
}

/* Hover Effects */
.project-item:hover,
.certificate-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-3);
}

.project-img:hover img,
.certificate-image:hover img {
  transform: scale(1.1);
}

/* Responsive Layout */
@media (max-width: 768px) {
  .project-list,
  .certificates-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin: 20px 0;
  }

  .project-item,
  .certificate-card {
    padding: 20px;
  }
}

@media (min-width: 1024px) {
  .project-list,
  .certificates-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Mobile Responsiveness Improvements */
@media (max-width: 480px) {
  /* Sidebar adjustments */
  .sidebar-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .avatar-box {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
  }

  .info-content .name {
    font-size: var(--fs-4);
  }

  .typing-container {
    justify-content: center;
  }

  /* Contact list adjustments */
  .contacts-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-info {
    max-width: 100%;
  }

  /* Service section adjustments */
  .service-item {
    padding: 15px;
  }

  .service-icon-box {
    margin-bottom: 15px;
  }

  .service-content-box {
    text-align: center;
  }

  /* Timeline adjustments */
  .timeline-list {
    margin-left: 25px;
  }

  .timeline-item:not(:last-child)::before {
    left: -25px;
  }

  .timeline-item::after {
    left: -28px;
  }

  .timeline-text {
    font-size: var(--fs-7);
  }

  /* Skills section adjustments */
  .skills-list {
    padding: 15px;
  }

  .skill .title-wrapper {
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
  }

  /* Project adjustments */
  .project-item {
    padding: 15px;
  }

  .project-title {
    font-size: var(--fs-6);
  }

  .project-category {
    font-size: var(--fs-7);
  }

  /* Certificate adjustments */
  .certificate-card {
    padding: 15px;
  }

  .certificate-title {
    font-size: var(--fs-5);
  }

  .certificate-gallery {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Contact form adjustments */
  .input-wrapper {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .form-btn {
    width: 100%;
  }

  /* Connect links adjustments */
  .connect-links {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .connect-link {
    padding: 12px;
  }
}

/* Tablet Responsiveness Improvements */
@media (min-width: 481px) and (max-width: 768px) {
  /* Sidebar adjustments */
  .sidebar {
    max-width: 100%;
  }

  .avatar-box {
    width: 120px;
    height: 120px;
  }

  /* Service section adjustments */
  .service-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  /* Timeline adjustments */
  .timeline-list {
    margin-left: 35px;
  }

  /* Project adjustments */
  .project-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Certificate adjustments */
  .certificates-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Common Responsive Adjustments */
@media (max-width: 768px) {
  /* Main content spacing */
  .main-content {
    padding: 15px;
  }

  /* Article title adjustments */
  .article-title {
    font-size: var(--fs-2);
    margin-bottom: 20px;
  }

  /* Text size adjustments */
  .about-text,
  .service-item-text,
  .timeline-text,
  .project-description {
    font-size: var(--fs-7);
    line-height: 1.5;
  }

  /* Button and link adjustments */
  .button .anchor {
    padding: 10px 25px;
  }

  /* Modal adjustments */
  .modal-content {
    width: 95%;
    padding: 15px;
  }

  .modal-image-container {
    height: auto;
    max-height: 80vh;
  }
}

/* Landscape Mode Optimizations */
@media (max-height: 500px) and (orientation: landscape) {
  .sidebar {
    position: relative;
    max-height: none;
  }

  .main-content {
    margin-top: 20px;
  }

  .modal-image-container {
    height: 70vh;
  }
}

/* High-DPI / Retina */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .avatar-box img,
  .project-img img,
  .certificate-icon img,
  .certificate-image img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Touch Device Optimizations */
@media (hover: none) {
  .service-item,
  .project-item,
  .certificate-card {
    transform: none !important;
  }

  .connect-link,
  .social-link,
  .form-btn {
    padding: 12px 20px;
  }

  .icon-box {
    min-width: 44px;
    min-height: 44px;
  }
}

/* Mobile Sidebar Styles */
@media (max-width: 580px) {
  .sidebar {
    margin-bottom: 15px;
    max-height: none;
    padding: 20px;
  }

  /* Initial sidebar view (before dropdown) */
  .sidebar-info {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 15px;
    align-items: center;
  }

  .avatar-box {
    width: 80px;
    height: 80px;
    margin: 0;
    grid-row: 1 / span 2;
  }

  .info-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .info-content .name {
    font-size: var(--fs-3);
    margin-bottom: 5px;
  }

  .typing-container {
    margin: 0;
  }

  .typing-text {
    font-size: var(--fs-6);
  }

  /* Expanded sidebar view (after dropdown) */
  .sidebar.active {
    max-height: none;
  }

  .sidebar.active .sidebar-info {
    margin-bottom: 25px;
  }

  .sidebar-info_more {
    opacity: 0;
    visibility: hidden;
    height: 0;
    transition: all var(--transition-2);
  }

  .sidebar.active .sidebar-info_more {
    opacity: 1;
    visibility: visible;
    height: auto;
  }

  /* Contact list styling */
  .contacts-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
  }

  .contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .contact-info {
    max-width: calc(100% - 46px);
  }

  .contact-title {
    color: var(--light-gray-70);
    font-size: var(--fs-8);
    text-transform: uppercase;
    margin-bottom: 2px;
  }

  .contact-info :is(.contact-link, time, address) {
    color: var(--white-2);
    font-size: var(--fs-7);
  }

  /* Social links styling */
  .social-list {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
  }

  /* Adjust dropdown button */
  .info_more-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    transform: translate(0, 0);
    padding: 10px;
    font-size: 13px;
    width: auto;
    height: auto;
  }

  .info_more-btn span {
    display: none;
  }

  .info_more-btn ion-icon {
    display: block;
    font-size: 16px;
  }

  /* Mobile Social Media Links */
  .social-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
    padding: 0;
  }

  .social-item {
    margin: 0;
  }

  .social-item .social-link {
    width: 100%;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white-2);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  /* Platform-specific background colors */
  .social-item .social-link[href*="linkedin"]::before {
    background: #0077B5;
  }

  .social-item .social-link[href*="github"]::before {
    background: #333333;
  }

  .social-item .social-link[href*="kaggle"]::before {
    background: #20BEFF;
  }

  .social-item .social-link[href*="leetcode"]::before {
    background: #FFA116;
  }

  .social-item .social-link[href*="hackerrank"]::before {
    background: #2EC866;
  }

  .social-item .social-link[href*="x.com"]::before {
    background: #000000;
  }

  .social-item .social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .social-item .social-link:hover::before {
    opacity: 1;
  }

  .social-item .social-link img {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, filter 0.3s ease;
  }

  .social-item .social-link:hover img {
    transform: scale(1.2);
    filter: brightness(0) invert(1);
  }

  /* Remove any text that might be showing */
  .social-item .social-link span {
    display: none;
  }
}

/*-----------------------------------*\
  #PORTFOLIO LANDSCAPE MODE
\*-----------------------------------*/

/* Mobile Landscape Mode */
@media (max-height: 500px) and (orientation: landscape) {
  /* Portfolio Container */
  .portfolio {
    padding: 15px;
    height: 100vh;
    overflow-y: auto;
  }

  /* Filter Section */
  .filter-select-box {
    position: sticky;
    top: 0;
    background: var(--eerie-black-2);
    padding: 10px 0;
    margin-bottom: 15px;
    z-index: 5;
  }

  .filter-select {
    max-width: 300px;
    margin: 0 auto;
    padding: 8px 12px;
  }

  .select-list {
    max-width: 300px;
    max-height: 200px;
    overflow-y: auto;
  }

  /* Project Grid */
  .project-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 5px;
  }

  .project-item {
    margin-bottom: 0;
  }

  .project-img {
    height: 150px;
    margin-bottom: 10px;
  }

  /* Project Content */
  .project-title {
    font-size: var(--fs-6);
    margin-bottom: 5px;
  }

  .project-category {
    font-size: var(--fs-7);
    margin-bottom: 8px;
  }

  .project-description {
    font-size: var(--fs-7);
    margin: 8px 0;
    max-height: 60px;
    overflow-y: auto;
  }

  /* Project Tech Tags */
  .project-tech {
    gap: 6px;
    margin-top: 10px;
  }

  .project-tech span {
    font-size: var(--fs-8);
    padding: 3px 8px;
  }

  /* Scrollbar Styles for Landscape Mode */
  .portfolio::-webkit-scrollbar,
  .project-description::-webkit-scrollbar,
  .select-list::-webkit-scrollbar {
    width: 5px;
  }

  .portfolio::-webkit-scrollbar-track,
  .project-description::-webkit-scrollbar-track,
  .select-list::-webkit-scrollbar-track {
    background: var(--eerie-black-1);
  }

  .portfolio::-webkit-scrollbar-thumb,
  .project-description::-webkit-scrollbar-thumb,
  .select-list::-webkit-scrollbar-thumb {
    background: var(--orange-yellow-crayola);
    border-radius: 5px;
  }

  /* Animation Adjustments */
  .project-item.active {
    animation: fadeInRight 0.4s ease forwards;
  }

  @keyframes fadeInRight {
    0% {
      opacity: 0;
      transform: translateX(20px);
    }
    100% {
      opacity: 1;
      transform: translateX(0);
    }
  }

  /* Project Icons */
  .project-item-icon-box {
    top: 8px;
    right: 8px;
    gap: 8px;
  }

  .project-item-icon-box button,
  .project-item-icon-box a {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }

  .project-item-icon-box ion-icon {
    font-size: 16px;
  }
}

/* Specific adjustments for different landscape heights */
@media (min-height: 300px) and (max-height: 400px) and (orientation: landscape) {
  .project-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .project-img {
    height: 120px;
  }

  .project-description {
    max-height: 40px;
  }
}

@media (min-height: 400px) and (max-height: 500px) and (orientation: landscape) {
  .project-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-img {
    height: 140px;
  }

  .project-description {
    max-height: 50px;
  }
}

/* Touch Device Optimizations for Landscape */
@media (hover: none) and (orientation: landscape) {
  .project-item-icon-box {
    opacity: 1;
    transform: translateY(0);
  }

  .project-item-icon-box button,
  .project-item-icon-box a {
    background: rgba(0, 0, 0, 0.7);
  }

  .project-description {
    -webkit-overflow-scrolling: touch;
  }

  .select-item button {
    padding: 10px 15px;
  }
}

/*-----------------------------------*\
  #MOBILE LANDSCAPE MODE
\*-----------------------------------*/

@media (max-height: 500px) and (orientation: landscape) {
  /* Main Layout */
  .main-content {
    margin: 0;
    padding: 10px;
    height: 100vh;
    overflow-y: auto;
  }

  /* Article Container */
  article {
    margin: 0;
    padding: 15px;
    height: calc(100vh - 20px);
    overflow-y: auto;
  }

  /* Article Title */
  .article-title {
    position: sticky;
    top: 0;
    background: var(--eerie-black-2);
    padding: 10px 0;
    margin: 0;
    z-index: 5;
  }

  /* Navbar Adjustments */
  .navbar {
    position: fixed;
    top: 10px;
    right: 10px;
    bottom: auto;
    width: auto;
    border-radius: 12px;
    background: var(--eerie-black-2);
    padding: 5px 10px;
  }

  .navbar-list {
    display: flex;
    gap: 10px;
  }

  .navbar-link {
    padding: 8px 12px;
    font-size: var(--fs-7);
  }

  /* Portfolio Section */
  .portfolio {
    height: calc(100vh - 20px);
    overflow-y: auto;
    padding: 0;
  }

  /* Filter Section */
  .filter-select-box {
    position: sticky;
    top: 0;
    background: var(--eerie-black-2);
    padding: 10px;
    margin: 0 0 10px 0;
    z-index: 5;
  }

  .filter-select {
    max-width: 200px;
    margin: 0 auto;
    padding: 8px;
    font-size: var(--fs-7);
  }

  .select-list {
    max-width: 200px;
    max-height: 150px;
    overflow-y: auto;
  }

  /* Project Grid */
  .project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    padding: 0 5px;
    margin: 0;
  }

  /* Project Card */
  .project-item {
    margin: 0;
    padding: 12px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
  }

  .project-img {
    height: 120px;
    margin-bottom: 8px;
  }

  .project-title {
    font-size: var(--fs-7);
    margin-bottom: 4px;
  }

  .project-category {
    font-size: var(--fs-8);
    margin-bottom: 6px;
  }

  .project-description {
    font-size: var(--fs-8);
    margin: 6px 0;
    max-height: 50px;
    overflow-y: auto;
  }

  /* Project Tech Tags */
  .project-tech {
    gap: 4px;
    margin-top: 8px;
  }

  .project-tech span {
    font-size: var(--fs-8);
    padding: 2px 6px;
  }

  /* Project Icons */
  .project-item-icon-box {
    top: 5px;
    right: 5px;
    gap: 5px;
  }

  .project-item-icon-box button,
  .project-item-icon-box a {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
  }

  .project-item-icon-box ion-icon {
    font-size: 14px;
  }

  /* Scrollbars */
  .portfolio::-webkit-scrollbar,
  .project-description::-webkit-scrollbar,
  .select-list::-webkit-scrollbar {
    width: 4px;
    height: 4px;
  }

  .portfolio::-webkit-scrollbar-track,
  .project-description::-webkit-scrollbar-track,
  .select-list::-webkit-scrollbar-track {
    background: var(--eerie-black-1);
  }

  .portfolio::-webkit-scrollbar-thumb,
  .project-description::-webkit-scrollbar-thumb,
  .select-list::-webkit-scrollbar-thumb {
    background: var(--orange-yellow-crayola);
    border-radius: 4px;
  }

}

/* Height-specific Adjustments */
@media (min-height: 300px) and (max-height: 400px) and (orientation: landscape) {
  .project-list {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .project-img {
    height: 100px;
  }

  .project-description {
    max-height: 40px;
  }

  .project-tech span {
    padding: 1px 4px;
  }
}

@media (min-height: 401px) and (max-height: 500px) and (orientation: landscape) {
  .project-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .project-img {
    height: 130px;
  }

  .project-description {
    max-height: 60px;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (orientation: landscape) {
  .project-item-icon-box {
    opacity: 1;
    transform: none;
  }

  .project-item-icon-box button,
  .project-item-icon-box a {
    background: rgba(0, 0, 0, 0.7);
  }

  .project-description {
    -webkit-overflow-scrolling: touch;
  }

  .select-item button {
    padding: 10px;
  }

  /* Touch-specific Scrolling */
  .portfolio,
  .project-description {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }

  /* Larger Touch Targets */
  .filter-select,
  .select-item button {
    min-height: 36px;
  }

  .project-item-icon-box button,
  .project-item-icon-box a {
    min-width: 36px;
    min-height: 36px;
  }
}

/* Prevent Text Selection During Touch */
@media (orientation: landscape) {
  .project-title,
  .project-category,
  .project-description {
    -webkit-user-select: none;
    user-select: none;
  }

  /* Smooth Animations */
  .project-item.active {
    animation: fadeInScale 0.3s ease forwards;
  }

  @keyframes fadeInScale {
    from {
      opacity: 0;
      transform: scale(0.95);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
}

/* Prevent Body Scroll When Modal is Open */
.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/*-----------------------------------*\
  #MOBILE LANDSCAPE LAYOUT
\*-----------------------------------*/

@media (orientation: landscape) and (max-height: 500px) {
  /* Reset main layout */
  main {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  /* Navigation Bar */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: 40px;
    background: var(--eerie-black-2);
    border-radius: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    z-index: 100;
  }

  .navbar-list {
    display: flex;
    gap: 20px;
    padding: 0;
  }

  .navbar-link {
    padding: 8px 12px;
    font-size: var(--fs-7);
  }

  /* Main Content Layout */
  .main-content {
    margin-top: 40px;
    height: calc(100vh - 40px);
    width: 100%;
    display: flex;
    gap: 10px;
    padding: 10px;
    overflow: hidden;
  }

  /* Sidebar Adjustments */
  .sidebar {
    width: 280px;
    height: 100%;
    margin: 0;
    padding: 15px;
    overflow-y: auto;
    max-height: none;
    flex-shrink: 0;
  }

  /* Remove sidebar dropdown */
  .info_more-btn {
    display: none;
  }

  .sidebar-info_more {
    opacity: 1;
    visibility: visible;
    height: auto;
  }

  /* Sidebar Content Layout */
  .sidebar-info {
    flex-direction: column;
    gap: 10px;
  }

  .avatar-box {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
  }

  .info-content .name {
    font-size: var(--fs-4);
    margin-bottom: 5px;
    text-align: center;
  }

  .typing-container {
    justify-content: center;
    min-height: 20px;
  }

  .typing-text {
    font-size: var(--fs-7);
  }

  /* Contact List */
  .contacts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
  }

  .contact-item {
    min-width: 0;
    gap: 10px;
  }

  .contact-info {
    max-width: calc(100% - 35px);
  }

  .contact-title {
    font-size: var(--fs-8);
  }

  .contact-info :is(.contact-link, time, address) {
    font-size: var(--fs-8);
  }

  /* Social Links */
  .social-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 15px;
  }

  .social-item .social-link {
    width: 100%;
    height: 32px;
  }

  .social-item .social-link img {
    width: 16px;
    height: 16px;
  }

  /* Article Container */
  article {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    padding: 15px;
    margin: 0;
  }

  /* Article Title */
  .article-title {
    font-size: var(--fs-3);
    margin-bottom: 15px;
  }

  /* Portfolio Grid */
  .project-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding-right: 5px;
  }

  .project-item {
    display: flex;
    flex-direction: row;
    gap: 15px;
    padding: 12px;
    height: auto;
    min-height: 120px;
  }

  .project-img {
    width: 160px;
    height: 100px;
    margin: 0;
    flex-shrink: 0;
  }

  .project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .project-title {
    font-size: var(--fs-6);
    margin-bottom: 5px;
  }

  .project-category {
    font-size: var(--fs-8);
  }

  .project-description {
    font-size: var(--fs-7);
    margin: 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .project-tech {
    gap: 6px;
    margin-top: auto;
  }

  .project-tech span {
    font-size: var(--fs-8);
    padding: 2px 8px;
  }

  /* Scrollbar Styling */
  .sidebar::-webkit-scrollbar,
  article::-webkit-scrollbar {
    width: 4px;
  }

  .sidebar::-webkit-scrollbar-track,
  article::-webkit-scrollbar-track {
    background: var(--eerie-black-1);
  }

  .sidebar::-webkit-scrollbar-thumb,
  article::-webkit-scrollbar-thumb {
    background: var(--orange-yellow-crayola);
    border-radius: 2px;
  }

  /* Touch Optimizations */
  .sidebar,
  article {
    -webkit-overflow-scrolling: touch;
  }

  .project-item-icon-box {
    opacity: 1;
    transform: none;
    top: 8px;
    right: 8px;
  }

  .project-item-icon-box button,
  .project-item-icon-box a {
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
  }
}

/* Very Small Height Adjustments */
@media (orientation: landscape) and (max-height: 400px) {
  .navbar {
    height: 35px;
  }

  .main-content {
    margin-top: 35px;
    height: calc(100vh - 35px);
  }

  .sidebar {
    width: 250px;
  }

  .avatar-box {
    width: 60px;
    height: 60px;
  }

  .project-img {
    width: 140px;
    height: 80px;
  }

  .project-description {
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }
}

/* Prevent Text Selection */
@media (orientation: landscape) {
  .navbar-link,
  .project-title,
  .project-category,
  .project-description {
    -webkit-user-select: none;
    user-select: none;
  }
}

/*-----------------------------------*\
  #MOBILE LANDSCAPE LAYOUT STRUCTURE
\*-----------------------------------*/

@media (orientation: landscape) and (max-height: 500px) {
  /* Main Container */
  body {
    overflow: hidden;
    height: 100vh;
    width: 100vw;
  }

  main {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
  }

  /* Top Navigation Bar */
  .navbar {
    position: relative;
    width: 100%;
    height: 45px;
    background: var(--eerie-black-2);
    border-radius: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .navbar-list {
    display: flex;
    gap: 25px;
    padding: 0;
  }

  .navbar-link {
    padding: 8px 15px;
    font-size: var(--fs-7);
    font-weight: var(--fw-500);
  }

  /* Content Container */
  .main-content {
    flex: 1;
    display: flex;
    gap: 15px;
    padding: 15px;
    height: calc(100vh - 45px);
    overflow: hidden;
  }

  /* Sidebar */
  .sidebar {
    width: 280px;
    height: 100%;
    margin: 0;
    padding: 15px;
    overflow-y: auto;
    border-radius: 12px;
    background: var(--eerie-black-2);
    flex-shrink: 0;
  }

  /* Hide sidebar toggle button */
  .info_more-btn {
    display: none;
  }

  /* Show all sidebar content */
  .sidebar-info_more {
    opacity: 1;
    visibility: visible;
    height: auto;
  }

  /* Main Content Area */
  article {
    flex: 1;
    height: 100%;
    margin: 0;
    padding: 20px;
    overflow-y: auto;
    border-radius: 12px;
    background: var(--eerie-black-2);
  }

  /* Scrollbar Styling */
  .sidebar::-webkit-scrollbar,
  article::-webkit-scrollbar {
    width: 5px;
  }

  .sidebar::-webkit-scrollbar-track,
  article::-webkit-scrollbar-track {
    background: var(--eerie-black-1);
    border-radius: 3px;
  }

  .sidebar::-webkit-scrollbar-thumb,
  article::-webkit-scrollbar-thumb {
    background: var(--orange-yellow-crayola);
    border-radius: 3px;
  }

  /* Content Adjustments */
  .article-title {
    margin-bottom: 20px;
    font-size: var(--fs-3);
  }

  /* Project Grid */
  .project-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .project-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
  }

  .project-img {
    width: 150px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 8px;
  }

  /* Sidebar Content */
  .sidebar-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .avatar-box {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
  }

  .info-content .name {
    font-size: var(--fs-4);
    margin-bottom: 8px;
  }

  .contacts-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .social-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
  }
}

/* Very Small Height Adjustments */
@media (orientation: landscape) and (max-height: 400px) {
  .navbar {
    height: 40px;
  }

  .main-content {
    height: calc(100vh - 40px);
    padding: 10px;
  }

  .sidebar {
    width: 250px;
    padding: 12px;
  }

  .avatar-box {
    width: 80px;
    height: 80px;
  }

  article {
    padding: 15px;
  }

  .project-img {
    width: 120px;
    height: 80px;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (orientation: landscape) {
  .navbar-link,
  .project-item,
  .social-link {
    cursor: default;
    -webkit-tap-highlight-color: transparent;
  }

  .navbar-link:active,
  .project-item:active,
  .social-link:active {
    opacity: 0.7;
  }
}

/*-----------------------------------*\
  #LANDSCAPE MOBILE FIXES
\*-----------------------------------*/

@media (orientation: landscape) and (max-height: 500px) {
  /* Reset all container styles */
  body, html {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
  }

  main {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
  }

  /* Fixed Navigation Bar */
  .navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: var(--eerie-black-2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    border-radius: 0;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }

  .navbar-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 0;
    margin: 0;
  }

  .navbar-link {
    padding: 8px 15px;
    font-size: var(--fs-7);
    color: var(--light-gray);
  }

  .navbar-link.active {
    color: var(--orange-yellow-crayola);
  }

  /* Content Container */
  .main-content {
    display: flex;
    height: calc(100vh - 50px);
    padding: 10px;
    gap: 10px;
    overflow: hidden;
  }

  /* Sidebar */
  .sidebar {
    width: 280px;
    min-width: 280px;
    height: 100%;
    overflow-y: auto;
    padding: 15px;
    margin: 0;
    border-radius: 12px;
    background: var(--eerie-black-2);
  }

  /* Force show sidebar content */
  .sidebar-info_more {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
  }

  /* Hide sidebar toggle */
  .info_more-btn {
    display: none !important;
  }

  /* Article/Content Area */
  article {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    background: var(--eerie-black-2);
    border-radius: 12px;
    padding: 20px;
    margin: 0;
    display: none;
  }

  article.active {
    display: block;
  }

  /* Ensure content is visible */
  .about.active,
  .resume.active,
  .portfolio.active,
  .contact.active,
  .certificates-page.active {
    display: block !important;
    height: 100%;
    overflow-y: auto;
  }

  /* Scrollbars */
  .sidebar::-webkit-scrollbar,
  article::-webkit-scrollbar {
    width: 5px;
  }

  .sidebar::-webkit-scrollbar-track,
  article::-webkit-scrollbar-track {
    background: var(--eerie-black-1);
  }

  .sidebar::-webkit-scrollbar-thumb,
  article::-webkit-scrollbar-thumb {
    background: var(--orange-yellow-crayola);
    border-radius: 3px;
  }

  /* Project Grid Fixes */
  .project-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding-right: 5px;
  }

  .project-item {
    display: flex;
    flex-direction: row;
    gap: 15px;
    padding: 15px;
  }

  /* Certificates Grid Fixes */
  .certificates-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* Smaller Height Adjustments */
@media (orientation: landscape) and (max-height: 400px) {
  .navbar {
    height: 40px;
  }

  .main-content {
    height: calc(100vh - 40px);
  }

  .sidebar {
    width: 250px;
    min-width: 250px;
  }

  .avatar-box {
    width: 70px;
    height: 70px;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (orientation: landscape) {
  .navbar-link,
  .project-item,
  .social-link {
    -webkit-tap-highlight-color: transparent;
  }
  .sidebar,
  article {
    -webkit-overflow-scrolling: touch;
  }
}
