/* Core Creator Portfolio Styling */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700;900&family=Geist:wght@400;500;600&display=swap');

body {
  font-family: 'Geist', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  margin: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

/* Layout */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

/* Navbar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}
.brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}
.brand span {
  color: var(--accent);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-title {
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
  color: var(--heading);
  position: relative;
  z-index: 2;
}
.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text);
  max-width: 600px;
  line-height: 1.6;
  margin-left: auto;
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
}
.hero-blob {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.1;
  filter: blur(100px);
  z-index: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 2px solid transparent;
  font-family: 'Space Grotesk', sans-serif;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--text);
  color: var(--bg);
  transform: rotate(-2deg) scale(1.05);
}

/* Masonry Gallery */
.masonry {
  column-count: 3;
  column-gap: 2rem;
  margin-top: 4rem;
}
@media (max-width: 1024px) { .masonry { column-count: 2; } }
@media (max-width: 768px) { .masonry { column-count: 1; } }

.masonry-item {
  break-inside: avoid;
  margin-bottom: 2rem;
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  group;
  cursor: pointer;
  background: var(--surface);
}
.masonry-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.masonry-item:hover img {
  transform: scale(1.05);
}
.masonry-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.masonry-item:hover .masonry-overlay {
  opacity: 1;
}
.masonry-overlay span {
  font-family: 'Space Grotesk', sans-serif;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.masonry-item:hover .masonry-overlay span {
  transform: translateY(0);
}

/* Interactive Skill Bars */
.skills-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 4rem;
}
.skill-item {
  position: relative;
}
.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
}
.skill-bar-bg {
  height: 24px;
  background: var(--surface);
  border-radius: 9999px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  background: var(--accent);
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scheme Switcher */
.theme-switcher { position: fixed; bottom: 2rem; right: 2rem; z-index: 9999; }
.theme-toggle { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--text); color: var(--bg); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 10px 25px rgba(0,0,0,0.2); font-size: 1.5rem; transition: all 0.3s ease; }
.theme-toggle:hover { transform: scale(1.1) rotate(90deg); }
.theme-menu { position: absolute; bottom: calc(100% + 1rem); right: 0; width: 280px; padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); background: var(--text); color: var(--bg); }
.theme-switcher.open .theme-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.theme-option { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1rem; cursor: pointer; transition: background 0.2s; font-family: 'Space Grotesk', sans-serif; font-weight: 700; }
.theme-option:hover { background: rgba(0,0,0,0.1); }
.theme-option.active { border-left: 4px solid var(--bg); background: rgba(0,0,0,0.1); }
.theme-color-preview { width: 24px; height: 24px; border-radius: 50%; }

/* --- Upgrades --- */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
[data-reveal] {
  opacity: 0;
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  animation: reveal-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Services / Features */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 4rem;
}
@media (max-width: 768px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  padding: 3rem;
  background: var(--surface);
  border-left: 8px solid var(--accent);
  transition: transform 0.3s ease;
}
.service-card:hover { transform: translateX(10px); }
.service-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Client Roster / Testimonials */
.client-marquee {
  display: flex;
  overflow: hidden;
  padding-top: 4rem;
  padding-bottom: 4rem;
  background: var(--text);
  color: var(--bg);
  margin-top: 6rem;
}
.client-marquee-content {
  display: flex;
  gap: 4rem;
  animation: scroll-left 20s linear infinite;
  white-space: nowrap;
}
.client-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--bg);
}
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Accordion FAQ */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 2px solid var(--text);
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.faq-question {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-size: 1.25rem;
  line-height: 1.6;
}
.faq-item.active .faq-answer {
  max-height: 400px;
  padding-top: 1rem;
}

/* CTA */
.cta-banner {
  background: var(--accent);
  color: var(--bg);
  padding: 8rem 2rem;
  text-align: center;
  margin-top: 8rem;
}
.cta-banner h2 {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 2rem;
}

/* Footer */
footer {
  padding: 6rem 2rem 2rem;
  background: var(--text);
  color: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--accent);
}
.footer-col a {
  display: block;
  color: var(--bg);
  text-decoration: none;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center;
  padding-top: 4rem;
  font-size: 1rem;
  font-weight: 500;
}

/* --- UNIVERSAL MOBILE PATCH --- */
@media (max-width: 768px) {
  .nav-links { display: none !important; }
  .hero-btns { flex-direction: column !important; width: 100% !important; align-items: stretch !important; gap: 0.5rem !important; margin-bottom: 2rem !important; }
  .hero-btns .btn { width: 100% !important; justify-content: center !important; margin: 0 !important; }
  .bento-card, .feature-card, .pricing-card, .pricing-tier { grid-column: 1 / -1 !important; }
  .bento, .features-grid, .pricing-grid, .stats-grid, .footer-grid { grid-template-columns: 1fr !important; }
  .hero-title { font-size: 2.5rem !important; }
  .stat-value { font-size: 3.5rem !important; }
  .hero { flex-direction: column !important; padding-top: 6rem !important; gap: 3rem !important; height: auto !important; min-height: unset !important; }
  .hero > div { padding-right: 0 !important; padding-left: 0 !important; width: 100% !important; text-align: center !important; }
  .pricing-header h2 { font-size: 2.5rem !important; }
}
