﻿/* Style Block 1 */
body {
      margin: 0;
      font-family: Arial, sans-serif;
      background-color: #1a1a2e;
      color: #fff;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    *, *::before, *::after { box-sizing: border-box; }
    img, video { max-width: 100%; height: auto; display: block; }
    nav {
      width: 100%;
      background: rgba(10, 14, 35, 0.85);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      padding: 0;
      text-align: center;
      position: sticky;
      top: 0;
      z-index: 9000;
      border-bottom: 1px solid rgba(0, 170, 255, 0.15);
      box-shadow: 0 2px 30px rgba(0, 119, 204, 0.15);
    }

    nav::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 5%;
      width: 90%;
      height: 1px;
      background: linear-gradient(90deg, transparent, #0077cc, #00aaff, #00ccff, #0077cc, transparent);
      background-size: 200% 100%;
      animation: navLineShimmer 4s linear infinite;
    }

    @keyframes navLineShimmer {
      0%   { background-position: 0% 0; }
      100% { background-position: 200% 0; }
    }

    nav ul {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      gap: 0;
    }
    nav ul li {
      display: inline-flex;
      margin: 0;
    }
    nav ul li a {
      color: #8ab8d4;
      text-decoration: none;
      font-size: 0.85rem;
      font-weight: 500;
      letter-spacing: 0.5px;
      padding: 14px 14px;
      display: inline-block;
      position: relative;
      transition: color 0.3s ease;
    }

    nav ul li a::after {
      content: '';
      position: absolute;
      bottom: 6px;
      left: 50%;
      transform: translateX(-50%) scaleX(0);
      width: 60%;
      height: 2px;
      border-radius: 2px;
      background: linear-gradient(90deg, #0077cc, #00aaff);
      transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
      transform-origin: center;
    }

    nav ul li a:hover {
      color: #00ccff;
      text-shadow: 0 0 10px rgba(0, 170, 255, 0.6);
    }

    nav ul li a:hover::after {
      transform: translateX(-50%) scaleX(1);
    }

    nav ul li a.active {
      color: #00aaff;
    }

    nav ul li a.active::after {
      transform: translateX(-50%) scaleX(1);
      background: linear-gradient(90deg, #00aaff, #00ccff);
    }

  /* Hamburger toggle (hidden on desktop/laptop, shown on mobile) */
  .nav-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 8px;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease;
  }
  .nav-toggle .bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    background: #00aaff;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav-toggle:hover .bar {
    background: #00ccff;
  }
  .nav-toggle:hover {
    transform: translateY(-50%) scale(1.1);
  }
    .section {
      width: 80%;
      margin: 10px 0;
      padding: 15px;
      background: rgba(0, 0, 0, 0.5);
      border-radius: 10px;
    }
    .section h2 {
      color: #0077cc;
      text-align: center;
    }
    .profile {
      text-align: center;
    }
    .profile h1 {
      color: #00ccff;
    }
    .profile p {
      color: #d1d1d1;
    }
    .contact-form {
      display: flex;
      flex-direction: column;
    }
    .contact-form input, .contact-form textarea {
      margin: 10px 0;
      padding: 10px;
      background: #2a2a3e;
      border: none;
      color: #fff;
    }
    .contact-form button {
      padding: 10px;
      background: linear-gradient(90deg, #0077cc, #00aaff);
      border: none;
      color: #fff;
      cursor: pointer;
    }
    .contact-info {
      text-align: center;
    }
    .contact-info a {
      color: #00aaff;
      margin: 0 10px;
    }

/* Style Block 2 */
/* Base Styles */
  #about {
    padding: 60px 0;
    background: linear-gradient(135deg, #0f0c29 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
  }

  /* Spider web canvas */
  #spider-web-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
  }
  
  .particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
  }
  
  .about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 0 30px;
    position: relative;
    z-index: 1;
  }
  
  /* Profile Card Styles */
  .profile-card {
    position: relative;
    flex: 1;
    perspective: 1000px;
  }
  
  .profile-image {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    transform-style: preserve-3d;
  }
  
  .image-wrapper {
    position: relative;
    width: 400px; /* Increased size for bigger orbit */
    height: 400px; /* Increased size for bigger orbit */
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
  }
  
  .profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 100px;
    filter: brightness(1.05) contrast(1.1);
    transform: translateZ(25px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  
  .image-border {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 3px solid rgba(0, 170, 255, 0.5);
    border-radius: 25px;
    transform: translateZ(10px);
    animation: borderPulse 4s ease-in-out infinite;
  }
  
  .tech-orbit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotateOrbit 8s linear infinite; /* Faster rotation */
  }
  
  .tech-icon {
    position: absolute;
    width: 70px;
    height:70px;
    background: rgba(22, 33, 62, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 35px rgba(0, 170, 255, 0.6);
    transform: rotate(calc(360deg / 6 * var(--i))) translateY(-190px) rotate(calc(-360deg / 6 * var(--i))); /* Larger orbit radius */
    transition: all 0.2s ease-out; /* Even snappier transition */
    border: 2px solid #00aaff;
  }
  
  .tech-icon img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    filter: none;
    transition: all 0.2s ease; /* Faster image transition */
  }
  
  .tech-icon:hover {
    transform: rotate(calc(360deg / 6 * var(--i))) translateY(-160px) rotate(calc(-360deg / 6 * var(--i))) scale(1.5) translateY(-15px); /* More pronounced scale and lift */
    background: #00aaff;
    box-shadow: 0 0 45px rgba(0, 170, 255, 1); /* Even brighter shadow on hover */
    z-index: 10; /* Bring to front on hover */
  }
  
  .tech-icon:hover img {
    filter: brightness(1) invert(0);
  }
  
  .profile-badge {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 5;
  }
  
  .profile-badge span {
    background: linear-gradient(90deg, #0077cc, #00aaff);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(0, 119, 204, 0.3);
    animation: badgeFloat 4s ease-in-out infinite;
  }
  
  .profile-badge span:nth-child(2) {
    background: linear-gradient(90deg, #00aaff, #00ccff);
    animation-delay: 0.5s;
  }
  
  /* Content Styles */
  .profile-content {
    flex: 1;
    opacity: 0;
    transform: translateX(80px);
    transition: all 1s cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  
  .section-title {
    font-size: 3.5rem;
    color: transparent;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #0077cc, #00aaff, #00ccff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
    line-height: 1.2;
  }
  
  .title-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
  }
  
  .typing-container {
    height: 60px;
    margin-bottom: 30px;
    overflow: hidden;
  }
  
  .profile-subtitle {
    color: #0077cc;
    font-size: 1.8rem;
    font-weight: 500;
    display: inline-block;
  }
  
  .typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1.8rem;
    background: #00aaff;
    margin-left: 5px;
    animation: blink 0.8s infinite;
    vertical-align: middle;
  }
  
  .profile-text {
    margin-bottom: 40px;
  }
  
  .profile-text p {
    color: #d1d1d1;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-left: 30px;
  }
  
  .profile-text p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 15px;
    height: 2px;
    background: linear-gradient(90deg, #0077cc, #00aaff);
  }
  
  .highlight {
    color: #00ccff;
    font-weight: 600;
    position: relative;
    display: inline-block;
  }
  
  .animated-underline {
    position: relative;
    display: inline-block;
    color: #00aaff;
    font-weight: 500;
  }
  
  .animated-underline::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, #0077cc, #00aaff);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
  }
  
  .animated-underline:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
  
  /* Stats Styles */
  .stats-container {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
  }
  
  .stat-item {
    text-align: center;
  }
  
  .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00ccff;
    margin-bottom: 5px;
    background: linear-gradient(90deg, #0077cc, #00aaff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  
  .stat-label {
    color: #0077cc;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  /* Button Styles */
  .profile-actions {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    gap: 20px;
    justify-content: center; /* Center buttons horizontally */
  }
  
  .action-btn {
    padding: 15px 35px;
    background: linear-gradient(90deg, #0077cc, #00aaff);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 20px rgba(0, 119, 204, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
  }
  
  .action-btn.secondary {
    background: transparent;
    border: 2px solid #00aaff;
    color: #00aaff;
    box-shadow: 0 10px 20px rgba(0, 170, 255, 0.2);
  }
  
  .action-btn svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.3s ease;
  }
  
  .action-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 119, 204, 0.5);
  }
  
  .action-btn:hover svg {
    transform: translateX(5px);
  }
  
  .action-btn.secondary:hover {
    box-shadow: 0 15px 30px rgba(0, 170, 255, 0.4);
    background: rgba(0, 170, 255, 0.1);
  }
  
  .action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #00aaff, #0077cc);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .action-btn:hover::before {
    opacity: 1;
  }
  
  /* Magnetic Button Effect */
  .magnetic-btn {
    position: relative;
    transition: transform 0.2s ease;
  }
  
  /* Animations */
  @keyframes float {
    0%, 100% {
      transform: translateY(0) rotate(0deg);
    }
    50% {
      transform: translateY(-20px) rotate(2deg);
    }
  }
  
  @keyframes borderPulse {
    0%, 100% {
      border-color: rgba(0, 170, 255, 0.5);
    }
    50% {
      border-color: rgba(0, 119, 204, 0.7);
    }
  }
  
  @keyframes rotateOrbit {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  
  @keyframes badgeFloat {
    0%, 100% {
      transform: translateX(-50%) translateY(0);
    }
    50% {
      transform: translateX(-50%) translateY(-10px);
    }
  }
  
  @keyframes blink {
    0%, 100% {
      opacity: 1;
    }
    50% {
      opacity: 0;
    }
  }
  
  /* Animation when visible */
  #about.visible .profile-content {
    opacity: 1;
    transform: translateX(0);
  }
  
  #about.visible .title-word-1 {
    animation: fadeInUp 0.6s ease-out forwards;
  }
  
  #about.visible .title-word-2 {
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Responsive Design */
  @media (max-width: 992px) {
    .about-container {
      flex-direction: column;
      gap: 50px;
    }
    
    .profile-content {
      text-align: center;
      transform: translateY(50px);
    }
    
    .profile-text p::before {
      display: none;
    }
    
    .profile-text p {
      padding-left: 0;
    }
    
    .stats-container {
      justify-content: center;
    }
    
    .profile-actions {
      justify-content: center;
    }
  }
  
  @media (max-width: 576px) {
    .section-title {
      font-size: 2.5rem;
    }
    
    .profile-subtitle {
      font-size: 1.4rem;
    }
    
    .profile-text p {
      font-size: 1rem;
    }
    
    .stats-container {
      gap: 15px;
    }
    
    .profile-actions {
      flex-direction: column;
      gap: 15px;
    }
    
    .action-btn {
      justify-content: center;
    }
  }

  /* Extra small screen tweaks (phones) */
  @media (max-width: 420px) {
    .section { width: 95%; padding: 14px; border-radius: 12px; }
    .section h2, .section-title { font-size: 1.6rem; }
    .about-container { padding: 0 12px; gap: 18px; }
    .image-wrapper { width: 160px; height: 160px; }
    .profile-photo { border-radius: 12px; }
    .profile-content { transform: none; padding: 6px 0; }
    .stats-container { flex-direction: column; gap: 10px; align-items: center; }
    .action-btn { width: 100%; padding: 12px 16px; font-size: 1rem; border-radius: 12px; box-shadow: none; }
    .action-btn.secondary { width: 100%; padding: 12px 16px; }
    .profile-actions { gap: 12px; flex-direction: column; }
  .experience-content { min-height: auto; padding: 12px; width: auto; }
    .experience-timeline::before { left: 12px; }
    .experience-date { left: 4px; width: 64px; font-size: 0.8rem; }
    .skills-container, .projects-container, .blog-container, .certifications-container, .volunteer-container { gap: 12px; }
    .skill-card, .project-card, .blog-post-card, .certification-card, .volunteer-card { width: 100%; }
    /* reduce heavy glows on small screens */
    .image-border, .profile-badge span, .tech-icon { box-shadow: none; }
  }

