/* File: style.css 
   Project: LinkPark - Smart Parking IoT
   Version: 1.0 (Optimized & Merged)
*/

/* 1. VARIABEL & RESET */
:root {
    --navy: #161c2d;
    --navy-dark: #0f172a;
    --cyan: #00aeef;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #06b6d4 0%, #4f46e5 100%);
}

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

body { 
    font-family: 'Inter', sans-serif; 
    color: #334155; 
    line-height: 1.6; 
    scroll-behavior: smooth; 
    background-color: var(--white);
}

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

.cyan-text { color: var(--cyan); }
.white-text { color: var(--white); }

/* 2. NAVBAR & HEADER */
.navbar { 
    background: var(--white); 
    padding: 15px 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
}

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

.header-logo { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    text-decoration: none; 
}

.header-logo img {
    width: 45px; 
    height: 45px;
    background: white; 
    padding: 5px;
    border-radius: 8px; 
    object-fit: contain;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-logo span { 
    font-size: 22px; 
    font-weight: 700; 
    color: var(--navy); 
}

.nav-links { 
    display: flex; 
    list-style: none; 
}

.nav-links a { 
    text-decoration: none; 
    color: var(--navy); 
    margin-left: 30px; 
    font-weight: 600; 
    transition: 0.3s; 
}

.nav-links a:hover { color: var(--cyan); }

.hamburger { display: none; } /* Tersembunyi di desktop */

/* 3. HERO SECTION */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1506521781263-d8422e82f27a?auto=format&fit=crop&q=80') center/cover;
    position: relative;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.7);
    height: 100%;
    display: flex; 
    justify-content: center; 
    align-items: center;
    color: var(--white); 
    text-align: center;
}

.hero-content { 
    max-width: 800px; 
    padding: 0 20px; 
}

.hero-logo { margin-bottom: 40px; }

.hero-logo img {
    width: 120px; 
    height: 120px;
    background: white; 
    padding: 20px;
    border-radius: 15px; 
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-content h1 { 
    font-size: 3.5rem; 
    font-weight: 800; 
    margin-bottom: 20px; 
    line-height: 1.2; 
}

.hero-content p {
    font-size: 1.2rem; 
    opacity: 0.9;
    margin-bottom: 40px; 
    max-width: 700px;
    margin: 0 auto 40px;
}

/* 4. BUTTONS */
button { 
    cursor: pointer; 
    border-radius: 8px; 
    font-weight: 600; 
    border: none; 
    transition: 0.3s; 
}

.btn-gradient {
    background: var(--gradient);
    color: white; 
    padding: 15px 35px;
    display: inline-flex; 
    align-items: center; 
    gap: 10px;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.btn-dark {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px); 
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 35px; 
    margin-left: 15px;
}

.btn-gradient:hover, .btn-dark:hover { 
    transform: translateY(-3px); 
    opacity: 0.9; 
}

/* 5. SECTIONS GENERAL */
section { padding: 80px 0; }

.section-title { 
    text-align: center; 
    font-size: 2.8rem; 
    font-weight: 800; 
    margin-bottom: 50px; 
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 60px;
    font-size: 1.1rem;
}

/* 6. ABOUT SECTION */
.about-container { 
    display: flex; 
    align-items: center; 
    gap: 60px; 
}

.about-content { flex: 1; }

.about-content p { 
    color: #64748b; 
    margin-bottom: 20px; 
}

.about-features { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px; 
    margin-top: 30px; 
}

.feature-item { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-weight: 500; 
}

.feature-item i { color: var(--cyan); }

.about-image { flex: 1; }

.about-image img { 
    width: 100%; 
    border-radius: 20px; 
    box-shadow: 0 25px 50px rgba(0,0,0,0.15); 
}

/* 7. FEATURES GRID */
.features-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
}

.feature-card { 
    background: white; 
    border-radius: 16px; 
    overflow: hidden; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); 
    transition: 0.3s; 
}

.feature-card:hover { transform: translateY(-10px); }

.card-image { 
    position: relative; 
    height: 200px; 
}

.card-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.floating-icon { 
    position: absolute; 
    bottom: 15px; 
    left: 15px; 
    width: 45px; 
    height: 45px; 
    background: #3b82f6; 
    color: white; 
    border-radius: 8px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.card-body { padding: 25px; }

/* 8. WORKFLOW (DARK MODE) */
.workflow-section { 
    background-color: var(--navy-dark); 
    color: white; 
}

.workflow-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
}

.workflow-card { 
    background: #1e293b; 
    padding: 30px; 
    border-radius: 12px; 
}

.card-header { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 20px; 
}

.step-icon { 
    width: 50px; 
    height: 50px; 
    background: #3b82f6; 
    border-radius: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.step-number { 
    font-size: 2rem; 
    font-weight: 800; 
    color: rgba(255,255,255,0.1); 
}

/* 9. BENEFITS SECTION */
.benefits-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
}

