/* ============================================
   TWR 兔將創意影業 - Stylesheet
   ============================================ */

:root {
  --main-color: #888;
  --hover-color: #666;
  --bg: #0a0a0a;
  --header-h: 85px;
  --trans: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans TC', sans-serif;
  background: var(--bg);
  color: #fff;
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ======== HEADER ======== */
#site-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(8px);
  transition: background var(--trans);
}
#site-header.scrolled { background: rgba(0,0,0,0.97); }
body:not(.is-home) #site-header { background: rgba(0,0,0,0.97); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 32px;
}

/* Logo */
.site-logo a { display: flex; align-items: center; }
.logo-img { height: 55px; width: auto; display: block; }
.logo-fallback { display: none; flex-direction: column; line-height: 1; }
.logo-en { font-family: 'Readex Pro', sans-serif; font-weight: 700; font-size: 1.6rem; letter-spacing: 4px; }
.logo-zh { font-size: 0.5rem; letter-spacing: 3px; color: rgba(255,255,255,0.5); text-transform: uppercase; }

/* Header Right */
.header-right { display: flex; align-items: center; gap: 20px; }

.search-toggle { background: none; border: none; color: rgba(255,255,255,0.7); font-size: 1rem; cursor: pointer; padding: 4px; transition: color var(--trans); }
.search-toggle:hover { color: #fff; }

/* Language dropdown */
.lang-dropdown { position: relative; }
.lang-btn {
  background: none; border: none; color: rgba(255,255,255,0.7);
  font-size: 0.78rem; font-family: 'Readex Pro', sans-serif; font-weight: 500;
  letter-spacing: 1px; cursor: pointer; display: flex; align-items: center; gap: 5px;
  transition: color var(--trans);
}
.lang-btn .fa-globe { font-size: 0.9rem; }
.lang-btn .fa-chevron-down { font-size: 0.55rem; opacity: 0.6; transition: transform var(--trans); }
.lang-btn:hover { color: #fff; }
.lang-dropdown:hover .lang-btn .fa-chevron-down { transform: rotate(180deg); }

.lang-menu {
  position: absolute; top: 100%; right: 0;
  background: rgba(8,8,8,0.97);
  border: 1px solid rgba(255,255,255,0.08);
  min-width: 130px; padding: 6px 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all 0.22s ease; z-index: 200;
}
.lang-dropdown:hover .lang-menu,
.lang-dropdown.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dropdown.open .lang-btn .fa-chevron-down { transform: rotate(180deg); }
.lang-menu li a { display: block; padding: 9px 16px; font-size: 0.78rem; color: rgba(255,255,255,0.5); transition: all var(--trans); }
.lang-menu li a:hover, .lang-menu li a.active { color: #fff; }

/* Divider */
.header-divider { width: 1px; height: 18px; background: rgba(255,255,255,0.2); }

/* MENU button */
.menu-toggle {
  background: none; border: none; color: rgba(255,255,255,0.8);
  font-family: 'Readex Pro', sans-serif; font-size: 0.8rem; font-weight: 500;
  letter-spacing: 3px; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  transition: color var(--trans);
}
.menu-toggle:hover { color: #fff; }
.menu-lines { display: flex; flex-direction: column; gap: 5px; }
.menu-lines span { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform var(--trans); }

/* Subnav / MENU responsive breakpoint (applies to all pages) */
@media (max-width: 1440px) {
  #site-header .subnav-wrap  { display: none !important; }
  #site-header .menu-toggle  { display: flex !important; }
  #site-header .header-divider { display: block !important; }
}
@media (min-width: 1441px) {
  #site-header .subnav-wrap  { display: flex !important; }
  #site-header .menu-toggle  { display: none !important; }
  #site-header .header-divider { display: none !important; }
}

/* Search Bar */
.search-bar { display: none; background: rgba(0,0,0,0.96); border-top: 1px solid rgba(255,255,255,0.06); padding: 14px 32px; }
.search-bar.open { display: block; }
.search-bar-inner { max-width: 560px; margin: 0 auto; display: flex; }
.search-bar-inner input { flex: 1; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-right: none; padding: 10px 16px; color: #fff; font-family: inherit; font-size: 0.88rem; outline: none; }
.search-bar-inner button { background: var(--main-color); border: none; color: #fff; padding: 10px 16px; cursor: pointer; }

/* ======== RIGHT-PANEL NAV OVERLAY ======== */
.nav-overlay {
  position: fixed; inset: 0; z-index: 2000;
  visibility: hidden;
}
.nav-overlay.open { visibility: visible; }

/* Semi-transparent backdrop (left side) */
.nav-overlay-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0; transition: opacity 0.42s ease;
  cursor: pointer;
}
.nav-overlay.open .nav-overlay-backdrop { opacity: 1; }

/* Right-side sliding panel */
.nav-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 460px; max-width: 92vw;
  background: #0d0d0d;
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.nav-overlay.open .nav-panel { transform: translateX(0); }

/* Panel header: langs + close */
.nav-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 36px;
  height: var(--header-h);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.nav-panel-langs { display: flex; gap: 20px; }
.nav-panel-langs a {
  font-family: 'Readex Pro', sans-serif; font-size: 0.78rem;
  font-weight: 500; letter-spacing: 2px; color: rgba(255,255,255,0.32);
  transition: color var(--trans);
}
.nav-panel-langs a.lang-active,
.nav-panel-langs a:hover { color: #fff; }

/* Close button */
.nav-overlay-close {
  background: none; border: none; cursor: pointer; padding: 0;
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.45);
  font-family: 'Readex Pro', sans-serif;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 3px;
  transition: color var(--trans);
}
.nav-overlay-close:hover { color: #fff; }
.nav-close-x { font-size: 1rem; line-height: 1; }

/* Nav items with separator lines */
.overlay-nav { flex: 1; }
.overlay-nav ul { display: flex; flex-direction: column; }
.overlay-nav ul li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 36px;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 1.12rem; font-weight: 500; letter-spacing: 4px;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.25s ease, background 0.25s ease;
}
.overlay-nav ul li a:hover { color: #fff; background: rgba(255,255,255,0.03); }
.nav-chevron { font-size: 0.65rem; color: rgba(255,255,255,0.35); transition: color 0.25s ease; }
.overlay-nav ul li a:hover .nav-chevron { color: rgba(255,255,255,0.65); }

/* ======== BANNER ======== */
.banner-section {
  margin-top: var(--header-h);
  position: relative;
  overflow: hidden;
}

/* Single-slide full-width banner — height follows image aspect ratio */
.banner-swiper { width: 100%; }
.banner-swiper .swiper-wrapper { align-items: flex-start; }
.banner-swiper .swiper-slide {
  width: 100% !important;
  height: auto;
}
.banner-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Pagination & nav */
.banner-swiper .swiper-pagination { bottom: 18px; }
.banner-swiper .swiper-pagination-bullet { background: rgba(255,255,255,0.4); width: 8px; height: 8px; opacity: 1; transition: all 0.3s; margin: 0 4px; }
.banner-swiper .swiper-pagination-bullet-active { background: #fff; width: 24px; border-radius: 4px; }
.banner-swiper .swiper-button-prev, .banner-swiper .swiper-button-next { color: rgba(255,255,255,0.6); }
.banner-swiper .swiper-button-prev:hover, .banner-swiper .swiper-button-next:hover { color: #fff; }
.banner-swiper .swiper-button-prev::after, .banner-swiper .swiper-button-next::after { font-size: 1.1rem; }

/* ======== SERVICES ======== */
.services-section { background: #0d0d0d; }

.services-header { padding: 90px 0 30px; text-align: center; }

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 46vh 46vh;
}

/* Each service card */
.service-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}
.service-card:focus-visible { outline: 2px solid #c060c0; outline-offset: -2px; }

/* Background image — zooms on hover */
.service-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center; display: block;
  transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  filter: brightness(1.1);
}
.service-card:hover .service-bg-img { transform: scale(1.08); }

/* Dark overlay — fades on hover */
.service-dark-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(0,0,0,0.28);
  transition: opacity 0.4s ease;
}
.service-card:hover .service-dark-overlay { opacity: 0; }

/* Purple gradient — slides in on hover */
.service-hover-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(105deg,
    rgba(60,20,100,0.92) 0%,
    rgba(45,12,85,0.78) 38%,
    rgba(20,8,50,0.45) 65%,
    rgba(0,0,0,0.08) 100%);
  opacity: 0;
  transition: opacity 0.45s ease;
}
.service-card:hover .service-hover-overlay { opacity: 1; }

/* Content area */
.service-content {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: flex-end;
  padding: 32px 36px;
}

/* Idle: title + arrow row */
.service-idle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.service-card:hover .service-idle { opacity: 0; pointer-events: none; transform: translateY(6px); }
.service-idle h3 { font-size: clamp(1rem, 1.8vw, 1.4rem); font-weight: 700; letter-spacing: 3px; }

/* Active: full content slides up on hover */
.service-active {
  position: absolute; left: 32px; bottom: 32px; right: 32px;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity 0.4s ease 0.05s, transform 0.4s ease 0.05s;
}
.service-card:hover .service-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.service-active h3 { font-size: clamp(1.2rem, 2.2vw, 1.8rem); font-weight: 700; letter-spacing: 3px; margin-bottom: 6px; }

.service-en {
  font-family: 'Readex Pro', sans-serif;
  font-size: 0.7rem; font-weight: 300; letter-spacing: 3px;
  color: rgba(255,255,255,0.5); text-transform: uppercase;
  display: block; margin-bottom: 16px;
}

.service-list {
  list-style: none; counter-reset: service-item;
  display: flex; flex-direction: column; gap: 6px; margin-bottom: 22px;
}
.service-list li {
  font-size: 0.84rem; color: rgba(255,255,255,0.82);
  letter-spacing: 1px; counter-increment: service-item;
  display: flex; align-items: center; gap: 10px;
}
.service-list li::before {
  content: counter(service-item) ".";
  font-family: 'Readex Pro', sans-serif;
  font-size: 0.68rem; color: rgba(255,255,255,0.42); min-width: 14px;
}

/* Arrow button */
.service-arrow {
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,0.5); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.75); font-size: 0.75rem;
  transition: all var(--trans);
}
.service-arrow:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: #fff; }

/* ======== PORTFOLIO ======== */
.portfolio-section { padding: 70px 0 80px; background: #0d0d0d; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 30px; }

.section-header { text-align: center; margin-bottom: 12px; }
.section-title { font-size: 1.7rem; font-weight: 900; letter-spacing: 6px; margin-bottom: 14px; }
.section-line { width: 36px; height: 2px; background: var(--main-color); margin: 0 auto 32px; }

.filter-btns { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.filter-btn {
  background: transparent; border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.48); padding: 6px 18px;
  font-size: 0.78rem; font-family: 'Noto Sans TC', sans-serif; letter-spacing: 1px;
  cursor: pointer; transition: all var(--trans);
}
.filter-btn:hover, .filter-btn.active { background: var(--main-color); border-color: var(--main-color); color: #fff; }

.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.portfolio-item { opacity: 0; transform: translateY(14px); transition: opacity 0.45s ease, transform 0.45s ease; }
.portfolio-item.visible { opacity: 1; transform: translateY(0); }
.portfolio-item.hidden { display: none; }

.portfolio-thumb { position: relative; aspect-ratio: 2 / 3; overflow: hidden; cursor: pointer; background: #111; }
.port-color { position: absolute; inset: 0; transition: transform 0.5s ease; }
.portfolio-thumb:hover .port-color { transform: scale(1.04); }
.port-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 2px;
  color: rgba(255,255,255,0.22); z-index: 1;
  padding: 8px; text-align: center;
  transition: opacity var(--trans);
}
.portfolio-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.32s ease; z-index: 2;
}
.portfolio-thumb:hover .portfolio-overlay { opacity: 1; }
.portfolio-thumb:hover .port-label { opacity: 0; }
.portfolio-info { text-align: center; padding: 10px; }
.portfolio-info h4 { font-size: 0.95rem; font-weight: 700; letter-spacing: 2px; margin-bottom: 4px; }
.portfolio-info p { font-size: 0.7rem; color: rgba(255,255,255,0.48); font-family: 'Readex Pro', sans-serif; letter-spacing: 1px; }

/* ── Real thumbnail images inside portfolio-thumb ────────────── */
.portfolio-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s ease, filter 0.38s ease;
  filter: brightness(1.0);
}
.portfolio-item:hover .portfolio-thumb img { transform: scale(1.05); filter: brightness(0.48); }

/* portfolio-item used as an <a> link */
a.portfolio-item { display: block; text-decoration: none; color: inherit; }

/* "View all" link row */
.portfolio-view-all { text-align: center; margin-top: 38px; margin-bottom: 32px; }
.btn-view-all {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 30px;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  font-size: 0.8rem; font-family: 'Noto Sans TC', sans-serif; letter-spacing: 2px;
  transition: border-color 0.22s, color 0.22s;
}
.btn-view-all:hover { border-color: var(--main-color); color: var(--main-color); }

/* Loading placeholder */
.port-loading {
  grid-column: 1 / -1; text-align: center;
  padding: 64px 20px;
  color: rgba(255,255,255,0.18); font-size: 0.82rem; letter-spacing: 3px;
}

/* ======== ABOUT / STATS ======== */
/* about-bg is in normal flow → image's natural height = section height */
.stats-section { position: relative; overflow: hidden; padding: 0; }
.about-bg { position: relative; line-height: 0; }
.about-bg-img { width: 100%; height: auto; display: block; max-height: 88vh; object-fit: cover; object-position: center center; }
.about-overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0) 100%); }
.about-content { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; }

