/*
Theme Name: E. Leyton Elektriska
Theme URI: 
Author: 
Description: Retro-futuristiskt tema för E. Leyton Elektriska AB
Version: 1.0
License: MIT
Text Domain: e-leyton
*/

:root {
  --color-dark: #0D0A08;
  --color-dark-alt: #1C1512;
  --color-copper: #B8633C;
  --color-orange: #E8762E;
  --color-gold: #F0B84D;
  --color-cyan: #00E5FF;
  --color-cyan-dim: rgba(0, 229, 255, 0.15);
  --color-cream: #F5EDE0;
  --color-white: #FFFAF5;
  --color-off-white: rgba(255, 250, 245, 0.85);
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --max-width: 1200px;
  --section-padding: 120px 24px;
  --transition-smooth: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-dark);
  color: var(--color-cream);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: var(--color-cyan);
  color: var(--color-dark);
}

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

a {
  color: var(--color-cyan);
  text-decoration: none;
  transition: color var(--transition-smooth);
}

a:hover {
  color: var(--color-orange);
}

/* ===================== */
/* BUTTONS               */
/* ===================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 36px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--color-cyan);
  color: var(--color-dark);
  border-color: var(--color-cyan);
}

.btn--primary:hover {
  background: transparent;
  color: var(--color-cyan);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
}

.btn--secondary {
  background: transparent;
  color: var(--color-cream);
  border-color: var(--color-copper);
}

.btn--secondary:hover {
  background: var(--color-copper);
  color: var(--color-cream);
}

.btn::after {
  content: '→';
  transition: transform var(--transition-smooth);
}

.btn:hover::after {
  transform: translateX(4px);
}

/* ===================== */
/* NOISE OVERLAY         */
/* ===================== */

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ===================== */
/* GRID BACKGROUND       */
/* ===================== */

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

/* ===================== */
/* SITE HEADER           */
/* ===================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-smooth);
}

.site-header--scrolled {
  background: rgba(13, 10, 8, 0.92);
  backdrop-filter: blur(12px);
  padding: 12px 24px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
}

.site-logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--color-white);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo .logo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--color-cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--color-cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 12px var(--color-cyan); }
  50% { opacity: 0.6; box-shadow: 0 0 24px var(--color-cyan); }
}

.site-nav {
  display: flex;
  gap: 32px;
  list-style: none;
}

.site-nav a {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-off-white);
  position: relative;
  padding-bottom: 4px;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-cyan);
  transition: width var(--transition-smooth);
}

.site-nav a:hover::after {
  width: 100%;
}

/* ===================== */
/* HERO                  */
/* ===================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(184, 99, 60, 0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 80%, rgba(0, 229, 255, 0.06) 0%, transparent 50%);
  z-index: 1;
}

.hero__lightning {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  z-index: 1;
  pointer-events: none;
}

.hero__lightning-svg {
  width: 100%;
  height: 100%;
  opacity: 0.15;
}

.hero__lightning-path {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: draw-lightning 4s ease-in-out infinite;
}

@keyframes draw-lightning {
  0% { stroke-dashoffset: 2000; opacity: 0; }
  20% { stroke-dashoffset: 0; opacity: 0.5; }
  30% { stroke-dashoffset: 0; opacity: 0.5; }
  50% { stroke-dashoffset: 2000; opacity: 0; }
  100% { stroke-dashoffset: 2000; opacity: 0; }
}

.hero__circle {
  position: absolute;
  border: 1px solid rgba(0, 229, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.hero__circle--1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.hero__circle--2 {
  width: 250px;
  height: 250px;
  bottom: 50px;
  left: -60px;
  border-color: rgba(184, 99, 60, 0.15);
  animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero__badge {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 32px;
  opacity: 0;
  animation: fade-up 0.8s 0.2s ease forwards;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(3.5rem, 12vw, 9rem);
  line-height: 0.95;
  color: var(--color-white);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  opacity: 0;
  animation: fade-up 0.8s 0.4s ease forwards;
}

.hero__title-accent {
  display: block;
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-copper) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-off-white);
  margin-bottom: 24px;
  opacity: 0;
  animation: fade-up 0.8s 0.6s ease forwards;
}

.hero__tagline {
  font-size: 1.1rem;
  color: rgba(255, 250, 245, 0.6);
  margin-bottom: 48px;
  opacity: 0;
  animation: fade-up 0.8s 0.8s ease forwards;
}

.hero__cta {
  opacity: 0;
  animation: fade-up 0.8s 1.0s ease forwards;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 250, 245, 0.3);
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounce-scroll 2s ease-in-out infinite;
}

@keyframes bounce-scroll {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===================== */
/* SECTION COMMON        */
/* ===================== */

