/* Custom CSS Variables */
:root {
  --primary-color: #6c5ce7;
  --secondary-color: #a29bfe;
  --accent-color: #fd79a8;
  --dark-color: #2d3436;
  --light-color: #ddd6fe;
  --white-color: #ffffff;
  --gray-color: #636e72;
  --bg-dark: #1a1a2e;
  --bg-darker: #16213e;
  --bg-card: #0f3460;
  --bg-light-dark: #2c2c54;
  --text-light: #e1e5e9;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.3);
  --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.5);
  --border-radius: 15px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-light);
  overflow-x: hidden;
  background: var(--bg-dark);
}

html {
  scroll-behavior: smooth;
}

/* Utility Classes */
.section-padding {
  padding: 100px 0;
  background: var(--bg-dark);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  color: var(--text-light);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-color);
  max-width: 600px;
  margin: 0 auto;
}

.bg-light {
  background: var(--bg-darker) !important;
}

/* Navigation Styles */
.custom-navbar {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-navbar.scrolled {
  background: rgba(26, 26, 46, 0.98);
  box-shadow: var(--shadow-light);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  font-weight: 500;
  color: var(--text-light) !important;
  margin: 0 0.5rem;
  position: relative;
  transition: var(--transition);
}

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

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

/* Hero Section */
.hero-section {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#vanta-globe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 46, 0.3);
  z-index: -1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white-color);
  margin-bottom: 1rem;
}

.neon-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(79, 172, 254, 0.5);
  animation: neonPulse 2s ease-in-out infinite alternate;
}

@keyframes neonPulse {
  from {
    text-shadow: 0 0 20px rgba(79, 172, 254, 0.5);
  }
  to {
    text-shadow: 0 0 40px rgba(79, 172, 254, 0.8);
  }
}

.hero-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.hero-buttons {
  margin-bottom: 3rem;
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.8);
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white-color);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* About Section */
.profile-image-wrapper {
  position: relative;
  display: inline-block;
}

.profile-image {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--white-color);
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
}

.profile-image:hover {
  transform: scale(1.05);
}

.profile-border {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: var(--gradient-primary);
  z-index: -1;
  animation: rotate 10s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.highlight {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: var(--white-color);
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.2rem;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
  color: var(--white-color);
}

/* Skills Section */
.skill-category {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  height: 100%;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--primary-color);
  box-shadow: 0 15px 35px rgba(108, 92, 231, 0.2);
}

.skill-category-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.skill-item {
  margin-bottom: 2rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.skill-name {
  font-weight: 600;
  color: var(--text-light);
}

.skill-percentage {
  font-weight: 600;
  color: var(--primary-color);
}

.skill-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.skill-progress {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  width: 0;
  transition: width 2s ease-in-out;
}

.skill-icons {
  display: flex;
  gap: 0.5rem;
}

.skill-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* Timeline Section */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 50%;
  padding-right: 2rem;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 50%;
  padding-left: 2rem;
  text-align: left;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 20px;
  background: var(--bg-card);
  border: 4px solid var(--primary-color);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-content {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--primary-color);
  box-shadow: 0 15px 35px rgba(108, 92, 231, 0.2);
}

.timeline-date {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

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

.timeline-image {
  margin-top: 1rem;
}

/* Projects Section */
.project-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
  border-color: var(--primary-color);
  box-shadow: 0 15px 35px rgba(108, 92, 231, 0.2);
}

.project-image {
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(108, 92, 231, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.project-image:hover .project-overlay {
  opacity: 1;
}

.project-image:hover img {
  transform: scale(1.1);
}

.project-content {
  padding: 1.5rem;
}

.project-content h5 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.project-content p {
  color: var(--gray-color);
  margin-bottom: 1rem;
}

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

.tech-tag {
  background: rgba(108, 92, 231, 0.2);
  color: var(--secondary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(108, 92, 231, 0.3);
}

.upcoming-project-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  height: 100%;
  border: 2px dashed var(--secondary-color);
}

.upcoming-content h5 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.btn-warning {
  background: var(--gradient-secondary);
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: 600;
  color: var(--white-color);
  transition: var(--transition);
}

.btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
  color: var(--white-color);
}

/* Contact Section */
.contact-section {
  background: var(--gradient-primary);
  color: var(--white-color);
}

.contact-email {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white-color);
  margin-bottom: 2rem;
}

.contact-social {
  margin-top: 2rem;
}

.contact-social .social-link {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white-color);
  padding: 1rem 2rem;
  border-radius: 50px;
  height: 50px;
  width: 200px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-social .social-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  color: var(--white-color);
}

