
:root {
  --bg: #0d0d14; --surface: #15151f; --surface2: #1e1e2a; --surface3: #232330;
  --accent: #6effe8; --accent3: #a78bfa; --text: #f0f0f5; --muted: #9090a8;
  --border: rgba(110,255,232,0.1); --font-display: "Fraunces", serif; --font-body: "Outfit", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: linear-gradient(160deg, #0d0d14 0%, #111120 50%, #0d0d14 100%); background-attachment: fixed; color: var(--text); font-family: var(--font-body); font-weight: 400; line-height: 1.7; overflow-x: hidden; }

nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 0.4rem 5vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); background: rgba(13,13,20,0.9); backdrop-filter: blur(16px); }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.logo-img { height: 58px; width: auto; display: block; }
.logo span { color: var(--accent); }
nav ul { list-style: none; display: flex; gap: 2.5rem; }
nav ul a { color: var(--muted); text-decoration: none; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; transition: color 0.2s; }
nav ul a:hover, nav ul a.active { color: var(--accent); }
.nav-cta { background: var(--accent) !important; color: var(--bg) !important; padding: 0.5rem 1.2rem; border-radius: 4px; font-weight: 500 !important; }

section { padding: 5rem 5vw; }
.section-label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem; }
.section-label::after { content: ""; display: block; flex: 1; max-width: 40px; height: 1px; background: var(--accent); opacity: 0.5; }
h1 { font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 1.2rem; }
h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 1.2rem; }
.section-desc { color: var(--muted); max-width: 520px; font-size: 1rem; line-height: 1.8; }

.page-hero { padding: 10rem 5vw 5rem; border-bottom: 1px solid var(--border); position: relative; }
.hero-glow { position: fixed; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(110,255,232,0.1) 0%, transparent 70%); top: -150px; right: -150px; pointer-events: none; z-index: 0; }
.hero-glow2 { position: fixed; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(167,139,250,0.09) 0%, transparent 70%); top: 40%; left: 20%; pointer-events: none; z-index: 0; }

.page-hero-inner { max-width: 700px; }

