/* ============================================
   PREMIUM DESIGN SYSTEM - CSS CUSTOM PROPERTIES
   ============================================ */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap");

:root {
  /* Premium Color Palette - Luxury & Sophisticated */
  --color-primary: #8b7aff;
  --color-primary-light: #a394ff;
  --color-primary-dark: #6b5ae0;
  --color-secondary: #ff6b9d;
  --color-accent: #ffd93d;
  --color-success: #6bcf7f;
  --color-warning: #ffb347;
  --color-danger: #ff6b6b;

  /* Premium Neutrals - Rich Tones */
  --color-dark: #0a0e27;
  --color-dark-light: #1a1f3a;
  --color-gray-900: #0a0e27;
  --color-gray-800: #1a1f3a;
  --color-gray-700: #2d3561;
  --color-gray-600: #4a5584;
  --color-gray-500: #6b7aa8;
  --color-gray-400: #8e9dc4;
  --color-gray-300: #b8c4e0;
  --color-gray-200: #dce3f5;
  --color-gray-100: #f0f3fa;
  --color-gray-50: #f7f9ff;
  --color-white: #ffffff;

  /* Premium Accents */
  --color-gold: #d4af37;
  --color-rose-gold: #e8b4b8;
  --color-platinum: #e5e4e2;
  --color-midnight: #191970;

  /* League of Legends Premium Theme */
  --color-lol-gold: #f0d97c;
  --color-lol-blue: #5dccff;
  --color-lol-green: #7ee8a5;
  --color-lol-dark: #0a1428;

  /* Premium Typography */
  --font-display: "Playfair Display", Georgia, serif;
  --font-primary: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "Consolas", monospace;

  /* Font Sizes - Premium Scale */
  --text-xs: clamp(0.8rem, 0.75rem + 0.25vw, 0.9rem);
  --text-sm: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --text-base: clamp(1.05rem, 1rem + 0.25vw, 1.175rem);
  --text-lg: clamp(1.2rem, 1.125rem + 0.375vw, 1.35rem);
  --text-xl: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem);
  --text-2xl: clamp(1.625rem, 1.475rem + 0.75vw, 2rem);
  --text-3xl: clamp(2rem, 1.8rem + 1vw, 2.5rem);
  --text-4xl: clamp(2.5rem, 2.2rem + 1.5vw, 3.25rem);
  --text-5xl: clamp(3.25rem, 2.85rem + 2vw, 4.25rem);
  --text-6xl: clamp(4rem, 3.5rem + 2.5vw, 5rem);

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  /* Premium Shadows - Luxury Depth */
  --shadow-sm: 0 2px 4px 0 rgba(139, 122, 255, 0.05);
  --shadow-md: 0 6px 12px -2px rgba(139, 122, 255, 0.15),
    0 3px 6px -2px rgba(139, 122, 255, 0.08);
  --shadow-lg: 0 12px 24px -4px rgba(139, 122, 255, 0.18),
    0 6px 12px -3px rgba(139, 122, 255, 0.08);
  --shadow-xl: 0 24px 40px -8px rgba(139, 122, 255, 0.2),
    0 12px 16px -6px rgba(139, 122, 255, 0.06);
  --shadow-2xl: 0 32px 64px -16px rgba(139, 122, 255, 0.28);
  --shadow-glow: 0 0 30px rgba(139, 122, 255, 0.4);
  --shadow-gold: 0 0 30px rgba(212, 175, 55, 0.3);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 450ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Z-index Scale */
  --z-base: 1;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1060;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.75;
  color: #c0cfd9;
  background: linear-gradient(
    135deg,
    #0a0e27 0%,
    #1a1f3a 25%,
    #0d1b2a 50%,
    #1a1f3a 75%,
    #0a0e27 100%
  );
  background-size: 400% 400%;
  background-attachment: fixed;
  animation: bgGradientShift 20s ease infinite;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

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

/* Gaming Grid Pattern Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(200, 155, 60, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(200, 155, 60, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

/* Animated Gaming Orbs */
body::after {
  content: "";
  position: fixed;
  top: -30%;
  right: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(
    circle,
    rgba(0, 242, 254, 0.08) 0%,
    transparent 60%
  );
  animation: float 25s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

/* ============================================
   LAYOUT & STRUCTURE - Gaming Optimized
   ============================================ */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-6) var(--space-16);
  position: relative;
  z-index: var(--z-base);
}

