/* ==========================================================================
   CONFIG — edit this block to restyle the whole template
   ========================================================================== */
:root {
  /* Accent color: change this ONE value to recolor buttons, links, highlights */
  --accent: #2f5bea;
  --accent-contrast: #ffffff;   /* text color on top of the accent */
  /* Primary button colors (default to the accent; must keep >= 4.5:1 text contrast) */
  --button-bg: var(--accent);
  --button-text: var(--accent-contrast);

  /* Light theme */
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #111111;
  --muted: #55555a;
  --border: #deded9;
  --placeholder: #e4e4e0;
  --placeholder-text: #6b6b70;

  /* Fonts (also update the Google Fonts <link> in index.html if you change them) */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Space Grotesk", "Inter", system-ui, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --radius: 14px;

  /* NAME: the visible name text lives in index.html — search for "[Your Name]" (see README) */
}
/* Dark theme — applied by the toggle, or automatically from the OS setting */
:root[data-theme="dark"] {
  --bg: #0f1012;
  --surface: #181a1d;
  --text: #f1f1ee;
  --muted: #a4a4aa;
  --border: #2a2c31;
  --placeholder: #23252a;
  --placeholder-text: #9a9aa2;
  --accent: #7c9bff;           /* lighter accent for text/links on dark (7.2:1 on bg) */
  --accent-contrast: #0b0d14;
  --button-bg: #3b63ee;        /* white text on this = 4.99:1 (WCAG AA) */
  --button-text: #ffffff;
}
/* ==========================================================================
   END CONFIG
   ========================================================================== */

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:72px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font-body);font-size:17px;line-height:1.65;-webkit-font-smoothing:antialiased;transition:background .25s,color .25s}
img,svg{max-width:100%;display:block}
h1,h2,h3{font-family:var(--font-heading);line-height:1.1;margin:0;letter-spacing:-.02em}
p{margin:0}
a{color:var(--accent);text-underline-offset:3px}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:4px}
.container{width:100%;max-width:var(--max-width);margin:0 auto;padding:0 28px}
.section{padding:104px 0}
.section + .section{padding-top:0}  /* one consistent gap (104px) between every section */
.section-head{margin-bottom:56px;max-width:640px}
.eyebrow{font-family:var(--font-heading);font-size:.85rem;letter-spacing:.14em;text-transform:uppercase;color:var(--accent);font-weight:600;margin-bottom:14px}
h2{font-size:clamp(2rem,4vw,3rem)}
.section-head p{color:var(--muted);margin-top:16px}

.skip-link{position:absolute;left:12px;top:-60px;background:var(--button-bg);color:var(--button-text);padding:10px 16px;border-radius:8px;z-index:200;font-weight:600;text-decoration:none}
.skip-link:focus{top:12px}

/* Nav */
.nav{position:sticky;top:0;z-index:100;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(10px);border-bottom:1px solid var(--border)}
.nav-inner{display:flex;align-items:center;justify-content:space-between;height:60px}
.brand{font-family:var(--font-heading);font-weight:700;font-size:1.1rem;color:var(--text);text-decoration:none;letter-spacing:-.02em}
.nav-links{display:flex;align-items:center;gap:28px;list-style:none;margin:0;padding:0}
.nav-links a{color:var(--text);text-decoration:none;font-size:.95rem;font-weight:500;padding:6px 0;border-bottom:2px solid transparent}
.nav-links a:hover{border-bottom-color:var(--accent)}
.nav-actions{display:flex;align-items:center;gap:8px}
.icon-btn{width:40px;height:40px;border-radius:50%;border:1px solid var(--border);background:transparent;color:var(--text);display:inline-grid;place-items:center;cursor:pointer;transition:background .2s}
.icon-btn:hover{background:var(--surface)}
.icon-btn svg{width:18px;height:18px}
.theme-toggle .sun{display:none}
:root[data-theme="dark"] .theme-toggle .sun{display:block}
:root[data-theme="dark"] .theme-toggle .moon{display:none}
.menu-toggle{display:none}

/* Buttons */
.btn{display:inline-block;font-family:var(--font-body);font-weight:600;font-size:1rem;padding:14px 26px;border-radius:999px;text-decoration:none;border:2px solid var(--accent);cursor:pointer;transition:transform .15s,background .2s,color .2s}
.btn:hover{transform:translateY(-2px)}
.btn-primary{background:var(--button-bg);border-color:var(--button-bg);color:var(--button-text)}
.btn-secondary{background:transparent;color:var(--text);border-color:var(--text)}
.btn-secondary:hover{background:var(--text);color:var(--bg)}
.btn-row{display:flex;flex-wrap:wrap;gap:14px;margin-top:36px}

/* Hero */
.hero{padding:112px 0 104px}
.hero-grid{display:grid;grid-template-columns:7fr 5fr;gap:64px;align-items:center}
.hero-media .ph{aspect-ratio:4/5;border-radius:var(--radius);width:100%;max-width:460px;margin-left:auto}
.hero .role{font-family:var(--font-heading);color:var(--accent);font-weight:600;font-size:1.15rem;margin-bottom:18px}
.hero h1{font-size:clamp(3.4rem,8.5vw,6.5rem)}
@media (min-width:961px){.hero h1{font-size:clamp(4rem,7.6vw,7rem)}}
.hero .intro{max-width:60ch;margin-top:28px;font-size:1.2rem;color:var(--muted)}

