/* ============================================
   THE SOUNDAHOLICS — Global Stylesheet
   Bold • Cinematic • Audio-Forward
   ============================================ */

/* Fonts loaded via <link> in HTML for better performance */

:root {
  --red: #E02020;
  --red-bright: #FF3030;
  --red-dark: #B01818;
  --black: #0A0A0A;
  --black-soft: #141414;
  --black-card: #1A1A1A;
  --gray-dark: #2A2A2A;
  --gray-mid: #555;
  --gray-light: #999;
  --gray-lighter: #CCC;
  --white: #F5F5F5;
  --white-pure: #FFFFFF;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --nav-height: 80px;
  --max-width: 1280px;
  --section-pad: 100px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--black); color: var(--white); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
::selection { background: var(--red); color: var(--white-pure); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 4px; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }
.section-pad { padding: var(--section-pad) 0; }
.accent { color: var(--red); }

body::before {
  content: '';
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999;
}

/* NAV */
.nav { position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-height); z-index: 1000; display: flex; align-items: center; background: rgba(10,10,10,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(224,32,32,0.1); transition: background 0.4s; }
.nav.scrolled { background: rgba(10,10,10,0.95); box-shadow: 0 2px 40px rgba(224,32,32,0.08); }
.nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 42px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-family: var(--font-body); font-weight: 500; font-size: 0.9rem; letter-spacing: 0.5px; text-transform: uppercase; color: var(--gray-light); transition: color 0.3s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--red); transition: width 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { background: var(--red) !important; color: var(--white-pure) !important; padding: 10px 24px; border-radius: 4px; font-weight: 600 !important; transition: background 0.3s, transform 0.3s !important; }
.nav-cta:hover { background: var(--red-bright) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; }
.hamburger span { width: 28px; height: 2px; background: var(--white); transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* HERO */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding-top: var(--nav-height); }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 50%, rgba(224,32,32,0.15) 0%, transparent 60%), radial-gradient(ellipse at 80% 20%, rgba(224,32,32,0.08) 0%, transparent 50%), var(--black); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(224,32,32,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(224,32,32,0.04) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%); }
.hero-content { position: relative; text-align: center; z-index: 2; padding: 40px; }
.hero-tagline { font-family: var(--font-mono); font-size: 0.85rem; color: var(--red); text-transform: uppercase; letter-spacing: 4px; margin-bottom: 20px; opacity: 0; animation: fadeUp 0.8s 0.2s forwards; }
.hero-title { font-family: var(--font-display); font-size: clamp(3.5rem, 10vw, 9rem); line-height: 0.95; letter-spacing: 2px; margin-bottom: 24px; opacity: 0; animation: fadeUp 0.8s 0.4s forwards; }
.hero-title .outline { -webkit-text-stroke: 2px var(--white); color: transparent; }
.hero-sub { font-size: 1.15rem; color: var(--gray-light); max-width: 560px; margin: 0 auto 40px; font-weight: 300; opacity: 0; animation: fadeUp 0.8s 0.6s forwards; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.8s 0.8s forwards; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; border-radius: 4px; cursor: pointer; border: none; transition: all 0.3s; text-transform: uppercase; letter-spacing: 0.5px; }
.btn-primary { background: var(--red); color: var(--white-pure); }
.btn-primary:hover { background: var(--red-bright); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(224,32,32,0.3); }
.btn-secondary { background: transparent; color: var(--white); border: 1px solid var(--gray-dark); }
.btn-secondary:hover { border-color: var(--red); color: var(--red); }
.btn-small { padding: 8px 20px; font-size: 0.8rem; }

/* SECTION HEADERS */
.section-header { margin-bottom: 60px; }
.section-label { font-family: var(--font-mono); font-size: 0.8rem; color: var(--red); text-transform: uppercase; letter-spacing: 4px; margin-bottom: 12px; }
.section-title { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: 2px; line-height: 1; }
.section-divider { width: 60px; height: 3px; background: var(--red); margin-top: 20px; }