/* Style Block 3 */
/* Experience Section Styling */
  .experience-title {
    color: #0077cc;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
  }
  
  .experience-title::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #0077cc, #00aaff);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
  }
  
  .experience-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
  }
  
  .experience-timeline::before {
    content: '';
    position: absolute;
    width: 3px;
    background: linear-gradient(to bottom, #00aaff, #0077cc);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    border-radius: 10px;
  }
  
  .experience-item {
    position: relative;
    margin-bottom: 50px;
    opacity: 0;
    transition: all 0.5s ease;
  }
  
  .experience-item.visible {
    opacity: 1;
  }
  
  .experience-item:nth-child(odd) .experience-content {
    margin-left: auto;
    margin-right: 50px;
    text-align: right;
  }
  
  .experience-item:nth-child(even) .experience-content {
    margin-left: 50px;
    margin-right: auto;
    text-align: left;
  }
  
  .experience-date {
    position: absolute;
    width: 120px;
    background: #00aaff;
    color: #1a1a2e;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
    top: -15px;
    z-index: 1;
    box-shadow: 0 4px 8px rgba(0, 170, 255, 0.3);
  }
  
  .experience-content {
    width: 45%;
    padding: 20px;
    background: rgba(22, 33, 62, 0.7);
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border-top: 3px solid #00aaff;
    min-height: 300px; /* Increased min-height for larger boxes */
    box-sizing: border-box; /* Include padding in the height calculation */
  }
  
  .experience-item:nth-child(odd) .experience-content::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #00aaff;
    transform: rotate(45deg);
    right: -10px;
    top: 20px;
    border-radius: 3px;
  }
  
  .experience-item:nth-child(even) .experience-content::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #00aaff;
    transform: rotate(45deg);
    left: -10px;
    top: 20px;
    border-radius: 3px;
  }
  
  .experience-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 18px 4px rgba(220, 200, 80, 0.55), 0 10px 30px rgba(0,0,0,0.4);
    background: rgba(22, 33, 62, 0.9);
  }
  
  .experience-header h3 {
    color: #00ccff;
    margin: 0 0 5px 0;
    font-size: 1.3rem;
  }
  
  .experience-company {
    display: block;
    color: #0077cc;
    font-weight: bold;
    margin-bottom: 5px;
  }
  
  .experience-location {
    display: block;
    color: #00aaff;
    font-size: 0.9rem;
    margin-bottom: 15px;
  }
  
  .experience-details ul {
    padding-left: 25px; /* Increased padding */
    margin-bottom: 20px; /* Increased margin */
  }
  
  .experience-details li {
    color: #d1d1d1;
    margin-bottom: 10px; /* Increased margin */
    line-height: 1.6; /* Slightly increased line height */
    position: relative;
  }
  
  .experience-details li::before {
    content: '▹';
    color: #00aaff;
    position: absolute;
    left: -20px;
    top: 0; /* Align with text top */
  }
  
  .experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px; /* Added margin to separate from list */
  }
  
  .experience-tags span {
    background: rgba(0, 170, 255, 0.2);
    color: #00aaff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
  }
  
  /* Responsive: collapse timeline to single column on small screens */
  @media (max-width: 768px) {
    .experience-timeline {
      padding: 10px 20px;
    }

    .experience-timeline::before {
      left: 20px; /* move the vertical line to the left */
      margin-left: 0;
    }

    .experience-item {
      margin-bottom: 30px;
    }

    .experience-content {
      width: auto;
      margin: 0 0 0 70px; /* leave space for the date bubble */
      text-align: left;
      min-height: auto;
      padding: 12px;
    }

    .experience-item:nth-child(odd) .experience-content,
    .experience-item:nth-child(even) .experience-content {
      margin-left: 70px;
      margin-right: 0;
      text-align: left;
    }

    .experience-date {
      position: absolute;
      left: 12px;
      transform: none;
      top: 8px;
      width: 56px;
      padding: 6px 8px;
      font-size: 0.85rem;
    }

    .experience-content::before {
      display: none; /* hide the decorative diamond on mobile */
    }
  }

