/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Variables */
:root {
  --primary-color: #6c63ff;
  --secondary-color: #f50057;
  --background-color: #f9f9f9;
  --text-color: #333;
  --text-light: #777;
  --card-bg: #fff;
  --border-color: #eaeaea;
  --success-color: #28a745;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;

  /* Dark Mode Variables */
  --dark-bg: #121212;
  --dark-card-bg: #1e1e1e;
  --dark-text: #f0f0f0;
  --dark-text-light: #aaa;
  --dark-border: #333;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease;
}

body.dark-mode {
  background-color: var(--dark-bg);
  color: var(--dark-text);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.underline {
  height: 4px;
  width: 100px;
  background: var(--primary-color);
  margin: 0 auto;
  position: relative;
}

.underline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--secondary-color);
  transition: var(--transition);
}

.section-header:hover .underline::before {
  width: 100%;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  z-index: 1000;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  background: rgba(249, 249, 249, 0.8);
}

.dark-mode header {
  background: rgba(18, 18, 18, 0.8);
}

header.scrolled {
  padding: 1rem 2rem;
  box-shadow: var(--shadow);
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link:hover::after {
  width: 100%;
}

.theme-switch {
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

.theme-switch:hover {
  transform: rotate(30deg);
}

.mobile-menu {
  display: none;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--text-color);
  margin: 5px 0;
  transition: var(--transition);
}

.dark-mode .bar {
  background: var(--dark-text);
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--card-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 999;
  }

  .dark-mode .nav-links {
    background: var(--dark-card-bg);
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-menu {
    display: block;
    z-index: 1000;
  }

  .mobile-menu.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .mobile-menu.active .bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}

/* Hero Section */
.hero {
  position: relative;
  overflow: visible;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 2rem;
}

.hero::before,
.hero::after {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100vh;
  justify-content: space-between;
}

.spacer {
  flex-grow: 1;
  min-height: 10vh;
}

.hero-description,
.glitch-text,
.typing-text {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Dark mode adjustments for particles */
.dark-mode .hero-description,
.dark-mode .glitch-text,
.dark-mode .typing-text {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.glitch-text {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.highlight {
  color: var(--primary-color);
  position: relative;
}

.typing-text {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.typed-text {
  font-weight: 600;
  color: var(--primary-color);
}

.cursor {
  display: inline-block;
  width: 3px;
  background-color: var(--text-color);
  margin-left: 0.1rem;
  animation: blink 1s infinite;
}

.dark-mode .cursor {
  background-color: var(--dark-text);
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.primary-btn {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.6);
}

.secondary-btn {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.secondary-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary-color);
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.dark-mode .social-link {
  background: var(--dark-card-bg);
}

.social-link:hover {
  transform: translateY(-5px);
  color: white;
  background: var(--primary-color);
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}

.about-image {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Ambient particles canvas - vertically expanded invisible bound */
.ambient-particles-canvas {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 400px;
  margin: 1.5rem auto 0;
  pointer-events: none;
  opacity: 0.8;
  z-index: 0;
}

.about-image .image-container,
.about-text {
  position: relative;
  z-index: 1;
}

.image-container {
  position: relative;
  width: 340px;
  height: 380px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: var(--shadow);
  transition: var(--transition);
  margin: -450px auto 0;
  border: 5px solid rgba(108, 99, 255, 0.2);
}

.image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.2) 0%, rgba(245, 0, 87, 0.2) 100%);
  z-index: 1;
  border-radius: 50%;
}

.image-container img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.image-container:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(108, 99, 255, 0.3);
  border-color: rgba(108, 99, 255, 0.4);
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.dark-mode .about-text p {
  color: var(--dark-text-light);
}

.skills {
  margin-top: 2.5rem;
}

.skills h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.skills-container {
  position: relative;
  width: 100%;
  height: 300px;
  margin-bottom: 2rem;
}

#skills-canvas {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background-color: rgba(108, 99, 255, 0.05);
  transition: var(--transition);
}

.dark-mode #skills-canvas {
  background-color: rgba(108, 99, 255, 0.1);
}

.skill-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.skill-category {
  background: rgba(0, 0, 0, 0.02);
  border-radius: 10px;
  padding: 15px;
  transition: all 0.3s ease;
}

.dark-mode .skill-category {
  background: rgba(255, 255, 255, 0.03);
}

.skill-category:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.dark-mode .skill-category:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.skill-category h4 {
  font-size: 16px;
  margin: 0 0 12px 0;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.skill-category h4::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.skill-category:hover h4::after {
  width: 100%;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  display: inline-block;
  font-size: 0.85rem;
  padding: 4px 12px;
  background: rgba(108, 99, 255, 0.08);
  color: var(--text-color);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.dark-mode .skill-tag {
  background: rgba(108, 99, 255, 0.12);
  color: var(--light-color);
}

.skill-tag::before {
  content: attr(data-value)'%';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.skill-tag:hover, .skill-tag.active {
  transform: translateY(-1px);
  border-color: var(--primary-color);
  background: rgba(108, 99, 255, 0.15);
  box-shadow: 0 3px 8px rgba(108, 99, 255, 0.15);
}

.skill-tag:hover::before, .skill-tag.active::before {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .skill-category {
    padding: 12px;
  }
  
  .skill-tag {
    font-size: 0.8rem;
    padding: 3px 10px;
  }
}

/* Resume Card - Under Profile Picture */
.resume-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 1.25rem;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 100%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.1);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dark-mode .resume-card {
  background: var(--dark-card-bg);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(108, 99, 255, 0.2);
}

.resume-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 99, 255, 0.15);
}

.resume-card-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.resume-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(108, 99, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dark-mode .resume-icon {
  background: rgba(108, 99, 255, 0.15);
}

.resume-icon i {
  font-size: 1.2rem;
  color: var(--primary-color);
}

.resume-card-content h3 {
  font-size: 1.1rem;
  margin: 0 0 0.15rem 0;
  color: var(--text-color);
}

.resume-card-content p {
  color: var(--text-light);
  font-size: 0.85rem;
  margin: 0;
}

.resume-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.resume-actions .btn {
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.resume-preview-btn {
  background: var(--primary-color);
  color: white;
  border: none;
}

.resume-preview-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.resume-download-btn {
  background: transparent;
  color: var(--text-color);
  border: 1px solid rgba(108, 99, 255, 0.3);
}

.resume-download-btn:hover {
  background: rgba(108, 99, 255, 0.1);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.resume-actions .btn i {
  font-size: 0.95rem;
}

@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .image-container {
    margin-top: 0;
  }
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
  .image-container {
    width: 280px;
    height: 280px;
    margin-top: 0;
    margin-bottom: 25px;
  }
  
  .hero {
    padding-bottom: 6rem; /* Add extra space at hero bottom on mobile */
  }
  
  .hero-buttons {
    margin-bottom: 4rem; /* More space below buttons on mobile */
  }
}

@media (max-width: 576px) {
  /* Make hero section more compact */
  .hero {
    padding-bottom: 0; /* Remove extra bottom padding to tighten up the layout */
    min-height: 90vh; /* Control the overall section height */
  }

  .hero-content {
    justify-content: flex-start;
    padding-top: 2rem; /* Further reduced padding to bring content up more */
    height: auto; /* Allow content to fit naturally */
  }
  
  .hero-description {
    margin-bottom: 1rem; /* Reduced margin to tighten layout */
  }
  
  /* Increase particles visibility and height */
  #particles-canvas {
    margin-top: 30px; /* Even more reduced margin for higher positioning */
    height: 55vh; /* Reduced height to make room for buttons below */
    max-height: 380px; /* Add max-height constraint to prevent overflow */
    width: 100%;
    position: relative;
    cursor: grab; /* Show grabbing cursor to indicate interactivity */
    touch-action: none; /* Disable default touch behavior */
  }
  
  /* Improve spacing of elements below particles */
  .particles-controls {
    margin-top: 8px;
    margin-bottom: 15px; /* Add bottom margin to separate from hero buttons */
    justify-content: center;
    padding: 8px 0;
    gap: 10px; /* Better touch targets */
  }
  
  .particle-btn {
    font-size: 0.8rem; /* Slightly smaller font size */
    padding: 0.5rem 1rem; /* Slightly larger padding for better touch */
  }
  
  /* Adjust hero buttons positioning */
  .hero-buttons {
    margin-top: 0; /* Remove top margin */
    margin-bottom: 25px; /* Add space below buttons before About section */
  }
  
  /* Adjust spacer to help with overall layout */
  .spacer {
    min-height: 10px; /* Minimal spacer to tighten layout */
    flex-grow: 0; /* Don't let it grow */
  }
  
  /* Add space between hero and about sections */
  #about {
    padding-top: 2rem; /* Reduced padding at top of About section */
    margin-top: 1rem; /* Add margin to separate from hero content */
  }
  
  /* Improve profile image fit for mobile */
  .image-container {
    width: 220px;
    height: 220px;
    margin: 30px auto 25px;
    border-width: 3px; /* Further reduced border for cleaner look */
    box-shadow: 0 10px 25px rgba(108, 99, 255, 0.25); /* Enhanced shadow for better appearance */
  }
  
  .about-content {
    padding-top: 2rem;
  }
}

/* Projects Section */
.projects {
  position: relative;
  overflow: hidden;
}

/* Ambient particles in projects section */
.projects-particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.projects-particles-container canvas {
  width: 100%;
  height: 100%;
}

.projects .section-header,
.projects-masonry {
  position: relative;
  z-index: 1;
}

.filter-buttons {
  display: none; /* Removed filter buttons */
}

.projects-masonry {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  margin: 0 auto;
  max-width: 1400px;
  grid-auto-rows: minmax(100px, auto);
}

/* Project Card Styles */
.project-card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.dark-mode .project-card {
  background: var(--dark-card-bg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(108, 99, 255, 0.25);
}

.dark-mode .project-card:hover {
  box-shadow: 0 15px 40px rgba(108, 99, 255, 0.35);
}

/* Masonry Layout Sizes */
.masonry-large {
  grid-column: span 8;
  grid-row: span 6;
}

.masonry-medium {
  grid-column: span 6;
  grid-row: span 5;
}

.masonry-small {
  grid-column: span 4;
  grid-row: span 4;
}

/* Featured Badge */
.project-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
  }
  50% {
    box-shadow: 0 6px 25px rgba(108, 99, 255, 0.6);
  }
}

