/* Daffa Media Digital - Company Profile */
:root {
    --blue: #0a8fd8;
    --blue-dark: #0b5fa8;
    --navy: #14233f;
    --slate: #3d4654;
    --text: #4a5568;
    --muted: #7a8699;
    --line: #e4e9f0;
    --bg: #ffffff;
    --bg-soft: #f5f8fb;
    --gradient: linear-gradient(135deg, #12a3e6 0%, #0b5fa8 100%);
    --radius: 14px;
    --shadow: 0 10px 30px rgba(20, 35, 63, .08);
    --font-head: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--navy);
    line-height: 1.25;
}

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--blue); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: 34px; font-weight: 700; margin-bottom: 14px; }
.section-head p { color: var(--muted); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 8px;
    border: 1.5px solid transparent;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .3px;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 8px 20px rgba(10, 143, 216, .28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(10, 143, 216, .36); }
.btn-outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* Header */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(20, 35, 63, .05); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; }
/* Potong bagian monogram "DMD" dari logo persegi */
.brand-mark {
    width: 78px;
    height: 44px;
    background: url(../img/logo.png) no-repeat -10px -14px / 98px 98px;
    mix-blend-mode: multiply;
    flex-shrink: 0;
}
.brand-text { font-family: var(--font-head); line-height: 1.1; }
.brand-text strong { display: block; font-size: 18px; font-weight: 700; letter-spacing: 4px; color: var(--navy); }
.brand-text span { font-size: 9px; font-weight: 500; letter-spacing: 3.2px; color: var(--blue-dark); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 500;
    color: var(--slate);
    position: relative;
    padding: 6px 0;
}
.nav a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: var(--blue);
    transition: width .25s;
}
.nav a:not(.btn):hover, .nav a.active { color: var(--blue); }
.nav a:not(.btn):hover::after, .nav a.active::after { width: 100%; }
.nav .btn { padding: 10px 22px; }

.nav-toggle { display: none; width: 42px; height: 42px; border: 0; background: none; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--navy); transition: transform .25s, opacity .25s; }
.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: 172px 0 110px;
    background: linear-gradient(180deg, #f3f8fc 0%, #ffffff 100%);
    overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero h1 { font-size: 48px; font-weight: 700; letter-spacing: -.5px; margin-bottom: 22px; }
.hero h1 em { font-style: normal; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 17px; color: var(--muted); max-width: 520px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; justify-self: center; width: 100%; max-width: 420px; }
.hero-card {
    position: relative;
    z-index: 1;
    background: #fafbfc;
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 30px 60px rgba(20, 35, 63, .12);
    border: 1px solid #fff;
}
/* clip-path membuang garis bingkai tipis di tepi file logo */
.hero-card img { height: auto; mix-blend-mode: multiply; clip-path: inset(3%); }

/* Motif piksel dari logo */
.pixel { position: absolute; background: var(--gradient); border-radius: 3px; animation: float 6s ease-in-out infinite; }
.pixel.p1 { width: 46px; height: 46px; top: -26px; right: -18px; }
.pixel.p2 { width: 24px; height: 24px; top: 34px; right: -46px; opacity: .7; animation-delay: -2s; }
.pixel.p3 { width: 14px; height: 14px; top: -48px; right: 44px; opacity: .5; animation-delay: -4s; }
.pixel.p4 { width: 60px; height: 60px; bottom: -28px; left: -28px; background: var(--slate); opacity: .9; animation-delay: -1s; }
.pixel.p5 { width: 22px; height: 22px; bottom: 50px; left: -58px; background: var(--slate); opacity: .45; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Tentang */
.about .container { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about h2 { font-size: 34px; margin-bottom: 18px; }
.about p + p { margin-top: 14px; }
.about-points { display: grid; gap: 18px; }
.point {
    display: flex;
    gap: 18px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .2s, box-shadow .2s;
}
.point:hover { border-color: transparent; box-shadow: var(--shadow); }
.point h3 { font-size: 16px; margin-bottom: 4px; }
.point p { font-size: 14.5px; color: var(--muted); }

.icon {
    width: 48px; height: 48px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(10, 143, 216, .1);
    color: var(--blue);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Layanan */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px 30px;
    position: relative;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card h3 { font-size: 18px; margin: 22px 0 10px; }
.card p { font-size: 15px; color: var(--muted); }

/* Proses */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding-top: 24px; border-top: 2px solid var(--line); }
.step::before {
    counter-increment: step;
    content: "0" counter(step);
    display: block;
    font-family: var(--font-head);
    font-size: 34px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}
.step::after { content: ""; position: absolute; top: -2px; left: 0; width: 44px; height: 2px; background: var(--blue); }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* Solusi */
.solution { display: flex; flex-direction: column; }
.solution .tag {
    align-self: flex-start;
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--blue-dark);
    background: rgba(10, 143, 216, .1);
    padding: 5px 12px;
    border-radius: 20px;
}
.solution h3 { margin-top: 18px; }
.solution ul { margin-top: 16px; display: grid; gap: 8px; }
.solution li { font-size: 14.5px; padding-left: 22px; position: relative; }
.solution li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }

/* Tampilan depan situs di kartu portofolio */
.thumb {
    display: block;
    margin: -34px -30px 24px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--gradient);
    border-bottom: 1px solid var(--line);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s; }
