/* Modern Portfolio CSS - Enhanced Dark Professional Theme */

/* Custom Properties */
:root {
  --primary: #6366f1;
  --secondary: #8b5cf6;
  --accent: #a855f7;
  --dark-bg: #000000;
  --darker-bg: #0a0a0a;
  --dark-card: #111111;
  --dark-surface: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.1);
  color-scheme: dark;
}

/* Page Introduction Animations - Smoother and Slower */
@keyframes slideInFromBottom {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-60px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(60px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animation classes with ultra-smooth timing */
.animate-intro-bottom {
  animation: slideInFromBottom 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-intro-left {
  animation: slideInFromLeft 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-intro-right {
  animation: slideInFromRight 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-intro-scale {
  animation: fadeInScale 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-delay-1 {
  animation-delay: 0.4s;
}

.animate-delay-2 {
  animation-delay: 0.8s;
}

.animate-delay-3 {
  animation-delay: 1.2s;
}

.animate-delay-4 {
  animation-delay: 1.6s;
}

/* Initially hidden for animation */
.section-hidden {
  opacity: 0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  background: var(--darker-bg);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* Skills Section - Ultra Minimal Clean Styles */
.skill-item {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.5rem 0;
}

.skill-item:hover {
  transform: translateY(-10px);
}

.skill-item .group:hover {
  transform: none; /* Override to prevent double transformation */
}

/* Remove all card styling - pure minimal approach */
.skill-item > div {
  background: none !important;
  border: none !important;
  backdrop-filter: none !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: visible;
  padding: 0;
}

.skill-item > div::before {
  display: none; /* Remove sweep effect */
}

/* Minimal icon container - larger and cleaner */
.skill-item .w-20 {
  background: transparent !important;
  border: none !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: visible;
  box-shadow: none !important;
}

.skill-item:hover .w-20 {
  transform: translateY(-8px) scale(1.1);
}

/* Enhanced PNG Icon styling - Clean and professional */
.skill-item .w-20 img {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  filter: brightness(0.9) contrast(1.1) saturate(0.85);
  opacity: 0.8;
  border-radius: 1rem;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.skill-item:hover .w-20 img {
  filter: brightness(1.15) contrast(1.2) saturate(1.1);
  opacity: 1;
  transform: scale(1.08);
}

/* Enhanced typography for minimal layout */
.skill-item h3 {
  font-weight: 700;
  letter-spacing: -0.025em;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.skill-item p {
  line-height: 1.6;
  transition: all 0.3s ease;
  max-width: 280px;
  margin: 0 auto 1.5rem;
}

/* Tech stack tags - Enhanced for minimal layout */
.skill-item span {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  font-weight: 500;
  letter-spacing: 0.025em;
}

.skill-item:hover span {
  transform: translateY(-2px);
  backdrop-filter: blur(12px);
}

/* Mobile responsiveness for minimal skills */
@media (max-width: 768px) {
  .skill-item {
    margin-bottom: 2rem;
    padding: 1rem 0;
  }

  .skill-item .w-20 {
    width: 4.5rem !important;
    height: 4.5rem !important;
  }

  .skill-item h3 {
    font-size: 1.125rem !important;
    margin-bottom: 0.75rem !important;
  }

  .skill-item p {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    max-width: 100% !important;
    margin-bottom: 1.25rem !important;
  }

  .skill-item:hover {
    transform: translateY(-6px);
  }

  .skill-item:hover .w-20 {
    transform: translateY(-4px) scale(1.08);
  }
}

@media (max-width: 640px) {
  #skills .grid-cols-2 {
    grid-template-columns: 1fr !important;
  }

  #skills .md\\:grid-cols-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .skill-item {
    padding: 0.75rem 0;
  }

  .skill-item .w-20 {
    width: 4rem !important;
    height: 4rem !important;
  }

  /* Adjust grid gap for mobile */
  #skills .gap-12 {
    gap: 2rem !important;
  }
}

/* Refined animations for minimal skill cards */
.skill-item {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUpMinimal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.skill-item:nth-child(1) {
  animation-delay: 0.1s;
}
.skill-item:nth-child(2) {
  animation-delay: 0.2s;
}
.skill-item:nth-child(3) {
  animation-delay: 0.3s;
}
.skill-item:nth-child(4) {
  animation-delay: 0.4s;
}
.skill-item:nth-child(5) {
  animation-delay: 0.5s;
}
.skill-item:nth-child(6) {
  animation-delay: 0.6s;
}

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

/* Additional spacing adjustments */
#skills .gap-12 {
  gap: 3rem;
}

/* Ensure clean layout without visual clutter */
.skill-item .flex.flex-wrap.gap-2.justify-center {
  min-height: auto;
}

/* Typing Animation - Enhanced for Mobile */
#typing-text {
  display: inline-block;
  min-width: 18ch; /* Accommodate longest text */
  text-align: left;
  white-space: nowrap;
}

/* Mobile typing text adjustments */
@media (max-width: 768px) {
  #typing-text {
    min-width: auto !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
  }
}

@media (max-width: 640px) {
  #typing-text {
    min-width: auto !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    display: block !important;
    text-align: left !important;
  }
}

/* Cursor Animation */
@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.animate-blink {
  animation: blink 1s infinite;
}

/* Typography */
.text-gradient {
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--secondary),
    var(--accent)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation Styles */
.nav-link {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}

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

/* Button Styles */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  text-decoration: none;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary::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 ease;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 0.75rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

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

.btn-contact {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.btn-contact:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

/* Social Links */
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
}

/* Card Styles */
.skill-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(99, 102, 241, 0.3);
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

/* Skill Progress Bars */
.skill-bar {
  width: 100%;
  height: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.25rem;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 0.25rem;
  transition: width 0.8s ease;
}

/* Tech Items */
.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-3px);
}

/* Project Cards */
.project-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  border-color: rgba(99, 102, 241, 0.4);
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

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

.project-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--primary);
  color: white;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.project-link:hover {
  background: var(--secondary);
  transform: scale(1.1);
}

