@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: black;
  color: #e2e8f0;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  padding-top: 0;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: white;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero - Full center, no drift */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(to bottom, #001f3f, black);
  position: relative;
  overflow: hidden;
}

/* Inner content wrapper - locks centering */
.hero-inner {
  max-width: 960px;
  width: 90%;
  padding: 0 24px;
  margin: 0 auto;
}

/* Hero text */
.hero h1 {
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 400;
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -1px;
  color: white;
  text-align: center;
}

.hero p {
  font-size: clamp(18px, 4vw, 24px);
  color: #94a3b8;
  margin-bottom: 48px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Button + arrow */
.btn {
  position: relative;
  display: inline-block;
  padding: 14px 40px;
  background: transparent;
  color: #d97706;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  transition: color 0.3s;
}

.btn::after {
  content: '↓';
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  color: #d97706;
}

.btn:hover {
  color: white;
}



/* Sections */
section {
  padding: 120px 0;
  position: relative;
}

.section-heading {
  font-size: clamp(36px, 8vw, 60px);
  font-weight: 400;
  text-align: center;
  margin-bottom: 80px;
  letter-spacing: -0.5px;
}

/* Grid & Cards */
.grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  animation: fadeIn 1.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
  .grid { gap: 40px; flex-wrap: wrap; }
  .card { width: 320px; }
}

@media (max-width: 768px) {
  .hero {
    padding: 0 16px;
    text-align: center !important;
  }
  .hero h1 {
    font-size: 48px;
  }
  .hero p {
    font-size: 20px;
  }
  .hero-inner {
    width: 95%;
  }
  .grid { flex-direction: column; align-items: center; }
  .card { width: 90%; max-width: 360px; }
  .video-btn {
    position: static;
    display: block;
    margin: 24px auto;
    text-align: center;
  }
}

.card {
  background: #0f172a;
  border-radius: 24px;
  overflow: hidden;
  width: 280px;
  min-height: 380px;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
  border: 1px solid #1e293b;
}

.card:hover {
  transform: scale(1.08) rotate(0deg) !important;
  z-index: 10;
}

/* Tilts */
.card-1 { transform: rotate(-10deg); }
.card-2 { transform: rotate(-6deg); }
.card-3 { transform: rotate(-2deg); }
.card-4 { transform: rotate(2deg); }
.card-5 { transform: rotate(6deg); }

/* Image / Placeholder */
.placeholder {
  height: 180px;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 15px;
  text-align: center;
  padding: 0 16px;
}
.card img.placeholder {
  width: 100%;
  height: 180px;
  object-fit: cover;       /* Keeps proportions, fills the area */
  object-position: center;  /* Centers the image */
  display: block;
}

.placeholder {
  height: 180px !important; /* Override text placeholder height */
  background: #1e293b;
  font-size: 0; /* Hide text if image fails */
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.2;
}

.card-content p {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.5;
}

/* About */
.about p {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  font-size: 18px;
  color: #cbd5e1;
}

/* Form */
.form-container {
  max-width: 640px;
  margin: 0 auto;
}

label {
  display: block;
  color: #94a3b8;
  font-size: 15px;
  margin-bottom: 10px;
  font-weight: 500;
}

input, textarea {
  width: 100%;
  padding: 16px 20px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 12px;
  color: white;
  font-family: inherit;
  font-size: 16px;
  margin-bottom: 24px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  outline: none;
}

textarea {
  height: 160px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(90deg, #1e40af, #0f172a);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.submit-btn:hover {
  background: linear-gradient(90deg, #1e3a8a, #0f172a);
  transform: translateY(-2px);
}


/* Force single horizontal row - no wrapping */
.services-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;          /* Prevents wrapping to new row */
  gap: 32px;                  /* Space between cards */
  overflow-x: auto;           /* Horizontal scroll if screen too small */
  padding-bottom: 16px;       /* Space for scrollbar if appears */
  margin-top: 40px;
  justify-content: center;    /* Centers the row if fewer cards */
  scroll-snap-type: x mandatory; /* Optional: snap to cards when scrolling */
}

/* Card base styles */
.card {
  background: #0f172a;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.5s ease, box-shadow 0.4s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid #1e293b;
}

/* Card hover - lift & shadow */
.card:hover {
  transform: scale(1.06) translateY(-12px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.7);
}

/* Image wrapper container */
.image-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #1e293b; /* fallback dark bg */
}

/* Real image styles */
.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: grayscale(100%) brightness(0.75);
  transition: filter 0.7s ease, transform 0.6s ease;
}

/* Simpler fallback - no text if image is present */
.image-wrapper img.service-image {
  position: relative;
  z-index: 1;
}

/* Image wrapper - simple dark fallback */
.image-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #1e293b; /* fallback if image missing */
}

/* Real image */
.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: grayscale(100%) brightness(0.75);
  transition: filter 0.7s ease, transform 0.6s ease;
}

/* Hover - color reveal + zoom */
.card:hover .service-image {
  filter: grayscale(0%) brightness(1.05);
  transform: scale(1.08);
}

/* Label */
.service-label {
  padding: 20px 16px;
  text-align: center;
  color: white;
  font-size: 18px;
  font-weight: 500;
  background: linear-gradient(to bottom, transparent, #0f172a);
}

/* FINAL - Force single horizontal row for Creative Services */
.services-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap !important;        /* Critical: no wrapping to new line */
  gap: 24px;                           /* Space between cards */
  justify-content: space-between;      /* Even spacing across full width */
  align-items: stretch;
  margin: 40px 0 0;
  width: 100%;
  overflow-x: hidden;                  /* No scroll on normal desktop */
}

