
    /* ========================================
       BASE STYLES & RESET
       ======================================== */
    
    /* Universal reset - removes default margins and padding */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    
    /* Body styling - sets default font and smooth scrolling */
    body, html {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      scroll-behavior: smooth;
      background: #0a0a0a; /* Dark background color */
      color: #e0e0e0; /* Light text color for dark theme */
      overflow-x: hidden;
    }
    
    /* ========================================
       INTRO SPLASH SCREEN
       POSITIONING: Fixed fullscreen overlay
       CHANGE: Adjust TOTAL_DURATION in JS to control how long intro shows
       ======================================== */
    
   #intro {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: 9999;

  display: flex;
  justify-content: center;
  align-items: center;

  overflow: hidden;
}

    
    #intro.fade-out {
      opacity: 0;
      pointer-events: none;
    }
    
    /* Intro image - DO NOT CHANGE image source in CSS, keep in HTML */
    #intro video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

    
/* ========================================
   NAVIGATION BAR
   Fixed, clean, no hover jank
   ======================================== */

.navbar {
  background-color: #0d0d0d;
  padding: 15px 24px;
  border-bottom: 1px solid #1a1a1a;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Navigation links container */
.nav-links {
  display: flex;
  gap: 70px;
  flex: 1;
  justify-content: center;
}

/* Individual nav links */
.navbar a {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;

  padding: 6px 0;                 /* vertical breathing room only */
  display: inline-block;          /* CRITICAL: underline matches text */
  position: relative;

  transition: color 0.25s ease;
}



/* Custom underline */
.navbar a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;

  width: 100%;
  height: 2px;
  background-color: #3a7bc8;

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

/* Hover state */
.navbar a:hover {
  color: #ffffff;
}

.navbar a:hover::before {
  transform: scaleX(1);
}

    
    /* Contact icons container - right side of navbar */
    .contact-icons {
      display: flex;
      gap: 15px; /* Space between icons */
      align-items: center;
    }
    
    /* Individual contact icon styling */
    .contact-icons a {
      color: #e0e0e0;
      font-size: 20px; /* Icon size */
      transition: color 0.3s ease, transform 0.3s ease;
      padding: 5px;
    }
    
    .contact-icons a:hover {
      color: #3a7bc8; /* Icon hover color */
      transform: scale(1.2); /* Size increase on hover */
    }
    
    /* Remove divider from contact icons */
    .contact-icons a::after {
      display: none;
    }
    
    /* ========================================
       SECTION BASE STYLES
       CHANGE: padding to adjust section spacing
       CHANGE: min-height to adjust section height
       ======================================== */
    
    section {
      padding: 120px 40px 80px; /* Top (includes navbar space), sides, bottom */
      min-height: 100vh; /* Minimum height: 100vh = full viewport height */
      position: relative;
    }
    
    /* Section headings - CHANGE: font-size, color, margin */
    section h2 {
      font-size: 2.8rem; /* Heading size */
      color: #ffffff;
      margin-bottom: 60px; /* Space below heading */
      text-align: center;
      font-weight: 700;
      letter-spacing: 1px; /* Space between letters */
    }
    
    /* ========================================
       HOME SECTION
       BACKGROUND: Fixed background image
       CHANGE: background-image url in style attribute on section
       ======================================== */
    
    #home {
      background-image: url('Media/Rain.jpeg');
      background-size: cover; /* CHANGE: 'contain' to see full image without cropping */
      background-position: top center; /* CHANGE: 'top', 'bottom', 'left', 'right' */
      background-attachment: fixed; /* DO NOT CHANGE - keeps background fixed on scroll */
      height: 150vh;
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
      color: #ffffff;
    }
    
    /* Overlay for better text readability - CHANGE: rgba values for transparency */
    .home-overlay {
      background-color: rgba(0, 0, 0, 0.7); /* Last value (0.7) = 70% opacity */
      padding: 50px; /* Inner spacing */
      border-radius: 12px; /* Rounded corners */
      max-width: 900px; /* Maximum width */
      backdrop-filter: blur(5px); /* Blur effect behind overlay */
    }
    
    /* Home section heading - CHANGE: font-size, margin, color */
    .home-overlay h1 {
      font-size: 3rem; /* Heading size */
      margin-bottom: 25px;
      font-weight: 700;
      line-height: 1.3; /* Space between lines */
      color: #ffffff;
    }
    
    /* Home section paragraphs - CHANGE: font-size, line-height */
    .home-overlay p {
      font-size: 1.15rem; /* Text size */
      line-height: 1.8; /* Space between lines (1.8 = 180% of font size) */
      margin-bottom: 20px;
      color: #e8e8e8;
    }
    
    /* ========================================
       SKILLS SECTION
       BACKGROUND: Fixed background image
       CHANGE: background-image url in style attribute on section
       ======================================== */
    
    #skills {
      background-image: url('Media/Lab.jpeg');
      background-attachment: fixed; /* DO NOT CHANGE - keeps background fixed on scroll */
      background-position: center;
      background-repeat: no-repeat;
      background-size: cover; /* Covers entire section */
      position: relative;
      padding-top: 180px; /* Extra top padding */
      min-height: 100vh; /* Ensures section covers full viewport */
    }
    
    /* ========================================
   SKILL LEVELS TABLE STYLES
   ======================================== */

