:root {
    --bg-dark: #0a0a0c;
    --bg-darker: #050506;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-1: #6366f1; /* Indigo */
    --accent-2: #8b5cf6; /* Violet */
    --accent-3: #ec4899; /* Pink */
    --border-color: rgba(255, 255, 255, 0.1);
    --nav-height: 80px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Cursor (hidden on touch devices) */
@media (pointer: fine) {
    body { cursor: none; }
    a, button, input, textarea, select { cursor: none; }
    
    .custom-cursor {
        position: fixed; top: 0; left: 0; width: 8px; height: 8px; background: var(--accent-1);
        border-radius: 50%; pointer-events: none; z-index: 9999;
        transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s, background 0.2s;
    }
    
    .custom-cursor-follower {
        position: fixed; top: 0; left: 0; width: 40px; height: 40px;
        border: 1px solid rgba(99, 102, 241, 0.5); border-radius: 50%;
        pointer-events: none; z-index: 9998; transform: translate(-50%, -50%);
        transition: width 0.3s, height 0.3s, border-color 0.3s, transform 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    
    /* Hover states for cursor */
    .custom-cursor.hover { width: 0; height: 0; }
    .custom-cursor-follower.hover { width: 60px; height: 60px; border-color: var(--accent-3); background: rgba(236, 72, 153, 0.1); backdrop-filter: blur(2px); }
}

@media (pointer: coarse) {
    .custom-cursor, .custom-cursor-follower { display: none; }
}

/* Scroll Progress */
.scroll-progress-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 3px; background: transparent; z-index: 10000; pointer-events: none;
}
.scroll-progress-bar {
    height: 100%; width: 0%; background: linear-gradient(to right, var(--accent-1), var(--accent-3));
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.2; font-weight: 700; }
a { color: inherit; text-decoration: none; transition: color 0.3s ease; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-padding { padding: 8rem 0; }
.dark-bg { background-color: var(--bg-darker); }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

.text-gradient {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3), var(--accent-1));
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.badge {
    display: inline-block; padding: 0.35rem 1.2rem; border-radius: 9999px;
    background: rgba(99, 102, 241, 0.1); color: #a5b4fc; font-size: 0.875rem;
    font-weight: 600; margin-bottom: 1rem; border: 1px solid rgba(99, 102, 241, 0.2);
    letter-spacing: 0.5px; text-transform: uppercase;
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.75rem 1.5rem; border-radius: 9999px; font-weight: 600;
    font-family: var(--font-body); cursor: none; /* override for custom cursor */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: none; outline: none;
}
.btn-primary { background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); color: white; box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3); }
.btn-primary:hover { box-shadow: 0 6px 25px rgba(99, 102, 241, 0.6); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: white; border: 1px solid var(--border-color); }
.btn-secondary:hover { border-color: white; background: rgba(255, 255, 255, 0.05); transform: translateY(-2px); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.125rem; }
.btn-block { width: 100%; }

/* Navbar */
.navbar { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height); display: flex; align-items: center; z-index: 1000; transition: all 0.3s ease; }
.navbar.scrolled { background: rgba(10, 10, 12, 0.8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; }
.logo span { color: var(--text-secondary); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link { font-size: 0.95rem; font-weight: 500; color: var(--text-secondary); }
.nav-link:hover { color: var(--text-primary); }
.mobile-toggle { display: none; background: none; border: none; width: 30px; height: 20px; position: relative; z-index: 1001; }
.hamburger, .hamburger::before, .hamburger::after { content: ''; display: block; width: 100%; height: 2px; background: white; position: absolute; transition: all 0.3s ease; }
.hamburger { top: 50%; transform: translateY(-50%); }
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: var(--nav-height); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.gradient-sphere { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; animation: float 20s infinite alternate ease-in-out; }
.sphere-1 { width: 600px; height: 600px; background: radial-gradient(circle, var(--accent-1), transparent 70%); top: -100px; left: -100px; }
.sphere-2 { width: 500px; height: 500px; background: radial-gradient(circle, var(--accent-3), transparent 70%); bottom: -100px; right: -100px; animation-delay: -10s; }
.noise-overlay { position: absolute; inset: 0; background: 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'); opacity: 0.05; mix-blend-mode: overlay; pointer-events: none; }
.hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; z-index: 1; }
.hero-content { text-align: left; max-width: 600px; }
.hero-title { font-size: clamp(3rem, 5vw + 1rem, 5.5rem); letter-spacing: -2px; margin-bottom: 1.5rem; line-height: 1.1; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-secondary); margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: flex-start; }
.hero-artwork { position: relative; width: 100%; display: flex; justify-content: center; }
.floating-artwork { width: 100%; max-width: 500px; border-radius: 2rem; box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 40px rgba(99, 102, 241, 0.2); animation: customFloat 6s ease-in-out infinite; }

@keyframes customFloat { 0% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(2deg); } 100% { transform: translateY(0) rotate(0deg); } }