/* Project Image */
.project-img {
  height: 100%;
  min-height: 280px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.05);
}

.masonry-large .project-img {
  min-height: 400px;
}

.masonry-medium .project-img {
  min-height: 300px;
}

.dark-mode .project-img {
  background: rgba(255, 255, 255, 0.02);
}

/* Image Slides Container */
.project-img-slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.project-img-slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  flex-basis: 100%;
}

/* Image Navigation */
.project-img-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 0 10px;
}

.project-card:hover .project-img-nav {
  opacity: 1;
}

.img-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  border: none;
  font-size: 1.2rem;
  transition: var(--transition);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.img-nav-btn:hover {
  background: var(--primary-color);
  box-shadow: 0 6px 12px rgba(108, 99, 255, 0.4);
}

.img-nav-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.img-nav-counter {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .img-nav-counter {
  opacity: 1;
}

/* Project Icon (for keylogger) */
.project-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
  color: white;
  box-shadow: 0 8px 20px rgba(108, 99, 255, 0.3);
  transition: var(--transition);
}

.project-card:hover .project-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(108, 99, 255, 0.5);
}

.project-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.masonry-large .project-content {
  padding: 2.5rem;
}

.project-content h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
  color: var(--text-color);
}

.masonry-large .project-content h3 {
  font-size: 1.8rem;
}

