@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;800&display=swap');

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

:root {
    --pink:    #ff6b9d;
    --purple:  #7c3aed;
    --violet:  #a855f7;
    --cyan:    #06b6d4;
    --yellow:  #fbbf24;
    --bg:      #0a0a0f;
    --surface: #13131a;
    --card:    #1a1a26;
    --border:  rgba(255,255,255,0.08);
    --text:    #f0f0ff;
    --muted:   #8888aa;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* ── NAV ── */
header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    transition: all 0.4s ease;
}
header.scrolled {
    background: rgba(10,10,15,0.9);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}
nav .container {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.1rem 2.5rem;
    max-width: 1300px; margin: 0 auto;
}
.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem; font-weight: 800;
    background: linear-gradient(135deg, var(--pink), var(--violet));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-links { display: flex; list-style: none; gap: 2.5rem; }
.nav-links a {
    color: var(--muted); text-decoration: none;
    font-size: 0.88rem; font-weight: 500; letter-spacing: 0.5px;
    transition: color 0.3s; position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--pink), var(--violet));
    transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    padding: 120px 2rem 80px;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(124,58,237,0.22) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 70%, rgba(255,107,157,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 20% 80%, rgba(6,182,212,0.08) 0%, transparent 60%);
}
.hero-orb {
    position: absolute; border-radius: 50%;
    filter: blur(90px); pointer-events: none; z-index: 0;
}
.orb-1 { width: 500px; height: 500px; background: rgba(124,58,237,0.25); top: -120px; left: -120px; }
.orb-2 { width: 380px; height: 380px; background: rgba(255,107,157,0.18); bottom: -60px; right: -60px; }
.orb-3 { width: 280px; height: 280px; background: rgba(6,182,212,0.12); top: 50%; left: 50%; transform: translate(-50%,-50%); }

.hero-content {
    position: relative; z-index: 1;
    text-align: center; max-width: 780px; width: 100%;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(124,58,237,0.15);
    border: 1px solid rgba(124,58,237,0.4);
    padding: 0.45rem 1.3rem; border-radius: 50px;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px;
    color: var(--violet); text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0;
}
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800; line-height: 1.08;
    margin-bottom: 1.5rem;
    opacity: 0;
}
.hero-title .line-1 { display: block; color: var(--text); }
.hero-title .line-2 {
    display: block;
    background: linear-gradient(135deg, var(--pink) 0%, var(--violet) 50%, var(--cyan) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: 1.05rem; color: var(--muted); line-height: 1.75;
    margin-bottom: 2.5rem; max-width: 520px;
    margin-left: auto; margin-right: auto;
    opacity: 0;
}
.hero-cta {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: white; text-decoration: none;
    padding: 0.95rem 2.4rem; border-radius: 50px;
    font-weight: 600; font-size: 1rem;
    box-shadow: 0 0 40px rgba(124,58,237,0.35);
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
}
.hero-cta:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 0 60px rgba(124,58,237,0.55);
}
.hero-cta .arrow { transition: transform 0.3s; display: inline-block; }
.hero-cta:hover .arrow { transform: translateX(5px); }

.hero-stats {
    display: flex; justify-content: center; gap: 0;
    margin-top: 4rem;
    opacity: 0;
}
.stat {
    text-align: center;
    padding: 0 2.5rem;
    position: relative;
}
.stat + .stat::before {
    content: '';
    position: absolute; left: 0; top: 50%;
    transform: translateY(-50%);
    width: 1px; height: 40px;
    background: var(--border);
}
.stat-num {
    font-size: 2.2rem; font-weight: 800; line-height: 1;
    background: linear-gradient(135deg, var(--pink), var(--violet));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block; margin-bottom: 0.3rem;
}
.stat-label { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.5px; }

.scroll-indicator {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    color: var(--muted); font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase;
    opacity: 0; z-index: 1;
}
.scroll-line {
    width: 1px; height: 44px;
    background: linear-gradient(to bottom, var(--violet), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ── SHARED SECTION ── */
.container { max-width: 1300px; margin: 0 auto; padding: 0 2.5rem; }
section { padding: 110px 0; }

.section-label {
    display: inline-block;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 3px;
    text-transform: uppercase; color: var(--violet);
    margin-bottom: 0.8rem;
    opacity: 0;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 800; line-height: 1.2;
    margin-bottom: 0.9rem;
    opacity: 0;
}
.section-title span {
    background: linear-gradient(135deg, var(--pink), var(--violet));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-sub {
    color: var(--muted); font-size: 0.95rem; line-height: 1.75;
    max-width: 480px;
    opacity: 0;
}

/* ── PRODUCTS SECTION ── */
.products { background: var(--surface); position: relative; overflow: hidden; }
.products::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--purple), transparent);
}
.products-header { margin-bottom: 2.5rem; }