/* Marquee */
.marquee-wrapper { padding: 2rem 0; overflow: hidden; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); display: flex; }
.marquee { display: flex; width: max-content; animation: scrollText 30s linear infinite; }
.marquee-content { display: flex; align-items: center; justify-content: space-around; width: max-content; }
.marquee span { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; color: var(--text-secondary); letter-spacing: 2px; margin: 0 2rem; }
.marquee .dot { color: var(--accent-1); }
@keyframes scrollText { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-item { padding: 2rem; }
.stat-number { font-family: var(--font-heading); font-size: 4rem; font-weight: 900; background: linear-gradient(135deg, #fff, #a1a1aa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 0.5rem; line-height: 1; }
.stat-label { color: var(--text-secondary); font-size: 1.1rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

/* Enhanced Glassmorphism & Mouse Glow */
.value-card, .service-card, .item-content, .glass-panel, .pricing-card, .faq-item {
    position: relative; overflow: hidden; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 20px 40px rgba(0,0,0,0.3);
    border-radius: 1.5rem; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease;
}
.value-card::before, .service-card::before, .item-content::before, .glass-panel::before, .pricing-card::before, .faq-item::before {
    content: ""; position: absolute; inset: 0; background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.08), transparent 40%); z-index: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s ease;
}
.value-card:hover::before, .service-card:hover::before, .item-content:hover::before, .glass-panel:hover::before, .pricing-card:hover::before, .faq-item:hover::before { opacity: 1; }
.value-card > *, .service-card > *, .item-content > *, .glass-panel > *, .pricing-card > *, .faq-item > * { position: relative; z-index: 1; }

.section-header { text-align: center; margin-bottom: 4rem; max-width: 700px; margin-inline: auto; }
.section-header h2 { font-size: clamp(2rem, 3vw + 1rem, 3.5rem); margin-bottom: 1rem; letter-spacing: -1px; }
.section-header p { color: var(--text-secondary); font-size: 1.25rem; }

/* Services Bento Grid */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(280px, auto); gap: 2rem; }
.service-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.service-card:nth-child(4) { grid-column: span 3; }
.service-card:hover { transform: translateY(-5px) scale(1.01); border-color: rgba(99, 102, 241, 0.3); }
.card-glow { position: absolute; width: 300px; height: 300px; background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent 70%); top: -150px; right: -150px; border-radius: 50%; pointer-events: none; transition: all 0.7s ease; }
.service-card:hover .card-glow { transform: scale(1.8); background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 70%); }
.card-content { padding: 3rem; }
.card-content h3 { font-size: 2rem; margin-bottom: 1rem; background: linear-gradient(to right, #fff, #a1a1aa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.service-desc { color: var(--text-secondary); font-size: 1.1rem; }
.service-list { list-style: none; margin-top: 1.5rem; }
.service-list li { color: var(--text-secondary); margin-bottom: 0.75rem; padding-left: 1.5rem; position: relative; font-weight: 500; }
.service-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent-1); font-weight: bold; }

/* Work Showcase */
.work-card { display: grid; grid-template-columns: 1fr 1fr; padding: 0; overflow: hidden; align-items: center; }
.work-image-container { width: 100%; height: 100%; min-height: 400px; overflow: hidden; position: relative; }
.work-image { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform 0.5s ease; }
.work-card:hover .work-image { transform: scale(1.05); }
.work-info { padding: 4rem; }
.work-info h3 { font-size: 2.5rem; margin-bottom: 1rem; }
.work-info p { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 2rem; }
.work-tags { display: flex; gap: 1rem; flex-wrap: wrap; }
.work-tags span { padding: 0.5rem 1rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 9999px; font-size: 0.85rem; font-weight: 600; color: var(--accent-1); }

