/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Custom Color Palette - Professional Ocean/Teal Theme */
  /* Updated to new color palette: #222831, #393E46, #00ADB5, #EEEEEE */
  --color-deep: #222831;
  --color-medium: #393e46;
  --color-accent: #00adb5;
  --color-light: #eeeeee;

  --primary: var(--color-accent);
  --primary-dark: var(--color-deep);
  --primary-medium: var(--color-medium);
  --accent: var(--color-accent);
  --background: var(--color-light);
  --background-soft: #f5f5f5;
  --background-card: #ffffff;
  --text: var(--color-deep);
  --text-muted: #393e46;
  --text-light: #6b7280;
  --border: rgba(0, 173, 181, 0.15);
  --border-hover: rgba(0, 173, 181, 0.35);
  --shadow-color: rgba(34, 40, 49, 0.12);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", sans-serif;

  /* Smooth Animation Timings */
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-ease: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* 3D Effects */
  /* Updated 3D shadow colors to match new palette */
  --shadow-3d-sm: 0 2px 4px rgba(34, 40, 49, 0.08), 0 4px 8px rgba(34, 40, 49, 0.06);
  --shadow-3d-md: 0 4px 12px rgba(34, 40, 49, 0.1), 0 8px 24px rgba(34, 40, 49, 0.08);
  --shadow-3d-lg: 0 8px 24px rgba(34, 40, 49, 0.12), 0 16px 48px rgba(34, 40, 49, 0.1);
  --shadow-3d-xl: 0 16px 48px rgba(34, 40, 49, 0.15), 0 32px 64px rgba(34, 40, 49, 0.12);
}

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
  line-height: 1.6;
  position: relative;
  /* Removed 3D perspective to fix clicking issues */
}

/* Custom Cursor - Smooth and Professional */
/* Hiding custom cursor elements since we're using default cursor now */
.custom-cursor {
  display: none;
}

.cursor-dot {
  display: none;
}

.cursor-outline {
  display: none;
}

/* 3D Animated Background with Smooth Motion */
/* Updated background gradient colors to match new palette */
.background-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(0, 173, 181, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 40%, rgba(57, 62, 70, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 70%, rgba(34, 40, 49, 0.04) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
  animation: gradientShift 25s ease-in-out infinite;
}

@keyframes gradientShift {

  0%,
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.05) rotate(0.5deg);
  }
}

/* 3D Floating Shapes with Depth */
.floating-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  perspective: 1500px;
  transform-style: preserve-3d;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  animation: float3D 30s infinite cubic-bezier(0.45, 0.05, 0.55, 0.95);
  transform-style: preserve-3d;
}

/* Updated floating shapes gradients to match new palette */
.shape-1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-medium));
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.shape-2 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-deep));
  top: 50%;
  right: 5%;
  animation-delay: 10s;
}

.shape-3 {
  width: 450px;
  height: 450px;
  background: linear-gradient(135deg, var(--color-deep), var(--color-accent));
  bottom: 5%;
  left: 40%;
  animation-delay: 20s;
}

/* Smooth 3D Float Animation */
@keyframes float3D {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }

  33% {
    transform: translate3d(80px, -80px, 50px) scale(1.1) rotate(120deg);
  }

  66% {
    transform: translate3d(-60px, 60px, -30px) scale(0.9) rotate(240deg);
  }
}

/* Container with 3D Transform */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-lg);
  position: relative;
  padding: var(--spacing-lg);
  position: relative;
  /* Increased z-index significantly */
  /* Removed transform-style to flatten context */
}


/* Header with 3D Entrance */
.header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-xl) var(--spacing-lg);
  animation: fadeInDown3D 1s cubic-bezier(0.16, 1, 0.3, 1);
  /* transform-style: preserve-3d; REMOVED */
}

@keyframes fadeInDown3D {
  from {
    opacity: 0;
    transform: translateY(-50px) translateZ(-100px) rotateX(20deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) translateZ(0) rotateX(0deg);
  }
}

.logo-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  animation: float3DGentle 4s ease-in-out infinite;
}

@keyframes float3DGentle {

  0%,
  100% {
    transform: translateY(0) translateZ(0);
  }

  50% {
    transform: translateY(-10px) translateZ(20px);
  }
}

/* Updated logo icon shadow to match new palette */
.logo-icon {
  font-size: 2.5rem;
  animation: pulse3D 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(0, 173, 181, 0.3));
  /* transform-style: preserve-3d; REMOVED */
}

@keyframes pulse3D {

  0%,
  100% {
    transform: scale(1) translateZ(0);
  }

  50% {
    transform: scale(1.1) translateZ(30px);
  }
}

/* Updated logo text gradient to match new palette */
.logo-text {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--color-accent), var(--color-medium));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  /* transform-style: preserve-3d; REMOVED */
}

