/* === BASE STYLES === */
    :root {
      --primary: #33e48c;
      --text: #ffffff;
      --glass: rgba(255, 255, 255, 0.1);
      --glass-border: rgba(255, 255, 255, 0.2);
      --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }

/*
    [data-theme="dark"] {
      --primary: #4b6cb7;
      --text: #f0f0f0;
      --glass: rgba(0, 0, 0, 0.2);
      --glass-border: rgba(255, 255, 255, 0.1);
    }

*/
[data-theme="dark"] {
  --primary: #8f94fb;               /* Soft lavender-blue highlight */
  --text: #e0e0e0;                  /* Light grey text for contrast */
  --glass: rgba(20, 20, 30, 0.6);   /* Rich, deeper dark glass */
  --glass-border: rgba(255, 255, 255, 0.05);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/*dark theme */
    body[data-theme="dark"] {

  background: linear-gradient(-45deg, #1f1c2c, #928dab, #1f1c2c);
}



    body {
      font-family: 'Poppins', sans-serif;
      background: linear-gradient(-45deg, #6e8efb, #a777e3, #4b6cb7, #6e8efb);
      background-size: 400% 400%;
      animation: gradientBG 15s ease infinite;
      color: var(--text);
      min-height: 100vh;
      margin: 0;
      padding: 20px;
    }

    @keyframes gradientBG {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }

    /* === LAYOUT === */
    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 20px;
    }

    /* === GLASSMORPHISM CARDS === */
    .glass-card {
      background: var(--glass);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid var(--glass-border);
      border-radius: 15px;
      padding: 25px;
      margin: 20px auto;
      box-shadow: var(--shadow);
      transition: transform 0.3s, opacity 0.3s;
      max-width: 800px;
    }

    /* === HERO SECTION === */
    .hero {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 90vh;
      text-align: center;
      position: relative;
      padding: 0 20px;
    }

    .hero-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1rem;
    }

    .profile-img {
      width: 200px;
      height: 200px;
      border-radius: 50%;
      object-fit: cover;
      border: 4px solid rgba(255, 255, 255, 0.3);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
      margin-bottom: 20px;
    }

    .typing-effect {
      font-size: 3.5rem;
      margin-bottom: 0.5rem;
      background: linear-gradient(90deg, #fff, #a777e3);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      overflow: hidden;
      border-right: 2px solid var(--text);
      white-space: nowrap;
      animation: typing 3s steps(30), blink-caret 0.5s step-end infinite;
    }

    @keyframes typing {
      from { width: 0 }
      to { width: 100% }
    }

    @keyframes blink-caret {
      from, to { border-color: transparent }
      50% { border-color: var(--text) }
    }

    .subtitle-container {
      height: 40px;
      overflow: hidden;
      margin: 10px 0;
    }

    .subtitle {
      font-size: 1.5rem;
      margin: 0;
      display: inline-block;
    }

    .hero-summary {
      max-width: 600px;
      margin: 1rem auto 2rem;
      line-height: 1.6;
      font-size: 1.1rem;
    }

    .hero-buttons {
      display: flex;
      gap: 15px;
      justify-content: center;
      flex-wrap: wrap;
      margin: 20px 0;
    }

    .btn {
      display: inline-block;
      padding: 10px 20px;
      background: var(--glass);
      border: 1px solid var(--glass-border);
      border-radius: 50px;
      transition: all 0.3s;
      color: var(--text);
      text-decoration: none;
      font-weight: 500;
    }

    .btn:hover {
      background: var(--text);
      color: var(--primary);
    }

    .btn-primary {
      background: rgba(255, 255, 255, 0.9);
      color: #6e8efb;
    }

    .social-links {
      display: flex;
      justify-content: center;
      gap: 15px;
      margin-top: 20px;
    }

    .social-links a {
      color: white;
      font-size: 1.3rem;
      transition: transform 0.3s;
    }

    .social-links a:hover {
      transform: translateY(-5px) scale(1.1);
    }

    /* === PARTICLES BACKGROUND === */
    #particles-js {
      position: fixed;
      width: 100%;
      height: 100%;
      z-index: -1;
    }

    /* === DARK MODE TOGGLE === */
    #dark-mode-toggle {
      position: fixed;
      top: 20px;
      right: 20px;
      background: var(--glass);
      border: 1px solid var(--glass-border);
      color: var(--text);
      width: 40px;
      height: 40px;
      border-radius: 50%;
      cursor: pointer;
      z-index: 100;
      transition: all 0.3s;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    #dark-mode-toggle:hover {
      transform: scale(1.1);
      box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    }

    /* === CERTIFICATIONS SHOWCASE === */
    .cert-carousel {
      display: flex;
      gap: 30px;
      perspective: 2000px;
      flex-wrap: wrap;
      justify-content: center;
    }

    .cert-card {
      width: 200px;
      height: 200px;
      transform-style: preserve-3d;
      transition: transform 1s;
      cursor: pointer;
    }

    .cert-card:hover {
      transform: rotateY(180deg);
    }

    .cert-front, .cert-back {
      position: absolute;
      width: 100%;
      height: 100%;
      backface-visibility: hidden;
      border-radius: 15px;
      display: grid;
      place-items: center;
    }

    .cert-front img {
      width: 100%;
      border-radius: 15px;
    }

    .cert-back {
      background: linear-gradient(135deg, #6e8efb, #a777e3);
      transform: rotateY(180deg);
      padding: 15px;
      text-align: center;
    }

    .verify-btn {
      background: white;
      color: #6e8efb;
      border: none;
      padding: 8px 15px;
      border-radius: 20px;
      cursor: pointer;
      transition: all 0.3s;
      font-weight: bold;
    }

    .verify-btn:hover {
      transform: scale(1.05);
    }

    /* === SKILLS SECTION === */
    .skill-bars {
      margin-top: 20px;
    }

    .skill {
      margin-bottom: 15px;
    }

    .skill-bar {
      background: var(--glass);
      height: 8px;
      border-radius: 4px;
      margin-top: 5px;
      overflow: hidden;
    }

    .skill-level {
      background: var(--text);
      height: 100%;
      border-radius: 4px;
      animation: fill 2s ease-out forwards;
      transition: transform 0.3s;
    }

    .skill:hover .skill-level {
      transform: scaleY(1.2);
    }

    @keyframes fill {
      from { width: 0 }
    }

    /* === EXPERIENCE SECTION === */
    .timeline {
      margin-top: 20px;
    }

    .timeline-item {
      margin-bottom: 30px;
    }

    .position {
      margin: 5px 0;
      font-weight: 500;
    }

    .date {
      opacity: 0.8;
      font-size: 0.9rem;
      margin-bottom: 10px;
    }

    .timeline ul {
      padding-left: 20px;
    }

    .timeline li {
      margin-bottom: 8px;
      line-height: 1.5;
    }

    /* === PROJECTS SECTION === */
    .projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 20px;
      margin-top: 20px;
    }

    .project-card {
      padding: 20px;
      background: rgba(255,255,255,0.05);
      border-radius: 10px;
      transition: transform 0.3s;
    }

    .project-card:hover {
      transform: translateY(-5px);
      background: rgba(255,255,255,0.1);
    }

    .project-card h3 {
      margin-top: 0;
    }

    .tech-tags {
      margin-top: 15px;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .tech-tags span {
      background: rgba(255,255,255,0.1);
      padding: 3px 10px;
      border-radius: 20px;
      font-size: 0.8rem;
    }

    /* === RESPONSIVE DESIGN === */
    @media (max-width: 768px) {
      .hero {
        padding-top: 80px;
      }
      
      .typing-effect {
        font-size: 2.5rem;
      }
      
      .subtitle {
        font-size: 1.2rem;
      }
      
      .cert-carousel {
        flex-direction: column;
        align-items: center;
      }
      
      .hero-buttons {
        flex-direction: column;
        align-items: center;
      }
      
      .projects-grid {
        grid-template-columns: 1fr;
      }
    }