/* ============================================
   HERO SECTION - Premium & Luxurious
   ============================================ */
.hero {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.95) 100%
  );
  backdrop-filter: blur(30px);
  border-radius: var(--radius-2xl);
  padding: var(--space-20) var(--space-10);
  margin-bottom: var(--space-16);
  box-shadow: var(--shadow-2xl), 0 0 0 1px rgba(139, 122, 255, 0.15);
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

/* Premium gradient accent bar */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-gold),
    var(--color-secondary),
    var(--color-primary)
  );
  background-size: 300% 100%;
  animation: shimmer 4s linear infinite;
}

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

/* Luxury floating orb decoration */
.hero::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 250px;
  height: 250px;
  background: radial-gradient(
    circle,
    rgba(139, 122, 255, 0.12) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: pulse-glow 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse-glow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.9;
  }
}

.hero h1 {
  font-family: var(--font-display);
  color: var(--color-dark);
  font-size: var(--text-6xl);
  font-weight: 800;
  margin: var(--space-8) 0 var(--space-4) 0;
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: linear-gradient(
    135deg,
    var(--color-dark) 0%,
    var(--color-primary) 50%,
    var(--color-dark) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
  animation: gradientShift 6s ease infinite;
}

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

.tagline {
  font-family: var(--font-primary);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-gray-500);
  margin-bottom: var(--space-10);
  letter-spacing: 0.01em;
  position: relative;
  z-index: 1;
  line-height: 1.5;
}

.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--color-white);
  box-shadow: var(--shadow-2xl), 0 0 0 5px rgba(139, 122, 255, 0.15),
    0 0 40px rgba(139, 122, 255, 0.2);
  margin: 0 auto var(--space-8) auto;
  display: block;
  transition: transform var(--transition-slow),
    box-shadow var(--transition-slow);
  position: relative;
  z-index: 1;
}

.profile-photo:hover {
  transform: scale(1.08) translateY(-6px) rotate(2deg);
  box-shadow: var(--shadow-2xl), 0 0 0 6px rgba(212, 175, 55, 0.2),
    0 0 60px rgba(139, 122, 255, 0.4);
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-12);
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 100%
  );
  color: var(--color-white);
  text-decoration: none;
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: var(--text-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.linkedin-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.linkedin-link:hover::before {
  left: 100%;
}

.linkedin-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(99, 102, 241, 0.5);
}

/* ============================================
   FUN FACTS SECTION - Card Grid Layout
   ============================================ */
.fun-facts {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.92) 100%
  );
  backdrop-filter: blur(20px);
  border-radius: var(--radius-2xl);
  padding: var(--space-12) var(--space-8);
  margin-bottom: var(--space-12);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(99, 102, 241, 0.1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Gradient accent bar */
.fun-facts::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-success),
    var(--color-lol-green),
    var(--color-success)
  );
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

.fun-facts h3 {
  text-align: center;
  font-family: var(--font-display);
  color: var(--color-dark);
  font-size: var(--text-5xl);
  font-weight: 900;
  margin-bottom: var(--space-12);
  letter-spacing: -0.03em;
  background: linear-gradient(
    135deg,
    var(--color-dark) 0%,
    var(--color-primary) 50%,
    var(--color-dark) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease infinite;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
}

.fact-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(139, 122, 255, 0.15);
  padding: var(--space-10);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

/* Premium hover gradient effect */
.fact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-gold),
    var(--color-secondary)
  );
  transform: scaleX(0);
  transition: transform var(--transition-base);
  transform-origin: left;
}

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

.fact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2xl);
  border-color: rgba(139, 122, 255, 0.25);
  background: rgba(255, 255, 255, 1);
}

.fact-card h4 {
  font-family: var(--font-primary);
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: var(--space-5);
  color: var(--color-dark);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  letter-spacing: -0.01em;
}

.fact-card p {
  font-family: var(--font-body);
  color: var(--color-gray-600);
  font-size: var(--text-lg);
  line-height: 1.8;
  font-weight: 400;
}

.fact-card a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 700;
  transition: color var(--transition-fast);
  position: relative;
}

