/* --- GLOBAL --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  min-height: 100vh;
  background-image: url("pics/hatter.png"); /* ütős háttér */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  overflow-x: hidden;
}

/* --- NAV --- */
nav {
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- LOGO --- */
.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: default;
}

.logo-main {
  font-size: 1.2rem;
  color: #00b4ff;
  text-shadow: 0 0 6px rgba(0,180,255,0.7), 0 0 12px rgba(0,180,255,0.4);
  transition: 0.3s;
  animation: glow 3s infinite alternate, wave 6s ease-in-out infinite;
}

.logo-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 4px;
}

.logo-sub .icon {
  display: inline-block;
  animation: bounce 2s infinite;
}

/* Glow hover effekt a fő névre */
.logo:hover .logo-main {
  text-shadow: 0 0 12px rgba(0,180,255,1), 0 0 24px rgba(0,180,255,0.6);
  transform: scale(1.05);
}

/* Ikon bounce animáció */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

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

/* NAV LINKEK */
nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.75;
  transition: 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
  opacity: 1;
  color: #00b4ff;
}

/* --- HERO --- */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
}

.hero .overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  top: 0;
  left: 0;
  animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { background: rgba(0, 0, 0, 0.65); }
  50% { background: rgba(0, 0, 0, 0.55); }
}

.hero .content {
  position: relative;
  text-align: center;
  color: #fff;
  max-width: 600px;
  animation: fadeIn 2s ease forwards;
}

.hero .content img {
  width: 120px;
  max-width: 40vw;
  margin-bottom: 25px;
  filter: drop-shadow(0 0 12px rgba(0, 180, 255, 0.6));
  animation: glow 3s infinite alternate;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: lowercase;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1rem;
  opacity: 0.75;
  letter-spacing: 1px;
  margin-bottom: 25px;
}

.btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  position: relative;
  overflow: hidden;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 180, 255, 0.12);
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 1px;
  transition: 0.2s;
  backdrop-filter: blur(8px);
}

.btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(0, 180, 255, 0.1);
  transform: rotate(45deg);
  transition: all 0.5s;
}

.btn:hover::after {
  top: 0;
  left: 0;
}

.btn:hover {
  transform: translateY(-2px);
  background: rgba(0, 180, 255, 0.20);
  border-color: rgba(0, 180, 255, 0.45);
}

.btn.primary {
  background: rgba(0, 180, 255, 0.16);
  border-color: rgba(0, 180, 255, 0.35);
}

/* --- SECTIONS --- */
section {
  padding: 90px 20px;
  display: flex;
  justify-content: center;
}

.box {
  width: 100%;
  max-width: 900px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 18px;
  padding: 35px;
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(25px);
  transition: 0.8s ease;
  box-shadow: 0 0 20px rgba(0, 180, 255, 0.2);
}

.box.show {
  opacity: 1;
  transform: translateY(0);
}

.box:hover {
  box-shadow: 0 0 30px rgba(0, 180, 255, 0.4);
  transform: translateY(-5px);
}

.box h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.box p {
  opacity: 0.75;
  line-height: 1.6;
}

/* --- PROJECTS GRID --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  transition: 0.3s;
}

.card::before {
  content: "";
  position: absolute;
  width: 120%;
  height: 120%;
  background: linear-gradient(120deg, rgba(0,180,255,0.1), rgba(0,180,255,0.2), rgba(0,180,255,0.1));
  top: -100%;
  left: -100%;
  transform: rotate(25deg);
  transition: 0.8s;
}

.card:hover::before {
  top: -10%;
  left: -10%;
}

.card:hover {
  transform: translateY(-4px);
  background: rgba(0, 180, 255, 0.12);
  border-color: rgba(0, 180, 255, 0.25);
}

.card h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.card p {
  opacity: 0.75;
  font-size: 0.9rem;
}

/* --- FOOTER --- */
footer {
  padding: 25px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.35);
}

/* --- ANIMÁCIÓK --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
  from { filter: drop-shadow(0 0 8px rgba(0, 180, 255, 0.4)); }
  to { filter: drop-shadow(0 0 18px rgba(0, 180, 255, 0.8)); }
}

/* --- RESPONSIVE --- */
@media (max-width: 700px) {
  nav { padding: 18px; }
  .hero h1 { font-size: 1.6rem; }
  .hero img { width: 90px; }
  .box { padding: 25px; }
  .logo-main { font-size: 1rem; }
  .logo-sub { font-size: 0.65rem; }
  .logo-sub .icon { font-size: 0.85rem; }
}

/* Truck grid */
.truck-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.truck-card {
    background: rgba(0,0,0,0.3);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: 0.3s;
}

.truck-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0,180,255,0.4);
    background: rgba(0,180,255,0.12);
}

/* Modal alapok */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
}

.modal-content {
    background: rgba(0,0,0,0.85);
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    color: #fff;
}

.modal-content h3 {
    margin-bottom: 12px;
}

.modal-content p {
    opacity: 0.85;
    line-height: 1.5;
}

/* Close gomb */
.modal-content .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #00b4ff;
    transition: 0.3s;
}

.modal-content .close:hover {
    color: #fff;
}
