/* 1. Reset, Font, dan Variabel */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.7;
    color: #444;
    background-color: #ffffff;
}

:root {
    --primary-color: #0d47a1;
    --secondary-color: #ffb300;
    --accent-bg: #f5f8ff;
    --text-color: #212121;
    --shadow-deep: rgba(13, 71, 161, 0.2);
    --shadow-light: rgba(0, 0, 0, 0.05);
    --light-bg: #ffffff;
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto;
}

/* 2. Header dan Navigasi */
header {
    background: var(--light-bg);
    box-shadow: 0 2px 8px var(--shadow-light);
    padding: 18px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.4s, box-shadow 0.4s;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary-color);
}

.logo i {
    color: var(--secondary-color);
    margin-right: 5px;
}

header nav {
    display: block;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav ul li {
    display: inline-block;
    margin-left: 35px;
}

header nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: var(--primary-color);
}

/* Hamburger button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* 3. Typography dan Judul Section */
section {
    padding: 100px 0;
    text-align: center;
}

.section-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 70px;
    font-weight: 800;
    color: var(--text-color);
}

/* 4. Tombol */
.btn {
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
    color: white;
    box-shadow: 0 12px 30px rgba(13, 71, 161, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #08367c 0%, #0d47a1 100%);
    transform: translateY(-3px);
    box-shadow: 0 18px 35px rgba(13, 71, 161, 0.35);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: #ffc94d;
    transform: translateY(-2px);
}

.large-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    margin-top: 30px;
}

/* 5. Hero */
.hero {
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(13, 71, 161, 0.12), transparent 35%),
        radial-gradient(circle at top right, rgba(255, 179, 0, 0.12), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    padding: 220px 0 120px;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(13, 71, 161, 0.08);
    filter: blur(80px);
    border-radius: 50%;
    top: 40px;
    left: -80px;
}

.hero::after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    background: rgba(255, 179, 0, 0.10);
    filter: blur(80px);
    border-radius: 50%;
    bottom: 20px;
    right: -60px;
}

.tagline {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    max-width: 900px;
    margin: 0 auto 20px;
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-color);
}

.subtitle {
    font-size: 1.25rem;
    max-width: 750px;
    margin: 0 auto 30px;
    color: #666;
    font-weight: 300;
}

/* 6. Statistik */
.statistik {
    background-color: var(--accent-bg);
    padding: 60px 0;
}

.stat-grid {
    display: flex;
    justify-content: space-around;
}

.stat-item {
    flex: 1;
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
}

.stat-item p {
    font-size: 1.1rem;
    color: #666;
}

/* 7. Layanan */
.layanan {
    background: #ffffff;
}

.layanan-grid {
    display: flex;
    justify-content: space-around;
    gap: 30px;
}

.layanan-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 42px 32px;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(17, 24, 39, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    text-align: left;
    border: 1px solid rgba(13, 71, 161, 0.08);
    border-bottom: 5px solid var(--primary-color);
}

.layanan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 50px rgba(13, 71, 161, 0.16);
    background: #fff;
}

.card-icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.12), rgba(255, 179, 0, 0.12));
    color: var(--primary-color);
    margin-bottom: 25px;
    transition: all 0.35s ease;
}

.layanan-card:hover .card-icon-wrapper {
    color: var(--primary-color);
    transform: scale(1.1) rotate(-5deg);
}

.layanan-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    margin-top: 0;
    color: var(--text-color);
}

/* 8. Portofolio */
.portofolio {
    background-color: #fcfdfe;
    overflow: hidden;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 80px;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
    padding: 32px;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.04);
}

.project-item.reversed {
    flex-direction: row-reverse;
}

.project-info {
    flex: 1;
    text-align: left;
}

.project-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(13, 71, 161, 0.05);
    line-height: 1;
    margin-bottom: -30px;
}

.project-category {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-info h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 15px 0;
}

.project-info p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.8;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-stack span {
    background: #eef2f7;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

.tech-stack i {
    color: #28a745;
    margin-right: 5px;
}

.project-visual {
    flex: 1.2;
    perspective: 1000px;
}

.mockup-frame {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(13, 71, 161, 0.18);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    background: #ffffff;
    padding: 12px;
    border: 1px solid rgba(13, 71, 161, 0.08);
}

.project-visual img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.project-item:hover .mockup-frame {
    transform: translateY(-15px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 0 40px 80px rgba(13, 71, 161, 0.25);
}

.project-item.reversed:hover .mockup-frame {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
}

/* 9. Paket */
.paket {
    background: var(--accent-bg);
}

.paket-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.paket-card {
    flex: 1;
    max-width: 350px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px var(--shadow-light);
    text-align: left;
    transition: transform 0.3s;
    position: relative;
}

.paket-card:hover {
    transform: scale(1.05);
}

.paket-card.premium {
    border: 4px solid var(--primary-color);
    box-shadow: 0 15px 35px var(--shadow-deep);
}

.paket-card h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-top: 0;
}

.price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.recommended-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    font-weight: 700;
}

.paket-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.paket-card ul li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    color: #555;
    font-weight: 400;
}

.paket-card ul li i {
    margin-right: 10px;
    color: #28a745;
}

.paket-card ul li.disabled i {
    color: #dc3545;
}

/* 10. FAQ */
.faq {
    background: #ffffff;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid rgba(13, 71, 161, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.faq-toggle {
    display: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: var(--accent-bg);
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: background 0.3s;
}

.faq-question i {
    transition: transform 0.3s;
    font-size: 1rem;
    color: var(--secondary-color);
}

