/* ===== The LeagueWorld — Main Stylesheet ===== */

:root {
  --primary: #0d1b2a;
  --secondary: #1b263b;
  --accent: #4361ee;
  --accent-light: #5a74f0;
  --highlight: #f72585;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-light: #f8fafc;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(13, 27, 42, 0.08);
  --shadow-lg: 0 16px 48px rgba(13, 27, 42, 0.14);
  --transition: 0.25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-light); }

img { max-width: 100%; height: auto; display: block; }

/* ===== Layout ===== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ===== Typography ===== */
h1, h2, h3, h4, h5 { line-height: 1.25; font-weight: 700; color: var(--primary); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { color: var(--text-muted); }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title { margin-bottom: 16px; }
.section-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 560px; }
.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-light); border-color: var(--accent-light); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }

.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.btn-white:hover { background: var(--bg-light); color: var(--accent); }

.btn-lg { padding: 18px 36px; font-size: 1rem; }

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.navbar.scrolled { box-shadow: var(--shadow); }

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo svg { fill: #fff; }

.brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.brand-name span { color: var(--accent); }

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.navbar-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: color var(--transition);
}

.navbar-nav a:hover,
.navbar-nav a.active { color: var(--accent); }

.navbar-cta { margin-left: 16px; }

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--primary);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 60%, #243b55 100%);
  color: #fff;
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(67, 97, 238, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(247, 37, 133, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(67, 97, 238, 0.2);
  border: 1px solid rgba(67, 97, 238, 0.4);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: #a5b4fc;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 .accent { color: #a5b4fc; }

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-mockup {
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
}

.mockup-bar {
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dot:nth-child(1) { background: #ff5f57; }
.mockup-dot:nth-child(2) { background: #ffbd2e; }
.mockup-dot:nth-child(3) { background: #28ca41; }

.mockup-body { padding: 24px; }

.mockup-line {
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  margin-bottom: 12px;
}

.mockup-line:nth-child(1) { width: 70%; }
.mockup-line:nth-child(2) { width: 90%; }
.mockup-line:nth-child(3) { width: 55%; }
.mockup-line:nth-child(4) { width: 80%; margin-top: 20px; }
.mockup-line:nth-child(5) { width: 65%; }

.mockup-block {
  height: 80px;
  background: rgba(67, 97, 238, 0.3);
  border-radius: 8px;
  margin: 20px 0;
}

/* ===== Clients Strip ===== */
.clients-strip {
  padding: 56px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.clients-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 8px;
}

.client-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  text-decoration: none;
  transition: all var(--transition);
}

.client-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(67, 97, 238, 0.12);
  transform: translateY(-2px);
}

.client-logo {
  height: 20px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.6);
  transition: filter var(--transition);
}

.client-item:hover .client-logo { filter: grayscale(0%) opacity(1); }

.client-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.client-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.client-item-inner { display: flex; flex-direction: column; }

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(67, 97, 238, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg { fill: var(--accent); width: 28px; height: 28px; }

.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 0.95rem; }

/* ===== Portfolio ===== */
.portfolio-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.project-image {
  height: 200px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.project-image img { width: 100%; height: 100%; object-fit: cover; }

.project-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.project-image-placeholder svg { fill: rgba(255,255,255,0.3); width: 48px; height: 48px; }

.project-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(13, 27, 42, 0.75);
  color: #a5b4fc;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: 0.05em;
}

.project-body { padding: 24px; }
.project-body h3 { margin-bottom: 6px; }
.project-client { font-size: 0.85rem; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.project-body p { font-size: 0.9rem; }

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

/* ===== Testimonials ===== */
.testimonials-bg { background: var(--bg-light); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.testimonial-stars { color: #f59e0b; font-size: 1rem; margin-bottom: 16px; letter-spacing: 2px; }

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author { display: flex; align-items: center; gap: 12px; }

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--highlight));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-name { font-weight: 700; font-size: 0.95rem; color: var(--primary); }
.testimonial-company { font-size: 0.8rem; color: var(--text-muted); }

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-image-frame {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 20px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-image-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--accent);
  color: #fff;
  padding: 16px 20px;
  border-radius: 14px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.about-badge-number { font-size: 1.75rem; font-weight: 800; display: block; }
.about-badge-text { font-size: 0.8rem; opacity: 0.85; }

.about-content { }
.about-content h2 { margin-bottom: 20px; }
.about-content p { margin-bottom: 20px; }

.values-list { list-style: none; margin: 28px 0; }

.values-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.values-list li:last-child { border-bottom: none; }

.value-check {
  width: 22px;
  height: 22px;
  background: rgba(67, 97, 238, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.value-check svg { fill: var(--accent); width: 12px; height: 12px; }

.value-text strong { display: block; color: var(--primary); font-weight: 700; }
.value-text span { font-size: 0.9rem; color: var(--text-muted); }

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.cta-banner h2 { color: #fff; margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 520px; margin: 0 auto 36px; }
.cta-banner .btn-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
}

.contact-info h3 { margin-bottom: 16px; }
.contact-info p { margin-bottom: 32px; }

.contact-details { list-style: none; }

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.contact-details li:last-child { border-bottom: none; }

.contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(67, 97, 238, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg { fill: var(--accent); width: 18px; height: 18px; }

.contact-detail-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.contact-detail-value { font-size: 0.95rem; color: var(--primary); font-weight: 600; }

/* ===== Forms ===== */
.form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  font-family: inherit;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.12);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ===== Messages ===== */
.messages { list-style: none; margin-bottom: 20px; }
.messages li {
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
}
.messages .success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.messages .error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.messages .warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.messages .info { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

/* ===== Footer ===== */
.footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.75);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand .brand-name { color: #fff; font-size: 1.2rem; }
.footer-brand .brand-name span { color: #a5b4fc; }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.55); margin-top: 16px; max-width: 280px; }

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 0.9rem; color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 0.85rem; color: rgba(255,255,255,0.4); }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: #a5b4fc; }

/* ===== Page Hero ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 72px 0;
  color: #fff;
  text-align: center;
}

.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.05rem; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .navbar-nav, .navbar-cta { display: none; }
  .navbar-toggle { display: flex; }
  .navbar-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    gap: 16px;
    align-items: flex-start;
    box-shadow: var(--shadow);
  }
  .navbar-nav.open + .navbar-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
