:root {
  --blue: #1f2cff;
  --blue-dark: #171ec2;
  --blue-deeper: #111699;
  --red: #ff1e2d;
  --red-hover: #e6000f;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-accent: rgba(255, 30, 45, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--blue);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Splatters ── */
.splatter {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
}

.splatter-top { top: -90px; right: -90px; width: 400px; }
.splatter-bottom { bottom: -110px; left: -70px; width: 350px; }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 50px;
  z-index: 100;
  background: rgba(31, 44, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.18);
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(17, 22, 153, 0.97);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--white);
}

.logo img { height: 46px; }

.nav nav { display: flex; align-items: center; }

.nav nav a {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 20px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.25s;
  position: relative;
}

.nav nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.3s;
}

.nav nav a:hover { color: var(--white); }
.nav nav a:hover::after { width: 100%; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn.primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn.primary:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 30, 45, 0.35);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.btn.secondary:hover {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 160px 50px 100px;
  position: relative;
}

.hero-content { position: relative; z-index: 1; }

.badge,
.over-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-content h1 {
  font-size: 4.5rem;
  line-height: 1.05;
  margin-bottom: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.accent { color: var(--red); }

.desc {
  font-size: 1.2rem;
  max-width: 540px;
  margin-bottom: 48px;
  opacity: 0.9;
  line-height: 1.8;
}

.buttons { display: flex; gap: 18px; flex-wrap: wrap; }

/* Hero visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero-logo {
  max-width: 300px;
  width: 100%;
  opacity: 0.85;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.3));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* ── Sections ── */
.section {
  padding: 120px 50px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.dark-section {
  background: rgba(0, 0, 0, 0.07);
}

h2 {
  font-size: 3rem;
  margin-bottom: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-desc {
  max-width: 720px;
  margin: 0 auto 72px;
  font-size: 1.15rem;
  opacity: 0.85;
  line-height: 1.7;
}

/* ── Service Cards ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  background: var(--glass);
  padding: 44px 36px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  text-align: left;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  border-color: var(--glass-border-accent);
}

.service-card h3 {
  color: var(--red);
  margin-bottom: 14px;
  font-size: 1.5rem;
  font-weight: 700;
}

.service-card p {
  opacity: 0.85;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

/* ── Over ── */
.over-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1150px;
  margin: 0 auto;
  text-align: left;
}

.over-left .desc { margin-bottom: 0; }
.over-badge { margin-bottom: 20px; }

.features {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}

.features li {
  padding: 10px 0;
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0.9;
}

.features li:last-child { border-bottom: none; }

.quote-box {
  background: rgba(255, 30, 45, 0.08);
  padding: 48px;
  border-left: 5px solid var(--red);
  border-radius: 0 16px 16px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quote-text {
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.7;
  margin: 0 0 24px;
  opacity: 0.95;
}

.quote-author {
  font-style: normal;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  opacity: 0.7;
  margin: 0;
}

/* ── Portfolio / Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border-color: var(--glass-border-accent);
  z-index: 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* Gallery stagger animation */
.gallery-item.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: calc(var(--i, 0) * 0.06s);
}

.gallery-item.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.95);
  transition: transform 0.4s ease;
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.8rem;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.25s, background 0.25s, transform 0.25s;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
  transform: rotate(90deg);
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}

.contact-card {
  background: var(--glass);
  padding: 40px 28px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  border-color: var(--glass-border-accent);
}

.contact-card .icon { font-size: 2.2rem; margin-bottom: 16px; display: block; }

.contact-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  opacity: 0.65;
}

.contact-card p { margin: 0 0 4px; font-size: 1.05rem; word-break: break-all; }

.small-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 11px 26px;
  background: var(--red);
  color: var(--white);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--red);
}

.small-btn:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 30, 45, 0.35);
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 48px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

footer p { margin: 0; color: rgba(255, 255, 255, 0.5); font-size: 0.85rem; letter-spacing: 0.02em; }

/* ── Scroll Reveal (General) ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-content h1 { font-size: 3.5rem; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 140px 30px 80px;
  }
  .hero-content { display: flex; flex-direction: column; align-items: center; }
  .hero-content .desc { margin-left: auto; margin-right: auto; }
  .buttons { justify-content: center; }
  .hero-visual { margin-top: 40px; }
  .hero-logo { max-width: 200px; }
  .over-grid { grid-template-columns: 1fr; gap: 50px; text-align: center; }
  .over-left .desc { margin-left: auto; margin-right: auto; }
  .over-badge { display: inline-block; }
  .features { display: inline-block; text-align: left; }
  .quote-box { text-align: left; }
  h2 { font-size: 2.4rem; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

@media (max-width: 768px) {
  .nav {
    padding: 16px 24px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .nav nav {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 8px;
  }
  .nav nav a { margin: 0 12px; font-size: 0.88rem; }
  .nav .btn.primary { padding: 10px 22px; font-size: 0.88rem; }
  .hero-content h1 { font-size: 2.8rem; }
  .section { padding: 80px 24px; }
  .quote-box { padding: 32px; }
  .quote-text { font-size: 1.15rem; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 2.2rem; }
  .btn { padding: 12px 22px; font-size: 0.9rem; }
  .buttons { flex-direction: column; align-items: center; width: 100%; }
  .buttons .btn { width: 100%; text-align: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}
