/* ===================================================================
   Jainam Shah — iOS Engineer
   Light editorial theme. Sora + Inter. Coral/amber accents.
=================================================================== */

:root {
    --bg: #fbf7f0;
    --bg-alt: #f3ece0;
    --surface: #ffffff;
    --ink: #1a1614;
    --ink-soft: #5c534d;
    --border: #e6ddce;
    --line: #1a1614;
    --coral: #ff5a3c;
    --amber: #ffab2e;
    --teal: #0f9b8e;
    --violet: #6d4aff;
    --grad: linear-gradient(120deg, #ff5a3c 0%, #ffab2e 100%);
    --shadow-hard: 6px 6px 0 var(--line);
    --shadow-soft: 0 18px 40px rgba(26, 22, 20, 0.12);
    --radius: 18px;
    --maxw: 1180px;
    font-family: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo-text, .metric-num, .nav-cta, .btn, .dev-title, .marquee-track {
    font-family: 'Sora', 'Inter', sans-serif;
}

a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; }

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 20px 0; transition: all 0.3s ease; background: transparent;
}
.navbar.scrolled {
    background: rgba(251, 247, 240, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--line);
    padding: 14px 0;
}
.nav-container {
    width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
    width: 42px; height: 42px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--coral); color: #fff;
    font-family: 'Sora', sans-serif; font-weight: 800;
    border: 2px solid var(--line); box-shadow: 3px 3px 0 var(--line);
}
.logo-text { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }

.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-link { color: var(--ink-soft); font-size: 0.95rem; font-weight: 500; position: relative; transition: color 0.25s; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; background: var(--coral); transition: width 0.3s; }
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-cta {
    padding: 10px 22px; border-radius: 999px;
    background: var(--ink); color: var(--bg); font-weight: 600; font-size: 0.9rem;
    border: 2px solid var(--line); box-shadow: 3px 3px 0 var(--coral);
    transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--coral); }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger .bar { display: block; width: 26px; height: 2.5px; margin: 5px 0; background: var(--ink); border-radius: 2px; transition: all 0.3s; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
    cursor: pointer; border: 2px solid var(--line); transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary { background: var(--coral); color: #fff; box-shadow: 4px 4px 0 var(--line); }
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--line); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: 4px 4px 0 var(--line); }
.btn-ghost:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--line); }
.btn.full { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 150px 0 80px; overflow: hidden; }
.aurora {
    position: absolute; inset: 0; z-index: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(26,22,20,0.09) 1px, transparent 0);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(70% 70% at 70% 30%, #000, transparent);
    mask-image: radial-gradient(70% 70% at 70% 30%, #000, transparent);
}
.hero-inner {
    position: relative; z-index: 1;
    width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center;
}
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 999px;
    background: var(--surface); border: 2px solid var(--line);
    color: var(--coral); font-size: 0.85rem; font-weight: 600;
    box-shadow: 3px 3px 0 var(--amber); margin-bottom: 26px;
}
.hero-title { font-size: clamp(2.6rem, 5.8vw, 4.4rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; margin-bottom: 22px; }
.hero-lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 50px; }
.hero-metrics { display: flex; gap: 20px; flex-wrap: wrap; }
.metric {
    display: flex; flex-direction: column; padding: 16px 22px;
    background: var(--surface); border: 2px solid var(--line); border-radius: 14px; box-shadow: 3px 3px 0 var(--line);
}
.metric-num { font-size: 1.8rem; font-weight: 800; }
.metric-label { color: var(--ink-soft); font-size: 0.82rem; }