.card:hover .thumb img { transform: scale(1.04); }
.thumb-empty {
    display: grid;
    place-items: center;
    height: 100%;
    font-family: var(--font-head);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #fff;
}

.card-link {
    margin-top: auto;
    padding-top: 20px;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 600;
    color: var(--blue-dark);
    word-break: break-all;
}
.card-link:hover { color: var(--blue); }

/* CTA */
.cta { padding: 0 0 96px; }
.cta-box {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 56px;
    border-radius: 22px;
    background: linear-gradient(135deg, #14233f 0%, #0b5fa8 100%);
    color: #cfdcec;
}
.cta-box h2 { color: #fff; font-size: 28px; margin-bottom: 8px; }
.cta-box .btn { background: #fff; color: var(--blue-dark); flex-shrink: 0; position: relative; z-index: 1; }
.cta-box .btn:hover { transform: translateY(-2px); }
.cta-box::before, .cta-box::after { content: ""; position: absolute; border-radius: 4px; background: rgba(255, 255, 255, .07); }
.cta-box::before { width: 120px; height: 120px; right: 210px; top: -40px; }
.cta-box::after { width: 70px; height: 70px; right: 130px; bottom: -20px; }

/* Kontak */
.contact .container { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; }
.contact h2 { font-size: 34px; margin-bottom: 14px; }
.contact-list { margin-top: 32px; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: center; }
.contact-list small { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.contact-list strong { font-weight: 600; color: var(--navy); }

.form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 38px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field input, .field select, .field textarea {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    font-size: 15px;
    color: var(--navy);
    background: var(--bg-soft);
    border: 1.5px solid transparent;
    border-radius: 8px;
    outline: none;
    transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); background: #fff; }
.form .btn { width: 100%; }
.form-note { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }

.contact-list a { color: var(--blue-dark); }
.contact-list a:hover { color: var(--blue); }
.location { grid-column: 1 / -1; display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; }
.office, .map { position: relative; height: 400px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.office img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.office figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 48px 22px 18px;
    font-size: 14px;
    color: #dbe6f3;
    background: linear-gradient(180deg, transparent, rgba(20, 35, 63, .88));
}
.office figcaption strong { display: block; font-family: var(--font-head); font-size: 16px; color: #fff; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Footer */
.footer { background: var(--navy); color: #a9b7cc; padding: 64px 0 0; font-size: 14.5px; }
.footer .container { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.footer .brand-text strong { color: #fff; }
.footer .brand-text span { color: #5cc0f2; }
.footer-about { margin-top: 18px; max-width: 360px; }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 18px; }
.footer li { margin-bottom: 10px; }
.footer a:hover { color: #fff; }
.footer-bottom { margin-top: 56px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .08); text-align: center; font-size: 13px; }

/* Tombol WhatsApp melayang */
.wa-float {
    position: fixed;
    right: 22px; bottom: 22px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px 12px 14px;
    border-radius: 50px;
    background: #25d366;
    color: #fff;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 26px rgba(37, 211, 102, .4);
    transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(37, 211, 102, .5); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* Animasi muncul */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.show { opacity: 1; transform: none; }

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

@media (max-width: 960px) {
    section { padding: 72px 0; }
    .hero { padding: 132px 0 80px; }
    .hero .container, .about .container, .contact .container { grid-template-columns: 1fr; gap: 56px; }
    .location { grid-template-columns: 1fr; }
    .office, .map { height: 320px; }
    .hero h1 { font-size: 38px; }
    .hero-visual { max-width: 320px; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .cta-box { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
    .footer .container { grid-template-columns: 1fr 1fr; }
    .footer .container > div:first-child { grid-column: 1 / -1; }

    .nav-toggle { display: block; }
    .nav {
        position: absolute;
        top: 76px; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 24px 24px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 20px 30px rgba(20, 35, 63, .08);
        display: none;
    }
    .nav.open { display: flex; }
    .nav a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--line); }
    .nav a:not(.btn)::after { display: none; }
    .nav .btn { margin-top: 18px; }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 31px; }
    .section-head h2, .about h2, .contact h2 { font-size: 27px; }
    .grid-3, .steps, .form-row { grid-template-columns: 1fr; }
    .form-row { gap: 0; }
    .form { padding: 26px 20px; }
    .footer .container { grid-template-columns: 1fr; }
    .pixel.p2, .pixel.p5 { display: none; }
    .wa-float { right: 16px; bottom: 16px; padding: 14px; }
    .wa-float span { display: none; }
    .cta-box h2 { font-size: 23px; }
}
