/* ==================================
   DYNAMIC ISLAND NAVIGATION STYLES
   ================================== */

/* CSS Variables for Dynamic Island */
:root {
  --island-bg: rgba(10, 10, 10, 0.8);
  --island-border: rgba(255, 255, 255, 0.1);
  --island-hover-bg: rgba(15, 15, 15, 0.9);
  --island-hover-border: rgba(0, 255, 136, 0.3);
  --island-glow: rgba(0, 255, 136, 0.1);
  --island-glow-hover: rgba(0, 255, 136, 0.2);
  --nav-text: rgba(255, 255, 255, 0.7);
  --nav-text-hover: var(--accent);
  --nav-text-active: var(--accent);
}

/* Main Dynamic Island Container */
#dynamic-nav {
  width: 55%;
  max-width: 700px;
  min-width: 350px;
}

.dynamic-island {
  position: relative;
  width: 100%;
  height: 66px;
  transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Island Background with Perfect Pill Shape */
.island-background {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 3, 0.88);
  backdrop-filter: blur(28px) saturate(200%);
  border-radius: 5px; /* Exactly half of height for perfect pill */
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Enhanced Premium Glow Effect */
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.6),
    0 2px 0 rgba(255, 255, 255, 0.12) inset,
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 80px rgba(0, 255, 136, 0.1),
    0 20px 60px rgba(0, 0, 0, 0.3);
}

.dynamic-island:hover .island-background {
  background: rgba(8, 8, 8, 0.92);
  border-color: rgba(0, 255, 136, 0.35);
  box-shadow: 
    0 16px 56px rgba(0, 0, 0, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 0 0 1px rgba(0, 255, 136, 0.2),
    0 0 100px rgba(0, 255, 136, 0.15);
  transform: scale(1.03);
}

/* Island Content Layout */
.island-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 28px;
}

/* Brand Logo */
.brand-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.brand-logo:hover {
  transform: scale(1.12) rotate(8deg);
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.6);
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  color: #000;
  font-family: 'Space Grotesk', sans-serif;
  z-index: 2;
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.logo-glow {
  position: absolute;
  inset: -3px;
  background: conic-gradient(from 0deg, transparent, var(--accent), transparent);
  border-radius: 25px;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: rotate 6s linear infinite;
}

.brand-logo:hover .logo-glow {
  opacity: 0.9;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  letter-spacing: 0.025em;
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::before,
.nav-link.active::before {
  opacity: 1;
  transform: scale(1);
}

.nav-link:hover {
  color: var(--accent);
  transform: translateY(-1px);
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}

.nav-link.active {
  color: var(--accent);
  background: rgba(0, 255, 136, 0.12);
  font-weight: 700;
}

.link-text {
  position: relative;
  z-index: 2;
}

.link-indicator {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: transform 0.3s ease;
}

.nav-link:hover .link-indicator,
.nav-link.active .link-indicator {
  transform: translateX(-50%) scaleX(1);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }
}

.hamburger {
  position: relative;
  width: 20px;
  height: 16px;
}

.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 7px;
}

.hamburger span:nth-child(3) {
  top: 14px;
}

.mobile-toggle.active .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active .hamburger span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Active Indicator */
.active-indicator {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 0;
  height: 32px;
  background: linear-gradient(45deg, var(--accent), var(--accent-dark));
  border-radius: 16px;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1;
}

/* Mobile Menu */
.mobile-menu {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 10;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.mobile-menu-background {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mobile-nav-links {
  position: relative;
  z-index: 2;
  list-style: none;
  margin: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mobile-nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-nav-link:hover::before {
  transform: translateX(100%);
}

.mobile-nav-link:hover {
  color: var(--accent);
  background: rgba(0, 255, 136, 0.05);
  transform: translateX(8px);
}

.mobile-nav-link i {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

/* Navigation Particles */
.nav-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 30px;
  pointer-events: none;
}

.nav-particles::before,
.nav-particles::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.6;
  animation: particleFloat 4s ease-in-out infinite;
}

.nav-particles::before {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
}

.nav-particles::after {
  top: 70%;
  right: 20%;
  animation-delay: 2s;
}

/* Scrolled State */
#dynamic-nav.scrolled .island-background {
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(30px) saturate(200%);
  border-color: rgba(0, 255, 136, 0.2);
}

#dynamic-nav.scrolled {
  transform: translateX(-50%) scale(0.95);
}

