/* Petal Projects portfolio */
:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #16161f;
  --text: #e8e6ed;
  --text-muted: #9490a8;
  --accent: #e879a9;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --font: "Outfit", system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;
  --header-h: 72px;
  --transition: 0.25s ease;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1140px, 92vw); margin-inline: auto; }
.noise { pointer-events: none; position: fixed; inset: 0; z-index: 9999; opacity: 0.03; background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h); background: rgba(10,10,15,0.75); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 1.1rem; }
.logo-mark { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.95rem; color: var(--text-muted); transition: color var(--transition); }
.nav-links a:hover { color: var(--text); }
.nav-cta { padding: 0.5rem 1.1rem !important; background: var(--accent); color: #0a0a0f !important; border-radius: 999px; font-weight: 500 !important; }
.nav-auth { display: flex; align-items: center; gap: 0.75rem; margin-left: 0.5rem; }
.nav-user { display: flex; align-items: center; gap: 0.75rem; }
.nav-user[hidden], .nav-login[hidden] { display: none !important; }
.nav-trading-link { color: var(--accent) !important; font-weight: 500; }
.nav-avatar { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border); object-fit: cover; }
.btn-logout { background: none; border: 1px solid var(--border); color: var(--text-muted); padding: 0.4rem 0.85rem; border-radius: 999px; font-size: 0.8rem; cursor: pointer; font-family: var(--font); transition: var(--transition); }
.btn-logout:hover { border-color: var(--accent); color: var(--accent); }
.auth-setup-hint { font-size: 0.75rem; color: var(--text-muted); font-family: var(--mono); }
#login { scroll-margin-top: calc(var(--header-h) + 1rem); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); }
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: var(--header-h); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10,10,15,0.92), rgba(10,10,15,0.6)), linear-gradient(to top, var(--bg), transparent 40%); }
.hero-inner { position: relative; z-index: 1; padding: 4rem 0 6rem; max-width: 720px; }
.eyebrow { font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.75rem); font-weight: 700; line-height: 1.1; margin-bottom: 1.25rem; }
.hero-lead { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 540px; }
.hero-lead strong { color: var(--text); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.btn { display: inline-flex; padding: 0.85rem 1.6rem; border-radius: 999px; font-weight: 500; transition: var(--transition); border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: #0a0a0f; }
.btn-primary:hover { background: #f0a0c4; box-shadow: 0 0 32px rgba(232,121,169,0.25); }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.stat-num { display: block; font-size: 1.35rem; font-weight: 600; font-family: var(--mono); color: var(--accent); }
.stat-label { font-size: 0.85rem; color: var(--text-muted); }
.section { padding: 6rem 0; }
.section-tag { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 0.75rem; }
.section h2 { font-size: clamp(1.75rem, 3.5vw, 2.35rem); font-weight: 600; margin-bottom: 1.5rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 3rem; }
.about { background: var(--bg-elevated); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-visual { position: relative; border-radius: var(--radius); overflow: hidden; }
.about-visual img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about-badge { position: absolute; bottom: 1.25rem; left: 1.25rem; background: rgba(10,10,15,0.85); border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem 1rem; }
.about-badge .mono { font-family: var(--mono); font-size: 0.75rem; color: var(--accent); }
.about-copy p { color: var(--text-muted); margin-bottom: 1rem; }
.about-list { list-style: none; margin-top: 1.5rem; }
.about-list li { position: relative; padding-left: 1.4rem; margin-bottom: 0.65rem; color: var(--text-muted); }
.about-list li::before { content: "\25C6"; position: absolute; left: 0; color: var(--accent); font-size: 0.55rem; top: 0.45rem; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter { padding: 0.45rem 1rem; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text-muted); font-family: var(--font); font-size: 0.875rem; cursor: pointer; transition: var(--transition); }
.filter.active { background: var(--accent); border-color: var(--accent); color: #0a0a0f; font-weight: 500; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.75rem; }
.project-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.project-card:hover { border-color: rgba(232,121,169,0.35); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.35); }
.project-card.hidden { display: none; }
.project-image { position: relative; overflow: hidden; }
.project-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform 0.5s; }
.project-card:hover .project-image img { transform: scale(1.05); }
.project-tag { position: absolute; top: 0.85rem; left: 0.85rem; padding: 0.3rem 0.7rem; background: rgba(10,10,15,0.8); border-radius: 999px; font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; color: var(--accent); }
.project-body { padding: 1.35rem 1.5rem 1.5rem; }
.project-body h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.6rem; }
.project-body p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.tech-list { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; }
.tech-list li { font-family: var(--mono); font-size: 0.7rem; padding: 0.25rem 0.55rem; background: rgba(255,255,255,0.05); border-radius: 4px; color: var(--text-muted); }
.skills { background: var(--bg-elevated); }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.skill-group { padding: 1.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.skill-group h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--accent); }
.skill-group p { font-size: 0.9rem; color: var(--text-muted); }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.cta-copy p { color: var(--text-muted); margin-bottom: 1.5rem; max-width: 420px; }
.cta-visual { border-radius: var(--radius); overflow: hidden; }
.cta-visual img { width: 100%; aspect-ratio: 7/5; object-fit: cover; }
.site-footer { padding: 2rem 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.875rem; color: var(--text-muted); }
.back-top { color: var(--accent); }
@media (max-width: 900px) { .about-grid, .cta-inner { grid-template-columns: 1fr; } .about-visual { order: -1; } }
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; background: rgba(10,10,15,0.98); padding: 1.5rem; gap: 1rem; border-bottom: 1px solid var(--border); transform: translateY(-120%); opacity: 0; pointer-events: none; transition: var(--transition); }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .section { padding: 4rem 0; }
}