.faq-question:hover {
    background: #e9efff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    background: white;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-answer p {
    padding: 15px 0;
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.faq-toggle:checked + .faq-question {
    background: var(--primary-color);
    color: white;
}

.faq-toggle:checked + .faq-question i {
    transform: rotate(180deg);
    color: white;
}

.faq-toggle:checked + .faq-question + .faq-answer {
    max-height: 300px;
    padding: 0 25px 20px 25px;
}

/* 11. Kontak */
.kontak-form-section {
    background: #ffffff;
    padding: 100px 0;
}

.kontak-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    text-align: left;
    margin-top: 50px;
}

.kontak-info h3,
.kontak-form h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 25px;
}

.kontak-info p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #666;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 20px;
    width: 30px;
    text-align: center;
}

.info-item p {
    margin: 0;
    font-weight: 500;
    color: var(--text-color);
}

.social-links-kontak {
    margin-top: 30px;
}

.social-links-kontak a {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-right: 20px;
    transition: color 0.3s;
}

.social-links-kontak a:hover {
    color: var(--secondary-color);
}

.kontak-form {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 40px;
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(13, 71, 161, 0.10);
    border: 1px solid rgba(13, 71, 161, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

.kontak-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.kontak-form input[type="text"],
.kontak-form input[type="email"],
.kontak-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #d9e2f2;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.kontak-form input:focus,
.kontak-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(13, 71, 161, 0.10);
}

.kontak-form textarea {
    resize: vertical;
}

.kontak-form .btn-primary {
    width: 100%;
    margin-top: 10px;
}

/* 12. Sticky WhatsApp */
.sticky-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.6);
    z-index: 1001;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sticky-cta:hover {
    transform: scale(1.1);
}

/* 13. Footer */
footer {
    background: #1a1a1a;
    color: #f0f0f0;
    padding-top: 80px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    text-align: left;
    margin-bottom: 50px;
}

.footer-col-about .logo {
    color: white;
    margin-bottom: 20px;
}

.footer-col-about p {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 25px;
}

.social-links-footer a {
    font-size: 1.6rem;
    color: #e0e0e0;
    margin-right: 20px;
    transition: color 0.3s;
}

.social-links-footer a:hover {
    color: var(--secondary-color);
}

.footer-col-links h4,
.footer-col-contact h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    color: white;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-col-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col-links ul li {
    margin-bottom: 12px;
}

.footer-col-links ul li a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col-links ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-col-contact p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #b0b0b0;
}

.footer-col-contact p i {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-right: 15px;
    flex-shrink: 0;
    margin-top: 4px;
}

.footer-bottom {
    background: #111111;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #2a2a2a;
}

.footer-bottom p {
    color: #888888;
    margin: 0;
}

/* Hover proyek */
.project-visual a {
    cursor: pointer;
    display: block;
}

.mockup-frame img {
    transition: transform 0.4s ease;
}

.mockup-frame:hover img {
    transform: scale(1.03);
}

.tech-stack a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.tech-stack a:hover {
    opacity: 0.8;
}

/* Tablet */
@media (max-width: 1024px) {
    .container {
        width: 90%;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .section-heading {
        font-size: 2.2rem;
    }

    .hero {
        padding-top: 150px;
        padding-bottom: 60px;
    }

    section {
        padding: 60px 0;
    }

    .layanan-grid {
        flex-wrap: wrap;
    }

    .layanan-card {
        flex: 1 1 45%;
        margin-bottom: 20px;
    }

    header nav ul li {
        margin-left: 15px;
    }

    .project-item,
    .project-item.reversed {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 80px;
        text-align: center;
    }

    .project-info {
        order: 1;
        text-align: center;
    }

    .project-visual {
        order: 2;
        width: 100%;
    }

    .tech-stack {
        justify-content: center;
    }

    .project-info h4 {
        font-size: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    header {
        position: fixed;
        padding: 12px 0;
        background: #ffffff;
        width: 100%;
        top: 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 16px;
        width: 100%;
        box-sizing: border-box;
        position: relative;
    }

    .logo {
        font-size: 1rem;
        font-weight: 800;
        margin: 0;
    }

    .menu-toggle {
        display: block;
        z-index: 1100;
    }

    header nav {
        position: absolute;
        top: 100%;
        right: 16px;
        background: white;
        width: 220px;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.12);
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    header nav.active {
        max-height: 400px;
        opacity: 1;
        visibility: visible;
    }

    header nav ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 0;
    }

    header nav ul li {
        display: block;
        margin: 0;
        border-bottom: 1px solid #eee;
    }

    header nav ul li:last-child {
        border-bottom: none;
    }

    header nav ul li a {
        display: block;
        padding: 14px 18px;
        font-size: 0.95rem;
        font-weight: 600;
        color: #333;
        text-align: left;
    }

    header nav ul li a.btn-secondary {
        display: block;
        background: var(--secondary-color);
        color: var(--text-color);
        border-radius: 0;
        padding: 14px 18px;
        font-size: 0.95rem;
        border: none;
    }

    .hero {
        padding-top: 110px !important;
        padding-bottom: 60px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .section-heading {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .layanan-grid,
    .paket-grid {
        flex-direction: column;
    }

    .layanan-card,
    .paket-card {
        max-width: 100%;
    }

    .kontak-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sticky-cta {
        right: 15px;
        bottom: 20px;
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 16px 18px;
    }

    .kontak-form {
        padding: 25px;
    }

    .large-btn {
        padding: 14px 24px;
        font-size: 1rem;
    }
}