.dark-mode .project-content h3 {
  color: var(--dark-text);
}

.project-content h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.masonry-large .project-content h3::after {
  width: 80px;
  height: 4px;
}

.project-content p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.7;
  flex-grow: 1;
}

.masonry-large .project-content p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.dark-mode .project-content p {
  color: var(--dark-text-light);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-tech span {
  background: rgba(108, 99, 255, 0.1);
  color: var(--primary-color);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

.dark-mode .project-tech span {
  background: rgba(108, 99, 255, 0.2);
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.project-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--background-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.dark-mode .project-link {
  background: var(--dark-bg);
}

.project-link:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  transform: scale(1.1);
}

/* Responsive adjustments for masonry */
@media (max-width: 1200px) {
  .masonry-large {
    grid-column: span 12;
    grid-row: span 5;
  }
  
  .masonry-medium {
    grid-column: span 6;
    grid-row: span 4;
  }
  
  .masonry-small {
    grid-column: span 6;
    grid-row: span 4;
  }
}

@media (max-width: 992px) {
  .projects-masonry {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
  }
  
  .masonry-large,
  .masonry-medium,
  .masonry-small {
    grid-column: span 6;
    grid-row: auto;
  }
  
  .masonry-large .project-img {
    min-height: 320px;
  }
  
  .masonry-medium .project-img {
    min-height: 280px;
  }
}

@media (max-width: 768px) {
  .projects-masonry {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .masonry-large,
  .masonry-medium,
  .masonry-small {
    grid-column: span 1;
  }
  
  .project-img,
  .masonry-large .project-img,
  .masonry-medium .project-img {
    min-height: 240px;
  }
  
  .project-content,
  .masonry-large .project-content {
    padding: 1.5rem;
  }
  
  .project-content h3,
  .masonry-large .project-content h3 {
    font-size: 1.3rem;
  }
  
  .project-content p,
  .masonry-large .project-content p {
    font-size: 0.95rem;
  }
}

/* Experience Section - Simplified Timeline */
.experience {
  position: relative;
  overflow: hidden;
}

/* Ambient 3D particles container */
.experience-particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.experience-particles-container canvas {
  width: 100%;
  height: 100%;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
  z-index: 1;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.3);
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  width: 24px;
  height: 24px;
  background: var(--primary-color);
  border-radius: 50%;
  left: 50%;
  top: 30px;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 0 6px rgba(108, 99, 255, 0.2), 0 0 20px rgba(108, 99, 255, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 6px rgba(108, 99, 255, 0.2), 0 0 20px rgba(108, 99, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(108, 99, 255, 0.1), 0 0 30px rgba(108, 99, 255, 0.6);
  }
}

.timeline-content {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  max-width: 45%;
  margin-left: auto;
  transition: var(--transition);
  border: 1px solid rgba(108, 99, 255, 0.1);
}

.dark-mode .timeline-content {
  background: var(--dark-card-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(108, 99, 255, 0.2);
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 0;
  margin-right: auto;
}

.timeline-date {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.15), rgba(245, 0, 87, 0.15));
  color: var(--primary-color);
  border-radius: 25px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 600;
  border: 1px solid rgba(108, 99, 255, 0.2);
}

.dark-mode .timeline-date {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.2), rgba(245, 0, 87, 0.2));
  border-color: rgba(108, 99, 255, 0.3);
}

