/* ==========================================================================
   FILE: style.css
   TEMA: PT. Cakra Generasi Gemilang (Corporate MEP & Civil)
========================================================================== */

:root {
    --primary-color: #003366;    
    --secondary-color: #00a8ff;  
    --accent-color: #f39c12;     
    --dark-color: #1a1a1a;       
    --light-color: #f8f9fa;      
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    color: #444;
    line-height: 1.7;
    background-color: var(--white);
    padding-top: 70px; 
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* --- NAVIGASI --- */
header {
    background-color: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: fixed;
    width: 100%;
    height: 70px;
    top: 0;
    left: 0;
    z-index: 1005; /* NAIKKAN ANGKA INI AGAR HEADER SELALU PALING ATAS */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px); 
    z-index: 1000; /* ANGKA INI HARUS LEBIH KECIL DARI HEADER */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    max-height: 75px; 
    width: auto;      
    object-fit: contain;
}   

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    margin-left: 30px;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--primary-color);
}

#menu-bar, .menu-icon {
    display: none;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: calc(100vh - 70px);
    min-height: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    padding: 0 24px;
    overflow: hidden; 
}

.hero-showcase {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-showcase .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1.5s ease-in-out, transform 6s linear; 
}

.hero-showcase .slide.active {
    opacity: 1;
    transform: scale(1.08); 
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 20, 50, 0.85), rgba(0, 40, 80, 0.8));
    z-index: 2;
}