/* Table Style */
.skill-table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  background: rgba(40, 40, 40, 0.4);
  border-radius: 8px;
  overflow: hidden;
}

.skill-table thead {
  background: rgba(58, 123, 200, 0.2);
}

.skill-table th {
  padding: 12px 15px;
  text-align: left;
  color: #3a7bc8;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 2px solid rgba(58, 123, 200, 0.3);
}

.skill-table td {
  padding: 10px 15px;
  color: #d0d0d0;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-table tbody tr:last-child td {
  border-bottom: none;
}

.skill-table tbody tr:hover {
  background: rgba(58, 123, 200, 0.1);
  transition: background 0.3s ease;
}

/* Proficiency Level Badges */
.level-high {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
  text-align: center;
  min-width: 60px;
}

.level-medium-high {
  background: linear-gradient(135deg, #3a7bc8, #5a9be8);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(58, 123, 200, 0.3);
  text-align: center;
  min-width: 60px;
}

.level-medium {
  background: linear-gradient(135deg, #ffc107, #ff9800);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
  text-align: center;
  min-width: 60px;
}

.level-basic {
  background: linear-gradient(135deg, #6c757d, #868e96);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
  text-align: center;
  min-width: 60px;
}

/* Responsive table adjustments */
@media (max-width: 768px) {
  .skill-table th,
  .skill-table td {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
  
  .level-high,
  .level-medium-high,
  .level-medium,
  .level-basic {
    padding: 3px 8px;
    font-size: 0.8rem;
    min-width: 50px;
  }
}
    /* Overlay box that bridges home and skills sections */
    /* POSITIONING: Absolute, centered - CHANGE: top value to adjust overlap */
    .skills-overlay-box {
      position: absolute;
      top: -120px; /* Negative value moves it up (overlaps with home section) */
      left: 50%;
      transform: translateX(-50%);
      background: rgba(20, 20, 20, 0.9); /* Dark semi-transparent background */
      padding: 40px; /* Inner spacing */
      width: 70%; /* Width of box - CHANGE: to make wider/narrower */
      max-width: 800px;
      border-radius: 15px; /* Rounded corners */
      text-align: center;
      z-index: 2;
      backdrop-filter: blur(8px); /* Blur effect behind box */
      border: 1px solid #2a2a2a; /* Border color and thickness */
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); /* Shadow effect */
    }
    
    .skills-overlay-box h2 {
      margin-top: 0;
      color: #ffffff;
      font-size: 2.2rem; /* Heading size */
      margin-bottom: 15px;
    }
    
    .skills-overlay-box p {
      color: #d0d0d0;
      font-size: 1.1rem; /* Text size */
      margin-bottom: 25px;
      line-height: 1.6;
    }
    
    /* Download CV button - CHANGE: background-color, padding, font-size */
    .cv-button {
      display: inline-block;
      background-color: #3a7bc8; /* Button background color */
      color: #ffffff;
      padding: 12px 30px; /* Top/bottom, left/right padding */
      text-decoration: none;
      border-radius: 8px; /* Rounded corners */
      font-weight: 600;
      font-size: 1rem; /* Button text size */
      transition: background-color 0.3s ease, transform 0.2s ease;
      border: none;
      cursor: pointer;
    }
    
    .cv-button:hover {
      background-color: #2d5fa3; /* Darker shade on hover */
      transform: translateY(-2px); /* Slight lift effect */
    }
    
    /* Skills container - holds all skill boxes */
    .skills-container {
      display: grid;
      grid-template-columns: 1fr; /* Single column - CHANGE: '1fr 1fr' for 2 columns */
      gap: 50px; /* Space between skill boxes */
      margin-top: 60px;
      max-width: 1200px;
      margin-left: auto;
      margin-right: auto;
    }
    
    /* Individual skill category box */
    .skill-category {
      background: rgba(15, 15, 15, 0.85); /* Dark semi-transparent background */
      border-radius: 15px; /* Rounded corners */
      padding: 35px; /* Inner spacing */
      border: 1px solid #2a2a2a;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4); /* Shadow effect */
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .skill-category:hover {
      transform: translateY(-5px); /* Lift effect on hover */
      box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6); /* Stronger shadow */
    }
    
    .skill-category h3 {
      font-size: 1.8rem; /* Heading size */
      color: #3a7bc8; /* Heading color */
      margin-bottom: 25px;
      font-weight: 600;
    }
    
   /* Skill content layout - side by side */
    .skill-content {
      display: flex;
      align-items: flex-start; /* Align items to top */
      gap: 30px; /* Space between description and graph */
      flex-wrap: wrap; /* Wrap on small screens */
      flex-direction: row-reverse; /* CHANGED: Swaps graph to left, description to right */
    }
    
    /* Right side - skill description (was left) */
    .skill-description {
      flex: 1 1 60%; /* Takes 60% of width, can grow/shrink */
      min-width: 300px; /* Minimum width before wrapping */
    }
    
    .skill-description h4 {
      color: #3a7bc8;
      font-size: 1.1rem;
      margin-bottom: 15px;
      font-weight: 600;
    }
    
    .skill-description p {
      font-size: 1rem;
      line-height: 1.7;
      color: #d0d0d0;
    }
    
    /* Right side - skill graph */
   /* Left side - skill graph (was right) */
    .skill-graph {
      flex: 1 1 35%; /* Takes 35% of width */
      min-width: 300px; /* Increased for radar chart */
      background: rgba(30, 30, 30, 0.6);
      padding: 20px;
      border-radius: 10px;
      border: 1px solid #333;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    
    /* Radar chart container */
    .radar-chart {
      width: 100%;
      max-width: 300px;
      height: 300px;
      position: relative;
    }
    
    /* Remove old skill bar styles - they're no longer needed */
    .skill-item {
      display: none; /* Hide old skill bars */
    }
    
    .skill-item-header {
      display: flex;
      justify-content: space-between; /* Skill name left, level right */
      margin-bottom: 8px;
      font-size: 0.95rem;
      color: #b0b0b0;
    }
    
    /* Container for skill level bar */
    .skill-bar-container {
      background: rgba(50, 50, 50, 0.5);
      border-radius: 10px;
      height: 10px; /* Bar height */
      overflow: hidden;
      position: relative;
    }
    
    /* Filled portion of skill bar - CHANGE: background color */
    .skill-bar-fill {
      height: 100%;
      background: linear-gradient(90deg, #3a7bc8, #5a9be8); /* Gradient color */
      border-radius: 10px;
      width: 0%; /* Starts at 0% for animation */
      transition: width 1.5s ease; /* Animation duration when triggered */
    }
    
    /* Other skills list (no graph) */
    .other-skills ul {
      list-style: none; /* Remove bullet points */
      padding: 0;
    }
    
    .other-skills li {
      padding: 10px 0;
      font-size: 1.05rem;
      color: #d0d0d0;
      border-bottom: 1px solid #2a2a2a; /* Divider line */
    }
    
    .other-skills li:last-child {
      border-bottom: none; /* Remove line from last item */
    }
    
    /* ========================================
       EXPERIENCE SECTION - TIMELINE
       BACKGROUND: Fixed background image
       CHANGE: background-image url in style attribute
       ======================================== */
    
    #experience {
     background-size: cover;
      background-position: bottom;
      background-image: url('Media/Street.jpeg');
      background-attachment: fixed; /* DO NOT CHANGE */
     
    }
    
    #experience h2 {
      color: #ffffff;
      text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8); /* Text shadow for readability */
    }
    
    /* Timeline container */
    .timeline-container {
      position: relative;
      max-width: 1200px; /* Maximum width */
      margin: 60px auto;
      padding: 40px 0;
    }
    

   /* Vertical line in center - CHANGE: background color and width */
    .timeline-line {
      position: absolute;
      left: 50%;
      top: 0;
      width: 3px; /* Line thickness */
      background: linear-gradient(180deg, 
        rgba(58, 123, 200, 0.8) 0%,    /* Blue at top */
        rgba(90, 155, 232, 0.6) 50%,   /* Lighter blue middle */
        rgba(58, 123, 200, 0.8) 100%   /* Blue at bottom */
      );
      transform: translateX(-50%);
      z-index: 1;
      box-shadow: 0 0 10px rgba(58, 123, 200, 0.5); /* Glow effect */
    }
    
    /* Individual timeline item */
    .timeline-item {
      position: relative;
      width: 45%; /* Width of each side */
      padding: 20px;
      margin-bottom: 40px; /* Space between items */
      cursor: pointer;
      transition: opacity 0.3s ease;
    }
    
    /* Left side items - DO NOT CHANGE alignment */
    .timeline-item.left {
      left: 0;
      text-align: right;
      padding-right: 50px; /* Space from center line */
    }
    
    /* When left item is active (expanded), align text to left */
    .timeline-item.left.active {
      text-align: left;
    }
    
    /* Keep heading aligned right even when expanded */
    .timeline-item.left .timeline-content h3,
    .timeline-item.left .timeline-content h4 {
      text-align: right;
    }
    
    /* Align details to left when expanded */
    .timeline-item.left.active .details {
      text-align: left;
    }
    
    /* Right side items - DO NOT CHANGE alignment */
    .timeline-item.right {
      left: 55%; /* Positions on right side */
      text-align: left;
      padding-left: 50px;
    }
    
   /* Dot on timeline - CHANGE: width/height for dot size, background for color */
    .timeline-dot {
      position: absolute;
      top: 30px;
      width: 20px; /* Dot size */
      height: 20px;
      background: #3a7bc8; /* Dot color */
      border-radius: 50%; /* Makes it circular */
      border: 3px solid #0d0d0d; /* Outer border */
      z-index: 3; /* INCREASED: Now appears on top of line */
      transition: transform 0.3s ease, background 0.3s ease;
    }
    
    .timeline-item.left .timeline-dot {
      right: -10px; /* Positions dot on right edge of left items */
      transform: translateX(50%); /* Centers dot on the line */
    }
    
    .timeline-item.right .timeline-dot {
      left: -10px; /* Positions dot on left edge of right items */
      transform: translateX(-50%); /* Centers dot on the line */
    }
    
    .timeline-item:hover .timeline-dot {
      transform: scale(1.3); /* Enlarges dot on hover */
      background: #5a9be8;
    }
    
    /* Timeline content box */
    .timeline-content {
      background: rgba(15, 15, 15, 0.95); /* Dark background */
      padding: 25px; /* Inner spacing */
      border-radius: 12px; /* Rounded corners */
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5); /* Shadow effect */
      display: flex;
      align-items: center;
      gap: 20px; /* Space between logo and text */
      transition: all 0.3s ease;
      border: 1px solid #2a2a2a;
    }
    
    .timeline-content:hover {
      transform: translateY(-3px); /* Lift effect */
      box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
      background: rgba(25, 25, 25, 0.98);
    }
    
    /* Company/University logo - DO NOT CHANGE image src */
    .timeline-logo {
      width: 60px; /* Logo width */
      height: 60px; /* Logo height */
      object-fit: contain; /* Keeps aspect ratio */
      border-radius: 8px;
      flex-shrink: 0; /* Prevents logo from shrinking */
    }
    
     .timeline-logo1 {
      width: 90px; /* Logo width */
      height: 90px; /* Logo height */
      object-fit: contain; /* Keeps aspect ratio */
      border-radius: 8px;
      flex-shrink: 0; /* Prevents logo from shrinking */
    }
    
     .timeline-logo2 {
      width: 75px; /* Logo width */
      height: 75px; /* Logo height */
      object-fit: contain; /* Keeps aspect ratio */
      border-radius: 8px;
      flex-shrink: 0; /* Prevents logo from shrinking */
    }
    
    
    .timeline-content h3 {
      margin: 0 0 10px 0;
      font-size: 1.4rem;
      color: #3a7bc8;
      font-weight: 600;
    }
    
    .timeline-content h4 {
      margin: 5px 0;
      font-size: 1rem;
      color: #b0b0b0;
      font-weight: 400;
    }
    
    /* Hidden details - revealed on click */
    .timeline-item .details {
      max-height: 0; /* Hidden by default */
      overflow: hidden;
      transition: max-height 0.5s ease; /* Animation duration */
      color: #d0d0d0;
      margin-top: 15px;
      font-size: 0.95rem;
      line-height: 1.7;
    }
    
    .timeline-item .details ul {
      margin-top: 10px;
      padding-left: 20px;
    }
    
    .timeline-item .details li {
      margin-bottom: 8px;
      list-style-type: disc; /* Bullet points */
    }
    
    /* Active state when clicked */
    .timeline-item.active .details {
      max-height: 2000px; /* Large enough to show all content */
    }
    
    /* ========================================
       PUBLICATIONS SECTION
       BACKGROUND: Fixed background image
       CHANGE: background-image url in style attribute
       ======================================== */
    
    #publications {
      background-image: url('Media/NDSU.jpeg');
      background-size: cover; /* DO NOT CHANGE */
      background-position: center; /* DO NOT CHANGE */
      background-attachment: fixed; /* DO NOT CHANGE */
      padding: 100px 20px;
      min-height: 100vh;
    }
    
    #publications h2 {
      color: #ffffff;
      text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    }
    
    /* Container for publication cards */
    .cards-container {
      display: flex;
      justify-content: center;
      flex-wrap: wrap; /* Wraps to new line if needed */
      gap: 40px; /* Space between cards */
      margin-top: 60px;
      max-width: 1400px;
      margin-left: auto;
      margin-right: auto;
    }
    
    /* Individual flip card - CHANGE: width/height for card size */
    .flip-card {
      background-color: transparent;
      width: 380px; /* Card width - INCREASED */
      height: 520px; /* Card height - INCREASED */
      perspective: 1000px; /* 3D effect depth */
    }
    
    /* Inner card that flips */
    .flip-card-inner {
      position: relative;
      width: 100%;
      height: 100%;
      text-align: center;
      transition: transform 0.7s ease; /* Flip animation duration */
      transform-style: preserve-3d;
      border-radius: 20px;
    }
    
    /* Trigger flip on hover */
    .flip-card:hover .flip-card-inner {
      transform: rotateY(180deg); /* Flips 180 degrees */
    }
    
    /* Front and back faces of card */
    .flip-card-front, .flip-card-back {
      position: absolute;
      width: 100%;
      height: 100%;
      backface-visibility: hidden; /* Hides back when showing front */
      border-radius: 20px;
      display: flex;
      flex-direction: column;
      justify-content: flex-start; /* Changed from center to start */
      align-items: center;
      padding: 30px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
      overflow-y: auto; /* Makes content scrollable */
    }
    
    /* Custom scrollbar for flip cards */
    .flip-card-back::-webkit-scrollbar {
      width: 6px;
    }
    
    .flip-card-back::-webkit-scrollbar-track {
      background: rgba(255, 255, 255, 0.1);
      border-radius: 10px;
    }
    
    .flip-card-back::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.3);
      border-radius: 10px;
    }
    
    .flip-card-back::-webkit-scrollbar-thumb:hover {
      background: rgba(255, 255, 255, 0.5);
    }
    
    /* Scroll indicator hint */
    .flip-card-back::after {
      content: "↓ Scroll for full content";
      position: sticky;
      bottom: 10px;
      font-size: 0.75rem;
      color: rgba(255, 255, 255, 0.6);
      margin-top: auto;
      padding-top: 10px;
    }
    
    /* Front of card - CHANGE: background color */
    .flip-card-front {
      background: rgba(20, 20, 20, 0.95); /* Dark background */
      color: #ffffff;
      border: 2px solid #2a2a2a;
    }
    
    /* Back of card - CHANGE: background color */
    .flip-card-back {
      background: rgba(30, 60, 100, 0.95); /* Blue-tinted background */
      color: #ffffff;
      transform: rotateY(180deg); /* Pre-rotated for flip effect */
      border: 2px solid #3a7bc8;
      padding-bottom: 50px; /* Extra padding at bottom for scroll indicator */
    }
    
    /* Icon on front of card - CHANGE: font-size for icon size */
    .card-icon {
      font-size: 60px; /* Icon size */
      margin-bottom: 20px;
    }
    
    .flip-card-front h3 {
      font-size: 1.8rem;
      margin: 10px 0;
      color: #3a7bc8;
    }
    
    .flip-card-back h4 {
      font-size: 1.3rem;
      margin-bottom: 15px;
      color: #ffffff;
      font-weight: 600;
    }
    
    .flip-card-back p {
      font-size: 0.95rem;
      line-height: 1.6;
      margin-bottom: 15px;
      text-align: left;
    }
    
    /* Download button on back of card */
    .download-btn {
      display: inline-block;
      margin-top: 15px;
      padding: 10px 20px;
      background: #3a7bc8;
      color: #ffffff;
      text-decoration: none;
      border-radius: 8px;
      font-weight: 600;
      transition: background 0.3s ease, transform 0.2s ease;
    }
    
    .download-btn:hover {
      background: #2d5fa3;
      transform: translateY(-2px);
    }
    
    /* ========================================
       PROJECTS SECTION
       CHANGE: background color, padding
       ======================================== */
    
   #projects {
  background:
    radial-gradient(circle at 20% 30%, rgba(60, 130, 255, 0.15), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(0, 180, 255, 0.12), transparent 50%),
    linear-gradient(135deg, #0a0f1e, #0b1325 60%);
  padding: 100px 20px;
  min-height: 100vh;
}

    
    #projects h2 {
      color: #ffffff;
      margin-bottom: 40px;
    }
    
    /* Two-column layout for projects */
    .projects-grid {
      display: grid;
      grid-template-columns: 2fr 1fr; /* Left column wider than right */
      gap: 60px; /* Space between columns */
      max-width: 1400px;
      margin: 0 auto;
      align-items: start;
    }
    
    /* Left column - major projects */
    .major-projects {
      background: rgba(20, 20, 20, 0.8);
      padding: 40px;
      border-radius: 15px;
      border: 1px solid #2a2a2a;
    }
    
    .major-projects h3 {
      font-size: 2rem;
      color: #3a7bc8;
      margin-bottom: 30px;
      font-weight: 600;
    }
    
    /* Individual project card */
    .project-card {
      background: rgba(30, 30, 30, 0.6);
      padding: 25px;
      border-radius: 12px;
      margin-bottom: 25px;
      border-left: 4px solid #3a7bc8; /* Accent border on left */
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      cursor: pointer;
    }
    
    .project-card:hover {
      transform: translateX(10px); /* Shifts right on hover */
      box-shadow: 0 8px 25px rgba(58, 123, 200, 0.3);
    }
    
    .project-card h4 {
      font-size: 1.4rem;
      color: #ffffff;
      margin-bottom: 15px;
      font-weight: 600;
    }
    
    .project-card p {
      font-size: 1rem;
      line-height: 1.7;
      color: #d0d0d0;
    }
    
    /* Right column - image gallery */
    .project-gallery-side {
      position: sticky; /* Sticks while scrolling */
      top: 100px; /* Distance from top when stuck */
      max-height: calc(300vh - 150px); /* Limits height to viewport minus navbar */
      overflow: hidden; /* Hides overflow for clean look */
    }
    
    .project-gallery-side h3 {
      font-size: 1.8rem;
      color: #3a7bc8;
      margin-bottom: 20px;
      text-align: center;
    }
    
    /* Scrolling image gallery */
    .gallery-wrapper {
      overflow: hidden;
      border-radius: 15px;
      position: relative;
      background: rgba(20, 20, 20, 0.8);
      padding: 20px;
      border: 1px solid #2a2a2a;
      max-height: 2000px; /* Limits gallery height */
    }
    
    .gallery-track {
      display: flex;
      flex-direction: column; /* Vertical scroll */
      gap: 15px;
      animation: scrollVertical 30s linear infinite; /* Animation name and duration */
    }
    
    .gallery-track:hover {
      animation-play-state: paused; /* Pauses on hover */
    }
    
    /* Individual gallery image - DO NOT CHANGE src */
    .gallery-track img {
      width: 100%;
      height: 200px; /* Image height */
      object-fit: cover; /* Crops to fit */
      border-radius: 10px;
      transition: transform 0.3s ease;
    }
    
    .gallery-track img:hover {
      transform: scale(1.2); /* Slight zoom on hover */
    }
    
    /* Vertical scrolling animation */
    @keyframes scrollVertical {
      0% {
        transform: translateY(0);
      }
      100% {
        transform: translateY(-50%); /* Scrolls half the height */
      }
    }
    
    /* Minor projects list */
    .minor-projects {
      margin-top: 30px;
      padding-top: 30px;
      border-top: 2px solid #2a2a2a;
    }
    
    .minor-projects h4 {
      font-size: 1.5rem;
      color: #3a7bc8;
      margin-bottom: 20px;
    }
    
    .minor-projects-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr); /* 2 columns */
      gap: 15px;
    }
    
    .minor-project-item {
      background: rgba(40, 40, 40, 0.4);
      padding: 15px;
      border-radius: 8px;
      font-size: 0.95rem;
      color: #d0d0d0;
      border-left: 2px solid #555;
      transition: background 0.3s ease, border-color 0.3s ease;
    }
    
    .minor-project-item:hover {
      background: rgba(50, 50, 50, 0.6);
      border-left-color: #3a7bc8;
    }
    
    /* ========================================
       EDUCATION SECTION
       BACKGROUND: Fixed background image
       CHANGE: background-image url in HTML
       ======================================== */
    
    #education {
      background-image: url('Media/Books.jpeg');
      background-size: cover; /* DO NOT CHANGE */
      background-position: center; /* DO NOT CHANGE */
      background-attachment: fixed; /* DO NOT CHANGE */
      padding: 100px 40px;
      text-align: center;
      min-height: 80vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }
    
    #education h2 {
      color: #ffffff;
      font-size: 2.8rem;
      margin-bottom: 50px;
      text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    }
    
    /* Education content box */
    .education-content {
      background: rgba(15, 15, 15, 0.9);
      padding: 50px;
      border-radius: 15px;
      max-width: 900px;
      border: 2px solid #2a2a2a;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    }
    
    .education-content h3 {
      font-size: 2rem;
      color: #3a7bc8;
      margin-bottom: 15px;
      font-weight: 600;
    }
    
    .education-content h4 {
      font-size: 1.3rem;
      color: #b0b0b0;
      margin: 10px 0;
      font-weight: 400;
    }
    
    .education-content p {
      font-size: 1.1rem;
      line-height: 1.8;
      color: #d0d0d0;
      margin: 15px 0;
    }
    
    /* ========================================
       HONORS & AWARDS SECTION
       CHANGE: background color, padding
       ======================================== */
    
   #achievements {
  position: relative;
  background-image: url('Media/Collage.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  overflow: hidden;
}

    
    /* Animated background particles effect */
    #achievements::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-image: 
        radial-gradient(circle at 20% 30%, rgba(58, 123, 200, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(90, 155, 232, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(58, 123, 200, 0.05) 0%, transparent 60%);
      animation: particleFloat 20s ease-in-out infinite;
      pointer-events: none;
    }
    
    @keyframes particleFloat {
      0%, 100% { transform: translateY(0px); }
      50% { transform: translateY(-30px); }
    }
    
    #achievements h2 {
      color: #ffffff;
      margin-bottom: 70px;
      position: relative;
      z-index: 1;
    }
    
    /* Trophy display in hexagonal pattern */
    .trophy-grid {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 40px;
      position: relative;
      z-index: 1;
    }
    
    /* Trophy display rows */
    .trophy-row {
      display: flex;
      justify-content: center;
      gap: 80px; /* Space between trophies */
      margin-bottom: 20px;
      flex-wrap: wrap; /* Wraps on small screens */
      position: relative;
    }
    
    /* Connecting lines between trophies */
    .trophy-row::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 10%;
      right: 10%;
      height: 2px;
      background: linear-gradient(90deg, transparent, rgba(58, 123, 200, 0.3), transparent);
      z-index: -1;
    }
    
    .bottom-row {
      margin-top: 0; /* Removes extra spacing for bottom row */
    }
    
    /* Individual trophy circle - CHANGE: width/height for trophy size */
    .trophy-circle {
      background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
      width: 200px; /* Trophy width - INCREASED */
      height: 200px; /* Trophy height - INCREASED */
      border-radius: 50%; /* Makes it circular */
      box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.5),
        inset 0 2px 10px rgba(255, 255, 255, 0.05);
      padding: 25px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
      border: 3px solid #2a2a2a;
      position: relative;
      overflow: visible;
      cursor: pointer;
    }
    
    /* Pulsing glow ring effect */
    .trophy-circle::after {
      content: '';
      position: absolute;
      top: -10px;
      left: -10px;
      right: -10px;
      bottom: -10px;
      border-radius: 50%;
      border: 2px solid transparent;
      transition: all 0.4s ease;
    }
    
    /* Hover effect on trophy */
    .trophy-circle:hover {
      transform: scale(1.2) translateY(-15px) rotate(5deg); /* Enlarges, lifts, and tilts */
      box-shadow: 
        0 20px 50px rgba(58, 123, 200, 0.4),
        inset 0 2px 15px rgba(255, 255, 255, 0.1);
      border-color: #3a7bc8;
    }
    
    .trophy-circle:hover::after {
      border-color: #3a7bc8;
      top: -15px;
      left: -15px;
      right: -15px;
      bottom: -15px;
      animation: ringPulse 1.5s ease-out infinite;
    }
    
    @keyframes ringPulse {
      0% {
        transform: scale(1);
        opacity: 1;
      }
      100% {
        transform: scale(1.3);
        opacity: 0;
      }
    }
    
    /* Glow effect on hover */
    .trophy-circle::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: radial-gradient(circle, rgba(58, 123, 200, 0.2) 0%, transparent 70%);
      opacity: 0;
      transition: opacity 0.4s ease;
    }
    
    .trophy-circle:hover::before {
      opacity: 1;
    }
    
    /* Trophy icon - CHANGE: font-size for icon size */
    .trophy-circle .icon {
      font-size: 3.5rem; /* Icon size - INCREASED */
      margin-bottom: 15px;
      filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
      transition: all 0.4s ease;
    }
    
    .trophy-circle:hover .icon {
      transform: scale(1.2) rotateY(360deg);
      filter: drop-shadow(0 8px 16px rgba(58, 123, 200, 0.8));
    }
    
    .trophy-circle h4 {
      margin: 5px 0;
      font-size: 1.1rem;
      font-weight: 600;
      color: #ffffff;
      text-align: center;
      transition: color 0.3s ease;
    }
    
    .trophy-circle:hover h4 {
      color: #3a7bc8;
    }
    
    .trophy-circle p {
      margin: 5px 0;
      font-size: 0.9rem;
      color: #b0b0b0;
      text-align: center;
      transition: color 0.3s ease;
    }
    
    .trophy-circle:hover p {
      color: #d0d0d0;
    }
    
    /* Rank badges on trophy circles */
    .trophy-circle[data-rank]::before {
      content: attr(data-rank);
      position: absolute;
      top: -15px;
      right: -15px;
      width: 45px;
      height: 45px;
      background: linear-gradient(135deg, #3a7bc8, #5a9be8);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      font-size: 0.9rem;
      color: white;
      border: 3px solid #0a0a0a;
      box-shadow: 0 4px 12px rgba(58, 123, 200, 0.5);
      z-index: 10;
    }
    
    /* ========================================
       CONTACT SECTION
       CHANGE: background color, padding
       ======================================== */
    
    #contact {
  position: relative;
  background-image: url('Media/Kakashi.jpeg'); /* change if needed */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding: 100px 40px;
  text-align: center;
  min-height: 60vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  overflow: hidden;
}

    
    #contact h2 {
      color: #ffffff;
      margin-bottom: 50px;
    }
    
    /* Contact information container */
    .contact-info {
      display: flex;
      flex-direction: column;
      gap: 30px;
      max-width: 600px;
      background: rgba(20, 20, 20, 0.8);
      padding: 50px;
      border-radius: 15px;
      border: 2px solid #2a2a2a;
    }
    
    /* Individual contact item */
    .contact-item {
      display: flex;
      align-items: center;
      gap: 20px;
      font-size: 1.2rem;
      color: #d0d0d0;
      transition: transform 0.3s ease;
    }
    
    .contact-item:hover {
      transform: translateX(10px); /* Shifts right on hover */
    }
    
    .contact-item .icon {
      font-size: 2rem;
      color: #3a7bc8;
    }
    
    .contact-item a {
      color: #3a7bc8;
      text-decoration: none;
      transition: color 0.3s ease;
    }
    
    .contact-item a:hover {
      color: #5a9be8;
      text-decoration: underline;
    }
    

