:root {
    --bg-color: #f4f4f4;
    --text-color: #c678ff;
    --color: #9f58d3;
    --accent-color: #8a2be2;
    --card-bg: #fff;
    --primary-shadow: #8a2be288;
  }

  body.dark-mode {
    --bg-color: #10001c;
    --text-color: #ffffff;
    --color: #b49ec5;
    --accent-color: #c678ff;
    --card-bg: #1a002e;
    --primary-shadow: #c678ff88;
  }

  body {
    margin: 0;
    font-family: 'Fredoka', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    scroll-behavior: smooth;
  }

  h1, h2, h3, h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
  }

  h2, h3 {
    text-align: center;
  }

  a {
    color: var(--accent-color);
    text-decoration: none;
  }

  .site-header {
    background: var(--card-bg);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 20px var(--primary-shadow);
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .logo {
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 700;
  }

  .nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
  }

  .nav-links a {
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
  }

  .nav-links a:hover {
    color: #8a2be2;
  }

  #nav-toggle {
    display: none;
  }

  .nav-toggle-label {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
  }

  .nav-toggle-label span {
    width: 25px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
    transition: 0.3s;
  }

  @media (max-width: 768px) {
    .nav-links {
      position: fixed;
      top: 70px;
      right: 0;
      background: var(--card-bg);
      height: calc(100vh - 70px);
      width: 200px;
      flex-direction: column;
      gap: 20px;
      padding: 20px;
      transform: translateX(100%);
      transition: transform 0.3s ease-in-out;
      box-shadow: -4px 0 20px var(--primary-shadow);
    }

    .nav-toggle-label {
      display: flex;
    }

    #nav-toggle:checked + .nav-toggle-label + .nav-links {
      transform: translateX(0);
    }
  }

  .section {
    min-height: 90vh;
    padding: 60px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .glow-box {
    box-shadow: 0 0 30px var(--primary-shadow), inset 0 0 30px var(--primary-shadow);
    border-radius: 12px;
  }

  #home {
    background: radial-gradient(135deg, #2e004f, var(--bg-color));
    min-height: 100vh;
    padding: 20px;
    padding-top: 100px;
  }

  @media (min-width: 768px) {
    #home {
      flex-direction: row;
    }
  }

  .home-left {
    padding-top: 40px;
    max-width: 50%;
    color: #eee;
  }

  .home-left h1{
    color: var(--accent-color);
  }

  @media (max-width: 767.98px) {
    .home-left {
      max-width: 100%;
      padding-top: 20px;
    }
  }

  .home-left p, .home-left ul {
    line-height: 1.6;
    margin-bottom: 15px;
  }

  .home-right {
    flex: 1;
    min-height: 100px;
    border-radius: 12px;
    margin-top: 40px;
  }

  .home-right h4, h3{
    color: var(--color);
    text-align: left;
  }

  @media (min-width: 768px) {
    .home-right {
      margin-top: 0;
      margin-left: 20px;
    }
  }

  .resume-btn,
  .resume-btn-download {
    background: linear-gradient(45deg, var(--accent-color), #8a2be2);
    color: var(--text-color);
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease;
  }

  .resume-btn {
    max-width: 150px;
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 40px;
  }

  .resume-btn:hover,
  .resume-btn-download:hover {
    background: linear-gradient(45deg, #8a2be2, var(--accent-color));
  }

  .resume-btn-download {
    display: inline-block;
    margin: 30px auto 0;
    padding: 10px 25px;
    box-shadow: 0 0 10px var(--primary-shadow);
    text-align: center;
  }

  .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }

  .project-card {
    background: var(--bg-color);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 0 15px var(--primary-shadow);
    color: var(--accent-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px var(--primary-shadow);
  }

  .project-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 0 10px var(--primary-shadow);
  }

  .project-card h3 {
    margin: 0 0 6px;
  }

  .icon-card {
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 8px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    box-shadow: 0 0 10px var(--primary-shadow);
    white-space: nowrap;
  }

  .icon-card:hover {
    transition: background-color 0.3s ease;
  }

  .icon-card i {
    font-size: 1.25rem;
  }

  .skill-bar {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    height: 20px;
    box-shadow: inset 0 0 5px var(--primary-shadow);
    max-width: 280px;
  }

  .skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #8a2be2);
    text-align: right;
    padding-right: 6px;
    font-size: 0.85rem;
    color: var(--text-color);
    font-weight: 700;
    line-height: 20px;
  }

  .skills-columns {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .skills-columns .center-flex {
    min-width: 280px;
    flex: 0 0 auto;
  }

  @media (max-width: 767.98px) {
    .skills-columns {
      flex-direction: column;
      gap: 20px;
    }
    .center-flex {
      max-width: 100%;
    }
  }

  .other-skills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
  }

   .timeline {
      position: relative;
      margin: 40px auto;
      padding: 0;
      width: 100%;
      max-width: 960px;
    }

    .timeline::before {
      content: '';
      position: absolute;
      top: 0;
      bottom: 0;
      left: 50%;
      width: 3px;
      background: var(--accent-color);
      transform: translateX(-50%);
    }

    .timeline-item {
      position: relative;
      width: 50%;
      padding: 20px 40px;
      box-sizing: border-box;
    }

    .timeline-item.left { left: -25%;}
    .timeline-item.right { left: 25%;}

    .timeline-icon {
      width: 40px;
      height: 40px;
      background: var(--accent-color);
      color: white;
      border-radius: 50%;
      text-align: center;
      line-height: 40px;
      font-size: 20px;
      position: absolute;
      top: 15px;
    }

    .timeline-item.left .timeline-icon { right: -20px; }
    .timeline-item.right .timeline-icon { left: -20px; }

    .timeline-content {
      background: var(--card-bg);
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0 0 15px var(--primary-shadow);
    }

    @media (max-width: 768px) {
      .timeline::before { left: 8px; }
      .timeline-item, .timeline-item.left, .timeline-item.right {
        width: 100%;
        padding-left: 50px;
        text-align: left;
      }
      .timeline-item .timeline-icon { left: 0 !important; }
    }

  .contact-line {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    max-width: 320px;
    margin-bottom: 12px;
    font-size: 1rem;
  }

  .contact-line i {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-left: 8px;
  }

  input, textarea {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: none;
    margin-bottom: 12px;
    font-size: 1rem;
    font-family: 'Fredoka', sans-serif;
    resize: vertical;
  }

  #resume > div, #contact > div {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }

  #resume h3, #contact h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
  }

  .resume-container {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
    padding-left: 30px;
  }

  .resume-container .center-flex {
    min-width: 280px;
    flex: 0 0 auto;
  }

  .resume-download-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }

  @media (max-width: 400px) {
    .resume-container {
      gap: 20px;
    }
  }

  @media (max-width: 600px) {
    #resume h3, #contact h3 {
      justify-content: center;
    }
    .contact-line {
      justify-content: center;
      gap: 8px;
      text-align: center;
    }
    .contact-line i {
      margin-left: 4px;
    }
  }