/* Hero visual: iPhone-style device */
.hero-visual { position: relative; display: grid; place-items: center; }
.device {
    position: relative; width: 272px; height: 552px;
    background: #fff; border-radius: 46px; padding: 14px;
    border: 3px solid var(--line); box-shadow: 10px 10px 0 var(--line);
    animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
.device-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 120px; height: 26px; background: var(--line); border-radius: 0 0 16px 16px; z-index: 2; }
.device-screen { width: 100%; height: 100%; border-radius: 34px; background: var(--bg-alt); padding: 46px 18px 18px; overflow: hidden; border: 1px solid var(--border); }
.dev-top { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--ink-soft); margin-bottom: 22px; }
.dev-icons { display: flex; gap: 6px; }
.dev-title { font-size: 1.7rem; font-weight: 800; margin-bottom: 18px; }
.dev-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.tile { border-radius: 16px; padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; font-size: 0.8rem; color: #fff; font-weight: 700; border: 2px solid var(--line); }
.tile i { font-size: 1.2rem; }
.tile-a { background: var(--coral); }
.tile-b { background: var(--amber); color: var(--ink); }
.tile-c { background: var(--teal); }
.tile-d { background: var(--violet); }
.dev-card { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 16px; }
.dev-card-bar { height: 10px; border-radius: 6px; background: var(--bg-alt); border: 1px solid var(--border); margin-bottom: 10px; }
.dev-card-bar.short { width: 60%; }

.float-badge {
    position: absolute; display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 12px; font-size: 0.85rem; font-weight: 700;
    background: #fff; border: 2px solid var(--line); box-shadow: 4px 4px 0 var(--line);
}
.badge-1 { top: 50px; left: -14px; color: var(--teal); animation: floaty 5s ease-in-out infinite; }
.badge-2 { bottom: 64px; right: -14px; color: var(--coral); animation: floaty 7s ease-in-out infinite reverse; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); background: var(--ink); }
.marquee-track {
    display: flex; gap: 28px; white-space: nowrap; padding: 18px 0;
    font-size: 1.3rem; font-weight: 700; color: var(--bg);
    animation: scroll 22s linear infinite;
}
.marquee-track span:nth-child(3n+1) { color: var(--amber); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Section head ---------- */
.section-head { margin-bottom: 60px; max-width: 640px; }
.kicker {
    display: inline-flex; align-items: center; gap: 8px;
    text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; font-weight: 700;
    color: var(--coral); margin-bottom: 14px;
}
.kicker::before { content: ''; width: 28px; height: 2px; background: var(--coral); }
.section-head h2 { font-size: clamp(2.1rem, 4.2vw, 3rem); letter-spacing: -0.025em; font-weight: 800; }

/* ---------- About ---------- */
.about { background: var(--bg-alt); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-copy p { color: var(--ink-soft); margin-bottom: 18px; font-size: 1.08rem; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 999px;
    background: var(--surface); border: 2px solid var(--line); font-size: 0.9rem; font-weight: 500;
    box-shadow: 2px 2px 0 var(--line);
}
.chip i { color: var(--coral); }
.about-panel { background: var(--ink); border: 3px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-hard); }
.panel-head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: #2a2420; border-bottom: 1px solid rgba(255,255,255,0.1); }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; } .dot.amber { background: #ffbd2e; } .dot.green { background: #27c93f; }
.panel-file { margin-left: auto; color: #b8afa6; font-size: 0.85rem; font-family: 'Sora', sans-serif; }
.code { padding: 24px; font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.92rem; line-height: 1.9; color: #f3ece0; white-space: pre-wrap; }
.code .kw { color: #ffab2e; } .code .cls { color: #4fd1c5; } .code .fn { color: #ff8a6c; }

/* ---------- Work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.work-card { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.work-card:hover { transform: translate(-4px, -4px); box-shadow: var(--shadow-hard); }
.work-visual { height: 170px; display: grid; place-items: center; font-size: 3rem; color: #fff; border-bottom: 2px solid var(--line); }
.work-visual.v1 { background: var(--coral); }
.work-visual.v2 { background: var(--amber); color: var(--ink); }
.work-visual.v3 { background: var(--teal); }
.work-body { padding: 26px 24px 30px; }
.work-body h3 { font-size: 1.35rem; margin-bottom: 10px; letter-spacing: -0.01em; }
.work-body p { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: 0.78rem; padding: 5px 12px; border-radius: 999px; background: var(--bg-alt); color: var(--ink); border: 1.5px solid var(--line); font-weight: 500; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 34px 30px; transition: transform 0.2s, box-shadow 0.2s; }
.service-card:hover { transform: translate(-4px, -4px); box-shadow: var(--shadow-hard); }
.service-card.featured { background: var(--amber); }
.service-icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-size: 1.5rem; margin-bottom: 22px; border: 2px solid var(--line); }
.service-card.featured .service-icon { background: var(--coral); color: #fff; }
.service-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.service-card > p { color: var(--ink-soft); margin-bottom: 20px; }
.service-card.featured > p { color: #5a4620; }
.service-card ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.service-card li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; font-weight: 500; }
.service-card li i { color: var(--coral); font-size: 0.85rem; }
.service-card.featured li i { color: var(--ink); }

/* ---------- Contact ---------- */
.contact { background: var(--bg-alt); border-top: 2px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.info-card { display: flex; align-items: center; gap: 18px; background: var(--surface); border: 2px solid var(--line); border-radius: 16px; padding: 22px; transition: transform 0.2s, box-shadow 0.2s; }
.info-card:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--line); }
.info-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--coral); color: #fff; font-size: 1.15rem; flex-shrink: 0; border: 2px solid var(--line); }
.info-label { display: block; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-soft); margin-bottom: 4px; font-weight: 600; }
.info-value { font-weight: 600; }
.contact-form { background: var(--surface); border: 3px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-hard); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 14px 16px; border-radius: 12px;
    background: var(--bg); border: 2px solid var(--line); color: var(--ink);
    font-family: inherit; font-size: 0.95rem; transition: box-shadow 0.2s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--ink-soft); }
