/* ==========================================================================
   STUDIO NOIR — CREATIVE PORTFOLIO & ATELIER STYLESHEET
   ========================================================================== */

:root {
  /* UI/UX & Product Theme (Default) */
  --bg-primary: #08080a;
  --bg-secondary: #0f0f14;
  --bg-card: #15151c;
  --bg-card-hover: #1e1e28;
  --bg-glass: rgba(15, 15, 20, 0.92);
  
  --primary: #a855f7;
  --primary-hover: #c084fc;
  --primary-glow: rgba(168, 85, 247, 0.4);
  
  --mint: #22c55e;
  --mint-glow: rgba(34, 197, 94, 0.35);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-active: rgba(168, 85, 247, 0.5);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 38px rgba(0, 0, 0, 0.5);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3D Motion Theme */
body.theme-3dmotion {
  --bg-primary: #0a0a12;
  --bg-secondary: #10101f;
  --bg-card: #18182e;
  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-glow: rgba(59, 130, 246, 0.4);
}

/* Developer Theme */
body.theme-developer {
  --bg-primary: #080e0c;
  --bg-secondary: #0d1714;
  --bg-card: #13221e;
  --primary: #10b981;
  --primary-hover: #34d399;
  --primary-glow: rgba(16, 185, 129, 0.4);
}

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

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(168, 85, 247, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(34, 197, 94, 0.05) 0%, transparent 40%);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Top Demo Bar */
.demo-bar {
  background: #040406;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  position: sticky;
  top: 0;
  z-index: 1000;
  font-size: 0.85rem;
}

.demo-bar-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.demo-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s infinite;
}

.demo-presets {
  display: flex;
  align-items: center;
  gap: 8px;
}

.style-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d4d4d8;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.style-pill:hover, .style-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 700;
}

.back-hub-btn {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Navbar */
.navbar {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 37px;
  z-index: 990;
  padding: 16px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-symbol {
  color: var(--primary);
  font-size: 1.5rem;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  display: block;
}

.brand-tagline {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  font-weight: 700;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.nav-link:hover {
  color: #fff;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 1.25rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(168, 85, 247, 0.15);
  color: var(--primary);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.w-100 {
  width: 100%;
}

.flex-grow {
  flex-grow: 1;
}

/* Helpers */
.text-gradient {
  background: linear-gradient(135deg, #c084fc 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-mint { color: var(--mint); }

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 8px;
  background: rgba(168, 85, 247, 0.12);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-active);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 620px;
}

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

/* Hero Section */
.hero {
  padding: 80px 0 100px;
  position: relative;
}

.hero-content {
  max-width: 860px;
}

.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.green-glow-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse 2s infinite;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 4.2rem;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-subtext {
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 680px;
}

.hero-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.awards-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  color: var(--text-muted);
  font-size: 0.88rem;
  flex-wrap: wrap;
}

.awards-list {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.award-item {
  color: #e2e8f0;
  font-weight: 600;
}

/* Selected Works */
.work-section {
  padding: 90px 0;
  background: var(--bg-secondary);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.work-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.work-filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.work-filter-btn:hover, .work-filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-md);
}

.project-img-wrap {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-img-wrap img {
  transform: scale(1.05);
}

.project-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(8, 8, 10, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-color);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

.project-body {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-body h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.project-body p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.view-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--transition);
}

.project-card:hover .view-arrow {
  background: var(--primary);
  border-color: var(--primary);
  transform: rotate(45deg);
}

/* Estimator Section */
.estimator-section {
  padding: 90px 0;
}

.estimator-box {
  background: linear-gradient(135deg, #13121c 0%, #0c0b12 100%);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: var(--shadow-md);
}

.estimator-header h2 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  margin: 8px 0 12px;
}

.estimator-header p {
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.estimator-options h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.check-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.check-card:hover {
  border-color: var(--primary);
}

.check-card input {
  margin-top: 4px;
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

.check-content strong {
  display: block;
  font-size: 0.95rem;
}

.check-content small {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.estimator-summary-card {
  background: #09090d;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
}

.quote-amount {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin: 8px 0 20px;
}

.quote-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  border-top: 1px dashed var(--border-color);
  padding: 16px 0;
  margin-bottom: 20px;
  font-size: 0.88rem;
}

.q-row {
  display: flex;
  justify-content: space-between;
}

/* Services */
.services-section {
  padding: 90px 0;
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(168, 85, 247, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Testimonials */
.testimonials-section {
  padding: 90px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 32px;
  border-radius: var(--radius-lg);
}

.stars {
  color: var(--primary);
  margin-bottom: 14px;
}

.testi-card p {
  color: #e2e8f0;
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.7;
}

.founder-info strong {
  display: block;
  font-size: 0.95rem;
}

.founder-info small {
  color: var(--text-muted);
}

/* Contact Section */
.contact-section {
  padding: 90px 0;
  background: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.direct-contacts {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}

.contact-form-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 32px;
  border-radius: var(--radius-lg);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  background: #0a0a0e;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
}

/* Footer */
.footer {
  background: #040406;
  border-top: 1px solid var(--border-color);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

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

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.demo-price {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid var(--primary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: #c084fc;
  display: inline-block;
  margin-bottom: 12px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #14141c;
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-md);
}

.modal-content.project-modal-box {
  max-width: 720px;
  padding: 0;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 10;
}

.pm-img-wrap img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.pm-body {
  padding: 32px;
}

.pm-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  display: block;
}

.pm-body h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.pm-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.pm-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px dashed var(--border-color);
  border-bottom: 1px dashed var(--border-color);
  padding: 16px 0;
  margin-bottom: 24px;
}

.pm-metrics-row strong {
  display: block;
  font-size: 1.4rem;
  color: var(--mint);
}

.pm-metrics-row small {
  color: var(--text-muted);
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 900;
  transition: var(--transition);
}

.floating-whatsapp:hover {
  transform: scale(1.1);
}

.wa-tooltip {
  position: absolute;
  right: 70px;
  background: #08080a;
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: var(--transition);
}

.floating-whatsapp:hover .wa-tooltip {
  opacity: 1;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  z-index: 1100;
  transition: var(--transition);
  font-size: 0.9rem;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.96); opacity: 0.6; }
}

/* Responsive */
@media (max-width: 992px) {
  .estimator-grid, .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid, .services-grid, .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 3.2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.4rem;
  }
}
