:root {
  --primary: #1f2937;
  --secondary: #3b82f6;
  --accent: #f59e42;
  --surface: #ffffff;
  --muted: #f3f4f6;
  --radius: 12px;
  --transition: 0.25s cubic-bezier(.42,0,.58,1);
}

body {
  background-color: var(--muted);
  color: var(--primary);
  font-family: 'Amazon Ember', 'Segoe UI', Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.aws-bg-svg {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 160px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.16;
}

main {
  position: relative;
  z-index: 1;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 60px 20px 30px 20px;
}
.hero-content { display: inline-block; }
.profile-photo {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--surface);
  box-shadow: 0 8px 32px #3b82f644;
  margin-bottom: 18px;
}
.hero h1 { font-size: 2.5rem; margin: 0 0 10px 0; font-weight: 900; }
.tagline { font-size: 1.2rem; color: var(--secondary); font-weight: 600; margin-bottom: 18px;}
.hero-links { margin-bottom: 10px; }
.hero-links a, .aws-link, .cta-button, .contact-submit-btn {
  background: var(--secondary); color: #fff;
  border-radius: var(--radius);
  padding: 12px 24px;
  margin: 0 8px 8px 0;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 2px 16px #3b82f622;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-block;
}
.hero-links a:hover, .aws-link:hover, .cta-button:hover, .contact-submit-btn:hover {
  background: var(--accent); color: var(--primary);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 24px #f59e4277;
}
.contact-info {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 2rem;
  color: #6b7280;
  font-size: 1.07rem;
}
.hero-quote {
  margin-top: 18px;
  color: #4b5563;
  font-style: italic;
  font-size: 1.08rem;
}

/* Sections */
.interactive-section, .aws-architecture, .aws-journey, .contact-form {
    background: var(--surface);
    border-radius: 16px;
    margin-bottom: 32px;
    padding: 32px 28px;
    box-shadow: 0 4px 24px #3b82f61a;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.interactive-section h2, .aws-architecture h2, .aws-journey h2, .contact-form h2, .contact-form h3 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--primary);
}
.section-subtitle {
    margin-top: -16px;
    margin-bottom: 24px;
    font-size: 1.1rem;
    color: #6b7280;
}

/* AWS Architecture Diagram */
.aws-architecture { text-align: center; }
.architecture-diagram svg { max-width: 100%; height: auto; }

/* Skills Section with Icons */
.skill-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    transition: transform var(--transition);
}
.fact-card:hover .skill-icon {
    transform: scale(1.15) rotate(-5deg);
}

/* Fun Facts Section (centered heading) */
.fun-facts { text-align: center; }

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  justify-items: center;
  margin-top: 18px;
}
.fact-card {
  background: #f9fafb;
  border-radius: var(--radius);
  border: 1px solid #e5e7eb;
  padding: 22px 18px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
  max-width: 340px;
  width: 100%;
  box-sizing: border-box;
}
.fact-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 32px #f59e4255;
  border-color: var(--accent);
}
.fact-card h4 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 7px;
  color: var(--secondary);
  font-weight: 700;
}
.fact-card p, .fact-card ul {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 0;
  padding-left: 0;
  list-style-position: inside;
}
.fact-card a { color: var(--secondary); text-decoration: none; font-weight: 600; }
.fact-card a:hover { text-decoration: underline; color: var(--accent); }

/* AWS Builder Challenge Section */
.aws-journey {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}
.journey-content { flex: 2; }
.journey-graphic {
    flex: 1;
    max-width: 120px;
    margin: 0 auto;
    animation: spin 10s linear infinite;
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.aws-journey .cta-button { margin-top: 20px; }

/* Contact Form Section */
.contact-form {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
    background: white;
    border-radius: 8px;
    padding: 40px;
    margin-top: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}
.contact-form::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 40px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    border-radius: 6px;
    opacity: 0.9;
}
.contact-content { flex: 3; }
.contact-graphic {
    flex: 1;
    max-width: 150px;
    opacity: 0.5;
    margin: 0 auto;
}
.contact-form h2, .contact-form h3, .contact-form p { text-align: left; }
.contact-form h3 {
    color: #232f3e;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    text-align: center;
}
.contact-form > p, .contact-form .contact-content > p {
    font-size: 16px;
    color: #687078;
    margin-bottom: 32px;
    text-align: center;
    line-height: 1.6;
}