/* ========================================
   RADAR CHART FIX - Add fallback and better initialization
   ======================================== */

/* Ensure canvas has explicit dimensions */
.skill-graph canvas {
  width: 100% !important;
  height: 400px !important;
  max-width: 400px;
  margin: 0 auto;
}

/* ========================================
   MOBILE & TABLET RESPONSIVE FIXES
   Remove fixed backgrounds, add mobile layouts
   ======================================== */

/* Base responsive typography */
@media (max-width: 768px) {
  section h2 {
    font-size: 2rem;
  }
  
  section {
    padding: 100px 20px 60px;
  }
}

/* ========================================
   HOME SECTION - MOBILE FIX
   ======================================== */

@media (max-width: 1024px) {
  #home {
    background-attachment: scroll; /* Changed from fixed for mobile */
    height: 100vh; /* Reduced height on mobile */
  }
  
  .home-overlay {
    width: 90%;
    padding: 30px;
  }
  
  .home-overlay h1 {
    font-size: 2rem;
  }
  
  .home-overlay h2 {
    font-size: 1.2rem !important;
  }
}

/* ========================================
   SKILLS SECTION - MOBILE FIX
   ======================================== */

@media (max-width: 1024px) {
  #skills {
    background-attachment: scroll; /* Changed from fixed */
    padding-top: 120px;
  }
  
  .skills-overlay-box {
    width: 90%;
    padding: 25px;
    top: -80px;
  }
  
  .skills-overlay-box h2 {
    font-size: 1.6rem;
  }
  
  .skills-overlay-box p {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .skill-content {
    flex-direction: column;
  }
  
  .skill-description,
  .skill-graph {
    flex: 1 1 100%;
    min-width: 100%;
  }
  
  .skill-graph {
    max-width: 100%;
  }
  
  .skill-category h3 {
    font-size: 1.4rem;
  }
}

