
    :root {
      --primary-color: #0A84FF;
      --secondary-color: #1E1E1E;
      --background-color: #FFFFFF;
      --surface-color: #F5F7FA;
      --border-color: #E0E0E0;
      --highlight-color: #FF9500;
      --font-main: 'Noto Serif', serif;
    }

    body {
      font-family: var(--font-main);
      background-color: var(--background-color);
      color: var(--secondary-color);
      margin: 0;
      padding: 0;
      line-height: 1.6;
    }

    .header {
      background-color: var(--surface-color);
      border-bottom: 1px solid var(--border-color);
      padding: 1rem 2rem;
      position: sticky;
      top: 0;
      z-index: 1000;
    }

    nav.navbar {
      padding: 0;
    }

    .logo {
      font-weight: 700;
      font-size: 1.7rem;
      color: var(--primary-color);
      user-select: none;
    }

    /* Desktop nav */
    nav ul.nav {
      list-style: none;
      margin: 0;
      padding-left: 0;
      display: flex;
      align-items: center;
      gap: 1.5rem;
    }
    nav ul.nav li a.nav-link {
      color: var(--secondary-color);
      font-weight: 600;
      text-decoration: none;
      font-size: 1rem;
      transition: color 0.3s ease;
    }
    nav ul.nav li a.nav-link:hover {
      color: var(--highlight-color);
    }
    nav ul.nav li button {
      background: none;
      border: none;
      font-size: 1.25rem;
      cursor: pointer;
      color: var(--secondary-color);
      font-weight: 600;
    }
    nav ul.nav li button:hover {
      color: var(--highlight-color);
    }

    /* Mobile menu toggle button */
    .menu-toggle {
      border: none;
      background: none;
      font-size: 1.8rem;
      cursor: pointer;
      color: var(--primary-color);
    }
    .menu-toggle:focus {
      outline: none;
      box-shadow: none;
    }

    /* Offcanvas nav for mobile */
    .offcanvas-nav {
      position: fixed;
      top: 0;
      left: -260px;
      height: 100%;
      width: 260px;
      background-color: var(--surface-color);
      z-index: 1050;
      transition: left 0.35s ease;
      padding: 3rem 1.5rem 1.5rem 1.5rem;
      box-shadow: 3px 0 10px rgba(0,0,0,0.15);
      user-select: none;
    }
    .offcanvas-nav.show {
      left: 0;
    }
    .offcanvas-nav ul {
      list-style: none;
      padding-left: 0;
    }
    .offcanvas-nav ul li {
      margin-bottom: 1.3rem;
    }
    .offcanvas-nav ul li a {
      text-decoration: none;
      color: var(--secondary-color);
      font-weight: 600;
      font-size: 1.1rem;
      display: block;
      transition: color 0.3s ease;
    }
    .offcanvas-nav ul li a:hover {
      color: var(--highlight-color);
    }
    .offcanvas-nav ul li button {
      background: none;
      border: none;
      font-size: 1.25rem;
      cursor: pointer;
      color: var(--secondary-color);
      font-weight: 600;
    }
    .offcanvas-nav ul li button:hover {
      color: var(--highlight-color);
    }

    .offcanvas-backdrop {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0, 0, 0, 0.5);
      z-index: 1040;
      transition: opacity 0.3s ease;
    }
    .offcanvas-backdrop.show {
      display: block;
    }

    /* Section styles */
    .section {
      padding: 4rem 2rem;
      max-width: 1100px;
      margin: auto;
    }
    h1, h2 {
      color: var(--primary-color);
      user-select: none;
    }

    /* Resume button */
    .resume-btn {
      background-color: var(--primary-color);
      color: white !important;
      padding: 0.75rem 1.5rem;
      border: none;
      border-radius: 8px;
      font-weight: 600;
      cursor: pointer;
      text-decoration: none;
      display: inline-block;
      user-select: none;
      transition: background-color 0.3s ease;
    }
    .resume-btn:hover {
      background-color: var(--highlight-color);
      text-decoration: none;
      color: white !important;
    }

    /* Form styles */
    form {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      max-width: 600px;
      margin: auto;
    }
    input, textarea {
      padding: 0.75rem;
      border: 1px solid var(--border-color);
      border-radius: 8px;
      font-family: var(--font-main);
      font-size: 1rem;
      resize: vertical;
    }
    button[type="submit"] {
      background-color: var(--primary-color);
      color: white;
      border: none;
      border-radius: 8px;
      padding: 0.75rem;
      font-weight: 600;
      cursor: pointer;
      user-select: none;
      transition: background-color 0.3s ease;
    }
    button[type="submit"]:hover {
      background-color: var(--highlight-color);
    }

    /* Dark mode vars */
    body.dark-mode {
      --background-color: #1C1C1E;
      --secondary-color: #FFFFFF;
      --surface-color: #2C2C2E;
      --border-color: #3A3A3C;
      --highlight-color: #FF9F0A;
    }

    /* Theme panel toggle & panel */
    .theme-panel-toggle {
      position: fixed;
      top: 50%;
      left: 0;
      background-color: var(--surface-color);
      border: 1px solid var(--border-color);
      border-left: none;
      border-radius: 0 8px 8px 0;
      padding: 10px;
      z-index: 1100;
      cursor: pointer;
      user-select: none;
      transition: background-color 0.3s ease;
    }
    .theme-panel-toggle:hover {
      background-color: var(--highlight-color);
      color: white;
    }

    .theme-panel {
      position: fixed;
      top: 50%;
      left: -160px;
      transform: translateY(-50%);
      background-color: var(--surface-color);
      border: 1px solid var(--border-color);
      padding: 10px 15px;
      border-radius: 0 8px 8px 0;
      display: flex;
      flex-direction: column;
      gap: 12px;
      transition: left 0.3s ease;
      z-index: 1100;
      user-select: none;
      box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
    }
    .theme-panel.show {
      left: 0;
    }

    .theme-btn {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: 2px solid #ccc;
      cursor: pointer;
      transition: transform 0.2s ease, border-color 0.3s ease;
    }
    .theme-btn:hover {
      transform: scale(1.1);
      border-color: var(--primary-color);
    }

    /* Background animated radial pulse */
    #animated-bg {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: radial-gradient(circle at center, var(--primary-color), transparent 70%);
      animation: pulse 6s ease-in-out infinite;
      opacity: 0.05;
      z-index: 0;
      pointer-events: none;
      user-select: none;
    }
    @keyframes pulse {
      0%, 100% {
        transform: scale(1);
        opacity: 0.05;
      }
      50% {
        transform: scale(1.2);
        opacity: 0.1;
      }
    }

    main {
      position: relative;
      z-index: 1;
    }

    /* Responsive tweaks */
    @media (max-width: 991px) {
      /* Hide desktop nav */
      nav ul.nav {
        display: none;
      }
      /* Show mobile toggle */
      .menu-toggle {
        display: block;
      }
    }
    @media (min-width: 992px) {
      /* Hide mobile toggle on desktop */
      .menu-toggle {
        display: none;
      }
      /* Offcanvas nav hidden by default on desktop */
      .offcanvas-nav {
        display: none;
      }
      .offcanvas-backdrop {
        display: none !important;
      }
    }



