:root {
  --accent: #e60012;
  --black: #000;
  --gray: #555;
  --bg: #fff;
}

@media (max-width: 1200px) {
    #hero-bg {
        display: none;
    }
}

@media (max-width: 768px) {
  nav .cta {
    display: none; /* eltűnik a navból */
  }

  .hero .cta {
    display: inline-block;
    margin-top: 1.5rem;
  }

  nav ul {
    gap: 1rem;
  }

  nav a {
    font-size: 1rem;
    padding: 0.5rem;
  }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 4rem 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

body {
  background: var(--bg);
  color: var(--black);
  overflow-x: hidden;
}

/* NAV */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee;
  z-index: 10;
}
.nav-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
}
.logo span { color: var(--accent); }
.navbar nav a {
  margin: 0 0.75rem;
  text-decoration: none;
  color: var(--black);
  font-weight: 500;
}
.navbar nav a:hover { color: var(--accent); }


/* HERO */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 2rem;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.hero h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}
.hero h1 span {
  color: var(--accent);
}
.hero p {
  color: var(--gray);
  margin-top: 1rem;
}
.hero-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.secondary-btn {
  border: 1px solid #ddd;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--black);
  transition: 0.3s;
}
.secondary-btn:hover {
  border-color: var(--black);
}

/* CANVAS background */
#hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* SECTIONS */
.section {
  max-width: 1100px;
  margin: 5rem auto;
  text-align: center;
  padding: 0 1rem;
}
.section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}
.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  padding: 1.5rem;
  border: 1px solid #eee;
  border-radius: 10px;
  transition: 0.4s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* ==== PROJECT SHOWCASE ==== */
.projects {
  text-align: center;
  padding: 6rem 1rem;
  background: #fff;
  position: relative;
}

.projects h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #000;
}

/* Rács elrendezés */
.project-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  transition: background 0.5s ease;
  position: relative;
}

/* Kártyák */
.project-card {
  position: relative;
  width: 260px;
  height: 160px;
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff, #f8f8f8);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 500;
  color: #000;
  transition: all 0.9s ease;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.project-card.focused {
  transform: scale(1.08);
  filter: none;
  z-index: 3;
  box-shadow: 0 18px 45px rgba(230,0,18,0.25);
}

.project-card.dimmed {
  filter: blur(3px) brightness(0.6);
  transform: scale(0.95);
  opacity: 0.7;
}


/* Hover fényes hatás */
.project-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(230,0,18,0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover::before {
  opacity: 1;
}


/* Félig átlátszó réteg a fényhatáshoz */
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,0.15), rgba(255,255,255,0));
  mix-blend-mode: screen;
  pointer-events: none;
}


/* ==== WHY SECTION ==== */
/* ==== WHY SECTION ==== */
.why-section {
  text-align: center;
  padding: 6rem 1rem 8rem;
  background: #fff;
  position: relative;
  overflow: hidden;
  transition: background 0.8s ease, color 0.8s ease;
}

/* amikor bármelyik kártyán hover van */
.why-section.active {
  background: #e60012;
}

/* Címsor */
.why-section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #000;
  transition: color 0.6s ease;
}

.why-section.active h2 {
  color: #fff;
}

/* Kártyák */
.why-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.why-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  width: 300px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.4s ease;
  transform: translateY(0);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.why-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Szövegek */
.why-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #e60012;
  margin-bottom: 0.8rem;
  transition: color 0.3s ease;
}

.why-card:hover h3 {
  color: #c4000e;
}

.why-card p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
}

/* “Ezért!” felirat */
.why-text {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
  z-index: 1;
}

.why-section.active .why-text {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ==== CONTACT SECTION ==== */
.contact-section {
  position: relative;
  padding: 8rem 1.5rem;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #fff 0%, #fafafa 80%);
}

/* ikonok a háttérben */
.contact-section .fa-solid {
  position: absolute;
  font-size: 6rem;
  color: rgb(255, 0, 0);
  z-index: 999;
  opacity: 0.12;
  animation: floaty 10s ease-in-out infinite alternate;
  transition: opacity 0.4s;
}

/* Egyedi pozíciók és szögek */
.contact-section > .fa-globe {
  top: 10%;
  left: 8%;
  transform: rotate(-12deg);
}
.contact-section > .fa-circle-question {
  top: 13%;
  right: 18%;
  transform: rotate(8deg);
}
.contact-section > .fa-desktop {
  bottom: 18%;
  left: 20%;
  transform: rotate(45deg);
}
.contact-section > .fa-keyboard {
  bottom: 25%;
  right: 5%;
  transform: rotate(-18deg);
}
.contact-section > .fa-computer-mouse {
  top: 55%;
  left: 69%;
  transform: rotate(10deg);
}

.contact-section > .fa-lightbulb {
  top: 10%;
  left: 31%;
  transform: rotate(-12deg);
}


/* Finom lebegő mozgás */
@keyframes floaty {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.05; }
  50% { transform: translateY(-10px) rotate(2deg); opacity: 0.1; }
  100% { transform: translateY(0) rotate(0deg); opacity: 0.05; }
}

/* Tartalom a háttér fölé */
.contact-section h2,
.contact-section form {
  position: relative;
  z-index: 2;
}

/* Cím */
.contact-section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: #000;
  letter-spacing: -0.5px;
}

/* Form */
form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form input,
form textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 1px solid #ddd;
  border-radius: 14px;
  font-size: 1rem;
  background: #fff;
  color: #111;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  z-index: 2;
}

form input:focus,
form textarea:focus {
  border-color: #e60012;
  box-shadow: 0 0 0 3px rgba(230,0,18,0.15);
  background: #fff;
}

form textarea {
  resize: none;
  min-height: 120px;
}

input:not(:placeholder-shown),
textarea:not(:placeholder-shown) {
  border-color: #01924277;
  box-shadow: 0 0 0 3px rgba(1, 88, 40, 0.15);
}



/* GOMB – animált fénycsúszás */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(90deg, #e60012, #b0000f);
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  color: #fff;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(230, 0, 18, 0.25);
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.3), rgba(255,255,255,0));
  transform: skewX(-25deg);
}

.cta:hover::before {
  animation: shine 1.1s ease-in-out forwards;
}

@keyframes shine {
  0% { left: -75%; }
  100% { left: 125%; }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 30px rgba(230, 0, 18, 0.5); }
  50% { box-shadow: 0 0 60px rgba(230, 0, 18, 0.8); }
}

.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(230, 0, 18, 0.35);
  animation: pulse 1.5s infinite ease-in-out;
}

.cta:active {
  transform: scale(0.98);
}

/* Finom háttér-fény */
.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(230, 0, 18, 0.08), transparent 70%);
  z-index: -1;
  animation: pulseGlow 6s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}


/* FOOTER */
footer {
  background: #fafafa;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #777;
}

/* RESPONSIVE */
@media (max-width: 700px) {
  .hero h1 { font-size: 1.8rem; }
}