.hero {
    position: relative;
    height: calc(100vh - 70px);
    min-height: 550px;
    display: flex;
    justify-content: center; /* Ini yang membuat elemen ke tengah */
    align-items: center;
    text-align: center;      /* Ini yang membuat teks rata tengah */
    color: #ffffff;          /* Ini yang membuat teks putih */
    padding: 0 24px;
    overflow: hidden; 
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 950px;
    width: 100%;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #ffffff; /* Ini warna teks putih untuk Judul Besar */
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 35px;
    font-weight: 400;
    opacity: 0.9;
    color: #ffffff;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 15px 35px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 4px;
    display: inline-block;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-primary:hover {
    background-color: #d68910;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* --- GENERAL SECTIONS --- */
.section-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.05rem;
    color: #666;
    margin-bottom: 50px;
    text-align: center;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* --- LAYANAN (SERVICES) --- */
/* --- LAYANAN (SERVICES) --- */
.services {
    padding: 80px 8%;
    background-color: var(--light-color);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 25px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-color);
    transition: 0.3s;
    text-align: center; /* KODE INI YANG MEMBUAT ICON & TEKS KE TENGAH */
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 25px;
    display: inline-block; /* Memastikan posisi ikon stabil di tengah */
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* --- KEUNGGULAN / UVP --- */
.uvp-section {
    padding: 80px 8%;
    background-color: var(--white);
}

.uvp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.uvp-card {
    background: var(--light-color);
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid #e1e4e8;
    text-align: center;
}

.uvp-card i {
    font-size: 45px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.uvp-card h4 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

/* --- ALUR KERJA (WORKFLOW) --- */
.workflow {
    padding: 80px 8%;
    background-color: var(--light-color);
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}

.workflow-card {
    padding: 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 24px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 5px 15px rgba(0, 51, 102, 0.2);
}

.workflow-card h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
}

/* --- LEGALITAS & TRUST --- */
.trust-section {
    background-color: var(--primary-color);
    padding: 60px 8%;
    text-align: center;
    color: var(--white);
}

.legal-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.legal-badges span {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    padding: 12px 25px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* --- PORTOFOLIO --- */
.portfolio {
    padding: 80px 8%;
    background-color: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-card {
    background: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.portfolio-img {
    height: 200px;
    background-position: center;
    background-size: cover;
}

.portfolio-info {
    padding: 20px;
}

.portfolio-info h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.portfolio-info p {
    font-size: 0.9rem;
    color: #777;
    font-weight: 600;
}

/* --- FORMULIR KONTAK --- */
.contact-section {
    padding: 80px 8%;
    background-color: var(--light-color);
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    border-top: 5px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    background-color: #fafafa;
}

.btn-submit {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
}

.btn-submit:hover {
    background-color: #002244;
}

/* --- FOOTER --- */
footer {
    background-color: var(--dark-color);
    color: #a0a5ad;
    padding: 60px 8% 30px 8%;
    font-size: 14px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-box h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-box p {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.footer-box i {
    margin-top: 5px;
    margin-right: 12px;
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 25px;
}

/* --- FLOATING WHATSAPP BUTTON --- */
.wa-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: var(--white);
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1100;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- BACK TO TOP BUTTON --- */
/* --- FLOATING WHATSAPP BUTTON (EYE-CATCHING) --- */
.wa-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: var(--white);
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    animation: pulse-wa 2s infinite; /* Menambahkan efek denyut */
    /* --- TOOLTIP / PESAN MELAYANG WHATSAPP --- */
.wa-tooltip {
    position: absolute;
    right: 75px; /* Jarak pesan dari ikon WA ke arah kiri */
    top: 50%;
    transform: translateY(-50%);
    background-color: #ffffff;
    color: var(--primary-color); /* Menggunakan warna biru gelap tema Anda */
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    pointer-events: none; /* Agar pesan tidak menghalangi kursor saat diklik */
    animation: float-tooltip 2.5s ease-in-out infinite; /* Animasi bergerak halus */
}

/* Segitiga panah kecil menunjuk ke ikon WA */
.wa-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -8px; /* Posisi panah menjorok ke kanan */
    transform: translateY(-50%);
    border-width: 8px 0 8px 8px;
    border-style: solid;
    border-color: transparent transparent transparent #ffffff;
}

/* Animasi untuk membuat pesan seolah mengambang maju mundur memanggil user */
@keyframes float-tooltip {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(-8px); }
}
}

.wa-float:hover {
    background-color: #1ebd5a;
    transform: scale(1.1); /* Sedikit membesar saat disorot mouse */
}

/* Keyframes untuk efek radar/denyut */
@keyframes pulse-wa {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* BACK TO TOP BUTTON (Penyesuaian Posisi) */
.back-to-top {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 100px; /* Dinaikkan sedikit agar tidak tabrakan dengan tombol WA baru */
    right: 30px;
    /* ... (Sisa kode back-to-top biarkan apa adanya) ... */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    color: var(--white);
}
}

/* ==========================================================================
   ANIMASI & TRANSISI PROFESIONAL (INTERACTIVE)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.service-card:nth-child(2), .uvp-card:nth-child(2), .workflow-card:nth-child(2), .portfolio-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3), .uvp-card:nth-child(3), .workflow-card:nth-child(3), .portfolio-card:nth-child(3) { transition-delay: 0.2s; }
.service-card:nth-child(4), .uvp-card:nth-child(4), .workflow-card:nth-child(4), .portfolio-card:nth-child(4) { transition-delay: 0.3s; }

.service-card, .uvp-card, .portfolio-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    will-change: transform;
}

.service-card:hover, .uvp-card:hover, .portfolio-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.12);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px); 
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   HALAMAN PORTOFOLIO DETAIL
   ========================================================================== */
.project-row {
    display: flex;
    gap: 40px;
    margin-bottom: 80px;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid #eee;
}

.project-showcase {
    flex: 1; 
    position: relative;
    min-height: 350px;
    overflow: hidden;
}

.project-showcase .mini-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.project-showcase .mini-slide.active {
    opacity: 1;
}

.project-info {
    flex: 1; 
    padding: 40px 40px 40px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-info h2 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.project-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
    font-weight: 600;
}

.project-meta i {
    color: var(--accent-color);
}

.project-info .scope {
    background-color: var(--light-color);
    padding: 8px 15px;
    border-left: 4px solid var(--accent-color);
    margin-bottom: 20px;
    font-size: 0.95rem;
    display: inline-block;
}

.project-notes p {
    margin-bottom: 10px;
    color: #444;
}

.project-notes ul {
    padding-left: 20px;
    margin-bottom: 15px;
    color: #555;
}

.project-notes ul li {
    margin-bottom: 8px;
}


/* ==========================================================================
   MEDIA QUERIES (MOBILE RESPONSIVE)
   ========================================================================== */
/* ==========================================================================
   MEDIA QUERIES (MOBILE RESPONSIVE CLEAN)
   ========================================================================== */
@media (max-width: 768px) {
    header {
        padding: 0 5%;
    }

    .menu-icon {
        display: block;
        font-size: 26px;
        color: var(--primary-color);
        cursor: pointer;
    }

    #menu-bar {
        display: none;
    }

    /* Menu Sidebar Putih Solid */
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%; 
        width: 70%; 
        max-width: 260px;
        height: calc(100vh - 70px);
        background-color: #ffffff; /* Latar belakang putih bersih */
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 25px 20px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1); 
    }

    #menu-bar:checked ~ .nav-links {
        right: 0; 
    }

    /* Teks Menu Tajam */
    .nav-links a {
        margin: 10px 0;
        width: 100%;
        font-size: 15px;
        font-weight: 700;
        color: var(--primary-color); 
        text-align: left;
        padding-bottom: 10px;
        border-bottom: 1px solid #eaeaea;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.4;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        font-size: 15px;
    }

    .services, .uvp-section, .workflow, .portfolio, .contact-section, .trust-section, .about {
        padding: 50px 5%;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .contact-container {
        padding: 25px 20px;
    }
    
    .project-row {
        flex-direction: column; 
        gap: 0;
    }
    
    .project-showcase {
        width: 100%;
        height: 250px;
        min-height: 250px;
    }
    
    .project-info {
        padding: 30px;
    }
    @media (max-width: 768px) {
    /* ... (kode lain yang sudah ada) ... */

    /* Posisi Tombol Mengambang di HP */
    .wa-float {
        width: 55px;
        height: 55px;
        font-size: 32px;
        bottom: 20px;
        right: 20px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 18px;
        bottom: 85px; 
        right: 25px;
    }

    /* Menyesuaikan ukuran kotak pesan di layar HP */
    .wa-tooltip {
        right: 68px;
        padding: 8px 15px;
        font-size: 12px; /* Huruf sedikit dikecilkan */
    }
}
}