/* style.css - Refined Light Design System for DesignGnome */

:root {
  /* Colors */
  --bg-main: #f6f5f1;
  --preloader-bg: #f2f3ff;
  --bg-card: #ffffff;
  --bg-dark-card: #000000;

  --primary: #000000;
  --primary-hover: #333333;

  --text-main: #000000;
  --text-muted: #555555;

  --border-color: #e5e7eb;

  /* Typography */
  --font-heading: 'Unbounded', sans-serif;
  --font-body: 'Montserrat', sans-serif;

  /* Spacing & Utilities */
  --radius-md: 20px;
  --radius-lg: 32px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Effects */
.bg-orb {
  position: absolute;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(162, 175, 237, 0.4) 0%, rgba(242, 243, 255, 0) 70%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.bg-orb.right {
  top: 50%;
  left: auto;
  right: -200px;
}

/* Preloader Animation */
.preloader {
  position: fixed;
  inset: 0;
  background-color: #000000;
  z-index: 99999;
  transition: transform 2.5s cubic-bezier(0.85, 0, 0.15, 1);
}

.preloader::after {
  content: '';
  position: absolute;
  bottom: -12.5vw;
  left: 0;
  width: 100%;
  height: 15vw;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3000 320'%3E%3Cpath fill='%23000000' d='M0,160 C125,256 250,256 375,160 C500,64 625,64 750,160 C875,256 1000,256 1125,160 C1250,64 1375,64 1500,160 C1625,256 1750,256 1875,160 C2000,64 2125,64 2250,160 C2375,256 2500,256 2625,160 C2750,64 2875,64 3000,160 L3000,0 L0,0 Z'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: 1;
}

.preloader-content {
  position: absolute;
  bottom: 5vh;
  left: 50%;
  animation: pullUpPulse 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preloader-logo {
  max-width: 180px;
  height: auto;
  filter: brightness(0) invert(1);
}

.preloader.slide-up {
  transform: translateY(-130%);
}

@keyframes pullUpPulse {
  0% {
    transform: translate(-50%, 0) scale(1);
  }

  100% {
    transform: translate(-50%, -20px) scale(1.05);
  }
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  position: relative;
  z-index: 2;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: #000;
}

h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  color: #000;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.mb-8 {
  margin-bottom: 32px;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid #000;
}

.btn-primary {
  background-color: #000;
  color: #fff;
  box-shadow: 4px 4px 0px 0px #a1c4fd;
  /* Fun colored shadow */
}

.btn-primary:hover {
  background-color: #000;
  transform: scale(1.05);
  box-shadow: 0px 0px 0px 0px #a1c4fd;
}

.btn-primary.white-btn {
  background-color: #fff;
  color: #000;
  box-shadow: 4px 4px 0px 0px #ffd600;
}

.btn-primary.white-btn:hover {
  background-color: #fff;
  transform: scale(1.05);
  box-shadow: 0px 0px 0px 0px #ffd600;
}

.btn-outline-dark {
  background-color: transparent;
  color: #000;
  box-shadow: 4px 4px 0px 0px #cfd9df;
}

.btn-outline-dark:hover {
  background-color: #f6f5f1;
  transform: scale(1.05);
  box-shadow: 0px 0px 0px 0px #cfd9df;
}

.btn-outline-light {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 4px 4px 0px 0px rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
  background-color: transparent;
  transform: scale(1.05);
  box-shadow: 0px 0px 0px 0px rgba(255, 255, 255, 0.4);
}

.btn.lg {
  padding: 18px 48px;
  font-size: 1.125rem;
}

.login-btn {
  border-radius: 12px;
  /* Rounded rectangle instead of pill */
  padding: 10px 24px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: -150px;
  /* Hidden by default */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 900px;
  padding: 6px 20px;
  border-radius: 100px;
  z-index: 1000;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: rgba(246, 245, 241, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 8px 8px 0px 0px #000;
  border: 4px solid #000;
}

.navbar.scrolled {
  transform: translate(-50%, 170px);
  /* Slides down to sit at top: 20px */
}

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

.nav-back-top {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.nav-back-top:hover {
  opacity: 0.6;
}

.logo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 72px;
  object-fit: contain;
  margin-bottom: 4px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #000;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 32px;
  margin: 0 auto;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: #000;
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover {
  opacity: 0.6;
}

/* ScrollSpy Active Link */
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #ffd600;
  /* Funky bright yellow pop */
  border-radius: 2px;
}

/* Mobile Nav Structure Hiding on Desktop */
.mobile-logo-link,
.hamburger,
.mobile-menu {
  display: none;
}

/* Shared Section Styles */
section {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px auto;
}

/* Hero Section */
.hero {
  position: relative;
  padding-top: 80px;
  /* Adjusted since logo is here now */
  padding-bottom: 120px;
  text-align: center;
}

.hero-container {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-subtitle {
  max-width: 700px;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 80px;
}

/* Benefits (Why Us) Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.benefit-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

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

.card-emoji {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 24px;
  display: inline-block;
}

/* Recent Work */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.work-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  display: block;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.work-img-placeholder {
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.work-img-placeholder.c-1 {
  background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
}

.work-img-placeholder.c-2 {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.work-img-placeholder.c-3 {
  background: linear-gradient(135deg, #cfd9df 0%, #e2ebf0 100%);
}

.work-img-placeholder.c-4 {
  background: linear-gradient(135deg, #ffd1ff 0%, #fad0c4 100%);
}

.work-img-placeholder.c-5 {
  background: linear-gradient(135deg, #a8e063 0%, #56ab2f 100%);
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.work-overlay span {
  padding: 12px 32px;
  background: #fff;
  color: #000;
  border-radius: 100px;
  font-weight: 600;
  transform: translateY(15px);
  transition: var(--transition);
}

.work-card:hover .work-img-placeholder {
  transform: scale(1.02);
}

.work-card:hover .work-overlay {
  opacity: 1;
}

.work-card:hover .work-overlay span {
  transform: translateY(0);
}

/* Abstract & Bright Utilities */
.bg-bright {
  background-color: #ffd600;
  /* stark vivid yellow */
  color: #000;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
}

.floating-scribble {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

.scribble-pricing {
  top: 15%;
  left: 3%;
  width: 110px;
}

.trusted-brands-box {
  background-color: rgba(246, 245, 241, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 4px solid #000;
  border-radius: 16px;
  padding: 20px 48px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
}

.badge {
  position: absolute;
  top: 32px;
  right: 32px;
  background: rgb(107, 255, 248);
  color: #000;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
}

.pricing-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 32px;
  margin-bottom: 32px;
}

.price {
  font-size: 3rem;
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1;
  margin-top: 16px;
}

.price span {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  flex-grow: 1;
  margin-bottom: 40px;
}

.pricing-features li {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  color: var(--text-muted);
}

.dark-li {
  color: #ccc !important;
}

.pricing-features li::before {
  content: "✓";
  margin-right: 12px;
  font-weight: bold;
}

.pricing-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 24px 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #000;
  font-family: var(--font-heading);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  transition: var(--transition);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer p {
  padding-bottom: 24px;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 80px 0 40px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 48px;
}

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

.footer-links {
  display: flex;
  gap: 64px;
}

.link-group h4 {
  margin-bottom: 24px;
  font-size: 1rem;
}

.link-group a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.link-group a:hover {
  color: #000;
}

/* Animations */
.scale-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {

  .benefits-grid,
  .pricing-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hidden-mobile {
    display: none !important;
  }

  /* Sticky Mobile Nav Overrides */
  .navbar {
    position: sticky;
    top: 0;
    left: 0;
    transform: none !important;
    width: 100%;
    max-width: 100%;
    padding: 16px 5%;
    border-radius: 0;
    border: none;
    border-bottom: 2px solid #000;
    box-shadow: none;
    background-color: #f6f5f1;
  }

  .navbar.scrolled {
    transform: none;
  }

  .mobile-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px;
  }

  .mobile-brand-logo {
    height: 28px;
    object-fit: contain;
  }

  .mobile-logo-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    line-height: 1;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
  }

  .hamburger span {
    width: 100%;
    height: 2px;
    background-color: #000;
    border-radius: 4px;
    transition: var(--transition);
  }

  .hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Mobile Menu Dropdown */
  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 66px;
    /* Below sticky header */
    left: 0;
    width: 100%;
    height: calc(100vh - 66px);
    background-color: #f6f5f1;
    padding: 32px 5%;
    gap: 24px;
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s;
    border-bottom: 2px solid #000;
  }

  .mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .mobile-nav-link {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 12px;
  }

  .mobile-login-btn {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-family: var(--font-body);
    font-size: 1.1rem;
    box-shadow: 4px 4px 0px 0px #cfd9df;
  }

  .scribble-pricing {
    top: 11%;
  }
}
