/* ===========================================================================
   Indevidea Software — stylesheet
   Palette: dark navy, white, light gray, electric blue, subtle green
   =========================================================================== */

:root {
    --navy:        #0b1530;
    --navy-2:      #111d3d;
    --navy-soft:   #1a274d;
    --white:       #ffffff;
    --gray-50:     #f5f7fb;
    --gray-100:    #eef1f7;
    --gray-300:    #d3dae6;
    --gray-500:    #6b7690;
    --gray-700:    #3a445e;
    --ink:         #131c33;
    --blue:        #2f6bff;
    --blue-light:  #5b8bff;
    --green:       #25c08a;
    --radius:      16px;
    --radius-sm:   10px;
    --shadow:      0 12px 30px rgba(11, 21, 48, 0.08);
    --shadow-lg:   0 24px 60px rgba(11, 21, 48, 0.16);
    --maxw:        1140px;
    --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
a { color: var(--blue); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block; padding: 13px 26px; border-radius: 999px;
    font-weight: 600; font-size: 0.98rem; cursor: pointer; border: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(47,107,255,.35); }
.btn-primary:hover { background: #1f5bf0; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(47,107,255,.45); }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn-block { width: 100%; text-align: center; }

.eyebrow {
    display: inline-block; text-transform: uppercase; letter-spacing: .12em;
    font-size: .78rem; font-weight: 700; color: var(--blue);
    background: rgba(47,107,255,.1); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}

/* ---------- Navbar ---------- */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(11,21,48,.92); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
    display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
    background: linear-gradient(135deg, var(--blue), var(--green));
    color: #fff; font-weight: 800; font-size: .85rem;
}
.brand-name { color: #fff; font-weight: 700; font-size: 1.1rem; }
.brand-accent { color: var(--blue-light); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: rgba(255,255,255,.8); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: #fff; }
.nav-cta { background: var(--blue); color: #fff !important; padding: 9px 18px; border-radius: 999px; }
.nav-cta:hover { background: #1f5bf0; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
    background: radial-gradient(1200px 500px at 80% -10%, rgba(47,107,255,.25), transparent 60%),
                linear-gradient(180deg, var(--navy), var(--navy-2));
    color: #fff; padding: 90px 0 100px;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.78); font-size: 1.15rem; margin: 20px 0 30px; max-width: 36ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Dashboard mockup */
.mock-window {
    background: #0e1a3a; border: 1px solid rgba(255,255,255,.1); border-radius: 14px;
    box-shadow: var(--shadow-lg); overflow: hidden; transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: rgba(255,255,255,.05); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ff5f57; } .dot.amber { background: #febc2e; } .dot.green { background: #28c840; }
.mock-url { margin-left: 12px; font-size: .78rem; color: rgba(255,255,255,.5); }
.mock-body { padding: 20px; display: grid; gap: 18px; }
.mock-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.stat-card { background: rgba(255,255,255,.06); border-radius: 10px; padding: 14px; display: grid; gap: 4px; }
.stat-label { font-size: .72rem; color: rgba(255,255,255,.55); }
.stat-value { font-size: 1.5rem; font-weight: 800; color: #fff; }
.mock-chart { display: flex; align-items: flex-end; gap: 10px; height: 120px; padding: 10px 4px 0; }
.mock-chart span { flex: 1; background: linear-gradient(180deg, var(--blue-light), var(--blue)); border-radius: 6px 6px 0 0; }
.mock-chart span:nth-child(even) { background: linear-gradient(180deg, #5fe3b4, var(--green)); }
.mock-rows { display: grid; gap: 8px; }
.mock-row { height: 12px; border-radius: 6px; background: rgba(255,255,255,.1); }
.mock-row.short { width: 60%; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--gray-50); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-sub { color: var(--gray-500); font-size: 1.08rem; margin-top: 12px; }

.grid { display: grid; gap: 22px; }

/* ---------- Cards ---------- */
.card {
    background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius);
    box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.services-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.service-card { padding: 24px; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--gray-500); font-size: .95rem; }
.service-card::before {
    content: ""; display: block; width: 38px; height: 4px; border-radius: 4px;
    background: linear-gradient(90deg, var(--blue), var(--green)); margin-bottom: 16px;
}

/* ---------- Projects ---------- */
.projects-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.project-card { overflow: hidden; display: flex; flex-direction: column; }
.project-thumb { position: relative; aspect-ratio: 16/9; background: var(--navy-2); overflow: hidden; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge {
    position: absolute; top: 12px; left: 12px; background: rgba(37,192,138,.95); color: #062b1f;
    font-size: .72rem; font-weight: 700; padding: 5px 11px; border-radius: 999px;
    text-transform: uppercase; letter-spacing: .05em;
}
.badge.inline { position: static; display: inline-block; margin-left: 8px; vertical-align: middle; }
.project-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.project-body p { color: var(--gray-500); font-size: .95rem; flex: 1; }
.link-arrow { font-weight: 600; font-size: .92rem; }
.link-arrow:hover { color: var(--green); }

/* ---------- Case study modules + detail ---------- */
.module-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 28px; }
.module-card { padding: 22px; }
.module-icon {
    display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 11px;
    background: rgba(47,107,255,.1); color: var(--blue); font-size: 1.2rem; margin-bottom: 12px;
}
.module-card h4 { margin-bottom: 6px; font-size: 1.02rem; }
.module-card p { color: var(--gray-500); font-size: .9rem; }

.detail-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.detail-block { padding: 26px; }
.detail-block h3 { margin-bottom: 12px; color: var(--blue); font-size: 1.1rem; }
.detail-block p { color: var(--gray-700); }
.detail-block ul { list-style: none; display: grid; gap: 8px; }
.detail-block li { position: relative; padding-left: 22px; color: var(--gray-700); }
.detail-block li::before { content: "\2713"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ---------- Process ---------- */
.process-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.process-step {
    background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius);
    padding: 26px; box-shadow: var(--shadow); position: relative;
}
.step-num {
    display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--green)); color: #fff; font-weight: 800;
    margin-bottom: 14px;
}
.process-step h4 { margin-bottom: 6px; }
.process-step p { color: var(--gray-500); font-size: .95rem; }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.about-inner .lead { font-size: 1.15rem; color: var(--gray-700); margin: 18px 0; }
.about-inner p { color: var(--gray-500); }
.about-card { padding: 28px; }
.about-card h4 { margin-bottom: 14px; }
.about-card ul { list-style: none; display: grid; gap: 10px; }
.about-card li { position: relative; padding-left: 24px; color: var(--gray-700); }
.about-card li::before { content: "\2713"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ---------- Contact ---------- */
.section-cta {
    background: radial-gradient(900px 400px at 50% -20%, rgba(47,107,255,.25), transparent 60%),
                linear-gradient(180deg, var(--navy-2), var(--navy));
    color: #fff;
}
.section-cta h2 { color: #fff; }
.section-cta .section-sub { color: rgba(255,255,255,.75); }
.section-cta .section-sub a { color: var(--blue-light); }
.contact-inner { max-width: 760px; margin: 0 auto; }
.contact-form { padding: 30px; display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: grid; gap: 7px; }
.form-group label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 14px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
    font-family: var(--font); font-size: .98rem; color: var(--ink); background: #fff; transition: border .15s ease, box-shadow .15s ease;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,107,255,.18);
}
.form-group textarea { resize: vertical; }
.field-error { color: #ff9a9a; font-size: .82rem; }
.input-invalid { border-color: #ff6b6b !important; }

.alert { max-width: 760px; margin: 0 auto 18px; padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 500; }
.alert-success { background: rgba(37,192,138,.15); color: #b9f5dd; border: 1px solid rgba(37,192,138,.4); }
.alert-error { background: rgba(255,107,107,.15); color: #ffd2d2; border: 1px solid rgba(255,107,107,.4); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 30px 0; border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-meta { font-size: .9rem; }
.footer a { color: var(--blue-light); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero .lead { max-width: none; }
    .mock-window { transform: none; }
    .about-inner { grid-template-columns: 1fr; }
    .nav-links {
        position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
        background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.1);
        max-height: 0; overflow: hidden; transition: max-height .3s ease;
    }
    .nav-links.open { max-height: 420px; }
    .nav-links a { padding: 14px 24px; width: 100%; border-top: 1px solid rgba(255,255,255,.06); }
    .nav-cta { border-radius: 0; }
    .nav-toggle { display: block; }
}
@media (max-width: 560px) {
    .form-row { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
    .hero { padding: 64px 0 72px; }
}

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