/* RESET */

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

body {
  font-family: Arial, sans-serif;
  color: rgb(0, 0, 0);
  background: radial-gradient(circle at center, #1a1a1a 0%, #0f0f0f 60%);
  overflow-x: hidden;
  background-color: #000;  /* negru real */
    color: #fff;
    min-height: 100%;
    overflow-x: hidden; /* elimină banda albă laterală */
}

html, body {
  touch-action: manipulation;
}

/* HEADER */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 40px;

  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);

  z-index: 1000;

  border-bottom: 1px solid rgba(254, 254, 254, 0.1);
    box-shadow: 0 1px 3px rgba(255,255,255,0.05);
}

/* Brand */

.brand {
  display: flex;
  align-items: center;
}

.logo {
  height: 40px;
}

.brand-text {
  margin-left: 10px;
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

/* Center nav */

.center-nav {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.center-nav a {
  text-decoration: none;
  color: white;
  position: relative;
  font-size: 15px;
  letter-spacing: 1px;
}

.center-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: white;
  transition: 0.3s ease;
}

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

/* Menu toggle */

.menu-toggle {
  font-size: 26px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* MENU OVERLAY */

.menu-toggle {
    width: 30px;
    height: 22px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: white;
    transition: all 0.4s ease;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 10px; }
.menu-toggle span:nth-child(3) { top: 20px; }

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    display: flex;
    justify-content: flex-end;
    z-index: 1000;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}
.menu-panel {
    width: 320px;
    height: 100%;
    background: #111;
    padding: 100px 40px;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.menu-overlay.active .menu-panel {
    transform: translateX(0);
}
.menu-panel a {
    color: white;
    text-decoration: none;
    font-size: 22px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
    position: relative;
}

.menu-overlay.active .menu-panel a {
    opacity: 1;
    transform: translateX(0);
}

.menu-overlay.active .menu-panel a:nth-child(1) { transition-delay: 0.1s; }
.menu-overlay.active .menu-panel a:nth-child(2) { transition-delay: 0.2s; }
.menu-overlay.active .menu-panel a:nth-child(3) { transition-delay: 0.3s; }
.menu-overlay.active .menu-panel a:nth-child(4) { transition-delay: 0.4s; }
.menu-overlay.active .menu-panel a:nth-child(5) { transition-delay: 0.5s; }
.menu-overlay.active .menu-panel a:nth-child(6) { transition-delay: 0.6s; }

.menu-panel a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 1px;
    background: white;
    transition: width 0.3s ease;
}

.menu-panel a:hover::after {
    width: 100%;
}
/* HERO */

.hero {
  min-height: 60vh; /* nu full screen */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* urcă textul */
  align-items: center;
  padding-top: 200px; /* spațiu sub header */
  padding-bottom: 40px;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 16px;
  font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
}

.hero p {
  font-size: 18px;
  opacity: 0.7;
  margin-bottom: 0; /* IMPORTANT */
     font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.75);
    max-width: 700px;
    line-height: 1.6;
}
/* ========================= */
/* HERO CINEMATIC ANIMATION */
/* ========================= */


.hero p {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(10px);
}

/* Titlul */

.hero h1 {
    animation: heroReveal 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Paragraful apare puțin după */

.hero p {
    animation: heroReveal 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.6s;
}

@keyframes heroReveal {
    0% {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(10px);
    }
    60% {
        filter: blur(3px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}
/* PORTFOLIO */

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

.portfolio-track {
  display: flex;
  align-items: center;
  transition: transform 0.4s ease;
}

.portfolio-item {
  flex: 0 0 33.333%;
  display: flex;
  justify-content: center;
}

.portfolio-item iframe {
  width: 80%;
  height: 250px;
  border-radius: 16px;
}
/* MOBILE */

.arrow {
  display: flex;
  align-items: center;
  justify-content: center;

  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 50px;
  height: 50px;

  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 22px;

  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}
.arrow.left {
  left: 20px;
}

.arrow.right {
  right: 20px;
}
@media (max-width: 768px) {
    .portfolio {
    margin-top: 150px;  /* spatiul dintre clip si scris */
  }

    .hero {
    min-height: auto;          /* spatiul dintre scris si meniu */
    padding-top: 130px;         /* controlezi spațiul aici */
    padding-bottom: 40px;
    }
  .hero h1 {
    font-size: 32px;
  }

  .center-nav {
    display: none;
  }

  .portfolio-track {
    display: flex;
    transition: transform 0.4s ease;
  }

  .portfolio-item {
    min-width: 100%;
  }

  .portfolio-item iframe {
    height: 250px;
  }

  .arrow {
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 26px;
    padding: 10px 16px;
    border-radius: 50%;
    cursor: pointer;
  }

  .arrow.left { left: 10px; }
  .arrow.right { right: 10px; }

}
@media (max-width: 768px) {

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

.portfolio-track {
    display: flex;
    transition: transform 0.4s ease;
}

.portfolio-item {
    min-width: 100%;
    flex-shrink: 0;
}

.arrow {
  display: flex;
  align-items: center;
  justify-content: center;

  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 60px;
  height: 60px;

  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;

  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
}
.arrow.left {
    left: 10px;
}

.arrow.right {
    right: 10px;
}
}