.timeline-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  color: var(--primary-color);
  font-weight: 700;
}

.timeline-content h4 {
  margin-bottom: 1rem;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text-light);
}

.dark-mode .timeline-content h4 {
  color: var(--dark-text-light);
}

.timeline-content p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.dark-mode .timeline-content p {
  color: var(--dark-text-light);
}

.timeline-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.timeline-skill {
  background: rgba(108, 99, 255, 0.1);
  color: var(--primary-color);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  transition: var(--transition);
  border: 1px solid rgba(108, 99, 255, 0.2);
  font-weight: 500;
}

.dark-mode .timeline-skill {
  background: rgba(108, 99, 255, 0.2);
  border-color: rgba(108, 99, 255, 0.3);
}

.timeline-skill:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.timeline-icon {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  box-shadow: 0 5px 20px rgba(108, 99, 255, 0.4);
}

.timeline-item:hover .timeline-content {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(108, 99, 255, 0.3);
}

.dark-mode .timeline-item:hover .timeline-content {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 992px) {
  .timeline::before {
    left: 30px;
  }
  
  .timeline-dot {
    left: 30px;
  }
  
  .timeline-content {
    max-width: calc(100% - 70px);
    margin-left: 70px;
    padding: 1.5rem;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 70px;
    margin-right: 0;
  }
  
  .timeline-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .timeline-content {
    padding: 1.2rem;
  }
  
  .timeline-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .timeline-content h3 {
    font-size: 1.2rem;
  }
  
  .timeline-content h4 {
    font-size: 0.95rem;
  }
}

/* Contact Section */
.contact {
  background: var(--background-color);
  position: relative;
  overflow: hidden;
}

.dark-mode .contact {
  background: var(--dark-bg);
}

/* Ambient particles in contact section */
.contact-particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.contact-particles-container canvas {
  width: 100%;
  height: 100%;
}

.contact .section-header,
.contact-content {
  position: relative;
  z-index: 1;
}

.contact-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-card {
  background: var(--card-bg);
  padding: 3rem 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  text-decoration: none;
  color: inherit;
  display: block;
}

