/* =========================================================
   Lalu Saheb Patel — Freelance iOS Developer
   UI v4 — "Editorial Paper" theme.
   Warm ivory canvas, deep forest-green ink + accent,
   serif display (Spectral) + grotesk body (Figtree).
   Deliberately NOT glass / neon / dark — to stand apart
   from the other sites in this folder.
   ========================================================= */

:root {
    --paper: #f7f4ec;
    --paper-2: #efe9db;
    --card: #fffdf8;
    --ink: #1c2b24;
    --muted: #4f6056;
    --faint: #8a978e;
    --line: #d9d2c2;
    --line-strong: #1c2b24;

    --green: #1f5c3d;      /* forest */
    --green-deep: #163f2b;
    --green-soft: #e3ece4;
    --rust: #b5543a;       /* secondary accent */
    --sand: #e9dcc0;
    --gold: #a9842f;

    --radius: 4px;         /* editorial = crisp, minimal rounding */
    --radius-lg: 8px;

    --font-head: 'Spectral', Georgia, serif;
    --font-body: 'Figtree', system-ui, sans-serif;

    --maxw: 1140px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.01em; font-weight: 600; color: var(--ink); }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--green); z-index: 1000; transition: width 0.1s linear; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
    padding: 13px 26px; border-radius: 999px; cursor: pointer;
    border: 1.5px solid var(--line-strong); transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn.full { width: 100%; justify-content: center; }
.btn-solid { background: var(--green); color: var(--paper); border-color: var(--green); }
.btn-solid:hover { background: var(--green-deep); border-color: var(--green-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 900; transition: background 0.3s var(--ease), border-color 0.3s var(--ease); border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(247, 244, 236, 0.9); backdrop-filter: blur(8px); border-bottom-color: var(--line); }
.nav { max-width: var(--maxw); margin: 0 auto; padding: 20px 28px; display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 600; }
.brand-mark { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--paper); font-size: 1rem; }
.brand-text { font-size: 1.15rem; letter-spacing: -0.01em; }

.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-item { position: relative; padding: 8px 14px; color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: color 0.2s ease; }
.nav-item::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav-item:hover { color: var(--ink); }
.nav-item:hover::after, .nav-item.active::after { transform: scaleX(1); }
.nav-item.active { color: var(--green); }

.nav-cta { padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 0.9rem; background: var(--ink); color: var(--paper); border: 1.5px solid var(--ink); transition: background 0.3s var(--ease), transform 0.3s var(--ease); }
.nav-cta:hover { background: var(--green); border-color: var(--green); transform: translateY(-2px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 168px 0 96px; border-bottom: 1px solid var(--line); }
.hero-glow { display: none; }
.hero-inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
    display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-body);
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green);
    padding-bottom: 6px; border-bottom: 1.5px solid var(--green); }
.hero-title { font-size: clamp(2.8rem, 6vw, 4.8rem); font-weight: 600; margin: 26px 0 22px; letter-spacing: -0.02em; }
.hero-title .accent { font-style: italic; color: var(--green); }
.hero-lead { color: var(--muted); font-size: 1.16rem; max-width: 520px; }
.hero-lead strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 42px; }

.hero-metrics { display: flex; gap: 0; flex-wrap: wrap; border-top: 1px solid var(--line); }
.hero-metrics div { display: flex; flex-direction: column; padding: 20px 28px 0 0; margin-right: 28px; border-right: 1px solid var(--line); }
.hero-metrics div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-metrics dt { font-family: var(--font-head); font-size: 2.1rem; font-weight: 600; color: var(--ink); }
.hero-metrics dd { color: var(--faint); font-size: 0.85rem; letter-spacing: 0.02em; }