/* Updated gradient text colors to match new palette */
.gradient-text {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-deep) 50%, var(--color-accent) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  /* transform-style: preserve-3d; REMOVED */
}

@keyframes gradientMove3D {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto var(--spacing-lg);
  line-height: 1.7;
  font-weight: 400;
}

.header-stats {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
  margin-top: var(--spacing-xl);
}

/* 3D Stat Cards with Depth */
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--background-card);
  border-radius: 20px;
  box-shadow: var(--shadow-3d-md);
  transition: var(--transition-smooth);
  animation: fadeInUp3D 1s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  /* transform-style: preserve-3d; REMOVED */
  border: 1px solid var(--border);
}

.stat-item:nth-child(1) {
  animation-delay: 0.1s;
}

.stat-item:nth-child(2) {
  animation-delay: 0.2s;
}

.stat-item:nth-child(3) {
  animation-delay: 0.3s;
}

.stat-item:hover {
  transform: translateY(-12px);
  /* Removed 3D */
  box-shadow: var(--shadow-3d-xl);
  border-color: var(--color-accent);
}

@keyframes fadeInUp3D {
  from {
    opacity: 0;
    transform: translateY(40px) translateZ(-50px) rotateX(-15deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) translateZ(0) rotateX(0deg);
  }
}

/* Updated stat number gradient to match new palette */
.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-accent), var(--color-medium));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Glass Card with 3D Effects */
.glass-card {
  background: var(--background-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-3d-lg);
  transition: var(--transition-smooth);
  position: relative;
  /* Removed overflow: hidden */
  /* transform-style: preserve-3d; REMOVED */
}

/* Updated glass card gradient bar to match new palette */
.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-medium), var(--color-accent));
  background-size: 200% 100%;
  animation: shimmer3D 4s ease-in-out infinite;
}

@keyframes shimmer3D {

  0%,
  100% {
    background-position: 0% 0%;
    opacity: 1;
  }

  50% {
    background-position: 100% 0%;
    opacity: 0.8;
  }
}

.glass-card:hover {
  transform: translateY(-5px);
  /* Removed 3D drastically */
  box-shadow: var(--shadow-3d-xl);
  border-color: var(--color-accent);
}

.card-header {
  margin-bottom: var(--spacing-lg);
}

.card-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.02em;
  color: var(--text);
}

.description {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.form-group {
  margin-bottom: var(--spacing-lg);
  /* transform-style: preserve-3d; REMOVED */
}

label {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.label-icon {
  font-size: 1.25rem;
}

.required {
  color: var(--accent-warm);
}



/* Upload Area with 3D Hover Effect */
.upload-area {
  position: relative;
  border: 3px dashed var(--border);
  border-radius: 24px;
  padding: var(--spacing-xl);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  background: var(--background-soft);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* transform-style: preserve-3d; REMOVED */
}

/* Updated upload area border and icon colors to match new palette */
.upload-area:hover {
  border-color: var(--color-accent);
  background: var(--background-card);
  transform: translateY(-2px);
  /* Removed 3D */
  box-shadow: var(--shadow-3d-lg);
}

.upload-area.highlight {
  border-color: var(--color-accent);
  background: rgba(0, 173, 181, 0.05);
  border-width: 4px;
  transform: scale(1.01);
  /* Removed 3D */
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}

/* Updated upload icon color and shadow to match new palette */
.upload-icon {
  color: var(--color-accent);
  margin-bottom: var(--spacing-sm);
  animation: bounce3D 3s ease-in-out infinite;
  filter: drop-shadow(0 6px 16px rgba(0, 173, 181, 0.2));
}

@keyframes bounce3D {

  0%,
  100% {
    transform: translateY(0) translateZ(0);
  }

  50% {
    transform: translateY(-15px) translateZ(30px);
  }
}

.upload-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.upload-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
}

.upload-formats {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: var(--spacing-xs);
}

.image-preview {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  animation: zoomIn3D 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomIn3D {
  from {
    opacity: 0;
    transform: scale(0.85) translateZ(-50px) rotateY(-10deg);
  }

  to {
    opacity: 1;
    transform: scale(1) translateZ(0) rotateY(0deg);
  }
}

.image-preview img {
  max-width: 100%;
  max-height: 400px;
  border-radius: 20px;
  object-fit: contain;
  box-shadow: var(--shadow-3d-lg);
  transition: var(--transition-smooth);
}

.image-preview img:hover {
  transform: scale(1.02) translateZ(20px);
}

/* Updated remove button colors to match new palette */
.remove-btn {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  background: var(--background-card);
  color: var(--color-accent);
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-bounce);
  box-shadow: var(--shadow-3d-md);
  font-weight: 700;
  font-size: 1.2rem;
}

.remove-btn:hover {
  background: var(--color-accent);
  color: white;
  transform: scale(1.2) rotate(90deg);
  /* Removed 3D */
  border-color: var(--color-accent);
  box-shadow: var(--shadow-3d-lg);
}

/* Inputs with Smooth 3D Focus */
select,
input[type="text"],
textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: 16px;
  font-size: 1rem;
  background: var(--background-card);
  color: var(--text);
  transition: var(--transition-smooth);
  font-family: inherit;
  /* transform-style: preserve-3d; REMOVED */
}

