html { scroll-behavior: smooth; }

body {
  margin: 0; padding: 0;
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
  background-color: #f5f5f5;
  color: #1a1a1a;
}

.ambient-glow { position: fixed; border-radius: 50%; filter: blur(90px); z-index: 1; pointer-events: none; }
.glow-1 { top: -5%; left: -5%; width: 60vw; height: 60vw; background: rgba(255, 90, 90, 0.12); animation: ambientDrift 12s infinite alternate ease-in-out; }
.glow-2 { bottom: -10%; right: -10%; width: 70vw; height: 70vw; background: rgba(255, 90, 90, 0.08); animation: ambientDrift 18s infinite alternate-reverse ease-in-out; }
@keyframes ambientDrift { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(6vw, 6vh) scale(1.1); } }
@media (min-width: 769px) { .ambient-glow { display: none !important; } }

header {
  position: fixed; top: 0; left: 0; width: 100%; height: 80px; display: flex; justify-content: space-between; align-items: center;
  padding: 0 5%; box-sizing: border-box; background: rgba(245, 245, 245, 0.85); backdrop-filter: blur(15px); z-index: 2000; border-bottom: 1px solid rgba(0,0,0,0.03);
}

.logo-img { height: 56px; width: auto; display: block; transition: transform 0.2s ease; }
.logo-img:hover { transform: scale(1.03); }

