:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #666666;
  --accent-orange: #ff7a00;
  --accent-green: #2aa44f;
  --accent-yellow: #f4c542;
  --card: #f8f8f8;
  --glass: rgba(255, 255, 255, 0.6);
  --header-height: 120px;
}

[data-theme="dark"] {
  --bg: #0b0b0b;
  --fg: #f2f2f2;
  --muted: #bbbbbb;
  --card: #111216;
  --glass: rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: #fff;
  border-bottom: 0;
}

header .title {
  color: #1f1f1f;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  padding: 10px 20px;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 8px solid #f55f14;
  border-bottom: 8px solid #f55f14;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-self: start;
}

.logo img {
  height: 60px;
  width: auto;
  transition: transform 0.3s ease;
}

.title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.controls {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.slogan {
  justify-self: center;
  font-family: "Brush Script MT", "Segoe Script", "Lucida Handwriting", cursive;
  font-size: clamp(1.65rem, 2vw, 2.1rem);
  color: #f55f14;
  letter-spacing: 0.4px;
  line-height: 1;
  white-space: nowrap;
}

.catalog-btn,
.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 15px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.catalog-btn {
  background: linear-gradient(135deg, #ff983a, #ff7a00);
}

.call-btn {
  background: linear-gradient(135deg, #35bd61, #229246);
}

.catalog-btn:hover,
.call-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.catalog-btn:active,
.call-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.catalog-btn.active {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.65), 0 10px 22px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .catalog-btn.active {
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.95), 0 10px 22px rgba(0, 0, 0, 0.45);
}

/* Theme Switch */
.switch {
  width: 44px;
  height: 24px;
  background: #ddd;
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
}

.knob {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  position: absolute;
  left: 3px;
  top: 3px;
  transition: all 0.2s;
}

[data-theme="dark"] .switch {
  background: #333;
}

[data-theme="dark"] .knob {
  left: 23px;
}

/* Nav Menu */
nav {
  border-top: 0;
  padding: 10px 0;
}

.menu {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.menu a {
  color: #1f1f1f;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.menu a:hover,
.menu a.active {
  background: rgba(245, 95, 20, 0.14);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: #1f1f1f;
  margin: 5px 0;
  transition: 0.3s;
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

section {
  margin-bottom: 50px;
}

h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 4px;
  background: var(--accent-green);
  border-radius: 2px;
}

/* Showcase / Slider */
.showcase {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.slider {
  position: relative;
  height: 450px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.slides {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  min-width: 100%;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 50%);
}

.slide .meta {
  position: relative;
  color: white;
  z-index: 1;
  max-width: 600px;
}

.slide h1 {
  font-size: 2.5rem;
  margin: 0;
}

.slide h3 {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 5px 0 15px;
}

.slider .dot-container {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: white;
  width: 25px;
  border-radius: 6px;
}

/* Info Grids */
.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
}

.news-block {
  display: flex;
  gap: 20px;
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.news-block img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.news-block h4 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.news-block p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* Product Cards */
.products-list {
  display: grid;
  gap: 30px;
}

.product {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 30px;
  background: var(--card);
  padding: 25px;
  border-radius: 15px;
  align-items: center;
}

.product img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
}

/* About Section */
.about-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.product-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  background: var(--card);
  padding: 30px;
  border-radius: 15px;
}

@media (min-width: 768px) {
  .product-card {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.product-card video {
  width: 100%;
  border-radius: 12px;
}

/* Footer */
footer {
  background: var(--card);
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  margin-top: 60px;
}

/* RESPONSIVE BREAKPOINTS */

@media (max-width: 1024px) {
  .product {
    grid-template-columns: 300px 1fr;
  }
}

@media (max-width: 768px) {
  .topbar {
    padding: 10px 15px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
      "brand brand theme nav"
      "slogan slogan slogan slogan"
      "catalog catalog call call";
    align-items: center;
    column-gap: 8px;
    row-gap: 8px;
  }

  .logo img {
    height: 50px;
  }

  .title {
    font-size: 1rem;
  }

  .brand {
    grid-area: brand;
    min-width: 0;
  }

  .controls {
    display: contents;
  }

  .slogan {
    grid-area: slogan;
    font-size: 1.5rem;
  }

  .catalog-btn,
  .call-btn {
    width: 100%;
    justify-content: center;
    min-height: 40px;
    padding: 9px 12px;
    font-size: 0.84rem;
  }

  .catalog-btn {
    grid-area: catalog;
  }

  .call-btn {
    grid-area: call;
  }

  .theme-switch {
    grid-area: theme;
    justify-self: end;
  }

  .nav-toggle {
    grid-area: nav;
    justify-self: end;
    padding: 8px;
  }

  .nav-toggle {
    display: block;
  }

  nav {
    display: none;
    /* Mobile menu hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    border-bottom: 1px solid rgba(245, 95, 20, 0.35);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

  nav.active {
    display: block;
  }

  .menu {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .slider {
    height: 350px;
  }

  .slide {
    padding: 25px;
  }

  .slide h1 {
    font-size: 1.8rem;
  }

  .slide h3 {
    font-size: 1.1rem;
  }

  .product {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product img {
    height: 200px;
  }

  .news-block {
    flex-direction: column;
  }

  .news-block img {
    width: 100%;
    height: 180px;
  }
}

@media (max-width: 480px) {
  .brand .title {
    display: none;
    /* Hide text on very small screens to save space */
  }

  .topbar {
    column-gap: 6px;
    gap: 6px;
  }

  .slogan {
    font-size: 1.3rem;
  }

  .catalog-btn,
  .call-btn {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .slider {
    height: 300px;
  }

  .grid-two {
    grid-template-columns: 1fr;
  }
}

/* Video Section */
.video-section {
  margin: 30px 0;
  display: flex;
  justify-content: center;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-wrapper video,
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Catalog file links */
.catalog-file-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.catalog-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  color: var(--fg);
  background: linear-gradient(135deg, rgba(42, 164, 79, 0.14), rgba(255, 122, 0, 0.14));
  border: 1px solid rgba(42, 164, 79, 0.35);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.catalog-file-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 0, 0.48);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .catalog-file-btn {
  background: linear-gradient(135deg, rgba(42, 164, 79, 0.2), rgba(255, 122, 0, 0.2));
  border-color: rgba(255, 255, 255, 0.18);
}

/* YouTube Button */
.yt-btn {
  background: #ff0000;
  color: #fff !important;
  text-decoration: none;
  padding: 10px 25px;
  border-radius: 99px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
  margin: 20px 0;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.yt-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

.yt-btn svg {
  width: 24px;
  height: 24px;
}

/* New Year Banner */
.newyear-banner {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: glow 2s ease-in-out infinite alternate;
}

.newyear-banner[hidden],
.snow-container[hidden] {
  display: none !important;
}

.newyear-banner .emoji {
  font-size: 2rem;
  animation: bounce 1s ease-in-out infinite;
}

.newyear-banner .text {
  background: linear-gradient(135deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 0.9rem;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
  animation: gradient 3s ease infinite;
}

@keyframes glow {
  from {
    filter: drop-shadow(0 0 5px rgba(255, 107, 107, 0.5));
  }
  to {
    filter: drop-shadow(0 0 20px rgba(255, 107, 107, 0.8));
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Snow Effect */
.snow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -10px;
  color: white;
  font-size: 1rem;
  opacity: 0.8;
  animation: fall linear infinite;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

@keyframes fall {
  0% {
    transform: translateY(-10px) rotate(0deg);
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
  }
}

@media (max-width: 768px) {
  .newyear-banner {
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .newyear-banner .emoji {
    font-size: 1.5rem;
  }
  
  .newyear-banner .text {
    font-size: 0.75rem;
  }

  .catalog-file-btn {
    padding: 12px 14px;
    font-size: 0.9rem;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
    align-items: flex-start;
  }
}
