/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #e0e0e0;
  background: #0a0a0a;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== GRAIN OVERLAY ===== */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  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;
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #c9a84c, #dbb85e);
  z-index: 101;
  transition: width 0.1s linear;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}

.header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-img {
  height: 40px;
  width: auto;
}

.logo span {
  color: #c9a84c;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  transition: color 0.3s;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #c9a84c;
  transition: width 0.3s;
}

.nav a:hover {
  color: #c9a84c;
}

.nav a:hover::after,
.nav a.active-link::after {
  width: 100%;
}

.nav a.active-link {
  color: #c9a84c;
}

/* Language toggle */
.lang-toggle {
  background: transparent;
  border: 1.5px solid #c9a84c;
  color: #c9a84c;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.lang-toggle:hover {
  background: #c9a84c;
  color: #0a0a0a;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #e0e0e0;
  transition: transform 0.3s, opacity 0.3s;
}

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

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

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('pictures/hero-bw.jpg') center center / cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 20px;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  min-height: 1.2em;
}

.typing::after {
  content: '|';
  animation: blink 0.8s infinite;
  color: #c9a84c;
  font-weight: 300;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: #b0b0b0;
  margin-bottom: 32px;
}

/* ===== BUTTON ===== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  background: #c9a84c;
  color: #0a0a0a;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.3s, transform 0.2s;
}

.btn:hover {
  background: #dbb85e;
  transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
}

.section-alt {
  background: #111;
}

.section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: #888;
  margin-bottom: 50px;
  font-size: 1.05rem;
}

/* ===== PORTFOLIO GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.card {
  background: #161616;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(201, 168, 76, 0.15);
  border-color: rgba(201, 168, 76, 0.3);
}

.card {
  border: 1px solid transparent;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.card-thumb {
  position: relative;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  background: #1e1e1e;
}

.card-thumb iframe,
.card-thumb video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card h3 {
  padding: 14px 20px;
  font-size: 1.05rem;
}

.card-placeholder {
  font-size: 1.1rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 2px;
}


/* ===== DESPRE MINE ===== */
.despre-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
}

.despre-photo {
  aspect-ratio: 4/5;
  background: #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
}

.despre-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 20%;
}

.despre-placeholder {
  color: #555;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1.1rem;
}

.despre-text h2 {
  font-family: 'Playfair Display', Georgia, serif;
  text-align: left;
  margin-bottom: 20px;
}

.despre-text p {
  color: #b0b0b0;
  margin-bottom: 16px;
}

.stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat strong {
  font-size: 1.8rem;
  color: #c9a84c;
}

.stat span {
  font-size: 0.85rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px 18px;
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  color: #e0e0e0;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #c9a84c;
}

.contact-form textarea {
  resize: vertical;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}

.contact-item strong {
  display: block;
  color: #c9a84c;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.contact-item p {
  color: #b0b0b0;
}

.contact-item a {
  color: #b0b0b0;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-item a:hover {
  color: #c9a84c;
}

/* ===== FOOTER ===== */
.footer {
  background: #060606;
  padding: 30px 0;
  border-top: 1px solid #1a1a1a;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer p {
  color: #666;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: #666;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #c9a84c;
}

/* ===== WHATSAPP ===== */
.whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.active {
  display: flex;
}

.lightbox-video {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  outline: none;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
}

.lightbox-close:hover {
  color: #c9a84c;
}

.card-thumb {
  cursor: pointer;
}

.card-thumb video {
  pointer-events: none;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.card {
  transition: transform 0.3s, box-shadow 0.3s;
}

.card.reveal-scale {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.card.reveal-scale.visible {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.card.reveal-scale.visible:hover {
  transform: translateY(-6px) scale(1.02);
}

/* Stagger delay for grid cards */
.card:nth-child(1) { transition-delay: 0s; }
.card:nth-child(2) { transition-delay: 0.1s; }
.card:nth-child(3) { transition-delay: 0.2s; }
.card:nth-child(4) { transition-delay: 0.3s; }
.card:nth-child(5) { transition-delay: 0.4s; }
.card:nth-child(6) { transition-delay: 0.5s; }
.card:nth-child(7) { transition-delay: 0.1s; }
.card:nth-child(8) { transition-delay: 0.2s; }
.card:nth-child(9) { transition-delay: 0.3s; }
.card:nth-child(10) { transition-delay: 0.4s; }
.card:nth-child(11) { transition-delay: 0.5s; }

/* Hero parallax text */
.hero-content {
  transition: transform 0.1s linear;
}

/* Stat counter animation */
.stat strong {
  display: inline-block;
}

.stat.visible strong {
  animation: countPop 0.5s ease forwards;
}

@keyframes countPop {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

/* Section titles */
.section h2 {
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-subtitle {
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: 0.15s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: #111;
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    transition: right 0.3s;
  }

  .nav.open {
    right: 0;
  }

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

  .despre-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .despre-photo {
    max-width: 300px;
    margin: 0 auto;
  }

  .despre-text h2 {
    text-align: center;
  }

  .stats {
    justify-content: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .section {
    padding: 70px 0;
  }
}

@media (max-width: 480px) {
  .stats {
    gap: 24px;
  }

  .stat strong {
    font-size: 1.4rem;
  }
}
