:root {
      --text-color: white;
      --link-color: #4a76ee;
      --background-color: #191d20;
      --navbar-color: #191d20;
      --card-bg: rgba(255,255,255,0.02);
      --accent: #4f46e5;
      --muted: #ffffffb7;
      --glass: rgba(14, 12, 12, 0.03);
      --card-radius: 12px;
      --gap: 16px;
      --max-width: 980px;
      --text: #e6eef8;
    }
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    html {
      scroll-behavior: smooth;
      scroll-padding-top: 70px; /* height of your navbar */
    }
    
    body {
      font-family: 'Poppins', sans-serif;
      margin: 0;
      color: var(--text-color);
      background: var(--background-color);
    }    
    a {
      color: var(--text-color);
      text-decoration: none;
    }
    
/* NAVBAR STARTS HERE */
  nav {
  position: fixed; /* always fixed, never sticky */
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  height: 70px;
  width: 100%;
  
  background: linear-gradient(180deg, rgba(17,17,16,1), rgb(20,50,71));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  --text-color: #ffffff;
  box-shadow: 0 12px 40px rgba(2,6,23,0.6);
  border: 1px solid rgba(255,255,255,0.04);

  transition: all 0.4s cubic-bezier(.4, 0, .2, 1);
}
  
  nav a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 15px;
    position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease;
  }
  
  nav a:hover {
    color: #14edfde7; /* neon pink hover */
    text-shadow: 0 0 8px #14edfde7, 0 0 16px #14edfde7;
  }
  nav .right .navbarcontent span {
    padding-left: 4px;
  }
  nav .left h2 {
    color: var(--text-color);
    font-size: 30px;
    font-weight: 800;
    padding-left: 25px;
  }
  
  nav .right a {
    color: var(--muted);
    font-size: 18 px;
    margin: 0 10px;
  }
  
  nav .navbarcontent a {
    position: relative;
    display: inline-block;
    padding: 6px 10px;
    font-size: 18px;
    color: var(--text-color);
    transition: color 0.3s ease;
  }
  
  nav .navbarcontent a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 3px;
    background: #14edfde7;
    border-radius: 50px;
    transition: width 0.3s ease;
  }
  
  nav .navbarcontent a:hover::after {
    width: 60%; /* "ellipsis-like" underline */
  }
  
  nav .navbarcontent a.active {
    color: #14ecfd;
    text-shadow: 0 0 8px #14edfde7, 0 0 16px #14edfde7;
  }
  
  nav .navbarcontent a.active::after {
    width: 60%;
  }

  nav.detached {
  top: 12px;
  width: min(calc(100% - 40px), var(--max-width));
  padding: 6px 18px;
  height: 70px;
  border-radius: 30px;
  box-shadow: 0 12px 40px rgba(2,6,23,0.6);
  border: 1px solid rgba(255,255,255,0.04);

  /* slide + shrink effect */
  /* transform: translate(-50%, -10px) scale(0.96); */
  opacity: 0.96;
}
.nav-spacer {
  height: 70px; /* equal to default nav height */
}
  body.nav-detached {
    padding-top: 96px;
  }
  /* Hamburger button (hidden by default) - For mobile responsive*/
    .hamburger {
      display: none;
      font-size: 28px;
      cursor: pointer;
      color: white;
    }
    
    #menu-toggle {
      display: none; /* hide the checkbox */
    }
/* NAVIGATION BAR ENDS HERE*/

/* HOME SECTION STARTS HERE */
  .home {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    /* padding: 100px 100px 0 100px; */
    padding: 100px 80px ;
    overflow: hidden;
    scroll-margin-top: 70px; /* matches navbar height */
  }
  .home::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("images/bg.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(7px); /* adjust blur amount */
    transform: scale(1.1); /* prevents visible edges from blur */
    z-index: -1; /* keeps it behind your content */
  }


  .home .text {
    flex: 5;
    padding-top: 110px;
  }

  .home .text p {
    margin: 8px 0;
    margin-right: 40px;
    font-size: 20px;
    font-style: italic;
    justify-content: space-evenly;
    color: white;
  }

  .home .text h2 {
    font-size: 60px;
    font-weight: 900;
    color: white;
  }

  .home .text h2 .highlight {
    color: #14ecfd; /* your highlight color */
  }
  .home .text .links {
    margin: 25px 0;
    margin-bottom: 200px;
  }
  .home .text .links i {
    padding-right: 4px;
  }
  .home .text .links a {
    background: linear-gradient(180deg,rgb(17,17,16),rgba(20,50,71,0.5));
    font-size: 20px;
    font-weight: 500;
    display: inline-block;
    padding: 13px 20px;
    border: 2px solid var(rgba(10, 10, 10, 0.7));    
    border-radius: 100px;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: .1s;
  }

  .home .text .links a:hover {
    color: var(--text-color);
    border: 1.5px solid #14edfde7;
    text-shadow: 0 0 8px #14edfde7, 0 0 16px #14edfde7;
  }

  .home .image {
    flex: 2;
    display: flex;
    justify-content: right;
    padding-top: 60px;
  }

  .home .image img {
    width: 340px;
    height: 400px;
    border-radius: 10%;
  }

  .typing-container {
    display: inline-block;
    border-right: 3px solid white;
    white-space: nowrap;
    overflow: hidden;
    animation: blink 0.7s step-end infinite;
    font-family: 'Poppins', sans-serif;
    font-size: 35px;
    min-height: 45px; 
  }
  #typing {
    font-weight: bold;
  }
  @keyframes blink {
    50% { border-color: transparent; }
  }   
