:root {
  --bg-dark: #08090D;
  --bg-secondary: #11131A;
  --bg-card: #181B23;
  --primary: #FF7A1A;
  --secondary: #FFA64D;
  --primary-glow: rgba(255, 122, 26, 0.6);
  --secondary-glow: rgba(255, 166, 77, 0.6);
  --highlight: #3B82F6;
  --highlight-glow: rgba(59, 130, 246, 0.6);
  --heading: #FFFFFF;
  --text: #A8B0C2;
  --border: #2B3242;
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, .logo { font-family: 'Outfit', sans-serif; color: var(--heading); }
a { text-decoration: none; color: inherit; }

/* Background Effects */
#particles-js { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; background: var(--bg-dark); }
.glow-bg {
  position: fixed; top: 50%; left: 50%; width: 150vw; height: 150vw; transform: translate(-50%, -50%);
  background: radial-gradient(circle at center, rgba(255, 122, 26, 0.03) 0%, rgba(59, 130, 246, 0.02) 40%, transparent 70%);
  z-index: -1; pointer-events: none;
}
.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }

/* Navbar */
.navbar {
  position: fixed; top: 0; width: 100%; padding: 1.5rem 0; background: rgba(8, 9, 13, 0.9);
  backdrop-filter: blur(10px); z-index: 100; border-bottom: 1px solid var(--border);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.logo { font-size: 1.8rem; font-weight: 800; display: flex; align-items: center; }
.neon-text { color: var(--primary); text-shadow: 0 0 10px var(--primary-glow); }
.logo-sub { color: var(--heading); font-weight: 400; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-weight: 500; transition: var(--transition); }
.nav-links a:hover { color: var(--secondary); text-shadow: 0 0 8px var(--secondary-glow); }
.cart-icon { position: relative; font-size: 1.2rem; }
.cart-count { position: absolute; top: -8px; right: -12px; background: var(--primary); color: #fff; font-size: 0.7rem; padding: 2px 6px; border-radius: 10px; font-weight: bold; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem; background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--bg-dark); padding: 0.75rem 2rem; border-radius: 50px; font-weight: 700; font-family: 'Outfit', sans-serif;
  transition: var(--transition); border: none; cursor: pointer; position: relative; z-index: 1; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, var(--secondary), var(--primary));
  z-index: -1; transition: opacity 0.3s ease; opacity: 0;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { box-shadow: 0 0 20px var(--primary-glow); transform: translateY(-2px); color: var(--bg-dark); }
.btn-large { padding: 1rem 3rem; font-size: 1.2rem; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem; background: transparent; color: var(--primary);
  border: 2px solid var(--primary); padding: 0.75rem 2rem; border-radius: 50px; font-weight: 700; font-family: 'Outfit', sans-serif;
  transition: var(--transition); cursor: pointer;
}
.btn-outline:hover { background: rgba(255, 122, 26, 0.1); box-shadow: 0 0 15px var(--primary-glow); }

/* Utilities */
.gradient-text { background: linear-gradient(to right, var(--primary), var(--highlight)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.badge { display: inline-block; padding: 0.4rem 1rem; background: rgba(59, 130, 246, 0.1); color: var(--highlight); border: 1px solid rgba(59, 130, 246, 0.3); border-radius: 50px; font-size: 0.9rem; font-weight: 600; margin-bottom: 1.5rem; }
.price { font-family: 'Outfit', sans-serif; font-size: 1.5rem; color: var(--highlight); font-weight: 700; margin: 1rem 0; }

/* Hero Section (Split Layout) */
.hero { min-height: 90vh; display: flex; align-items: center; padding: 8rem 0 4rem; position: relative; }
.hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-content { z-index: 10; }
.hero-title { font-size: clamp(3.5rem, 5vw, 5rem); line-height: 1.1; margin-bottom: 1.5rem; }
.hero-desc { font-size: 1.2rem; margin-bottom: 2.5rem; color: var(--text); }
.hero-actions { display: flex; gap: 1.5rem; }
.hero-visual { position: relative; z-index: 1; text-align: center; }
.hero-visual img.floating-3d { width: 100%; max-width: 500px; animation: float3d 8s ease-in-out infinite; filter: drop-shadow(0 20px 40px rgba(255,122,26,0.2)); }
.visual-glow { position: absolute; top: 50%; left: 50%; width: 300px; height: 300px; background: var(--primary); filter: blur(100px); opacity: 0.3; transform: translate(-50%, -50%); z-index: -1; }

@keyframes float3d {
  0% { transform: translateY(0) rotateX(0) rotateY(0); }
  50% { transform: translateY(-20px) rotateX(5deg) rotateY(5deg); }
  100% { transform: translateY(0) rotateX(0) rotateY(0); }
}

/* Single-Card Carousel Section */
.carousel-section { padding: 6rem 0; background: var(--bg-secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 3rem; margin-bottom: 1rem; }

.single-carousel-container { position: relative; max-width: 900px; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.carousel-track { width: 100%; position: relative; height: 500px; display: flex; align-items: center; justify-content: center; overflow: hidden; perspective: 1000px; }

.product-card {
  position: absolute;
  width: 100%;
  max-width: 700px;
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  display: flex;
  opacity: 0;
  transform: translateX(100%) scale(0.9);
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
  z-index: 0;
}

.product-card.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  z-index: 5;
}

.product-card.prev {
  opacity: 0;
  transform: translateX(-100%) scale(0.9);
}

.product-card .card-image { width: 45%; height: auto; }
.product-card .card-image img { width: 100%; height: 100%; object-fit: cover; }
.product-card .card-content { width: 55%; padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.product-card .card-content h3 { font-size: 2rem; margin-bottom: 1rem; }
.product-card .card-content p { font-size: 1.1rem; margin-bottom: 2rem; line-height: 1.7; }
.product-card .card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.product-card .card-price { font-size: 1.5rem; font-weight: 700; color: var(--highlight); }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; background: var(--bg-card);
  border: 1px solid var(--border); color: var(--heading); border-radius: 50%; font-size: 1.5rem; cursor: pointer; z-index: 10; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.carousel-btn:hover { background: var(--primary); border-color: var(--primary); color: var(--bg-dark); }
.prev-btn { left: -60px; }
.next-btn { right: -60px; }

.carousel-indicators { display: flex; justify-content: center; gap: 0.8rem; margin-top: 2rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--border); cursor: pointer; transition: var(--transition); }
.dot.active { background: var(--primary); box-shadow: 0 0 10px var(--primary-glow); transform: scale(1.2); }

/* Premium Masonry Grid */
.showcase-section { padding: 8rem 0; position: relative; }
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 1.5rem;
}
.masonry-card {
    background: var(--bg-card);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    display: flex;
    padding: 2rem;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.masonry-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(59, 130, 246, 0.15); border-color: rgba(255,122,26,0.3); }

/* Grid Placements & Backgrounds */
.card-wide-1 { grid-column: 1 / 3; grid-row: 1; background: #151821; }
.card-wide-2 { grid-column: 1 / 3; grid-row: 2; background: #1A1613; }
.card-tall-1 { grid-column: 3 / 4; grid-row: 1 / 3; background: #12181E; flex-direction: column; }
.card-tall-2 { grid-column: 4 / 5; grid-row: 1 / 3; background: #18191C; flex-direction: column; }
.card-sq-1 { grid-column: 1 / 2; grid-row: 3; background: #1A171D; flex-direction: column; }
.card-sq-2 { grid-column: 2 / 3; grid-row: 3; background: #151719; flex-direction: column; align-items: center; text-align: center; }
.card-wide-3 { grid-column: 3 / 5; grid-row: 3; background: #14171A; }

/* Image Positioning */
.card-img { position: absolute; z-index: 1; }
.right-overflow { right: -20px; bottom: -20px; width: 55%; object-fit: contain; }
.top-overflow { top: 0; left: 50%; transform: translateX(-50%); width: 85%; margin-top: 1rem; }
.center-img { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 75%; }
.right-edge { right: 0; bottom: 0; width: 45%; height: 100%; object-fit: cover; border-top-left-radius: 32px; border-bottom-left-radius: 32px; }
.full-bg { top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,9,13,0.9) 0%, transparent 60%); z-index: 2; }

/* Content Alignment */
.card-content { position: relative; z-index: 10; display: flex; flex-direction: column; justify-content: center; width: 55%; }
.bottom-content { width: 100%; justify-content: flex-end; align-items: flex-start; height: 100%; }
.bottom-center { justify-content: flex-end; align-items: center; width: 100%; height: 100%; }
.top-content { justify-content: flex-start; align-items: center; width: 100%; }

/* Buttons & Text */
.masonry-card h3 { font-size: 1.8rem; margin-bottom: 0.5rem; line-height: 1.2; }
.card-tall-1 h3, .card-tall-2 h3 { font-size: 1.4rem; }
.masonry-card p { font-size: 1rem; color: var(--text); margin-bottom: 1rem; }
.subtitle { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text); margin-bottom: 0.5rem; }
.btn-small { padding: 0.5rem 1.2rem; font-size: 0.9rem; }
.btn-icon { border-radius: 50%; width: 40px; height: 40px; padding: 0; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-top: auto; }
.mini-grid { display: flex; gap: 0.5rem; margin: 1rem 0; width: 100%; justify-content: center; position: relative; z-index: 10; }
.mini-grid img { width: 60px; height: 80px; object-fit: cover; border-radius: 12px; }
.btn-glass { background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); color: var(--heading); border-color: rgba(255,255,255,0.1); }
.btn-text { background: none; border: none; color: var(--text); font-weight: bold; cursor: pointer; position: relative; z-index: 10; font-family: 'Outfit', sans-serif; }
.btn-text:hover { color: var(--primary); }

/* Scroll Animations */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-up.show { opacity: 1; transform: translateY(0); }

/* Features Section */
.features-section { padding: 4rem 0 8rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.feature-card { background: var(--bg-card); padding: 2.5rem; border-radius: 16px; border: 1px solid var(--border); transition: var(--transition); text-align: center; }
.feature-card:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(255,122,26,0.1); }
.feature-icon { font-size: 3rem; margin-bottom: 1.5rem; color: var(--primary); }
.feature-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }

/* Footer */
.footer { padding: 1.5rem 0; background: #000000; border-top: 1px solid var(--border); }
.footer-bottom { text-align: center; font-size: 0.9rem; color: var(--text); }

/* Responsive */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hero-split { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .hero-actions { justify-content: center; }
  .hero-visual img.floating-3d { max-width: 400px; }
  .masonry-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 250px; }
  .card-wide-1, .card-wide-2, .card-wide-3 { grid-column: 1 / 3; }
  .card-tall-1 { grid-column: 1 / 2; grid-row: auto; height: 400px; }
  .card-tall-2 { grid-column: 2 / 3; grid-row: auto; height: 400px; }
  .card-sq-1 { grid-column: 1 / 2; grid-row: auto; }
  .card-sq-2 { grid-column: 2 / 3; grid-row: auto; }
}

@media (max-width: 768px) {
  .product-card { flex-direction: column; }
  .product-card .card-image { width: 100%; height: 250px; }
  .product-card .card-content { width: 100%; padding: 1.5rem; }
  .carousel-track { height: 600px; }
  .carousel-btn { display: none; }
  .hero-title { font-size: 2.8rem; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .footer-content { grid-template-columns: 1fr; }
  .masonry-grid { grid-template-columns: 1fr; grid-auto-rows: minmax(250px, auto); }
  .card-wide-1, .card-wide-2, .card-wide-3, .card-tall-1, .card-tall-2, .card-sq-1, .card-sq-2 { grid-column: 1 / 2; grid-row: auto; height: auto; min-height: 250px; }
  .card-content { width: 100% !important; }
  .card-img.right-overflow, .card-img.right-edge { opacity: 0.3; width: 100%; right: 0; object-fit: cover; }
  .hero-actions { flex-direction: column; }
}
