@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette - Premium Navy & Cyan */
  --primary: #0F172A; /* Slate 900 */
  --primary-light: #1E293B; /* Slate 800 */
  --accent: #2DD4BF; /* Teal 400 */
  --accent-glow: rgba(45, 212, 191, 0.3);
  --text-main: #F8FAFC; /* Slate 50 */
  --text-dim: #94A3B8; /* Slate 400 */
  --bg-gradient: radial-gradient(circle at top right, #1E293B, #0F172A);
  
  /* Layout */
  --container-width: 1400px;
  --container-header: 95%; 
  --header-height: 80px;
  --radius-lg: 24px;
  --radius-md: 12px;
  --radius-sm: 8px;
  
  /* Transitions */
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--primary);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Glassmorphism utility */
.glass {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Layout Wrapper */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.container-header {
  max-width: var(--container-header);
  margin: 0 auto;
  padding: 0 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Nav Bar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  background: rgba(15, 23, 42, 0.9);
  height: 70px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand {
  font-size: 1.8rem;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 3rem; /* Adjusted for better fit */
  align-items: center;
  margin-right: auto;
  margin-left: 4rem;
  white-space: nowrap; /* Strictly single line */
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Language Selector */
.lang-selector {
  position: relative;
  cursor: pointer;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.lang-selector:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lang-selector i {
  font-size: 0.6rem;
  transition: transform 0.3s ease;
}

.lang-dropdown {
  position: absolute;
  top: 120%;
  right: 0;
  background: var(--primary-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.5rem;
  width: 120px;
  display: none;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 100;
}

.lang-selector.active .lang-dropdown {
  display: flex;
}

.lang-opt {
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  border-radius: 8px;
  transition: var(--transition);
}

.lang-opt:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.arrow-down {
  font-size: 0.6rem;
  margin-left: 5px;
  color: var(--accent);
  font-style: normal;
}

.nav-item {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.nav-item:hover, .nav-item.active {
  color: var(--text-main);
}

.auth-btn {
  background: var(--accent);
  color: var(--primary);
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px 0 var(--accent-glow);
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 var(--accent-glow);
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.9));
  z-index: 1;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.video-background iframe {
  width: 100vw;
  height: 56.25vw; /* 16:9 Aspect Ratio */
  min-height: 100vh;
  min-width: 177.77vh; /* 16:9 Aspect Ratio */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.hero-tag {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 3px;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: block;
}

.hero h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #fff, var(--text-dim));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.cta-group {
  display: flex;
  gap: 1.5rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary);
  padding: 1rem 2.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.1rem;
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 2.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1.1rem;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Background elements */
.blob {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(80px);
  z-index: 1;
}

.blob-1 { top: -200px; right: -200px; }
.blob-2 { bottom: -300px; left: -200px; opacity: 0.5; }

/* Grid / Marketplace Preview */
.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--text-dim);
  font-size: 1.1rem;
}

.marketplace-preview {
  padding: 60px 0; /* Reduced from 100px */
}

/* Marketplace Categories & Filtering */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  color: var(--text-dim);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.tab-btn.active {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.idea-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns for a professional gallery look */
  gap: 2.5rem;
}

.idea-card {
  position: relative;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column; /* Unified vertical layout */
  background: rgba(30, 41, 59, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.03);
  min-height: 420px; /* Reduced to remove extra gap */
  transition: var(--transition);
  overflow: hidden;
}

.card-info {
  padding: 0.6rem 1.2rem 0.5rem; /* Even tighter padding */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center; /* Center text by default */
}

.card-preview {
  height: 220px; /* Reduced to remove gaps */
  background: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Browser Mockup Top Bar */
.card-preview::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5f56;
  box-shadow: 12px 0 0 #ffbd2e, 24px 0 0 #27c93f;
  z-index: 5;
}

.contact-phone {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--accent);
  font-size: 1.1rem;
  margin-right: 1.5rem;
  white-space: nowrap;
}

.card-preview iframe {
  width: 500px; /* Higher detail base */
  height: 300px;
  transform: scale(0.9); /* Extremely detailed thumbnail look */
  transform-origin: top left;
  border: none;
  pointer-events: none;
  opacity: 1;
  transition: transform 0.4s ease;
  margin-top: 0;
  margin-left: 0;
}

.idea-card:hover iframe {
  transform: scale(0.93); /* Slight zoom for interaction */
}

/* Immediate presence for loaded iframes */
iframe {
  opacity: 1 !important;
}

.preview-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 2;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0); /* Invisible by default */
  transition: var(--transition);
}

.idea-card:hover .preview-overlay {
  background: rgba(15, 23, 42, 0.2); /* Subtle dim on hover */
}

.preview-btn {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.idea-card:hover .preview-btn {
  opacity: 1;
  transform: translateY(0);
}

.idea-card:hover {
  transform: scale(1.01);
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(45, 212, 191, 0.3);
  box-shadow: 0 30px 60px -15px rgba(0,0,0,0.6);
}

.card-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.8rem; /* Reduced from 1.2rem */
  width: 100%;
}

.card-tag {
  background: rgba(45, 212, 191, 0.1);
  color: var(--accent);
  padding: 0.6rem 1.8rem; /* Larger padding */
  border-radius: var(--radius-sm);
  font-size: 1rem; /* Enlarge even more */
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.price-tag {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
}

.idea-card h3 {
  font-size: 1.4rem; /* Slightly smaller for density */
  margin-bottom: 0.1rem; /* Reduced further */
  color: #fff;
}

.idea-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 0.4rem; /* Reduced from 0.8rem by 50% */
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0 0.5rem; /* Tighter footer padding */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: nowrap; /* Force single line */
  gap: 0.5rem;
}

.price-status {
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.price-status strong {
  color: var(--accent);
  margin-left: 0.2rem;
  font-weight: 800;
  font-size: 0.85rem;
}

.seller-info-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.seller-name {
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.btn-execute {
  background: var(--accent);
  color: var(--primary);
  padding: 0.5rem 1rem; /* Slightly more compact */
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.75rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(45, 212, 191, 0.2);
  white-space: nowrap;
}

.btn-execute:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 212, 191, 0.3);
}

.status-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

/* Commission Section Modification */
.info-section {
  padding: 80px 0;
  background: radial-gradient(circle at bottom left, #1E293B, #0F172A);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.info-visual {
  position: relative;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.commission-box {
  text-align: center;
}

.commission-box .large-num {
  font-size: 8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.commission-box p {
  font-size: 1.5rem;
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 1200px) {
  .idea-grid { grid-template-columns: repeat(2, 1fr); }
  :root { --container-header: 98%; }
  .nav-links { gap: 2rem; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 3rem; }
  .hero p { font-size: 1.1rem; }
  .nav-links { display: none; }
  .info-grid { grid-template-columns: 1fr; }
  .idea-grid { grid-template-columns: 1fr; }
  .container-header { padding: 0 1.5rem; }
  .hero-content { text-align: center; margin: 0 auto; }
  .cta-group { justify-content: center; }
  .card-footer { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .seller-info-group { width: 100%; justify-content: space-between; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.5rem; }
  .hero-tag { font-size: 0.7rem; letter-spacing: 2px; }
  .stat-grid { grid-template-columns: 1fr; }
}