.project-content {
  padding: 1.5rem;
}

.project-tag {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.tech-tag {
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Contact Form */
.contact-form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

/* Contact Items */
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

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

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

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

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

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

@keyframes bounce-slow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

/* Animation Classes */
.animate-fade-in {
  animation: fadeIn 1s ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spin-slow 20s linear infinite;
}

.animate-bounce-slow {
  animation: bounce-slow 2s ease-in-out infinite;
}

.animate-blink {
  animation: blink 1s infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
  .btn-primary,
  .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }

  .skill-card,
  .contact-form {
    padding: 1.5rem;
  }

  .project-content {
    padding: 1rem;
  }

  /* Hero Section Mobile Fixes */
  #home .text-5xl {
    font-size: 3.5rem !important; /* Larger font for better presence */
    line-height: 1.2 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  #home .text-2xl {
    font-size: 1.75rem !important; /* Larger "I am" text */
  }

  #home .text-xl {
    font-size: 1.25rem !important; /* Keep subtitle readable */
  }

  #home .text-lg {
    font-size: 1.125rem !important; /* Slightly larger description */
    line-height: 1.6 !important;
  }

  /* Banner Button Fixes */
  #home .px-6 {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  #home .py-3 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }

  /* Button text size - keep readable with larger fonts */
  #home .font-medium {
    font-size: 1rem !important;
  }

  /* Adjust gap between buttons */
  #home .gap-4 {
    gap: 1rem !important;
  }

  /* Make buttons stack vertically on small screens */
  #home .flex-wrap {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

@media (max-width: 640px) {
  .skill-card,
  .contact-form {
    padding: 1rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.625rem 1.25rem;
    font-size: 0.8rem;
  }

  /* Extra small screens - Hero Section */
  #home .text-5xl {
    font-size: 3rem !important; /* Still large but wrappable */
    line-height: 1.2 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  #home .text-2xl {
    font-size: 1.5rem !important; /* Maintain good size */
  }

  #home .text-xl {
    font-size: 1.125rem !important; /* Keep visible */
  }

  #home .text-lg {
    font-size: 1rem !important; /* Readable description */
    line-height: 1.5 !important;
  }

  /* Smaller buttons for very small screens */
  #home .px-6 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  #home .py-3 {
    padding-top: 0.625rem !important;
    padding-bottom: 0.625rem !important;
  }

  /* Button text size */
  #home .font-medium {
    font-size: 0.95rem !important;
  }

  /* Icon size in buttons */
  #home .w-5 {
    width: 1rem !important;
    height: 1rem !important;
  }

  /* Reduce space around hero content */
  #home .space-y-8 {
    gap: 2rem !important; /* Slightly more space for larger fonts */
  }

  #home .space-y-6 {
    gap: 1.5rem !important;
  }

  /* Better title spacing */
  #home .space-y-3 {
    gap: 1rem !important;
  }
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--secondary), var(--accent));
}

/* Selection Color */
::selection {
  background: rgba(99, 102, 241, 0.3);
  color: white;
}

/* Focus Styles */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Loading States */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Utilities */
.backdrop-blur {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
}

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--secondary),
    var(--accent)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient-shift 3s ease-in-out infinite;
}

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