/* ========================================
   EXPERIENCE SECTION - MOBILE FIX
   ======================================== */

@media (max-width: 1024px) {
  #experience {
    background-attachment: scroll; /* Changed from fixed */
  }
}

@media (max-width: 768px) {
  .timeline-container {
    padding: 20px 0;
  }
  
  .timeline-line {
    left: 30px;
  }
  
  .timeline-item {
    width: calc(100% - 60px);
    left: 60px !important;
    text-align: left !important;
    padding: 15px;
    padding-left: 20px;
  }
  
  .timeline-item.left,
  .timeline-item.right {
    padding-left: 20px;
    padding-right: 15px;
  }
  
  .timeline-item.left .timeline-content h3,
  .timeline-item.left .timeline-content h4 {
    text-align: left;
  }
  
  .timeline-dot {
    left: -40px !important;
    right: auto !important;
    transform: translateX(0) !important;
  }
  
  .timeline-content {
    flex-direction: column;
    gap: 15px;
  }
  
  .timeline-logo,
  .timeline-logo1,
  .timeline-logo2 {
    width: 50px;
    height: 50px;
  }
}

/* ========================================
   EDUCATION SECTION - MOBILE FIX
   ======================================== */

@media (max-width: 1024px) {
  #education {
    background-attachment: scroll; /* Changed from fixed */
  }
}