/* SERVICES */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card { background: var(--black-card); border: 1px solid var(--gray-dark); border-radius: 8px; padding: 36px; transition: all 0.4s; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--red), var(--red-bright)); transform: scaleX(0); transform-origin: left; transition: transform 0.4s; }
.service-card:hover { border-color: var(--red); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.4); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { font-size: 2rem; margin-bottom: 16px; }
.service-card h3 { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 1px; margin-bottom: 12px; }
.service-card p { color: var(--gray-light); font-size: 0.95rem; line-height: 1.7; }

/* PORTFOLIO */
.portfolio-filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn { padding: 8px 20px; font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; background: transparent; color: var(--gray-light); border: 1px solid var(--gray-dark); border-radius: 4px; cursor: pointer; transition: all 0.3s; }
.filter-btn:hover, .filter-btn.active { background: var(--red); border-color: var(--red); color: var(--white-pure); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 28px; }
.project-card { background: var(--black-card); border: 1px solid var(--gray-dark); border-radius: 8px; overflow: hidden; transition: all 0.4s; }
.project-card:hover { border-color: var(--red); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.project-thumb { position: relative; aspect-ratio: 16/9; background: var(--black-soft); overflow: hidden; }
.project-thumb iframe { width: 100%; height: 100%; border: none; }
.project-thumb .placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--red); background: linear-gradient(135deg, var(--black-soft), var(--gray-dark)); }
.project-info { padding: 24px; }
.project-info h3 { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 1px; margin-bottom: 6px; }
.project-info .project-type { font-family: var(--font-mono); font-size: 0.75rem; color: var(--red); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }
.project-info p { color: var(--gray-light); font-size: 0.9rem; }

/* TEAM */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 40px; }
.team-card { background: var(--black-card); border: 1px solid var(--gray-dark); border-radius: 8px; padding: 40px; text-align: center; transition: all 0.4s; }
.team-card:hover { border-color: var(--red); box-shadow: 0 16px 48px rgba(0,0,0,0.4); }
.team-avatar { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 20px; background: linear-gradient(135deg, var(--red), var(--red-dark)); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 2.5rem; color: var(--white-pure); border: 3px solid var(--red); }
.team-card h3 { font-family: var(--font-display); font-size: 1.8rem; letter-spacing: 1px; margin-bottom: 4px; }
.team-card .role { font-family: var(--font-mono); font-size: 0.8rem; color: var(--red); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px; }
.team-card p { color: var(--gray-light); font-size: 0.95rem; margin-bottom: 20px; line-height: 1.7; }
.social-links { display: flex; gap: 16px; justify-content: center; }
.social-links a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--gray-dark); display: flex; align-items: center; justify-content: center; transition: all 0.3s; font-size: 0.85rem; font-weight: 600; }
.social-links a:hover { border-color: var(--red); background: var(--red); color: var(--white-pure); }

/* SOUND STORE */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.store-card { background: var(--black-card); border: 1px solid var(--gray-dark); border-radius: 8px; overflow: hidden; transition: all 0.4s; }
.store-card:hover { border-color: var(--red); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.4); }
.store-card-visual { aspect-ratio: 1.2; background: linear-gradient(135deg, var(--black-soft) 0%, var(--gray-dark) 100%); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.waveform { display: flex; align-items: center; gap: 3px; height: 60px; }
.waveform span { display: block; width: 4px; background: var(--red); border-radius: 2px; animation: wave 1.2s ease-in-out infinite; }
.waveform span:nth-child(2) { animation-delay: 0.1s; }
.waveform span:nth-child(3) { animation-delay: 0.2s; }
.waveform span:nth-child(4) { animation-delay: 0.3s; }
.waveform span:nth-child(5) { animation-delay: 0.4s; }
.waveform span:nth-child(6) { animation-delay: 0.5s; }
.waveform span:nth-child(7) { animation-delay: 0.6s; }
.waveform span:nth-child(8) { animation-delay: 0.7s; }
.store-card-body { padding: 24px; }
.store-card-body h3 { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 1px; margin-bottom: 4px; }
.store-card-body .meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--gray-light); margin-bottom: 10px; }
.store-card-body p { color: var(--gray-light); font-size: 0.9rem; margin-bottom: 16px; }
.store-price-row { display: flex; justify-content: space-between; align-items: center; }
.store-price { font-family: var(--font-display); font-size: 1.6rem; color: var(--red); }

