/* ========================================
   PREMIUM PROFESSIONAL ENHANCEMENTS
   Ultra-Professional Portfolio Design
   ======================================== */

/* Premium Typography */
:root {
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  
  /* Professional Color Palette */
  --color-primary: #2563eb;
  --color-secondary: #7c3aed;
  --color-accent: #0891b2;
  --color-gold: #f59e0b;
  --color-success: #10b981;
  
  /* Sophisticated Gradients */
  --gradient-professional: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --gradient-elegant: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  --gradient-premium: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  
  /* Professional Shadows */
  --shadow-elegant: 0 20px 60px rgba(0, 0, 0, 0.15);
  --shadow-premium: 0 25px 70px rgba(0, 0, 0, 0.2);
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
}

/* Premium Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ========================================
   PROFESSIONAL HEADER ENHANCEMENT
   ======================================== */

.header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  background: var(--gradient-professional);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-professional);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.logo:hover::after {
  width: 100%;
}

/* Professional Navigation */
.navmenu a {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: relative;
  padding: 0.75rem 0;
}

.navmenu a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--gradient-professional);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s ease;
}

.navmenu a:hover::before,
.navmenu a.active::before {
  opacity: 1;
  top: -10px;
}

/* Premium Social Links */
.header-social-links a {
  width: 2.75rem;
  height: 2.75rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.header-social-links a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-professional);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.header-social-links a:hover {
  border-color: transparent;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.header-social-links a:hover::before {
  opacity: 1;
}

/* ========================================
   PREMIUM HERO SECTION
   ======================================== */

.hero {
  position: relative;
  background: 
    linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(124, 58, 237, 0.95) 100%),
    url('../img/hero-bg.jpg') center/cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.3) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

.hero h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease-out;
}

.hero .subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  line-height: 1.8;
  opacity: 0.98;
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero .subtitle p {
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

/* Premium CTA Buttons */
.hero .cta-buttons {
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

.btn {
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.95rem;
  padding: 1.125rem 2.25rem;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn-primary {
  background: white;
  color: var(--color-primary);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  color: var(--color-primary);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: white;
  color: var(--color-primary);
  border-color: white;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

/* Professional Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.6);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.scroll-indicator::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: scrollDot 2s ease-in-out infinite;
}

.scroll-indicator:hover {
  border-color: white;
  transform: translateX(-50%) scale(1.1);
}

@keyframes scrollDot {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 30px); opacity: 0; }
}

/* ========================================
   PROFESSIONAL SECTION TITLES
   ======================================== */

.section-title {
  position: relative;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  background: var(--gradient-professional);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 100px;
  height: 5px;
  background: var(--gradient-professional);
  border-radius: 3px;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.section-title p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  font-weight: 400;
}

/* ========================================
   PREMIUM STATS SECTION
   ======================================== */

.stats-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
  border-radius: 20px;
  padding: 3rem 2rem;
  box-shadow: var(--shadow-elegant);
  border: 1px solid rgba(99, 102, 241, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-professional);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

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

.stats-item:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: var(--shadow-premium);
  border-color: rgba(99, 102, 241, 0.3);
}

.stats-item span {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  background: var(--gradient-professional);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.stats-item p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ========================================
   PROFESSIONAL SKILLS SECTION
   ======================================== */

.skills .skill {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}

.skills .progress-bar-wrap {
  height: 14px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 10px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.skills .progress-bar {
  height: 100%;
  background: var(--gradient-professional);
  border-radius: 10px;
  position: relative;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

.skills .progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2s infinite;
}

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

/* ========================================
   PREMIUM CARD DESIGN
   ======================================== */

.card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-elegant);
  border: 1px solid rgba(99, 102, 241, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-professional);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

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

.card h3, .card h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.card i {
  font-size: 3rem;
  background: var(--gradient-professional);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.4s ease;
}

.card:hover i {
  transform: scale(1.15) rotate(5deg);
}

/* ========================================
   PROFESSIONAL FOOTER
   ======================================== */

.footer {
  background: var(--gradient-elegant);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-professional);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.footer .header-social-links a {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.footer .header-social-links a:hover {
  background: white;
  border-color: white;
  transform: translateY(-6px) scale(1.15);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
}

.footer .header-social-links a:hover i {
  background: var(--gradient-professional);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   PROFESSIONAL ANIMATIONS
   ======================================== */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

/* Apply animations to elements */
.card {
  animation: fadeInUp 0.6s ease-out;
}

.stats-item {
  animation: fadeInUp 0.6s ease-out;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

/* ========================================
   PREMIUM SCROLL EFFECTS
   ======================================== */

.scroll-top {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--gradient-professional);
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.5);
  border: 3px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-top:hover {
  transform: translateY(-8px) scale(1.15);
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.6);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   PROFESSIONAL BADGE SYSTEM
   ======================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--gradient-professional);
  color: white;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  transition: all 0.3s ease;
}

.badge:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

/* ========================================
   RESPONSIVE PROFESSIONAL DESIGN
   ======================================== */

@media (max-width: 768px) {
  .section-title h2 {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }
  
  .stats-item span {
    font-size: 3rem;
  }
  
  .card {
    padding: 2rem;
  }
  
  .btn {
    padding: 1rem 1.75rem;
  }
}

/* ========================================
   PRINT STYLES (Professional)
   ======================================== */

@media print {
  .header,
  .footer,
  .scroll-top,
  .particles-container,
  .floating-orb {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .section {
    page-break-inside: avoid;
  }
}