/* ── PRODUCTS CONTROLS ── */
.products-controls {
    display: flex; flex-direction: column; gap: 1.2rem;
    margin-bottom: 2.5rem;
}
.search-wrap {
    position: relative; display: flex; align-items: center;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 50px; padding: 0 1.2rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    max-width: 480px;
}
.search-wrap:focus-within {
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(168,85,247,0.15);
}
.search-icon { font-size: 1rem; color: var(--muted); flex-shrink: 0; }
.search-input {
    flex: 1; background: none; border: none; outline: none;
    color: var(--text); font-family: 'Poppins', sans-serif;
    font-size: 0.9rem; padding: 0.85rem 0.8rem;
}
.search-input::placeholder { color: var(--muted); }
.search-clear {
    background: none; border: none; color: var(--muted);
    cursor: pointer; font-size: 0.85rem; padding: 0.3rem;
    display: none; transition: color 0.2s;
}
.search-clear:hover { color: var(--pink); }
.search-clear.visible { display: block; }

.filter-tabs {
    display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.tab {
    background: var(--card); border: 1px solid var(--border);
    color: var(--muted); border-radius: 50px;
    padding: 0.45rem 1.1rem; font-size: 0.8rem; font-weight: 600;
    cursor: pointer; font-family: 'Poppins', sans-serif;
    transition: all 0.25s; white-space: nowrap;
}
.tab:hover { border-color: var(--violet); color: var(--text); }
.tab.active {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    border-color: transparent; color: white;
    box-shadow: 0 4px 15px rgba(124,58,237,0.35);
}

/* ── PRODUCTS GRID ── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.no-results {
    display: none; text-align: center;
    color: var(--muted); font-size: 1rem;
    padding: 3rem 0;
}
.no-results.visible { display: block; }

/* ── PRODUCT CARD (grid version) ── */
.product-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    display: flex; flex-direction: column;
    opacity: 0;
    cursor: pointer;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}
.product-item.hidden { display: none; }
.product-item:hover {
    border-color: rgba(124,58,237,0.5);
    box-shadow: 0 20px 50px rgba(124,58,237,0.18);
    transform: translateY(-6px);
}
.product-image {
    width: 100%; aspect-ratio: 1 / 1;
    overflow: hidden; background: #0d0d18;
    flex-shrink: 0;
}
.product-image img {
    width: 100%; height: 100%; display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-item:hover .product-image img { transform: scale(1.07); }
.product-info {
    padding: 1.3rem 1.3rem 1.1rem;
    display: flex; flex-direction: column; flex: 1;
}
.product-cat-badge {
    display: inline-block; font-size: 0.68rem; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    color: var(--violet); margin-bottom: 0.4rem;
}
.product-info h3 {
    font-size: 0.93rem; font-weight: 700;
    margin-bottom: 0.4rem; color: var(--text); line-height: 1.4;
}
.product-info p {
    font-size: 0.79rem; color: var(--muted);
    line-height: 1.6; margin-bottom: 1rem; flex: 1;
}
.product-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: auto;
}
.price {
    font-size: 1.05rem; font-weight: 800;
    background: linear-gradient(135deg, var(--pink), var(--violet));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.add-btn {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    border: none; cursor: pointer; color: white;
    font-size: 1rem; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: box-shadow 0.3s;
}
.add-btn:hover { box-shadow: 0 0 16px rgba(124,58,237,0.5); }

/* ── RESPONSIVE GRID ── */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .products-grid { grid-template-columns: 1fr; }
    .search-wrap { max-width: 100%; }
}