/* CONTACT */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h3 { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 1px; margin-bottom: 16px; margin-top: 24px; }
.contact-info h3:first-child { margin-top: 0; }
.contact-info p, .contact-info a { color: var(--gray-light); font-size: 0.95rem; line-height: 1.8; }
.contact-info a:hover { color: var(--red); }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--gray-light); }
.form-group input, .form-group textarea, .form-group select { background: var(--black-card); border: 1px solid var(--gray-dark); border-radius: 4px; padding: 14px 16px; font-family: var(--font-body); font-size: 0.95rem; color: var(--white); transition: border-color 0.3s; outline: none; resize: vertical; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--red); }
.form-group textarea { min-height: 140px; }

/* FOOTER */
.footer { background: var(--black-soft); border-top: 1px solid var(--gray-dark); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand img { height: 50px; margin-bottom: 16px; }
.footer-brand p { color: var(--gray-light); font-size: 0.9rem; line-height: 1.7; max-width: 300px; }
.footer h4 { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 1px; margin-bottom: 16px; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: var(--gray-light); font-size: 0.9rem; transition: color 0.3s; }
.footer ul a:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid var(--gray-dark); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--gray-mid); }

/* EQ BARS */
.eq-bars { display: flex; align-items: flex-end; gap: 4px; height: 40px; }
.eq-bars span { display: block; width: 3px; background: var(--red); border-radius: 2px; animation: eq 0.8s ease-in-out infinite alternate; }
.eq-bars span:nth-child(1) { height: 40%; animation-delay: 0s; }
.eq-bars span:nth-child(2) { height: 70%; animation-delay: 0.1s; }
.eq-bars span:nth-child(3) { height: 100%; animation-delay: 0.2s; }
.eq-bars span:nth-child(4) { height: 60%; animation-delay: 0.3s; }
.eq-bars span:nth-child(5) { height: 80%; animation-delay: 0.15s; }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes wave { 0%, 100% { height: 10px; } 50% { height: 50px; } }
@keyframes eq { 0% { transform: scaleY(0.3); } 100% { transform: scaleY(1); } }
/* Reveal animation - safe by default, JS activates it */
.reveal { opacity: 1; transform: none; transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-ready .reveal { opacity: 0; transform: translateY(40px); }
.reveal-ready .reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --section-pad: 60px; --nav-height: 70px; }
  .container { padding: 0 20px; }
  .nav-links { position: fixed; top: 0; right: -100%; width: 80%; height: 100vh; background: var(--black-soft); flex-direction: column; justify-content: center; align-items: center; gap: 28px; transition: right 0.4s; border-left: 1px solid var(--gray-dark); z-index: 1000; padding: 40px 20px; }
  .nav-links.open { right: 0; }
  .hamburger { display: flex; }
  .services-grid, .portfolio-grid, .store-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero-title { font-size: clamp(2.8rem, 12vw, 5rem); }
}

/* POSTER GRID */
.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.poster-card { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--gray-dark); transition: all 0.4s; cursor: pointer; }
.poster-card:hover { border-color: var(--red); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.5); }
.poster-card img { width: 100%; display: block; }
.poster-card .poster-title { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px 12px 12px; background: linear-gradient(transparent, rgba(0,0,0,0.9)); font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 1px; }

/* PHOTO SECTION */
.photo-full { border-radius: 8px; overflow: hidden; border: 1px solid var(--gray-dark); }
.photo-full img { width: 100%; display: block; }

/* TEAM PHOTOS */
.team-photo { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; border: 3px solid var(--red); }

/* Social links alignment fix */
.social-links { display: flex; align-items: center; justify-content: center; gap: 12px; }
.social-links a { display: inline-flex; align-items: center; }

/* Select dropdown font fix */
.form-group select { font-family: var(--font-body); }