/* ---------- Hero device (paper-styled) ---------- */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 540px; }
.device { position: relative; width: 288px; height: 586px; border-radius: 44px; background: var(--ink); padding: 12px; box-shadow: 24px 24px 0 var(--sand); }
.device-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 110px; height: 24px; background: var(--ink); border-radius: 0 0 16px 16px; z-index: 3; }
.device-screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: var(--card); padding: 42px 18px 18px; display: flex; flex-direction: column; gap: 16px; }
.screen-top { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--ink); font-weight: 600; }
.screen-icons { display: flex; gap: 7px; }
.screen-hello .screen-greet { color: var(--green); font-size: 0.82rem; margin: 0; font-weight: 600; }
.screen-hello h3 { font-size: 1.9rem; color: var(--ink); font-family: var(--font-head); font-style: italic; }
.screen-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.tile { aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; font-size: 1.1rem; border: 1.5px solid var(--line-strong); }
.tile.t1 { background: var(--green); color: var(--paper); }
.tile.t2 { background: var(--rust); color: var(--paper); }
.tile.t3 { background: var(--sand); color: var(--ink); }
.tile.t4 { background: var(--green-soft); color: var(--green); }
.tile.t5 { background: var(--gold); color: var(--paper); }
.tile.t6 { background: var(--card); color: var(--ink); }
.screen-card { margin-top: auto; background: var(--green-soft); border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 13px; }
.sc-row { display: flex; justify-content: space-between; align-items: center; color: var(--ink); font-size: 0.85rem; font-weight: 600; }
.sc-row i { color: var(--green); }
.sc-bar { margin-top: 10px; height: 8px; border-radius: 6px; background: var(--card); overflow: hidden; border: 1.5px solid var(--line-strong); }
.sc-bar i { display: block; height: 100%; width: 68%; background: var(--green); }

.float-chip { position: absolute; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; background: var(--card); border: 1.5px solid var(--line-strong); color: var(--ink); padding: 9px 15px; border-radius: 999px; box-shadow: 4px 4px 0 var(--ink); z-index: 2; }
.chip-swift { top: 9%; left: -4%; } .chip-swift i { color: var(--rust); }
.chip-ui { bottom: 16%; left: -10%; color: var(--green); }
.chip-store { top: 22%; right: -8%; } .chip-store i { color: var(--gold); }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: var(--ink); overflow: hidden; padding: 14px 0; }
.marquee-track { display: flex; gap: 24px; white-space: nowrap; width: max-content; animation: scrollx 30s linear infinite; }
.marquee-track span { font-family: var(--font-head); font-style: italic; font-weight: 500; color: var(--paper); font-size: 1.05rem; }
.marquee-track span:nth-child(4n+1) { color: var(--sand); } .marquee-track span:nth-child(4n+3) { color: #cfe0d2; }
@keyframes scrollx { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green); margin-bottom: 16px; }
.section-head h2 { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 600; letter-spacing: -0.02em; }
.section-sub { color: var(--muted); margin-top: 14px; }

/* ---------- Profile ---------- */
.profile { background: var(--paper); }
.profile-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.profile-lead p { color: var(--muted); margin-bottom: 18px; font-size: 1.08rem; }
.profile-lead p::first-letter { } /* reserved */
.profile-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.profile-tags span { display: inline-flex; align-items: center; gap: 9px; font-size: 0.88rem; font-weight: 500; background: transparent; border: 1.5px solid var(--line-strong); padding: 8px 15px; border-radius: 999px; }
.profile-tags i { color: var(--green); }
.profile-stack { display: flex; flex-direction: column; }
.profile-stack li { display: flex; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); transition: padding-left 0.3s var(--ease); }
.profile-stack li:last-child { border-bottom: 1px solid var(--line); }
.profile-stack li:hover { padding-left: 8px; }
.ps-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-size: 1.1rem; border: 1.5px solid var(--green); }
.profile-stack h4 { font-size: 1.15rem; margin-bottom: 4px; }
.profile-stack p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Work ---------- */
.work { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.work-card { background: transparent; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; transition: background 0.3s var(--ease); }
.work-card:hover { background: var(--card); }
.work-top { height: 140px; display: grid; place-items: center; font-size: 2.4rem; color: var(--paper); border-bottom: 1px solid var(--line); }
.wt-a { background: var(--green); } .wt-b { background: var(--rust); } .wt-c { background: var(--gold); } .wt-d { background: var(--green-deep); }
.work-body { padding: 26px 28px 30px; }
.work-body h3 { font-size: 1.4rem; margin-bottom: 8px; font-style: italic; }
.work-body p { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding: 3px 0; }
.chips li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--line); }

