/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #020617;
  --bg-alt: #0f172a;
  --bg-card: #1e293b;
  --text: #fff;
  --text-muted: #94a3b8;
  --primary: #f97316;
  --primary-light: #fb923c;
  --primary-dark: #ea580c;
  --border: rgba(255,255,255,0.1);
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Open Sans", sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

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

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

/* Layout */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s;
}

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

.header.scrolled {
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}

.logo-text span {
  color: var(--primary);
}

/* Desktop Nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--primary);
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
}

/* Language Picker */
.lang-picker {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-family: var(--font-heading);
  font-weight: 600;
}

.lang-link {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: color 0.3s, background 0.3s;
  color: var(--text-muted);
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
}

.lang-link:hover {
  color: #fff;
}

.lang-link.active {
  background: var(--primary);
  color: #fff;
}

/* Right side */
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Menu Button */
.menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  padding: 0.5rem;
  cursor: pointer;
}

@media (max-width: 767px) {
  .menu-btn { display: block; }
}

.menu-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}

.mobile-menu.open {
  display: block;
}

@media (min-width: 768px) {
  .mobile-menu { display: none !important; }
}

.mobile-nav {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav .nav-link {
  font-size: 1rem;
  padding: 0.5rem 0;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--bg);
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background: url('images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.3;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(2,6,23,0.5), rgba(2,6,23,0.3), var(--bg));
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding-top: 5rem;
}

.hero-title {
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fade-up 0.8s ease-out 0.2s both;
}

.hero-title span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  animation: fade-up 0.8s ease-out 0.5s both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 0.5rem;
  transition: background 0.3s;
  animation: fade-up 0.8s ease-out 0.8s both;
}

.hero-cta:hover {
  background: var(--primary-dark);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  transition: color 0.3s;
  animation: fade-in 1s ease-out 1.2s both;
}

.scroll-indicator:hover {
  color: #fff;
}

.scroll-indicator span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scroll-indicator svg {
  width: 1.5rem;
  height: 1.5rem;
  animation: bounce-slow 2s ease-in-out infinite;
}

@media (min-width: 640px) {
  .hero-title { font-size: 3rem; }
  .hero-subtitle { font-size: 1.25rem; }
}

@media (min-width: 768px) {
  .hero-title { font-size: 3.75rem; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 4.5rem; }
}

/* ========== ABOUT ========== */
.about {
  padding: 5rem 0;
  background: var(--bg-alt);
}

@media (min-width: 1024px) {
  .about { padding: 7rem 0; }
}

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.about-image-wrap {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-card);
}

.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2,6,23,0.4), transparent);
}

.section-label {
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-weight: 700;
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .section-title { font-size: 2.25rem; }
}

.about-text {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-text:last-of-type {
  margin-bottom: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  background: var(--bg-card);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ========== SERVICES ========== */
.services {
  padding: 5rem 0;
  background: var(--bg);
}

@media (min-width: 1024px) {
  .services { padding: 7rem 0; }
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 42rem;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
  background: var(--bg-card);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-0.5rem);
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(249, 115, 22, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  transition: background 0.3s;
}

.service-card:hover .service-icon {
  background: rgba(249, 115, 22, 0.2);
}

.service-title {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

@media (max-width: 639px) {
  .service-card {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    grid-template-rows: auto auto;
    gap: 0 1rem;
  }
  .service-icon {
    grid-row: 1 / 3;
    margin-bottom: 0;
  }
  .service-title {
    align-self: end;
    margin-bottom: 0.25rem;
  }
  .service-desc {
    align-self: start;
  }
}

/* ========== PORTFOLIO / CAROUSEL ========== */
.portfolio {
  padding: 5rem 0;
  background: var(--bg-alt);
}

@media (min-width: 1024px) {
  .portfolio { padding: 7rem 0; }
}

.carousel-wrapper {
  position: relative;
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 1rem;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 30%;
  scroll-snap-align: center;
  border-radius: 0.5rem;
  overflow: hidden;
  height: 400px;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.carousel-slide:hover img {
  transform: scale(1.05);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  backdrop-filter: blur(4px);
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.75);
}

.carousel-btn--prev {
  left: -1.5rem;
}

.carousel-btn--next {
  right: -1.5rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  padding: 0;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

@media (max-width: 1023px) {
  .carousel-slide {
    flex: 0 0 45%;
    height: 350px;
  }
  .carousel-btn--prev { left: 0.5rem; }
  .carousel-btn--next { right: 0.5rem; }
}

@media (max-width: 639px) {
  .carousel-slide {
    flex: 0 0 80%;
    height: 300px;
  }
  .carousel-btn {
    width: 2.5rem;
    height: 2.5rem;
  }
  .carousel-btn--prev { left: 0.25rem; }
  .carousel-btn--next { right: 0.25rem; }
}

/* ========== CONTACTS ========== */
.contacts {
  padding: 5rem 0;
  background: var(--bg-alt);
}

@media (min-width: 1024px) {
  .contacts { padding: 7rem 0; }
}

.contacts-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contacts-grid { grid-template-columns: 1fr 1fr; }
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(249, 115, 22, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.contact-label {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-value {
  color: var(--text-muted);
}

.phone-card {
  background: rgba(30, 41, 59, 0.5);
  border-radius: 0.5rem;
  padding: 1rem;
}

.phone-number {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  display: block;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}

.phone-number:hover {
  color: var(--primary);
}

.social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: #334155;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  color: #fff;
}

.social-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.social-icon.whatsapp:hover { background: #16a34a; }
.social-icon.viber:hover { background: #9333ea; }
.social-icon.telegram:hover { background: #0284c7; }

.map-wrap {
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  position: relative;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.9), transparent);
  padding: 0.75rem 1rem;
  pointer-events: none;
  text-align: center;
}

.map-label p {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  color: #fff;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

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

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--primary);
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-phone-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.footer-phone {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

.footer-phone:hover {
  color: var(--primary);
}

.footer-phone svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

.footer-social-icons {
  display: flex;
  gap: 0.375rem;
}

.footer-social-icon {
  width: 2rem;
  height: 2rem;
  background: var(--bg-card);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  color: #fff;
}

.footer-social-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-social-icon.whatsapp:hover { background: #16a34a; }
.footer-social-icon.viber:hover { background: #9333ea; }
.footer-social-icon.telegram:hover { background: #0284c7; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
}

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

/* ========== ANIMATIONS ========== */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-left {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slide-right {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes bounce-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Reveal */
.reveal {
  opacity: 0;
}

.reveal.visible {
  animation: var(--reveal-animation, fade-up 0.6s ease-out forwards);
}

/* ========== LANGUAGE TOGGLE ========== */
html.lang-ru .ro { display: none; }
html.lang-ro .ru { display: none; }

/* ========== UTILITY ========== */
.hidden {
  display: none !important;
}

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