/* ============================================
   Aetherlyh Inc — Corporate Website Styles
   Theme aligned with mobanwang demo #23125:
   dark bg #1a1919 + green accent #22c55e
   ============================================ */

:root {
  --primary: #22c55e;
  --primary-dark: #16a34a;
  --primary-light: #4ade80;
  --accent: #22c55e;
  --bg-body: #1a1919;
  --bg-card: #0a0a0a;
  --bg-elevated: #111111;
  --bg-black: #000000;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --text-primary: #ffffff;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --green-10: rgba(34, 197, 94, 0.1);
  --green-20: rgba(34, 197, 94, 0.2);
  --green-30: rgba(34, 197, 94, 0.3);
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);
  --radius: 12px;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --transition: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-secondary);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
}

a {
  text-decoration: none;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Top bar */
.top-bar {
  background: var(--bg-black);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.top-bar a {
  color: rgba(255, 255, 255, 0.85);
  margin-right: 1.5rem;
}

.top-bar a:hover {
  color: var(--primary);
}

.top-bar i {
  margin-right: 0.35rem;
  color: var(--primary);
}

/* Navbar */
.navbar {
  background: var(--bg-black);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 0;
  transition: padding var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-primary) !important;
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 10px;
  color: var(--white);
  font-size: 1.1rem;
}

.brand-text small {
  font-weight: 600;
  color: var(--primary);
}

.nav-link {
  font-weight: 500;
  color: #d1d5db !important;
  padding: 0.5rem 1rem !important;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.btn-primary {
  background: var(--primary);
  border: none;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  color: var(--white);
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-dark);
  color: var(--white);
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(34, 197, 94, 0.35);
}

.btn-nav {
  padding: 0.5rem 1.25rem !important;
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
  border-radius: 8px;
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Hero */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(26, 25, 25, 0.94) 0%, rgba(0, 0, 0, 0.88) 100%),
    url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?w=1920&h=1080&fit=crop') center/cover no-repeat;
  color: var(--white);
  padding: 4rem 0 5rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(34, 197, 94, 0.12) 0%, transparent 55%);
  pointer-events: none;
}

.min-vh-hero {
  min-height: calc(100vh - 140px);
}

.hero-badge {
  display: inline-block;
  background: var(--green-10);
  color: var(--primary);
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.text-gradient {
  background: linear-gradient(90deg, #4ade80, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-outline-light {
  border: 1px solid rgba(75, 85, 99, 0.5);
  color: var(--white);
  font-weight: 600;
  border-radius: 8px;
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(209, 213, 219, 0.15);
  border-color: rgba(75, 85, 99, 0.5);
  color: var(--white);
}

.hero-stats {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  max-width: 480px;
}

.hero-stats strong {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
}

.hero-stats span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.hero-stats small {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-label {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
}

.section-header {
  max-width: 640px;
  margin-bottom: 1rem;
}

/* About — partner panel layout (ref. image 1) */
.about-section {
  background: var(--bg-body);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.about-panel {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.4;
}

.about-panel > .row {
  position: relative;
  z-index: 1;
}

.about-badge {
  display: inline-block;
  background: var(--green-10);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.about-panel-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.about-panel-title .text-highlight {
  color: var(--primary);
}

.about-panel-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.75rem;
  max-width: 560px;
}

.about-feature-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.about-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition);
}

.about-feature-card:hover {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.04);
}

.about-feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-20);
  border-radius: 10px;
  color: var(--primary);
  font-size: 1.2rem;
}

.about-feature-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.45;
}

.about-panel-visual {
  display: flex;
  align-items: center;
  min-height: 280px;
}

.about-image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: 1rem;
  overflow: hidden;
}

.about-image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, var(--bg-card) 0%, transparent 45%);
  pointer-events: none;
}

.about-image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 992px) {
  .about-panel {
    padding: 3rem 3.5rem;
  }

  .about-panel-visual {
    min-height: 100%;
  }

  .about-image-wrap {
    min-height: 420px;
  }

  .about-image-wrap img {
    min-height: 420px;
  }
}

@media (max-width: 991.98px) {
  .about-panel-visual {
    order: -1;
    margin-bottom: 0.5rem;
  }

  .about-image-wrap::before {
    background: linear-gradient(to bottom, var(--bg-card) 0%, transparent 35%);
  }
}

/* Services */
.services-section {
  background: var(--bg-black);
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border-subtle);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(34, 197, 94, 0.35);
}

.service-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.08) 0%, var(--bg-card) 100%);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-30);
  color: var(--primary);
  border-radius: 12px;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: background var(--transition);
}

.service-card:hover .service-icon {
  background: var(--green-20);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.service-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.service-link:hover {
  color: var(--primary-light);
}

.service-link i {
  transition: transform var(--transition);
}

.service-link:hover i {
  transform: translateX(4px);
}

/* CTA Banner */
.cta-banner {
  background: var(--green-30);
  padding: 3.5rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.cta-inner h2 {
  color: var(--text-primary);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.cta-inner p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 1.05rem;
}

.cta-inner .btn-light {
  font-weight: 600;
  border-radius: 8px;
  padding: 0.75rem 2rem;
  background: var(--primary);
  color: var(--white);
  border: none;
}

.cta-inner .btn-light:hover {
  background: var(--primary-dark);
  color: var(--white);
  opacity: 0.92;
}

/* Why Choose Us — 4-card grid (ref. image 2) */
.why-section {
  background: var(--bg-body);
}

.why-header {
  max-width: 720px;
  margin-bottom: 0.5rem;
}

.why-main-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.why-main-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  height: 100%;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.why-card:hover {
  border-color: rgba(34, 197, 94, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.why-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border-radius: 10px;
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.why-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.why-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
}

/* Contact */
.contact-section {
  background: var(--bg-black);
  color: rgba(255, 255, 255, 0.85);
  border-top: 1px solid var(--border-subtle);
}

.contact-section .section-title {
  color: var(--white);
}

.contact-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info-list li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-20);
  border-radius: 10px;
  color: var(--primary);
  font-size: 1.25rem;
}

.contact-info-list strong {
  display: block;
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-info-list a,
.contact-info-list span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

.contact-info-list a:hover {
  color: var(--primary);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.contact-form .form-label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.contact-form .form-control,
.contact-form .form-select {
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.15);
  background: var(--bg-elevated);
  color: var(--text-primary);
  padding: 0.65rem 1rem;
}

.contact-form .form-control::placeholder {
  color: var(--text-muted);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--primary);
  background: var(--bg-elevated);
  color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.contact-form .form-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.form-feedback.success {
  display: block !important;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-feedback.error {
  display: block !important;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Footer */
.footer {
  background: var(--bg-black);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 0;
  border-top: 1px solid var(--border-subtle);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white) !important;
  margin-bottom: 1rem;
}

.footer-about {
  font-size: 0.9rem;
  max-width: 300px;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.footer h5 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.footer-contact li {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  align-items: flex-start;
  color: var(--text-muted);
}

.footer-contact i {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
  color: var(--primary);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--white);
  font-size: 1.1rem;
  transition: background var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  margin-top: 3rem;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 991.98px) {
  .hero {
    padding: 3rem 0 4rem;
  }

  .min-vh-hero {
    min-height: auto;
  }
}

@media (max-width: 767.98px) {
  .section {
    padding: 3.5rem 0;
  }

  .cta-inner {
    text-align: center;
  }

  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
  }
}