/* ---------- Services ---------- */
.services { background: var(--paper); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.service { position: relative; background: transparent; border-top: 2px solid var(--line-strong); padding: 28px 0 0; transition: border-color 0.3s var(--ease); }
.service:hover { border-color: var(--green); }
.service-no { font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--green); display: block; margin-bottom: 18px; letter-spacing: 0.1em; }
.service-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-size: 1.3rem; margin-bottom: 20px; border: 1.5px solid var(--green); }
.service h3 { font-size: 1.5rem; margin-bottom: 12px; font-style: italic; }
.service > p { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; }
.service ul { display: flex; flex-direction: column; gap: 10px; }
.service ul li { position: relative; padding-left: 22px; color: var(--muted); font-size: 0.92rem; }
.service ul li::before { content: "—"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ---------- Contact ---------- */
.contact { background: var(--paper-2); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: start; }
.contact-info { display: flex; flex-direction: column; }
.info-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; border-top: 1px solid var(--line); transition: padding-left 0.3s var(--ease); }
.info-card:last-child { border-bottom: 1px solid var(--line); }
.info-card:hover { padding-left: 6px; }
.info-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-size: 1.05rem; }
.info-card h4 { font-size: 1.05rem; margin-bottom: 3px; }
.info-card p { color: var(--muted); font-size: 0.92rem; word-break: break-word; }

.contact-form { background: var(--card); border: 1.5px solid var(--line-strong); border-radius: var(--radius-lg); padding: 36px; box-shadow: 10px 10px 0 var(--sand); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; display: flex; flex-direction: column; }
.field label { font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; color: var(--muted); }
.field input, .field textarea { background: var(--paper); border: 0; border-bottom: 1.5px solid var(--line-strong); border-radius: 0; padding: 12px 2px; color: var(--ink); font-family: var(--font-body); font-size: 1rem; transition: border-color 0.2s ease; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--green); }
.form-note { margin-top: 16px; font-size: 0.9rem; text-align: center; min-height: 1em; font-weight: 500; }
.form-note.ok { color: var(--green); }
.form-note.err { color: var(--rust); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding-top: 72px; }
.footer h4 { color: var(--paper); font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-inner { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-brand .brand-text { color: var(--paper); }
.footer-brand .brand-mark { background: var(--paper); color: var(--ink); }
.footer-brand p { color: #c3cdc6; font-size: 0.92rem; margin-top: 18px; max-width: 290px; font-family: var(--font-head); font-style: italic; font-size: 1.05rem; }
.footer-col h4 { margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: #c3cdc6; font-size: 0.92rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--sand); }
.footer-contact li { display: flex; align-items: center; gap: 10px; color: #c3cdc6; font-size: 0.9rem; }
.footer-contact i { color: var(--sand); width: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 52px; padding: 26px; text-align: center; }
.footer-bottom p { color: #8c9790; font-size: 0.88rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* =========================================================
   Legal pages (Privacy / Terms)
   ========================================================= */
.policy-section { padding: 150px 0 90px; min-height: 70vh; }
.policy-header { margin-bottom: 40px; padding-bottom: 26px; border-bottom: 2px solid var(--line-strong); }
.policy-header h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--ink); font-style: italic; }
.policy-content { max-width: 760px; }
.policy-content p { color: var(--muted); margin-bottom: 16px; }
.policy-content h2 { font-size: 1.5rem; margin: 34px 0 12px; color: var(--ink); font-style: italic; }
.policy-content a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; gap: 44px; }
    .section-head { max-width: none; }
    .profile-grid { grid-template-columns: 1fr; gap: 36px; }
    .services-grid { grid-template-columns: 1fr; }
    .service { border-top: 2px solid var(--line-strong); padding-bottom: 24px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 760px) {
    .nav-links { position: fixed; inset: 76px 20px auto 20px; flex-direction: column; gap: 2px; background: var(--card); border: 1.5px solid var(--line-strong); padding: 14px; border-radius: var(--radius-lg); box-shadow: 8px 8px 0 var(--sand); margin-left: 0; transform: translateY(-130%); opacity: 0; pointer-events: none; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
    .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav-item { display: block; padding: 12px 14px; }
    .nav-item::after { display: none; }
    .nav-cta { display: none; }
    .nav-toggle { display: flex; margin-left: auto; }
    .work-grid { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .hero-metrics div { padding-right: 20px; margin-right: 20px; }
    .section { padding: 76px 0; }
    .hero { padding: 136px 0 72px; }
    .device { box-shadow: 14px 14px 0 var(--sand); }
}

@media (max-width: 480px) {
    .container, .nav, .hero-inner { padding-left: 20px; padding-right: 20px; }
    .brand-text { font-size: 1.02rem; }
    .hero-title { font-size: clamp(2.3rem, 9vw, 3rem); }
    .device { width: 248px; height: 506px; }
    .footer-inner { grid-template-columns: 1fr; }
    .contact-form { padding: 24px 20px; }
    .hero-metrics div { padding: 16px 16px 0 0; margin-right: 16px; }
    .hero-metrics dt { font-size: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
    .reveal { transition: none; opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