.form-group input:focus, .form-group textarea:focus { outline: none; box-shadow: 3px 3px 0 var(--coral); }
.form-group textarea { resize: vertical; }

/* ---------- Footer ---------- */
.footer { border-top: 2px solid var(--line); background: var(--ink); color: var(--bg); padding-top: 64px; }
.footer .logo-text { color: var(--bg); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; padding-bottom: 44px; }
.footer-brand p { color: #b8afa6; margin-top: 16px; max-width: 340px; }
.footer-col h4 { margin-bottom: 18px; font-size: 1.05rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col li { color: #b8afa6; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; transition: color 0.25s; }
.footer-col a:hover { color: var(--amber); }
.footer-col i { color: var(--coral); width: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 24px; text-align: center; color: #b8afa6; font-size: 0.9rem; }

/* ---------- Legal pages ---------- */
.policy-section { padding: 160px 0 100px; }
.policy-header { text-align: center; margin-bottom: 50px; }
.policy-header h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -0.025em; font-weight: 800; }
.policy-content { max-width: 820px; margin: 0 auto; background: var(--surface); border: 3px solid var(--line); border-radius: var(--radius); padding: 44px; box-shadow: var(--shadow-hard); }
.policy-content h2 { font-size: 1.4rem; margin: 30px 0 12px; color: var(--coral); font-family: 'Sora', sans-serif; }
.policy-content p { color: var(--ink-soft); margin-bottom: 14px; }
.policy-content a { color: var(--coral); font-weight: 600; }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive: Tablet ---------- */
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; gap: 50px; }
    .about-grid { grid-template-columns: 1fr; }
    .work-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ---------- Responsive: Mobile ---------- */
@media (max-width: 640px) {
    .section { padding: 80px 0; }
    .nav-menu {
        position: fixed; top: 72px; right: 16px; left: 16px;
        flex-direction: column; gap: 20px; padding: 28px;
        background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius);
        box-shadow: var(--shadow-hard);
        transform: translateY(-20px); opacity: 0; pointer-events: none; transition: all 0.3s ease;
    }
    .nav-menu.active { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
    .work-grid, .services-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .hero-metrics { gap: 12px; }
    .metric { padding: 12px 16px; }
    .metric-num { font-size: 1.4rem; }
    .device { width: 230px; height: 470px; }
    .policy-content { padding: 28px 20px; }
}
