/* ===========================================================
   Vijaykumar D Ahir — iOS Developer
   Light, clean & modern theme. Fully responsive.
   =========================================================== */

:root {
    --bg: #f6f7fb;
    --bg-2: #ffffff;
    --panel: #ffffff;
    --ink: #141821;
    --ink-soft: #3b4254;
    --muted: #727a8c;
    --line: #e7e9f0;
    --line-2: #eef0f6;
    --primary: #4f46e5;      /* indigo */
    --primary-2: #06b6d4;    /* cyan   */
    --accent: #f97316;       /* orange */
    --ring: rgba(79, 70, 229, 0.18);
    --shadow-sm: 0 2px 10px rgba(20, 24, 33, 0.05);
    --shadow: 0 18px 44px -20px rgba(20, 24, 33, 0.22);
    --shadow-lg: 0 30px 70px -28px rgba(79, 70, 229, 0.28);
    --radius: 22px;
    --radius-sm: 14px;
    --shell: 1180px;
    --font-head: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 24px; border-radius: 999px;
    font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
    cursor: pointer; border: 1px solid transparent;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.btn-solid {
    color: #fff;
    background: linear-gradient(120deg, var(--primary), #6d28d9);
    box-shadow: 0 14px 30px -12px var(--ring);
}
.btn-solid:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -14px var(--ring); }
.btn-ghost { color: var(--ink); background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Navigation ---------- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; }
.brand-mark {
    width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center; font-size: 0.95rem; color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 8px 20px -8px var(--ring);
}
.brand-name { font-size: 1.05rem; }

.nav-links { display: flex; gap: 6px; }
.nav-link {
    position: relative; padding: 8px 16px; border-radius: 999px;
    color: var(--muted); font-weight: 500; font-size: 0.95rem;
    transition: color .2s ease, background .2s ease;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--line-2); }

.nav-cta {
    padding: 10px 20px; border-radius: 999px;
    font-family: var(--font-head); font-weight: 600; font-size: 0.9rem;
    color: #fff; background: linear-gradient(120deg, var(--primary), #6d28d9);
    box-shadow: 0 10px 22px -12px var(--ring);
    transition: transform .2s ease, box-shadow .2s ease;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px var(--ring); }

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

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 110px; overflow: hidden; }
.aurora {
    position: absolute; inset: -20% -10% auto -10%; height: 120%;
    background:
        radial-gradient(38% 46% at 18% 18%, rgba(79, 70, 229, 0.14), transparent 70%),
        radial-gradient(40% 48% at 82% 8%, rgba(6, 182, 212, 0.14), transparent 70%),
        radial-gradient(42% 42% at 62% 78%, rgba(249, 115, 22, 0.1), transparent 70%);
    filter: blur(10px); z-index: 0; pointer-events: none;
    animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translateY(-10px) scale(1); } to { transform: translateY(20px) scale(1.05); } }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }

.tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
    color: var(--primary); background: #eef0ff;
    border: 1px solid #dcdcff;
}
.hero-title { font-size: clamp(2.4rem, 5.2vw, 4rem); margin: 22px 0 18px; font-weight: 700; }
.hero-title em {
    font-style: normal;
    background: linear-gradient(120deg, var(--primary), var(--primary-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { color: var(--ink-soft); font-size: 1.12rem; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 44px; }

.hero-metrics { display: flex; gap: 40px; }
.hero-metrics dt { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--ink); }
.hero-metrics dd { color: var(--muted); font-size: 0.9rem; }

/* Device mockup */
.hero-art { position: relative; display: grid; place-items: center; }
.device {
    position: relative; width: 272px; height: 560px; border-radius: 46px;
    background: #0f1524;
    border: 10px solid #1b2234; padding: 0;
    box-shadow: var(--shadow-lg);
    animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.device-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 120px; height: 26px; background: #0f1524; border-radius: 0 0 16px 16px; z-index: 2; }
.device-screen {
    width: 100%; height: 100%; border-radius: 36px; overflow: hidden;
    background: linear-gradient(180deg, #ffffff, #f1f3fb);
    padding: 26px 20px 20px; display: flex; flex-direction: column;
}
.dv-top { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--ink-soft); margin-top: 4px; }
.dv-icons { display: flex; gap: 6px; }
.dv-head { margin: 26px 0 20px; }
.dv-head h3 { font-size: 1.6rem; color: var(--ink); }
.dv-head p { color: var(--muted); font-size: 0.85rem; }
.dv-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dv-tile {
    aspect-ratio: 1; border-radius: 16px; display: grid; place-items: center;
    font-size: 1.3rem; color: #fff; box-shadow: 0 8px 18px -10px rgba(20,24,33,.4);
}
.dv-tile.t1 { background: linear-gradient(135deg, #4f46e5, #6d28d9); }
.dv-tile.t2 { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.dv-tile.t3 { background: linear-gradient(135deg, #f97316, #ea580c); }
.dv-tile.t4 { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.dv-tile.t5 { background: linear-gradient(135deg, #ec4899, #be185d); }
.dv-tile.t6 { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.dv-bar { margin-top: auto; display: grid; place-items: center; }
.dv-bar span { width: 120px; height: 5px; border-radius: 3px; background: rgba(20, 24, 33, 0.18); }

.float-chip {
    position: absolute; display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 14px; font-size: 0.82rem; font-weight: 600;
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.chip-a { top: 20%; left: -8%; color: var(--primary); }
.chip-b { bottom: 16%; right: -6%; color: var(--accent); }

/* ---------- Section head ---------- */
.head { max-width: 640px; margin-bottom: 48px; }
.eyebrow {
    display: inline-block; font-family: var(--font-head); font-weight: 600;
    font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--primary);
    margin-bottom: 14px;
}
.head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }

/* ---------- About ---------- */
.about { padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 40px; align-items: start; }
.about-lead p { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.chips span {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 999px; font-size: 0.88rem; font-weight: 500;
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.chips i { color: var(--primary); }

.about-card {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.ac-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.ac-row:first-child { padding-top: 0; }
.ac-k { color: var(--muted); font-size: 0.9rem; }
.ac-v { font-family: var(--font-head); font-weight: 600; }
.ac-btn {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
    font-family: var(--font-head); font-weight: 600; color: var(--primary);
    transition: gap .2s ease;
}
.ac-btn:hover { gap: 16px; }

/* ---------- Work ---------- */
.work { padding: 100px 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work-card {
    position: relative; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 32px 28px; overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.work-card::before {
    content: ''; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.work-card:hover { transform: translateY(-8px); border-color: var(--line); box-shadow: var(--shadow); }
.work-card:hover::before { transform: scaleX(1); }
.wc-icon {
    width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
    font-size: 1.5rem; color: #fff; margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
}
.work-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.work-card p { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 20px; }
.wc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.wc-tags span {
    font-size: 0.78rem; padding: 6px 12px; border-radius: 999px;
    background: var(--line-2); color: var(--ink-soft);
}

/* ---------- Services ---------- */
.services { padding: 100px 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
    position: relative; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 34px 28px; box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.s-num {
    position: absolute; top: 22px; right: 26px; font-family: var(--font-head);
    font-weight: 700; font-size: 2.4rem; color: var(--line-2);
}
.s-icon {
    width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
    font-size: 1.4rem; color: var(--primary); margin-bottom: 20px;
    background: #eef0ff; border: 1px solid #dcdcff;
}
.service h3 { font-size: 1.25rem; margin-bottom: 12px; }
.service > p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 20px; }
.service ul { list-style: none; display: grid; gap: 10px; }
.service li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--ink); }
.service li i { color: var(--primary-2); font-size: 0.8rem; }

/* ---------- Contact ---------- */
.contact { padding: 100px 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-intro > p { color: var(--ink-soft); margin: 10px 0 30px; max-width: 420px; }
.contact-list { list-style: none; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.ci {
    flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
    color: var(--primary); background: #eef0ff; border: 1px solid #dcdcff;
}
.contact-list small { display: block; color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-list a, .contact-list address { font-family: var(--font-head); font-weight: 500; font-style: normal; line-height: 1.5; }
.contact-list a:hover { color: var(--primary); }

.contact-form {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
    display: grid; gap: 18px;
}
.fl { display: grid; gap: 8px; }
.fl label { font-family: var(--font-head); font-weight: 500; font-size: 0.88rem; color: var(--ink-soft); }
.fl input, .fl textarea {
    width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
    background: #f8f9fc; border: 1px solid var(--line);
    color: var(--ink); font-family: var(--font-body); font-size: 0.95rem;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    resize: vertical;
}
.fl input::placeholder, .fl textarea::placeholder { color: #a2a9b8; }
.fl input:focus, .fl textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px var(--ring); }

/* ---------- Footer ---------- */
.footer { padding: 70px 0 30px; background: var(--bg); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { color: var(--muted); margin-top: 16px; max-width: 320px; }
.footer-col h4 { font-size: 1rem; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: grid; gap: 12px; }
.footer-col a, .footer-col li { color: var(--muted); font-size: 0.92rem; display: flex; align-items: center; gap: 10px; }
.footer-col a:hover { color: var(--primary); }
.footer-col i { color: var(--primary); width: 16px; }
.footer-bottom { padding-top: 26px; border-top: 1px solid var(--line); text-align: center; }
.footer-bottom p { color: var(--muted); font-size: 0.88rem; }

/* ---------- Policy pages ---------- */
.policy { padding: 150px 0 90px; }
.policy-head { max-width: 760px; margin-bottom: 36px; }
.policy-head h1 { font-size: clamp(2rem, 5vw, 3rem); }
.policy-head .eyebrow { margin-bottom: 16px; }
.policy-body {
    max-width: 820px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow);
}
.policy-body p { color: var(--ink-soft); margin-bottom: 16px; }
.policy-body h2 { font-size: 1.3rem; margin: 30px 0 12px; color: var(--ink); }
.policy-body a { color: var(--primary); }
.policy-body a:hover { text-decoration: underline; }
.back-home { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; color: var(--primary); font-family: var(--font-head); font-weight: 600; }
.back-home:hover { gap: 14px; }

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

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

@media (max-width: 720px) {
    .nav-cta { display: none; }
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed; inset: 76px 0 auto 0;
        flex-direction: column; gap: 4px; padding: 20px 24px 28px;
        background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(18px);
        border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
        transform: translateY(-120%); transition: transform .35s ease; z-index: 90;
    }
    .nav-links.open { transform: translateY(0); }
    .nav-link { width: 100%; padding: 14px 16px; }
    .hero { padding: 130px 0 80px; }
    .hero-metrics { gap: 28px; }
    .work-grid, .services-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .float-chip { display: none; }
    .policy-body { padding: 26px; }
}

@media (max-width: 420px) {
    .shell { padding: 0 18px; }
    .hero-metrics { flex-wrap: wrap; }
    .hero-metrics dt { font-size: 1.6rem; }
    .brand-name { font-size: 0.98rem; }
}