/* Style Block 4 */
/* Tighten spacing between Skills and Education sections */
  /* Keeps other section spacing intact; reduces top margin on #skills and bottom margin on #education */
  #skills { margin-top: 1.25rem; margin-bottom: 0; }
  #education { margin-top: 0.25rem; margin-bottom: 1.25rem; }

  /* On larger screens, slightly reduce the space even more to keep flow compact */
  @media (min-width: 992px) {
    #skills { margin-top: 0.75rem; margin-bottom: 0; }
    #education { margin-top: 0.15rem; margin-bottom: 1rem; }
  }

  /* On very small screens ensure sections don't feel cramped */
  @media (max-width: 420px) {
    #skills { margin-top: 0.75rem; margin-bottom: 0; }
    #education { margin-top: 0.25rem; margin-bottom: 0.75rem; }
  }

/* Style Block 5 */
/* Skills Section Styling */
  .skills-title {
    color: #0077cc;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
  }
  
  .skills-title::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #0077cc, #00aaff);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
  }
  
  .skills-container {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    padding: 20px 20px 4px;
    max-width: 100%;
    justify-content: flex-start;
    align-items: center;
  }

  .skills-carousel-inner {
    display: flex;
    animation: scrollSkills 20s linear infinite; /* Adjusted animation speed */
    width: max-content;
  }
  
  .skill-card {
    background: rgba(22, 33, 62, 0.7);
    border-radius: 50%;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    margin-right: 40px;
    flex-shrink: 0;
    width: 125px;
    height: 125px;
    text-align: center;
    position: relative;
    overflow: visible;
    transform-style: preserve-3d;
  }
  
  .skill-card::before {
    content: '';
    position: absolute;
    width: 180px;
    height: 60px;
    border: 1px solid rgba(0, 170, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotateX(70deg) rotateZ(30deg);
    filter: blur(1px);
    transition: all 0.3s ease;
    z-index: -1;
    top: 50%;
    left: 50%;
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.3);
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.1) 0%,rgba(0,0,0,0) 70%);
  }

  .skill-card:hover::before {
    border-color: #00aaff;
    transform: translate(-50%, -50%) rotateX(70deg) rotateZ(30deg) scale(1.05);
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.6);
  }

  .skill-card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 0 25px rgba(0, 170, 255, 0.8), 0 0 50px rgba(0, 170, 255, 0.5);
    border: 3px solid #00aaff;
    background: rgba(22, 33, 62, 0.9);
  }
  
  .skill-logo {
    width: 52px;
    height: 52px;
    margin-right: 0;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 170, 255, 0.1);
    border-radius: 50%;
    padding: 9px;
    transition: all 0.3s ease;
  }
  
  .skill-card:hover .skill-logo {
    transform: rotate(15deg) scale(1.1);
    background: linear-gradient(45deg, #FFD700, #FFA500); /* Gold to Orange gradient on hover */
  }
  
  .skill-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none; /* Removed invert filter to show original colors */
  }
  
  .skill-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center content vertically */
    width: 100%;
    margin-top: 10px; /* Added margin-top for spacing from logo */
  }
  
  .skill-info h3 {
    margin: 0;
    color: #00ccff;
    font-size: 1rem;
  }
  
  /* Removed .skill-bar and .skill-level styles */
  
  /* Keyframes for the scrolling animation */
  @keyframes scrollSkills {
    0% {
      transform: translateX(0%);
    }
    100% {
      /* Moves the content by half its total width for a seamless loop */
      transform: translateX(-50%);
    }
  }

  /* Specific colors for each skill card */
  .skill-card.js-card { background: #F7DF1E; }
  .skill-card.js-card .skill-info h3 { color: #323330; } /* Dark text for light background */
  .skill-card.js-card .skill-logo { background: rgba(0,0,0,0.1); } /* Subtle background for logo */

  .skill-card.bootstrap-card { background: #7952B3; }
  .skill-card.bootstrap-card .skill-info h3 { color: #FFFFFF; }
  .skill-card.bootstrap-card .skill-logo { background: rgba(255,255,255,0.1); }

  .skill-card.firebase-card { background: #FFCA28; }
  .skill-card.firebase-card .skill-info h3 { color: #323330; }
  .skill-card.firebase-card .skill-logo { background: rgba(0,0,0,0.1); }

  .skill-card.materialui-card { background: #00BCD4; }
  .skill-card.materialui-card .skill-info h3 { color: #FFFFFF; }
  .skill-card.materialui-card .skill-logo { background: rgba(255,255,255,0.1); }

  .skill-card.nginx-card { background: #26A59A; }
  .skill-card.nginx-card .skill-info h3 { color: #FFFFFF; }
  .skill-card.nginx-card .skill-logo { background: rgba(255,255,255,0.1); }

  .skill-card.php-card { background: #777BB4; }
  .skill-card.php-card .skill-info h3 { color: #FFFFFF; }
  .skill-card.php-card .skill-logo { background: rgba(255,255,255,0.1); }

  .skill-card.wordpress-card { background: #21759B; }
  .skill-card.wordpress-card .skill-info h3 { color: #FFFFFF; }
  .skill-card.wordpress-card .skill-logo { background: rgba(255,255,255,0.1); }

  .skill-card.html-card { background: #E34C26; }
  .skill-card.html-card .skill-info h3 { color: #FFFFFF; }
  .skill-card.html-card .skill-logo { background: rgba(255,255,255,0.1); }

  .skill-card.cpp-card { background: #00599C; }
  .skill-card.cpp-card .skill-info h3 { color: #FFFFFF; }
  .skill-card.cpp-card .skill-logo { background: rgba(255,255,255,0.1); }

  .skill-card.java-card { background: #007396; }
  .skill-card.java-card .skill-info h3 { color: #FFFFFF; }
  .skill-card.java-card .skill-logo { background: rgba(255,255,255,0.1); }

  .skill-card.csharp-card { background: #68217A; }
  .skill-card.csharp-card .skill-info h3 { color: #FFFFFF; }
  .skill-card.csharp-card .skill-logo { background: rgba(255,255,255,0.1); }

  .skill-card.python-card { background: #3776AB; }
  .skill-card.python-card .skill-info h3 { color: #FFFFFF; }
  .skill-card.python-card .skill-logo { background: rgba(255,255,255,0.1); }

  .skill-card.mysql-card { background: #00758F; }
  .skill-card.mysql-card .skill-info h3 { color: #FFFFFF; }
  .skill-card.mysql-card .skill-logo { background: rgba(255,255,255,0.1); }

  .skill-card.mongodb-card { background: #47A248; }
  .skill-card.mongodb-card .skill-info h3 { color: #FFFFFF; }
  .skill-card.mongodb-card .skill-logo { background: rgba(255,255,255,0.1); }

  .skill-card.css-card { background: #1572B6; }
  .skill-card.css-card .skill-info h3 { color: #FFFFFF; }
  .skill-card.css-card .skill-logo { background: rgba(255,255,255,0.1); }

  .skill-card.react-card { background: #20232A; border: 1px solid #61DAFB; }
  .skill-card.react-card .skill-info h3 { color: #61DAFB; }
  .skill-card.react-card .skill-logo { background: rgba(97, 218, 251, 0.1); }

  .skill-card.nodejs-card { background: #339933; }
  .skill-card.nodejs-card .skill-info h3 { color: #FFFFFF; }
  .skill-card.nodejs-card .skill-logo { background: rgba(255, 255, 255, 0.1); }

  .skill-card.typescript-card { background: #3178C6; }
  .skill-card.typescript-card .skill-info h3 { color: #FFFFFF; }
  .skill-card.typescript-card .skill-logo { background: rgba(255, 255, 255, 0.1); }

  .skill-card.express-card { background: #68A063; border: 1px solid #4e7a4a; }
  .skill-card.express-card .skill-info h3 { color: #FFFFFF; }
  .skill-card.express-card .skill-logo { background: rgba(255, 255, 255, 0.15); }

  .skill-card.git-card { background: #F05032; }
  .skill-card.git-card .skill-info h3 { color: #FFFFFF; }
  .skill-card.git-card .skill-logo { background: rgba(255, 255, 255, 0.1); }

  .skill-card.tailwindcss-card { background: #0F172A; border: 1px solid #06B6D4; }
  .skill-card.tailwindcss-card .skill-info h3 { color: #06B6D4; }
  .skill-card.tailwindcss-card .skill-logo { background: rgba(6, 182, 212, 0.1); }

  .skill-card.nextjs-card { background: #6366F1; border: 1px solid #4f46e5; }
  .skill-card.nextjs-card .skill-info h3 { color: #FFFFFF; }
  .skill-card.nextjs-card .skill-logo { background: rgba(255, 255, 255, 0.15); }

  .skill-card.docker-card { background: #2496ED; }
  .skill-card.docker-card .skill-info h3 { color: #FFFFFF; }
  .skill-card.docker-card .skill-logo { background: rgba(255, 255, 255, 0.1); }

  .skill-card.matlab-card { background: #e16737; }
  .skill-card.matlab-card .skill-info h3 { color: #FFFFFF; }
  .skill-card.matlab-card .skill-logo { background: rgba(255, 255, 255, 0.15); }

  .skill-card.linux-card { background: #FCC624; }
  .skill-card.linux-card .skill-info h3 { color: #1a1a1a; }
  .skill-card.linux-card .skill-logo { background: rgba(0, 0, 0, 0.1); }

  .skill-card.postman-card { background: #FF6C37; }
  .skill-card.postman-card .skill-info h3 { color: #FFFFFF; }
  .skill-card.postman-card .skill-logo { background: rgba(255, 255, 255, 0.15); }

  .skill-card.vscode-card { background: #007ACC; }
  .skill-card.vscode-card .skill-info h3 { color: #FFFFFF; }
  .skill-card.vscode-card .skill-logo { background: rgba(255, 255, 255, 0.15); }

  .skill-card.figma-card { background: #A259FF; }
  .skill-card.figma-card .skill-info h3 { color: #FFFFFF; }
  .skill-card.figma-card .skill-logo { background: rgba(255, 255, 255, 0.15); }

  .skill-card.postgresql-card { background: #336791; }
  .skill-card.postgresql-card .skill-info h3 { color: #FFFFFF; }
  .skill-card.postgresql-card .skill-logo { background: rgba(255, 255, 255, 0.15); }

  /* Adjust hover effects for colored cards */
  .skill-card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.8), 0 0 50px rgba(255, 255, 255, 0.5); /* White glow on hover */
    border: 3px solid rgba(255, 255, 255, 0.5); /* Subtle white border on hover */
  }

  .skill-card:hover .skill-logo {
    background: rgba(255, 255, 255, 0.2); /* Lighter background on hover */
  }

  .skill-card .skill-logo img {
    filter: none;
  }

/* Style Block 6 */
/* Education Section Styling */
  .education-title {
    color: #0077cc;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: block;
    width: 100%;
  }
  
  .education-title::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #0077cc, #00aaff);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
  }
  
  .timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
  }
  
  .timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, #00aaff, #0077cc);
    top: 0;
    bottom: 0;
    left: 50px;
    border-radius: 10px;
  }
  
  .timeline-item {
    position: relative;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
  }
  
  .timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
  }
  
  .timeline-dot {
    position: absolute;
    left: 42px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00ccff;
    border: 3px solid #1a1a2e;
    box-shadow: 0 0 0 4px #00aaff;
    z-index: 1;
  }
  
  .timeline-content {
    margin-left: 80px;
    padding: 20px;
    background: rgba(22, 33, 62, 0.7);
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border-left: 3px solid #00aaff;
  }
  
  .timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 18px 4px rgba(220, 200, 80, 0.55), 0 10px 30px rgba(0,0,0,0.4);
    background: rgba(22, 33, 62, 0.9);
  }
  
  .timeline-content h3 {
    color: #00ccff;
    margin-top: 0;
    font-size: 1.3rem;
  }
  
  .date {
    display: inline-block;
    background: rgba(0, 170, 255, 0.2);
    color: #00aaff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 10px;
  }
  
  .institution {
    color: #0077cc;
    font-weight: bold;
    display: block;
    margin: 5px 0;
  }
  
  .timeline-content p {
    margin-bottom: 0;
    color: #d1d1d1;
    line-height: 1.5;
  }

/* Style Block 7 */
#projects {
        padding: 4rem 2rem;
        background: #1a1a1a; /* Changed to a slightly lighter black */
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }
    
    .section-title {
        text-align: center;
        font-size: 2.5rem;
        margin-bottom: 3rem;
        color: #ffffff; /* Changed to white */
        position: relative;
        display: inline-block;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .section-title::after {
        content: '';
        position: absolute;
        width: 70%;
        height: 4px;
        bottom: -10px;
        left: 15%;
        background: linear-gradient(90deg, #0077cc, #00aaff); /* Changed to blue gradient */
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.5s ease;
    }
    
    .section-title:hover::after {
        transform: scaleX(1);
    }
    
    .projects-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .project-card {
        background: #2a2a2a; /* Dark grey background */
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        width: 350px;
        overflow: hidden;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .project-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 0 22px 5px rgba(220, 200, 80, 0.55), 0 15px 30px rgba(0,0,0,0.4);
    }
    
    .project-content {
        padding: 2rem;
    }

    .project-details-expanded {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-out;
        opacity: 0;
        margin-top: 1rem;
        color: #d1d1d1;
    }

    .project-card:hover .project-details-expanded {
        max-height: 300px; /* Adjust as needed to fit content */
        opacity: 1;
        transition: max-height 0.7s ease-in, opacity 0.5s ease-in 0.2s;
    }

    .project-details-expanded h4 {
        color: #00aaff;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
        font-size: 1.1rem;
    }

    .project-details-expanded p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 0.5rem;
    }
    
    .project-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        color: #00ccff; /* Light blue color */
    }
    
    .project-description {
        color: #cccccc; /* Lighter grey */
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
    
    .project-date {
        font-size: 0.9rem;
        color: #00aaff; /* Light blue color */
        margin-bottom: 1rem;
        font-weight: 600;
    }
    
    .project-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .tag {
        background: #1a4a6a; /* Darker blue */
        color: #00ccff; /* Lighter blue */
        padding: 0.3rem 0.8rem;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 500;
    }
    
    .project-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8); /* Semi-transparent dark blue */
        display: flex;
        flex-direction: column; /* Stack links vertically */
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
        gap: 15px; /* Space between links */
    }
    
    .project-card:hover .project-overlay {
        opacity: 1;
    }
    
    .project-link {
        color: white;
        text-decoration: none;
        font-weight: 600;
        font-size: 1.2rem;
        padding: 0.8rem 1.5rem;
        border: 2px solid white;
        border-radius: 30px;
        transition: all 0.3s ease;
    }
    
    .project-link:hover {
        background: white;
        color: #0077cc; /* Darker blue */
    }
    
    /* Animation for project cards when page loads */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .project-card {
        animation: fadeInUp 0.6s ease forwards;
        opacity: 0;
    }
    
    .project-card:nth-child(1) {
        animation-delay: 0.2s;
    }
    
    .project-card:nth-child(2) {
        animation-delay: 0.4s;
    }
    .project-card:nth-child(3) {
        animation-delay: 0.6s;
    }

/* Style Block 8 */
#blog {
      padding: 4rem 2rem;
      background: #1a1a1a;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    #blog .section-title {
        color: #ffffff;
    }

    #blog .section-title::after {
        background: linear-gradient(90deg, #0077cc, #00aaff);
    }

    .blog-container {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 2rem;
      max-width: 1200px;
      margin: 0 auto;
    }

    .blog-post-card {
      background: #2a2a2a;
      border-radius: 10px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.1);
      width: 350px;
      padding: 2rem;
      transition: all 0.3s ease;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      animation: fadeInUp 0.6s ease forwards; /* Added animation */
      opacity: 0; /* Start invisible */
      position: relative; /* Added for overlay positioning */
      overflow: hidden; /* Hide overflow from overlay */
    }

    .blog-post-card:nth-child(1) {
        animation-delay: 0.2s;
    }
    .blog-post-card:nth-child(2) {
        animation-delay: 0.4s;
    }
    .blog-post-card:nth-child(3) {
        animation-delay: 0.6s;
    }

    .blog-post-card:hover {
      transform: translateY(-10px) scale(1.03);
      box-shadow: 0 0 22px 5px rgba(220, 200, 80, 0.55), 0 15px 30px rgba(0,0,0,0.4);
    }

    .blog-post-card h3 {
      font-size: 1.4rem;
      color: #00ccff;
      margin-top: 0;
      margin-bottom: 0.8rem;
    }

    .blog-meta {
      font-size: 0.9rem;
      color: #999999;
      margin-bottom: 1rem;
    }

    .blog-date, .blog-author {
      color: #00aaff;
      font-weight: 600;
    }

    .blog-snippet {
      color: #cccccc;
      line-height: 1.6;
      margin-bottom: 1.5rem;
      flex-grow: 1; /* Allows snippet to take available space */
    }

    .blog-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8); /* Semi-transparent dark overlay */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
        gap: 15px;
    }

    .blog-post-card:hover .blog-overlay {
        opacity: 1;
    }

    .blog-link {
        color: white;
        text-decoration: none;
        font-weight: 600;
        font-size: 1.2rem;
        padding: 0.8rem 1.5rem;
        border: 2px solid white;
        border-radius: 30px;
        transition: all 0.3s ease;
    }

    .blog-link:hover {
        background: white;
        color: #0077cc;
    }

/* Style Block 9 */
#certifications {
      padding: 4rem 2rem;
      background: #1a1a1a;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    #certifications .section-title {
        color: #ffffff;
    }

    #certifications .section-title::after {
        background: linear-gradient(90deg, #0077cc, #00aaff);
    }

    .certifications-container {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 2rem;
      max-width: 1200px;
      margin: 0 auto;
    }

    .certification-card {
      background: #2a2a2a;
      border-radius: 10px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.1);
      width: 350px;
      padding: 2rem;
      transition: all 0.3s ease;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .certification-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 0 22px 5px rgba(220, 200, 80, 0.55), 0 15px 30px rgba(0,0,0,0.4);
    }

    .certification-card h3 {
      font-size: 1.4rem;
      color: #00ccff;
      margin-top: 0;
      margin-bottom: 0.5rem;
    }

    .issuing-body {
      font-size: 1rem;
      color: #cccccc;
      margin-bottom: 0.5rem;
    }

    .date-issued {
      font-size: 0.9rem;
      color: #999999;
      margin-bottom: 1.5rem;
    }

    /* ── Animated rectangular-border "View Certificate" button ── */
    @property --angle {
      syntax: '<angle>';
      initial-value: 0deg;
      inherits: false;
    }

    .view-credential-btn {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 3px;
      padding: 6px 10px;
      align-self: flex-start;   /* stop it stretching full card width */
      color: #00aaff;
      text-decoration: none;
      font-weight: 600;
      font-size: 0.6rem;
      letter-spacing: 0.7px;
      text-transform: uppercase;
      border-radius: 50px;
      background: rgba(0, 170, 255, 0.04);
      z-index: 0;
      transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease,
                  box-shadow 0.25s ease;
      animation: textPulse 5s ease-in-out infinite;
    }

    .view-credential-btn .btn-arrow {
      font-size: 0.55rem;
      line-height: 1;
      transition: transform 0.25s ease;
    }

    .view-credential-btn:hover .btn-arrow {
      transform: translateX(3px);
    }

    /* spinning conic border */
    .view-credential-btn::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 50px;
      padding: 1.5px;
      background: conic-gradient(
        from var(--angle),
        #003d66 0deg,
        #00aaff 60deg,
        #00e5ff 90deg,
        #00aaff 120deg,
        #003d66 180deg,
        #00aaff 240deg,
        #00e5ff 270deg,
        #00aaff 300deg,
        #003d66 360deg
      );
      -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
              mask-composite: exclude;
      animation: spinBorder 6s linear infinite;
    }

    /* glow layer */
    .view-credential-btn::after {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 50px;
      background: transparent;
      transition: box-shadow 0.3s ease;
      pointer-events: none;
    }

    .view-credential-btn:hover {
      color: #00e5ff;
      background: rgba(0, 170, 255, 0.1);
      transform: translateY(-2px) scale(1.04);
      box-shadow: 0 3px 14px rgba(0, 170, 255, 0.35);
    }

    .view-credential-btn:hover::before {
      animation: spinBorder 3.5s linear infinite;
    }

    @keyframes spinBorder {
      to { --angle: 360deg; }
    }

    @keyframes textPulse {
      0%, 100% { text-shadow: 0 0 4px rgba(0,170,255,0.4); }
      50%       { text-shadow: 0 0 10px rgba(0,220,255,0.9), 0 0 20px rgba(0,170,255,0.4); }
    }

/* Style Block 10 */
#volunteer {
      padding: 4rem 2rem;
      background: #1a1a1a;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    #volunteer .section-title {
        color: #ffffff;
    }

    #volunteer .section-title::after {
        background: linear-gradient(90deg, #0077cc, #00aaff);
    }

    .volunteer-container {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 2rem;
      max-width: 1200px;
      margin: 0 auto;
    }

    .volunteer-card {
      background: #2a2a2a;
      border-radius: 10px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.1);
      width: 350px;
      padding: 2rem;
      transition: all 0.3s ease;
      display: flex; /* Added flex for consistent height */
      flex-direction: column; /* Added flex for consistent height */
      justify-content: space-between; /* Distributes space between items */
      min-height: 250px; /* Set a minimum height to ensure consistency */
      animation: fadeInUp 0.6s ease forwards; /* Added animation */
      opacity: 0; /* Start invisible */
      position: relative; /* Added for overlay positioning */
      overflow: hidden; /* Hide overflow from overlay */
    }

    .volunteer-card:nth-child(1) {
        animation-delay: 0.2s;
    }
    .volunteer-card:nth-child(2) {
        animation-delay: 0.4s;
    }

    .volunteer-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 0 22px 5px rgba(220, 200, 80, 0.55), 0 15px 30px rgba(0,0,0,0.4);
    }

    .volunteer-card h3 {
      font-size: 1.4rem;
      color: #00ccff;
      margin-top: 0;
      margin-bottom: 0.5rem;
    }

    .organization {
      font-size: 1rem;
      color: #cccccc;
      margin-bottom: 0.5rem;
    }

    .duration {
      font-size: 0.9rem;
      color: #999999;
      margin-bottom: 1rem;
    }

    .volunteer-card .description {
        color: #d1d1d1;
        line-height: 1.6;
        margin-bottom: 1.5rem;
        flex-grow: 1; /* Allows description to take available space */
    }

    .volunteer-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .volunteer-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8); /* Semi-transparent dark overlay */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
        gap: 15px;
    }

    .volunteer-card:hover .volunteer-overlay {
        opacity: 1;
    }

    .volunteer-link {
        color: white;
        text-decoration: none;
        font-weight: 600;
        font-size: 1.2rem;
        padding: 0.8rem 1.5rem;
        border: 2px solid white;
        border-radius: 30px;
        transition: all 0.3s ease;
    }

    .volunteer-link:hover {
        background: white;
        color: #0077cc;
    }

/* Style Block 11 */
#testimonials {
      padding: 4rem 2rem;
      background: #1a1a1a;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    #testimonials .section-title {
        color: #ffffff;
    }

    #testimonials .section-title::after {
        background: linear-gradient(90deg, #0077cc, #00aaff);
    }

    .testimonials-container {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 2rem;
      max-width: 1200px;
      margin: 0 auto;
    }

    .testimonial-card {
      background: #2a2a2a;
      border-radius: 10px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.1);
      width: 350px;
      padding: 2rem;
      transition: all 0.3s ease;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .testimonial-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 0 22px 5px rgba(220, 200, 80, 0.55), 0 15px 30px rgba(0,0,0,0.4);
    }

    .testimonial-text {
      font-size: 1.1rem;
      color: #cccccc;
      line-height: 1.6;
      font-style: italic;
      margin-bottom: 1.5rem;
      flex-grow: 1;
    }

    .testimonial-author {
      font-size: 0.9rem;
      color: #00aaff;
      font-weight: 600;
      text-align: right;
    }

/* Style Block 12 */
#contact {
    background: linear-gradient(135deg, #0f0c29 0%, #1a1a2e 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
  }
  
  .contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
  }
  
  .contact-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #0077cc, #00aaff, #00ccff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .contact-title::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 4px;
    background: linear-gradient(90deg, #0077cc, #00aaff);
    bottom: -10px;
    left: 15%;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.5s ease;
  }

  .contact-title:hover::after {
    transform: scaleX(1);
  }
  
  .contact-subtitle {
    text-align: center;
    color: #d1d1d1;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.6;
  }
  
  .contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
  }
  
  .contact-form-container {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    height: 500px; /* Set fixed height */
  }
  
  .contact-form {
    background: rgba(22, 33, 62, 0.7);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    border-top: 3px solid #00aaff;
    height: 100%;
  }
  
  .contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 170, 255, 0.2);
  }
  
  .form-group {
    position: relative;
    margin-bottom: 30px;
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    color: #fff;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    outline: none;
    background: transparent;
    transition: all 0.3s ease;
  }
  
  .form-group textarea {
    resize: none;
    min-height: 100px;
  }
  
  .form-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    transition: all 0.3s ease;
  }
  
  .form-group .underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0077cc, #00aaff);
    transition: all 0.4s ease;
  }
  
  .form-group.floating input:focus ~ label,
  .form-group.floating input:valid ~ label,
  .form-group.floating textarea:focus ~ label,
  .form-group.floating textarea:valid ~ label {
    top: -20px;
    left: 0;
    color: #00aaff;
    font-size: 0.8rem;
  }
  
  .form-group input:focus ~ .underline,
  .form-group textarea:focus ~ .underline {
    width: 100%;
  }

  .submit-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background: linear-gradient(90deg, #0077cc, #00aaff);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 119, 204, 0.4);
  }

  .submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }
  
  .submit-btn span {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
  }
  
  .submit-btn .submit-icon {
    position: relative;
    z-index: 1;
    margin-left: 10px;
    transition: all 0.3s ease;
  }
  
  .submit-btn .submit-icon svg {
    fill: white;
    width: 20px;
    height: 20px;
  }
  
  .submit-btn .submit-ripple {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #00aaff, #0077cc);
    opacity: 0;
    transition: all 0.6s ease;
  }
  
  .submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 119, 204, 0.6);
  }
  
  .submit-btn:hover span {
    transform: translateX(5px);
  }
  
  .submit-btn:hover .submit-icon {
    transform: translateX(5px);
  }
  
  .submit-btn:hover .submit-ripple {
    opacity: 1;
  }
  
  .form-success, .form-error {
    display: none;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
  }

  .form-success {
    background: rgba(0, 170, 255, 0.1);
    color: #00ccff;
  }

  .form-error {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
  }
  
  .form-success svg, .form-error svg {
    width: 20px;
    height: 20px;
    margin-right: 10px;
  }

  .form-success svg {
    fill: #00ccff;
  }

  .form-error svg {
    fill: #ff0000;
  }
  
  .contact-info-container {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    height: 500px; /* Set fixed height */
  }
  
  .contact-info-card {
    background: rgba(22, 33, 62, 0.7);
    padding: 40px;
    border-radius: 15px;
    height: 100%; /* Fill parent container */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    border-top: 3px solid #0077cc;
    display: flex; /* Added flex for consistent height */
    flex-direction: column; /* Added flex for consistent height */
    justify-content: space-between; /* Distributes space between items */
  }
  
  .contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 119, 204, 0.2);
  }
  
  .info-item {
    display: flex;
    margin-bottom: 20px; /* Adjusted margin */
    transition: all 0.3s ease;
  }
  
  .info-item:hover {
    transform: translateX(10px);
  }
  
  .info-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 170, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
  }
  
  .info-item:hover .info-icon {
    background: rgba(0, 170, 255, 0.2);
    transform: rotate(15deg);
  }
  
  .info-icon svg {
    width: 24px;
    height: 24px;
    fill: #00aaff;
  }
  
  .info-content h3 {
    color: #00ccff;
    margin: 0 0 5px 0;
    font-size: 1.2rem;
  }
  
  .info-content a, 
  .info-content p {
    color: #d1d1d1;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0;
  }
  
  .info-content a:hover {
    color: #00aaff;
  }
  
  .social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    align-items: center;
    flex-wrap: wrap;
    overflow-x: auto;
    padding: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .social-links::-webkit-scrollbar { height: 8px; }
  .social-links::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 8px; }
  .social-links { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.06) transparent; }

  .social-link {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.14);
    flex: 0 0 auto;
    opacity: 1;
  }

  .social-link .icon-inner { 
    width: 100%; 
    height: 100%; 
    border-radius: 50%; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
  }
  
  .social-link .icon-inner img { 
    width: 28px; 
    height: 28px; 
    display: block;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    object-fit: contain;
  }
  
  /* Specific styling for Codeforces and LeetCode logos */
  .social-link.codeforces .icon-inner img,
  .social-link.leetcode .icon-inner img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    background: white;
    border-radius: 6px;
    padding: 3px;
  }
  
  .social-link.codeforces:hover .icon-inner img,
  .social-link.leetcode:hover .icon-inner img {
    background: rgba(255, 255, 255, 0.95);
    padding: 4px;
  }

  /* Glowing ring effect */
  .social-link::before {
    content: '';
    position: absolute;
    left: -5px; 
    top: -5px;
    width: calc(100% + 10px); 
    height: calc(100% + 10px);
    border-radius: 50%;
    background: linear-gradient(45deg, #00aaff, #0077cc, #00ccff);
    opacity: 0;
    z-index: 0;
    transition: all 0.4s ease;
  }

  /* Inner glow effect */
  .social-link::after {
    content: '';
    position: absolute;
    left: 50%; 
    top: 50%;
    width: 80%; 
    height: 80%;
    border-radius: 50%;
    transform: translate(-50%,-50%) scale(0);
    background: radial-gradient(circle at center, rgba(255,255,255,0.4), transparent 70%);
    opacity: 0;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
  }

  /* Ripple effect */
  .social-ripple {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
    pointer-events: none;
    z-index: 10;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.6s ease;
  }

  .social-ripple.visible {
    transform: translate(-50%, -50%) scale(4);
    opacity: 0;
  }

  /* Hover effects */
  .social-link:hover, .social-link:focus {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 30px rgba(0,170,255,0.3);
    z-index: 10;
  }

  .social-link:hover::before, .social-link:focus::before {
    opacity: 1;
  }

  .social-link:hover::after, .social-link:focus::after {
    transform: translate(-50%,-50%) scale(1.2);
    opacity: 1;
  }

  .social-link:hover .icon-inner img, .social-link:focus .icon-inner img {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  }

  /* Active/Click effect */
  .social-link:active {
    transform: translateY(-5px) scale(1.05);
    transition: all 0.1s ease;
  }

  .social-link:active::after {
    transform: translate(-50%,-50%) scale(1.5);
    opacity: 0.8;
  }

  /* Platform-specific colors */
  .social-link.git { background: linear-gradient(135deg, #333, #24292e); }
  .social-link.link { background: linear-gradient(135deg, #0077b5, #005582); }
  .social-link.twitter { background: linear-gradient(135deg, #1da1f2, #0d8bd9); }
  .social-link.facebook { background: linear-gradient(135deg, #3b5998, #2d4373); }
  .social-link.instagram { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4); }
  .social-link.whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); }
  .social-link.telegram { background: linear-gradient(135deg, #0088cc, #006699); }
  .social-link.codeforces { background: linear-gradient(135deg, #1f8dd6, #1976d2); }
  .social-link.leetcode { background: linear-gradient(135deg, #ffa116, #ff8c00); }



  /* Mobile optimizations */
  @media (hover: none) {
    .social-link { 
      transition: transform 0.2s ease;
    }
    .social-link:hover, .social-link:focus { 
      transform: translateY(0) scale(1); 
      box-shadow: 0 8px 20px rgba(0,0,0,0.14); 
    }
    .social-link:active { 
      transform: translateY(-5px) scale(1.1); 
    }
  }
  
  @media (max-width: 768px) {
    .contact-title {
      font-size: 2.2rem;
    }
    
    .contact-subtitle {
      font-size: 1rem;
      margin-bottom: 30px;
    }
    
    .contact-form,
    .contact-info-card {
      padding: 30px 20px;
    }
    
    .info-item {
      margin-bottom: 20px;
    }
    
    .info-icon {
      width: 40px;
      height: 40px;
      margin-right: 15px;
    }

    .contact-form-container,
    .contact-info-container {
        height: auto;
    }

    #about { padding: 60px 0; }
    .about-container { flex-direction: column; gap: 30px; padding: 0 16px; }
    .image-wrapper { width: 220px; height: 220px; }
    .profile-photo { border-radius: 12px; }
    .tech-orbit { display: none; }

    .action-btn { width: 100%; padding: 14px; border-radius: 12px; justify-content: center; }
    nav { position: fixed; top: 0; right: 0; padding: 16px; z-index: 10000; }
    nav ul { display: none; } /* Hide regular menu on mobile */
    .nav-toggle { display: inline-block; }
    
    /* Make the mobile menu cover the screen for usability */
    nav.open {
      position: fixed;
      left: 0;
      top: 0;
      right: 0;
      bottom: 0;
      z-index: 9999;
      display: block;
      background: linear-gradient(180deg, rgba(10,10,20,0.98) 0%, rgba(10,10,20,0.96) 100%);
    }
  nav.open ul { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; position: relative; right: auto; top: auto; background: linear-gradient(180deg, rgba(10,10,20,0.98) 0%, rgba(10,10,20,0.96) 100%); padding: 40px 20px; margin: 0; box-sizing: border-box; overflow-y: auto; }
  nav.open ul li { display: block; margin: 18px 0; font-size: 1.1rem; }
  nav.open ul li a { color: #ffffff; padding: 12px 18px; display: inline-block; }
  nav.open .nav-toggle { position: absolute; right: 16px; top: 16px; z-index: 10000; }
  /* prevent body scroll while nav is open */
  body.no-scroll { overflow: hidden; height: 100vh; }
  }
  
  /* Respect user reduced motion preference */
  @media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    .particles, .tech-orbit { display: none !important; }
  }


/* ============================================================
   Style Block 13 — Achievements / Awards  (minimal, matches Testimonials style)
   ============================================================ */
#achievements {
  padding: 4rem 2rem;
  background: #1a1a1a;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.achievements-title {
  color: #ffffff;
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  position: relative;
  display: block;
  width: 100%;
}

.achievements-title::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 4px;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #0077cc, #00aaff);
  border-radius: 2px;
  transition: width 0.5s ease;
}

.achievements-title:hover::after {
  width: 160px;
}

.achievements-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.achievement-card {
  background: #2a2a2a;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  width: 350px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.achievement-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.achievement-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 22px 5px rgba(220, 200, 80, 0.55), 0 15px 30px rgba(0,0,0,0.4);
}

.achievement-card:nth-child(1) { transition-delay: 0.05s; }
.achievement-card:nth-child(2) { transition-delay: 0.15s; }
.achievement-card:nth-child(3) { transition-delay: 0.25s; }
.achievement-card:nth-child(4) { transition-delay: 0.35s; }

.achievement-card h3 {
  color: #cccccc;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  line-height: 1.5;
  font-style: italic;
  flex-grow: 1;
}

.achievement-meta {
  display: block;
  color: #00aaff;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: right;
  margin-top: auto;
}

.achievement-card p {
  color: #cccccc;
  font-size: 1rem;
  line-height: 1.6;
  font-style: italic;
  margin: 0 0 1.5rem;
  flex-grow: 1;
}

@media (max-width: 600px) {
  .achievement-card { width: 100%; }
}


/* ============================================================
   Style Block 14 — Publications / Research  (minimal, matches Testimonials style)
   ============================================================ */
#publications {
  padding: 4rem 2rem;
  background: #1a1a1a;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.publications-title {
  color: #ffffff;
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  position: relative;
  display: block;
  width: 100%;
}

.publications-title::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 4px;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #0077cc, #00aaff);
  border-radius: 2px;
  transition: width 0.5s ease;
}

.publications-title:hover::after {
  width: 160px;
}

.publications-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.publication-card {
  background: #2a2a2a;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  width: 350px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.publication-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.publication-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 22px 5px rgba(220, 200, 80, 0.55), 0 15px 30px rgba(0,0,0,0.4);
}

.publication-card:nth-child(1) { transition-delay: 0.05s; }
.publication-card:nth-child(2) { transition-delay: 0.18s; }
.publication-card:nth-child(3) { transition-delay: 0.31s; }

.pub-type-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1e90ff;
  margin-bottom: 0.6rem;
}

.pub-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  line-height: 1.45;
}

.pub-authors {
  color: #1e90ff;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
}

.pub-venue {
  color: #888;
  font-size: 0.82rem;
  margin: 0 0 0.8rem;
  font-style: italic;
}

.pub-abstract {
  color: #b0b0c0;
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0 0 1rem;
}

.pub-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.pub-link {
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: #1e90ff;
  transition: color 0.2s ease;
}

.pub-link:hover {
  color: #ffffff;
}

.pub-link.secondary {
  color: #888;
}

.pub-link.secondary:hover {
  color: #ffffff;
}

@media (max-width: 600px) {
  .publication-card { padding: 1.2rem; }
}


/* ============================================================
   Style Block 15 — FAQ  (minimal, matches Testimonials style)
   ============================================================ */
#faq {
  padding: 4rem 2rem;
  background: #1a1a1a;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.faq-title {
  color: #ffffff;
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  position: relative;
  display: block;
  width: 100%;
}

.faq-title::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 4px;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #0077cc, #00aaff);
  border-radius: 2px;
  transition: width 0.5s ease;
}

.faq-title:hover::after {
  width: 160px;
}


.faq-container {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.faq-item {
  background: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.faq-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.faq-item:nth-child(1) { transition-delay: 0.05s; }
.faq-item:nth-child(2) { transition-delay: 0.15s; }
.faq-item:nth-child(3) { transition-delay: 0.25s; }
.faq-item:nth-child(4) { transition-delay: 0.35s; }
.faq-item:nth-child(5) { transition-delay: 0.45s; }
.faq-item:nth-child(6) { transition-delay: 0.55s; }

.faq-item:hover {
  box-shadow: 0 0 22px 5px rgba(220, 200, 80, 0.55), 0 15px 30px rgba(0,0,0,0.4);
  transform: translateY(-3px);
}

.faq-item.open {
  box-shadow: 0 0 22px 5px rgba(220, 200, 80, 0.55), 0 15px 30px rgba(0,0,0,0.4);
}

/* Ensure visible + open doesn't freeze the hover lift */
.faq-item.visible:hover {
  transform: translateY(-3px);
}

.faq-item.visible.open:hover {
  transform: translateY(-3px);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
  transition: color 0.2s ease;
  font-family: inherit;
}

.faq-question:hover {
  color: #1e90ff;
}

.faq-item.open .faq-question {
  color: #1e90ff;
}

.faq-icon {
  flex-shrink: 0;
  font-size: 1.3rem;
  font-weight: 300;
  color: #555;
  line-height: 1;
  transition: transform 0.3s ease, color 0.2s ease;
  display: inline-block;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: #1e90ff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s ease, padding 0.25s ease;
  padding: 0 1.4rem;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.4rem 1.1rem;
}

.faq-answer p {
  margin: 0;
  color: #b0b0c0;
  font-size: 0.9rem;
  line-height: 1.7;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 0.8rem;
}

.faq-answer a {
  color: #1e90ff;
  text-decoration: none;
}

.faq-answer a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .faq-question { font-size: 0.88rem; padding: 0.9rem 1rem; }
  .faq-answer { padding: 0 1rem; }
  .faq-item.open .faq-answer { padding: 0 1rem 1rem; }
}

/* ============================================================
   Scrollbar — dark track, gold thumb
   ============================================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #3a3a3a;
}

::-webkit-scrollbar-thumb {
  background: #0077cc;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00aaff;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #0077cc #3a3a3a;
}

/* ============================================================
   Custom Cursor — gold dot + lagging ring
   ============================================================ */
* { cursor: none !important; }

#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px;
  height: 8px;
  background: #00aaff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.05s ease, background 0.2s ease;
}

#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px;
  height: 36px;
  border: 2px solid #0077cc;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

/* Expand ring on hovering links/buttons */
body.cursor-hover #cursor-ring {
  width: 54px;
  height: 54px;
  border-color: #00ccff;
}

body.cursor-hover #cursor-dot {
  background: #00ccff;
}


/* ============================================================
   GLOBAL MICRO-ANIMATIONS  (added June 2026)
   ============================================================ */

/* ── Scroll-reveal base state ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* stagger helpers */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Section headings: slide-in underline on enter ── */
.experience-title,
.skills-title,
.education-title,
.achievements-title,
.publications-title,
.faq-title {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.experience-title.in-view,
.skills-title.in-view,
.education-title.in-view,
.achievements-title.in-view,
.publications-title.in-view,
.faq-title.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ── Timeline dots: pulse ring ── */
.timeline-dot {
  animation: dotPulse 2.4s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 4px #00aaff; }
  50%       { box-shadow: 0 0 0 8px rgba(0,170,255,0.25); }
}

/* ── Education timeline: slide-in from left already handled,
      but add a glow pop when visible ── */
.timeline-item.visible .timeline-dot {
  animation: dotPulse 2.4s ease-in-out infinite, dotPop 0.45s ease forwards;
}
@keyframes dotPop {
  from { transform: scale(0.4); }
  to   { transform: scale(1);   }
}

/* ── Experience item: fade + slide from side ── */
.experience-item {
  transform: translateY(30px);
}
.experience-item.visible {
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ── Skill tags / experience tags: shimmer on hover ── */
.experience-tags span,
.project-tags .tag,
.volunteer-tags .tag {
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease, color 0.3s ease, transform 0.25s ease;
}
.experience-tags span:hover,
.project-tags .tag:hover,
.volunteer-tags .tag:hover {
  transform: translateY(-2px) scale(1.08);
  background: rgba(0,170,255,0.35);
  color: #fff;
}
.experience-tags span::after,
.project-tags .tag::after,
.volunteer-tags .tag::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: none;
}
.experience-tags span:hover::after,
.project-tags .tag:hover::after,
.volunteer-tags .tag:hover::after {
  left: 125%;
  transition: left 0.45s ease;
}

/* ── Project cards: entrance from bottom ── */
.project-card {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeInUp 0.6s ease forwards;
}

/* ── Blog / certification / volunteer / testimonial cards: entrance ── */
.blog-post-card,
.certification-card,
.volunteer-card,
.testimonial-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease,
              box-shadow 0.3s ease;
}
.certification-card.in-view,
.testimonial-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ── Achievement cards: pop-in ── */
.achievement-card {
  opacity: 0;
  transform: scale(0.93) translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.achievement-card.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}
/* left border glow on hover */
.achievement-card {
  border-left: 3px solid #00aaff;
  transition: opacity 0.45s ease, transform 0.45s ease,
              box-shadow 0.3s ease, border-color 0.3s ease;
}
.achievement-card:hover {
  border-color: #00ccff;
  box-shadow: 0 0 18px rgba(0,204,255,0.35), 0 8px 24px rgba(0,0,0,0.35);
  transform: translateY(-4px);
}

/* ── Publication cards: slide from right ── */
.publication-card {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.publication-card.visible {
  opacity: 1;
  transform: translateX(0);
}
/* subtle top-border glow */
.publication-card {
  border-top: 3px solid #0077cc;
  transition: opacity 0.5s ease, transform 0.5s ease,
              border-color 0.3s ease, box-shadow 0.3s ease;
}
.publication-card:hover {
  border-color: #00aaff;
  box-shadow: 0 0 20px rgba(0,170,255,0.3), 0 10px 28px rgba(0,0,0,0.35);
  transform: translateY(-4px);
}

/* ── pub-type-badge: bounce in ── */
.pub-type-badge {
  display: inline-block;
  animation: badgeBounce 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
  animation-play-state: paused;
}
.publication-card.visible .pub-type-badge {
  animation-play-state: running;
}
@keyframes badgeBounce {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ── FAQ items: slide-in from left ── */
.faq-item {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.faq-item.visible {
  opacity: 1;
  transform: translateX(0);
}
/* icon spin when open */
.faq-item.open .faq-icon {
  display: inline-block;
  animation: iconSpin 0.3s ease forwards;
}
@keyframes iconSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(135deg); }
}

/* ── Contact info items: already handled inline,
      add a subtle icon spin on hover ── */
.info-item:hover .info-icon {
  animation: iconWiggle 0.5s ease;
}
@keyframes iconWiggle {
  0%,100% { transform: rotate(0deg);  }
  25%      { transform: rotate(-12deg); }
  75%      { transform: rotate(12deg);  }
}

/* ── Social links: pop-in stagger ── */
.social-link {
  animation: socialPop 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}
.social-link:nth-child(1)  { animation-delay: 0.05s; }
.social-link:nth-child(2)  { animation-delay: 0.10s; }
.social-link:nth-child(3)  { animation-delay: 0.15s; }
.social-link:nth-child(4)  { animation-delay: 0.20s; }
.social-link:nth-child(5)  { animation-delay: 0.25s; }
.social-link:nth-child(6)  { animation-delay: 0.30s; }
.social-link:nth-child(7)  { animation-delay: 0.35s; }
.social-link:nth-child(8)  { animation-delay: 0.40s; }
.social-link:nth-child(9)  { animation-delay: 0.45s; }
@keyframes socialPop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ── Submit button: shimmer sweep ── */
.submit-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  transition: none;
}
.submit-btn:hover::after {
  left: 150%;
  transition: left 0.5s ease;
}

/* ── Nav links: letter-spacing micro-animation ── */
nav ul li a {
  letter-spacing: 0.5px;
  transition: color 0.3s ease, letter-spacing 0.25s ease;
}
nav ul li a:hover {
  letter-spacing: 1.5px;
}

/* ── Profile badge: entrance ── */
.profile-badge span {
  opacity: 0;
  animation: badgeSlideUp 0.6s ease forwards;
}
.profile-badge span:nth-child(1) { animation-delay: 0.8s; }
.profile-badge span:nth-child(2) { animation-delay: 1.0s; }
@keyframes badgeSlideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(14px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0);    }
}

/* ── Stat numbers: subtle scale pop when visible ── */
.stat-item {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
#about.visible .stat-item:nth-child(1) { opacity:1; transform:scale(1); transition-delay:0.1s; }
#about.visible .stat-item:nth-child(2) { opacity:1; transform:scale(1); transition-delay:0.25s; }
#about.visible .stat-item:nth-child(3) { opacity:1; transform:scale(1); transition-delay:0.4s; }

/* ── Timeline content: left-border grow ── */
.timeline-content {
  border-left: 3px solid #00aaff;
  background-clip: padding-box;
}
.timeline-item.visible .timeline-content {
  animation: borderGrow 0.6s ease forwards;
}
@keyframes borderGrow {
  from { border-left-color: transparent; }
  to   { border-left-color: #00aaff; }
}

/* ── Testimonial card: fade-in when scrolled into view ── */
.testimonial-card {
  border-left: 3px solid rgba(0,170,255,0.4);
  transition: opacity 0.5s ease, transform 0.5s ease,
              border-color 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card.in-view {
  opacity: 1;
  transform: translateY(0);
}
.testimonial-card:hover {
  border-left-color: #00ccff;
}

/* ── Certification cards: in-view reveal ── */
.certification-card {
  transition: opacity 0.5s ease, transform 0.5s ease,
              box-shadow 0.3s ease;
}
