:root {
  --bg1: #0a0a0a;
  --bg2: #111111;
  --fg: #ffffff;
  --muted: #888888;
  --accent: #ffffff;
  --accent-2: #cccccc;
  --card: rgba(255,255,255,0.05);
  --blur: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,0.5);
  --border: rgba(255,255,255,0.12);
}
[data-theme="light"] {
  --bg1: #ffffff;
  --bg2: #f5f5f5;
  --fg: #0a0a0a;
  --muted: #555555;
  --accent: #0a0a0a;
  --accent-2: #333333;
  --card: rgba(0,0,0,0.03);
  --shadow: 0 10px 30px rgba(0,0,0,0.1);
  --border: rgba(0,0,0,0.1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--fg); background: var(--bg1); overflow-x: hidden;
}

/* Clean gradient background */
.bg {
  position: fixed; inset: 0; z-index: -2;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(255,255,255,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(255,255,255,0.02) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
}

/* Particles canvas */
#particles {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
}

.nav {
  position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px; backdrop-filter: blur(var(--blur)); background: var(--card);
  border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  z-index: 100;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.links { display: flex; align-items: center; gap: 18px; }
.links a { color: var(--fg); text-decoration: none; opacity: 0.8; font-weight: 500; transition: opacity 0.2s; }
.links a:hover { opacity: 1; }
#themeToggle { border: 1px solid var(--border); background: transparent; color: var(--fg); padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 1rem; transition: background 0.2s; }
#themeToggle:hover { background: var(--card); }

.container { max-width: 1100px; margin: 0 auto; padding: 80px 20px 120px; }

.hero { text-align: center; margin: 80px 0 60px; }
.hero h1 { font-size: clamp(2.5rem, 8vw, 5rem); margin: 0 0 20px; line-height: 1; font-weight: 800; letter-spacing: 2px; }
.hero p { font-size: clamp(1rem, 2.5vw, 1.2rem); color: var(--muted); margin: 0 0 32px; }
.cta {
  display: inline-block; padding: 14px 28px; border-radius: 8px; font-weight: 600;
  background: var(--fg); color: var(--bg1); 
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-size: 1rem;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,255,255,0.15); }
[data-theme="light"] .cta:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.2); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 80px; margin-bottom: 80px;}
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px; backdrop-filter: blur(var(--blur)); 
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover { 
  border-color: rgba(255,255,255,0.25); 
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
[data-theme="light"] .card:hover { border-color: rgba(0,0,0,0.2); }
.card h3 { margin: 0 0 12px; font-size: 1.25rem; font-weight: 700; }
.card p { margin: 0; color: var(--muted); line-height: 1.6; }

/* Form styles */
.contact {
  max-width: 550px;
  margin: 0 auto;
}
.form h3 { margin: 0 0 24px; font-size: 1.5rem; }
.form label { display: grid; gap: 8px; margin: 16px 0; font-weight: 500; font-size: 0.95rem; }
input, textarea {
  width: 100%; padding: 14px 16px; border-radius: 8px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.03); color: var(--fg); font-family: inherit; font-size: 1rem;
  transition: border-color 0.2s, background 0.2s;
}
[data-theme="light"] input, [data-theme="light"] textarea {
  background: rgba(0,0,0,0.02);
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--fg);
  background: rgba(255,255,255,0.05);
}
[data-theme="light"] input:focus, [data-theme="light"] textarea:focus {
  background: rgba(0,0,0,0.03);
}
input::placeholder, textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}
textarea { min-height: 140px; resize: vertical; }

.form .cta {
  margin-top: 8px;
  width: 100%;
}

/* Flash messages */
.flash-messages {
  margin-bottom: 24px;
}
.flash {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-weight: 500;
}
.flash-success {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--fg);
}
.flash-error {
  background: rgba(255,100,100,0.1);
  border: 1px solid rgba(255,100,100,0.3);
  color: #ff6b6b;
}
[data-theme="light"] .flash-success {
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.2);
}
[data-theme="light"] .flash-error {
  background: rgba(255,0,0,0.05);
  border: 1px solid rgba(255,0,0,0.2);
  color: #cc0000;
}

.footer {
  text-align: center; padding: 40px 16px 80px; color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.6s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