.benefit-card { 
    background: white; 
    padding: 40px 30px; 
    border-radius: 12px; 
    text-align: center; 
    border-top: 5px solid transparent; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); 
}

.benefit-icon { 
    width: 60px; 
    height: 60px; 
    margin: 0 auto 20px; 
    border-radius: 15px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    font-size: 1.5rem; 
}

.border-orange { border-top-color: #f59e0b; }
.bg-orange { background: #f59e0b; }
.border-green { border-top-color: #10b981; }
.bg-green { background: #10b981; }
.border-blue { border-top-color: #3b82f6; }
.bg-blue { background: #3b82f6; }

/* 10. CTA SECTION */
.cta-section { 
    padding: 100px 0; 
    background: var(--gradient); 
    position: relative; 
    color: white; 
    text-align: center;
    overflow: hidden;
}

/*.cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
}
*/
.btn-white { 
    background: white; 
    color: #3b82f6; 
    padding: 15px 35px; 
    margin-top: 20px; 
}

.cta-contact-info {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 11. FOOTER */
.main-footer { 
    background: var(--navy-dark); 
    color: white; 
    padding: 80px 0 20px; 
}

.footer-container { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1.5fr; 
    gap: 40px; 
}

.footer-logo img { 
    width: 50px; 
    background: white; 
    padding: 5px; 
    border-radius: 5px; 
}

.footer-col h4 { margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #94a3b8; text-decoration: none; transition: 0.3s; }
.footer-col a:hover { color: white; }

.social-links { 
    display: flex; 
    gap: 10px; 
    margin-top: 20px; 
}

.social-links a { 
    color: white; 
    background: rgba(255,255,255,0.1); 
    width: 35px; 
    height: 35px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    color: #64748b;
}

/* Menyamakan tampilan tag 'a' agar menjadi tombol yang konsisten */
.btn-outline-white {
    background: transparent;
    color: white;
    padding: 15px 35px;
    border-radius: 8px;
    border: 2px solid white;
    font-weight: 700;
    text-decoration: none; /* Menghapus garis bawah link */
    display: inline-flex; /* Menjaga ukuran tetap konsisten */
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    cursor: pointer;
}

.btn-outline-white:hover {
    background: white;
    color: #3b82f6; /* Warna biru saat hover */
    transform: translateY(-3px);
}

/* 12. ANIMATIONS & INDICATORS */
.scroll-indicator { 
    margin-top: 50px; 
    display: flex; 
    justify-content: center; 
}

.mouse { 
    width: 25px; 
    height: 40px; 
    border: 2px solid white; 
    border-radius: 20px; 
    position: relative; 
}

.mouse::before {
    content: ''; 
    width: 4px; 
    height: 8px; 
    background: white;
    position: absolute; 
    left: 50%; 
    transform: translateX(-50%);
    top: 8px; 
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 15px); }
}

/* 13. RESPONSIVE (MEDIA QUERIES) */
@media (max-width: 992px) {
    .features-grid, 
    .workflow-grid, 
    .benefits-grid, 
    .footer-container { 
        grid-template-columns: repeat(2, 1fr); 
    }

    .about-container { flex-direction: column; }
    .about-image { order: -1; }

    .desktop-only { display: none; }

    /* SIDEBAR MOBILE */
    .nav-menu {
        position: fixed; 
        top: 0; 
        right: -100%;
        width: 280px; 
        height: 100vh;
        background: white; 
        z-index: 999;
        display: flex; 
        flex-direction: column;
        padding: 100px 40px; 
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }

    .nav-menu.active { right: 0; }
    
    .nav-links { 
        flex-direction: column; 
        gap: 20px; 
    }

    .nav-links a { 
        margin: 0; 
        color: var(--navy); 
        font-size: 1.1rem; 
        padding: 10px 0;
        border-bottom: 1px solid #f1f5f9;
    }

    /* HAMBURGER */
    .hamburger { 
        display: flex; 
        flex-direction: column; 
        gap: 5px; 
        cursor: pointer; 
        z-index: 1001; 
    }

    .hamburger span { 
        width: 28px; 
        height: 3px; 
        background: var(--navy); 
        transition: 0.3s; 
    }
    
    /* HAMBURGER TO X ANIMATION */
    .hamburger.toggle span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .hamburger.toggle span:nth-child(2) { opacity: 0; }
    .hamburger.toggle span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }
}

@media (max-width: 768px) {
    .features-grid, 
    .workflow-grid, 
    .benefits-grid, 
    .footer-container { 
        grid-template-columns: 1fr; 
    }
    
    .hero-content h1 { font-size: 2.5rem; }
    
    .hero-btns { 
        flex-direction: column; 
        gap: 15px; 
        align-items: center; 
    }

    .btn-dark { 
        margin-left: 0; 
        width: 100%; 
        max-width: 280px; 
    }

    .btn-gradient { 
        width: 100%; 
        max-width: 280px; 
        justify-content: center; 
    }

    .about-features { grid-template-columns: 1fr; }

    .cta-content h2 { font-size: 2rem; }
}