/* Improved Skills Container Styles */
.skills-container {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.skill-card {
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  will-change: transform;
}

.skill-service-card {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  will-change: transform, z-index;
}

.skill-service-card > div {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: background, border-color, box-shadow, backdrop-filter;
  min-height: 450px;
}

.skill-service-card img {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, filter;
}

.skill-service-card:hover img {
  transform: scale(1.03) rotate(1deg);
  filter: brightness(1.1) contrast(1.05);
}

/* Image Container Enhancements */
.skill-service-card .w-32,
.skill-service-card .w-36 {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.1),
    rgba(59, 130, 246, 0.1)
  );
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.skill-service-card:hover .w-32,
.skill-service-card:hover .w-36 {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.2),
    rgba(59, 130, 246, 0.2)
  );
  border-color: rgba(139, 92, 246, 0.3);
}

/* Enhanced Dots Animation */
.skill-dot {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, background-color;
}

/* Enhanced Navigation Arrows */
#skills-prev,
#skills-next {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, background-color, box-shadow;
}

#skills-prev:hover,
#skills-next:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.9);
}

/* Enhanced floating animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float-animation {
  animation: float 4s ease-in-out infinite;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  /* Mobile Hero Section Additional Fixes */
  #home .max-w-6xl {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Typing text container */
  #typing-text {
    min-width: 12ch !important; /* Reduce min-width for mobile */
  }

  /* Adjust hero grid spacing */
  #home .min-h-screen {
    min-height: 85vh !important;
  }

  /* Better mobile spacing for hero content */
  #home .py-20 {
    padding-top: 4rem !important;
    padding-bottom: 3rem !important;
  }

  /* Ensure text wrapping works properly */
  #home h1 {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }

  /* Better container width management */
  #home .max-w-2xl {
    max-width: 95% !important;
  }

  /* Find Me On section mobile adjustment */
  #home .lg\\:hidden .flex {
    justify-content: center !important;
    gap: 1rem !important;
  }

  #home .lg\\:hidden .w-10 {
    width: 2.25rem !important;
    height: 2.25rem !important;
  }

  #home .lg\\:hidden .w-5 {
    width: 1.125rem !important;
    height: 1.125rem !important;
  }
}

@media (max-width: 480px) {
  /* Extra small screens specific fixes */
  #home .text-5xl {
    font-size: 2.5rem !important; /* Still prominent but fits */
    line-height: 1.2 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  #home .max-w-2xl {
    max-width: 100% !important;
  }

  /* Stack buttons completely on very small screens */
  #home .flex-wrap {
    width: 100% !important;
  }

  #home .flex-wrap > a {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Reduce overall hero padding */
  #home .py-20 {
    padding-top: 4rem !important;
    padding-bottom: 2rem !important;
  }

  /* Tighter spacing but proportional to larger fonts */
  #home .space-y-8 {
    gap: 1.75rem !important;
  }

  #home .space-y-6 {
    gap: 1.25rem !important;
  }

  #home .space-y-3 {
    gap: 0.875rem !important;
  }
}

/* Prevent layout shift */
.skill-card,
.skill-service-card {
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Smooth animations for flexbox layout */
.skills-container .flex {
  align-items: stretch;
}

.skills-container .flex > .skill-card {
  flex: 0 0 auto;
}

/* Enhanced Banner Animations */
.banner-floating-element {
  animation: float 6s ease-in-out infinite;
}

.banner-floating-element:nth-child(2) {
  animation-delay: -2s;
}

.banner-floating-element:nth-child(3) {
  animation-delay: -4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-20px) scale(1.1);
    opacity: 1;
  }
}

/* Typing Animation Enhancement */
#typing-text {
  display: inline-block;
  min-height: 1.2em;
  transition: all 0.3s ease;
  vertical-align: baseline;
}

#cursor {
  display: inline;
  font-size: 1em;
  line-height: 1;
  vertical-align: baseline;
  margin-left: 2px;
  animation: blink 1.2s infinite;
}

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

/* Enhanced Banner Right Side */
.banner-floating-element {
  animation: float 6s ease-in-out infinite;
  filter: blur(0.5px);
}

.banner-floating-element:nth-child(1) {
  animation-delay: 0s;
}

.banner-floating-element:nth-child(2) {
  animation-delay: -2s;
}

.banner-floating-element:nth-child(3) {
  animation-delay: -4s;
}

.banner-floating-element:nth-child(4) {
  animation-delay: -1s;
}

/* Ultra Smooth Transitions for All Interactive Elements */
button,
a,
input,
textarea,
.card,
.skill-item {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Smooth hover effects for interactive elements */
button:hover,
a:hover,
.card:hover {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Smooth focus states */
input:focus,
textarea:focus,
button:focus {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

/* Enhanced floating animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float-animation {
  animation: float 4s ease-in-out infinite;
}
