:root {
  --bg-color: #0c0e14;
  --surface-color: rgba(255, 255, 255, 0.03);
  --accent-color: #93CB4C;
  --accent-glow: rgba(147, 203, 76, 0.3);
  --blue-accent: #4fc3f7;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --glass-border: rgba(255, 255, 255, 0.1);
  --nav-bg: rgba(12, 14, 20, 0.8);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* Glassmorphism Utility */
.glass {
  background: var(--surface-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

.glow-text {
  text-shadow: 0 0 10px var(--accent-glow);
}

.section-padding {
  padding: 80px 10% ;
}

@media screen and (max-width: 768px) {
  .section-padding {
    padding: 60px 5%;
  }
}

/* Body Scroll Lock Utility */
.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
}

/* Navbar */
  .Nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    height: 60px;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
  }
  
  .Nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    padding: 10px 20px;
    transition: var(--transition);
    border-radius: 20px;
    font-size: 15px;
  }
  
  .Nav a:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
  }
  
  .Nav a.active {
    color: var(--accent-color);
  }

  .Nav .icon {
    display: none;
  }

  /* Section */
  section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
  }

  /* Home */
  section#Home {
    background: radial-gradient(circle at 10% 20%, rgba(147, 203, 76, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(79, 195, 247, 0.05) 0%, transparent 40%);
  }

  .split {
    width: 50%;
    padding: 20px;
    z-index: 2;
  }

  div.left {
    padding-left: 10%;
  }

  h3.hi {
    color: var(--accent-color);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: -10px;
    opacity: 0;
    animation: fadeInUp 0.8s forwards 0.2s;
  }

  h3.name {
    color: var(--text-primary);
    font-size: 5.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s forwards 0.4s;
  }
  .img-overlay-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 500px;
    height: 500px;
    margin: auto;
    opacity: 0;
    animation: fadeIn 1.2s forwards 0.6s;
  }
  
  .img-overlay-wrap img {
    width: 350px;
    height: auto;
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 0 30px var(--accent-glow));
    transition: var(--transition);
  }

  .img-overlay-wrap:hover img {
    transform: scale(1.05);
  }
  
  .img-overlay-wrap svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    filter: blur(20px);
    opacity: 0.8;
  }

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

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

  @keyframes bg-pro-pic {
    0%, 100% { transform: translate(100px, 100px) scale(1); }
    50% { transform: translate(100px, 100px) scale(1.1); }
  }

  .svg1 {
    animation: float 6s ease-in-out infinite;
  }

  .svg2 {
    animation: float 8s ease-in-out infinite reverse;
  }

  @keyframes float {
    0%, 100% { transform: translate(100px, 100px) translate(0, 0); }
    50% { transform: translate(100px, 100px) translate(10px, -20px); }
  }

 /* About */
 section#About {
   background-color: var(--bg-color);
   flex-direction: column;
 }
  h3.hi_there{
    color: #93CB4C;
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.2;
    padding: 50px 50px 20px 50px;
  }
  p.Intro{
    color: #333;
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.7;
    padding-right: 50px;
    padding-left: 50px;
  }
  ul.contacts{
    list-style-type: none;
    text-align: center; 
    padding: 0;
    margin: 0;
  }
  .contacts li {
    display: inline-block;
    font-size: 20px;
    padding: 20px;
  }
  ul.left{
    color: #70B27D;
    list-style-type: none;
    text-align: justify; 
    padding: 0;
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
  }
  li.content{
    color: #000;
    font-family: 'Inter', sans-serif;
    display: inline-block;
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
  }
  h3.hi_there {
    color: var(--accent-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
  }

  p.Intro {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 800px;
    margin: auto;
    text-align: center;
    line-height: 1.8;
  }

  ul.contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
  }

  .contacts > li {
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 30px;
    transition: var(--transition);
  }

  .contacts > li:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
  }

  ul.left {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  li.content {
    color: var(--text-primary);
    font-size: 1rem;
  }

  .download_cv {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 40px;
    background: var(--accent-color);
    border-radius: 30px;
    color: var(--bg-color);
    font-weight: 700;
    transition: var(--transition);
    text-decoration: none;
    margin: 20px auto;
  }

  .download_cv:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px var(--accent-glow);
  }

  /* Skills */
  section#Skills {
    background-color: var(--bg-color);
    flex-direction: column;
    padding-top: 100px;
  }

  h1.skills_h1 {
    font-size: 3rem;
    margin-bottom: 3rem;
  }

  .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: auto;
  }

  .grid-item {
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .grid-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  }

  .skill_icon {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
  }

  p.skill_txt {
    font-size: 1rem;
    color: var(--text-secondary);
  }

  /* Reveal on scroll */
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
  }

  .reveal.active {
    opacity: 1;
    transform: translateY(0);
  }

  /* Experience & Portfolio */
  section#Experience, section#Certificates, section#Portfolio {
    flex-direction: column;
    padding: 100px 5%;
    align-items: flex-start;
  }

  section h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
  }

  /* Journey Grid */
  .journey-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    width: 100%;
    max-width: 1000px;
    margin-top: 40px;
  }

  .journey-item {
    padding: 30px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .journey-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  }

  .journey-item h3 {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-family: 'Outfit', sans-serif;
  }

  .journey-item .company {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 5px;
  }

  .journey-item .location {
    color: var(--text-secondary);
    font-size: 0.9rem;
  }
  /* Model */
  /* The Modal (background) */
  .modal {
    display: none;
    position:fixed;
    top: 50%;
    left: 50%;
    z-index: 101;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    justify-content: center;
    text-align: center;
    background: rgba(255,255,255,0.9);
    border-radius: 20px;
    box-shadow: 20px 15px 20px 0px rgb(255 255 255 / 20%);
    border-right: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    /* Let's add the overflow-y property and set it to auto */
    overflow-y: auto;
  }

  /* Modal Content/Box */
  .modal-content {
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    width: 90%; /* Could be more or less, depending on screen size */
    text-align: justify;
  }

  /* The MOdel Body */
  .modal-body{
    height: 250px;
    overflow-y: auto;
  }

  /* The Close Button */
  .python_close,.data_close,.django_close,.iot_close,
  .gcp_close,.shell_close,.sql_close,.snow_close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }

  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  } 

  /* Responsive Adjustments */
  @media screen and (max-width: 992px) {
    section {
      flex-direction: column !important;
      justify-content: center;
      text-align: center;
      padding-top: 100px;
    }

    .split {
      width: 100%;
    }

    div.left {
      padding-left: 5%;
    }

    h3.name {
      font-size: 4rem;
    }

    .img-overlay-wrap {
      width: 400px;
      height: 400px;
      margin-top: 40px;
    }

    .img-overlay-wrap img {
      width: 250px;
    }
  }

  @media screen and (max-width: 600px) {
    .Nav {
      display: flex !important;
      width: 90%;
      height: 50px;
      top: 15px;
      padding: 0 15px;
      overflow: hidden;
      z-index: 1000;
    }

    .Nav.responsive {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      max-width: none;
      border-radius: 0;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      background: rgba(12, 14, 20, 0.98);
      backdrop-filter: blur(25px);
      -webkit-backdrop-filter: blur(25px);
      transition: none;
      border: none;
    }

    .Nav a:not(.icon) {
      display: none;
    }

    .Nav.responsive a {
      display: block;
      width: 100%;
      text-align: center;
      font-size: 1.5rem;
      padding: 20px;
      opacity: 0;
      animation: fadeInUp 0.5s forwards;
    }

    .Nav.responsive a:nth-child(1) { animation-delay: 0.1s; }
    .Nav.responsive a:nth-child(2) { animation-delay: 0.2s; }
    .Nav.responsive a:nth-child(3) { animation-delay: 0.3s; }
    .Nav.responsive a:nth-child(4) { animation-delay: 0.4s; }
    .Nav.responsive a:nth-child(5) { animation-delay: 0.5s; }
    .Nav.responsive a:nth-child(6) { animation-delay: 0.6s; }

    .Nav .icon {
      display: block;
      position: absolute;
      right: 20px;
      top: 15px;
      color: var(--text-primary);
      z-index: 1001;
      font-size: 1.2rem;
    }

    .Nav.responsive .icon {
      top: 30px;
      right: 30px;
      font-size: 1.8rem;
    }

    h1.name {
      font-size: 2.8rem;
      line-height: 1.2;
    }

    .Intro {
      font-size: 1rem;
      padding: 0 10px;
    }

    .img-overlay-wrap {
      width: 260px;
      height: 260px;
      margin: 30px auto;
    }

    .img-overlay-wrap img {
      width: 160px;
    }

    .grid-container {
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
      padding: 0 10px;
    }

    .grid-item {
      padding: 15px;
    }

    .skill_icon {
      width: 40px;
      height: 40px;
    }


    .journey-grid {
      grid-template-columns: 1fr;
      gap: 15px;
    }

    
    .section-padding {
      padding: 60px 15px;
    }

    /* Fixed Contact Form on Mobile */
    .glass form {
        width: 100%;
        padding: 5px;
    }
  }

  /* Custom Scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: var(--bg-color);
  }

  ::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
  }

  /* Typed out cursor animation */
  @keyframes blink {
    from { border-color: transparent }
    to { border-color: var(--accent-color); }
  }

  .typed-out {
    border-right: .15em solid var(--accent-color);
    animation: typing 3s steps(20, end), blink .75s step-end infinite;
  }

  @keyframes typing {
    from { width: 0 }
    to { width: 100% }
  }

  .social-links a i {
    color: var(--text-secondary);
    transition: var(--transition);
  }

  .social-links a:hover i {
    color: var(--accent-color);
    transform: translateY(-3px);
  }