.fact-card a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
  transition: width var(--transition-base);
}

.fact-card a:hover {
  color: var(--color-gold);
}

.fact-card a:hover::after {
  width: 100%;
}

/* ============================================
   AWS JOURNEY SECTION
   ============================================ */
.aws-journey {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.9) 100%
  );
  backdrop-filter: blur(20px);
  border-radius: var(--radius-2xl);
  padding: var(--space-16) var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(245, 158, 11, 0.1);
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-12);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Gradient accent */
.aws-journey::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-warning),
    var(--color-accent),
    var(--color-warning)
  );
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

.aws-journey::after {
  content: "";
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(245, 158, 11, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.aws-journey h3 {
  font-family: var(--font-display);
  color: var(--color-dark);
  font-size: var(--text-5xl);
  font-weight: 900;
  margin-bottom: var(--space-6);
  letter-spacing: -0.03em;
  background: linear-gradient(
    135deg,
    var(--color-dark) 0%,
    var(--color-warning) 50%,
    var(--color-dark) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease infinite;
}

.aws-journey p {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  color: var(--color-gray-600);
  margin-bottom: var(--space-10);
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  font-weight: 400;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: linear-gradient(
    135deg,
    var(--color-gold) 0%,
    var(--color-warning) 100%
  );
  color: var(--color-dark);
  padding: var(--space-6) var(--space-12);
  text-decoration: none;
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: var(--text-xl);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

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

.cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-2xl), var(--shadow-gold);
}

/* ============================================
   CONTACT FORM - Premium Luxury Design
   ============================================ */
.contact-form {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.95) 100%
  );
  backdrop-filter: blur(30px);
  border-radius: var(--radius-2xl);
  padding: var(--space-20) var(--space-10);
  margin-top: var(--space-16);
  box-shadow: var(--shadow-2xl), 0 0 0 1px rgba(255, 107, 157, 0.15);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

/* Premium gradient accent bar */
.contact-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--color-secondary),
    var(--color-rose-gold),
    var(--color-secondary)
  );
  background-size: 300% 100%;
  animation: shimmer 4s linear infinite;
}

.contact-form::after {
  content: "";
  position: absolute;
  top: -120px;
  left: -120px;
  width: 350px;
  height: 350px;
  background: radial-gradient(
    circle,
    rgba(255, 107, 157, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.contact-form h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-5xl);
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-6);
  letter-spacing: -0.03em;
  text-align: center;
  animation: gradientShift 6s ease infinite;
}

.contact-form > p {
  font-family: var(--font-primary);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-gray-700);
  margin-bottom: var(--space-12);
  text-align: center;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

.contact-form-container {
  max-width: 600px;
  margin: 0 auto;
}

.form-message {
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  font-weight: 600;
  text-align: center;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-message.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  border: 2px solid rgba(16, 185, 129, 0.3);
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-danger);
  border: 2px solid rgba(239, 68, 68, 0.3);
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-group label {
  display: block;
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--color-gray-900);
  margin-bottom: var(--space-3);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-5) var(--space-6);
  border: 2.5px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  font-size: var(--text-lg);
  font-family: var(--font-body);
  font-weight: 400;
  background: rgba(255, 255, 255, 0.95);
  transition: all var(--transition-base);
  color: var(--color-gray-900);
  box-shadow: var(--shadow-sm);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-white);
  box-shadow: 0 0 0 5px rgba(139, 122, 255, 0.15),
    0 10px 25px -5px rgba(139, 122, 255, 0.25);
  transform: translateY(-2px);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.contact-submit-btn {
  font-family: var(--font-primary);
  background: linear-gradient(
    135deg,
    var(--color-gold) 0%,
    var(--color-gold-dark) 100%
  );
  color: var(--color-gray-900);
  padding: var(--space-6) var(--space-16);
  border: none;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: var(--text-xl);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-base);
  display: block;
  margin: var(--space-10) auto 0;
  box-shadow: var(--shadow-xl), var(--shadow-gold);
  position: relative;
  overflow: hidden;
}

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

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

.contact-submit-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-2xl), 0 0 40px rgba(212, 175, 55, 0.6);
}

.contact-submit-btn:active {
  transform: translateY(0);
}