/* ── ABOUT ── */
.about { background: var(--bg); }
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 5rem; align-items: center;
}
.about-visual { opacity: 0; }
.about-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 22px; padding: 2.2rem;
    position: relative; overflow: hidden;
}
.about-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--purple), var(--pink), var(--cyan));
}
.about-emoji { font-size: 3.5rem; margin-bottom: 1rem; display: block; }
.about-card-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.about-card-text { color: var(--muted); font-size: 0.88rem; line-height: 1.7; }
.about-features {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0.8rem; margin-top: 1.4rem;
}
.feature-chip {
    background: rgba(124,58,237,0.1);
    border: 1px solid rgba(124,58,237,0.2);
    border-radius: 10px; padding: 0.55rem 0.9rem;
    font-size: 0.78rem; font-weight: 600; color: var(--violet);
    text-align: center; opacity: 0;
}
.about-text-side { opacity: 0; }
.about-text-side .section-label,
.about-text-side .section-title,
.about-text-side .section-sub { opacity: 1; transform: none; }
.about-list { list-style: none; margin-top: 1.8rem; display: flex; flex-direction: column; gap: 0.9rem; }
.about-list li {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: 1rem 1.1rem;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 12px; opacity: 0;
    transition: border-color 0.3s;
}
.about-list li:hover { border-color: rgba(124,58,237,0.4); }
.about-list .icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }
.about-list strong { display: block; font-size: 0.88rem; margin-bottom: 0.2rem; }
.about-list span { font-size: 0.8rem; color: var(--muted); }

/* ── CONTACT ── */
.contact { background: var(--surface); position: relative; overflow: hidden; }
.contact::before {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--pink), transparent);
}
.contact-header { margin-bottom: 3.5rem; }
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 3.5rem; align-items: start;
}
.contact-cards { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 14px; padding: 1.3rem 1.5rem;
    display: flex; align-items: center; gap: 1.1rem;
    opacity: 0;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.contact-card:hover {
    border-color: rgba(124,58,237,0.4);
    transform: translateX(5px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}
.contact-icon {
    width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
}
.contact-card h3 { font-size: 0.72rem; color: var(--muted); font-weight: 600; margin-bottom: 0.25rem; letter-spacing: 1px; text-transform: uppercase; }
.contact-card p, .contact-card a {
    font-size: 0.95rem; font-weight: 600; color: var(--text);
    text-decoration: none; transition: color 0.3s;
}
.contact-card a:hover { color: var(--violet); }
.map-link-small {
    display: inline-block; margin-top: 0.3rem;
    font-size: 0.78rem !important; font-weight: 500 !important;
    color: var(--violet) !important;
}
.map-wrap {
    border-radius: 18px; overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    opacity: 0;
}
.map-wrap iframe { display: block; filter: invert(0.88) hue-rotate(180deg) saturate(0.8); }

/* ── FOOTER ── */
footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 2.2rem 0; text-align: center;
}
footer p { color: var(--muted); font-size: 0.83rem; line-height: 2.2; }
footer span {
    background: linear-gradient(135deg, var(--pink), var(--violet));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; font-weight: 700;
}

/* ── ANIMATION INITIAL STATES ── */
#heroBadge, #heroTitle, .hero-title .line-1, .hero-title .line-2,
#heroSub, #heroCta, #heroStats, .stat, #scrollIndicator,
#productsLabel, #productsTitle, #productsSub,
#aboutVisual, #aboutText, .about-list li, .feature-chip,
#contactLabel, #contactTitle, .contact-card, .map-wrap {
    opacity: 0;
}
/* perspective for 3D card flips */
.carousel-wrapper { perspective: 1200px; }
.product-item { transform-style: preserve-3d; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .product-item { min-width: calc(50% - 11px); }
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-visual, .about-text-side { opacity: 1 !important; transform: none !important; }
    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
    .product-item { min-width: calc(100% - 0px); }
    nav .container { padding: 0.9rem 1.5rem; }
    .nav-links { gap: 1.2rem; }
    .nav-links a { font-size: 0.82rem; }
    .hero { padding: 100px 1.5rem 70px; }
    .hero-stats { gap: 0; }
    .stat { padding: 0 1.5rem; }
    .about-features { grid-template-columns: 1fr 1fr; }
    section { padding: 80px 0; }
    .container { padding: 0 1.5rem; }
}
@media (max-width: 480px) {
    .hero-stats { flex-direction: column; gap: 1.5rem; }
    .stat + .stat::before { display: none; }
    .stat { padding: 0; }
    .about-features { grid-template-columns: 1fr; }
    .nav-links { gap: 1rem; }
}
