/* ===== Base Reset & Variables ===== */
    :root {
      --bg-dark: #1f1f1f;
      --bg-light: #f7f7f7;
      --text-primary: #222;
      --text-secondary: #555;
      --accent: #f4b400; /* golden yellow */
      --white: #ffffff;
      --border: #ddd;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
      color: var(--text-primary);
      background: var(--bg-light);
      line-height: 1.6;
    }

    /* ===== Header & Navigation ===== */
    header {
      position: sticky;
      top: 0;
      z-index: 1000;
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: var(--bg-dark);
      padding: 16px 28px;
      border-bottom: 1px solid #000;
    }

    /* Task 1: Styled name top-left */
    .logo {
      font-size: 24px;
      font-weight: 800;
      color: var(--accent);
      letter-spacing: 1.5px;
      text-transform: uppercase;
      font-family: Georgia, 'Times New Roman', serif;
    }

    /* Task 2 & 8: Navigation with Home icon and hover styling */
    nav ul {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      align-items: center;
      gap: 18px;
    }

    nav a {
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--white);
      text-decoration: none;
      font-size: 16px;
      padding: 6px 8px;
      transition: color 0.25s ease, text-decoration-color 0.25s ease, font-weight 0.25s ease;
      text-underline-offset: 3px;
      text-decoration-thickness: 2px;
    }

    nav a:hover {
      color: var(--accent);
      text-decoration: underline;
      font-weight: 700;
    }

    nav a i {
      font-size: 18px;
      line-height: 1;
    }

    /* ===== Layout ===== */
    main {
      max-width: 1100px;
      margin: 24px auto;
      padding: 0 16px;
    }

    section {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 24px;
      margin-bottom: 24px;
      box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    }

    section h2 {
      margin: 0 0 12px;
      font-size: 26px;
      border-left: 6px solid var(--accent);
      padding-left: 12px;
    }

    /* ===== Home ===== */
    #home .hero {
      display: grid;
      grid-template-columns: 1.2fr 1fr;
      gap: 24px;
      align-items: center;
    }

    #home .hero h1 {
      margin: 0;
      font-size: 32px;
    }

    #home .hero p {
      color: var(--text-secondary);
      margin: 8px 0 0;
    }

    /* ===== About Me (Task 3) ===== */
    .about-container {
      display: flex;
      align-items: center;
      gap: 20px;
      margin-top: 12px;
      flex-wrap: wrap;
    }

    .profile-img {
      width: 140px;
      height: 140px;
      object-fit: cover;
      border-radius: 50%;
      border: 3px solid var(--accent);
      background: #eee;
    }

    .about-text h3 {
      margin: 0 0 6px;
      font-size: 22px;
    }

    .about-text p {
      margin: 0;
      color: var(--text-secondary);
    }

    /* ===== Skills ===== */
    .skills-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      margin-top: 12px;
    }

    .skill-chip {
      background: #fff8e1;
      color: #7a5c00;
      border: 1px solid #ffe082;
      border-radius: 1000px;
      padding: 8px 12px;
      font-weight: 600;
      text-align: center;
    }

    /* ===== Projects (Task 5) ===== */
    .projects-container {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
      margin-top: 12px;
    }

    .project-card {
      background: var(--bg-light);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 16px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.08);
      transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    .project-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }

    .project-card h3 {
      margin: 0 0 8px;
      font-size: 20px;
    }

    .project-card p {
      color: var(--text-secondary);
      margin: 0 0 10px;
    }

    .project-card a {
      color: var(--accent);
      font-weight: 700;
      text-decoration: none;
      text-underline-offset: 3px;
    }

    .project-card a:hover {
      text-decoration: underline;
    }

    /* ===== Recommendations (Task 6, 7, 9) ===== */
    .recommendations-container {
      display: flex;
      flex-direction: column;
      gap: 16px;
      margin-top: 12px;
    }

    .recommendation-card {
      background: var(--bg-light);
      border-left: 6px solid var(--accent);
      border-radius: 8px;
      padding: 14px 16px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }

    .recommendation-card p {
      margin: 0 0 8px;
      font-style: italic;
      color: var(--text-secondary);
    }

    .recommendation-card h4 {
      margin: 0;
      text-align: right;
      font-size: 14px;
      color: var(--text-primary);
      font-weight: 700;
    }

    .add-recommendation {
      margin-top: 18px;
      background: #f1f1f1;
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 16px;
    }

    .add-recommendation h3 {
      margin: 0 0 10px;
      font-size: 18px;
    }

    .add-recommendation textarea,
    .add-recommendation input {
      width: 100%;
      padding: 10px;
      margin-bottom: 10px;
      border-radius: 6px;
      border: 1px solid #cfcfcf;
      font-size: 14px;
      background: #fff;
    }

    .add-recommendation button {
      background: var(--accent);
      color: var(--white);
      border: none;
      padding: 10px 16px;
      border-radius: 6px;
      font-weight: 700;
      cursor: pointer;
      transition: background 0.2s ease;
    }

    .add-recommendation button:hover {
      background: #d99a00;
    }

    /* ===== Footer ===== */
    footer {
      text-align: center;
      font-size: 14px;
      color: var(--text-secondary);
      padding: 24px 16px 40px;
    }

    /* ===== Responsiveness ===== */
    @media (max-width: 960px) {
      .projects-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      #home .hero { grid-template-columns: 1fr; }
    }

    @media (max-width: 640px) {
      header { padding: 12px 16px; }
      .projects-container { grid-template-columns: 1fr; }
      .skills-grid { grid-template-columns: 1fr; }
      .profile-img { width: 120px; height: 120px; }
      section { padding: 18px; }
    }