.dark-mode .contact-card {
  background: var(--dark-card-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(108, 99, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.contact-card:hover::before {
  left: 100%;
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(108, 99, 255, 0.2);
  border-color: var(--primary-color);
}

.dark-mode .contact-card:hover {
  box-shadow: 0 15px 40px rgba(108, 99, 255, 0.3);
}

.contact-card[data-copy]:active {
  transform: translateY(-8px) scale(0.98);
}

.contact-card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 10px 30px rgba(108, 99, 255, 0.3);
  transition: var(--transition);
}

.contact-card:hover .contact-card-icon {
  transform: scale(1.1) rotateY(360deg);
  box-shadow: 0 15px 40px rgba(108, 99, 255, 0.5);
}

.contact-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
  font-weight: 600;
}

.contact-card p {
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  word-break: break-word;
}

.dark-mode .contact-card p {
  color: var(--dark-text);
}

.copy-hint {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
  opacity: 0;
  transform: translateY(-10px);
  transition: var(--transition);
  margin-top: 0.8rem;
}

.dark-mode .copy-hint {
  color: var(--dark-text-light);
}

.contact-card:hover .copy-hint {
  opacity: 1;
  transform: translateY(0);
}

.contact-card-link .copy-hint {
  color: var(--primary-color);
}

/* Copy Notification */
.copy-notification {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 10px 30px rgba(108, 99, 255, 0.4);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  font-weight: 500;
}

.copy-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.copy-notification i {
  font-size: 1.3rem;
}

@media (max-width: 768px) {
  .contact-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .contact-card {
    padding: 2.5rem 1.5rem;
  }
  
  .contact-card-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }
}

/* Footer */
footer {
  background: var(--card-bg);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

.dark-mode footer {
  background: var(--dark-card-bg);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-content p {
  margin-bottom: 10px;
}

.tech-note {
  font-size: 0.8rem;
  color: var(--text-light);
  opacity: 0.8;
}

.dark-mode .tech-note {
  color: var(--dark-text-light);
}

.dark-mode .footer-content p {
  color: var(--dark-text-light);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

@media (max-width: 576px) {
  .footer-content {
    flex-direction: column;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(108, 99, 255, 0.6);
}

/* Resume Preview Modal */
.resume-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.resume-modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.resume-modal-content {
  background: var(--card-bg);
  border-radius: 20px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
}

.dark-mode .resume-modal-content {
  background: var(--dark-card-bg);
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.resume-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 2px solid rgba(108, 99, 255, 0.2);
}

.resume-modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.resume-modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.resume-modal-close:hover {
  background: rgba(108, 99, 255, 0.1);
  transform: rotate(90deg);
}

.resume-modal-body {
  flex: 1;
  overflow: hidden;
  padding: 1rem;
  min-height: 500px;
}

#resumeIframe {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border-radius: 10px;
  background: white;
}

.resume-modal-footer {
  padding: 1.5rem 2rem;
  border-top: 2px solid rgba(108, 99, 255, 0.2);
  display: flex;
  justify-content: center;
}

.resume-modal-footer .btn {
  min-width: 200px;
}

@media (max-width: 768px) {
  .resume-modal {
    padding: 1rem;
  }
  
  .resume-modal-content {
    max-height: 95vh;
  }
  
  .resume-modal-header {
    padding: 1rem;
  }
  
  .resume-modal-header h3 {
    font-size: 1.2rem;
  }
  
  .resume-modal-body {
    min-height: 400px;
  }
  
  #resumeIframe {
    min-height: 400px;
  }
  
  .resume-modal-footer {
    padding: 1rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

.glitch-text:hover {
  animation: glitch 0.3s linear infinite;
}

/* Responsive Design */
@media (max-width: 992px) {
  .section-header h2 {
    font-size: 2rem;
  }

  .glitch-text {
    font-size: 2.5rem;
  }

  .typing-text {
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  section {
    padding: 4rem 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .glitch-text {
    font-size: 2rem;
  }
}

/* Loading Animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--background-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: 0.5s;
}

.dark-mode .loading {
  background: var(--dark-bg);
}

.loading.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(108, 99, 255, 0.2);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 3D Robot Styles */
#robot-container {
  width: 100%;
  max-width: 400px;
  height: 300px;
  margin: 0 auto 2rem;
  position: relative;
}

#robot-canvas {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(108, 99, 255, 0.05);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.dark-mode #robot-canvas {
  background: rgba(108, 99, 255, 0.1);
}

#robot-canvas:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(108, 99, 255, 0.2);
}

.robot-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.robot-btn {
  padding: 0.5rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--primary-color);
  border-radius: 30px;
  color: var(--primary-color);
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.dark-mode .robot-btn {
  background: var(--dark-card-bg);
  color: var(--primary-color);
}

.robot-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* Particle System Styles */
#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: all;
  margin-top: 0;
  cursor: grab;
}

.particles-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 10;
  margin-top: auto;
  padding-top: 0;
}

.particle-btn {
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border: 1px solid var(--primary-color);
  border-radius: 30px;
  color: var(--primary-color);
  font-family: inherit;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.dark-mode .particle-btn {
  background: rgba(18, 18, 18, 0.6);
  color: var(--primary-color);
}

.particle-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(108, 99, 255, 0.3);
}

/* Card glare effect */
.card-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: overlay;
  transition: opacity 0.3s ease;
}

