/* 
  ACOUSTICFUSER V2.0 - PREMIUM MODERN SYSTEM
  Concept: The Precision of Sound
  Aesthetic: Minimal Studio, Glassmorphism, Liquid Motion
*/

:root {
  --bg-dark: #030407;
  --bg-navy: #0a0b12;
  --accent-cyan: #00f2ff;
  --accent-purple: #7000ff;
  --accent-mint: #00ffd1;
  --text-white: #ffffff;
  --text-gray: #94a3b8;
  --text-dim: rgba(255, 255, 255, 0.5);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --transition-smooth: 0.6s var(--ease-expo);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-cyan) var(--bg-dark);
}

body {
  background: var(--bg-dark);
  color: var(--text-white);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.dark-theme {
  background-color: var(--bg-dark);
}

/* Custom Cursor */
#cursor {
  position: fixed; width: 8px; height: 8px; background: #fff; border-radius: 50%;
  pointer-events: none; z-index: 9999; mix-blend-mode: difference; transition: transform 0.1s;
}
#cursor-blur {
  position: fixed; width: 300px; height: 300px; background: radial-gradient(circle, rgba(0, 242, 255, 0.05), transparent 70%);
  border-radius: 50%; pointer-events: none; z-index: 9998; transform: translate(-50%, -50%);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reusable Components */
.container { max-width: 1300px; margin: 0 auto; padding: 0 40px; }
.container-fluid { width: 100%; padding: 0; }

.gradient-text {
  background: linear-gradient(135deg, #fff 30%, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.label {
  font-size: 11px; letter-spacing: 4px; font-weight: 700; color: var(--accent-cyan);
  text-transform: uppercase; margin-bottom: 20px; display: block;
}

.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 1s var(--ease-expo), transform 1s var(--ease-expo);
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* Background Decoration */
.bg-gradient-noise {
  position: fixed; inset: 0; z-index: -2; opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.blob {
  position: fixed; width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(120px); z-index: -1; opacity: 0.15; pointer-events: none;
}
.blob-1 { top: -20%; left: -10%; background: var(--accent-cyan); animation: drift 20s infinite alternate; }
.blob-2 { bottom: -20%; right: -10%; background: var(--accent-purple); animation: drift 25s infinite alternate-reverse; }

@keyframes drift {
  from { transform: translate(0,0) rotate(0deg); }
  to { transform: translate(10%, 10%) rotate(360deg); }
}

/* Navigation */
nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 40px 0; transition: var(--transition-smooth);
}
nav.scrolled {
  padding: 20px 0; background: rgba(3, 4, 7, 0.7);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

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

.logo-text {
  font-family: 'Syncopate', sans-serif; font-weight: 700; font-size: 18px;
  letter-spacing: 6px; color: #fff; text-decoration: none;
}

.nav-links { display: flex; gap: 40px; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--text-dim); font-size: 12px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase; transition: 0.3s;
}
.nav-links a:hover { color: var(--accent-cyan); }
.nav-store { color: var(--accent-mint) !important; font-weight: 700 !important; }
.nav-cta {
  background: var(--text-white); color: var(--bg-dark) !important;
  padding: 10px 24px; border-radius: 2px; font-weight: 700 !important;
}
.nav-cta:hover { transform: translateY(-2px); opacity: 0.9; }

/* Hero */
.hero {
  position: relative; height: 100vh; display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding-top: 100px;
}
#hero-canvas { position: absolute; inset: 0; z-index: 1; opacity: 0.4; }
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: 2;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px; opacity: 0.5;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.hero-content { position: relative; z-index: 3; text-align: center; max-width: 1000px; }
.hero-reveal-container { overflow: hidden; margin-bottom: 15px; }

.hero-badge {
  display: inline-block; padding: 6px 16px; border: 1px solid var(--glass-border);
  border-radius: 40px; background: rgba(255,255,255,0.05);
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 20px;
}
.hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(48px, 10vw, 120px);
  font-weight: 800; line-height: 0.95; letter-spacing: -4px; margin-bottom: 30px;
}
.hero-desc {
  font-size: clamp(16px, 1.5vw, 20px); color: var(--text-dim);
  max-width: 600px; margin: 0 auto 50px; font-weight: 400;
}

