html {
    scroll-behavior: smooth;
  }  

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    background: linear-gradient(to bottom, #0a0f24, #0c0c1d);
    overflow-x: hidden;
  }
  
  .logo {
    width: 100px;
    height: auto;
  }
  
  .gradient-bg::before {
    content: "";
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #2F84D4, transparent);
    opacity: 0.2;
    border-radius: 50%;
    z-index: 0;
  }
  
  .container {
    padding: 20px 40px;
    position: relative;
    z-index: 1;
  }
  
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
  }
  
  nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
  }

  nav ul li a:hover {
    color: #2F84D4;
  }

  .hamburger {
    display: none;
    font-size: 26px;
    color: #2F84D4;
    cursor: pointer;
  }

  .mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    height: 100%;
    background-color: #0a0f24;
    z-index: 999;
    padding: 40px 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  
  .mobile-nav.show {
    display: block;
    transform: translateX(0%);
  }
  
  .mobile-nav ul {
    list-style: none;
    padding: 0;
  }
  
  .mobile-nav li {
    margin-bottom: 20px;
  }
  
  .mobile-nav a {
    color: #fff;
    font-size: 20px;
    text-decoration: none;
  }

  .close-nav {
    font-size: 28px;
    color: #fff;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
  }

  .close-button {
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
  }

  body.light-mode .close-button,
  body.light-mode .close-nav {
    color: #111;
  }
  
  body.light-mode .close-nav {
    color: #111;
  }

  .resume-nav-btn {
    padding: 8px 18px;
    background-color: transparent;
    border: 2px solid #2F84D4;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .resume-nav-btn:hover {
    background-color: #2F84D4;
    color: #000000;
  }

  #theme-toggle {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #fff;
    transition: transform 0.2s ease;
  }
  
  #theme-toggle:hover {
    transform: scale(1.2);
  }

  .theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 0;
  }
  
  .theme-toggle svg {
    width: 24px;
    height: 24px;
    display: none;
  }
  
  /* Show only relevant icon */
  body:not(.light-mode) .theme-toggle .icon-sun {
    display: inline-block;
    fill: #111;
  }
  
  body.light-mode .theme-toggle .icon-moon {
    display: inline-block;
    fill: #111;
  }
  
  .header-text {
    margin-top: 100px;
  }
  
  .header-text h1 {
    font-size: 3rem;
  }
  
  .header-text span {
    color: #2F84D4;
  }
  
  .about-flex {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .about-col-1-group {
    display: flex;
    flex-direction: column;
    align-items: center;
  }  
  
  .about-col-1 {
    max-width: 350px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7), 0 0 20px #2F84D4;
    flex: 1;
  }
  
  .about-col-1 img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
  }
  
  .about-info {
    flex: 2;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .tabbed {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
  }
  
  .tab-section {
    flex: 1;
    min-width: 250px;
  }
  
  .tab-section h3 {
    color: #2F84D4;
    margin-bottom: 10px;
  }
  
  .tab-section ul {
    padding-left: 20px;
  }
  
  .fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
  }
  
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .exp-section,
  .projects-section,
  .contact-section {
    margin-top: 50px;
  }
  
  .exp-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  }
  
  .contact-box {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  }

  .contact-left .contact-line {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 8px;
  }
  
  .contact-left .contact-line a {
    color: #ccc;
    text-decoration: none;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
  }
  
  .contact-left .contact-line a:hover {
    text-decoration: underline;
  }
  
  .contact-left,
  .contact-right {
    flex: 1 1 300px;
  }
  
  .contact-left h3 {
    margin-bottom: 20px;
    color: #2F84D4;
  }
  
  .contact-left p,
  .contact-left a {
    font-size: 15px;
    color: #ccc;
    margin-bottom: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
  }
  
  .contact-left i {
    font-size: 16px;
    padding: 10px;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-right: 12px;
    transition: transform 0.3s ease;
  }
  
  /* Specific colors */
  .contact-left .fa-envelope {
    background-color: #d93025;
    color: white;
  }
  
  .contact-left .fa-phone {
    background-color: #34a853;
    color: white;
  }
  
  .contact-left .fa-linkedin {
    background-color: #0077b5;
    color: white;
  }
  
  .contact-left .fa-github {
    background-color: #24292e;
    color: white;
  }
  
  /* Animation on hover */
  .contact-left i:hover {
    transform: scale(1.15);
  }   

  .exp-card h3 {
    color: #2F84D4;
    margin-bottom: 10px;
  }
  
  .exp-card ul {
    padding-left: 20px;
  }
  
  .project-list div {
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .project-list i {
    margin-left: 10px;
    vertical-align: middle;
  }
  
  .large-icon {
    font-size: 24px;
    color: #2F84D4;
  }
  
  .contact-details {
    margin-bottom: 20px;
  }
  
  .contact-details p {
    margin: 10px 0;
    font-size: 16px;
  }
  
  .contact-details i {
    color: #2F84D4;
    margin-right: 10px;
    font-size: 24px;
  }
  
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }
  
  .contact-form button {
    padding: 10px 20px;
    background-color: #2F84D4;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
  }

  .contact-form button:hover {
    background-color: #1d5fa6;
  }

  #scrollBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background-color: #2F84D4;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 22px;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); */
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    z-index: 9999;
  }
  
  #scrollBtn.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  
  #scrollBtn:hover {
    background-color: #1d5fa6;
    transform: translateY(-2px);
  }  

  .footer {
    background: none;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    color: #a4a4a4;
  }

  @media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        padding: 0 10px;
    }

    .hamburger {
        display: block;
    }

    #sidemenu {
        display: none;
        flex-direction: column;
        gap: 12px;
        background: rgba(0, 0, 0, 0.95);
        padding: 15px;
        position: absolute;
        right: 10px;
        top: 70px;
        border-radius: 8px;
        z-index: 100;
    }

    #sidemenu.show {
        display: flex;
    }

    .logo {
        width: 80px;
        height: auto;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-flex {
        flex-direction: column;
        gap: 20px;
    }

    .resume-nav-btn {
        padding: 6px 14px;
        font-size: 14px;
    }

    .contact-section .container {
        padding: 0 20px;
    }

    .contact-box {
        flex-direction: column;
        padding: 20px;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .contact-form input,
    .contact-form textarea {
        width: 100%;
        font-size: 1rem;
        padding: 12px;
        box-sizing: border-box;
    }

    #scrollBtn {
        bottom: 20px;
        right: 20px;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
  }

  /* Light Mode */
  body.light-mode {
    background: linear-gradient(to bottom, #f0f4f8, #dbe5ec);
    color: #111;
  }

  body.light-mode nav ul li a,
  body.light-mode .resume-nav-btn,
  body.light-mode .project-list i,
  body.light-mode .large-icon {
    color: #111 !important;
 }

  body.light-mode nav ul li a:hover {
    color: #2F84D4;
 }

  body.light-mode .hamburger {
    color: #111 !important;
  }

  body.light-mode .mobile-nav {
    background-color: #f0f4f8;
  }
  
  body.light-mode .mobile-nav a {
    color: #111;
  }

  body.light-mode .resume-nav-btn {
    border-color: #111;
  }

  body.light-mode .resume-nav-btn:hover {
    background-color: #111;
    color: #fff;
  }

  body.light-mode .about-info,
  body.light-mode .exp-card,
  body.light-mode .contact-box {
    background: rgba(255, 255, 255, 0.8);
    color: #111;
    border: 1px solid rgba(0, 0, 0, 0.1);
  }

  body.light-mode .contact-left i {
    color: #fff;
  }

  body.light-mode .contact-form input,
  body.light-mode .contact-form textarea {
    background: rgba(0, 0, 0, 0.05);
    color: #111;
    border: 1px solid rgba(0, 0, 0, 0.2);
  }

  body.light-mode .contact-form input::placeholder,
  body.light-mode .contact-form textarea::placeholder {
    color: #555;
  }