/* ===== CSS VARIABLES ===== */
:root {
  --navy: #1a1a2e;
  --navy-light: #16213e;
  --red: #e94560;
  --gold: #f39c12;
  --blue: #3498db;
  --gray: #5a5a5a;
  --light-gray: #f4f4f8;
  --white: #ffffff;
  --gradient: linear-gradient(90deg, var(--red), var(--gold), var(--blue));
  --font-main: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ===== UTILITY ===== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.gradient-line {
  height: 4px;
  background: var(--gradient);
  border: none;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  letter-spacing: 0.03em;
}

/* ===== NAVIGATION ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 26, 46, 0.08);
  transition: box-shadow 0.3s;
}

header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.nav-logo {
  height: 64px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--navy);
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--red);
}

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(26, 26, 46, 0.25);
}

.nav-cta::after {
  display: none !important;
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  padding: 10rem 0 6rem;
  background: linear-gradient(160deg, var(--white) 0%, var(--light-gray) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(52, 152, 219, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
  max-width: 580px;
}

.hero-text h1 {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-text p {
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(26, 26, 46, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy);
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--navy);
  transition: background 0.2s, color 0.2s;
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.hero-visual {
  flex: 0 0 480px;
}

.hero-logo-wrapper {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 30px 80px rgba(26, 26, 46, 0.18);
  position: relative;
}

.hero-logo-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-logo-wrapper::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 23px;
  background: var(--gradient);
  z-index: -1;
  opacity: 0.75;
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--light-gray);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:nth-child(1)::before { background: var(--red); }
.service-card:nth-child(2)::before { background: var(--gold); }
.service-card:nth-child(3)::before { background: var(--blue); }

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(26, 26, 46, 0.1);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.service-card:nth-child(1) .service-icon { background: rgba(233, 69, 96, 0.12); color: var(--red); }
.service-card:nth-child(2) .service-icon { background: rgba(243, 156, 18, 0.12); color: var(--gold); }
.service-card:nth-child(3) .service-icon { background: rgba(52, 152, 219, 0.12); color: var(--blue); }

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== ABOUT ===== */
.about {
  padding: 6rem 0;
  background: var(--light-gray);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--gray);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

.about-visual {
  flex: 0 0 340px;
  background: var(--navy);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--white);
}

.about-visual h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-visual p {
  font-size: 0.95rem;
  opacity: 0.8;
  line-height: 1.6;
}

.about-visual .accent-bar {
  width: 60px;
  height: 4px;
  background: var(--gradient);
  margin: 1.5rem auto 0;
  border-radius: 2px;
}

/* ===== CONTACT ===== */
.contact {
  padding: 6rem 0;
  background: var(--white);
}

.contact-wrapper {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.contact-info {
  flex: 1;
}

.contact-info h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--gray);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.contact-detail-text span {
  color: var(--gray);
  font-size: 0.95rem;
}

.contact-form {
  flex: 1;
  background: var(--light-gray);
  padding: 2.5rem;
  border-radius: 16px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--white);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--navy);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.field-error {
  display: block;
  color: var(--red);
  font-size: 0.8rem;
  margin-top: 0.3rem;
  min-height: 1em;
}

.form-error-global {
  color: var(--red);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  background: rgba(39, 174, 96, 0.08);
  border: 1px solid rgba(39, 174, 96, 0.35);
  border-radius: 16px;
  padding: 3rem 2rem;
  color: #1e8449;
  font-weight: 600;
}

.form-success p {
  font-size: 1rem;
  color: #1e8449;
}

.form-submit {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 0.85rem 2.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: var(--font-main);
  width: 100%;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(26, 26, 46, 0.25);
}

/* ===== DRAG HINT ===== */
.drag-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 1rem auto 3rem;
  padding: 0.55rem 1.4rem;
  width: fit-content;
  background: linear-gradient(90deg, rgba(233,69,96,0.08), rgba(52,152,219,0.08));
  border: 1px solid rgba(233,69,96,0.3);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.drag-hint svg {
  flex-shrink: 0;
  color: var(--red);
}

/* ===== WORK / BEFORE-AFTER ===== */
.work {
  padding: 6rem 0;
  background: var(--light-gray);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
}

.comparison-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  color: var(--navy);
}

.comparison-slider {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  cursor: ew-resize;
  user-select: none;
  box-shadow: 0 12px 40px rgba(26, 26, 46, 0.15);
  background: var(--navy-light);
}

.comparison-before,
.comparison-after {
  position: absolute;
  inset: 0;
}

.comparison-before {
  clip-path: inset(0 50% 0 0);
}

.comparison-before img,
.comparison-after img,
.comparison-before video,
.comparison-after video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.comparison-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

.comparison-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
  transform: translateX(-50%);
}

.comparison-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
  color: var(--navy);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.comparison-label {
  position: absolute;
  top: 12px;
  background: rgba(26, 26, 46, 0.72);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 5;
}

.label-before { left: 12px; }
.label-after  { right: 12px; }

.video-controls {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(26, 26, 46, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  padding: 5px 10px;
  z-index: 20;
  backdrop-filter: blur(6px);
}

.vctr-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.vctr-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.vctr-play {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.12);
}

.vctr-play:hover {
  background: var(--red);
}

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .footer-logo {
  height: 40px;
  margin-bottom: 0.75rem;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    flex: none;
    width: 100%;
    max-width: 400px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .about-content {
    flex-direction: column;
  }

  .about-visual {
    flex: none;
    width: 100%;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem 5%;
    gap: 1rem;
    border-bottom: 1px solid rgba(26, 26, 46, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 8rem 0 4rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .about-stats {
    justify-content: center;
  }

  .section-title {
    font-size: 1.75rem;
  }
}