/* Contact form container and layout */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Form message styles for success/error notifications */
.form-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-weight: 500;
    text-align: center;
}

.form-message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-message.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #232f3e;
    margin-bottom: 8px;
    font-size: 16px;
}

/* Contact form input and textarea styles */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7877c6;
    background: white;
    box-shadow: 0 0 0 3px rgba(120, 119, 198, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Contact form submit button */
.contact-submit-btn {
    background: #7877c6;
    color: white;
    padding: 12px 32px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    margin: 0 auto;
}

.contact-submit-btn:hover {
    background: #6b6ab8;
    transform: translateY(-1px);
}

@media (max-width: 1100px) {
  .facts-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .aws-journey, .contact-form { flex-direction: column; text-align: center; }
  .journey-graphic, .contact-graphic { margin-top: 1rem; max-width: 100px; }
  .contact-info { flex-direction: column; gap: 0.5rem; }
  .hero h1 { font-size: 2rem; }
  .hero-content { width: 100%; }
}
@media (max-width: 768px) {
    .contact-form {
        padding: 24px;
    }
    .contact-form h3 {
        font-size: 24px;
    }
}
@media (max-width: 600px) {
  main { padding-left: 0; padding-right: 0; }
  .interactive-section, .aws-architecture, .aws-journey, .contact-form {
    padding: 12px 6px;
    border-radius: 8px;
  }
  .facts-grid { grid-template-columns: 1fr; gap: 12px; }
  .fact-card { padding: 14px 8px; }
  .hero { padding: 24px 4px 18px 4px; }
}

footer {
  text-align: center;
  padding: 16px 8px;
  color: #6b7280;
  font-size: 0.95rem;
  width: 100%;
  display: block;
  margin: 0 auto;
  box-sizing: border-box;
}

/* LEAGUE LOOKUP STYLES */
.league-lookup {
    background: white;
    border-radius: 8px;
    padding: 40px;
    margin-top: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.league-lookup h3 {
    color: #232f3e;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

.league-lookup > p {
    font-size: 16px;
    color: #687078;
    margin-bottom: 32px;
    text-align: center;
}

.lookup-form-container {
    max-width: 500px;
    margin: 0 auto 32px;
}

.lookup-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-weight: 500;
    text-align: center;
}

.lookup-message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.lookup-message.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #232f3e;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 16px;
    background: #f8fafc;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #c89b3c;
    background: white;
    box-shadow: 0 0 0 3px rgba(200, 155, 60, 0.1);
}

.lookup-submit-btn {
    background: #c89b3c;
    color: white;
    padding: 12px 32px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    margin: 0 auto;
}

.lookup-submit-btn:hover {
    background: #b8862e;
    transform: translateY(-1px);
}

.lookup-submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Results display */
.summoner-results {
    max-width: 600px;
    margin: 0 auto;
    background: #f8fafc;
    border-radius: 8px;
    padding: 24px;
}

.summoner-card {
    background: white;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.summoner-card h5 {
    color: #c89b3c;
    font-size: 24px;
    margin-bottom: 8px;
}

.champions-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.champion-card {
    background: white;
    border-radius: 6px;
    padding: 16px;
    border-left: 4px solid #c89b3c;
}

.champion-card p {
    margin: 4px 0;
    font-size: 14px;
}

@media (max-width: 768px) {
    .league-lookup {
        padding: 24px;
    }
    
    .champions-grid {
        grid-template-columns: 1fr;
    }
}
/* END LEAGUE LOOKUP STYLES */