/* Enhanced Hover Effects */
.dynamic-island:hover .nav-particles::before,
.dynamic-island:hover .nav-particles::after {
  animation-duration: 2s;
  opacity: 1;
}

/* Enhanced Animations */
@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-10px) rotate(180deg);
    opacity: 1;
  }
}

@keyframes navGlow {
  0%, 100% {
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.05),
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 0 50px var(--island-glow);
  }
  50% {
    box-shadow: 
      0 12px 48px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(0, 255, 136, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.15),
      0 0 80px var(--island-glow-hover);
  }
}

@keyframes linkPulse {
  0%, 100% {
    background: rgba(255, 255, 255, 0.05);
  }
  50% {
    background: rgba(0, 255, 136, 0.1);
  }
}

/* Enhanced Island Animations */
.dynamic-island {
  animation: navGlow 4s ease-in-out infinite;
}

.dynamic-island:hover {
  animation-duration: 2s;
}

/* Link Active State Animation */
.nav-link.active::before {
  animation: linkPulse 2s ease-in-out infinite;
}

/* Enhanced Mobile Menu Animations */
.mobile-menu {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Performance Optimizations */
.dynamic-island,
.island-background,
.nav-link,
.mobile-nav-link {
  will-change: transform;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  .dynamic-island,
  .island-background,
  .nav-link,
  .mobile-nav-link,
  .mobile-menu {
    transition-duration: 0.1s;
  }
  
  .nav-particles::before,
  .nav-particles::after {
    animation: none;
  }
}

/* Focus States for Better Accessibility */
.nav-link:focus,
.mobile-nav-link:focus,
.mobile-toggle:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ==================================
   END DYNAMIC ISLAND STYLES
   ================================== */

/* ==================================
   SCROLL-BASED PROJECTS SHOWCASE STYLES
   ================================== */

/* Projects Showcase Section */
#projects-showcase {
  position: relative;
  overflow: hidden;
}

/* Scrolling Projects Container */
.projects-marquee {
  display: flex;
  width: max-content;
  animation: scrollProjects 40s linear infinite;
  gap: 2rem;
  padding: 1rem 0;
}

.projects-marquee:hover {
  animation-play-state: paused;
}

/* Project Showcase Card */
.project-showcase-card {
  position: relative;
  min-height: 55vh;
  min-width: 400px;
  max-width: 400px;
  border-radius: 1rem;
  overflow: hidden;
  border: 2px solid rgba(128, 128, 128, 0.3);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.8), rgba(31, 41, 55, 0.6));
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.project-showcase-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(0, 255, 136, 0.2),
    0 0 40px rgba(0, 255, 136, 0.1);
}

