/* ============================
   ROOT VARIABLES & RESET
   ============================ */

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

:root {
  --bg: #111111;
  --bg-section: #111111;
  --bg-card: #1a1a1a;
  --accent: #c9940f;
  --accent-light: rgba(201, 148, 15, 0.12);
  --accent-border: rgba(201, 148, 15, 0.28);
  --text-heading: #f0ede8;
  --text-body: #c8c3bc;
  --text-muted: #888888;
  --border: #2a2a2a;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --radius: 8px;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: 0.18s ease;
  --max-width: 900px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img, video, iframe {
  max-width: 100%;
  display: block;
}

/* ============================
   LAYOUT
   ============================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-section);
}

/* ============================
   FADE-IN (minimal)
   ============================ */

.fade-in {
  opacity: 0;
  transition: opacity 0.5s ease var(--delay, 0s);
}

.fade-in.visible {
  opacity: 1;
}

/* ============================
   NAVBAR
   ============================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(17, 17, 17, 0.97);
  border-bottom-color: var(--border);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-heading);
  transition: color var(--transition);
  justify-self: start;
}

.nav-logo:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-self: center;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--accent);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-heading);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: #111111;
  border-bottom: 1px solid var(--border);
  padding: 8px 32px 20px;
}

.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu.open { display: flex; }

/* Language Switcher */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
}

.lang-btn {
  height: 28px;
  min-width: 36px;
  padding: 0 9px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  border-radius: 100px;
  transition: background var(--transition), color var(--transition);
  line-height: 1;
}

.lang-btn.active {
  background: var(--accent);
  color: #ffffff;
}

.lang-btn:not(.active):hover {
  color: var(--text-heading);
}

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

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: clamp(1.75rem, 3vw, 2rem);
  color: var(--text-body);
  font-weight: 500;
  margin-bottom: 28px;
}

.hero-intro {
  max-width: 580px;
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.75;
  margin-bottom: 44px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background var(--transition), border-color var(--transition), color var(--transition), opacity var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #a87a0c;
  border-color: #a87a0c;
}

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

.btn-secondary:hover {
  border-color: #a87a0c;
  color: #a87a0c;
}

/* ============================
   RÓLAM
   ============================ */

