/* Dautomation AI - Shared Stylesheet */

/* Page fade-in on load */
@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Page fade-out on exit */
@keyframes pageFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

body {
  animation: pageFadeIn 0.4s ease-in;
}

body.page-exit {
  animation: pageFadeOut 0.3s ease-out forwards;
}

/* Hero text animations */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 { animation: heroFadeUp 0.7s ease-out 0.2s both; }
.hero h2 { animation: heroFadeUp 0.7s ease-out 0.2s both; }
.hero p  { animation: heroFadeUp 0.7s ease-out 0.4s both; }
.hero .cta-button { animation: heroFadeUp 0.7s ease-out 0.6s both; }

/* Scroll fade-in sections */
.fade-in-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #111111;
}

header {
  background: #1E3A8A;
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo span {
  font-size: 1.4rem;
  font-weight: bold;
  color: white;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}

.nav-links a:hover {
  border-bottom: 2px solid rgba(255,255,255,0.5);
  padding-bottom: 2px;
}

.nav-links a.active {
  border-bottom: 2px solid rgba(255,255,255,0.8);
  padding-bottom: 2px;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

/* Background image layer — JS moves top for parallax, CSS animates scale for Ken Burns */
.hero-bg {
  position: absolute;
  top: 0;
  left: -5%;
  width: 110%;
  height: 110%;
  background: url('A_digital_artwork_combining_elements_of_artificial.png') center center/cover no-repeat;
  z-index: 0;
  animation: heroBgZoom 20s ease-in-out infinite alternate;
}

@keyframes heroBgZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}

/* Dark overlay */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

footer {
  background: #222222;
  color: white;
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.menu-toggle span {
  background: white;
  height: 3px;
  width: 25px;
  margin: 4px 0;
  display: block;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #1E3A8A;
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    transform: none;
    width: 200px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    z-index: 99;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.15);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
    border-radius: 0;
    transition: background 0.2s ease;
  }

  .nav-links li a:hover {
    background: rgba(255,255,255,0.12);
    border-bottom: none;
    padding-bottom: 0;
  }

  .nav-links li a.active {
    background: rgba(255,255,255,0.2);
    border-bottom: none;
    padding-bottom: 0;
    font-weight: 700;
  }

  .nav-links.show {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }
}
