/*
Theme Name: Cinematic Video Editor
Theme URI: https://example.com/cinematic
Author: Your Name
Author URI: https://example.com
Description: A modern, professional, dark-themed portfolio website for a video editor with a premium, cinematic feel.
Version: 1.0
Text Domain: cinematic
*/

:root {
  --color-bg: #0a0a0a;
  --color-primary: #7c3aed;
  --color-primary-hover: #6d28d9;
  --color-secondary: #a78bfa;
  --color-text: #ffffff;
  --color-text-muted: #9ca3af;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font-heading: 'Instrument Serif', serif;
  --font-body: 'Barlow', sans-serif;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
}

::selection {
  background-color: rgba(124, 58, 237, 0.3);
  color: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  font-weight: normal;
}

.text-glow {
  text-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

.text-primary {
  color: var(--color-primary);
}

.text-muted {
  color: var(--color-text-muted);
}

.section-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

/* Layout Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-py {
  padding: 6rem 0;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
}

.box-glow {
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.3);
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-primary);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

/* Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  padding: 1.5rem 0;
}

.site-header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
}

.desktop-menu ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.desktop-menu a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.desktop-menu a:hover {
  color: #fff;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--glass-border);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu.active { display: flex; }

@media (max-width: 768px) {
  .desktop-menu { display: none; }
  .mobile-menu-toggle { display: block; }
}

/* Portfolio */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--color-text-muted);
  padding: 0.5rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.3);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
}

.portfolio-item.reels {
  aspect-ratio: 9/16;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.play-btn {
  width: 64px;
  height: 64px;
  background: rgba(124, 58, 237, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.play-btn svg { width: 32px; height: 32px; fill: white; margin-left: 4px; }

/* Pricing */
.pricing-section { background: rgba(0, 0, 0, 0.8); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  padding: 2rem;
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.premium {
  background: linear-gradient(to bottom, rgba(124, 58, 237, 0.2), #000);
  border: 1px solid rgba(124, 58, 237, 0.5);
  transform: scale(1.05);
  z-index: 10;
}

.badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  font-size: 0.75rem;
  padding: 0.25rem 1rem;
  border-radius: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.pricing-price {
  font-size: 2.5rem;
  font-family: var(--font-heading);
  margin: 1rem 0;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.pricing-features li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #d1d5db;
}

.pricing-features svg {
  color: var(--color-primary);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-outline {
  display: block;
  text-align: center;
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }

/* Testimonials */
.testimonials-section { background: rgba(0, 0, 0, 0.5); }
.testimonials-slider-wrap { position: relative; }
.testimonials-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 2rem;
  padding-bottom: 2rem;
  scrollbar-width: none;
}
.testimonials-slider::-webkit-scrollbar { display: none; }
.testimonial-card {
  min-width: calc(33.333% - 1.33rem);
  scroll-snap-align: start;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
@media (max-width: 1024px) { .testimonial-card { min-width: calc(50% - 1rem); } }
@media (max-width: 768px) { .testimonial-card { min-width: 100%; } }

.quote-icon {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 4rem;
  color: rgba(124, 58, 237, 0.2);
  font-family: serif;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.5rem;
}

.testimonial-author img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(124, 58, 237, 0.5);
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.slider-btn:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.5);
  color: var(--color-primary);
}

/* About Section */
.about-section { background: rgba(0, 0, 0, 0.95); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 992px) { .about-grid { grid-template-columns: 1fr; text-align: center; } }

.about-image-wrap {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.about-image-wrap img {
  width: 100%;
  border-radius: 1.5rem;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.about-image-wrap:hover img { filter: grayscale(0%); }

.exp-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  padding: 1.5rem;
  text-align: center;
  background: var(--glass-bg);
}
.exp-badge .number { font-size: 2.5rem; color: var(--color-primary); font-family: var(--font-heading); font-weight: bold; line-height: 1; }
.exp-badge .text { font-size: 0.75rem; text-transform: uppercase; color: var(--color-text-muted); letter-spacing: 2px; }

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
}
@media (max-width: 992px) { .social-links { justify-content: center; } }
.social-links a { color: var(--color-text-muted); transition: color 0.3s, transform 0.3s; }
.social-links a:hover { color: var(--color-primary); transform: scale(1.1); }