/* ---------- Variables ---------- */
:root {
  --bg: #060612;
  --card: #0f1724;
  --muted: #b8c0d6;
  --accent1: #0b0666; /* light pink */
  --accent2: #7b2cbf; /* dark purple */
  --accent3: #2b86c5; /* dark blue */
  --accent4: #710392; /* red-pink */
  --glass: rgba(255, 255, 255, 0.04);
}

/* ---------- Reset ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
}
body {
  font-family: "Inter", system-ui, sans-serif;
  background: radial-gradient(circle at top left, #2d0e5b 0%, var(--bg) 80%);
  color: #e6eef8;
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: bgPulse 20s infinite alternate ease-in-out;
}

/* Headings ke liye */
h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Tagline, muted text, footer ke liye */
.muted, .footer-contact p, .footer-brand p {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 14px;
}
@keyframes bgPulse {
  0% {
    background: radial-gradient(circle at top left, #1a0933 0%, var(--bg) 80%);
  }
  50% {
    background: radial-gradient(circle at bottom right, var(--bg) 0%, #1a0933 80%);
  }
  100% {
    background: radial-gradient(circle at top left, #1a0933 0%, var(--bg) 80%);
  }
}

/* ---------- Container ---------- */
.container {
  width: min(1200px, 94%);
  margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: linear-gradient(90deg, rgba(26, 26, 75, 0.9), rgba(20,20,40,0.6));
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  animation: fadeInDown 0.8s ease;
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
}
.brand:hover {
  transform: rotateY(8deg) scale(1.05);
}
.logo img {
  height: 60px;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(255,60,172,0.4);
  transition: transform 0.3s ease;
}
.logo img:hover {
  transform: rotate(-5deg) scale(1.1);
}
.brand h1 {
  font-size: 18px;
  margin: 0;
  color: #fff;
  letter-spacing: 0.5px;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}

/* ---------- NAVIGATION ---------- */
.nav {
  display: flex;
  gap: 18px;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 500;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--accent1), var(--accent4));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav a i {
  font-size: 18px;
}

/* Hover effect */
.nav a:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 16px rgba(255,61,172,0.35);
}

/* Mobile: only icons visible */
@media (max-width: 768px) {
  .nav a span {
    display: none;
  }
  .nav a {
    padding: 10px;
    border-radius: 50%;
    justify-content: center;
  }
}

/* HERO SECTION */
.hero {
  padding: 80px 20px;
  background: linear-gradient(135deg, #1a0033, #21026a, #670f80, #0d2b5b);
  background-size: 400% 400%;
  animation: gradientFlow 15s ease infinite;
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}

.hero-left h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

.hero-left .lead {
  font-size: 1.2rem;
  margin-bottom: 25px;
  line-height: 1.6;
  opacity: 0.9;
}

.cta-row {
  display: flex;
  gap: 16px;
}

.btn-primary {
  background: #ff006e;
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-primary:hover {
  background: #1e1a8c;
  transform: translateY(-2px);
}

.btn-ghost {
  border: 2px solid #fff;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  color: #fff;
  transition: 0.3s ease;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* 3D PREVIEW CARD */
.card-3d {
  position: relative;
  width: 380px;   /* width badha diya */
  height: 420px;  /* height bhi thodi badi */
  background: rgba(255,255,255,0.08);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  perspective: 1000px;
  overflow: hidden;
  backdrop-filter: blur(6px);
  transition: transform 0.4s ease;
}

.card-3d:hover {
  transform: rotateY(10deg) rotateX(5deg) scale(1.05);
}

/* Shirt / Pant preview */
.mini-preview {
  width: 220px;
  height: 220px;
  background: rgba(255,255,255,0.12);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.mini-preview img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.mini-preview:hover img {
  transform: scale(1.08);
}

/* Glow effect */
.glow {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(circle at top left, rgba(255,0,110,0.3), transparent 70%),
              radial-gradient(circle at bottom right, rgba(58,134,255,0.3), transparent 70%);
  pointer-events: none;
}
.hero-right {
  display: flex;
  align-items: center;
  gap: 40px;   /* box aur logo ke beech space */
}

.card-3d {
  width: 450px;
  height: 480px;
}

.mini-preview {
  width: 240px;
  height: 240px;
}

.hero-logo img {
  width: 160px;
  height: auto;
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
  transition: transform 0.3s ease;
}


/* Background Animation */
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------- Upload Section ---------- */
.upload-section {
  padding: 50px 0 20px;
}
.section-title {
  font-size: 24px;
  margin-bottom: 10px;
  text-align: center;
  letter-spacing: 1px;
}
.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.upload-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.upload-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 18px 44px rgba(255,61,172,0.25);
}
.drop-area {
  margin-top: 16px;
  padding: 20px;
  border-radius: 12px;
  background: var(--glass);
  border: 1px dashed rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
.drop-area:hover {
  background: rgba(255,255,255,0.08);
  transform: scale(1.02);
}
.drop-icon {
  font-size: 30px;
  color: var(--accent1);
}
.link-btn {
  background: transparent;
  border: 0;
  color: var(--accent1);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.3s ease;
}
.link-btn:hover {
  color: var(--accent3);
}

/* ---------- Results ---------- */
.results-section {
  padding: 40px 0;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.result-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.result-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 46px rgba(255,61,172,0.35);
}
.result-media {
  display: flex;
  gap: 10px;
  align-items: center;
}
.result-media img {
  width: 48%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}
.result-card:hover .result-media img {
  transform: scale(1.05);
}
.result-meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.score {
  font-weight: 800;
  color: var(--accent1);
  text-shadow: 0 2px 8px rgba(255,61,172,0.3);
}

/* ---------- Steps Section ---------- */
.steps {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  perspective: 1000px; /* 3D depth */
}

.step {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.2));
  padding: 28px;
  border-radius: 18px;
  flex: 1;
  min-width: 260px;
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  transition: transform 0.5s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

/* Hover 3D + Glow */
.step:hover {
  transform: rotateX(6deg) rotateY(-6deg) scale(1.04);
  box-shadow: 0 18px 40px rgba(52,211,153,0.25), 
              inset 0 0 40px rgba(255,61,172,0.15);
}

/* Step Number Styling */
.step-num {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent1), var(--accent4));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(255,61,172,0.4);
  color: #fff;
  animation: pulseGlow 2s infinite;
}

/* Step Title */
.step h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #fff;
  letter-spacing: 0.5px;
}

/* Step Text */
.step p {
  font-size: 14px;
  line-height: 1.6;
  color: #d4d9e3;
}

/* Glow pulse effect for numbers */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 12px rgba(255,61,172,0.6), 0 0 30px rgba(52,211,153,0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 24px rgba(255,61,172,0.9), 0 0 50px rgba(52,211,153,0.7);
    transform: scale(1.1);
  }
}