/* ============================================
   LEAGUE LOOKUP - Premium Gaming Theme
   ============================================ */
.league-lookup {
  background: linear-gradient(135deg, #0a1428 0%, #1a2942 50%, #0a1428 100%);
  padding: var(--space-20) var(--space-8);
  margin: var(--space-16) 0;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl), 0 0 40px rgba(92, 219, 149, 0.2);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(92, 219, 149, 0.2);
}

/* Animated hexagon pattern background */
.league-lookup::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 20% 30%,
      rgba(92, 219, 149, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(11, 198, 227, 0.05) 0%,
      transparent 50%
    );
  animation: pulse 15s ease-in-out infinite;
  pointer-events: none;
}

/* Floating particles effect */
.league-lookup::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(200, 155, 60, 0.05) 0%,
    transparent 70%
  );
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
}

.league-header {
  text-align: center;
  margin-bottom: var(--space-12);
  position: relative;
  z-index: 1;
}

.league-header h3 {
  font-family: var(--font-display);
  color: var(--color-lol-green);
  font-size: var(--text-6xl);
  margin-bottom: var(--space-6);
  font-weight: 900;
  text-shadow: 0 0 25px rgba(92, 219, 149, 0.6),
    0 0 50px rgba(92, 219, 149, 0.4), 0 3px 15px rgba(0, 0, 0, 0.6);
  animation: glow 3s ease-in-out infinite;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

@keyframes glow {
  0%,
  100% {
    text-shadow: 0 0 25px rgba(92, 219, 149, 0.6),
      0 0 50px rgba(92, 219, 149, 0.4), 0 3px 15px rgba(0, 0, 0, 0.6);
  }
  50% {
    text-shadow: 0 0 35px rgba(92, 219, 149, 0.9),
      0 0 70px rgba(92, 219, 149, 0.6), 0 3px 15px rgba(0, 0, 0, 0.6);
  }
}

.league-header p {
  font-family: var(--font-primary);
  color: #c0cfd9;
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Form Container - Glassmorphism Design */
.lookup-form-container {
  max-width: 650px;
  margin: 0 auto var(--space-12);
  background: rgba(26, 41, 66, 0.6);
  padding: var(--space-10);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(92, 219, 149, 0.2);
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.lookup-form-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-lol-green),
    transparent
  );
}

.lookup-form-container .form-group {
  margin-bottom: var(--space-6);
}

.lookup-form-container label {
  display: block;
  font-family: var(--font-primary);
  color: var(--color-lol-green);
  font-weight: 800;
  margin-bottom: var(--space-3);
  font-size: var(--text-lg);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lookup-form-container input,
.lookup-form-container select {
  width: 100%;
  padding: var(--space-5) var(--space-6);
  border: 2.5px solid rgba(92, 219, 149, 0.35);
  border-radius: var(--radius-xl);
  background: rgba(10, 20, 40, 0.85);
  color: #fff;
  font-size: var(--text-xl);
  font-family: var(--font-body);
  font-weight: 500;
  transition: all var(--transition-base);
}

.lookup-form-container input::placeholder {
  color: rgba(224, 224, 224, 0.45);
  font-weight: 400;
}

.lookup-form-container input:focus,
.lookup-form-container select:focus {
  outline: none;
  border-color: var(--color-lol-green);
  box-shadow: 0 0 25px rgba(92, 219, 149, 0.5),
    0 0 0 5px rgba(92, 219, 149, 0.15);
  transform: translateY(-2px);
  background: rgba(10, 20, 40, 0.98);
}

.help-text {
  display: block;
  color: #78909c;
  font-size: var(--text-sm);
  margin-top: var(--space-2);
  font-style: italic;
}

.lookup-submit-btn {
  width: 100%;
  padding: var(--space-6);
  background: linear-gradient(135deg, var(--color-lol-green) 0%, #2e7d32 100%);
  color: var(--color-lol-dark);
  border: none;
  border-radius: var(--radius-xl);
  font-size: var(--text-xl);
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(92, 219, 149, 0.4);
}

.lookup-submit-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.lookup-submit-btn:hover::before {
  width: 400px;
  height: 400px;
}

.lookup-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(92, 219, 149, 0.6);
}

.lookup-submit-btn:active {
  transform: translateY(-1px);
}

.lookup-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-loader {
  animation: spin 1s linear infinite;
}

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

/* Message Styling */
.lookup-message {
  max-width: 650px;
  margin: var(--space-6) auto;
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
  text-align: center;
  font-weight: 700;
  animation: slideDown 0.3s ease;
  font-size: var(--text-base);
}

.lookup-message.success {
  background: rgba(92, 219, 149, 0.2);
  border: 2px solid var(--color-lol-green);
  color: var(--color-lol-green);
}

.lookup-message.error {
  background: rgba(244, 67, 54, 0.2);
  border: 2px solid #f44336;
  color: #ff6b6b;
}

/* Results Section */
.summoner-results {
  max-width: 1100px;
  margin: 0 auto;
  animation: fadeInUp 0.5s ease;
  position: relative;
  z-index: 1;
}

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

/* Summoner Card - Enhanced Premium Design */
.summoner-card {
  background: linear-gradient(
    135deg,
    rgba(26, 41, 66, 0.95) 0%,
    rgba(10, 20, 40, 0.95) 100%
  );
  padding: var(--space-10);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
  border: 2px solid rgba(92, 219, 149, 0.3);
  box-shadow: 0 8px 32px rgba(92, 219, 149, 0.2);
  transition: transform var(--transition-base);
  backdrop-filter: blur(10px);
}

.summoner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(92, 219, 149, 0.3);
}

