/* ===== Aether Technologies - Complete Stylesheet ===== */

:root {
  --aether-red: #c34039;
  --aether-lightblue: #78c7f0;
  --aether-darkblue: #2b487b;
  --aether-darkblue-dark: #1f3560;
  --gold: #ffd700;
  --gold-dark: #ffa500;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --font-main:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--gray-900);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-100);
  z-index: 1000;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.aether-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--aether-darkblue);
}

.logo-tagline {
  font-size: 0.7rem;
  color: var(--gray-600);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--aether-red);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: var(--aether-red);
  color: var(--white);
}

.btn-primary:hover {
  background: #a5332d;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-full {
  width: 100%;
}

/* ===== Menu Toggle ===== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  margin: 5px 0;
  transition: var(--transition);
}

/* ===== HOME HERO ===== */
.hero {
  background: linear-gradient(
    135deg,
    var(--aether-darkblue) 0%,
    var(--aether-darkblue-dark) 60%,
    rgba(120, 199, 240, 0.35) 100%
  );
  padding: 150px 0 90px;
  color: var(--white);
  overflow: hidden;
  min-height: 700px;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Reserve space to prevent CLS */
.hero-logo {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
}

.hero-brand-name {
  min-height: 1.5em;
  width: 100%;
}

.hero h1 {
  min-height: 2.5em;
  width: 100%;
}

.hero p {
  min-height: 5em;
  width: 100%;
}

.hero-actions {
  min-height: 50px;
}

/* ===== INNER PAGE HEADER (About, Models, Blog, Contact) ===== */
.page-header {
  background: linear-gradient(
    135deg,
    var(--aether-darkblue),
    var(--aether-darkblue-dark)
  );
  padding: 130px 0 60px;
  color: var(--white);
}

.page-header-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-header-logo {
  flex-shrink: 0;
  animation: logo-float 4s ease-in-out infinite;
}

.page-header-logo svg {
  width: 110px;
  height: 110px;
  display: block;
  filter: drop-shadow(0 6px 20px rgba(255, 215, 0, 0.3));
}

.page-header-text {
  flex: 1;
  min-width: 0;
}

.page-header-text h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--white);
}

.page-header-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
}

/* ===== SVG Logo Animations ===== */
.orbit-1,
.orbit-2,
.orbit-3 {
  transform-box: fill-box;
  transform-origin: center;
}

.orbit-1 {
  animation: orbit-spin 8s linear infinite;
}
.orbit-2 {
  animation: orbit-spin-60 12s linear infinite;
}
.orbit-3 {
  animation: orbit-spin-120 16s linear infinite;
}

@keyframes orbit-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit-spin-60 {
  from {
    transform: rotate(60deg);
  }
  to {
    transform: rotate(420deg);
  }
}

@keyframes orbit-spin-120 {
  from {
    transform: rotate(120deg);
  }
  to {
    transform: rotate(480deg);
  }
}

.draw-path,
.draw-path-delay {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
}

.draw-path {
  animation: draw-line 2s ease-in-out 0.3s forwards;
}

.draw-path-delay {
  animation: draw-line 1.5s ease-in-out 1s forwards;
}

@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

.fade-in-delay {
  opacity: 0;
  animation: fade-in 0.5s ease-in-out 1.8s forwards;
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

.pulse-circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse-scale 3s ease-in-out infinite;
}

@keyframes pulse-scale {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.85;
  }
}

@keyframes logo-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ===== Stats ===== */
.stats {
  background: var(--gray-50);
  padding: 64px 0;
  border-bottom: 1px solid var(--gray-100);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-value {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--aether-darkblue);
  line-height: 1;
}

.stat-label {
  margin-top: 8px;
  color: var(--gray-600);
  font-weight: 500;
}

/* ===== Sections ===== */
.section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--aether-darkblue);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--gray-600);
  font-size: 1.05rem;
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 32px 26px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  transition: var(--transition);
  background: var(--white);
}

