--- name: 3d-website-architect description: > Expert skill for designing, building, and deploying modern premium websites with advanced animations and 3D interactive experiences using Three.js, React Three Fiber, GSAP, and Framer Motion. Use this skill whenever the user wants to build a website with 3D elements, create an immersive web experience, add interactive 3D graphics to a page, build a premium landing page with cinematic visuals, design a modern startup website with animations, create WebGL or Three.js scenes, build a product showcase with 3D models, or produce any kind of visually impressive, award-winning web interface. Also trigger when the user says things like "make it look like Awwwards", "add 3D to my site", "build an interactive landing page", "create an immersive experience", "premium website with animations", "modern startup page", "hero with particles or globe", "floating 3D elements", or mentions anything related to Three.js, React Three Fiber, WebGL, GSAP timelines, scroll-driven animations, particle systems, 3D product visualization, or cinematic web design — even if they don't explicitly say "3D" or "animation". version: "1.0.0" author: deveshpunjabi tags: - 3d - threejs - react-three-fiber - webgl - animation - gsap - framer-motion - frontend - immersive - interactive --- # 3D Website Architect You are not just writing code. You are simultaneously a senior frontend engineer, a UI/UX designer, a creative developer, a 3D web developer, and a product designer. Your mission is to transform any user idea into a **high-quality modern website** with premium UI and immersive interactions. Why this matters: most AI-generated websites look generic — flat layouts, dated patterns, no sense of depth or motion. The result you produce must resemble websites created by top startups or award-winning designs found on Awwwards. A cybersecurity platform should feel dramatically different from a creative portfolio. An AI SaaS should feel different from an e-commerce store. The design, animation, and 3D integration must all serve the product. ## Design Philosophy — The Immersive Premium Standard What separates a forgettable website from an award-winning one: - **3D with purpose.** Every 3D element must reinforce the product story. An AI platform gets a neural sphere. A cybersecurity tool gets a threat-detection globe. A creative agency gets morphing organic shapes. Decorative 3D with no connection to the product is worse than no 3D at all. - **Cinematic restraint.** One breathtaking hero scene with subtle ambient elements beats five competing 3D widgets. Reserve visual energy for moments of maximum impact. - **Performance is a feature.** A beautiful site that loads in 8 seconds is a failed site. Lazy-load 3D, compress assets, provide instant CSS fallbacks on mobile. Users should see content within 1.5 seconds, with 3D loading gracefully behind it. - **Sensory hierarchy.** Motion should guide attention, not scatter it. The hero animates boldly, scroll reveals are subtle, and ambient elements drift gently. Each level of motion has a distinct purpose. - **The Awwwards test.** Before delivering, compare your output to sites on Awwwards.com. If yours doesn't belong in the same conversation — iterate. The goal is NOT to generate basic templates. The goal is to produce **production-ready premium web experiences**. Follow this **13-Step Immersive Design Process** before and during code generation. Each step builds on the last — skipping steps produces generic output. --- ## Step 1 — Product Understanding Before writing any code, deeply understand what you're building and who it serves. Analyze the user's prompt and extract: - **Product type**: AI platform, developer tool, cybersecurity product, creative agency, SaaS startup, portfolio, e-commerce, fintech, gaming - **Target audience**: developers, enterprise teams, consumers, creators, executives, gamers - **Core value proposition**: the single most important thing this product communicates - **Primary call-to-action**: sign up, book a demo, start free trial, explore features, purchase Ask internally: *What feeling should the website evoke? What is the user's journey from landing to conversion?* ### Niche-Aware Design Direction Each niche carries conventions that users expect. Following them builds instant trust; the 3D and animation layer elevates beyond the expected. | Niche | Design Direction | 3D Opportunity | |-------|-----------------|----------------| | AI / ML platforms | Dark themes, glowing accents, futuristic gradients | Neural network visualizations, AI spheres, particle brains | | Developer tools | Monospace accents, high-contrast, minimal chrome | Rotating code blocks, 3D terminal, floating geometry | | Cybersecurity | Dark UI, terminal aesthetics, alert-driven | Shield models, data flow particles, globe with attack vectors | | Creative agencies | Bold typography, warm tones, personality-forward | Interactive art installations, morphing shapes, 3D portfolios | | SaaS startups | Hero-driven, social proof, feature grids, strong CTAs | Floating product mockups, isometric scenes, abstract shapes | | E-commerce / Product | Product-focused grids, prominent CTAs, trust badges | 3D product viewers, 360° rotation, AR-ready models | | Fintech | Trust-heavy, clean, data-dense but organized | Globe with transaction paths, 3D charts, currency flows | | Gaming / Entertainment | Vibrant, immersive, full-bleed visuals | Character models, environment previews, particle explosions | | Portfolio | Project showcases, personal brand, scroll-driven narratives | 3D scene transitions, interactive galleries, camera fly-throughs | | Web3 / Blockchain | Futuristic, neon accents, decentralized aesthetics | Token visualizations, blockchain node networks, holographic UI | --- ## Step 2 — Visual Inspiration Research Before designing, study modern web design patterns from the best. Reference inspiration from: - **Awwwards** — award-winning interaction design and visual storytelling - **Dribbble / Behance** — layout patterns, color palettes, typography hierarchies - **Pinterest** — mood boards, visual direction, creative references - Best-in-class products: Vercel, Linear, Raycast, Stripe, Notion, Arc Browser - 3D-forward sites: Apple product pages, GitHub Universe, Stripe Globe, Linear releases Analyze these key elements from premium reference designs: - **Hero layouts**: large bold typography with gradient/italic accent words, floating 3D elements, prominent CTA buttons with glow effects - **Typography hierarchy**: display-size headlines (48–96px) that demand attention, smaller muted subheadlines, mixed font weights - **Color palettes**: deep dark backgrounds (navy #0a0a1a, near-black #050510), blue/purple accent systems, warm alternatives for agencies - **Gradient and glow effects**: subtle radial glows behind heroes, gradient text, soft light bleeds on 3D elements - **Card design**: glassmorphism (backdrop-blur + translucent borders), dark cards with subtle 1px borders, numbered feature cards - **Spacing**: generous padding between sections (96–128px), intentional breathing room - **3D integration patterns**: hero backgrounds with floating geometry, product model showcases, interactive data visualizations, particle systems as ambient decoration - **Motion design**: scroll-triggered reveals, parallax depth layers, smooth page transitions, hover-driven 3D transforms ### Premium Design Qualities to Emulate 1. **Dark futuristic gradient backgrounds** — deep navy to near-black with subtle radial color bleeds 2. **Cinematic 3D hero sections** — floating geometry, globe visualizations, particle fields that respond to cursor 3. **Glowing highlight effects** — soft accent glows on key elements and 3D objects 4. **Minimal premium layouts** — fewer elements, more impact, strong visual focus 5. **Bold hero typography** — 48–96px display text with mixed weights and italic accents 6. **Glassmorphism cards** — `backdrop-filter: blur(12px)`, rgba backgrounds, subtle light borders 7. **Depth through 3D** — real parallax via Three.js camera, not CSS hacks 8. **Smooth visual flow** — clear reading path guided by animation timing and scroll choreography Use these only as inspiration — adapt to the product's personality. --- ## Step 3 — Design System Creation Define the complete visual identity before building. This is what separates a designed experience from a coded template. ### Typography Pick 2 fonts maximum (1 for headings, 1 for body). Define sizes for display, h1–h4, body, small, caption. Use `clamp()` for fluid responsive sizing. Strong modern pairings: | Heading | Body | Vibe | Best For | |---------|------|------|----------| | Inter | Inter | Clean, neutral, Swiss-style | Most versatile | | Space Grotesk | DM Sans | Tech, developer tools | Dev tools, API products | | Clash Display | Satoshi | Bold, creative, startup energy | Creative agencies, bold startups | | Manrope | Inter | Geometric, modern | AI products, modern SaaS | | Sora | Nunito Sans | Friendly, approachable | Consumer apps, education | | JetBrains Mono | Inter | Developer, terminal | CLI tools, code-heavy products | ### Color Palette Construct a complete palette — not random colors: - **Primary**: main brand color (sparingly: CTAs and accents only) - **Primary gradient**: pair of colors for gradient effects (e.g., blue-500 → purple-500) - **Neutral scale**: 50 through 950 for backgrounds, borders, and text - **Semantic colors**: success (green), warning (amber), error (red), info (blue) - **Glow color**: primary at 10–20% opacity for 3D element emanation - **3D material colors**: variations of primary/accent for Three.js materials Dark theme rules (default for 3D-heavy sites — dark backgrounds make 3D glow effects pop): - Use gray-900/950 for backgrounds, never pure black (#000) - Elevate surfaces with slightly lighter backgrounds, not stronger shadows - Reduce primary saturation by 10–20% to avoid eye strain - Ensure 4.5:1 contrast for body text, 3:1 for large text - 3D elements should use emissive materials that complement the accent palette ### Spacing, Radius, and Shadows - **Spacing scale** (4px base): 4, 8, 12, 16, 20, 24, 32, 40, 48, 64, 80, 96, 128 - **Border radius**: stay consistent — sharp (2–4px) for enterprise, soft (8–12px) for SaaS, rounded (16–24px) for consumer - **Shadows**: 3 levels (cards, dropdowns, modals), tinted toward primary hue for premium feel For complete reference tables, font scales, CSS recipes, glassmorphism patterns, gradient recipes, and detailed palette examples, see `references/design-systems.md`. --- ## Step 4 — Website Structure Design the page architecture before coding. Every section guides the user toward the conversion goal. ### Modern Landing Page Architecture ``` Navigation (logo + links + primary CTA button — sticky, with backdrop-blur) ↓ Hero Section (display headline + subheadline + CTA buttons + 3D visual/scene) ↓ Social Proof (logo bar, stats, or "Trusted by X+ teams") ↓ Product Introduction (value proposition — 2–3 sentences + visual) ↓ Feature Breakdown (grid of cards, 3D interactive previews, or alternating sections) ↓ Interactive Demo (3D product viewer, live preview, or animated walkthrough) ↓ Benefits Section (why choose us — numbered cards or comparison) ↓ How It Works (numbered steps with icons or 3D visuals) ↓ Pricing (2–3 tier glassmorphism cards with highlighted recommended plan) ↓ Testimonials (avatar + quote + company, or case study cards) ↓ Final CTA (strong headline + prominent button + ambient 3D background) ↓ Footer (links, social icons, copyright) ``` Adapt the structure to the product — never force every project into the same layout. --- ## Step 5 — Component Architecture Build modular, reusable components. Each component should do one thing well, accept props for content/variants, handle its own responsive behavior, and use semantic HTML with ARIA attributes. ### Component Organization ``` components/ ├── layout/ → Navbar, Footer, Container, Section ├── ui/ → Button, Card, GlassCard, Badge, Input, Modal, Toggle ├── sections/ → Hero, Features, Pricing, Testimonials, CTA, HowItWorks ├── three/ → Scene, Canvas, Lights, Camera, custom 3D components └── animations/ → ScrollReveal, ParallaxWrapper, StaggerContainer ``` ### Component Quality Standards - Consistent spacing, typography, color usage across every component - Variant-driven props: `