/* Footer */
.footer {
  background: var(--bg-darker);
  color: var(--text-light);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .timeline-line {
    left: 20px;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 60px;
    margin-right: 0;
    padding-left: 1rem;
    padding-right: 1rem;
    text-align: left;
  }

  .timeline-marker {
    left: 20px;
  }

  .profile-image {
    width: 250px;
    height: 250px;
  }

  .contact-email {
    font-size: 1.5rem;
  }

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

  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 576px) {
  .section-padding {
    padding: 60px 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .profile-image {
    width: 200px;
    height: 200px;
  }

  .skill-category,
  .timeline-content,
  .project-card,
  .upcoming-project-card {
    margin-bottom: 1rem;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Loading Animation */
.loading {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.loading.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Hover Effects */
.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-5px);
}

/* Background Patterns */
.bg-pattern {
  background-image: radial-gradient(circle at 25% 25%, rgba(108, 92, 231, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(162, 155, 254, 0.1) 0%, transparent 50%);
}

/* Glassmorphism Effect */
.glass {
  background: rgba(15, 52, 96, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Text Gradient */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Button Animations */
.btn-animated {
  position: relative;
  overflow: hidden;
}

.btn-animated::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: left 0.5s;
}

.btn-animated:hover::before {
  left: 100%;
}

/* Dark theme enhancements */
.section-title {
  color: var(--text-light);
}

.section-subtitle {
  color: var(--gray-color);
}

/* Enhanced card hover effects for dark theme */
.skill-category:hover,
.timeline-content:hover,
.project-card:hover {
  box-shadow: 0 15px 35px rgba(108, 92, 231, 0.2);
}

/* Splash Screen Styles */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.splash-content {
  text-align: center;
}

.glitch-text {
  font-size: 4rem;
  font-weight: 900;
  color: var(--white-color);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: glitch 2s infinite;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch-text::before {
  animation: glitch-1 2s infinite;
  color: #ff0040;
  z-index: -1;
}

.glitch-text::after {
  animation: glitch-2 2s infinite;
  color: #00ffff;
  z-index: -2;
}

@keyframes glitch {
  0%,
  100% {
    text-shadow: 0.05em 0 0 #ff0040, -0.05em -0.025em 0 #00ffff, 0.025em 0.05em 0 #ffff00;
  }
  15% {
    text-shadow: 0.05em 0 0 #ff0040, -0.05em -0.025em 0 #00ffff, 0.025em 0.05em 0 #ffff00;
  }
  16% {
    text-shadow: -0.05em -0.025em 0 #ff0040, 0.025em 0.025em 0 #00ffff, -0.05em -0.05em 0 #ffff00;
  }
  49% {
    text-shadow: -0.05em -0.025em 0 #ff0040, 0.025em 0.025em 0 #00ffff, -0.05em -0.05em 0 #ffff00;
  }
  50% {
    text-shadow: 0.025em 0.05em 0 #ff0040, 0.05em 0 0 #00ffff, 0 -0.05em 0 #ffff00;
  }
  99% {
    text-shadow: 0.025em 0.05em 0 #ff0040, 0.05em 0 0 #00ffff, 0 -0.05em 0 #ffff00;
  }
}

@keyframes glitch-1 {
  0%,
  100% {
    transform: none;
    opacity: 1;
  }
  7% {
    transform: skew(-0.5deg, -0.9deg);
    opacity: 0.75;
  }
  10% {
    transform: none;
    opacity: 1;
  }
  27% {
    transform: none;
    opacity: 1;
  }
  30% {
    transform: skew(0.8deg, -0.1deg);
    opacity: 0.75;
  }
  35% {
    transform: none;
    opacity: 1;
  }
  52% {
    transform: none;
    opacity: 1;
  }
  55% {
    transform: skew(-1deg, 0.2deg);
    opacity: 0.75;
  }
  50% {
    transform: none;
    opacity: 1;
  }
}

@keyframes glitch-2 {
  0%,
  100% {
    transform: none;
    opacity: 0.25;
  }
  32% {
    transform: none;
    opacity: 0.25;
  }
  33% {
    transform: skew(0.9deg, 0.2deg);
    opacity: 0.75;
  }
  38% {
    transform: none;
    opacity: 0.25;
  }
  71% {
    transform: none;
    opacity: 0.25;
  }
  72% {
    transform: skew(0.9deg, -0.6deg);
    opacity: 0.75;
  }
  75% {
    transform: none;
    opacity: 0.25;
  }
}

.loading-bar {
  width: 300px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin: 2rem auto 0;
  overflow: hidden;
}

.loading-progress {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width 2.5s ease;
}

.main-content {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Modern Skills Section */
.skills-category {
  margin-bottom: 3rem;
}

.skills-category-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-color);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.skill-item-modern {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  cursor: pointer;
}

.skill-item-modern:hover {
  transform: translateY(-3px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 25px rgba(108, 92, 231, 0.2);
}

.skill-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.skill-icon-modern {
  font-size: 1.5rem;
  transition: var(--transition);
}

.skill-name-modern {
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Responsive adjustments for skills */
@media (max-width: 768px) {
  .glitch-text {
    font-size: 2.5rem;
  }

  .loading-bar {
    width: 250px;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
  }

  .skill-item-modern {
    padding: 0.75rem;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .skill-name-modern {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .glitch-text {
    font-size: 2rem;
  }

  .loading-bar {
    width: 200px;
  }
}
/* Tech Stack Section */
#tech-stack {
  background-color: #000000;
  color: #ffffff;
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.max-w-7xl {
  max-width: 80rem;
  margin: 0 auto;
}

/* Layout utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-start {
  align-items: flex-start;
}

.gap-20 {
  gap: 5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-2 {
  gap: 0.5rem;
}

/* Grid system */
.grid {
  display: grid;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Width utilities */
.w-full {
  width: 100%;
}

.w-6 {
  width: 1.5rem;
}

.h-6 {
  height: 1.5rem;
}

/* Text utilities */
.text-white {
  color: #ffffff;
}

.text-gray-400 {
  color: #9ca3af;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.font-bold {
  font-weight: 700;
}

/* Position utilities */
.sticky {
  position: sticky;
}

.top-18 {
  top: 4.5rem;
}

.relative {
  position: relative;
}

.overflow-hidden {
  overflow: hidden;
}

/* Background utilities */
.bg-black {
  background-color: #000000;
}

.bg-white {
  background-color: #ffffff;
}

/* Padding utilities */
.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.p-0\.5 {
  padding: 0.125rem;
}

/* Border utilities */
.rounded {
  border-radius: 0.25rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* Interactive elements */
.cursor-pointer {
  cursor: pointer;
}

.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow,
    transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Category labels */
.category-label {
  position: relative;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.category-label:hover {
  color: #ffffff;
  transform: translateX(0.5rem);
}

.category-label::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transition: width 0.3s ease;
}

.category-label:hover::before {
  width: 0.75rem;
}

/* Tech items */
.tech-item {
  padding: 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.tech-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.tech-item img {
  transition: transform 0.3s ease;
}

.tech-item:hover img {
  transform: scale(1.1);
}

/* Reveal animation */
.reveal-section {
  opacity: 0;
  transform: translateY(2rem);
  transition: all 0.8s ease;
}

.reveal-section.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Color utilities for icons */
.text-green-400 {
  color: #4ade80;
}

/* Responsive design */
@media (min-width: 640px) {
  .sm\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .md\:flex-row {
    flex-direction: row;
  }

  .md\:w-1\/5 {
    width: 20%;
  }

  .md\:w-4\/5 {
    width: 80%;
  }

  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #6a6a6a;
}

/* Loading animation for images */
img {
  transition: opacity 0.3s ease;
}

img:not([src]) {
  opacity: 0;
}

/* Focus states for accessibility */
.category-label:focus,
.tech-item:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Animation delays for staggered reveal */
.reveal-section:nth-child(1) {
  transition-delay: 0.1s;
}
.reveal-section:nth-child(2) {
  transition-delay: 0.2s;
}
.reveal-section:nth-child(3) {
  transition-delay: 0.3s;
}
.reveal-section:nth-child(4) {
  transition-delay: 0.4s;
}

/* Section Styles */
#tech-stack {
    position: relative;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    overflow: hidden;
}

/* Title Animation */
.tech-title {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation Pills */
.nav-pill {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #9ca3af;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.nav-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.nav-pill.active {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

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

.nav-pill:hover::before {
    left: 100%;
}

/* Tech Cards */
.tech-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.tech-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.tech-card.animate {
    animation: cardFadeIn 0.6s ease forwards;
}

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tech Icons */
.tech-icon {
    font-size: 2.5rem;
    height: 60px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.tech-card:hover .tech-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

/* NextJS icon fix */
.devicon-nextjs-original {
    color: white !important;
    background: black;
    border-radius: 50%;
    padding: 2px;
}

/* Tech Names */
.tech-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #e5e7eb;
    text-align: center;
    transition: color 0.3s ease;
}

.tech-card:hover .tech-name {
    color: #ffffff;
}

/* Floating Particles */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(59, 130, 246, 0.6);
    border-radius: 50%;
    animation: float 5s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    #tech-stack {
        padding: 60px 20px;
    }
    
    .tech-title {
        font-size: 2.5rem;
    }
    
    .nav-pill {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .tech-card {
        padding: 20px 12px;
    }
    
    .tech-icon {
        font-size: 2rem;
        height: 50px;
        width: 50px;
    }
    
    .tech-name {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    #tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .tech-card {
        padding: 16px 8px;
    }
    
    .tech-icon {
        font-size: 1.8rem;
        height: 45px;
        width: 45px;
    }
}

/* Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.tech-card:nth-child(odd) {
    animation-delay: 0.1s;
}

.tech-card:nth-child(even) {
    animation-delay: 0.2s;
}

/* Hover Effects for Categories */
.tech-card[data-category="frontend"]:hover {
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.tech-card[data-category="backend"]:hover {
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.2);
}

.tech-card[data-category="database"]:hover {
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.2);
}

.tech-card[data-category="tools"]:hover {
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.2);
}

/* Gradient Background Effects */
#tech-stack::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Pulse Animation for Active Cards */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.tech-card:hover {
    animation: pulse 2s infinite;
}

/* Smooth Transitions */
* {
    transition: all 0.3s ease;
}

/* Focus States for Accessibility */
.nav-pill:focus,
.tech-card:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Dark Mode Optimizations */
@media (prefers-color-scheme: dark) {
    .tech-card {
        background: rgba(255, 255, 255, 0.02);
        border-color: rgba(255, 255, 255, 0.05);
    }
    
    .tech-card:hover {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.15);
    }
}