/* PROJECTS */
#projects { border-top: 1px solid var(--border); }
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.5rem; }
.project-card { background: linear-gradient(145deg, var(--surface), var(--surface2)); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; box-shadow: 0 4px 24px rgba(0,0,0,0.3); }
.project-card:hover { transform: translateY(-6px); border-color: rgba(110,255,232,0.25); box-shadow: 0 24px 48px rgba(0,0,0,0.3); }
.project-link { display: block; text-decoration: none; color: inherit; }
.browser-window { height: 280px; position: relative; overflow: hidden; }
.browser-chrome { position: absolute; top: 0; left: 0; right: 0; height: 36px; background: #1e1e28; border-bottom: 1px solid rgba(255,255,255,0.07); display: flex; align-items: center; padding: 0 1rem; gap: 0.5rem; z-index: 2; }
.browser-dots { display: flex; gap: 5px; margin-right: 0.5rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.r { background: #ff5f56; } .dot.y { background: #ffbd2e; } .dot.g { background: #27c93f; }
.browser-url { flex: 1; background: rgba(255,255,255,0.05); border-radius: 5px; height: 20px; display: flex; align-items: center; padding: 0 0.6rem; font-size: 0.65rem; color: var(--muted); }
.browser-url::before { content: "🔒"; margin-right: 0.4rem; font-size: 0.6rem; }
.project-screenshot { position: absolute; inset: 36px 0 0; overflow: hidden; }
.project-screenshot iframe { width: 300%; height: 300%; transform: scale(0.333); transform-origin: top left; border: none; pointer-events: none; }
.project-overlay { position: absolute; inset: 0; background: rgba(13,13,20,0.82); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; z-index: 3; }
.project-card:hover .project-overlay { opacity: 1; }
.project-overlay span { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.1em; color: var(--accent); }
.mock-viewport { position: absolute; inset: 36px 0 0; overflow: hidden; background: #0a0a0f; }
.mock-mine .m-nav { height: 36px; background: rgba(10,10,15,0.9); border-bottom: 1px solid rgba(110,255,232,0.1); display: flex; align-items: center; padding: 0 1rem; gap: 0.5rem; }
.mock-mine .m-nav-logo { width: 40px; height: 8px; background: #6effe8; border-radius: 3px; margin-right: auto; }
.mock-mine .m-nav-link { width: 22px; height: 5px; background: rgba(255,255,255,0.12); border-radius: 2px; }
.mock-mine .m-hero { padding: 1.2rem 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.mock-mine .m-hero-tag { width: 80px; height: 6px; background: rgba(110,255,232,0.4); border-radius: 2px; }
.mock-mine .m-hero-h1 { width: 85%; height: 14px; background: rgba(255,255,255,0.85); border-radius: 3px; }
.mock-mine .m-hero-h1b { width: 65%; height: 14px; background: #6effe8; border-radius: 3px; opacity: 0.8; }
.mock-mine .m-hero-sub { width: 75%; height: 6px; background: rgba(255,255,255,0.2); border-radius: 2px; }
.mock-mine .m-btns { display: flex; gap: 0.4rem; margin-top: 0.3rem; }
.mock-mine .m-btn-p { width: 55px; height: 14px; background: #6effe8; border-radius: 3px; }
.mock-mine .m-btn-o { width: 55px; height: 14px; border: 1px solid rgba(110,255,232,0.3); border-radius: 3px; }
.mock-mine .m-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.4rem; padding: 0.5rem 1rem; }
.mock-mine .m-card { background: #111118; border: 1px solid rgba(110,255,232,0.1); border-radius: 5px; height: 40px; padding: 0.4rem; display: flex; flex-direction: column; gap: 3px; }
.mock-mine .m-card-dot { width: 10px; height: 10px; background: rgba(110,255,232,0.2); border-radius: 2px; }
.mock-mine .m-card-line { width: 75%; height: 4px; background: rgba(255,255,255,0.12); border-radius: 2px; }
.mock-mine .m-card-line.short { width: 50%; }
.project-info { padding: 1.8rem 2rem; }
.project-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.project-info h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.project-type { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.project-info p { color: var(--muted); font-size: 0.9rem; line-height: 1.75; margin-bottom: 1.2rem; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ftag { background: rgba(110,255,232,0.07); border: 1px solid rgba(110,255,232,0.18); color: var(--accent); padding: 0.3rem 0.8rem; border-radius: 100px; font-size: 0.75rem; font-weight: 500; }
.project-slot { border: 2px dashed rgba(110,255,232,0.1); border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem; padding: 4rem 2rem; text-align: center; min-height: 300px; transition: border-color 0.3s, background 0.3s; }
.project-slot:hover { border-color: rgba(110,255,232,0.25); background: var(--surface); }
.project-slot h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.project-slot p { color: var(--muted); font-size: 0.9rem; }
.project-slot a { color: var(--accent); text-decoration: none; }

/* LOCAL FAVOURITES */
#local { border-top: 1px solid var(--border); background: linear-gradient(180deg, var(--surface2) 0%, transparent 40%); }
.local-note { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(110,255,232,0.07); border: 1px solid rgba(110,255,232,0.2); color: var(--accent); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; padding: 0.4rem 1rem; border-radius: 100px; margin-bottom: 1.2rem; }
.local-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.local-card { background: linear-gradient(145deg, var(--surface), var(--surface2)); border: 1px solid var(--border); border-radius: 14px; padding: 1.8rem; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.local-card:hover { transform: translateY(-4px); border-color: rgba(110,255,232,0.2); box-shadow: 0 12px 36px rgba(0,0,0,0.3); }
.local-card-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.local-icon { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent3)); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.local-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; }
.local-card .local-area { font-size: 0.75rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.local-card p { color: var(--muted); font-size: 0.88rem; line-height: 1.7; margin-bottom: 1rem; }
.local-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.local-tag { border: 1px solid var(--border); color: var(--muted); padding: 0.25rem 0.65rem; border-radius: 100px; font-size: 0.72rem; }
.local-cta { margin-top: 3rem; background: linear-gradient(145deg, var(--surface), var(--surface2)); border: 1px solid rgba(110,255,232,0.2); border-radius: 16px; padding: 2.5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.local-cta h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin-bottom: 0.4rem; }
.local-cta p { color: var(--muted); font-size: 0.9rem; max-width: 480px; }
.btn-primary { background: var(--accent); color: var(--bg); padding: 0.85rem 2rem; border-radius: 6px; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(110,255,232,0.25); }

footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding: 4rem 5vw; border-bottom: 1px solid var(--border); }
.footer-logo { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--text); margin-bottom: 0.9rem; }
.footer-logo span { color: var(--accent); }
.footer-tagline { color: var(--muted); font-size: 0.88rem; line-height: 1.75; max-width: 260px; margin-bottom: 0.9rem; }
.footer-contact-line { color: var(--muted); font-size: 0.85rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); margin-bottom: 0.3rem; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 0.4rem 5vw; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom span { color: var(--muted); font-size: 0.78rem; }


/* Reset link colours inside cards */
.project-link, .project-link:visited { color: inherit; text-decoration: none; }
.project-link h3, .project-link p, .project-link span { color: inherit; text-decoration: none; }
.project-link .project-type { color: var(--accent); }
.project-link .portfolio-type { color: var(--accent); }