.rolam {
  background: var(--bg-section);
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

.rolam-top {
  display: grid;
  grid-template-columns: 65fr 35fr;
  column-gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}

.rolam-heading {
  grid-column: 1;
  grid-row: 1;
}

.rolam-bio {
  grid-column: 1;
  grid-row: 2;
  margin-bottom: 0;
}

.rolam-photo-wrap {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.rolam-photo {
  width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

.rolam-bio p {
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.rolam-bio p:last-child {
  margin-bottom: 0;
}

.rolam-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.rolam-info-card {
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.rolam-info-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin-bottom: 14px;
}

.rolam-info-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.3;
  margin-bottom: 12px;
}

.rolam-info-title--lg {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.rolam-info-detail {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================
   PROJEKTEK
   ============================ */

.projektek-header {
  margin-bottom: 40px;
}

.projektek-header h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.projektek-header .subtitle {
  color: var(--text-muted);
  font-size: 0.975rem;
  margin-top: 6px;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.project-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.project-card.featured {
  border-left: 3px solid var(--accent);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.category-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #252525;
  border: 1px solid #333333;
  border-radius: 100px;
  padding: 3px 10px;
  white-space: nowrap;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.project-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.3;
}

/* Card body: two-column layout */
.card-body {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 18px;
  align-items: start;
}

.card-video {
  height: 180px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.card-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  background: #0d0d0d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.play-btn {
  font-size: 1.1rem;
  color: #888;
}

.video-label {
  font-size: 0.75rem;
  color: #888;
  font-family: var(--font-body);
  letter-spacing: 0.03em;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.result-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0;
}

.result-badge {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 12px;
  background: #252525;
  border: 1px solid #333333;
  border-radius: 100px;
  color: var(--text-muted);
}

.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  background: #252525;
  border: 1px solid #333333;
  border-radius: 4px;
  color: var(--text-muted);
}

/* Social Media card: dashed divider + compact sub-row */
.card-divider-dashed {
  border: none;
  border-top: 1px dashed var(--border);
  margin: 16px 0 12px;
}

.card-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.card-sub-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-sub-title {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.status-tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.status-ongoing {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

/* ============================
   VIDEO CAROUSEL (Social Media)
   ============================ */

.video-carousel {
  position: relative;
}

.carousel-track-wrap {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 10px;
  transition: transform 0.3s ease;
  will-change: transform;
}

.carousel-slide {
  flex-shrink: 0;
  width: 100%;
}

.carousel-video-container {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-width: 160px;
  margin: 0 auto;
}

.video-vert-placeholder {
  width: 100%;
  height: 100%;
  background: #0d0d0d;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.92);
  border: 1px solid var(--border);
  color: #ffffff;
  font-size: 0.72rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background var(--transition), border-color var(--transition);
  line-height: 1;
}

.carousel-btn:hover {
  background: #2a2a2a;
  border-color: var(--accent);
}

.carousel-prev { left: 6px; }
.carousel-next { right: 6px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding-top: 8px;
}

.carousel-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #444444;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.4);
}

video:fullscreen,
video:-webkit-full-screen,
video:-moz-full-screen {
  object-fit: contain !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100vh !important;
  background: #000 !important;
}

/* ============================
   TESTIMONIAL
   ============================ */

.testimonial-section {
  padding: 48px 0;
}

.testimonial-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 48px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.testimonial-quote {
  display: block;
  font-size: 3.5rem;
  color: var(--accent);
  line-height: 0.8;
  margin-bottom: 20px;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-body);
  font-size: 0.975rem;
  line-height: 1.8;
  margin-bottom: 28px;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.testimonial-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-heading);
}

.testimonial-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================
   TUDÁSOM
   ============================ */

.tudasom {
  background: var(--bg-section);
}

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

.skills-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.skills-col-title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  font-size: 0.875rem;
  font-weight: 400;
  padding: 6px 14px;
  background: #252525;
  border: 1px solid #333333;
  border-radius: 100px;
  color: var(--text-body);
}

/* ============================
   AJÁNLAT
   ============================ */

.offer-group {
  margin-bottom: 32px;
}

.offer-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin-bottom: 14px;
}

.offer-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.offer-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

.offer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.offer-card h3 {
  font-family: var(--font-heading);
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.offer-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.offer-callout {
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 16px 24px;
  font-size: 0.9rem;
  color: var(--text-body);
  text-align: left;
  line-height: 1.6;
}

/* ============================
   KAPCSOLAT
   ============================ */

.kapcsolat {
  background: var(--bg-section);
}

.contact-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.contact-row {
  display: flex;
  align-items: baseline;
  gap: 28px;
}

.contact-row-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  min-width: 68px;
  flex-shrink: 0;
}

.contact-row-value {
  font-size: 1rem;
  color: var(--text-heading);
}

.contact-row-value a {
  color: var(--text-muted);
  transition: opacity var(--transition);
}

.contact-row-value a:hover {
  opacity: 0.75;
}

.contact-row-placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: color var(--transition), border-color var(--transition);
  flex-shrink: 0;
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

.social-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

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

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
}

.footer p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============================
   RESPONSIVE — 768px
   ============================ */

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }

  .section {
    padding: 60px 0;
  }

  /* Navbar */
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-right { grid-column: 3; }

  /* Hero */
  .hero { min-height: 0; padding: 80px 0 60px; }

  /* Rólam */
  .rolam-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .rolam-heading {
    grid-column: 1;
    grid-row: auto;
    order: 0;
  }

  .rolam-photo-wrap {
    grid-column: 1;
    grid-row: auto;
    order: 1;
  }

  .rolam-bio {
    grid-column: 1;
    grid-row: auto;
    order: 2;
  }

  .rolam-photo {
    max-height: 300px;
    object-fit: cover;
    width: 100%;
  }

  .rolam-info-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Projektek — stack video on top, text below */
  .card-body {
    grid-template-columns: 1fr;
  }

  .card-video {
    height: 160px;
  }

  /* Social Media carousel on mobile */
  .video-carousel {
    width: 60%;
    margin: 0 auto 4px;
  }

  .card-sub-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Tudásom */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Ajánlat */
  .offer-pair {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 2.6rem;
  }
}