@media (max-width: 768px) {
  .education-content {
    padding: 30px 20px;
  }
  
  .education-content h3 {
    font-size: 1.5rem;
  }
  
  .education-content h4 {
    font-size: 1.1rem;
  }
  
  .education-content p {
    font-size: 0.95rem;
  }
}

/* ========================================
   PUBLICATIONS SECTION - MOBILE FIX
   ======================================== */

@media (max-width: 1024px) {
  #publications {
    background-attachment: scroll; /* Changed from fixed */
  }
}

@media (max-width: 768px) {
  .flip-card {
    width: 100%;
    max-width: 350px;
    height: 450px;
  }
  
  .cards-container {
    gap: 30px;
  }
}

/* ========================================
   PROJECTS SECTION - MOBILE FIX
   ======================================== */

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .project-gallery-side {
    position: relative;
    top: 0;
    max-height: 500px;
  }
  
  .gallery-wrapper {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .major-projects {
    padding: 25px;
  }
  
  .major-projects h3 {
    font-size: 1.6rem;
  }
  
  .project-card {
    padding: 20px;
  }
  
  .project-card h4 {
    font-size: 1.2rem;
  }
  
  .minor-projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   ACHIEVEMENTS SECTION - GRADIENT BACKGROUND
   ======================================== */

#achievements {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(10, 15, 30, 0.95) 0%,
    rgba(20, 30, 50, 0.95) 25%,
    rgba(30, 50, 80, 0.95) 50%,
    rgba(20, 30, 50, 0.95) 75%,
    rgba(10, 15, 30, 0.95) 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  padding: 100px 20px;
  min-height: 100vh;
  overflow: hidden;
}

