/* ============================================
   POOJA ELECTRONICS - PREMIUM DESIGN SYSTEM
   ============================================ */

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

/* --- Custom Properties --- */
:root {
    --color-bg: #0a0a0a;
    --color-bg-elevated: #111111;
    --color-bg-card: #161616;
    --color-bg-card-hover: #1a1a1a;
    --color-surface: #1e1e1e;
    --color-border: #2a2a2a;
    --color-border-light: #333333;
    --color-text-primary: #f5f5f5;
    --color-text-secondary: #a0a0a0;
    --color-text-muted: #666666;
    --color-accent: #c9a84c;
    --color-accent-light: #dfc06e;
    --color-accent-dark: #a68a3a;
    --color-white: #ffffff;
    --color-black: #000000;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 48px rgba(0,0,0,0.5);
    --shadow-gold: 0 4px 30px rgba(201,168,76,0.15);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --max-width: 1280px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- Preloader --- */
.preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--color-black); z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 24px;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo {
    font-family: var(--font-display); font-size: 2.5rem;
    color: var(--color-accent); letter-spacing: 4px;
    animation: preloaderPulse 1.5s ease-in-out infinite;
}
.preloader-bar {
    width: 200px; height: 2px; background: var(--color-border);
    border-radius: 2px; overflow: hidden;
}
.preloader-bar-fill {
    width: 0; height: 100%; background: var(--color-accent);
    animation: preloaderFill 2s ease-in-out forwards;
}
@keyframes preloaderPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes preloaderFill { to { width: 100%; } }

/* --- Premium Custom Cursor --- */
* { cursor: none !important; }

.cursor-crosshair {
    position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%); width: 40px; height: 40px;
}
/* Vertical line */
.cursor-crosshair::before {
    content: ''; position: absolute; left: 50%; top: 0;
    width: 1px; height: 100%; background: var(--color-accent);
    transform: translateX(-50%);
    transition: height var(--transition-smooth), opacity var(--transition-smooth);
}
/* Horizontal line */
.cursor-crosshair::after {
    content: ''; position: absolute; top: 50%; left: 0;
    width: 100%; height: 1px; background: var(--color-accent);
    transform: translateY(-50%);
    transition: width var(--transition-smooth), opacity var(--transition-smooth);
}
/* Center diamond */
.cursor-center {
    position: absolute; top: 50%; left: 50%; width: 5px; height: 5px;
    background: var(--color-accent); transform: translate(-50%, -50%) rotate(45deg);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Hover: crosshair arms shrink, diamond grows */
.cursor-crosshair.hovered::before { height: 0; opacity: 0; }
.cursor-crosshair.hovered::after { width: 0; opacity: 0; }
.cursor-crosshair.hovered .cursor-center {
    width: 8px; height: 8px; border-radius: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
}

/* Trailing ring */
.cursor-ring {
    position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998;
    width: 48px; height: 48px; border-radius: 50%;
    border: 1.5px solid var(--color-accent);
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: width 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
                height 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.3s ease, opacity 0.3s ease,
                background 0.3s ease;
}
.cursor-ring.hovered {
    width: 72px; height: 72px;
    background: rgba(201,168,76,0.08);
    border-color: rgba(201,168,76,0.7);
}
.cursor-ring.clicking {
    width: 36px; height: 36px;
    border-color: var(--color-accent-light);
}

/* --- Header / Navigation --- */
.header {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height);
    z-index: 1000; transition: all var(--transition-smooth);
    display: flex; align-items: center;
}
.header.scrolled {
    background: rgba(10,10,10,0.95); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}
.header .container {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-text {
    font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
    color: var(--color-accent); letter-spacing: 2px;
}
.logo-sub {
    font-family: var(--font-body); font-size: 0.65rem; font-weight: 400;
    color: var(--color-text-muted); letter-spacing: 3px; text-transform: uppercase;
    display: block; margin-top: -2px;
}
.nav { display: flex; align-items: center; gap: 36px; }
.nav-link {
    font-size: 0.85rem; font-weight: 500; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--color-text-secondary);
    position: relative; padding: 8px 0;
}
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 1px; background: var(--color-accent);
    transition: width var(--transition-smooth);
}
.nav-link:hover { color: var(--color-accent); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--color-accent); }
.nav-link.active::after { width: 100%; }

.nav-cta {
    padding: 10px 28px; border: 1px solid var(--color-accent);
    color: var(--color-accent); font-size: 0.8rem; font-weight: 600;
    letter-spacing: 1.5px; text-transform: uppercase;
    transition: all var(--transition-smooth);
}
.nav-cta:hover {
    background: var(--color-accent); color: var(--color-black);
}