/* welcome section css start  */
#home{
        padding: 60px 0px;

        background: #111;
}
.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: center;

    color: #fff;
    font-family: 'Noto Serif', serif;
    min-height: 350px;
    gap: 2rem;
  }

  .welcome-text {
    flex: 1;
    max-width: 600px;
  }

  .welcome-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px #0a84ff88;
  }

  .welcome-text p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #ccc;
  }

  /* Image container with running border and shadow */
  .welcome-image-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    padding: 6px; /* border thickness */
    background: linear-gradient(90deg, 
      #0a84ff, #e91e63, #4caf50, #ff5722, #9c27b0, #0a84ff);
    background-size: 600% 600%;
    animation: border-run 12s linear infinite;
    box-shadow: 0 20px 30px rgba(10, 132, 255, 0.5);
    overflow: hidden;
  }

  .welcome-image-wrapper img {
          object-position: top;
    width: 100%;
    height: 100%;
    object-fit: cover;
  border-radius: 50%;
    display: block;
    box-shadow:
      0 4px 15px rgba(0,0,0,0.6),
      inset 0 0 40px #0a84ff44;
    position: relative;
    z-index: 2;
  }

  @keyframes border-run {
    0% {
      background-position: 0% 50%;
    }
    100% {
      background-position: 600% 50%;
    }
  }