/* Each card takes ~25% width (for 4 cards) - fixed proportion */
.services-grid .card {
  flex: 1 1 23%;                       /* ~25% each after gap */
  max-width: 23%;
  min-width: 220px;                    /* Won't get too small */
  width: auto;
  background: #0f172a;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.5s ease, box-shadow 0.4s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid #1e293b;
}

/* Hover lift & scale (no tilt) */
.card:hover {
  transform: scale(1.05) translateY(-10px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

/* Image + B/W → color hover */
.image-wrapper {
  height: 240px;
  overflow: hidden;
  background: #1e293b;
  position: relative;
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.75);
  transition: filter 0.7s ease, transform 0.6s ease;
}

.card:hover .service-image {
  filter: grayscale(0%) brightness(1.05);
  transform: scale(1.08);
}

/* Placeholder image Placeholder fallback */


.card:hover .image-wrapper::before {
  opacity: 0;
}

/* Label */
.service-label {
  padding: 20px 16px;
  text-align: center;
  color: white;
  font-size: 18px;
  font-weight: 500;
  background: linear-gradient(to bottom, transparent, #0f172a);
}

/* Kill any media query that tries to stack vertically */
@media (max-width: 1200px), (max-width: 1024px), (max-width: 768px) {
  .services-grid {
    flex-wrap: nowrap !important;
    overflow-x: hidden !important;     /* No scroll - force fit */
  }
  .services-grid .card {
    flex: 1 1 23% !important;
    max-width: 23% !important;
  }
}
/* Floating Back Button - Bottom-right, subtle float, scroll behavior */
.floating-back-btn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 9999;
  padding: 12px 28px;
  background: rgba(15, 23, 42, 0.9);
  color: #d97706;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  border: 1px solid #334155;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  opacity: 0.45;
  transition: opacity 0.4s ease, bottom 0.6s ease, transform 0.4s ease;
  pointer-events: auto;
}

/* Subtle float animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.floating-back-btn {
  animation: float 6s ease-in-out infinite;
}

/* Scrolling: lower opacity */
body.scrolled .floating-back-btn {
  opacity: 0.35;
}

/* Scroll stopped: full opacity */
body:not(.scrolled) .floating-back-btn {
  opacity: 1;
}

/* Stick when scrolled far down */
body.scrolled-past-hero .floating-back-btn {
  position: absolute;
  bottom: auto;
  top: 1400px; /* Adjust this number: distance from top where it sticks */
  transform: none;
  animation: none;
}

/* Floating Back Button - Smooth opacity fade, no flicker */
.floating-back-btn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 9999;
  padding: 12px 28px;
  background: rgba(15, 23, 42, 0.9);
  color: #d97706;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  border: 1px solid #334155;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  opacity: 0.7; /* Default: visible when not scrolling */
  transition: opacity 0.8s ease, transform 0.4s ease, bottom 0.6s ease; /* Smooth fade */
  pointer-events: auto;
  cursor: pointer;
}

/* Subtle float animation (reduced amplitude for less distraction) */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); } /* Reduced from -10px */
}

.floating-back-btn {
  animation: float 7s ease-in-out infinite; /* Slower 7-second cycle */
}

/* Scrolling: smoothly fade to lower opacity */
body.scrolled .floating-back-btn {
  opacity: 0.35;
}

/* Scroll stopped: smoothly fade back to full */
body:not(.scrolled) .floating-back-btn {
  opacity: 0.7;
}

/* Stick when scrolled far down */
body.scrolled-past-hero .floating-back-btn {
  position: absolute;
  bottom: auto;
  top: 1400px; /* Adjust this number based on your page height */
  transform: none;
  animation: none;
}

/* Hover: full opacity + lift */
.floating-back-btn:hover {
  opacity: 1;
  transform: translateY(-6px);
  background: rgba(15, 23, 42, 1);
  box-shadow: 0 12px 40px rgba(0,0,0,0.7);
  color: white;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .floating-back-btn {
    bottom: 24px;
    right: 24px;
    padding: 10px 24px;
    font-size: 15px;
  }
}

/* Floating Video Editing Button - bottom-right, same smooth behavior */
.floating-video-btn {
  position: fixed;
  bottom: 100px; /* Higher than back button to stack nicely */
  right: 40px;
  z-index: 9998;
  padding: 12px 28px;
  background: rgba(217, 119, 6, 0.9); /* Orange */
  color: white;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  border: 1px solid #d97706;
  box-shadow: 0 8px 32px rgba(217, 119, 6, 0.4);
  backdrop-filter: blur(10px);
  opacity: 0.45;
  transition: opacity 0.8s ease, transform 0.4s ease, bottom 0.6s ease;
  pointer-events: auto;
  cursor: pointer;
}

/* Same slow float animation */
.floating-video-btn {
  animation: float 6s ease-in-out infinite;
}

/* Scrolling: fade low */
body.scrolled .floating-video-btn {
  opacity: 0.35;
}

/* Stopped: full */
body:not(.scrolled) .floating-video-btn {
  opacity: 0.7;
}

/* Stick far down */
body.scrolled-past-hero .floating-video-btn {
  position: absolute;
  bottom: auto;
  top: 1400px; /* Same stick height as back button */
  transform: none;
  animation: none;
}

/* Hover */
.floating-video-btn:hover {
  opacity: 1;
  transform: translateY(-6px);
  background: rgba(217, 119, 6, 1);
  box-shadow: 0 12px 40px rgba(217, 119, 6, 0.6);
  color: black;
}

/* Mobile */
@media (max-width: 768px) {
  .floating-video-btn {
    bottom: 80px;
    right: 24px;
    padding: 10px 24px;
    font-size: 15px;
  }
}