/* assets/css/enhanced-design.css - Premium Design Enhancements */

/* ===== NEW VIBRANT COLOR PALETTE ===== */
:root {
  /* Enhanced Gradient Colors */
  --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-mesh: linear-gradient(120deg, #f6d365 0%, #fda085 50%, #f6d365 100%);
  
  /* Neon Glow Colors */
  --neon-blue: #00f3ff;
  --neon-purple: #bc13fe;
  --neon-pink: #ff006e;
  --neon-green: #0aff60;
  
  /* Enhanced Shadows */
  --shadow-neon-blue: 0 0 20px rgba(0, 243, 255, 0.5), 0 0 40px rgba(0, 243, 255, 0.3);
  --shadow-neon-purple: 0 0 20px rgba(188, 19, 254, 0.5), 0 0 40px rgba(188, 19, 254, 0.3);
  --shadow-neon-pink: 0 0 20px rgba(255, 0, 110, 0.5), 0 0 40px rgba(255, 0, 110, 0.3);
  --shadow-premium: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  --shadow-float: 0 30px 80px rgba(0, 0, 0, 0.4);
}

/* ===== ANIMATED MESH GRADIENT BACKGROUND ===== */
.mesh-gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

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

/* ===== PARTICLE SYSTEM CONTAINER ===== */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--neon-blue);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 10px var(--neon-blue);
  animation: particleFloat 8s infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

/* ===== ENHANCED HERO SECTION WITH GRADIENT TEXT ===== */
.hero-enhanced {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  overflow: hidden;
}

.hero-enhanced::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
  animation: rotateBg 30s linear infinite;
}

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

.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 5s ease infinite;
  font-weight: 800;
}

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

/* ===== PREMIUM CARD DESIGNS ===== */
.card-premium {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease, border-color 0.4s ease;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03); /* Base shadow for light mode separation */
}

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

.card-premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  border-color: rgba(62, 179, 179, 0.3);
}

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

.card-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(62, 179, 179, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
  pointer-events: none;
}

.card-premium:hover .card-glow {
  width: 300px;
  height: 300px;
}

/* ===== ENHANCED BUTTON STYLES ===== */
.btn-neon {
  position: relative;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--white);
  background: transparent;
  border: 2px solid var(--neon-blue);
  border-radius: 50px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

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

.btn-neon:hover {
  background: var(--neon-blue);
  color: #1a1a2e;
  box-shadow: var(--shadow-neon-blue);
  transform: translateY(-3px);
}

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

.btn-gradient {
  position: relative;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.btn-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #764ba2 0%, #f093fb 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-gradient:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(118, 75, 162, 0.3);
}

.btn-gradient:hover::before {
  opacity: 1;
}

.btn-gradient span {
  position: relative;
  z-index: 1;
}

/* ===== FLOATING ANIMATION FOR ELEMENTS ===== */
.float-animation {
  animation: float 6s ease-in-out infinite;
}

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

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

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

/* ===== GLITCH EFFECT FOR TEXT ===== */
.glitch-text {
  position: relative;
  color: var(--white);
  font-weight: 800;
}

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

.glitch-text::before {
  left: 2px;
  text-shadow: -1px 0 var(--neon-pink);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
  left: -2px;
  text-shadow: -1px 0 var(--neon-blue);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% { clip: rect(31px, 9999px, 94px, 0); }
  5% { clip: rect(70px, 9999px, 71px, 0); }
  10% { clip: rect(23px, 9999px, 6px, 0); }
  15% { clip: rect(86px, 9999px, 95px, 0); }
  20% { clip: rect(4px, 9999px, 64px, 0); }
  25% { clip: rect(20px, 9999px, 91px, 0); }
  30% { clip: rect(78px, 9999px, 5px, 0); }
  35% { clip: rect(37px, 9999px, 22px, 0); }
  40% { clip: rect(61px, 9999px, 88px, 0); }
  45% { clip: rect(13px, 9999px, 43px, 0); }
  50% { clip: rect(95px, 9999px, 56px, 0); }
  55% { clip: rect(48px, 9999px, 17px, 0); }
  60% { clip: rect(72px, 9999px, 83px, 0); }
  65% { clip: rect(6px, 9999px, 39px, 0); }
  70% { clip: rect(89px, 9999px, 12px, 0); }
  75% { clip: rect(25px, 9999px, 67px, 0); }
  80% { clip: rect(53px, 9999px, 41px, 0); }
  85% { clip: rect(98px, 9999px, 76px, 0); }
  90% { clip: rect(11px, 9999px, 29px, 0); }
  95% { clip: rect(66px, 9999px, 93px, 0); }
  100% { clip: rect(38px, 9999px, 8px, 0); }
}

@keyframes glitch-anim-2 {
  0% { clip: rect(65px, 9999px, 99px, 0); }
  5% { clip: rect(52px, 9999px, 34px, 0); }
  10% { clip: rect(8px, 9999px, 92px, 0); }
  15% { clip: rect(29px, 9999px, 11px, 0); }
  20% { clip: rect(73px, 9999px, 58px, 0); }
  25% { clip: rect(16px, 9999px, 85px, 0); }
  30% { clip: rect(94px, 9999px, 3px, 0); }
  35% { clip: rect(41px, 9999px, 69px, 0); }
  40% { clip: rect(7px, 9999px, 46px, 0); }
  45% { clip: rect(82px, 9999px, 21px, 0); }
  50% { clip: rect(33px, 9999px, 97px, 0); }
  55% { clip: rect(68px, 9999px, 14px, 0); }
  60% { clip: rect(20px, 9999px, 75px, 0); }
  65% { clip: rect(91px, 9999px, 48px, 0); }
  70% { clip: rect(5px, 9999px, 86px, 0); }
  75% { clip: rect(57px, 9999px, 32px, 0); }
  80% { clip: rect(76px, 9999px, 9px, 0); }
  85% { clip: rect(12px, 9999px, 63px, 0); }
  90% { clip: rect(84px, 9999px, 42px, 0); }
  95% { clip: rect(49px, 9999px, 18px, 0); }
  100% { clip: rect(27px, 9999px, 81px, 0); }
}