/* welcome section css end  */

/* about section start  */
 .about-section {
    background: #f0f4f8;
    padding: 4rem 1.5rem;
    font-family: 'Noto Serif', serif;
    color: #333;
    backdrop-filter: blur(8px);
  }

  .about-section .container {
    text-align: center;
  }

 

  .section-desc {
    font-size: 1.15rem;
    margin-bottom: 3rem;
    color: #555;
  }

  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 2rem;
  }

  .skill-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 25px rgba(10, 132, 255, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: default;
  }

  .skill-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(10, 132, 255, 0.35);
  }

  .skill-icon {
    font-size: 3rem;
    color: #0a84ff;
    margin-bottom: 1rem;
  }

  .skill-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
    font-weight: 700;
    color: #222;
  }

  .skill-card p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
  }

 
/* about section end  */

/* education section start  */
 .education-section {
    padding: 4rem 1rem;
    background: #e0e5ec;
    font-family: 'Noto Serif', serif;
    color: #333;
  }

 

  .section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: bold;
  }

  .edu-exp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
  }

  .column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .column-title {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: #1c1c1e;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .card {
    background: #e0e5ec;
    border-radius: 20px;
    padding: 1.5rem 1.25rem;
    box-shadow: 9px 9px 16px #b8b9be, -9px -9px 16px #ffffff;
    transition: all 0.3s ease;
  }

  .card:hover {
    transform: scale(1.02);
    box-shadow: inset 6px 6px 12px #b8b9be, inset -6px -6px 12px #ffffff;
  }

  .card h4 {
    font-size: 1.2rem;
    margin: 0 0 0.4rem;
    font-weight: 600;
    color: #0a84ff;
  }

  .card .date {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.3rem;
    display: block;
  }

  .card .org {
    font-weight: bold;
    font-size: 1rem;
    color: #222;
    margin-bottom: 0.4rem;
  }

  .card p {
    font-size: 0.95rem;
    margin: 0;
    color: #444;
  }

/* education section end  */

/* cagt boat css start  */
.chatbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-color);
  color: #fff;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.chatbot-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 300px;
  max-height: 400px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 999;
}

.chatbot-container.show {
  display: flex;
}

.chatbot-header {
  background: var(--primary-color);
  color: #fff;
  padding: 10px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 14px;
}

.chatbot-input {
  display: flex;
  border-top: 1px solid #ddd;
}

.chatbot-input input {
  flex: 1;
  border: none;
  padding: 10px;
  font-size: 14px;
}

.chatbot-input button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
}

.bot-msg, .user-msg {
  margin: 6px 0;
  padding: 8px 10px;
  border-radius: 10px;
  max-width: 80%;
  line-height: 1.4;
}

.bot-msg {
  background: #f0f0f0;
  align-self: flex-start;
}

.user-msg {
  background: var(--primary-color);
  color: white;
  align-self: flex-end;
}
#contact h2, #resume h2{
        margin-bottom: 40px;
}
#resume, #contact{
    text-align: center;
}
/* cagt boat css end  */


.projects-section {
  padding: 80px 0;
}

.project-card {
  background: var(--card-bg, #fff);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.project-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-info {
  padding: 20px;
  text-align: center;
}