/* HOME SECTION ENDS HERE */
/* ABOUT SECTION */
  .about-section {
    padding: 80px 100px;
    background:  #191d20 ;
  }
  
  .about-container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .about-card {
    background: linear-gradient(180deg,rgba(17,17,16,255),rgb(20,50,71));
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 20px 48px rgba(2,6,23,0.45);
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 36px;
    align-items: start;
    height: 710px;
  }
  
  .profile-column .profile-card {
    border: 1px solid rgba(255,255,255,0.05);
    padding: 18px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 10px 24px rgba(2,6,23,0.35);
    margin-top: 20px;
  }
  .profile-img {
    width: 280px;
    height: 280px;
    border-radius: 10%;
    object-fit: cover;
    margin-bottom: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  .profile-name { text-align: center; margin: 6px 0; color: var(--text); font-size: 18px; font-weight: 800; }
  .profile-role { text-align: center; color: var(--muted); margin-bottom: 12px; text-align: center; }
  
  .cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
  }
  
  .info-card {
    display: flex;
    gap: 12px;
    align-items: center;
    background: rgba(10,10,10,0.25);
    border-radius: 10px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.03);
  }
  .info-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cfe5ff;
    font-size: 18px;
    flex-shrink: 0;
  }
  .info-body { display: flex; flex-direction: column; }
  .info-label { font-size: 14px; color: #14ecfd; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
  .info-value { font-size: 16px; color: #dbe6f8; font-weight: 300; margin-top: 4px; }
  .info-value a { color: #cfe5ff; text-decoration: none; }
  
  .profile-interests { margin-top: 14px; border-top: 1px dashed rgba(255,255,255,0.04); padding-top: 12px; }
  .profile-interests h5 { margin: 0 0 8px 0; color: var(--text); font-size: 14px; }
  .profile-interests .interests-list { color: #dbe6f8; font-size: 13px; }
  
  /* ABOUT TEXT COLUMN (right) */
  .about-text-column h2 { font-size: 40px; margin-bottom: 12px; margin-top: 40px; color: #14ecfd; }
  .about-text-column .about-text p { color: #dbe6f8; font-size: 18px; line-height: 1.6; margin-bottom: 12px; }
  .about-divider { border: none; height: 1px; background: rgba(255,255,255,0.06); margin: 18px 0; border-radius: 2px; }
  .interests-title { font-size: 20px; color: var(--text); margin-bottom: 8px; }
  /* .interests-list { color: #dbe6f8; font-size: 14px; } */
  .interests-list { display:flex; gap:8px; flex-wrap:wrap; margin-top:6px; }
  .interestss { background: linear-gradient(180deg,rgb(20,50,71), rgba(236,94,17,0.1)); border: 1px solid rgba(255,255,255,0.05); color: var(--muted); padding: 8px 10px; border-radius: 999px; font-size: 18px; font-weight: 300; box-shadow: 0 10px 24px rgba(2,6,23,0.35);}
/* ABOUT SECTION ENDS HERE */

/* WORK EXPERICEE STARTS HERE */
  .work-container {
    padding: 80px 100px;
    background: #191d20;

  }
  
  .work-title {
    text-align: center;
    font-size: 50px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #14ecfd;
  }
  .work-container p {
    margin-bottom: 40px;
  }
  
  /* EXPERIENCE CARD */
  .experience-card {
    /* background: linear-gradient(180deg,rgb(20,50,71), rgba(236,94,17,0.1)); */
    /* background: linear-gradient(180deg,rgba(17,17,16,255),rgb(20,50,71)); */
    /* border: 1px solid rgba(255,255,255,0.04); */
    background: #191d20;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(2,6,23,0.45);
  }
  
  .experience-header {
    display: flex;
    margin-bottom: 14px;
    /* background: linear-gradient(180deg,rgb(20,50,71), rgba(236,94,17,0.1)); */
  }
  
  .experience-tab {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    cursor: pointer;
    color: var(--muted);
    font-weight: 700;
    border-radius: 8px;
    font-size: 18px;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
    user-select: none;
  }
  .experience-tab i {
    padding-right: 4px;
  }
  .work-container > input[type="radio"],
  .experience-card > input[type="radio"] {
    display: none;
  }
  #xp-work:checked ~ .experience-header label[for="xp-work"],
  #xp-education:checked ~ .experience-header label[for="xp-education"],
  #xp-awards:checked ~ .experience-header label[for="xp-awards"] {
    background: linear-gradient(180deg,rgba(17,17,16,255),rgb(20,50,71));
    color:#14ecfd;
    transform: translateY(-2px);
  }
  
  .experience-body {
    padding: 6px;
  }
  
  .experience-panel {
    display: none;
    padding-bottom: 30px;
  }
  
  #xp-work:checked ~ .experience-body .panel-work {
    display: block;
  }
  
  #xp-education:checked ~ .experience-body .panel-education {
    display: block;
  }
  
  #xp-awards:checked ~ .experience-body .panel-awards {
    display: block;
  }
  
  .experience-inner {
    background: linear-gradient(180deg,rgba(17,17,16,255),rgb(20,50,71));
    border-radius: 10px;
    padding: 24px;
  }
  
  .work-card {
    background: none;
    border: none;
    padding: 5px;
    box-shadow: none;
  }
  
  .work-content {
    padding: 0;
  }
  .work-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 12px;   
  }    
  .work-info h2 {
    margin-top: 10px;
    font-size: 24px;
    color: #14ecfd;
  }
  .work-info i, .work-info span {
    margin-top: 10px;
    font-size: 18px;
    color: var(--muted);
    font-weight: 600;
  }
  .work-meta {
    text-align: right;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }   
  .work-description {
    padding-left: 18px;
  }
  .work-description li {
    padding-bottom: 5px;
  }
  .work-date, .work-location {
    margin-top: 10px;
    color: var(--muted);
  }
  .worktech-list {
    margin-top: 10px;
    display:flex; gap:8px; 
    flex-wrap:wrap; 
  }  
  .worktech { background: linear-gradient(180deg,rgb(20,50,71), rgba(236,94,17,0.1)); color: var(--muted); padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; }
  .education-list li,
  .awards-list li {
    margin-bottom: 10px;
  }
  .certifications-section { padding: 60px 0; background: linear-gradient(180deg, rgba(17,17,16,1), rgb(20,50,71)); color: #dbe6f8; }
  .cert-container { max-width: 1200px; margin: 0 auto; padding: 0 12px; }
  .cert-title { font-size: 36px; color: #14ecfd; margin-bottom: 20px; text-align: center; }
  .cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
  }
  .cert-card {
    background: linear-gradient(180deg,rgb(20,50,71), rgba(236,94,17,0.1));
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 380px;
    transition: transform .16s ease, box-shadow .16s ease;
  }
  .cert-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(2,6,23,0.5); }
  .cert-link { display: block; }
  .cert-photo { width: 100%; height: 240px; object-fit:fill; display:block; cursor: pointer; transition: transform .16s ease; }
  .cert-link:focus .cert-photo,
  .cert-link:hover .cert-photo { transform: scale(1.03); }
  .cert-name { font-size: 18px; font-weight: 800; color: #14ecfd; margin: 14px; }
  .cert-desc { margin: 0 14px 18px 14px; color: #dbe6f8; font-size: 14px; line-height: 1.45; }
  .cert-txt { color: var(--muted); margin-left: 15px; margin-bottom: 20px;}
  .cert-txt i {
    margin-right: 5px;
  }
  /* Certificate modal */
  .cert-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1400;
  }
  .cert-modal[aria-hidden="false"] { display: flex; }
  .cert-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(3,6,12,0.7);
    backdrop-filter: blur(4px);
  }
  .cert-modal-panel {
    position: relative;
    width: min(900px, 96%);
    max-width: 960px;
    background: linear-gradient(180deg, rgba(11,18,32,1), rgba(9,14,28,1));
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(2,6,23,0.7);
    z-index: 10;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  .cert-modal-close {
    position: absolute;
    right: 12px;
    top: 10px;
    background: transparent;
    color: #eaf2ff;
    border: 0;
    font-size: 28px;
    cursor: pointer;
  }
  .cert-modal-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  .cert-modal-img {
    width: 100%;
    height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    background: #071023;
  }
  .cert-modal-caption {
    color: #dbe6f8;
    font-size: 15px;
    text-align: center;
  }
/* EXPERIENCE ENDS HERE */

/* PROJECTS SECTION STARTS HERE*/
  .projects-section {
    width: 100%;
    padding: 0 150px;
    padding-top: 80px;
    padding-bottom: 150px;
    background: #191d20 ;
  }

  .projects-title {
    font-size: 50px;
    color: #14ecfd;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-align: center;
    padding-bottom: 40px;
  }

  .project-type {
    font-size: 14px;
    color: var(--type-color);
    background: var(--type-bg);
    display: inline-block;
    
    border-radius: 999px;
    font-weight: 600;
  }
  .see-more { background: transparent; border: 0; color: #14ecfd; font-weight: 700; cursor: pointer; padding: 4px 8px; font-size: 13px; }
  .project-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }    
  .project-card {
    background: linear-gradient(180deg,rgba(17,17,16,255),rgb(20,50,71));
    /* background: linear-gradient(180deg,rgb(20,50,71),rgba(17,17,16,0.2)); */
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 180ms ease, box-shadow 180ms ease;
    /* min-height: 440px; */
    height: 600px;
    cursor: pointer;
    position: relative;
  }
  .project-card:focus { outline: 3px solid rgba(79,70,229,0.18); outline-offset: 4px; }
  .project-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px #14edfd7e; }
  .project-media { 
    width: 100%; 
    height: 390px; 
    overflow: hidden; 
    background: linear-gradient(135deg, rgba(79,70,229,0.06), rgba(79,70,229,0.02)); 
    display:flex; 
    align-items:center; 
    justify-content:center; 
    position:relative; 
  }
  .slides { 
    width: 100%; 
    height: 100%;
    position: relative; 
  }
  .slide { 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    display: none; 
    position: absolute; 
    top: 0; left: 0; }
  .slide.active { 
    display: block; 
  }    
  .project-media .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(11,18,32,0.64);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 20;
    opacity: 0;
    transition: opacity 140ms ease;
  }
  .project-media .carousel-btn.prev { left: 10px; }
  .project-media .carousel-btn.next { right: 10px; }

  .project-card:hover .project-media .carousel-btn,
  .project-card:focus-within .project-media .carousel-btn {
    opacity: 1;
  }    
  .project-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
  .project-title { margin: 0; font-size: 16px; color: #14ecfd; font-weight: 700; }
  .project-desc-short { margin: 0; color: #dbe6f8; font-size: 14px; line-height: 1.4; }
  .project-desc-full { display: none; }

  .key-features { display: none; margin: 0; padding-left: 18px; color: #dbe6f8; }
  .tech-list { display:flex; gap:8px; flex-wrap:wrap; margin-top:6px; }
  .tech { background:#191d20; color: var(--muted); padding: 6px 10px; border-radius: 999px; font-size: 14px; font-weight: 600; }

  

  /* Modal */
  .modal { 
    position: fixed; 
    inset: 0; 
    display: none; 
    align-items: center; 
    justify-content: center; 
    z-index: 1400; 
  }
  .modal[aria-hidden="false"] { display: flex; }
  .modal-overlay { position: absolute; inset: 0; background: rgba(3,6,12,0.6); backdrop-filter: blur(4px); }    
  .modal-panel {
    position: relative;
    width: 97%;
    height: 90vh;
    background: linear-gradient(180deg,rgba(17,17,16,255),rgb(20,50,71));
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(2,6,23,0.7);
    overflow: hidden;
    display: flex;
    align-items: stretch;
    z-index: 10;
  }

  .modal-close { position: absolute; right: 14px; top: 10px; background: transparent; color: #dbe6f8; border: 0; font-size: 28px; cursor: pointer; z-index: 30; }    
  .modal-content { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-height: 90vh; overflow: hidden; }
  .modal-media { position: relative; background: #191d20; display:flex; align-items:center; justify-content:center; min-height: 320px; width: 790px;}
  .modal-slides { width: 100%; height: 100%; position: relative; }
  .modal-slides img { width: 100%; height: 100%; object-fit: contain; display:none; position:absolute; top:0; left:0; }
  .modal-slides img.active { display:block; }
  .modal-slides video { width: 100%; height: 100%; object-fit: contain; display:none; position:absolute; top:0; left:0; }
  .modal-slides video.active { display:block; }

  .modal-body { padding: 22px; overflow: auto; color: #dbe6f8; }
  .modal-body h4 {
    padding-bottom: 6px;
    color: #14ecfd;
  }
  .modal-title { margin: 0 0 10px 0; color: #14ecfd; }
  .modal-desc { margin: 0 0 12px 0; color: #cfe5ff; }
  .modal-features { margin: 0 0 12px 18px; color: #dbe6f8; }
  .modal-features li { margin: 6px 0; }

  .modal-tech { display:flex; gap:8px; flex-wrap:wrap; margin-top: 8px; }
  .modal-tech .tech { background: linear-gradient(180deg,rgb(20,50,71), rgba(236,94,17,0.1)); color: var(--muted); padding: 8px 10px; border-radius: 999px; font-size: 15px; }

  .carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(11,18,32,0.64); color: #fff; border: none; width: 44px; height: 44px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 22px; cursor: pointer; z-index: 20; }
  .carousel-btn.prev { left: 12px; }
  .carousel-btn.next { right: 12px; }
/* PROJECTS SECTION ENDS HERE*/

/* SKILLS SECTION STARTS HERE */
    .skills-section {
    position: relative;
    padding: 0 120px; 
    padding-bottom: 80px;
    overflow: hidden; 
    z-index: 1; 
  }
  .skills-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("images/bg.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(8px);
    transform: scale(1.1);
    z-index: -1;
  }

  .skills-title {
    color:#14ecfd;
    text-align: center;
    font-size: 50px;
    font-weight: 600;
    margin-top: 50px;
  }

  .skills-intro p {
    text-align: center;
    margin: 0 50px;
    margin-top: 10px;
    color: white;
  }
  .skills-layout {
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 24px;
    align-items: start;
  }

  .skills-text img {
    margin-top: 60px;
    height: 450px;width: 450px;
  } 

  .skills-right .skills-card {
    background: linear-gradient(180deg, rgba(25, 29, 32, 0.062), rgba(25, 29, 32, 0.700));
    border: 1px solid rgba(255, 255, 255, 0.137);
    margin-top: 90px;
    border-radius: 14px;
    box-shadow: 0 18px 36px rgba(2,6,23,0.55);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .skills-card > input[type="radio"] { display: none; }
  .skills-tabs {font-size: 14px; display: flex; gap: 6px; padding: 8px; border-radius: 10px; align-items: center; justify-content: space-between; }
  .skill-tab { flex: 1; text-align: center; padding: 10px 12px; cursor: pointer; color: var(--muted); font-weight: 700; border-radius: 10px; transition: background 160ms ease, color 160ms ease, transform 160ms ease; user-select: none; }
  #skill-web:checked ~ .skills-tabs label[for="skill-web"], #skill-prog:checked ~ .skills-tabs label[for="skill-prog"], #skill-db:checked ~ .skills-tabs label[for="skill-db"], #skill-iot:checked ~ .skills-tabs label[for="skill-iot"] { background: linear-gradient(180deg,rgba(17,17,16,255),rgb(20,50,71)); color: #14ecfd; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(127,90,240,0.06) inset; }
  .skills-panels { min-height: 240px; padding: 6px 12px 14px 12px; display: block; }
  .skill-panel { display: none; animation: fadeIn 200ms ease both; }
  .icon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 14px; align-items: center; justify-items: center; }

  .tech-icon {
    background: linear-gradient(180deg,rgba(17,17,16,255),rgb(20,50,71));
    border-radius: 12px;
    padding: 12px 10px;
    width: 100%;
    max-width: 140px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.03);
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  }
  .tech-icon:focus { outline: 3px solid rgba(79,70,229,0.12); outline-offset: 4px; }

  .tech-icon .icon {
    width: 110px;
    height: 80px;
    border-radius: 10px;
    background-size: 70%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    display: block;
    transition: transform 240ms cubic-bezier(.2,.9,.2,1), box-shadow 180ms ease;
  }
  .tech-icon .icon::after { content: ""; position: absolute; left: -40%; top: -40%; width: 180%; height: 140%; transform: rotate(-18deg); pointer-events: none; }

  .tech-icon .icon-label {
    display: block;
    margin-top: 2px;
    color:white;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    white-space: normal;
    line-height: 1.15;
  }

  .tech-icon:hover, .tech-icon:focus { transform: translateY(-8px) rotateX(8deg) scale(1.06); box-shadow: 0 26px 46px rgba(2,6,23,0.6); }

  @keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
  #skill-web:checked ~ .skills-panels .panel-web { display: block; }
  #skill-prog:checked ~ .skills-panels .panel-prog { display: block; }
  #skill-db:checked ~ .skills-panels .panel-db { display: block; }
  #skill-iot:checked ~ .skills-panels .panel-iot { display: block; }           
/* SKILLS SECTION ENDS HERE */

/* CONTACT SECTION STARTS HERE */
  .contact-section { height: 100vh; padding: 60px 100px; background: linear-gradient(180deg, rgba(17,17,16,1), rgb(20,50,71)); color: #dbe6f8; }
  .contact-container { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }        
  .contact-form-card, .contact-info-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.04);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(2,6,23,0.45);
  }
  
  .contact-form-card h2 { margin-bottom: 6px; color: var(--text); }
  .contact-form-card .muted { color: var(--muted); margin-bottom: 12px; }
  .contact-form-card label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 13px; color: #dbe6f8; }
  .contact-form-card input[type="text"], .contact-form-card input[type="email"], .contact-form-card textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(10,10,10,0.45);
    color: #eaf2ff;
    resize: vertical;
    margin-bottom: 12px;
    font-size: 14px;
  }
  .form-actions { display: flex; gap: 12px; align-items: center; }
  .btn-primary {
    background: linear-gradient(90deg, var(--accent), #7f5af0);
    color: white;
    padding: 10px 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 700;
  }
  .contact-success { font-weight: 700; }
  .contact-info-card h3 { margin-bottom: 8px; color: var(--text); }
  .contact-info-card p { margin-bottom: 8px; color: #dbe6f8; }
  .contact-info-card a { color: #9ad0ff; }
  .mini-stats { display:flex; gap:12px; margin-top: 12px; }
  .mini { background: rgba(255,255,255,0.02); padding: 8px; border-radius: 8px; text-align: center; }
  .mini-title { color: var(--muted); font-size: 12px; }
  .mini-value { color: #eaf2ff; font-weight: 700; }
/* CONTACT SECTION ENDS HERE */
     
/* ANIMATIONS STARTS HERE */
.about-section {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s ease, transform 1s ease;
}
.about-section.active {
  opacity: 1;
  transform: translateY(0);
}
.about-card {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 1s ease, transform 1s ease;
}
.about-section.active .about-card {
  opacity: 1;
  transform: translateX(0);
}
.about-text-column {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 1s ease 0.3s, transform 1s ease 0.3s;
}
.about-section.active .about-text-column {
  opacity: 1;
  transform: translateX(0);
}
.home {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s ease, transform 1s ease;
}
.home.active {
  opacity: 1;
  transform: translateY(0);
}
.home .text {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 1s ease, transform 1s ease;
}
.home.active .text {
  opacity: 1;
  transform: translateX(0);
}
.home .image {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 1s ease 0.3s, transform 1s ease 0.3s;
}
.home.active .image {
  opacity: 1;
  transform: translateX(0);
}
.workxp-section {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 1s ease, transform 1s ease;
}
.workxp-section.active {
  opacity: 1;
  transform: scale(1);
}
.projects-section {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 1s ease, transform 1s ease;
}
.projects-section.active {
  opacity: 1;
  transform: translateY(0);
}
.skills-section {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 1s ease, transform 1s ease;
}
.skills-section.active {
  opacity: 1;
  transform: translateX(0);
}
/* ANIMATIONS ENDS HERE */

/* MOBILE RESPONSIVENESS */
@media (max-width: 1070px) {
  /* --- Home Section --- */
  .home {
    padding: 80px 40px 0 40px;
    gap: 40px;
    flex-direction: column-reverse; /* stack text above image */
    align-items: center;
    text-align: center;
  }

  .home .text h2 {
    font-size: 42px;
    line-height: 1.3;
  }

  .home .text p {
    font-size: 18px;
  }

  .home .text .links a {
    font-size: 18px;
    padding: 12px 16px;
  }

  .home .image img {
    flex: 2;
    display: flex;
    justify-content: center; /* centers horizontally */
    align-items: center;   
  }

  .typing-container {
    font-size: 24px;
    min-height: 32px;
  }

  /* --- About Section --- */
  .about-section {
    padding: 60px 40px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-img {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
  }

  .about-text-column h2 {
    font-size: 32px;
  }

  .about-text-column .about-text p {
    font-size: 16px;
  }

  .interestss {
    font-size: 16px;
    padding: 8px 12px;
    margin: 6px;
    display: inline-block; /* wrap properly */
  }

  /* --- Work/Experience Section --- */
  .work-container {
    padding: 60px 40px;
  }

  .work-title {
    font-size: 34px;
  }

  .experience-tab {
    font-size: 16px;
    padding: 8px 12px;
  }

  .work-info h2 {
    font-size: 20px;
  }

  .work-info i,
  .work-info span {
    font-size: 15px;
  }

  .work-description li {
    font-size: 15px;
  }

  .worktech {
    font-size: 13px;
    padding: 6px 10px;
  }

  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .cert-photo {
    height: 250px;
  }
  .projects-section {
    padding: 0 60px;
    padding-top: 60px;
    padding-bottom: 100px;
  }

  .project-grid {
    grid-template-columns: 1fr; /* stack projects */
    gap: 30px;
  }

  .project-card {
    height: auto; /* let height adjust */
  }
  /* --- Skills Section --- */
  .skills-section {
    padding: 0 40px 60px;
  }

  .skills-title {
    font-size: 36px;
  }

  .skills-intro p {
    font-size: 15px;
    line-height: 1.6;
  }

  .skills-text img {
    height: 300px;
    width: 300px;
  }

  .skills-tabs {
    gap: 12px;
  }

  .skill-tab {
    font-size: 15px;
    padding: 10px 14px;
  }

  .icon-grid {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 12px;
  }

  .tech-icon .icon {
    width: 90px;
    height: 70px;
    background-size: 70%;
  }

  .tech-icon .icon-label {
    font-size: 13px;
  }
  nav {
      padding: 0 20px;
  }

  .home .text h2 {
      font-size: 35px;
  }

  #menu-toggle:checked ~ .right {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 60px;      
  right: 10px;
  background: linear-gradient(180deg, rgba(17,17,16,1), rgb(20,50,71));
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  gap: 10px;
  z-index: 1000;
  }

  #menu-toggle:checked ~ .right a {
  padding: 8px 12px;
  text-decoration: none;
  color: white;
  border-radius: 4px;
  transition: background 0.2s;
  }

  #menu-toggle:checked ~ .right a:hover {
  background: #191d20;
  }
  .hamburger {
  display: block; 
  }
  nav .right {
    display: none; 
    flex-direction: column; 
    background: linear-gradient(180deg, rgba(17,17,16,1), rgb(20,50,71));
    position: absolute;
    top: 70px; 
    right: 20px;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    width: 150px; 
  }
  nav .right a {
    display: block;
    padding: 10px 0;
    margin: 0;
    text-align: left; 
    font-size: 16px;
    color: white;
  }

  
  #menu-toggle:checked + .hamburger + .right {
    display: flex;
  }
  
  .modal-panel {
    flex-direction: column; /* stack media & body */
    height: auto;
    max-height: 90vh;
  }

  .modal-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 90vh;
  }

  .modal-media {
    width: 100%;
    min-height: 300px;
  }

  .modal-body {
    padding: 16px;
  }
}

  
@media (max-width: 991px) {
  
  .home {
    flex-direction: column-reverse; /* stack text above image */
    padding: 80px 30px 0 40px;
    text-align: center;
    align-items: center;
    gap: 30px;
  }

  .home .text {
    padding-top: 20px;
    flex: unset;
  }

  .home .text h2 {
    font-size: 40px;
  }

  .home .text p {
    font-size: 18px;
    margin-right: 0; /* remove forced spacing */
  }

  .home .text .links {
    margin-bottom: 60px;
  }

  .home .image {
    flex: 2;
    display: flex;
    justify-content: center; /* centers horizontally */
    align-items: center;   
  }

  .home .image img {
    width: 260px;
    height: auto;
  }

  .typing-container {
    font-size: 26px;
    min-height: 35px;
  }

  .about-section {
    padding: 60px 40px;
  }

  .about-card {
    grid-template-columns: 1fr;   /* stack columns */
    height: auto;
    gap: 24px;
  }

  .profile-img {
    width: 200px;
    height: 200px;
  }

  .about-text-column h2 {
    font-size: 32px;
    margin-top: 0;
    text-align: center;
  }

  .about-text-column .about-text p {
    font-size: 16px;
    text-align: justify;
  }

  .interests {
    text-align: center;
  }
  .interests-list {
    justify-content: center;
  }
  .work-container {
    padding: 60px 40px;
  }

  .work-title {
    font-size: 36px;
  }

  .experience-header {
    flex-direction: column;
    gap: 8px;
  }

  .experience-tab {
    font-size: 16px;
    padding: 8px 10px;
  }

  .work-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .work-info h2 {
    font-size: 20px;
  }

  .work-info i,
  .work-info span {
    font-size: 16px;
  }

  .work-meta {
    text-align: left;
    align-items: flex-start;
  }

  .work-description {
    padding-left: 14px;
  }
  .work-description li {
    font-size: 15px;
  }

  .worktech-list {
    justify-content: flex-start;
  }
  .worktech {
    font-size: 13px;
    padding: 6px 10px;
  }

  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .cert-card {
    height: auto;
  }
  .cert-photo {
    height: 200px;
  }
  .projects-section {
    padding: 0 40px;
    padding-top: 50px;
    padding-bottom: 80px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .project-card {
    height: auto;
  }
  .skills-section {
    display: flex;             /* make sure it's flex */
    flex-direction: column;    /* stack vertically */
    align-items: center;       /* center horizontally */
    justify-content: center;   /* center vertically */
    text-align: center;
    padding: 40px 20px;        /* tighter padding */
  }

  /* Completely remove image container */
  .skills-text {
    display: none !important;
  }

 .skills-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .skills-right {
    max-width: 500px;
  }

  .skills-tabs {
    justify-content: center;
  }

  .icon-grid {
    justify-content: center;
  }
  .modal-content {
    flex-direction: column; /* stack media above text */
  }

  .modal-media {
    width: 100%;
    height: 50vh; /* visible portion of screen */
    max-height: 400px; /* optional max for very tall screens */
    min-height: 200px; /* ensure it's not too small */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .modal-slides {
    width: 100%;
    height: 100%;
    position: relative; /* keep layering */
  }

  .modal-slides img,
  .modal-slides video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
  }

  .modal-slides img.active,
  .modal-slides video.active {
    display: block;
  }

  .carousel-btn {
    top: 45%; /* adjust vertically for mobile */
  }

  .modal-body {
    padding: 16px;
  }
}

/* Mobile (down to 320px) */
@media (max-width: 480px) {
  nav .left h2 {
    font-size: 23px;
 }
  .home {
    padding: 60px 20px 0 20px;
    gap: 20px;
  }

  .home .text h2 {
    font-size: 28px;
    line-height: 1.2;
  }

  .home .text p {
    font-size: 16px;
  }

  .home .text .links a {
    font-size: 16px;
    padding: 10px 14px;
  }

  .home .image img {
    width: 200px;
    height: auto;
  }

  .typing-container {
    font-size: 20px;
    min-height: 28px;
  }
  .about-section {
    padding: 40px 20px;
  }

  .profile-img {
    width: 160px;
    height: 160px;
  }

  .about-text-column h2 {
    font-size: 26px;
  }

  .about-text-column .about-text p {
    font-size: 15px;
  }

  .interestss {
    font-size: 15px;
    padding: 6px 8px;
  }
  .work-container {
    padding: 40px 20px;
  }

  .work-title {
    font-size: 28px;
  }

  .experience-tab {
    font-size: 14px;
    padding: 6px 8px;
  }

  .work-info h2 {
    font-size: 18px;
  }
  .work-info i,
  .work-info span {
    font-size: 14px;
  }

  .work-description li {
    font-size: 14px;
  }

  .worktech {
    font-size: 12px;
    padding: 5px 8px;
  }

  .cert-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .cert-photo {
    height: 180px;
  }
  .projects-section {
    padding: 0 20px;
    padding-top: 40px;
    padding-bottom: 60px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-card {
    height: auto;
  }

  .project-media {
    height: 250px; /* shrink media for mobile */
  }
  .skills-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px 50px;
  }

  .skills-text img {
    display: none;
  }

  .skills-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .skills-right {
    max-width: 100%;
  }

  .skills-tabs {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }

  .icon-grid {
    justify-content: center;
  }
   .modal-panel {
    width: 90%;
    border-radius: 8px;
  }

  .modal-media {
    min-height: 220px;
  }

  .modal-body {
    padding: 12px;
  }

  .modal-title {
    font-size: 18px;
  }

  .modal-desc, .modal-features li {
    font-size: 13px;
  }

  .modal-tech .tech {
    font-size: 12px;
    padding: 6px 8px;
  }

  .carousel-btn {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
}

/* Extra small devices (down to 320px) */
@media (max-width: 360px) {
  .home {
    padding: 50px 15px 0 15px;
  }

  .home .text h2 {
    font-size: 24px;
  }

  .home .text p {
    font-size: 14px;
  }

  .home .text .links a {
    font-size: 14px;
    padding: 8px 12px;
    margin-right: 6px;
  }

  .home .image img {
    width: 160px;
  }

  .typing-container {
    font-size: 18px;
    min-height: 24px;
  }
  .about-section {
    padding: 30px 15px;
  }

  .profile-img {
    width: 130px;
    height: 130px;
  }

  .about-text-column h2 {
    font-size: 22px;
  }

  .about-text-column .about-text p {
    font-size: 14px;
  }

  .interestss {
    font-size: 14px;
    padding: 5px 6px;
  }
  .work-container {
    padding: 30px 15px;
  }

  .work-title {
    font-size: 24px;
  }

  .experience-tab {
    font-size: 13px;
    padding: 5px 6px;
  }

  .work-info h2 {
    font-size: 16px;
  }
  .work-info i,
  .work-info span {
    font-size: 13px;
  }

  .work-description li {
    font-size: 13px;
  }

  .worktech {
    font-size: 11px;
    padding: 4px 6px;
  }

  .cert-photo {
    height: 150px;
  }
  .cert-name {
    font-size: 15px;
  }
  .projects-section {
    padding: 0 15px;
    padding-top: 30px;
    padding-bottom: 50px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .project-card {
    height: auto;
  }

  .project-media {
    height: 200px;
  }
  .skills-title {
    font-size: 26px;
  }

  .skills-intro p {
    font-size: 13px;
  }

  .skills-text img {
    height: 200px;
    width: 200px;
  }

  .skill-tab {
    font-size: 12px;
    padding: 6px;
  }

  .icon-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 per row */
    gap: 8px;
  }

  .tech-icon .icon {
    width: 70px;
    height: 50px;
  }

  .tech-icon .icon-label {
    font-size: 11px;
  }
  .modal-panel {
    width: 95%;
    border-radius: 6px;
  }

  .modal-media {
    min-height: 180px;
  }

  .modal-body {
    padding: 10px;
  }

  .modal-title {
    font-size: 16px;
  }

  .modal-desc, .modal-features li {
    font-size: 12px;
  }

  .modal-tech .tech {
    font-size: 11px;
    padding: 5px 6px;
  }

  .carousel-btn {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
}



