  :root {
      --gradient: linear-gradient(90deg, #f72585, #7209b7, #3a0ca3, #4361ee, #4cc9f0);
    }

    body {
      margin: 0;
      font-family: 'Segoe UI', sans-serif;
      background-color: #0d0d0d;
      color: #fff;
      transition: background-color 0.5s, color 0.5s;
    }

    body.light {
      background-color: #fff;
      color: #000;
    }

    nav.navbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1em 2em;
      background: inherit;
      position: sticky; 
      top: 0; 
      z-index: 1000; 
      box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1), 0 4px 6px rgba(0, 0, 0, 0.3); /* Adjust shadow for visibility in both modes */
    }

    .logo {
      font-weight: bold;
      font-size: 1.5em;
    }

    .nav-links {
      display: flex;
      gap: 1.5em;
      list-style: none;
    }

    .nav-links li {
      cursor: pointer;
      transition: color 0.3s;
    }

    .nav-links li a {
      position: relative;
      text-decoration: none;
      color: inherit;
      font-size: 1.1rem;
      transition: color 0.3s;
    }

    .nav-links li a::after {
      content: '';
      position: absolute;
      left: 0;
      bottom: -5px;
      width: 0;
      height: 2px;
      background: var(--gradient);
      transition: width 0.3s ease;
    }

    .nav-links li a:hover::after,
    .nav-links li a.active::after {
      width: 100%; 
    }

    .nav-links li a.active {
      color: #4cc9f0; 
    }

    .toggle-switch {
      width: 40px;
      height: 20px;
      border-radius: 999px;
      background: #ccc;
      position: relative;
      cursor: pointer;
    }

    .toggle-switch .circle {
      width: 16px;
      height: 16px;
      background: #fff;
      border-radius: 50%;
      position: absolute;
      top: 2px;
      left: 2px;
      transition: left 0.3s;
    }

    body.light .toggle-switch {
      background: #444;
    }

    body.light .toggle-switch .circle {
      left: 22px;
      background: #000;
    }

    .hero {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center; 
      padding-left: 20%; 
      padding-right: 20%;
      padding-top: 2em; 
      padding-bottom: 2em; 
      gap: 2em; 
      text-align: center; 
      text-align: center;
      position: relative; 
    }

    @media (min-width: 768px) {
      .hero {
        flex-direction: row;
        justify-content: space-between;
        padding-left: 20%; 
        padding-right: 20%;
        padding-top: 5em; 
        padding-bottom: 5em; 
        text-align: center; 
        gap: 2em; 
        text-align: left;
      }
    }

    .left-content {
      flex: 1;
    }

    .social-icons {
      display: flex;
      gap: 1.2em;
      margin-bottom: 1em;
    }

    .icon {
      font-size: 1.5em;
      background: var(--gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      transition: transform 0.3s;
    }

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

    h1 {
      font-size: 4rem; 
    }

    .name-gradient {
      background: var(--gradient);
      background-size: 200% auto;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: gradientMove 3s linear infinite;
    }

    @keyframes gradientMove {
      0% { background-position: 0% center; }
      100% { background-position: 200% center; }
    }

    h2 {
      margin-top: 0.3em;
      font-weight: 400;
      font-size: 1.5rem; 
    }

    .glow-btn {
      margin-top: 1em;
      padding: 0.75em 1.5em;
      font-size: 1em;
      background: transparent;
      border: 2px solid transparent;
      border-image: var(--gradient);
      border-image-slice: 1;
      color: inherit;
      cursor: pointer;
      position: relative;
      overflow: hidden;
    }

    .glow-btn::before {
      content: '';
      position: absolute;
      top: -2px; left: -2px;
      width: calc(100% + 4px);
      height: calc(100% + 4px);
      background: var(--gradient);
      z-index: -1;
      filter: blur(8px);
      opacity: 0;
      transition: opacity 0.4s ease;
    }

    .glow-btn:hover::before {
      opacity: 1;
    }

    .right-content {
      flex: 1;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-top: 2em;
      position: relative; /* Needed for the frame */
    }

    .profile-frame {
      position: relative;
      display: inline-block;
      width: 320px;
      height: 320px;
    }

    .profile-frame::before {
      content: '';
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 100%;
      border-radius: 50%;
      background: var(--gradient);
      z-index: 1;
      filter: blur(0px);
      animation: profileFramePulse 4s infinite linear;
      opacity: 0.7;
    }

    @keyframes profileFramePulse {
      0%, 100% {
        box-shadow: 0 0 0 0px #4cc9f0, 0 0 30px 10px #7209b7;
        opacity: 0.7;
      }
      50% {
        box-shadow: 0 0 0 10px #4cc9f0, 0 0 60px 30px #7209b7;
        opacity: 1;
      }
    }

    #profileImg {
      width: 300px;
      height: 300px;
      object-fit: cover;
      border-radius: 50%;
      border: 10px solid #1a1a1a;
      position: relative;
      z-index: 2;
      background: #fff;
      box-shadow: 0 4px 24px rgba(0,0,0,0.2);
      transition: border-color 0.3s;
    }

    body.light #profileImg {
      border-color: #fff;
      background: #fff;
    }

    @media (max-width: 1024px) {
      .profile-frame {
        width: 240px;
        height: 240px;
      }
      #profileImg {
        width: 220px;
        height: 220px;
        border-width: 8px;
      }
      .hero::before {
        width: 240px;
        height: 240px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
      }
    }

    @media (max-width: 768px) {
      .profile-frame {
        width: 240px;
        height: 240px;
      }
      #profileImg {
        width: 220px;
        height: 220px;
        border-width: 8px;
      }
      .hero::before {
        width: 240px;
        height: 240px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
      }
    }

    @media (max-width: 480px) {
      .profile-frame {
        width: 180px;
        height: 180px;
      }
      #profileImg {
        width: 160px;
        height: 160px;
        border-width: 6px;
      }
      .hero::before {
        width: 180px;
        height: 180px;
        top: 60%;
        left: 50%;
        transform: translate(-50%, -50%);
      }
    }

    .hero {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center; 
      padding-left: 20%; 
      padding-right: 20%;
      padding-top: 2em; 
      padding-bottom: 2em; 
      gap: 2em; 
      text-align: center; 
      text-align: center;
      position: relative; 
    }

    @media (min-width: 768px) {
      .hero {
        flex-direction: row;
        justify-content: space-between;
        padding-left: 20%; 
        padding-right: 20%;
        padding-top: 5em; 
        padding-bottom: 5em; 
        text-align: center; 
        gap: 2em; 
        text-align: left;
      }
    }

    .left-content {
      flex: 1;
    }

    .social-icons {
      display: flex;
      gap: 1.2em;
      margin-bottom: 1em;
    }

    .icon {
      font-size: 1.5em;
      background: var(--gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      transition: transform 0.3s;
    }

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

    h1 {
      font-size: 4rem; 
    }

    .name-gradient {
      background: var(--gradient);
      background-size: 200% auto;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: gradientMove 3s linear infinite;
    }

    @keyframes gradientMove {
      0% { background-position: 0% center; }
      100% { background-position: 200% center; }
    }

    h2 {
      margin-top: 0.3em;
      font-weight: 400;
      font-size: 1.5rem; 
    }

    .glow-btn {
      margin-top: 1em;
      padding: 0.75em 1.5em;
      font-size: 1em;
      background: transparent;
      border: 2px solid transparent;
      border-image: var(--gradient);
      border-image-slice: 1;
      color: inherit;
      cursor: pointer;
      position: relative;
      overflow: hidden;
    }

    .glow-btn::before {
      content: '';
      position: absolute;
      top: -2px; left: -2px;
      width: calc(100% + 4px);
      height: calc(100% + 4px);
      background: var(--gradient);
      z-index: -1;
      filter: blur(8px);
      opacity: 0;
      transition: opacity 0.4s ease;
    }

    .glow-btn:hover::before {
      opacity: 1;
    }

    .right-content {
      flex: 1;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-top: 2em;
      position: relative; /* Needed for the frame */
    }

    .profile-frame {
      position: relative;
      display: inline-block;
      width: 320px;
      height: 320px;
    }

    .profile-frame::before {
      content: '';
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 100%;
      border-radius: 50%;
      background: var(--gradient);
      z-index: 1;
      filter: blur(0px);
      animation: profileFramePulse 4s infinite linear;
      opacity: 0.7;
    }

    @keyframes profileFramePulse {
      0%, 100% {
        box-shadow: 0 0 0 0px #4cc9f0, 0 0 30px 10px #7209b7;
        opacity: 0.7;
      }
      50% {
        box-shadow: 0 0 0 10px #4cc9f0, 0 0 60px 30px #7209b7;
        opacity: 1;
      }
    }

    #profileImg {
      width: 300px;
      height: 300px;
      object-fit: cover;
      border-radius: 50%;
      border: 10px solid #1a1a1a;
      position: relative;
      z-index: 2;
      background: #fff;
      box-shadow: 0 4px 24px rgba(0,0,0,0.2);
      transition: border-color 0.3s;
    }

    body.light #profileImg {
      border-color: #fff;
      background: #fff;
    }

    @media (max-width: 1024px) {
      .profile-frame {
        width: 240px;
        height: 240px;
      }
      #profileImg {
        width: 220px;
        height: 220px;
        border-width: 8px;
      }
      .hero::before {
        width: 240px;
        height: 240px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
      }
    }

    @media (max-width: 768px) {
      .profile-frame {
        width: 240px;
        height: 240px;
      }
      #profileImg {
        width: 220px;
        height: 220px;
        border-width: 8px;
      }
      .hero::before {
        width: 240px;
        height: 240px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
      }
    }

    @media (max-width: 480px) {
      .profile-frame {
        width: 180px;
        height: 180px;
      }
      #profileImg {
        width: 160px;
        height: 160px;
        border-width: 6px;
      }
      .hero::before {
        width: 180px;
        height: 180px;
        top: 60%;
        left: 50%;
        transform: translate(-50%, -50%);
      }
    }

    @media (max-width: 768px) {
      nav.navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 1em;
      }

      .nav-links {
        flex-direction: column;
        gap: 1em;
        width: 100%;
        padding: 0;
      }

      .nav-links li {
        text-align: left;
        width: 100%;
      }

      .hero {
        flex-direction: column;
        padding: 2em 1em;
        text-align: center;
      }

      .left-content {
        margin-bottom: 2em;
      }

      .right-content img {
        width: 200px;
      }

      h1 {
        font-size: 2em;
      }

      h2 {
        font-size: 1.2em;
      }

      .glow-btn {
        font-size: 0.9em;
        padding: 0.6em 1.2em;
      }

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

    @media (max-width: 480px) {
      .toggle-switch {
        width: 30px;
        height: 15px;
      }

      .toggle-switch .circle {
        width: 12px;
        height: 12px;
        top: 1.5px;
        left: 1.5px;
      }

      body.light .toggle-switch .circle {
        left: 16px;
      }

      .right-content img {
        width: 150px;
      }

      h1 {
        font-size: 1.8em;
      }

      h2 {
        font-size: 1em;
      }

      .glow-btn {
        font-size: 0.8em;
        padding: 0.5em 1em;
      }
    }

    .hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
    }

    .hamburger span {
      width: 25px;
      height: 3px;
      background: #fff;
      transition: all 0.3s;
    }

    @media (max-width: 768px) {
      .hamburger {
        display: flex;
        position: absolute;
        top: 1em;
        right: 1em; 
      }

      .nav-links {
        display: none;
        flex-direction: column;
        gap: 1em;
        position: fixed; 
        top: 0;
        left: 0; 
        width: 70%; 
        height: 100%;
        background: #0d0d0d;
        padding: 2em 1em;
        z-index: 10; 
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5); 
        overflow-y: auto; 
      }

      .nav-links.active {
        display: flex;
      }

      .toggle-switch {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 20; 
      }
    }

    body.light .hamburger span {
      background: #000; 
    }

    body.light .nav-links {
      background: #fff; 
      color: #000; 
    }

    body.light .nav-links li {
      color: #000; 
    }

    body.light .nav-links li:hover {
      color: #555; 
    }

    /* About Section*/
    .about-container {
      display: flex;
      flex-direction: column; 
      align-items: center; 
      text-align: center;
      gap: 20px; 
      padding-left: 10%; 
      padding-right: 20%;
      padding-top: 2em; 
      padding-bottom: 2em; 
      text-align: center;
      position: relative; 
    }

    .about-img {
      width: 300px;
      animation: float 3s ease-in-out infinite; 
    }

    @keyframes float {
      0%, 100% {
        transform: translateY(0px);
        padding-left: 10%;
        padding-right: 20%;
        text-align: center;
        
      }
      50% {
        transform: translateY(-15px);
      }
    }

    .about-text h2 {
      font-size: 2.8rem; 
      background: linear-gradient(90deg, #ff0080, #7928ca);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: gradientMove 5s infinite linear;
    }

    @keyframes gradientMove {
      0% {
        background-position: 0% 50%;
      }
      100% {
        background-position: 100% 50%;
      }
    }

    .about-text p {
      font-size: 1.3rem; 
      line-height: 1.8; 
      max-width: 600px;
    }

    @media (max-width: 768px) {
      .about-container {
        flex-direction: column;
        text-align: center;
      }

      .about-img {
        width: 200px;
      }
    }

    @media (max-width: 480px) {
      .about-img {
        display: none; 
      }
    }

    @media (min-width: 1024px) {
      .about-container {
        flex-direction: row; 
        text-align: left; 
        gap: 60px; 
      }

      .about-text h2 {
        font-size: 3rem; 
      }

      .about-text p {
        font-size: 1.2rem; 
        line-height: 1.8; 
      }
    }

    .typing {
      display: inline-block;
      overflow: hidden;
      white-space: nowrap;
      border-right: 2px solid; 
      animation: typing 4s steps(12, end) infinite; 
    }

    @keyframes typing {
      0% {
        width: 0;
      }
      50%, 100% {
        width: 29ch; 
      }
    }

    /**.hero::before {
      content: '';
      position: absolute;
      width: 300px; 
      height: 300px;
      background: var(--gradient);
      border-radius: 50%;
      z-index: -1;
      top: 50%; 
      left: calc(57% + 125px); 
      transform: translate(-50%, -50%);
      animation: pulse 6s infinite ease-in-out;
    }**/

    @media (max-width: 768px) {
      .hero::before {
        width: 200px; 
        height: 200px;
        top: 50%; 
        left: 50%; 
        transform: translate(-50%, -50%);
      }
    }


    @media (max-width: 480px) {
      .hero::before {
        width: 150px; 
        height: 150px;
        top: 73%; 
        left: 50%; 
        transform: translate(-50%, -50%);
      }
    }

    .about-container::before {
      content: '';
      position: absolute;
      width: 300px; 
      height: 300px; 
      background: var(--gradient);
      border-radius: 50%;
      z-index: -1;
      top: 49%; 
      left: calc(17% + 150px); 
      transform: translate(-55%, -55%);
      /* Adjusted transform for about circle */
      filter: blur(40px); 
      animation: pulse 6s infinite ease-in-out;
    }


    @media (max-width: 768px) {
      .hero::before, .about-container::before {
        width: 200px; 
        height: 200px;
        left: 50%; 
      }
    }

    @media (max-width: 480px) {
      .hero::before, .about-container::before {
        width: 150px; 
        height: 150px;
        left: 50%; 
      }
    }

    @keyframes pulse {
      0%, 100% {
        transform: scale(1) translate(-50%, -50%);
        opacity: 0.8;
      }
      50% {
        transform: scale(1.2) translate(-50%, -50%);
        opacity: 0.4;
      }
    }
    /* Skills Section */
    .skills-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 20px;
      padding: 3em 10%; 
      background: none; 
      position: relative;
    }

    .skills-container h2 {
      font-size: 2.8rem;
      background: var(--gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: gradientMove 5s infinite linear;
    }

    .skills-container .skills-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 1.5em;
      width: 100%;
      max-width: 800px;
    }

    .skills-container .skill-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 1em;
      background: #1a1a1a; /* Dark background for cards */
      border-radius: 10px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
      transition: transform 0.3s, box-shadow 0.3s;
    }

    .skills-container .skill-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 6px 10px rgba(0, 0, 0, 0.5);
    }

    .skills-container .skill-card img {
      width: 50px;
      height: 50px;
      margin-bottom: 0.5em;
    }

    .skills-container .skill-card span {
      font-size: 1.1rem;
      color: #fff;
      font-weight: bold;
    }

    @media (max-width: 768px) {
      .skills-container h2 {
        font-size: 2rem;
      }

      .skills-container .skill-card {
        padding: 0.8em;
      }

      .skills-container .skill-card img {
        width: 40px;
        height: 40px;
      }

      .skills-container .skill-card span {
        font-size: 1rem;
      }
    }

    .portfolio-container {
      text-align: center;
      padding: 3em 10%;
      background: none;
    }

    .portfolio-container h2 {
      font-size: 2.8rem;
      background: var(--gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: gradientMove 5s infinite linear;
      margin-bottom: 2em;
    }

    .portfolio-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 2em;
    }

    .portfolio-card {
      background: #1a1a1a;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
      transition: transform 0.3s, box-shadow 0.3s;
    }

    .portfolio-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 6px 10px rgba(0, 0, 0, 0.5);
    }

    .portfolio-card img {
      width: 100%;
      height: 200px;
      object-fit: cover;
    }

    .portfolio-card-content {
      padding: 1em;
      text-align: left;
    }

    .portfolio-card-content h3 {
      font-size: 1.5rem;
      color: #fff;
      margin-bottom: 0.5em;
    }

    .portfolio-card-content p {
      font-size: 1rem;
      color: #ccc;
      margin-bottom: 1em;
    }

    .portfolio-btn {
      display: inline-block;
      padding: 0.5em 1em;
      background: var(--gradient);
      color: #fff;
      text-decoration: none;
      border-radius: 5px;
      transition: background 0.3s;
    }

    .portfolio-btn:hover {
      background: #4cc9f0;
    }

    @media (max-width: 768px) {
      .portfolio-card img {
        height: 150px;
      }

      .portfolio-card-content h3 {
        font-size: 1.2rem;
      }

      .portfolio-card-content p {
        font-size: 0.9rem;
      }
    }

    .contact-container {
      text-align: center;
      padding: 3em 10%;
      background: none;
    }

    .contact-container h2 {
      font-size: 2.8rem;
      background: var(--gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: gradientMove 5s infinite linear;
      margin-bottom: 1em;
    }

    .contact-description {
      font-size: 1.2rem;
      margin-bottom: 2em;
      color: #ccc;
    }

    .contact-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 2em;
      max-width: 800px;
      margin: 0 auto;
      padding: 0 20px; 
    }

    .contact-card {
      background: #1a1a1a;
      padding: 2em 20px; 
      border-radius: 10px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
      transition: transform 0.3s, box-shadow 0.3s;
    }

    .contact-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 6px 10px rgba(0, 0, 0, 0.5);
    }

    .contact-form {
      display: flex;
      flex-direction: column;
      gap: 1em;
    }

    .contact-form input, .contact-form textarea, .contact-btn {
      width: 100%;
      padding: 0.8em; 
      border: 1px solid #ccc;
      border-radius: 5px;
      font-size: 1rem;
      box-sizing: border-box; 
      transition: box-shadow 0.3s, transform 0.3s;
    }

    .contact-form input:focus, .contact-form textarea:focus {
      box-shadow: 0 0 10px var(--gradient);
      transform: scale(1.02);
      outline: none;
    }

    .contact-btn {
      background: var(--gradient);
      color: #fff;
      border: none;
      cursor: pointer;
      font-size: 1rem;
      transition: background 0.3s, transform 0.3s;
    }

    .contact-btn:hover {
      background: #4cc9f0;
      transform: scale(1.05);
    }

    .thank-you-message {
      text-align: center;
      animation: fadeIn 1s ease-in-out;
    }

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

    .footer-container {
      background: #181828;
      color: #fff;
      padding: 3em 1em 1em 1em;
      border-top: 2px solid #4cc9f0;
      box-shadow: 0 -2px 16px 0 rgba(76,201,240,0.08);
      margin-top: 3em;
      font-size: 1rem;
    }
    .footer-main {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 2em;
      max-width: 1200px;
      margin: 0 auto 1.5em auto;
    }
    .footer-col {
      flex: 1 1 180px;
      min-width: 180px;
      margin-bottom: 1.5em;
    }
    .footer-logo {
      font-size: 1.5em;
      font-weight: bold;
      margin-bottom: 0.5em;
      background: var(--gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      color: transparent;
    }
    .footer-tagline {
      color: #b3b3b3;
      font-size: 1em;
      margin-bottom: 1.2em;
    }
    .footer-newsletter input[type="email"] {
      padding: 0.5em 1em;
      border-radius: 4px;
      border: none;
      margin-right: 0.5em;
      font-size: 1em;
      width: 60%;
      max-width: 180px;
    }
    .footer-newsletter button {
      padding: 0.5em 1.2em;
      border-radius: 4px;
      border: none;
      background: var(--gradient);
      color: #fff;
      font-weight: 600;
      cursor: pointer;
      transition: opacity 0.2s;
    }
    .footer-newsletter button:hover {
      opacity: 0.8;
    }
    .footer-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .footer-list li {
      margin-bottom: 0.6em;
    }
    .footer-list a {
      color: #b3b3b3;
      text-decoration: none;
      transition: color 0.2s;
      font-weight: 500;
    }
    .footer-list a:hover {
      color: #4cc9f0;
      background: var(--gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      color: transparent;
    }
    .footer-contact {
      color: #b3b3b3;
      font-size: 1em;
      margin-bottom: 1em;
    }
    .footer-contact a {
      color: #b3b3b3;
      text-decoration: none;
      background: none;
      -webkit-background-clip: initial;
      -webkit-text-fill-color: initial;
      background-clip: initial;
      font-weight: 500;
      transition: color 0.2s;
    }
    .footer-contact a:hover {
      color: #4cc9f0;
      text-decoration: underline;
    }
    .footer-social {
      display: flex;
      gap: 0.7em;
      margin-top: 0.5em;
    }
    .footer-social a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: #23233a;
      color: #fff;
      font-size: 1.2em;
      transition: background 0.2s, color 0.2s;
      text-decoration: none;
    }
    .footer-social a:hover {
      background: var(--gradient);
      color: #fff;
      text-decoration: none !important;
    }
    .footer-bottom {
      border-top: 1px solid #333;
      margin-top: 1.5em;
      padding-top: 1em;
      text-align: center;
      color: #b3b3b3;
      font-size: 0.95em;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 1em;
    }
    .footer-bottom-links {
      display: flex;
      gap: 1.2em;
      flex-wrap: wrap;
      justify-content: center;
    }
    .footer-bottom-links a {
      color: #b3b3b3;
      text-decoration: none;
      font-size: 0.97em;
      transition: color 0.2s;
    }
    .footer-bottom-links a:hover {
      color: #4cc9f0;
      background: var(--gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      color: transparent;
    }
    @media (max-width: 900px) {
      .footer-main {
        flex-direction: column;
        gap: 2em;
        align-items: flex-start;
      }
      .footer-col {
        min-width: 0;
        width: 100%;
      }
      .footer-bottom {
        flex-direction: column;
        gap: 0.7em;
      }
    }

    .skill-card, .contact-card, .portfolio-card {
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4); /* Add consistent shadow */
      transition: transform 0.3s, box-shadow 0.3s;
    }

    .skill-card:hover, .contact-card:hover, .portfolio-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6); /* Enhance shadow on hover */
    }

    @media (max-width: 768px) {
      #toggleMode {
        position: fixed;
        bottom: 60px; /* Slightly up from the bottom */
        left: 20px;
        z-index: 1000;
        animation: shakeUpDown 2s infinite ease-in-out; /* Smooth up-down shaking animation */
      }
    }

    @keyframes shakeUpDown {
      0%, 100% {
        transform: translateY(0);
      }
      50% {
        transform: translateY(-5px);
      }
    }

    .blinking-underline {
      display: inline-block;
      position: relative;
    }

    .blinking-underline::after {
      content: '';
      position: absolute;
      left: 0;
      bottom: -5px;
      width: 100%;
      height: 3px;
      background: var(--gradient);
      animation: blink 1.5s infinite;
    }

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

    @media (max-width: 768px) {
      .skills-grid {
        grid-template-columns: repeat(2, 1fr); /* Display skills as a grid with 2 columns */
        gap: 1em; /* Reduce gap for smaller screens */
      }

      .about-text h2 {
        font-size: 2rem; /* Decrease heading size for mobile */
      }

      .about-text p {
        font-size: 1rem; /* Decrease paragraph size for mobile */
        line-height: 1.5; /* Adjust line height for readability */
      }
    }

    @media (max-width: 480px) {
      .skills-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 columns for mobile, forced */
      }

      .about-text h2 {
        font-size: 1.8rem; /* Further decrease heading size for very small screens */
      }

      .about-text p {
        font-size: 0.9rem; /* Further decrease paragraph size for very small screens */
      }
    }

    .portfolio-card, .skill-card, .contact-card {
      box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1), 0 4px 6px rgba(0, 0, 0, 0.3); /* Add shadow similar to navigation */
      transition: transform 0.3s, box-shadow 0.3s;
    }

    .portfolio-card:hover, .skill-card:hover, .contact-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 6px 10px rgba(255, 255, 255, 0.2), 0 6px 10px rgba(0, 0, 0, 0.5); /* Enhance shadow on hover */
    }
    @media (max-width: 360px) {
      body {
        font-size: 20px; /* Adjust base font size for smaller screens */
      }

      nav.navbar {
        padding: 0.5em 1em; /* Reduce padding for the navbar */
      }

      .hero h1 {
        font-size: 2em; /* Reduce font size for the main heading */
      }

      .hero h2 {
        font-size: 1.2em; /* Reduce font size for the subheading */
      }

      .glow-btn {
        font-size: 0.8em; /* Adjust button font size */
        padding: 0.5em 1em; /* Adjust button padding */
      }

      .social-icons .icon {
        font-size: 1.2em; /* Reduce icon size */
      }

      .about-container {
        padding: 1em 5%; /* Reduce padding for the about section */
      }

      .about-img {
        width: 150px; /* Reduce image size */
      }

      .about-text h2 {
        font-size: 1.5rem; /* Adjust heading size */
      }

      .about-text p {
        font-size: 0.9rem; /* Adjust paragraph size */
      }

      .skills-container h2,
      .portfolio-container h2,
      .contact-container h2 {
        font-size: 1.5rem; /* Adjust section heading size */
      }

      .skills-container .skill-card img {
        width: 30px; /* Reduce skill icon size */
        height: 30px;
      }

      .skills-container .skill-card span {
        font-size: 0.9rem; /* Adjust skill text size */
      }

      .portfolio-card img {
        height: 120px; /* Reduce portfolio image height */
      }

      .portfolio-card-content h3 {
        font-size: 1rem; /* Adjust project title size */
      }

      .portfolio-card-content p {
        font-size: 0.8rem; /* Adjust project description size */
      }

      .contact-form input,
      .contact-form textarea,
      .contact-btn {
        font-size: 0.9rem; /* Adjust form input and button font size */
        padding: 0.6em; /* Adjust padding */
      }

      .footer-container {
        font-size: 0.8rem; /* Adjust footer font size */
      }

      .contact-card {
        margin: 0 auto; /* Center the form box horizontally */
        display: flex;
        flex-direction: column;
        align-items: center; /* Center content inside the form box */
        justify-content: center; /* Center content vertically */
        padding: 1.5em; /* Adjust padding for better spacing */
        width: 90%; /* Adjust width to fit smaller screens */
      }

      .contact-grid {
        display: flex; /* Use flexbox for centering */
        justify-content: center; /* Center horizontally */
        align-items: center; /* Center vertically */
        height: 100%; /* Ensure it takes full height of the section */
      }

      .contact-card {
        margin: 0; /* Remove any extra margin */
        width: 90%; /* Adjust width to fit smaller screens */
        max-width: 320px; /* Limit maximum width */
      }
    }
    @media (max-width: 360px) {
      body {
        font-size: 18px; /* Slightly smaller base font size */
      }

      nav.navbar {
        padding: 0.5em 1em; /* Reduce padding for the navbar */
      }

      .hero h1 {
        font-size: 1.8em; /* Reduce font size for the main heading */
      }

      .hero h2 {
        font-size: 1em; /* Reduce font size for the subheading */
      }

      .glow-btn {
        font-size: 0.8em; /* Adjust button font size */
        padding: 0.5em 1em; /* Adjust button padding */
      }

      .social-icons .icon {
        font-size: 1.2em; /* Reduce icon size */
      }

      .about-container {
        padding: 1em 5%; /* Reduce padding for the about section */
      }

      .about-img {
        width: 120px; /* Reduce image size */
      }

      .about-text h2 {
        font-size: 1.4rem; /* Adjust heading size */
      }

      .about-text p {
        font-size: 0.85rem; /* Adjust paragraph size */
        line-height: 1.4; /* Adjust line height */
      }

      .skills-container h2,
      .portfolio-container h2,
      .contact-container h2 {
        font-size: 1.4rem; /* Adjust section heading size */
      }

      .skills-container .skill-card img {
        width: 25px; /* Reduce skill icon size */
        height: 25px;
      }

      .skills-container .skill-card span {
        font-size: 0.8rem; /* Adjust skill text size */
      }

      .portfolio-card img {
        height: 100px; /* Reduce portfolio image height */
      }

      .portfolio-card-content h3 {
        font-size: 0.9rem; /* Adjust project title size */
      }

      .portfolio-card-content p {
        font-size: 0.75rem; /* Adjust project description size */
      }

      .contact-form input,
      .contact-form textarea,
      .contact-btn {
        font-size: 0.8rem; /* Adjust form input and button font size */
        padding: 0.5em; /* Adjust padding */
      }

      .footer-container {
        font-size: 0.7rem; /* Adjust footer font size */
      }

      .contact-card {
        margin: 0 auto; /* Center the form box horizontally */
        display: flex;
        flex-direction: column;
        align-items: center; /* Center content inside the form box */
        justify-content: center; /* Center content vertically */
        padding: 1em; /* Adjust padding for better spacing */
        width: 95%; /* Adjust width to fit smaller screens */
      }
    }

    @media (max-width: 375px) {
      .hero h1 {
        font-size: 2em; /* Slightly larger heading */
      }

      .hero h2 {
        font-size: 1.1em; /* Slightly larger subheading */
      }

      .about-img {
        width: 140px; /* Slightly larger image */
      }

      .about-text h2 {
        font-size: 1.6rem; /* Slightly larger heading */
      }

      .about-text p {
        font-size: 0.9rem; /* Slightly larger paragraph */
      }

      .skills-container .skill-card img {
        width: 30px; /* Slightly larger skill icon */
        height: 30px;
      }

      .portfolio-card img {
        height: 120px; /* Slightly larger portfolio image */
      }
    }

    @media (max-width: 414px) {
      .hero h1 {
        font-size: 2.2em; /* Larger heading for wider screens */
      }

      .hero h2 {
        font-size: 1.2em; /* Larger subheading */
      }

      .about-img {
        width: 160px; /* Larger image */
      }

      .about-text h2 {
        font-size: 1.8rem; /* Larger heading */
      }

      .about-text p {
        font-size: 1rem; /* Larger paragraph */
      }

      .skills-container .skill-card img {
        width: 35px; /* Larger skill icon */
        height: 35px;
      }

      .portfolio-card img {
        height: 150px; /* Larger portfolio image */
      }
    }

    /* Glowing Gradient Scrollbar Styling */