/* Remove old background image */
#achievements::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('Media/Collage.png');
  background-size: cover;
  background-position: center;
  opacity: 0.15; /* Very subtle background image overlay */
  pointer-events: none;
  z-index: 0;
}

/* Ensure content is above background */
#achievements > * {
  position: relative;
  z-index: 1;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (max-width: 768px) {
  .trophy-row {
    gap: 30px;
  }
  
  .trophy-circle {
    width: 150px;
    height: 150px;
    padding: 20px;
  }
  
  .trophy-circle .icon {
    font-size: 2.5rem;
  }
  
  .trophy-circle h4 {
    font-size: 0.9rem;
  }
  
  .trophy-circle p {
    font-size: 0.8rem;
  }
}

/* ========================================
   CONTACT SECTION - MOBILE FIX
   ======================================== */

@media (max-width: 1024px) {
  #contact {
    background-attachment: scroll; /* Changed from fixed */
  }
}

@media (max-width: 768px) {
  .contact-info {
    padding: 30px 20px;
  }
  
  .contact-item {
    font-size: 1rem;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .contact-item:hover {
    transform: translateX(0);
  }
}

/* ========================================
   NAVBAR - MOBILE FIX
   ======================================== */

@media (max-width: 1024px) {
  .navbar {
    flex-direction: column;
    padding: 12px 20px;
    gap: 15px;
  }
  
  .nav-links {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .navbar a {
    font-size: 0.9rem;
  }
  
  .contact-icons {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    gap: 15px;
  }
  
  .navbar a {
    font-size: 0.85rem;
    padding: 4px 0;
  }
}

/* ========================================
   PARALLAX FIX - DISABLE ON MOBILE
   ======================================== */

@media (max-width: 1024px) {
  /* Override any parallax JavaScript effects */
  section {
    background-position: center !important;
  }
}