/* Pricing Grid */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: start; }
.pricing-card { padding: 3rem; text-align: left; }
.pricing-card.popular { border-color: var(--accent-1); transform: scale(1.05); background: rgba(99, 102, 241, 0.05); }
.pricing-card.popular:hover { transform: scale(1.05) translateY(-5px); }
.popular-badge { position: absolute; top: 0; right: 2rem; background: var(--accent-1); color: white; padding: 0.5rem 1rem; border-radius: 0 0 0.5rem 0.5rem; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }
.pricing-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.pricing-card .price { font-size: 2.5rem; font-weight: 800; font-family: var(--font-heading); color: white; margin-bottom: 1rem; }
.pricing-desc { color: var(--text-secondary); margin-bottom: 2rem; min-height: 3rem; }

/* FAQ Accordion */
.faq-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.faq-artwork { display: flex; justify-content: center; }
.faq-container { width: 100%; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { padding: 0; overflow: hidden; transition: all 0.3s ease; }
.faq-question { width: 100%; text-align: left; padding: 2rem; background: none; border: none; color: white; font-size: 1.25rem; font-family: var(--font-heading); font-weight: 600; display: flex; justify-content: space-between; align-items: center; cursor: none; }
.faq-icon { font-size: 1.5rem; font-weight: 400; transition: transform 0.3s ease; color: var(--accent-1); }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 2rem; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-item.active .faq-answer { max-height: 500px; padding: 0 2rem 2rem 2rem; }
.faq-answer p { color: var(--text-secondary); }

/* Forms & Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 2000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; padding: 1rem; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-container { position: relative; width: 100%; max-width: 600px; padding: 3rem; transform: translateY(20px); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.modal-overlay.active .modal-container { transform: translateY(0); }
.modal-close { position: absolute; top: 1.5rem; right: 1.5rem; background: transparent; border: none; color: white; font-size: 2rem; transition: color 0.3s; z-index: 10; cursor: none; }
.modal-close:hover { color: var(--accent-1); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--text-secondary); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 1rem; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border-color); border-radius: 0.5rem; color: white; font-family: var(--font-body); transition: all 0.3s ease; appearance: none; cursor: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-1); background: rgba(0, 0, 0, 0.5); box-shadow: 0 0 15px rgba(99, 102, 241, 0.2); }

/* Footer */
.footer { background: var(--bg-darker); padding: 4rem 0 2rem; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--text-secondary); }
.footer-links h4, .footer-social h4 { margin-bottom: 1.5rem; font-size: 1.1rem; }
.footer-links a, .footer-social a { display: block; color: var(--text-secondary); margin-bottom: 0.75rem; }
.footer-links a:hover, .footer-social a:hover { color: var(--accent-1); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid var(--border-color); color: var(--text-secondary); font-size: 0.875rem; }

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 900px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-content { text-align: center; margin-inline: auto; }
    .hero-actions { flex-direction: column; justify-content: center; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card:nth-child(1), .service-card:nth-child(4) { grid-column: span 1; grid-row: span 1; }
    .work-card { grid-template-columns: 1fr; }
    .work-info { padding: 2rem; }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card.popular { transform: none; }
    .pricing-card.popular:hover { transform: translateY(-5px); }
    .footer-grid { grid-template-columns: 1fr; }
    .faq-wrapper { grid-template-columns: 1fr; }
    .faq-artwork { order: -1; margin-bottom: 2rem; max-width: 300px; margin-inline: auto; }
}
@media (max-width: 768px) {
    .nav-links { position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0; background: var(--bg-dark); flex-direction: column; justify-content: center; transform: translateX(100%); transition: transform 0.3s ease; }
    .nav-links.active { transform: translateX(0); }
    .mobile-toggle { display: block; }
    .mobile-toggle.active .hamburger { background: transparent; }
    .mobile-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
    .mobile-toggle.active .hamburger::after { top: 0; transform: rotate(-45deg); }
    .stats-grid { grid-template-columns: 1fr; }
}