/* ===== PROJECT SHOWCASE ENHANCEMENTS ===== */
.project-card-enhanced {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card-enhanced .project-img-wrapper {
  position: relative;
  overflow: hidden;
}

.project-card-enhanced .project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card-enhanced:hover .project-img {
  transform: scale(1.05);
}

.project-card-enhanced .project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

.project-card-enhanced .project-title {
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 700;
  transform: translateY(30px);
  transition: transform 0.5s ease;
}

.project-card-enhanced:hover .project-title {
  transform: translateY(0);
}

/* ===== SKILL BAR WITH GLOW EFFECT ===== */
.skill-bar-container {
  position: relative;
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-size: 200% 100%;
  border-radius: 10px;
  position: relative;
  animation: shimmer 3s linear infinite;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== TESTIMONIAL CARD WITH QUOTE EFFECT ===== */
.testimonial-card-premium {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 3rem;
  transition: all 0.5s ease;
}

.testimonial-card-premium::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 30px;
  font-size: 6rem;
  color: rgba(102, 126, 234, 0.2);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card-premium:hover {
  transform: translateY(-10px);
  border-color: rgba(102, 126, 234, 0.3);
  box-shadow: var(--shadow-premium);
}

/* ===== LOADING SCREEN WITH PARTICLES ===== */
.loader-premium {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

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

.loader-spinner {
  width: 80px;
  height: 80px;
  border: 4px solid rgba(102, 126, 234, 0.2);
  border-top-color: var(--neon-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 2rem;
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
}

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

/* ===== SCROLL INDICATOR WITH BOUNCE ===== */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  position: relative;
}

.scroll-arrow::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 10px;
  background: var(--neon-blue);
  border-radius: 3px;
  animation: scrollDown 2s infinite;
}

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

@keyframes scrollDown {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

/* ===== SOCIAL ICONS WITH HOVER GLOW ===== */
.social-icon-premium {
  position: relative;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.3rem;
  transition: all 0.4s ease;
  overflow: hidden;
}

.social-icon-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.social-icon-premium i {
  position: relative;
  z-index: 1;
}

.social-icon-premium:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-neon-purple);
  border-color: transparent;
}

.social-icon-premium:hover::before {
  opacity: 1;
}

/* ===== CONTACT FORM WITH FLOATING LABELS ===== */
.form-group-premium {
  position: relative;
  margin-bottom: 2rem;
}

.form-input-premium {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--white);
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-input-premium:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.form-label-premium {
  position: absolute;
  top: 1.2rem;
  left: 1.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.3s ease;
}

.form-input-premium:focus ~ .form-label-premium,
.form-input-premium:not(:placeholder-shown) ~ .form-label-premium {
  top: -0.8rem;
  left: 1rem;
  font-size: 0.85rem;
  color: var(--neon-blue);
  background: #1a1a2e;
  padding: 0 0.5rem;
}

/* ===== PRICING CARD WITH POPULAR BADGE ===== */
.pricing-card-premium {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.5s ease;
  overflow: hidden;
}

.pricing-card-premium.popular {
  border-color: var(--neon-purple);
  box-shadow: var(--shadow-neon-purple);
}

.pricing-card-premium.popular::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: 20px;
  right: -35px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: var(--white);
  padding: 0.5rem 3rem;
  font-size: 0.75rem;
  font-weight: 700;
  transform: rotate(45deg);
  letter-spacing: 1px;
}

.pricing-card-premium:hover {
  transform: translateY(-15px) scale(1.02);
  border-color: rgba(102, 126, 234, 0.3);
  box-shadow: var(--shadow-premium);
}

/* ===== RESPONSIVE ENHANCEMENTS ===== */
@media (max-width: 768px) {
  .gradient-text {
    font-size: 2.5rem !important;
  }
  
  .card-premium {
    padding: 2rem;
  }
  
  .btn-neon,
  .btn-gradient {
    padding: 0.9rem 2rem;
    font-size: 0.9rem;
  }
}

/* ===== DARK THEME SPECIFIC ENHANCEMENTS ===== */
body.dark-theme .mesh-gradient-bg {
  opacity: 0.3;
}

body.dark-theme .card-premium {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.05);
}

body.dark-theme .glow-effect {
  filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.5));
}

/* ===== UTILITY CLASSES ===== */
.text-glow {
  text-shadow: 0 0 10px rgba(102, 126, 234, 0.5), 0 0 20px rgba(102, 126, 234, 0.3);
}

.box-glow {
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}

.hover-lift {
  transition: transform 0.4s ease;
}

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

.scale-hover {
  transition: transform 0.4s ease;
}

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

.rotate-hover {
  transition: transform 0.4s ease;
}

.rotate-hover:hover {
  transform: rotate(5deg);
}

/* ===== REVEAL ANIMATION ON SCROLL ===== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

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

/* ===== IMAGE OVERLAY EFFECT ===== */
.img-overlay-container {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.img-overlay-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.img-overlay-container:hover::after {
  opacity: 1;
}

.img-overlay-container img {
  transition: transform 0.6s ease;
}

.img-overlay-container:hover img {
  transform: scale(1.1);
}