.hero-btns { display: flex; gap: 20px; justify-content: center; }
.btn-primary {
  background: #fff; color: #000; padding: 20px 40px; font-weight: 700;
  text-decoration: none; border-radius: 4px; letter-spacing: 1px; transition: 0.3s;
}
.btn-secondary {
  border: 1px solid var(--glass-border); color: #fff; padding: 20px 40px;
  font-weight: 600; text-decoration: none; border-radius: 4px; transition: 0.3s;
  background: rgba(255,255,255,0.02); backdrop-filter: blur(10px);
}
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 242, 255, 0.2); }

.scroll-indicator {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0.5;
}
.scroll-indicator span { font-size: 9px; letter-spacing: 2px; }
.mouse {
  width: 20px; height: 35px; border: 2px solid #fff; border-radius: 12px; position: relative;
}
.mouse::after {
  content: ''; position: absolute; top: 8px; left: 50%; width: 2px; height: 6px;
  background: #fff; transform: translateX(-50%); animation: scroll 2s infinite;
}

@keyframes scroll { 0% { opacity: 1; transform: translateX(-50%) translateY(0); } 100% { opacity: 0; transform: translateX(-50%) translateY(10px); } }

/* Bento Grid */
.stats-section { padding: 100px 0; }
.bento-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.bento-item {
  background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 24px;
  padding: 60px 40px; backdrop-filter: blur(10px); transition: var(--transition-smooth);
}
.bento-item:hover { transform: translateY(-5px); border-color: var(--accent-cyan); background: rgba(255,255,255,0.05); }
.bento-item.highlight { grid-column: span 1; background: linear-gradient(135deg, rgba(0,242,255,0.1), rgba(112,0,255,0.1)); }
.bento-item h2 { font-size: 64px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.bento-item p { font-size: 11px; letter-spacing: 2px; color: var(--text-dim); }

/* Layout Splits */
section { padding: 160px 0; }
.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(36px, 5vw, 64px);
  font-weight: 700; line-height: 1.1; margin-bottom: 40px;
}

.layout-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; }
.quote-box {
  padding-left: 30px; border-left: 2px solid var(--accent-cyan); margin: 40px 0;
}
.quote-box p { font-size: 20px; font-style: italic; color: #fff; opacity: 0.8; }

.image-wrapper { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16/10; }
.parallax-img { width: 100%; height: 120%; object-fit: cover; }
.image-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg-dark), transparent); }

/* Solution Cards */
.solution-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--glass-border); margin-top: 60px; }
.solution-card {
  padding: 60px 40px; background: var(--bg-dark); transition: 0.4s;
}
.solution-card:hover { background: rgba(255,255,255,0.02); }
.card-count { font-size: 11px; color: var(--accent-cyan); margin-bottom: 30px; font-weight: 700; }
.solution-card h3 { font-size: 24px; margin-bottom: 20px; }
.solution-card p { color: var(--text-dim); font-size: 15px; }
.card-line { width: 40px; height: 1px; background: var(--accent-cyan); margin-top: 30px; transition: 0.4s; }
.solution-card:hover .card-line { width: 100%; }

/* Inventory Grid */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 60px; }
.product-item { cursor: pointer; }
.product-img {
  position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 1/1; margin-bottom: 25px;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s var(--ease-expo); }
.hover-info {
  position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.4s;
}
.hover-info a {
  padding: 12px 24px; background: #fff; color: #000; text-decoration: none; border-radius: 4px; font-weight: 700;
}
.product-item:hover .product-img img { transform: scale(1.1); }
.product-item:hover .hover-info { opacity: 1; }
.product-info h4 { font-size: 18px; margin-bottom: 8px; }
.product-info p { color: var(--text-dim); font-size: 14px; }

/* Portfolio Track */
.portfolio { padding: 100px 0; }
.horizontal-scroll-container { width: 100%; overflow-x: auto; padding: 40px 0; }
.portfolio-track { display: flex; gap: 30px; padding: 0 40px; }
.portfolio-item { min-width: 450px; height: 300px; border-radius: 12px; overflow: hidden; position: relative; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s ease; }
.portfolio-item:hover img { transform: scale(1.05); }