/* Project Image Container */
.project-image-container {
  position: relative;
  width: 100%;
  height: 65%;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.project-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.project-showcase-card:hover .project-overlay {
  opacity: 1;
}

.project-showcase-card:hover .project-image {
  opacity: 0;
}

.project-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Project Details */
.project-details {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  backdrop-filter: blur(10px);
  padding: 1.5rem 1rem 1rem;
  color: white;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.project-showcase-card:hover .project-details {
  transform: translateY(0);
}

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
  font-family: 'Space Grotesk', sans-serif;
}

.project-category {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

/* Tech Tags */
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-tag {
  padding: 0.25rem 0.75rem;
  background: rgba(0, 255, 136, 0.15);
  color: var(--accent);
  font-size: 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 255, 136, 0.3);
  font-weight: 500;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: rgba(0, 255, 136, 0.25);
  transform: scale(1.05);
}

/* Project Links */
.project-links {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.project-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 50%;
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.125rem;
}

.project-link:hover {
  background: var(--accent);
  color: var(--primary);
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

/* Scroll Animation */
@keyframes scrollProjects {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Controls */
#scroll-left,
#scroll-right,
#pause-play {
  position: relative;
  overflow: hidden;
}

#scroll-left::before,
#scroll-right::before,
#pause-play::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.2), transparent);
  transition: left 0.5s ease;
}

#scroll-left:hover::before,
#scroll-right:hover::before,
#pause-play:hover::before {
  left: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
  .project-showcase-card {
    min-width: 320px;
    max-width: 320px;
    min-height: 50vh;
  }
  
  .projects-marquee {
    gap: 1rem;
    animation-duration: 60s;
  }
  
  .project-details {
    padding: 1rem 0.75rem 0.75rem;
  }
  
  .project-title {
    font-size: 1.25rem;
  }
  
  .tech-tag {
    font-size: 0.6875rem;
    padding: 0.125rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .project-showcase-card {
    min-width: 280px;
    max-width: 280px;
  }
}

/* Pause/Play State */
.projects-marquee.paused {
  animation-play-state: paused;
}

/* Direction Controls */
.projects-marquee.reverse {
  animation-direction: reverse;
}

/* Enhanced Hover Effects */
.project-showcase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(0, 255, 136, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 3;
}

.project-showcase-card:hover::before {
  opacity: 1;
}

/* Floating Animation for Icons */
.project-image i {
  animation: iconFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

/* Show More Projects Link Enhancement */
#show-more-projects {
  position: relative;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
}

#show-more-projects::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

#show-more-projects:hover::after {
  width: 100%;
}

#show-more-projects:hover {
  transform: translateX(8px);
}

/* Performance Optimizations */
.project-showcase-card,
.project-image,
.project-overlay,
.project-details {
  will-change: transform, opacity;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .projects-marquee {
    animation: none;
  }
  
  .project-showcase-card:hover {
    transform: none;
  }
  
  .project-image i {
    animation: none;
  }
}

/* Focus States */
.project-showcase-card:focus,
#scroll-left:focus,
#scroll-right:focus,
#pause-play:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ==================================
   END SCROLL-BASED PROJECTS STYLES
   ================================== */

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

:root {
    --primary: #0a0a0a;
    --accent: #00ff88;
    --accent-dark: #00cc6a;
    --text-light: #a0a0a0;
    --text-primary: #ffffff;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--primary);
    color: var(--text-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: var(--gray-900);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dark);
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 40px rgba(0, 255, 136, 0.8);
        transform: scale(1.05);
    }
}

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

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Enhanced Multi-Language Loading Screen */
#loader {
    background: #0d0d0d;
    font-family: 'Space Grotesk', sans-serif;
}

#loading-text {
    background: linear-gradient(135deg, var(--accent), #ffffff, var(--accent-dark));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    font-weight: 600;
    line-height: 0.9;
    letter-spacing: -0.02em;
}

/* Responsive text sizes for loading */
@media (max-width: 640px) {
    #loading-text {
        font-size: 3rem; /* text-5xl equivalent */
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    #loading-text {
        font-size: 3.75rem; /* text-6xl equivalent */
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #loading-text {
        font-size: 4.5rem; /* text-7xl equivalent */
    }
}

@media (min-width: 1025px) and (max-width: 1280px) {
    #loading-text {
        font-size: 6rem; /* text-8xl equivalent */
    }
}

@media (min-width: 1281px) {
    #loading-text {
        font-size: 10rem; /* text-[10rem] equivalent */
    }
}

/* Loading animation enhancements */
.loader-text-glow {
    text-shadow: 
        0 0 10px rgba(0, 255, 136, 0.3),
        0 0 20px rgba(0, 255, 136, 0.2),
        0 0 30px rgba(0, 255, 136, 0.1);
}

/* Subtle entrance animation for loader */
#loader > div {
    animation: loaderEntrance 0.8s ease-out;
}

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