.service-card:hover {
  border-color: var(--aether-lightblue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--aether-darkblue);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* ===== CTA ===== */
.cta {
  background: var(--aether-darkblue);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}

.cta h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Footer ===== */
.footer {
  background: var(--gray-900);
  padding: 56px 0 24px;
  color: rgba(255, 255, 255, 0.65);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 16px;
}

.aether-logo-footer {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* ===== About Page ===== */
.about-content {
  max-width: 820px;
  margin: 0 auto;
}

.about-content h2 {
  color: var(--aether-darkblue);
  font-size: 1.75rem;
  margin-bottom: 16px;
  margin-top: 40px;
}

.about-content h2:first-child {
  margin-top: 0;
}

.about-content p {
  color: var(--gray-600);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

/* ===== Blog ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
  background: var(--white);
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--aether-lightblue);
}

.blog-date {
  color: var(--aether-red);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.blog-card h3 {
  color: var(--aether-darkblue);
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.blog-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.service-link {
  color: var(--aether-red);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.service-link:hover {
  gap: 10px;
}

/* ===== Contact Page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info-card,
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.contact-info-card h2,
.contact-form-card h2 {
  color: var(--aether-darkblue);
  font-size: 1.5rem;
  margin-bottom: 32px;
  text-align: center;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    var(--aether-lightblue),
    rgba(120, 199, 240, 0.3)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-item h4 {
  color: var(--aether-darkblue);
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.contact-item a,
.contact-item p {
  color: var(--gray-600);
  font-size: 0.95rem;
  word-break: break-word;
}

.contact-item a:hover {
  color: var(--aether-red);
}

.contact-divider {
  height: 1px;
  background: var(--gray-100);
  margin: 24px 0;
}

.working-hours h4 {
  color: var(--aether-darkblue);
  margin-bottom: 8px;
}

.working-hours p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* ===== Form ===== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--white);
  color: var(--gray-900);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--aether-lightblue);
  box-shadow: 0 0 0 3px rgba(120, 199, 240, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  display: none;
}

.form-message.success {
  background: #dcfce7;
  color: #166534;
  display: block;
}

.form-message.error {
  background: #fee2e2;
  color: #991b1b;
  display: block;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-100);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero {
    padding: 120px 0 60px;
  }
  .section {
    padding: 64px 0;
  }

  .animated-logo {
    width: 150px;
    height: 150px;
  }

  .hero-brand-name {
    font-size: 1.15rem;
    letter-spacing: 3px;
    margin-bottom: 24px;
  }

  .hero-logo {
    margin-bottom: 12px;
  }

  /* Inner page header: stack vertically on mobile */
  .page-header {
    padding: 110px 0 50px;
  }

  .page-header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .page-header-logo svg {
    width: 85px;
    height: 85px;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 24px;
  }
}
/* ===== Images Integration ===== */

/* About page hero image */
.about-image {
  margin-bottom: 56px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.02);
}

/* Models grid */
.models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.model-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.model-card:hover {
  border-color: var(--aether-lightblue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.model-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.model-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.model-card:hover .model-card-image img {
  transform: scale(1.08);
}

.model-card-body {
  padding: 24px;
}

.model-card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--aether-darkblue);
  margin-bottom: 12px;
}

.model-card-body p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Blog cards with images */
.blog-card {
  padding: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  transition: var(--transition);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.08);
}

.blog-card-body {
  padding: 24px;
}

/* Responsive */
@media (max-width: 1024px) {
  .models-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .models-grid {
    grid-template-columns: 1fr;
  }
  .about-image img {
    height: 280px;
  }
  .model-card-image {
    height: 200px;
  }
  .blog-card-image {
    height: 180px;
  }
}
/* ===== CLS Optimization ===== */

/* Reserve space for stats */
.stats {
  min-height: 200px;
  display: flex;
  align-items: center;
}

.stats-grid {
  width: 100%;
}

.stat-value {
  min-height: 1.1em;
}

.stat-label {
  min-height: 1.5em;
}

/* Reserve space for section headers */
.section-header h2 {
  min-height: 1.3em;
}

.section-header p {
  min-height: 2em;
}

/* Reserve space for cards */
.service-card h3 {
  min-height: 2.4em;
}

.service-card p {
  min-height: 4em;
}

/* Reserve space for CTA */
.cta {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Images aspect-ratio */
.about-image img {
  aspect-ratio: 16 / 9;
}

.model-card-image img {
  aspect-ratio: 16 / 10;
}

.blog-card-image img {
  aspect-ratio: 16 / 9;
}

/* Font optimization */
@font-face {
  font-display: swap;
}

/* Header fixed height */
.header {
  height: 76px;
}

/* Nav container */
.nav {
  height: 76px;
}

/* Prevent FOUT on hero logo */
.hero-logo svg,
.animated-logo {
  width: 200px;
  height: 200px;
}

.page-header {
  min-height: 300px;
  display: flex;
  align-items: center;
}

.page-header-logo svg {
  width: 110px;
  height: 110px;
}

.page-header-text h1 {
  min-height: 1.2em;
}

.page-header-text p {
  min-height: 1.5em;
}

/* Blog card body */
.blog-card-body h3 {
  min-height: 2.4em;
}

/* Model card body */
.model-card-body h3 {
  min-height: 1.3em;
}

/* Logo text */
.logo-name {
  min-height: 1.2em;
}

.logo-tagline {
  min-height: 1.2em;
}

/* Footer */
.footer-brand span:not(.logo-mark) {
  min-height: 1.2em;
}

.footer-desc {
  min-height: 3em;
}

.footer-links li {
  min-height: 1.5em;
}

.footer-bottom {
  min-height: 1.5em;
}
