/* ========================================
   CUSTOM PREMIUM STYLES
   ======================================== */

:root {
  --primary-cyan: #06b6d4;
  --primary-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --bg-dark: #0b0f19;
  --bg-card: #111827;
  --text-light: #e2e8f0;
  --text-muted: #94a3b8;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Animated Gradient Background */
.hero-gradient {
  background: linear-gradient(135deg, 
    #0b0f19 0%, 
    #1e293b 25%, 
    #0f172a 50%, 
    #1e293b 75%, 
    #0b0f19 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

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

/* Hero Section Enhancements */
.hero-title {
  background: linear-gradient(135deg, #06b6d4, #8b5cf6, #ec4899);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientText 8s ease infinite;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

/* Typing Effect Container */
.typing-text {
  border-right: 3px solid var(--primary-cyan);
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {
  from, to { border-color: transparent; }
  50% { border-color: var(--primary-cyan); }
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: rgba(17, 24, 39, 0.85);
  border-color: rgba(6, 182, 212, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.2);
}

/* Neon Glow Effect */
.neon-glow {
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5),
              0 0 20px rgba(6, 182, 212, 0.3),
              0 0 30px rgba(6, 182, 212, 0.1);
  transition: box-shadow 0.3s ease;
}

.neon-glow:hover {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.7),
              0 0 40px rgba(6, 182, 212, 0.5),
              0 0 60px rgba(6, 182, 212, 0.3);
}

/* Animated Profile Image */
.profile-img-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.profile-img-border {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #8b5cf6, #ec4899);
  background-size: 300% 300%;
  animation: rotateBorder 4s linear infinite;
  z-index: 0;
}

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

.profile-img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  z-index: 1;
  border: 4px solid var(--bg-dark);
}

/* Stats Counter Animation */
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Skill Progress Bars */
.skill-bar {
  position: relative;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-cyan), var(--primary-purple));
  border-radius: 10px;
  transition: width 1.5s ease;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

/* Tech Icon Hover Effects */
.tech-icon {
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: grayscale(0.3);
}

.tech-icon:hover {
  transform: scale(1.2) rotate(5deg);
  filter: grayscale(0) drop-shadow(0 0 10px rgba(6, 182, 212, 0.6));
}

/* Project Card Hover Effects */
.project-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.project-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(6, 182, 212, 0.1),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.5s ease;
}

.project-card:hover::before {
  animation: shine 1.5s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* CTA Button Effects */
.cta-button {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease;
}

.cta-button::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;
  z-index: -1;
}

.cta-button:hover::before {
  left: 100%;
}

/* Badge Styles */
.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-cyan);
  transition: all 0.3s ease;
}

.tech-badge:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--primary-cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

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

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Timeline Styles */
.timeline-item {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid rgba(6, 182, 212, 0.3);
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-cyan);
  box-shadow: 0 0 0 4px var(--bg-dark), 0 0 10px rgba(6, 182, 212, 0.5);
}

.timeline-item:hover::before {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { 
    box-shadow: 0 0 0 4px var(--bg-dark), 0 0 10px rgba(6, 182, 212, 0.5);
  }
  50% { 
    box-shadow: 0 0 0 8px var(--bg-dark), 0 0 20px rgba(6, 182, 212, 0.8);
  }
}

/* Footer Wave Animation */
.footer-wave {
  position: relative;
  overflow: hidden;
}

.footer-wave::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--primary-cyan), 
    var(--primary-purple), 
    transparent
  );
  animation: wave 3s linear infinite;
}

@keyframes wave {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Loading Animation */
.loading-spinner {
  border: 3px solid rgba(6, 182, 212, 0.1);
  border-top-color: var(--primary-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Responsive Utilities */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .profile-img-container {
    width: 150px;
    height: 150px;
  }
}

/* Focus Visible for Accessibility */
*:focus-visible {
  outline: 2px solid var(--primary-cyan);
  outline-offset: 4px;
}

/* Selection Color */
::selection {
  background: rgba(6, 182, 212, 0.3);
  color: white;
}
