/*
Theme Name: CreativeVideo Simple
Text Domain: creativevideo-simple
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Author: Tobias
Description: Minimal theme providing a custom front page with gradient background, logo, video, testimonials, and footnote.
*/

/* Base */
* { box-sizing: border-box; }
:root {
  /* Darker tones with subtle glow */
  --mesh-a: rgba(82, 14, 165, 0.38);
  --mesh-b: rgba(139, 54, 224, 0.28);
  --mesh-c: rgba(190, 35, 90, 0.18);
  --mesh-d: rgba(20, 120, 200, 0.08);
  --container-width: 1100px;
}
html, body { height: 100%; }
html { font-family: "Zalando Sans SemiExpanded", "ZalandoSans-SemiExpanded", "Zalando Sans", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
body {
  margin: 0;
  font-family: inherit;
  color: #ffffff;
  /* Much darker base gradient */
  background: linear-gradient(135deg, #070312 0%, #140627 55%, #2a0845 100%);
  background-attachment: fixed;
}
/* Layer 1 */
body::before {
  content: "";
  position: fixed;
  inset: -25% -25% -25% -25%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 30% at 15% 20%, var(--mesh-a), transparent 60%),
    radial-gradient(35% 25% at 85% 15%, var(--mesh-b), transparent 60%),
    radial-gradient(45% 35% at 20% 85%, var(--mesh-c), transparent 65%),
    radial-gradient(30% 25% at 90% 80%, var(--mesh-d), transparent 60%);
  filter: blur(60px) saturate(125%);
  animation: meshFloat 9s ease-in-out infinite alternate;
  transform: translate3d(0,0,0);
}
/* Layer 2 (counter-motion for more activity) */
body::after {
  content: "";
  position: fixed;
  inset: -20% -20% -20% -20%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(30% 30% at 10% 70%, rgba(140, 35, 200, 0.18), transparent 60%),
    radial-gradient(35% 35% at 80% 60%, rgba(200, 60, 140, 0.14), transparent 60%);
  filter: blur(80px) saturate(135%);
  animation: meshFloatReverse 11s ease-in-out infinite alternate;
  transform: translate3d(0,0,0);
}

@keyframes meshFloat {
  0%   { transform: translate3d(0,0,0) scale(1.00); }
  50%  { transform: translate3d(-6%, 3%, 0) scale(1.06); }
  100% { transform: translate3d(6%, -3%, 0) scale(1.04); }
}

@keyframes meshFloatReverse {
  0%   { transform: translate3d(0,0,0) scale(1.00); }
  50%  { transform: translate3d(5%, -2%, 0) scale(1.05); }
  100% { transform: translate3d(-5%, 2%, 0) scale(1.03); }
}
.wrapper { min-height: 100%; display: grid; grid-template-rows: auto 1fr auto; }
.header { padding: 32px 16px 16px; text-align: center; }
.header img, .header .custom-logo { width: min(90vw, 520px); height: auto; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25)); }
.main { padding: 16px; display: grid; gap: 40px; place-items: center; width: min(100%, var(--container-width)); margin: 0 auto; }
.video-card { width: 100%; background: rgba(255,255,255,0.06); border: none; border-radius: 16px; overflow: hidden; backdrop-filter: blur(6px); box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.video-card video, .video-card .video-fallback { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0b1020; }
.video-card .video-fallback { display: grid; place-items: center; color: #c7d2fe; }
.testimonials { width: 100%; padding: 8px; }
.testimonials h2 { margin: 0 0 16px; font-size: 20px; font-weight: 700; color: #e0e7ff; text-align: center; }
.logo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.logo-grid .logo-item { display: grid; place-items: center; padding: 12px; background: rgba(255,255,255,0.06); border: none; border-radius: 12px; height: 110px; }
/* Normalize visual size of mixed-aspect logos (smaller) */
.logo-grid img { display: block; margin: auto; max-width: 50%; max-height: 55%; width: auto; height: auto; object-fit: contain; opacity: 0.95; }
.footer { text-align: center; padding: 24px 16px 32px; color: #dbeafe; }
.footer small { display: block; max-width: 900px; margin: 0 auto 8px; line-height: 1.45; opacity: 0.9; }
.footer a { color: #bbdefb; text-decoration: underline; }
.btn-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 10px 16px;
  background: #ffffff;
  color: #000000;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(10, 102, 194, 0.25);
  border: 1px solid rgba(10, 102, 194, 0.18);
  gap: 1.25rem;
  line-height: 1;
}
.footer a.btn-linkedin { color: #000000; text-decoration: none; }
.btn-linkedin:hover { box-shadow: 0 10px 24px rgba(10, 102, 194, 0.35); transform: translateY(-1px); }
.btn-linkedin:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(10, 102, 194, 0.25); }
button, input, select, textarea { font-family: inherit; }
@media (max-width: 720px) { 
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-grid .logo-item { height: 96px; }
}

/* Intro animation: logo appears centered, lifts up; content fades in */
body.intro-start .main,
body.intro-start .footer { opacity: 0; }

body.intro-start .header {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 50;
  padding: 0; text-align: center; background: transparent;
}
body.intro-start .header img,
body.intro-start .header .custom-logo { opacity: 0; transform: translateY(0) scale(1); animation: introLogoFade 600ms ease-out forwards; }

body.intro-move .header img,
body.intro-move .header .custom-logo { animation: introLogoLift 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards; }
body.intro-move .header img { animation: introLogoLift 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards; }

@keyframes introLogoFade { to { opacity: 1; } }
/* Lift up and fade out */
@keyframes introLogoLift {
  0%   { transform: none; opacity: 1; }
  100% { transform: none; opacity: 0; }
}

/* Finalize: restore normal flow and fade in rest */
body.intro-done .header { position: static; inset: auto; display: block; padding: 32px 16px 16px; }
body.intro-done .header img,
body.intro-done .header .custom-logo { transform: none; opacity: 1; animation: none !important; }
body.intro-done .header img { transform: none; opacity: 1; animation: none !important; }
body.intro-done .main,
body.intro-done .footer { animation: introFadeIn 700ms ease-out forwards; }

@keyframes introFadeIn { from { opacity: 0; } to { opacity: 1; } }
