:root {
    --primary: #1A1A2E;
    --accent: #E94560;
    --dark-blue: #0F3460;
    --bg-light: #F0F4FF;
    --white: #ffffff;
    --text-muted: #666;
    --navy: #1A1A2E;
    --transition: all 0.3s ease;
}


/* =========================================================
   RESET & BASE
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}


/* =========================================================
   HEADER & NAVBAR (BRAND DOMINAN & TAGLINE PRESISI)
   ========================================================= */

/* Styling Dasar Header */
#main-header {
    background-color: #0f172a; /* Warna latar belakang gelap yang elegan */
    color: #ffffff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar Flexbox Utama */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* =========================================================
   HEADER SCROLL ADJUSTMENT
   ========================================================= */

#main-header.scrolled .logo .logo-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
}

#main-header.scrolled .logo .logo-content .logo-name {
    font-size: 1.25rem !important;
}

#main-header.scrolled .logo .logo-content .logo-tagline {
    font-size: 0.48rem !important;
    margin-top: 2px !important;
}

#main-header.scrolled .logo .logo-content .logo-location {
    font-size: 0.42rem !important;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    font-size: 0.9rem;
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--accent);
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-accent {
    background: var(--dark-blue);
    color: var(--white);
    border: 1px solid var(--accent);
}

.btn-outline {
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-link {
    background: none;
    color: var(--accent);
    font-weight: bold;
    padding: 0;
    margin-top: 10px;
}


/* =========================================================
   HERO SECTION
   ========================================================= */

.hero {
    background: var(--primary);
    padding: 150px 0 100px;
    color: var(--white);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.badge {
    background: var(--dark-blue);
    color: var(--accent);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    display: inline-block;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight {
    color: var(--accent);
}

.hero-text p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
}


/* =========================================================
   SECTION TITLE
   ========================================================= */

.section-title {
    text-align: center;
    padding-top: 60px;
    padding-bottom: 40px;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    background: var(--accent);
    height: 4px;
    width: 60px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}


/* =========================================================
   SERVICES
   ========================================================= */

.service-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.service-card-image {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.service-card-image:hover {
    transform: translateY(-10px);
}

.service-image-header {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.service-image-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card-image:hover .service-image-header img {
    transform: scale(1.05);
}

.service-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-content h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.btn-wa-direct {
    background: var(--accent);
    color: var(--white);
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-wa-direct:hover {
    background: var(--primary);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.3);
}



/* =========================================================
   BLOG
   ========================================================= */

.blog {
    padding: 100px 0;
    background: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.blog-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-image {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-category {
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.blog-content h3 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: var(--primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.2rem;
}

.blog-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 15px;
    transition: var(--transition);
    position: relative;
}

.read-more:hover {
    color: var(--primary);
    transform: translateX(5px);
}


/* =========================================================
   MODAL
   ========================================================= */

.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 26, 0.9);
    overflow-y: auto;
}

.modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 50px;
    width: 60%;
    max-width: 800px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.blog-modal-width {
    width: 60%;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--primary);
    transition: var(--transition);
}

.close:hover {
    color: var(--accent);
}

.meta-data {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 10px 0;
}

.blog-full-text p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #444;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    background: var(--primary);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col p {
    opacity: 0.8;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--white);
    opacity: 0.7;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.85rem;
    opacity: 0.5;
}


/* =========================================================
   SOCIAL ICONS
   ========================================================= */

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.social-icons a {
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}


/* =========================================================
   HELPERS & MEDIA QUERIES
   ========================================================= */

.center {
    text-align: center;
}

.mt-40 {
    margin-top: 40px;
}

.mobile-only {
    display: none;
}

.menu-toggle {
    display: none;
}


/* Tablet Layout */
@media (max-width: 992px) {
    .service-grid-3,
    .portfolio-grid-3,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-content,
    .blog-modal-width {
        width: 85%;
        padding: 30px;
    }
}


/* Mobile Layout (Max Width: 768px) */
@media (max-width: 768px) {
    #main-header {
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 2000;
        background: var(--primary);
    }

    /* Penyesuaian Logo Khusus HP */
    #main-header .logo {
        gap: 8px !important;
    }

    #main-header .logo .logo-icon {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
    }

    #main-header .logo .logo-content .logo-name {
        font-size: 1.05rem !important;
    }

    #main-header .logo .logo-content .logo-tagline {
        font-size: 0.42rem !important;
        letter-spacing: 0px !important;
        margin-top: 2px !important;
    }

    #main-header .logo .logo-content .logo-location {
        font-size: 0.38rem !important;
    }

    /* Header Scrolled di HP */
    #main-header.scrolled .logo .logo-icon {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
    }

    #main-header.scrolled .logo .logo-content .logo-name {
        font-size: 0.95rem !important;
    }

    #main-header.scrolled .logo .logo-content .logo-tagline {
        font-size: 0.38rem !important;
    }

    #main-header.scrolled .logo .logo-content .logo-location {
        font-size: 0.35rem !important;
    }

    /* Mobile Hamburger Menu Toggle */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 18px;
        cursor: pointer;
        z-index: 2100;
    }

    .bar {
        width: 100%;
        height: 2.5px;
        background-color: var(--white);
        transition: 0.4s;
        border-radius: 2px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--primary);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease-in-out;
        z-index: 1500;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--white);
    }

    #mobile-menu.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    #mobile-menu.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    #mobile-menu.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        padding: 130px 0 80px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        justify-content: center;
        flex-wrap: wrap;
    }

    .service-grid-3,
    .portfolio-grid-3,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .service-image-header,
    .portfolio-image {
        height: 200px;
    }

    .modal-content,
    .blog-modal-width {
        width: 90%;
        padding: 30px 20px;
        margin: 10% auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .footer-col.about p {
        max-width: 300px;
        margin: 10px auto;
    }

    .footer-col ul {
        padding: 0;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-bottom {
        margin-top: 30px;
    }
}


/* Small Mobile Layout (Max Width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    #main-header .logo {
        gap: 6px !important;
    }

    #main-header .logo .logo-icon {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
    }

    #main-header .logo .logo-content .logo-name {
        font-size: 0.95rem !important;
    }

    #main-header .logo .logo-content .logo-tagline {
        font-size: 0.38rem !important;
    }

    #main-header .logo .logo-content .logo-location {
        font-size: 0.34rem !important;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .section-title p {
        font-size: 0.9rem;
    }

    .service-content,
    .portfolio-info,
    .blog-content {
        padding: 20px;
    }
}