/* Enhanced Cursor */
#cursor {
    transform: translate(-50%, -50%);
    transition: all 0.1s ease;
    pointer-events: none;
}

/* Particle Background */
#particles-bg {
    background: radial-gradient(circle at 20% 80%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(147, 51, 234, 0.1) 0%, transparent 50%);
}

/* Navigation Enhancements */
nav {
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 10, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navigation Scrolled State */
nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

/* Hero Section Animations */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
    opacity: 0;
}

/* Button Hover Effects */
.group:hover .group-hover\:scale-x-100 {
    transform: scaleX(1);
}

.group:hover .group-hover\:translate-x-1 {
    transform: translateX(4px);
}

.group:hover .group-hover\:-translate-y-1 {
    transform: translateY(-4px);
}

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

.btn-glow::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-glow:hover::before {
    left: 100%;
}

/* Project Cards */
.project-card {
    position: relative;
    overflow: hidden;
}

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

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

/* Skill Items Animation */
.skill-item {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.skill-item:hover::before {
    left: 100%;
}

/* Tech Icons Hover */
.tech-icon {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.tech-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transform: scale(0);
    transition: transform 0.3s ease;
    border-radius: 8px;
    z-index: -1;
}

.tech-icon:hover::before {
    transform: scale(1);
}

/* Statistics Counter Animation */
.stat-item {
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    transform: scaleX(0);
    transition: transform 0.5s ease;
    transform-origin: left;
}

.stat-item:hover::before {
    transform: scaleX(1);
}

/* Enhanced Loading Animations */
.loader-text {
    background: linear-gradient(-45deg, var(--accent), #00cc6a, var(--accent), #00ff88);
    background-size: 400% 400%;
    animation: gradientShift 2s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Particle Animation */
@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) rotateZ(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-100px) rotateZ(180deg);
        opacity: 1;
    }
}

.particle {
    animation: particleFloat 6s ease-in-out infinite !important;
}

/* Advanced Hover Effects */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.2);
}

/* Glitch Effect for Special Elements */
@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:hover {
    animation: glitch 0.3s;
}

/* Neon Glow Effect */
.neon-glow {
    text-shadow: 
        0 0 5px var(--accent),
        0 0 10px var(--accent),
        0 0 15px var(--accent),
        0 0 20px var(--accent);
}

/* Advanced Grid Animations */
.grid-reveal {
    opacity: 0;
    transform: translateY(50px);
    animation: gridReveal 0.6s ease forwards;
}

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

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    transform-origin: 0%;
    z-index: 100;
}

/* Contact Form Styling */
input:focus, textarea:focus {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

/* Social Links Hover */
.social-link {
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: currentColor;
    transform: scale(0);
    transition: transform 0.3s ease;
    border-radius: 8px;
    z-index: -1;
    opacity: 0.1;
}

.social-link:hover::before {
    transform: scale(1);
}

/* Text Gradient Animation */
.bg-gradient-to-r {
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

/* Responsive Enhancements */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .text-8xl {
        font-size: 4.5rem;
    }
    
    .text-7xl {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
    
    .lg\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .text-6xl {
        font-size: 2.25rem;
    }
    
    .text-5xl {
        font-size: 2rem;
    }
    
    .py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .px-8 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .text-4xl {
        font-size: 1.875rem;
    }
    
    .text-6xl {
        font-size: 2.5rem;
    }
    
    nav {
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .text-4xl {
        font-size: 1.5rem;
    }
    
    .text-3xl {
        font-size: 1.25rem;
    }
    
    .p-8 {
        padding: 1rem;
    }
    
    .space-x-4 > * + * {
        margin-left: 0.5rem;
    }
    
    .space-y-6 > * + * {
        margin-top: 1rem;
    }
    
    .grid {
        gap: 0.75rem;
    }
}

/* ==================================
   MOBILE RESPONSIVENESS IMPROVEMENTS
   ================================== */

/* Mobile Hero Section Improvements */
@media (max-width: 768px) {
  #hero .flex-col {
    padding-top: 100px; /* Add space for navbar */
    min-height: calc(100vh - 40px);
  }
  
  #dynamic-title {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }
  
  .hero-image {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
  
  /* Ensure content doesn't go behind navbar */
  #main {
    padding-top: 0;
  }
  
  /* Mobile navigation improvements */
  #dynamic-nav {
    width: 90% !important;
    max-width: 350px !important;
    min-width: 280px !important;
  }
  
  .dynamic-island {
    height: 56px !important;
  }
  
  .island-background {
    border-radius: 5px !important;
  }
}

@media (max-width: 640px) {
  #hero .flex-col {
    padding-top: 120px;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem !important;
    line-height: 1.1 !important;
  }
  
  #dynamic-title {
    font-size: 1.75rem !important;
  }
  
  .hero-content h2 {
    font-size: 0.875rem !important;
  }
  
  .hero-content p {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
  }
  
  /* CTA Buttons mobile */
  .cta-button {
    padding: 12px 24px !important;
    font-size: 0.875rem !important;
  }
}