/* Updated input focus colors to match new palette */
select:focus,
input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: var(--background-card);
  box-shadow: 0 0 0 4px rgba(0, 173, 181, 0.1), var(--shadow-3d-md);
  transform: translateY(-2px);
  /* Removed 3D */
}

select:hover,
input[type="text"]:hover,
textarea:hover {
  border-color: var(--color-accent);
}

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

.helper-text {
  display: block;
  margin-top: var(--spacing-xs);
  font-size: 0.875rem;
  color: var(--text-light);
}

/* 3D Gradient Buttons */
.btn-primary,
.btn-secondary {
  width: 100%;
  padding: 1.25rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  position: relative;
  overflow: hidden;
  /* transform-style: preserve-3d; REMOVED */
}

/* Updated button gradient to match new palette */
.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-medium) 100%);
  color: white;
  box-shadow: var(--shadow-3d-md);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  /* Removed 3D */
  box-shadow: 0 20px 40px rgba(0, 173, 181, 0.3);
}

.btn-primary:active {
  transform: translateY(-1px);
  /* Removed 3D */
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--background-card);
  color: var(--text);
  border: 2px solid var(--border);
  margin-top: var(--spacing-xl);
  box-shadow: var(--shadow-3d-sm);
}

.btn-secondary:hover {
  background: var(--background-soft);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  /* Removed 3D */
  box-shadow: var(--shadow-3d-md);
}

.btn-icon {
  font-size: 1.25rem;
}

/* Smooth Loader */
.loader {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  display: inline-block;
  animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Features Grid with 3D Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
  perspective: 1500px;
}

.feature-card {
  background: var(--background-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: var(--spacing-xl) var(--spacing-lg);
  text-align: center;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-3d-sm);
  animation: fadeInUp3D 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  /* transform-style: preserve-3d; REMOVED */
}

.feature-card:nth-child(1) {
  animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
  animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
  animation-delay: 0.4s;
}

.feature-card:hover {
  background: var(--background-card);
  transform: translateY(-6px);
  /* Removed 3D */
  border-color: var(--color-accent);
  box-shadow: var(--shadow-3d-xl);
}

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-sm);
  animation: float3DGentle 4s ease-in-out infinite;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--text);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Results Section */
.results-section {
  margin-top: var(--spacing-xl);
  /* Removed opacity transition to force visibility */
}

.results-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.results-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--text);
}

.results-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* 3D Variations Grid */
.variations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  perspective: 2000px;
}

/* Add these styles to your existing styles.css file */

/* Updated Variation Card - Sharp Corners */
/* Updated Variation Card - Rounded Corners Restored */
.variation-card {
  background: var(--background-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  /* Restored rounded corners */
  overflow: hidden;
  box-shadow: var(--shadow-3d-md);
  transition: var(--transition-smooth);
  /* Removed initial opacity: 0 and animation to force visibility */
  transform-style: preserve-3d;
}

.variation-card:hover {
  transform: translateY(-16px) translateZ(60px) rotateX(3deg);
  box-shadow: var(--shadow-3d-xl);
  border-color: var(--color-accent);
}

/* Image Wrapper */
.variation-image-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 280px;
  background: var(--background-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Variation Image */
.variation-image {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  display: block;
  transition: var(--transition-smooth);
}

.variation-card:hover .variation-image {
  transform: scale(1.08) translateZ(20px);
}

/* Download Icon Button - Top Right Corner */
.download-btn-corner {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: var(--text);
  z-index: 10;
  /* Made always visible */
  opacity: 1;
  transform: scale(1);
}

/* Removed hover dependency for visibility */
/*.variation-card:hover .download-btn-corner {
  opacity: 1;
  transform: translateY(0) scale(1);
}*/

.download-btn-corner:hover {
  background: var(--color-accent);
  color: white;
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 173, 181, 0.4);
  border-color: transparent;
}

.download-btn-corner:active {
  transform: translateY(0) scale(0.95);
}

/* Variation Content - Padding Fixed */
.variation-content {
  padding: var(--spacing-md);
  padding-bottom: var(--spacing-lg);
  /* Added padding-bottom to prevent clipping */
  background: var(--background-card);
  position: relative;
  z-index: 2;
}

/* Variation Badge */
.variation-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(0, 173, 181, 0.08);
  color: var(--color-accent);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-xs);
  border: 1px solid rgba(0, 173, 181, 0.1);
}

.variation-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
  line-height: 1.3;
}

.variation-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* SVG Icon Styling */
.download-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 0.3s ease;
}