/* Mobile Menu Toggle */
.menu-toggle { display: none; flex-direction: column; gap: 6px; cursor: pointer; padding: 8px; }
.menu-toggle span {
    width: 28px; height: 2px; background: var(--color-text-primary);
    transition: all var(--transition-smooth);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0; transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-80px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(80px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.85); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Staggered children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0.1s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.2s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.3s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.4s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.5s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.6s; }

/* --- Section Styles --- */
.section { padding: 120px 0; position: relative; overflow: hidden; }
.section-label {
    font-family: var(--font-body); font-size: 0.75rem; font-weight: 600;
    letter-spacing: 4px; text-transform: uppercase; color: var(--color-accent);
    margin-bottom: 16px; display: inline-block;
}
.section-title {
    font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700; color: var(--color-text-primary); line-height: 1.2;
    margin-bottom: 20px;
}
.section-subtitle {
    font-size: 1.05rem; color: var(--color-text-secondary);
    max-width: 600px; line-height: 1.8;
}
.section-header { text-align: center; margin-bottom: 72px; }
.section-header .section-subtitle { margin: 0 auto; }
.section-divider {
    width: 60px; height: 1px; background: var(--color-accent);
    margin: 20px auto 0; display: block;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    position: relative; padding-top: var(--header-height);
    overflow: hidden;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}
.hero-bg img {
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(0.25);
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 1;
}
.hero-content {
    position: relative; z-index: 2; max-width: 700px;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 20px; border: 1px solid var(--color-border-light);
    margin-bottom: 32px; font-size: 0.75rem; font-weight: 500;
    letter-spacing: 3px; text-transform: uppercase; color: var(--color-accent);
    animation: heroFadeIn 1s ease 0.5s both;
}
.hero-badge-dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent);
    animation: heroBlinkDot 2s ease-in-out infinite;
}
@keyframes heroBlinkDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero-title {
    font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 700; line-height: 1.1; margin-bottom: 24px;
    color: var(--color-white); animation: heroFadeIn 1s ease 0.7s both;
}
.hero-title .accent { color: var(--color-accent); }
.hero-description {
    font-size: 1.1rem; color: var(--color-text-secondary);
    line-height: 1.9; margin-bottom: 40px; max-width: 540px;
    animation: heroFadeIn 1s ease 0.9s both;
}
.hero-actions {
    display: flex; gap: 16px; flex-wrap: wrap;
    animation: heroFadeIn 1s ease 1.1s both;
}
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 36px; font-size: 0.8rem; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase;
    transition: all var(--transition-smooth); position: relative; overflow: hidden;
}
.btn-primary {
    background: var(--color-accent); color: var(--color-black);
    border: 1px solid var(--color-accent);
}
.btn-primary:hover {
    background: var(--color-accent-light); border-color: var(--color-accent-light);
    transform: translateY(-2px); box-shadow: var(--shadow-gold);
}
.btn-outline {
    background: transparent; color: var(--color-text-primary);
    border: 1px solid var(--color-border-light);
}
.btn-outline:hover {
    border-color: var(--color-accent); color: var(--color-accent);
    transform: translateY(-2px);
}
.btn-icon { font-size: 1rem; transition: transform var(--transition-fast); }
.btn:hover .btn-icon { transform: translateX(4px); }

/* --- Hero scroll indicator --- */
.hero-scroll {
    position: absolute; bottom: 40px; left: 50%;
    transform: translateX(-50%); z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    animation: heroFadeIn 1s ease 1.5s both;
}
.hero-scroll-text {
    font-size: 0.65rem; letter-spacing: 3px; text-transform: uppercase;
    color: var(--color-text-muted); writing-mode: vertical-lr;
}
.hero-scroll-line {
    width: 1px; height: 60px; background: var(--color-border);
    position: relative; overflow: hidden;
}
.hero-scroll-line::after {
    content: ''; position: absolute; top: -100%; left: 0;
    width: 100%; height: 50%; background: var(--color-accent);
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0% { top: -50%; } 100% { top: 150%; }
}

/* --- Stats Bar --- */
.stats-bar {
    background: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 48px 0;
}
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
    text-align: center;
}
.stat-item { position: relative; }
.stat-item:not(:last-child)::after {
    content: ''; position: absolute; right: 0; top: 50%;
    transform: translateY(-50%); width: 1px; height: 40px;
    background: var(--color-border);
}
.stat-number {
    font-family: var(--font-display); font-size: 2.8rem; font-weight: 700;
    color: var(--color-accent); margin-bottom: 4px;
}
.stat-label {
    font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase;
    color: var(--color-text-muted);
}