.profile-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--color-lol-green);
  box-shadow: 0 0 30px rgba(92, 219, 149, 0.6), 0 4px 15px rgba(0, 0, 0, 0.5);
  animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 30px rgba(92, 219, 149, 0.6), 0 4px 15px rgba(0, 0, 0, 0.5);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(92, 219, 149, 0.8), 0 8px 20px rgba(0, 0, 0, 0.6);
  }
}

.summoner-details {
  flex: 1;
}

.summoner-name {
  color: #fff;
  font-size: var(--text-4xl);
  margin: 0 0 var(--space-3) 0;
  font-weight: 800;
}

.summoner-name .tag {
  color: var(--color-lol-green);
  font-weight: 600;
}

.summoner-level {
  color: var(--color-lol-green);
  font-size: var(--text-2xl);
  margin: 0;
  font-weight: 700;
}

/* Champion Mastery Section */
.champion-mastery-container {
  position: relative;
}

.mastery-title {
  color: var(--color-lol-green);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-10);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 900;
  text-shadow: 0 0 20px rgba(92, 219, 149, 0.3);
}

.champions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-8);
}

/* Champion Card - Ultra Premium */
.champion-card {
  background: linear-gradient(
    135deg,
    rgba(26, 41, 66, 0.98) 0%,
    rgba(10, 20, 40, 0.98) 100%
  );
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  border: 2px solid rgba(92, 219, 149, 0.3);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  animation: cardSlideIn 0.5s ease backwards;
  backdrop-filter: blur(10px);
  cursor: pointer;
}

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

/* Shimmer effect on hover */
.champion-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(92, 219, 149, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

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

.champion-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--color-lol-green);
  box-shadow: 0 20px 50px rgba(92, 219, 149, 0.5);
}