.about-text { text-align: left; margin-bottom: 56px; }
.about-heading { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: 4px; margin-bottom: 16px; }
.about-subtitle { font-size: 1rem; color: rgba(255,255,255,0.75); letter-spacing: 2px; margin-bottom: 8px; }
.about-desc { font-size: 0.9rem; color: rgba(255,255,255,0.5); letter-spacing: 1px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.stat-item.visible { opacity: 1; transform: translateY(0); }
.stat-number { font-family: 'Readex Pro', sans-serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; color: #fff; line-height: 1; margin-bottom: 10px; }
.stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.45); display: flex; flex-direction: column; gap: 3px; letter-spacing: 1px; }
.stat-label span { font-family: 'Readex Pro', sans-serif; font-size: 0.68rem; font-weight: 300; letter-spacing: 2px; color: rgba(255,255,255,0.25); }

/* ======== COMPANY / CONTACT ======== */
.company-section { background: #000; border-top: 1px solid rgba(255,255,255,0.05); }
.company-inner { display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; }

.company-info { padding: 60px 52px; background: #0d0d0d; display: flex; flex-direction: column; justify-content: flex-start; gap: 24px; }
.company-logo-img { max-height: 56px; width: auto; object-fit: contain; object-position: left; display: block; }
.company-logo-big { font-family: 'Readex Pro', sans-serif; font-size: 2.8rem; font-weight: 700; letter-spacing: 8px; }
.company-logo-area > p { font-size: 0.7rem; letter-spacing: 3px; color: var(--main-color); margin-top: 4px; }
.company-desc p { font-size: 0.84rem; line-height: 2; color: rgba(255,255,255,0.42); max-width: 400px; }

.social-links { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.social-links a { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.12); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.78rem; color: rgba(255,255,255,0.4); transition: all var(--trans); }
.social-links a:hover { border-color: rgba(255,255,255,0.38); color: #fff; transform: translateY(-2px); }
.youku-icon img { width: 16px; height: 16px; object-fit: contain; filter: brightness(0) invert(0.4); transition: filter var(--trans); }
.youku-icon:hover img { filter: brightness(0) invert(1); }

.office-tabs-area { padding: 60px 52px; background: #111; display: flex; flex-direction: column; justify-content: flex-start; gap: 28px; }
.office-tabs-nav { display: flex; border-bottom: 1px solid rgba(255,255,255,0.07); }
.office-tab { background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 9px 20px; font-family: 'Noto Sans TC', sans-serif; font-size: 0.83rem; letter-spacing: 2px; color: rgba(255,255,255,0.32); cursor: pointer; transition: all var(--trans); }
.office-tab:hover { color: rgba(255,255,255,0.65); }
.office-tab.active { color: #fff; border-bottom-color: var(--main-color); }

.office-tab-content { display: none; }
.office-tab-content.active { display: block; animation: tabFade 0.32s ease; }
@keyframes tabFade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.office-detail { display: flex; flex-direction: column; gap: 16px; }
.office-item { display: flex; align-items: flex-start; gap: 12px; font-size: 0.84rem; color: rgba(255,255,255,0.52); line-height: 1.6; }
.office-item i { color: var(--main-color); font-size: 0.8rem; margin-top: 3px; flex-shrink: 0; }

/* Office contact map */
.office-map-wrap { position: relative; margin-top: 20px; }
.office-map-iframe { width: 100%; height: 200px; border: none; filter: grayscale(0%) brightness(1.05); display: block; pointer-events: none; }
.office-map-link { position: absolute; inset: 0; z-index: 2; display: block; cursor: pointer; }

/* ======== FOOTER ======== */
#site-footer { background: #050505; border-top: 1px solid rgba(255,255,255,0.05); padding: 24px 0; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 30px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 16px; }
.footer-brand { font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 3px; }
.footer-copy { font-size: 0.68rem; color: rgba(255,255,255,0.22); }
.footer-center { text-align: center; font-size: 0.68rem; color: rgba(255,255,255,0.22); line-height: 1.9; }
.footer-center i { color: rgba(46,204,113,0.45); margin-right: 3px; }
.footer-right { text-align: right; }
.footer-right a { font-size: 0.7rem; color: rgba(255,255,255,0.28); letter-spacing: 1px; transition: color var(--trans); }
.footer-right a:hover { color: #fff; }

/* ======== SCROLL TOP ======== */
.scroll-top { position: fixed; bottom: 26px; right: 26px; width: 40px; height: 40px; background: rgba(90,90,90,0.6); border: none; border-radius: 50%; color: #fff; font-size: 0.82rem; cursor: pointer; opacity: 0; transform: translateY(8px); transition: all var(--trans); z-index: 990; display: flex; align-items: center; justify-content: center; }
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--main-color); }

/* ======== COOKIE ======== */
.cookie-notice { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(12,12,12,0.97); border-top: 1px solid rgba(255,255,255,0.06); padding: 12px 30px; display: flex; align-items: center; justify-content: center; gap: 18px; z-index: 990; transition: transform var(--trans); }
.cookie-notice.hidden { transform: translateY(100%); }
.cookie-notice p { font-size: 0.76rem; color: rgba(255,255,255,0.38); }
.cookie-notice a { color: var(--main-color); }
.cookie-notice button { background: var(--main-color); border: none; color: #fff; padding: 6px 16px; font-size: 0.76rem; font-family: 'Noto Sans TC', sans-serif; cursor: pointer; white-space: nowrap; transition: background var(--trans); }
.cookie-notice button:hover { background: var(--hover-color); }

/* ======== SCROLL ANIMATIONS ======== */
.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
/* About text slides in from left */
.animate-from-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.animate-from-left.visible { opacity: 1; transform: translateX(0); }

/* ======== RESPONSIVE ======== */
@media (max-width: 1200px) {
  .main-menu > li > a { padding: 8px 8px; font-size: 0.74rem; }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { gap: 16px; }
}
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .company-inner { grid-template-columns: 1fr; }
  .company-info, .office-tabs-area { padding: 44px 32px; }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  :root { --header-h: 74px; }
  .main-nav { position: fixed; top: var(--header-h); left: 0; width: 100%; background: rgba(0,0,0,0.98); padding: 12px 0 20px; transform: translateY(-110%); transition: transform 0.38s ease; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .main-nav.open { transform: translateY(0); }
  .main-menu { flex-direction: column; align-items: stretch; }
  .main-menu > li > a { padding: 11px 22px; font-size: 0.88rem; border-bottom: 1px solid rgba(255,255,255,0.04); }
  .main-menu > li > a .fa-chevron-down { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; border: none; border-left: 2px solid rgba(255,255,255,0.07); margin-left: 22px; }
  .hamburger { display: flex; }
  /* banner-section: no height override needed, auto height follows image */
  .logo-img { height: 44px; }
  .service-card-inner { height: 300px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .company-info, .office-tabs-area { padding: 36px 22px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 8px; }
  .footer-right { text-align: center; }
  .lang-switcher { display: none; }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card-inner { height: 260px; }
  .service-desc { max-height: 120px !important; opacity: 1 !important; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .cookie-notice { flex-direction: column; text-align: center; gap: 10px; }
}
