:root {
        --primary: #4d2e2e;
        --bg: #f8f9fa;
        --dark-bg: #1a1a1a;
        --text: #333;
        --light: #fff;
      }

      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: "Poppins", sans-serif;
        scroll-behavior: smooth;
      }

      body {
        background-color: var(--bg);
        color: var(--text);
        transition: background 0.4s, color 0.4s;
      }

      header {
        background: linear-gradient(135deg, var(--primary), black);
        color: white;
        text-align: center;
        padding: 3rem 1rem;
      }

      header img {
        width: 130px;
        height: 130px;
        border-radius: 50%;
        border: 4px solid white;
        margin-bottom: 1rem;
        object-fit: cover;
      }

      header h1 {
        font-size: 2.3rem;
        letter-spacing: 1px;
      }

      header p {
        font-size: 1.1rem;
        margin-top: 0.5rem;
        opacity: 0.9;
      }

      nav {
        background: var(--light);
        display: flex;
        justify-content: center;
        gap: 2rem;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        position: sticky;
        top: 0;
        z-index: 100;
      }

      nav a {
        text-decoration: none;
        color: var(--primary);
        font-weight: 600;
        transition: color 0.3s;
      }

      nav a:hover {
        color: #0056b3;
      }

      section {
        padding: 3rem 1rem;
        max-width: 1000px;
        margin: auto;
      }

      h2 {
        text-align: center;
        color: var(--primary);
        margin-bottom: 2rem;
        position: relative;
      }

      h2::after {
        content: "";
        width: 130px;
        height: 3px;
        background: var(--primary);
        display: block;
        margin: 0.5rem auto;
        border-radius: 5px;
      }

      .about p {
        text-align: center;
        font-size: 1.1rem;
        line-height: 1.8;
        color: #444;
      }

      .skills-list,
      .project-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: 2rem;
      }

      .project-link {
        text-decoration: none;
        color: inherit;
        display: block;
      }

      .project-link .card {
        cursor: pointer;
      }

      .card {
        background: white;
        border-radius: 12px;
        padding: 1.5rem;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
        transition: transform 0.3s, box-shadow 0.3s;
      }

      .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
      }

      .card h3 {
        color: var(--primary);
        margin-bottom: 0.8rem;
      }

      .contact {
        text-align: center;
      }

      .contact p {
        font-size: 1.1rem;
        margin: 0.5rem 0;
      }

      .contact a {
        color: var(--primary);
        text-decoration: none;
      }

      footer {
        text-align: center;
        background: #222;
        color: #aaa;
        padding: 1rem;
        margin-top: 3rem;
      }

      /* Dark Mode */
      body.dark {
        background: var(--dark-bg);
        color: #eaeaea;
      }

      body.dark nav {
        background: #111;
      }

      body.dark .card {
        background: #222;
        color: #eee;
      }

      body.dark .about p {
        color: #ccc;
      }

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

      .social-btn {
        width: 50px;
        height: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        color: white;
        font-size: 22px;
        transition: transform 0.3s, box-shadow 0.3s;
      }

      .linkedin {
        background: #0077b5;
        text-decoration: none;
      }
      .github {
        background: #333;
        text-decoration: none;
      }
      .instagram {
        background: linear-gradient(
          45deg,
          #feda75,
          #fa7e1e,
          #d62976,
          #962fbf,
          #4f5bd5
        );
        text-decoration: none;
      }
      .youtube {
        background-color: red;
        text-decoration: none;
      }

      .twitter {
        background-color: rgb(42, 146, 187);
        text-decoration: none;
      }

      .connect {
        text-align: center;
      }

      .social-btn:hover {
        transform: scale(1.2);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
      }

      /* ===== Mobile Responsiveness Fix ===== */
      @media (max-width: 600px) {
        /* Stack navigation nicely */
        nav {
          flex-wrap: wrap;
          gap: 1rem;
        }

        /* Force single column on mobile */
        .skills-list,
        .project-list {
          grid-template-columns: 1fr;
        }

        /* Improve card spacing */
        .card {
          padding: 1.3rem;
        }

        header h1 {
          font-size: 1.7rem;
        }

        header p {
          font-size: 1rem;
        }

        .about p {
          font-size: 1rem;
        }
      }