.portfolio-cta { text-align: center; margin-top: 60px; }
.portfolio-cta a { color: #fff; text-decoration: none; font-weight: 700; border-bottom: 1px solid #fff; padding-bottom: 5px; opacity: 0.7; transition: 0.3s; }
.portfolio-cta a:hover { opacity: 1; color: var(--accent-cyan); border-color: var(--accent-cyan); }

/* Contact Form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.social-links { display: flex; flex-direction: column; gap: 20px; margin-top: 40px; }
.social-item {
  display: flex; align-items: center; gap: 15px; text-decoration: none; color: var(--text-dim); transition: 0.3s;
}
.social-item span { font-weight: 800; color: #fff; border: 1px solid var(--glass-border); padding: 5px 10px; font-size: 10px; }
.social-item:hover { color: #fff; }

.modern-form .input-group { position: relative; margin-bottom: 40px; }
.modern-form input, .modern-form textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--glass-border);
  padding: 15px 0; color: #fff; font-family: inherit; font-size: 16px; outline: none; transition: 0.3s;
}
.modern-form label { position: absolute; left: 0; top: 15px; color: var(--text-dim); font-size: 12px; letter-spacing: 2px; pointer-events: none; transition: 0.3s; }
.modern-form input:focus ~ label, .modern-form input:valid ~ label,
.modern-form textarea:focus ~ label, .modern-form textarea:valid ~ label { top: -20px; color: var(--accent-cyan); font-size: 10px; }
.modern-form input:focus, .modern-form textarea:focus { border-color: var(--accent-cyan); }

.submit-btn {
  background: transparent; border: 1px solid var(--accent-cyan); color: var(--accent-cyan);
  padding: 20px 40px; width: 100%; display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-family: inherit; font-weight: 800; transition: 0.4s;
}
.submit-btn:hover { background: var(--accent-cyan); color: #000; }

/* Footer */
.footer { border-top: 1px solid var(--glass-border); padding-top: 100px; padding-bottom: 40px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 80px; }
.footer-logo { font-family: 'Syncopate', sans-serif; font-weight: 700; letter-spacing: 4px; margin-bottom: 20px; display: block; }
.link-col h6 { font-size: 12px; letter-spacing: 3px; margin-bottom: 30px; opacity: 0.5; }
.link-col ul { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.link-col a { color: var(--text-white); text-decoration: none; font-size: 14px; opacity: 0.7; transition: 0.3s; }
.link-col a:hover { opacity: 1; color: var(--accent-cyan); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; opacity: 0.4; font-size: 11px; }
.back-to-top { cursor: pointer; transition: 0.3s; }
.back-to-top:hover { opacity: 1; color: var(--accent-cyan); }

/* Floating Buttons */
.floating-contact { position: fixed; bottom: 40px; left: 40px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; }
.float-item {
  width: 50px; height: 50px; background: var(--glass-bg); backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border); border-radius: 50%; display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 20px; transition: 0.3s;
}
.float-item:hover { transform: scale(1.1); border-color: var(--accent-cyan); }

/* Mobile Adaptations */
@media (max-width: 1024px) {
  .container { padding: 0 25px; }
  nav { padding: 25px 0; }
  
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 80%; height: 100vh;
    background: var(--bg-navy); display: flex; flex-direction: column;
    justify-content: center; align-items: flex-start; padding: 60px;
    gap: 30px; transition: 0.5s var(--ease-expo); z-index: 999;
    box-shadow: -20px 0 60px rgba(0,0,0,0.5);
  }
  .nav-links.open { right: 0; }
  
  #mobile-toggle {
    display: flex; flex-direction: column; gap: 6px; cursor: pointer; z-index: 1000;
  }
  #mobile-toggle span {
    width: 28px; height: 2px; background: #fff; transition: 0.3s;
  }
  #mobile-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  #mobile-toggle.active span:nth-child(2) { transform: rotate(-45deg); }

  .hero-title { font-size: clamp(40px, 12vw, 80px); letter-spacing: -2px; }
  .hero-desc { font-size: 16px; margin-bottom: 40px; }
  .hero-btns { flex-direction: column; width: 100%; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; }

  .bento-grid { grid-template-columns: 1fr; }
  .bento-item { padding: 40px 30px; }
  .bento-item h2 { font-size: 48px; }

  .layout-split { grid-template-columns: 1fr; gap: 40px; }
  .section-title { font-size: 38px; }
  
  .solution-cards { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  
  .horizontal-scroll-container { 
    margin: 0 -25px; padding: 20px 25px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .portfolio-item { 
    min-width: 85vw; height: 250px; 
    scroll-snap-align: center;
  }

  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
}

body.is-touch #cursor, 
body.is-touch #cursor-blur {
  display: none !important;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