/* Floating background highlight */
.step::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  background: radial-gradient(circle, rgba(255,61,172,0.08), transparent 70%);
  transform: rotate(25deg);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.step:hover::before {
  opacity: 1;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 40px;
  background: linear-gradient(135deg, rgba(10,10,20,0.9), rgba(20,20,40,0.9));
  animation: fadeInUp 1.2s ease;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  justify-content: flex-start;
}
.footer-logo {
  width: 60px;
  height: auto;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.6));
}

.footer-brand p {
  margin: 3px 0;
  color: var(--muted);
}

.footer-contact {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;   /* 👈 Center align */
  justify-content: center;
}
.footer-contact p {
  margin: 6px 0;
  color: #e6eef8;
  font-size: 14px;
}
.footer-contact i {
  color: var(--accent1);
  margin-right: 8px;
}

.footer-socials {
  display: flex;
  gap: 12px;
  flex: 1;
  justify-content: flex-end;
}
.footer-socials a {
  color: var(--muted);
  font-size: 20px;
  transition: color 0.3s, transform 0.3s;
}
.footer-socials a:hover {
  color: var(--accent1);
  transform: translateY(-4px) scale(1.1);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .upload-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .results-grid { grid-template-columns: 1fr; }
  .hero-left h2 { font-size: 24px; }
  .card-3d { display: none; }
}