/* Placeholders */
.ph{background:var(--placeholder);color:var(--placeholder-text);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;font-size:.9rem;font-weight:500;border:2px dashed var(--border);padding:16px}
.ph span{display:block;font-size:.75rem;opacity:.85;margin-top:4px}

/* Work */
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;transition:transform .2s,box-shadow .2s;display:flex;flex-direction:column}
.card:hover{transform:translateY(-4px);box-shadow:0 18px 40px -20px rgba(0,0,0,.35)}
.card .ph{aspect-ratio:3/2;border:0;border-bottom:2px dashed var(--border);border-radius:0}
.card-body{padding:22px 24px 26px}
.tag{display:inline-block;font-size:.75rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--accent);margin-bottom:8px}
.card h3{font-size:1.35rem;margin-bottom:8px}
.card p{color:var(--muted);font-size:.97rem}
.card a.card-link{display:inline-block;margin-top:14px;font-weight:600;text-decoration:none}
.card a.card-link:hover{text-decoration:underline}

/* About */
.about{display:grid;grid-template-columns:5fr 7fr;gap:72px;align-items:center}
.about .ph{aspect-ratio:4/5;border-radius:var(--radius);width:100%;max-width:400px}
.about>div:last-child{align-self:center}
.about p{color:var(--muted);margin-top:18px}
.skills{list-style:none;padding:0;margin:32px 0 0;display:flex;flex-wrap:wrap;gap:10px}
.skills li{border:1px solid var(--border);background:var(--surface);padding:8px 16px;border-radius:999px;font-size:.92rem;font-weight:500}

/* Services */
.services{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.service{border-top:2px solid var(--text);padding-top:22px}
.service .num{font-family:var(--font-heading);color:var(--accent);font-weight:600;font-size:.9rem}
.service h3{font-size:1.4rem;margin:10px 0}
.service p{color:var(--muted)}
.timeline{list-style:none;padding:0;margin:72px 0 0;border-top:1px solid var(--border)}
.timeline li{display:grid;grid-template-columns:200px 1fr;gap:24px;padding:24px 0;border-bottom:1px solid var(--border)}
.timeline .when{color:var(--muted);font-size:.95rem}
.timeline h3{font-size:1.15rem;margin-bottom:4px}
.timeline p{color:var(--muted);font-size:.97rem}

/* Testimonials */
.quotes{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
blockquote{margin:0;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:30px}
blockquote p{font-size:1.05rem}
blockquote footer{margin-top:22px;display:flex;align-items:center;gap:14px}
.avatar{width:48px;height:48px;border-radius:50%;padding:0;font-size:.6rem;flex:none}
blockquote cite{font-style:normal;font-weight:600;display:block}
blockquote small{color:var(--muted)}

/* Contact */
.contact{display:grid;grid-template-columns:5fr 7fr;gap:72px}
.contact-email{display:inline-block;font-family:var(--font-heading);font-size:clamp(1.3rem,3vw,1.8rem);font-weight:600;margin-top:20px;word-break:break-all}
form{display:grid;gap:18px}
label{font-weight:600;font-size:.92rem;display:block;margin-bottom:6px}
input,textarea{width:100%;font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:13px 15px}
input:focus,textarea:focus{outline:3px solid var(--accent);outline-offset:1px;border-color:var(--accent)}
textarea{min-height:150px;resize:vertical}
.form-note{font-size:.85rem;color:var(--muted)}

/* Footer */
.footer{border-top:1px solid var(--border);padding:40px 0}
.footer-inner{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:20px;color:var(--muted);font-size:.92rem}
.social{display:flex;gap:10px;list-style:none;margin:0;padding:0}

/* Responsive */
@media (max-width:960px){
  .grid,.services,.quotes{grid-template-columns:repeat(2,1fr)}
  .about,.contact{grid-template-columns:1fr;gap:40px}
  .hero-grid{grid-template-columns:1fr;gap:48px}
  .hero-media .ph{margin-left:0;max-width:380px;aspect-ratio:4/3}
  .about .ph{max-width:420px}
}
@media (max-width:720px){
  .section{padding:72px 0}
  .section + .section{padding-top:0}
  .hero{padding:64px 0 64px}
  .container{padding:0 20px}
  .grid,.services,.quotes{grid-template-columns:1fr}
  .timeline li{grid-template-columns:1fr;gap:4px}
  .menu-toggle{display:inline-grid}
  .nav-links{position:absolute;top:60px;left:0;right:0;flex-direction:column;align-items:stretch;gap:0;background:var(--bg);border-bottom:1px solid var(--border);padding:8px 20px 16px;display:none}
  .nav-links.open{display:flex}
  .nav-links a{display:block;padding:14px 0;border-bottom:1px solid var(--border)}
}