.skill-flow-container {
  width: 100%;
  height: 250px;
  position: relative;
  margin-bottom: 25px;
  overflow: hidden;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.05) 100%);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.dark-mode .skill-flow-container {
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.08) 100%);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

#skill-flow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#skill-flow canvas {
  position: absolute;
  top: 0;
  left: 0;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

.skill-tag {
  padding: 8px 15px;
  background: var(--primary-color);
  color: white;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.2);
}

.dark-mode .skill-tag {
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.skill-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: all 0.6s ease;
  z-index: -1;
}

.skill-tag:hover, .skill-tag.active {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(108, 99, 255, 0.4);
}

.skill-tag:hover::before, .skill-tag.active::before {
  left: 100%;
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.3s ease;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

.lightbox-img-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.lightbox-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  gap: 20px;
}

.lightbox-prev,
.lightbox-next {
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.3s ease;
  padding: 10px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  transform: scale(1.2);
}

.lightbox-counter {
  color: white;
  font-size: 16px;
  min-width: 60px;
  text-align: center;
}

@media (max-width: 576px) {
  #particles-canvas {
    margin-top: 40px; /* Further reduced top margin to position particles even higher */
    height: 70vh; /* Increased height for better visibility */
    width: 100%;
    position: relative;
    cursor: grab; /* Show grabbing cursor to indicate interactivity */
    touch-action: none; /* Disable default touch behavior */
  }
  
  .dark-mode #particles-canvas {
    /* Maintain dark mode styles without the instruction text */
  }
  
  /* Bring particle controls higher and improve visibility */
  .particles-controls {
    margin-top: 5px; /* Reduced top margin to bring controls up with particles */
    justify-content: center;
    padding: 10px 0;
    gap: 12px; /* Increased gap for better touch targets */
  }
  
  /* Improve profile image fit for mobile */
  .image-container {
    width: 220px;
    height: 220px;
    margin: 30px auto 25px;
    border-width: 3px; /* Further reduced border for cleaner look */
    box-shadow: 0 10px 25px rgba(108, 99, 255, 0.25); /* Enhanced shadow for better appearance */
  }
  
  .about-content {
    padding-top: 2rem;
  }
  
  /* Adjust spacer to help with overall layout */
  .spacer {
    min-height: 20vh; /* Reduced spacer height to bring everything up */
  }
}

/* Resume Preview Modal */
.resume-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.resume-modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.resume-modal-content {
  background: var(--card-bg);
  border-radius: 20px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
}

.dark-mode .resume-modal-content {
  background: var(--dark-card-bg);
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.resume-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 2px solid rgba(108, 99, 255, 0.2);
}

.resume-modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.resume-modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.resume-modal-close:hover {
  background: rgba(108, 99, 255, 0.1);
  transform: rotate(90deg);
}

.resume-modal-body {
  flex: 1;
  overflow: hidden;
  padding: 1rem;
  min-height: 500px;
}

#resumeIframe {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border-radius: 10px;
  background: white;
}

.resume-modal-footer {
  padding: 1.5rem 2rem;
  border-top: 2px solid rgba(108, 99, 255, 0.2);
  display: flex;
  justify-content: center;
}

.resume-modal-footer .btn {
  min-width: 200px;
}

@media (max-width: 768px) {
  .resume-modal {
    padding: 1rem;
  }
  
  .resume-modal-content {
    max-height: 95vh;
  }
  
  .resume-modal-header {
    padding: 1rem;
  }
  
  .resume-modal-header h3 {
    font-size: 1.2rem;
  }
  
  .resume-modal-body {
    min-height: 400px;
  }
  
  #resumeIframe {
    min-height: 400px;
  }
  
  .resume-modal-footer {
    padding: 1rem;
  }
} 