@media (max-width: 480px) {
  #hero .flex-col {
    padding-top: 130px;
  }
  
  .hero-image img {
    width: 200px !important;
    height: 200px !important;
  }
  
  #dynamic-nav {
    width: 95% !important;
    max-width: 320px !important;
    min-width: 260px !important;
  }
}

/* Image fallback and loading improvements */
.hero-image img {
  transition: opacity 0.3s ease;
}

.hero-image img[src*="data:image"] {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--primary);
  font-weight: bold;
}

/* GitHub Projects Dynamic Loading */
.github-projects-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  opacity: 0.7;
}

.github-project-card {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.github-project-card.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* ==================================
   LIVE PROJECTS SECTION STYLES
   ================================== */

.live-project-card {
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.live-project-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(0, 255, 136, 0.1);
}

.live-project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.05) 0%, rgba(0, 255, 136, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
  z-index: -1;
}

.live-project-card:hover::before {
  opacity: 1;
}

/* Featured Project Styling */
.live-project-card:first-child {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.02) 0%, rgba(147, 51, 234, 0.02) 100%);
}

/* Live Status Indicators */
.live-project-card .animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Enhanced Hover Effects for Live Projects */
.live-project-card .project-link {
  transition: all 0.3s ease;
}

.live-project-card:hover .project-link {
  transform: scale(1.05);
}

/* Load More Button Styling */
#load-more-github-projects button {
  position: relative;
  overflow: hidden;
}

#load-more-github-projects button::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;
}

#load-more-github-projects button:hover::before {
  left: 100%;
}

/* Repository Count Info Styling */
.col-span-full {
  grid-column: 1 / -1;
}

/* Enhanced Project Image Preview */
.group\/preview {
  transition: all 0.3s ease;
}

.group\/preview:hover {
  transform: scale(1.05) rotate(1deg);
}

/* Line Clamp Utility for Better Text Display */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
}

/* Enhanced Link Interactions */
.group\/link {
  transition: all 0.2s ease;
}

.group\/link:hover {
  filter: brightness(1.2);
}

/* Responsive Adjustments for Live Projects */
@media (max-width: 768px) {
  .live-project-card {
    margin-bottom: 1rem;
  }
  
  .live-project-card .flex-col {
    gap: 1rem;
  }
  
  .live-project-card .p-8 {
    padding: 1.5rem;
  }
}

/* Animation for project cards entrance */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.live-project-card {
  animation: slideInUp 0.6s ease-out forwards;
}

.live-project-card:nth-child(2) {
  animation-delay: 0.1s;
}

.live-project-card:nth-child(3) {
  animation-delay: 0.2s;
}

.live-project-card:nth-child(4) {
  animation-delay: 0.3s;
}

/* ==================================
   END LIVE PROJECTS SECTION STYLES
   ================================== */

/* ==================================
   END MOBILE IMPROVEMENTS
   ================================== */