.champion-rank {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  background: linear-gradient(135deg, var(--color-lol-green) 0%, #2e7d32 100%);
  color: var(--color-lol-dark);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: var(--text-xl);
  box-shadow: 0 4px 15px rgba(92, 219, 149, 0.6);
  border: 2px solid rgba(92, 219, 149, 0.3);
}

.champion-header {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.champion-icon {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-lg);
  border: 3px solid var(--color-lol-green);
  box-shadow: 0 5px 20px rgba(92, 219, 149, 0.5);
  transition: transform var(--transition-base);
}

.champion-card:hover .champion-icon {
  transform: scale(1.1) rotate(3deg);
}

.champion-info {
  flex: 1;
}

.champion-name {
  font-family: var(--font-display);
  color: #fff;
  font-size: var(--text-3xl);
  margin: 0 0 var(--space-2) 0;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.champion-title {
  font-family: var(--font-body);
  color: #8a9fb0;
  font-size: var(--text-lg);
  margin: 0;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Mastery Stats */
.mastery-stats {
  margin-top: var(--space-5);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) 0;
  border-bottom: 1px solid rgba(92, 219, 149, 0.2);
}

.stat-row:last-of-type {
  border-bottom: none;
  margin-bottom: var(--space-5);
}

.stat-label {
  color: #b0bec5;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.stat-value {
  color: var(--color-lol-green);
  font-weight: 800;
  font-size: var(--text-lg);
}

.level-badge {
  background: linear-gradient(135deg, var(--color-lol-green) 0%, #2e7d32 100%);
  color: var(--color-lol-dark);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(92, 219, 149, 0.4);
}

/* Progress Bar - Enhanced */
.mastery-progress {
  width: 100%;
  height: 14px;
  background: rgba(92, 219, 149, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(92, 219, 149, 0.2);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(
    90deg,
    #2e7d32 0%,
    var(--color-lol-green) 50%,
    #2e7d32 100%
  );
  background-size: 200% 100%;
  border-radius: var(--radius-full);
  transition: width 1s ease;
  animation: shimmer 2s linear infinite;
  box-shadow: 0 0 15px rgba(92, 219, 149, 0.8);
  position: relative;
}

.progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
  border-radius: var(--radius-full);
}

.no-data {
  text-align: center;
  color: #78909c;
  padding: var(--space-16);
  font-size: var(--text-lg);
  font-style: italic;
}

/* ============================================
   FOOTER - Minimalist & Modern
   ============================================ */
footer {
  text-align: center;
  padding: var(--space-16) var(--space-6);
  color: var(--color-gray-500);
  font-size: var(--text-sm);
  position: relative;
  margin-top: var(--space-16);
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-primary),
    transparent
  );
}

/* ============================================
   RESPONSIVE DESIGN - Mobile First
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --space-16: 3rem;
    --space-20: 4rem;
  }
}

@media (max-width: 768px) {
  main {
    padding: var(--space-8) var(--space-4);
  }

  .hero,
  .fun-facts,
  .aws-journey,
  .contact-form {
    padding: var(--space-10) var(--space-6);
  }

  .hero h1 {
    font-size: var(--text-4xl);
  }

  .tagline {
    font-size: var(--text-lg);
  }

  .profile-photo {
    width: 110px;
    height: 110px;
  }

  .facts-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .fun-facts h3,
  .aws-journey h3,
  .contact-form h3 {
    font-size: var(--text-3xl);
  }

  .linkedin-link,
  .cta-button,
  .contact-submit-btn {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
  }

  /* League Lookup Mobile */
  .league-lookup {
    padding: var(--space-12) var(--space-4);
  }

  .league-header h3 {
    font-size: var(--text-3xl);
  }

  .lookup-form-container {
    padding: var(--space-6);
  }

  .champions-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .summoner-card {
    flex-direction: column;
    text-align: center;
    gap: var(--space-6);
  }

  .profile-icon {
    width: 100px;
    height: 100px;
  }

  .summoner-name {
    font-size: var(--text-2xl);
  }

  .champion-card {
    padding: var(--space-6);
  }

  .champion-icon {
    width: 70px;
    height: 70px;
  }

  .champion-rank {
    width: 40px;
    height: 40px;
    font-size: var(--text-lg);
  }
}

@media (max-width: 480px) {
  :root {
    --text-base: 0.95rem;
  }

  .hero,
  .fun-facts,
  .aws-journey,
  .contact-form {
    padding: var(--space-8) var(--space-5);
  }

  .profile-photo {
    width: 90px;
    height: 90px;
  }

  .league-lookup {
    padding: var(--space-10) var(--space-4);
  }

  .lookup-form-container {
    padding: var(--space-5);
  }
}

/* ============================================
   UTILITY ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================
   SCROLL ANIMATIONS - Reveal on Scroll
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .hero,
  .fun-facts,
  .aws-journey,
  .contact-form,
  .league-lookup {
    animation: fadeIn 0.6s ease;
  }

  .fact-card {
    animation: slideUp 0.6s ease backwards;
  }

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

/* Respect user preferences for reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */
*:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-gray-50: #ffffff;
    --color-gray-100: #f5f5f5;
  }

  body {
    background: var(--color-white);
  }

  .hero,
  .fun-facts,
  .aws-journey,
  .contact-form {
    border: 2px solid var(--color-gray-900);
  }
}
