Run details
- Model
- inclusionai/lingsante-3.1-air-vl
- Route
- OpenRouter API
- Served by
- DeepInfra
- Effort
- model default
- Limits
- 60 min · 32,768 output tokens (model max)
- Date
- 26 Nov 2026
- Time
- 2 min 5 s
- Size
- 30 kB
- Tokens
- 110 in, 10,681 out (423 thinking)
- List price
- $0.002 at today's price ($0.06 in / $0.18 out per M)
- Paid
- $0.004
Prompt
Build the landing page for Lumen Cycles, a Copenhagen workshop that builds custom cargo bikes to order. Make it look like a real brand you would trust with 4,000 euros. It must be one complete, self-contained HTML file: inline all CSS and JavaScript, and make no network requests of any kind (no CDNs, web fonts or remote images). Reply with the file in a single ```html code block.
Source
30 kB 812 lines Raw
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Lumen Cycles | Custom Cargo Bikes, Copenhagen</title>
<style>
/* CSS Reset & Base Styles */
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
--color-primary: #1a3c34;
--color-primary-light: #2a5c4f;
--color-accent: #c9a86c;
--color-accent-light: #e6d2a0;
--color-text: #333333;
--color-text-light: #f8f8f8;
--color-bg: #faf9f7;
--color-bg-alt: #f0eeea;
--font-heading: 'Georgia', 'Times New Roman', serif;
--font-body: 'Helvetica Neue', Arial, sans-serif;
--transition: all 0.3s ease;
--shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
html {
scroll-behavior: smooth;
}
body {
font-family: var(--font-body);
color: var(--color-text);
background-color: var(--color-bg);
line-height: 1.6;
}
h1, h2, h3, h4 {
font-family: var(--font-heading);
font-weight: normal;
line-height: 1.2;
}
a {
color: inherit;
text-decoration: none;
}
img, svg {
max-width: 100%;
display: block;
}
.container {
width: 90%;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
.btn {
display: inline-block;
padding: 14px 28px;
background-color: var(--color-primary);
color: var(--color-text-light);
border: none;
border-radius: 0;
font-family: var(--font-body);
font-size: 1rem;
cursor: pointer;
transition: var(--transition);
text-transform: uppercase;
letter-spacing: 1px;
position: relative;
overflow: hidden;
}
.btn:hover {
background-color: var(--color-primary-light);
transform: translateY(-2px);
box-shadow: var(--shadow);
}
.btn-accent {
background-color: var(--color-accent);
}
.btn-accent:hover {
background-color: #b8955a;
}
/* Header & Navigation */
header {
background-color: rgba(255, 255, 255, 0.98);
position: fixed;
width: 100%;
top: 0;
z-index: 1000;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 0;
}
.logo {
display: flex;
align-items: center;
gap: 12px;
}
.logo-mark {
width: 40px;
height: 40px;
}
.logo-text {
font-family: var(--font-heading);
font-size: 1.5rem;
font-weight: bold;
color: var(--color-primary);
}
.nav-links {
display: flex;
gap: 30px;
list-style: none;
}
.nav-links a {
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 1px;
position: relative;
padding-bottom: 5px;
}
.nav-links a::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 1px;
background-color: var(--color-accent);
transition: var(--transition);
}
.nav-links a:hover::after {
width: 100%;
}
.menu-toggle {
display: none;
background: none;
border: none;
font-size: 1.5rem;
color: var(--color-primary);
cursor: pointer;
}
/* Hero Section */
.hero {
padding: 160px 0 80px;
background: linear-gradient(to right, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}
.hero-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 60px;
align-items: center;
}
.hero-text h1 {
font-size: 3.5rem;
margin-bottom: 20px;
color: var(--color-primary);
}
.hero-text p {
font-size: 1.2rem;
margin-bottom: 30px;
max-width: 500px;
}
.hero-image {
position: relative;
border-radius: 8px;
overflow: hidden;
box-shadow: var(--shadow);
}
/* SVG Bike Illustration */
.bike-illustration {
width: 100%;
height: 400px;
background-color: var(--color-bg-alt);
}
/* Philosophy Section */
.philosophy {
padding: 100px 0;
background-color: var(--color-primary);
color: var(--color-text-light);
}
.philosophy-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 40px;
}
.philosophy-item {
padding: 30px;
background-color: rgba(255, 255, 255, 0.05);
border-left: 3px solid var(--color-accent);
}
.philosophy-item h3 {
font-size: 1.5rem;
margin-bottom: 15px;
color: var(--color-accent);
}
/* Customization Section */
.customize {
padding: 100px 0;
}
.section-title {
text-align: center;
margin-bottom: 60px;
}
.section-title h2 {
font-size: 2.5rem;
color: var(--color-primary);
margin-bottom: 15px;
}
.options-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 30px;
}
.option-card {
background-color: white;
padding: 30px;
border-radius: 4px;
box-shadow: var(--shadow);
transition: var(--transition);
}
.option-card:hover {
transform: translateY(-5px);
}
.option-icon {
width: 50px;
height: 50px;
margin-bottom: 20px;
}
.option-card h4 {
font-size: 1.3rem;
margin-bottom: 10px;
color: var(--color-primary);
}
/* Portfolio Section */
.portfolio {
padding: 100px 0;
background-color: var(--color-bg-alt);
}
.portfolio-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 25px;
}
.portfolio-item {
height: 300px;
border-radius: 4px;
overflow: hidden;
position: relative;
background-color: var(--color-primary);
display: flex;
align-items: center;
justify-content: center;
}
.portfolio-overlay {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: linear-gradient(to top, rgba(26, 60, 52, 0.9), transparent);
padding: 20px;
color: white;
transform: translateY(100%);
transition: var(--transition);
}
.portfolio-item:hover .portfolio-overlay {
transform: translateY(0);
}
/* Contact Section */
.contact {
padding: 100px 0;
}
.contact-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 60px;
}
.contact-info h3 {
font-size: 1.8rem;
margin-bottom: 20px;
color: var(--color-primary);
}
.contact-details {
margin-bottom: 30px;
}
.contact-details p {
margin-bottom: 10px;
display: flex;
align-items: center;
gap: 10px;
}
.contact-form input,
.contact-form textarea {
width: 100%;
padding: 15px;
margin-bottom: 20px;
border: 1px solid #ddd;
border-radius: 0;
font-family: var(--font-body);
background-color: white;
}
.contact-form textarea {
height: 150px;
resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
outline: none;
border-color: var(--color-accent);
}
/* Footer */
footer {
background-color: var(--color-primary);
color: var(--color-text-light);
padding: 60px 0 30px;
}
.footer-content {
display: grid;
grid-template-columns: 2fr 1fr 1fr;
gap: 40px;
margin-bottom: 40px;
}
.footer-logo {
font-family: var(--font-heading);
font-size: 1.8rem;
margin-bottom: 20px;
}
.footer-links h4, .footer-contact h4 {
margin-bottom: 20px;
color: var(--color-accent);
}
.footer-links ul {
list-style: none;
}
.footer-links li {
margin-bottom: 10px;
}
.footer-links a {
opacity: 0.8;
transition: var(--transition);
}
.footer-links a:hover {
opacity: 1;
color: var(--color-accent);
}
.social-icons {
display: flex;
gap: 15px;
margin-top: 20px;
}
.social-icon {
width: 36px;
height: 36px;
background-color: rgba(255, 255, 255, 0.1);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: var(--transition);
}
.social-icon:hover {
background-color: var(--color-accent);
transform: translateY(-3px);
}
.copyright {
text-align: center;
padding-top: 30px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
font-size: 0.9rem;
opacity: 0.7;
}
/* Responsive */
@media (max-width: 992px) {
.hero-content,
.contact-grid {
grid-template-columns: 1fr;
gap: 40px;
}
.hero-text h1 {
font-size: 2.8rem;
}
.footer-content {
grid-template-columns: 1fr 1fr;
}
}
@media (max-width: 768px) {
.menu-toggle {
display: block;
}
.nav-links {
position: fixed;
top: 80px;
left: 0;
right: 0;
background-color: white;
flex-direction: column;
align-items: center;
padding: 20px 0;
box-shadow: var(--shadow);
transform: translateY(-100%);
opacity: 0;
transition: var(--transition);
z-index: -1;
}
.nav-links.active {
transform: translateY(0);
opacity: 1;
}
.hero-text h1 {
font-size: 2.2rem;
}
.footer-content {
grid-template-columns: 1fr;
gap: 30px;
}
}
</style>
</head>
<body>
<!-- Header -->
<header>
<div class="container">
<nav>
<a href="#" class="logo">
<svg class="logo-mark" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="50" cy="50" r="48" stroke="#1a3c34" stroke-width="2"/>
<path d="M30 70 L50 30 L70 70" stroke="#c9a86c" stroke-width="3" fill="none"/>
<circle cx="50" cy="20" r="5" fill="#1a3c34"/>
</svg>
<span class="logo-text">Lumen Cycles</span>
</a>
<button class="menu-toggle" id="menuToggle">☰</button>
<ul class="nav-links" id="navLinks">
<li><a href="#philosophy">Philosophy</a></li>
<li><a href="#customize">Customize</a></li>
<li><a href="#portfolio">Portfolio</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
</div>
</header>
<!-- Hero Section -->
<section class="hero">
<div class="container">
<div class="hero-content">
<div class="hero-text">
<h1>Bikes Built for Your Life</h1>
<p>Handcrafted cargo bicycles, built to order in our Copenhagen workshop. Each bike is engineered for your specific needs, blending Danish design with uncompromising quality.</p>
<a href="#contact" class="btn btn-accent">Start Your Commission</a>
</div>
<div class="hero-image">
<svg class="bike-illustration" viewBox="0 0 800 400" xmlns="http://www.w3.org/2000/svg">
<!-- Simplified Bike SVG Illustration -->
<rect x="0" y="0" width="800" height="400" fill="#f0eeea"/>
<path d="M150 300 Q 150 250, 200 250 L 400 250 Q 450 250, 450 300" stroke="#1a3c34" stroke-width="8" fill="none"/>
<circle cx="200" cy="300" r="60" fill="none" stroke="#1a3c34" stroke-width="6"/>
<circle cx="400" cy="300" r="60" fill="none" stroke="#1a3c34" stroke-width="6"/>
<rect x="220" y="150" width="200" height="120" rx="10" fill="#c9a86c" opacity="0.8"/>
<rect x="240" y="170" width="160" height="80" rx="5" fill="#faf9f7"/>
<path d="M200 300 L 280 180 L 380 180 L 450 300" stroke="#1a3c34" stroke-width="6" fill="none"/>
<circle cx="350" cy="200" r="20" fill="#1a3c34"/>
<rect x="330" y="180" width="40" height="20" fill="#1a3c34"/>
</svg>
</div>
</div>
</div>
</section>
<!-- Philosophy Section -->
<section class="philosophy" id="philosophy">
<div class="container">
<div class="philosophy-grid">
<div class="philosophy-item">
<h3>Danish Craftsmanship</h3>
<p>Every weld, every joint, every finish is executed by hand in our Østerbro workshop. We build fewer than 50 bikes per year, ensuring each receives the attention to detail that justifies a lifetime of use.</p>
</div>
<div class="philosophy-item">
<h3>Engineered for Purpose</h3>
<p>Whether you're transporting children, cargo, or both, we design around your specific requirements. Your bike isn't just a vehicle—it's a tailored solution for your daily life.</p>
</div>
<div class="philosophy-item">
<h3>Transparent Process</h3>
<p>From the first sketch to the final test ride, you'll understand every decision. Fixed pricing, documented materials, and open communication—we build trust as carefully as we build bikes.</p>
</div>
</div>
</div>
</section>
<!-- Customization Section -->
<section class="customize" id="customize">
<div class="container">
<div class="section-title">
<h2>Tailor Every Detail</h2>
<p>Configure your perfect cargo bicycle</p>
</div>
<div class="options-grid">
<div class="option-card">
<svg class="option-icon" viewBox="0 0 50 50">
<rect x="5" y="15" width="40" height="25" fill="none" stroke="#1a3c34" stroke-width="2"/>
<path d="M10 40 L15 25 L35 25 L40 40" fill="none" stroke="#1a3c34" stroke-width="2"/>
<circle cx="15" cy="25" r="3" fill="#c9a86c"/>
<circle cx="35" cy="25" r="3" fill="#c9a86c"/>
</svg>
<h4>Cargo Configuration</h4>
<p>Open bed, closed box, bench seating, or flat platform. Choose the layout that matches how you'll use it.</p>
</div>
<div class="option-card">
<svg class="option-icon" viewBox="0 0 50 50">
<circle cx="25" cy="25" r="15" fill="none" stroke="#1a3c34" stroke-width="2"/>
<path d="M25 10 L25 40 M10 25 L40 25" stroke="#1a3c34" stroke-width="2"/>
</svg>
<h4>Frame Geometry</h4>
<p>Standard, low-rider, or long-tail. We calculate geometry for your weight, cargo, and riding style.</p>
</div>
<div class="option-card">
<svg class="option-icon" viewBox="0 0 50 50">
<path d="M10 40 Q25 10, 40 40" fill="none" stroke="#1a3c34" stroke-width="2"/>
<circle cx="25" cy="40" r="3" fill="#c9a86c"/>
</svg>
<h4>Material & Finish</h4>
<p>Select from Scandinavian steel, titanium, or aluminum. Choose powder coat, anodized, or raw metal finish.</p>
</div>
<div class="option-card">
<svg class="option-icon" viewBox="0 0 50 50">
<rect x="15" y="10" width="20" height="30" rx="2" fill="none" stroke="#1a3c34" stroke-width="2"/>
<path d="M20 20 L30 20 M20 30 L30 30" stroke="#1a3c34" stroke-width="2"/>
</svg>
<h4>Component Selection</h4>
<p>Gates Carbon Drive, Rohloff hub, or standard components. Urban or all-terrain specification.</p>
</div>
</div>
</div>
</section>
<!-- Portfolio Section -->
<section class="portfolio" id="portfolio">
<div class="container">
<div class="section-title">
<h2>Recent Commissions</h2>
<p>Examples of our custom builds for Copenhagen clients</p>
</div>
<div class="portfolio-grid">
<div class="portfolio-item">
<svg viewBox="0 0 300 200" style="width:80%;height:80%;">
<rect width="300" height="200" fill="#2a5c4f"/>
<path d="M50 150 L100 100 L200 100 L250 150" stroke="#c9a86c" stroke-width="4" fill="none"/>
<circle cx="100" cy="150" r="30" fill="none" stroke="#c9a86c" stroke-width="3"/>
<circle cx="200" cy="150" r="30" fill="none" stroke="#c9a86c" stroke-width="3"/>
<rect x="110" y="60" width="80" height="50" rx="5" fill="#c9a86c"/>
</svg>
<div class="portfolio-overlay">
<h4>The Family Hauler</h4>
<p>Twin-bench configuration for two children with weatherproof canopy</p>
</div>
</div>
<div class="portfolio-item">
<svg viewBox="0 0 300 200" style="width:80%;height:80%;">
<rect width="300" height="200" fill="#1a3c34"/>
<path d="M60 140 L120 100 L180 100 L240 140" stroke="#c9a86c" stroke-width="4" fill="none"/>
<circle cx="120" cy="140" r="30" fill="none" stroke="#c9a86c" stroke-width="3"/>
<circle cx="180" cy="140" r="30" fill="none" stroke="#c9a86c" stroke-width="3"/>
<rect x="120" y="70" width="60" height="60" fill="none" stroke="#c9a86c" stroke-width="3"/>
</svg>
<div class="portfolio-overlay">
<h4>The Trader</h4>
<p>Heavy-duty flatbed with locking toolbox for market vendor</p>
</div>
</div>
<div class="portfolio-item">
<svg viewBox="0 0 300 200" style="width:80%;height:80%;">
<rect width="300" height="200" fill="#f0eeea"/>
<path d="M70 130 L130 90 L170 90 L230 130" stroke="#1a3c34" stroke-width="4" fill="none"/>
<circle cx="130" cy="130" r="30" fill="none" stroke="#1a3c34" stroke-width="3"/>
<circle cx="170" cy="130" r="30" fill="none" stroke="#1a3c34" stroke-width="3"/>
<rect x="120" y="60" width="60" height="40" rx="3" fill="#c9a86c"/>
</svg>
<div class="portfolio-overlay">
<h4>The Urban Commuter</h4>
<p>Lightweight city cargo with integrated lighting and lock system</p>
</div>
</div>
</div>
</div>
</section>
<!-- Contact Section -->
<section class="contact" id="contact">
<div class="container">
<div class="contact-grid">
<div class="contact-info">
<h3>Begin Your Custom Build</h3>
<p>We welcome a limited number of commissions each month. The process begins with a consultation where we understand your needs and provide a detailed proposal.</p>
<div class="contact-details">
<p><strong>Workshop:</strong> Østerbrogade 45, 2100 Copenhagen Ø</p>
<p><strong>Email:</strong> commissions@lumencycles.dk</p>
<p><strong>Phone:</strong> +45 33 12 45 67</p>
<p><strong>Hours:</strong> Tuesday–Friday, 10:00–17:00</p>
</div>
<p>A typical build timeline is 8-12 weeks from consultation to delivery, with an investment starting at €4,000.</p>
</div>
<form class="contact-form" id="contactForm">
<input type="text" name="name" placeholder="Your Name" required>
<input type="email" name="email" placeholder="Email Address" required>
<input type="text" name="subject" placeholder="Subject">
<textarea name="message" placeholder="Tell us about your needs and how you plan to use your cargo bike..." required></textarea>
<button type="submit" class="btn">Request Consultation</button>
</form>
</div>
</div>
</section>
<!-- Footer -->
<footer>
<div class="container">
<div class="footer-content">
<div class="footer-about">
<div class="footer-logo">Lumen Cycles</div>
<p>Handcrafted cargo bicycles built to order in Copenhagen. Each bike is a collaboration between our master builders and you—the rider.</p>
</div>
<div class="footer-links">
<h4>Explore</h4>
<ul>
<li><a href="#philosophy">Our Philosophy</a></li>
<li><a href="#customize">Customization</a></li>
<li><a href="#portfolio">Portfolio</a></li>
<li><a href="#contact">Commission</a></li>
</ul>
</div>
<div class="footer-contact">
<h4>Connect</h4>
<ul>
<li><a href="mailto:commissions@lumencycles.dk">Email</a></li>
<li><a href="tel:+4533124567">Phone</a></li>
<li><a href="#">Visit Workshop</a></li>
</ul>
<div class="social-icons">
<a href="#" class="social-icon">
<svg width="18" height="18" fill="white" viewBox="0 0 24 24">
<path d="M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"/>
</svg>
</a>
<a href="#" class="social-icon">
<svg width="18" height="18" fill="white" viewBox="0 0 24 24">
<path d="M9 8h-3v4h3v12h5v-12h3.642l.358-4h-4v-1.667c0-.955.192-1.333 1.115-1.333h2.885v-5h-3.808c-3.596 0-5.192 1.583-5.192 4.615v3.385z"/>
</svg>
</a>
<a href="#" class="social-icon">
<svg width="18" height="18" fill="white" viewBox="0 0 24 24">
<path d="M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"/>
</svg>
</a>
</div>
</div>
</div>
<div class="copyright">
<p>© 2023 Lumen Cycles. All rights reserved. Crafted in Copenhagen.</p>
</div>
</div>
</footer>
<script>
// Mobile Menu Toggle
const menuToggle = document.getElementById('menuToggle');
const navLinks = document.getElementById('navLinks');
menuToggle.addEventListener('click', () => {
navLinks.classList.toggle('active');
menuToggle.textContent = navLinks.classList.contains('active') ? '✕' : '☰';
});
// Close mobile menu when clicking a link
document.querySelectorAll('.nav-links a').forEach(link => {
link.addEventListener('click', () => {
navLinks.classList.remove('active');
menuToggle.textContent = '☰';
});
});
// Contact Form Handling
const contactForm = document.getElementById('contactForm');
contactForm.addEventListener('submit', function(e) {
e.preventDefault();
// Form validation and submission feedback
const name = this.name.value.trim();
const email = this.email.value.trim();
const message = this.message.value.trim();
if (name && email && message) {
// Simulate form submission
const submitBtn = this.querySelector('button[type="submit"]');
const originalText = submitBtn.textContent;
submitBtn.textContent = 'Sending...';
submitBtn.disabled = true;
setTimeout(() => {
alert('Thank you for your commission request. We will contact you within 48 hours to schedule your consultation.');
contactForm.reset();
submitBtn.textContent = originalText;
submitBtn.disabled = false;
}, 1500);
} else {
alert('Please fill in all required fields.');
}
});
// Smooth scrolling for anchor links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function(e) {
e.preventDefault();
const targetId = this.getAttribute('href');
if(targetId === '#') return;
const targetElement = document.querySelector(targetId);
if(targetElement) {
window.scrollTo({
top: targetElement.offsetTop - 80,
behavior: 'smooth'
});
}
});
});
// Header shadow on scroll
const header = document.querySelector('header');
window.addEventListener('scroll', () => {
if (window.scrollY > 50) {
header.style.boxShadow = '0 2px 15px rgba(0, 0, 0, 0.1)';
} else {
header.style.boxShadow = '0 2px 10px rgba(0, 0, 0, 0.05)';
}
});
</script>
</body>
</html>