::-webkit-scrollbar {
  width: 20px;
  background: #181828;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #f72585 0%, #7209b7 25%, #3a0ca3 50%, #4361ee 75%, #4cc9f0 100%);
  border-radius: 8px;
  border: 2px solid #181828;
  box-shadow: 0 0 16px 4px #f04ca1, 0 0 32px 8px #7209b7;
  background-size: 200% 200%;
  background-position: 0% 50%;
  transition: background-position 0.6s;
}

::-webkit-scrollbar-thumb:hover {
  background-position: 100% 50%;
  box-shadow: 0 0 32px 12px #f72585, 0 0 48px 16px #4361ee;
}

::-webkit-scrollbar-track {
  background: #181828;
  border-radius: 8px;
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: #4cc9f0 #181828;
}

    /* Mobile-first responsive footer */
    .footer-main {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.2em;
      width: 100%;
    }
    .footer-row-center {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
      margin-bottom: 0.2em;
    }
    .footer-row-links {
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: flex-start;
      width: 100%;
      gap: 0.5em;
    }
    .footer-col-info, .footer-col-links {
      width: 50%;
      min-width: 0;
      margin: 0;
      padding: 0;
      text-align: left;
    }
    .footer-col-subscribe, .footer-col-contact {
      width: 100%;
      margin: 0;
      padding: 0;
      text-align: center;
    }
    .footer-list, .footer-list li {
      margin: 0;
      padding: 0;
    }
    .footer-col h4 {
      margin: 0.2em 0 0.2em 0;
      padding: 0;
    }
    .footer-newsletter form {
      flex-direction: column;
      gap: 0.3em;
      align-items: stretch;
    }
    .footer-newsletter input[type="email"], .footer-newsletter button {
      width: 100%;
      max-width: 100%;
      margin-right: 0;
    }
    .footer-bottom {
      font-size: 0.9em;
      gap: 0.3em;
      flex-direction: column;
      align-items: center;
      margin-top: 0.3em;
      padding-top: 0.3em;
    }
    .footer-bottom-links {
      gap: 0.3em;
      justify-content: center;
    }
    /* Tablet: 601px–900px */
    @media (min-width: 601px) and (max-width: 900px) {
      .footer-main {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 1em;
        justify-content: center;
      }
      .footer-row-center, .footer-row-links {
        flex-direction: column;
        width: 25%;
        min-width: 200px;
        align-items: flex-start;
        margin-bottom: 0;
      }
      .footer-col-info, .footer-col-links {
        width: 100%;
        text-align: left;
      }
      .footer-col-subscribe, .footer-col-contact {
        width: 100%;
        text-align: left;
      }
    }
    /* Laptop/Desktop: >900px */
    @media (min-width: 901px) {
      .footer-main {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: flex-start;
        gap: 2em;
        justify-content: space-between;
        max-width: 1200px;
        margin: 0 auto 1.5em auto;
      }
      .footer-row-center, .footer-row-links {
        flex-direction: column;
        width: auto;
        min-width: 200px;
        align-items: flex-start;
        margin-bottom: 0;
      }
      .footer-col-info, .footer-col-links {
        width: 100%;
        text-align: left;
      }
      .footer-col-subscribe, .footer-col-contact {
        width: 100%;
        text-align: left;
      }
    }
    .modern-footer {
      background: #181828;
      color: #fff;
      box-shadow: 0 4px 24px rgba(0,0,0,0.18);
      padding: 0;
      margin-top: 3em;
      font-size: 1rem;
      width: 100%;
    }
    .footer-inner {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      max-width: 1200px;
      margin: 0 auto;
      padding: 1.2em 2em;
      gap: 1.5em;
    }
    .footer-section {
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    .footer-brand {
      flex: 1 1 180px;
      font-weight: bold;
      font-size: 1.2em;
      letter-spacing: 1px;
    }
    .footer-logo {
      background: var(--gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      color: transparent;
      font-size: 1.3em;
      font-weight: bold;
    }
    .footer-nav nav {
      display: flex;
      flex-direction: row;
      gap: 1.2em;
      margin-bottom: 0.3em;
    }
    .footer-nav nav a {
      color: #b3b3b3;
      text-decoration: none;
      font-weight: 500;
      transition: color 0.2s;
    }
    .footer-nav nav a:hover {
      color: #4cc9f0;
      background: var(--gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      color: transparent;
    }
    .footer-copyright {
      color: #b3b3b3;
      font-size: 0.97em;
    }
    .footer-social-contact {
      align-items: flex-end;
      text-align: right;
      gap: 0.3em;
    }
    .footer-social-icons {
      display: flex;
      flex-direction: row;
      gap: 0.7em;
      margin-bottom: 0.2em;
      justify-content: flex-end;
    }
    .footer-social-icons a {
      color: #fff;
      font-size: 1.2em;
      background: #23233a;
      border-radius: 50%;
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s, color 0.2s;
      text-decoration: none;
    }
    .footer-social-icons a:hover {
      background: var(--gradient);
      color: #fff;
    }
    .footer-support {
      color: #b3b3b3;
      font-size: 0.97em;
      margin-top: 0.1em;
    }
    .footer-support a {
      color: #4cc9f0;
      text-decoration: underline;
    }
    /* Responsive Styles */
    @media (max-width: 900px) {
      .footer-inner {
        flex-direction: column;
        align-items: center;
        gap: 1em;
        padding: 1.2em 1em;
      }
      .footer-section {
        width: 100%;
        align-items: center;
        text-align: center;
      }
      .footer-social-contact {
        align-items: center;
        text-align: center;
      }
      .footer-nav nav {
        justify-content: center;
      }
      .footer-social-icons {
        justify-content: center;
      }
    }
    @media (max-width: 500px) {
      .footer-inner {
        padding: 0.7em 0.2em;
        gap: 0.5em;
      }
      .footer-logo {
        font-size: 1.1em;
      }
      .footer-nav nav {
        gap: 0.7em;
        font-size: 0.98em;
      }
      .footer-copyright, .footer-support {
        font-size: 0.93em;
      }
      .footer-social-icons a {
        width: 28px;
        height: 28px;
        font-size: 1em;
      }
    }