.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a { text-decoration: none; color: #444; font-size: 14px; font-weight: 500; transition: color 0.2s ease; cursor: pointer; }
.nav-links a:hover, .nav-links a.active { color: #FF5A5A; } 
.nav-right { display: flex; align-items: center; gap: 20px; }
.insta-icon { width: 22px; height: 22px; fill: #444; transition: fill 0.2s ease; display: block; }
.insta-icon:hover { fill: #FF5A5A; }

.hamburger { display: none; flex-direction: column; justify-content: space-between; width: 30px; height: 20px; background: none; border: none; cursor: pointer; z-index: 2001; }
.hamburger span { width: 100%; height: 2px; background-color: #1a1a1a; transition: all 0.3s ease; }

.scroll-container { width: 100vw; height: 100vh; overflow: hidden; position: relative; margin-top: 80px; z-index: 5; }
.horizontal-strip { width: 460vw; height: calc(100vh - 80px); display: flex; position: relative; background-image: url('images/hero-backgound.jpg'); background-size: 100% 100%; background-position: left center; background-repeat: no-repeat; }
.mobile-hero-bg { display: none; }
.mobile-hero-tint { display: none; }
.hero-text { position: absolute; top: 60px; left: 5vw; z-index: 10; max-width: 1200px; }
.tag { font-family: 'Space Mono', monospace; font-size: 15px; letter-spacing: 2px; line-height: 1.8; margin-bottom: 20px; text-transform: uppercase; color: #333; }
.tag-mobile-break { display: none; }
h1 { font-size: 80px; line-height: 1.1; margin: 0; letter-spacing: -2px; color: #1a1a1a; }
.station { position: absolute; top: 55%; transform: translateY(-40%); width: 600px; z-index: 10; }
.station-1 { left: 120vw; } .station-2 { left: 240vw; } .station-3 { left: 360vw; } 
.station p { font-size: 22px; line-height: 1.5; font-weight: 400; color: #222; margin-top: 15px; position: relative; z-index: 5; }
.highlight { font-weight: 700; color: #1a1a1a; }
.floating-word { position: absolute; font-size: 80px; font-weight: 700; color: rgba(0, 0, 0, 0.05); letter-spacing: 2px; pointer-events: none; z-index: 2; }
.float-esztetika { top: -200px; right: -150px; } .float-funkcio { bottom: -180px; left: 180px; }
.float-kreativ { top: -180px; right: 200px; } .float-premium { bottom: -180px; right: -100px; }
.giant-bg { position: absolute; top: -100px; left: -30px; font-size: 160px; font-weight: 700; color: rgba(0, 0, 0, 0.04); white-space: nowrap; z-index: 1; pointer-events: none; letter-spacing: 4px; }
.path-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 8; visibility: hidden; }
.ribbon-path { fill: none; stroke: transparent; stroke-width: 4; }
.ball-wrapper { position: absolute; width: 150px; height: 150px; z-index: 15; pointer-events: none; }
.ball-img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0px 10px 15px rgba(0,0,0,0.15)); }
.mobile-aurora { display: none; }
.mobile-read-more, .station-expanded-content { display: none !important; }

.bento-section { padding: 120px 5%; background: transparent; position: relative; z-index: 20; }
.section-title { font-family: 'Space Mono', monospace; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: #666; margin-bottom: 40px; }
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); }

.bento-card {
  display: block; position: relative; overflow: hidden; transition: all 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 24px; box-sizing: border-box; cursor: pointer;
  background-color: #1a1a1a; color: #ffffff; background-size: cover; background-position: center;
  scroll-margin-top: 120px;
}
.card-web, .card-social, .card-print, .card-contact, .card-about, .card-name, .card-pricing, .card-faq { grid-column: span 1; aspect-ratio: 1 / 1; }

.card-about, .card-name, .card-pricing {
  background-image: radial-gradient(ellipse 70% 60% at 15% 0%, rgba(255,90,90,0.35), rgba(255,90,90,0) 70%);
  background-size: 100% 100%;
  background-position: top left;
  background-repeat: no-repeat;
}
.bento-card.expanded.card-about, .bento-card.expanded.card-name, .bento-card.expanded.card-pricing {
  background-image: none;
}

.card-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,15,15,0.95) 0%, rgba(15,15,15,0.4) 45%, rgba(15,15,15,0) 80%);
  z-index: 1; pointer-events: none; transition: background 0.4s ease;
}
.bento-card:hover { border-color: #FF5A5A; transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.bento-card:hover .card-overlay { background: linear-gradient(to top, rgba(15,15,15,0.98) 0%, rgba(15,15,15,0.6) 50%, rgba(15,15,15,0) 85%); }
.card-faq .card-overlay { background: linear-gradient(to top, rgba(15,15,15,0.95) 0%, rgba(15,15,15,0.4) 45%, rgba(15,15,15,0) 80%), rgba(0,0,0,0.18); }
.card-faq:hover .card-overlay { background: linear-gradient(to top, rgba(15,15,15,0.98) 0%, rgba(15,15,15,0.6) 50%, rgba(15,15,15,0) 85%), rgba(0,0,0,0.18); }

.card-content { position: absolute; inset: 0; padding: 30px; box-sizing: border-box; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; }
.card-text-wrapper { display: flex; flex-direction: column; justify-content: flex-start; }
.card-text-wrapper p {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}

.bento-card h3 { font-size: 24px; margin: 0 0 10px 0; letter-spacing: -1px; color: #ffffff; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.bento-card p { font-size: 15px; color: #eeeeee; line-height: 1.5; margin: 0; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.card-tag { font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 1px; color: #FF5A5A; margin-bottom: 12px; font-weight: 700; text-transform: uppercase; }

.card-action { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; margin-top: 10px; transition: color 0.2s; color: #ffffff; }
.card-action span { display: inline-block; transition: transform 0.2s; color: #FF5A5A; }
.bento-card:hover .card-action { color: #FF5A5A; }
.bento-card:hover .card-action span { transform: translateX(6px); }

.bento-grid.has-expanded .bento-card:not(.expanded) { filter: brightness(0.3) grayscale(60%); border-color: transparent; }
.bento-grid.has-expanded .bento-card:not(.expanded):hover { filter: brightness(1) grayscale(0%); transform: translateY(-4px); border-color: #FF5A5A; }

.bento-card.expanded {
  grid-column: span 4 !important; aspect-ratio: auto !important; min-height: 400px;
  order: -1; cursor: default; transform: none !important; 
  border-color: #FF5A5A !important; 
  box-shadow: 0 0 40px rgba(255, 90, 90, 0.15) !important; 
  filter: none; background-color: #1a1a1a; justify-content: flex-start;
}

.bento-grid.has-expanded .bento-card.expanded .card-content { position: relative; bottom: auto; left: auto; }
.bento-card.expanded .card-overlay { background: rgba(20,20,20,0.96); }
.bento-grid.has-expanded .bento-card:not(.expanded) .card-action { display: none; }

.expanded-content { display: none; opacity: 0; margin-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; }
.bento-card.expanded .expanded-content { display: block; animation: fadeIn 0.5s 0.2s forwards; }

.layout-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; width: 100%; margin-bottom: 40px; }
.layout-2col:last-child { margin-bottom: 0; }
.layout-about { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: start; }

hr.divider { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 40px 0; }

.bento-card.expanded .card-action { display: none; }
.bento-card.expanded .card-text-wrapper { height: auto; }

.cta-inline {
  display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; margin-top: 20px;
  color: #FF5A5A; text-decoration: none; font-weight: 700; font-size: 15px; cursor: pointer; 
  transition: all 0.3s ease; transform-origin: left center;
  background: transparent; border: none; padding: 0; font-family: inherit; text-align: left;
}
.cta-inline span { color: #FF5A5A; display: inline-block; transition: all 0.3s ease; }
.cta-inline:hover { color: #bd4646; transform: scale(1.03); }
.cta-inline:hover span { color: #bd4646; transform: translateX(6px); }

.close-card-btn {
  display: none; position: absolute; top: 30px; right: 30px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.2); color: #fff;
  width: 44px; height: 44px; border-radius: 50%; font-size: 24px; cursor: pointer; z-index: 100; transition: all 0.3s ease;
}
.close-card-btn:hover { background: #FF5A5A; border-color: #FF5A5A; }
.bento-card.expanded .close-card-btn { display: flex; align-items: center; justify-content: center; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

.mockup-gallery { display: grid; gap: 20px; align-items: flex-end; }
.gallery-2col { grid-template-columns: 1fr 1fr; }
.hover-mockup {
  width: 100%; border-radius: 12px; object-fit: cover; display: block;
  filter: grayscale(100%) brightness(0.6); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.mockup-social { aspect-ratio: 9/16; }
.mockup-web { aspect-ratio: 4/3; }
.mockup-print { aspect-ratio: 1/1; }
.mockup-app { aspect-ratio: 16/9; }

@media (hover: hover) {
  .hover-mockup:hover { filter: grayscale(0%) brightness(1.1); transform: translateY(-8px) scale(1.03); box-shadow: 0 15px 30px rgba(0,0,0,0.8); z-index: 5; position: relative; }
}

.pricing-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 30px; }
.pricing-item { border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 25px; }
.pricing-item:last-child { border-bottom: none; padding-bottom: 0; }
.pricing-title { color: #FF5A5A; font-family: 'Space Mono', monospace; font-size: 16px; margin: 0 0 15px 0; text-transform: uppercase; letter-spacing: 1px;}
.pricing-tier { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.pricing-tier strong { font-size: 18px; color: #ffffff; }
.pricing-tier span { font-size: 15px; color: #cccccc; line-height: 1.5; }
.faq-question { font-size: 18px; color: #ffffff; margin: 0 0 8px 0; font-weight: 600; }
.faq-answer { font-size: 15px; color: #cccccc; line-height: 1.6; margin: 0; }

.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea { 
    width: 100%; padding: 14px; border: 1px solid #444; border-radius: 8px; font-size: 16px; 
    outline: none; background: #222; color: #fff; box-sizing: border-box; font-family: 'Space Grotesk', sans-serif; 
}
.contact-form label.input-title { display: block; font-family: 'Space Mono', monospace; font-size: 13px; margin-bottom: 8px; color: #aaa; }
.contact-form input[type="text"]:focus, .contact-form input[type="email"]:focus, .contact-form textarea:focus { border-color: #FF5A5A; }

footer { 
  background-color: #ebebeb; 
  padding: 40px 5%; 
  margin-top: 60px; 
  border-top: 1px solid rgba(0,0,0,0.05); 
  position: relative; 
  z-index: 20; 
}
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-logo { height: 40px; width: auto; display: block; cursor: pointer;}
.footer-text { font-size: 14px; color: #555; text-align: center; line-height: 1.6; }
.footer-legal-link { color: #555; text-decoration: none; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.footer-legal-link:hover { color: #FF5A5A; border-color: #FF5A5A; }
.footer-social { display: flex; align-items: center; gap: 20px; }
.footer-social .insta-icon { width: 24px; height: 24px; fill: #555; transition: fill 0.3s ease, transform 0.3s ease; display: block; }
.footer-social .insta-icon:hover { fill: #FF5A5A; transform: scale(1.1); }

.lang-switcher {
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: #444; font-weight: 600; font-size: 14px;
  padding: 6px 12px; border: 1px solid rgba(0,0,0,0.1); border-radius: 20px;
  transition: all 0.3s ease; background: rgba(255,255,255,0.5);
  margin-left: 10px;
}
.lang-switcher:hover { background: #FF5A5A; color: #fff; border-color: #FF5A5A; }
.lang-switcher span { font-size: 16px; margin-right: 6px; }
.nav-lang-mobile { display: none; }

@media (max-width: 1100px) and (min-width: 769px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  /* Tablet (iPad) fix: the desktop 80px h1 wraps onto an extra line at
     these widths, and the wrapped line was getting clipped by the hero's
     hidden overflow — "minőség" disappeared. Shrinking the heading keeps
     both lines on one row each so nothing gets cut off. */
  h1 { font-size: 54px; }
}

/* Header switches to the hamburger menu earlier than the general mobile
   breakpoint: with 8 nav items, a row layout starts colliding with the
   Instagram icon / language switcher well before 768px. */
@media (max-width: 1100px) {
  .hamburger { display: flex; }
  .nav-links, .nav-right { display: none; }
  .nav-links.active { display: flex; flex-direction: column; position: absolute; top: 80px; left: 0; width: 100%; background: rgba(245, 245, 245, 0.98); padding: 40px 0; box-shadow: 0 10px 20px rgba(0,0,0,0.05); max-height: calc(100vh - 80px); overflow-y: auto; }
  .nav-links.active li { margin: 15px 0; }
  .nav-links.active .nav-lang-mobile { display: flex; justify-content: center; margin-top: 25px; }
  .nav-links.active .nav-lang-mobile .lang-switcher { margin-left: 0; }
}

@media (max-width: 768px) {
  .logo-img { height: 44px; }
  .tag-mobile-break { display: inline; }

  .scroll-container { height: auto !important; overflow: visible !important; background: transparent; }
  .mobile-hero-bg { display: block !important; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-image: url('images/hero-background__2.jpg'); background-size: cover; background-position: center; z-index: 0; transform-origin: center center; animation: heroKenBurns 13s ease-in-out infinite alternate; will-change: transform; }
  .mobile-hero-tint { display: block !important; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; mix-blend-mode: soft-light; background: linear-gradient(120deg, rgba(255,90,90,0.8), rgba(255,170,110,0.55), rgba(255,90,90,0.8)); background-size: 220% 220%; animation: heroTintShift 7s ease-in-out infinite alternate; will-change: background-position; }
  @keyframes heroKenBurns { 0% { transform: scale(1) translate(0, 0); } 100% { transform: scale(1.32) translate(-4%, -3%); } }
  @keyframes heroTintShift { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
  .horizontal-strip { width: 100% !important; height: auto !important; min-height: 100vh; display: flex !important; flex-direction: column !important; background-image: none !important; padding-bottom: 60px; position: relative; }
  .hero-text { position: relative !important; top: 0 !important; padding: 40px 5% 20px 5%; margin-bottom: 20px; z-index: 2; }
  h1 { font-size: 42px; }
  .station { position: relative !important; width: 90% !important; left: 5% !important; transform: none !important; top: 0 !important; background: rgba(255, 255, 255, 0.85); padding: 25px; border-radius: 16px; backdrop-filter: blur(15px); box-sizing: border-box; margin-bottom: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: all 0.4s ease; scroll-margin-top: 100px; z-index: 2; }
  .floating-word, .giant-bg { display: none !important; }
  .desktop-path, .mobile-path, .ball-wrapper { display: none !important; }

  /* Ambient "aurora" glow: soft, blurred coral light that drifts gently on
     its own and migrates further down the section as you scroll — the
     mobile "wow" element, replacing the desktop ball animation. */
  .mobile-aurora { display: block; position: absolute; inset: 0; overflow: hidden; z-index: 1; pointer-events: none; }
  .aurora-blob { position: absolute; border-radius: 50%; filter: blur(60px); animation: auroraDrift 9s ease-in-out infinite alternate; }
  .aurora-blob-1 { width: 420px; height: 420px; top: -8%; right: -20%; background: radial-gradient(circle, rgba(255,90,90,0.68), rgba(255,90,90,0) 70%); }
  .aurora-blob-2 { width: 380px; height: 380px; top: 42%; left: -22%; background: radial-gradient(circle, rgba(255,170,110,0.6), rgba(255,170,110,0) 70%); animation-duration: 12s; animation-direction: alternate-reverse; }
  @keyframes auroraDrift { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(9vw, 7vh) scale(1.3); } }
  .mobile-read-more { display: inline-block !important; border: none !important; padding: 0 !important; background: transparent !important; color: #FF5A5A !important; font-size: 16px; margin-top: 15px; font-weight: 700; text-align: left; width: 100%; }
  .station-expanded-content { display: none !important; opacity: 0; margin-top: 20px; padding: 25px; background: #1a1a1a; border-radius: 12px; color: #fff; overflow: hidden; }
  .station.expanded .station-expanded-content { display: block !important; animation: fadeIn 0.4s forwards; }
  
  .mobile-carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 15px; padding-bottom: 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }
  .mobile-carousel::-webkit-scrollbar { display: none; }
  .carousel-item { flex: 0 0 85%; scroll-snap-align: center; border-radius: 12px; overflow: hidden; pointer-events: none; }
  .carousel-item img { width: 100%; height: 260px; display: block; object-fit: cover; }
  
  .scroll-hint { text-align: left; color: #FF5A5A; font-size: 16px; margin-top: 10px; display: flex; align-items: center; justify-content: flex-start; gap: 10px; font-weight: bold; }
  .scroll-arrow { background: none; border: none; font-size: 24px; color: #FF5A5A; cursor: pointer; padding: 5px; transition: transform 0.2s; margin: 0;}
  .scroll-arrow:active { transform: scale(0.9); }

  .bento-section { display: block !important; padding: 20px 5% 80px 5%; }
  .bento-grid { display: flex; flex-direction: column; gap: 20px; }
  .card-web, .card-social, .card-print { display: none !important; }
  
  .bento-card { aspect-ratio: auto !important; padding: 0; }
  .card-text-wrapper { height: auto; }
  .card-content { position: relative; bottom: auto; left: auto; padding: 25px; }
  .layout-about, .layout-2col { grid-template-columns: 1fr !important; gap: 25px !important; }
  .hover-mockup { filter: grayscale(0%) brightness(1); }
  
  .footer-content { flex-direction: column; text-align: center; gap: 25px; }
  footer { padding-bottom: 60px; } 
}