.section {
  position: relative;
  padding: var(--section-padding);
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section__label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section__label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--color-cyan);
}

.section__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.section__text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-off-white);
  max-width: 640px;
}

.animate-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.animate-in--delay-1 { transition-delay: 0.1s; }
.animate-in--delay-2 { transition-delay: 0.2s; }
.animate-in--delay-3 { transition-delay: 0.3s; }
.animate-in--delay-4 { transition-delay: 0.4s; }
.animate-in--delay-5 { transition-delay: 0.5s; }

/* ===================== */
/* SERVICES              */
/* ===================== */

.services {
  background: var(--color-dark-alt);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 64px;
}

.service-card {
  background: rgba(255, 250, 245, 0.02);
  border: 1px solid rgba(255, 250, 245, 0.06);
  padding: 40px 32px;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--color-cyan);
  transition: height var(--transition-smooth);
}

.service-card:hover::before {
  height: 100%;
}

.service-card:hover {
  border-color: rgba(0, 229, 255, 0.2);
  background: rgba(0, 229, 255, 0.03);
  transform: translateY(-4px);
}

.service-card__icon {
  font-size: 2.2rem;
  margin-bottom: 24px;
  display: block;
}

.service-card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-white);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.service-card__text {
  font-size: 0.9rem;
  color: rgba(255, 250, 245, 0.6);
  line-height: 1.7;
}

/* ===================== */
/* ABOUT                 */
/* ===================== */

.about {
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  right: -200px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  border: 1px solid rgba(184, 99, 60, 0.08);
  border-radius: 50%;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.stat {
  text-align: center;
  padding: 24px;
  border: 1px solid rgba(255, 250, 245, 0.06);
}

.stat__number {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.6rem;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}

.stat__label {
  font-size: 0.8rem;
  color: rgba(255, 250, 245, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.about__image-wrapper {
  position: relative;
}

.about__image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(184, 99, 60, 0.15), rgba(0, 229, 255, 0.08));
  border: 1px solid rgba(255, 250, 245, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: rgba(255, 250, 245, 0.2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about__image-corner {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 60px;
  height: 60px;
  border-right: 2px solid var(--color-cyan);
  border-bottom: 2px solid var(--color-cyan);
  opacity: 0.4;
}

/* ===================== */
/* PROJECTS              */
/* ===================== */

.projects {
  background: var(--color-dark-alt);
}

.project-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 64px;
}

.project-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
}

.project-item__bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(184, 99, 60, 0.1), rgba(0, 229, 255, 0.05));
  border: 1px solid rgba(255, 250, 245, 0.06);
  transition: all var(--transition-smooth);
}

.project-item:hover .project-item__bg {
  transform: scale(1.05);
  border-color: rgba(0, 229, 255, 0.2);
}

.project-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 10, 8, 0.9), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.project-item:hover .project-item__overlay {
  opacity: 1;
}

.project-item__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-white);
  margin-bottom: 6px;
}

.project-item__desc {
  font-size: 0.85rem;
  color: rgba(255, 250, 245, 0.6);
}

/* ===================== */
/* CONTACT               */
/* ===================== */

.contact {
  position: relative;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 64px;
}

.contact__info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  align-items: flex-start;
}

.contact__info-icon {
  font-size: 1.3rem;
  line-height: 1;
  margin-top: 4px;
}

.contact__info-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-bottom: 4px;
}

.contact__info-value {
  font-size: 1rem;
  color: var(--color-off-white);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 250, 245, 0.03);
  border: 1px solid rgba(255, 250, 245, 0.1);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-smooth);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-cyan);
  background: rgba(0, 229, 255, 0.04);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.06);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 250, 245, 0.25);
  font-family: var(--font-body);
}

/* ===================== */
/* FOOTER                */
/* ===================== */

.site-footer {
  background: var(--color-dark);
  border-top: 1px solid rgba(255, 250, 245, 0.05);
  padding: 48px 24px;
  text-align: center;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-footer__logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--color-white);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.site-footer__text {
  font-size: 0.85rem;
  color: rgba(255, 250, 245, 0.3);
}

.site-footer__divider {
  width: 40px;
  height: 1px;
  background: var(--color-copper);
  margin: 16px auto;
}

/* ===================== */
/* RESPONSIVE            */
/* ===================== */

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }

  .hero__title {
    font-size: clamp(2.8rem, 10vw, 4rem);
  }

  .hero__circle--1 {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -50px;
  }

  .hero__circle--2 {
    width: 140px;
    height: 140px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__stats {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .project-showcase {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 80px 20px;
  }
}

@media (max-width: 480px) {
  .hero__badge {
    font-size: 0.6rem;
  }

  .hero__tagline {
    font-size: 0.95rem;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .stat__number {
    font-size: 2rem;
  }
}
