/* ==========================================
   WEBIFYSWIFT - TEMA 3 WARNA UTAMA
   Primary: Deep Navy (#0f172a)
   Accent: Electric Blue / Cyan (#0284c7 / #38bdf8)
   Background: Soft Slate (#f8fafc / #ffffff)
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: #334155;
    background-color: #f8fafc;
}

/* --- NAVIGATION BAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 8%;
    background: #0f172a;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.navbar .logo span {
    color: #38bdf8;
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.navbar nav a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.navbar nav a:hover {
    color: #ffffff;
}

.navbar nav a.btn-wa-nav {
    background: #0284c7;
    color: #ffffff;
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.navbar nav a.btn-wa-nav:hover {
    background: #0369a1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    text-align: center;
    padding: 6rem 1.5rem;
    position: relative;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.2;
    background: linear-gradient(to right, #ffffff, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.15rem;
    color: #cbd5e1;
    max-width: 700px;
    margin: 0 auto 2.2rem auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    background: #0284c7;
    color: #ffffff;
    padding: 0.85rem 1.8rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.btn:hover {
    background: #0369a1;
    transform: translateY(-2px);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #25d366;
    color: #ffffff;
    padding: 0.85rem 1.8rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp i {
    font-size: 1.2rem;
}

.btn-whatsapp:hover {
    background: #1eb956;
    transform: translateY(-2px);
}

/* --- SECTIONS COMMON --- */
section {
    padding: 5rem 8%;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.subtitle {
    text-align: center;
    color: #64748b;
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

/* --- SERVICES SECTION --- */
.services {
    background: #ffffff;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    border-color: #38bdf8;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.3rem;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.card p {
    color: #64748b;
    font-size: 0.98rem;
}

/* --- PORTFOLIO SECTION --- */
.portfolio {
    background: #f8fafc;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
    border-color: #38bdf8;
}

.portfolio-badge {
    align-self: flex-start;
    background: #e0f2fe;
    color: #0284c7;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    margin-bottom: 1.2rem;
}

.portfolio-card h3 {
    color: #0f172a;
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

.portfolio-card p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
    flex-grow: 1;
}

.btn-demo {
    display: block;
    text-align: center;
    background: #0f172a;
    color: #38bdf8;
    padding: 0.75rem 1rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-demo:hover {
    background: #0284c7;
    color: #ffffff;
}

/* --- CONTACT SECTION --- */
.contact {
    background: #ffffff;
}

.contact-container {
    max-width: 650px;
    margin: 0 auto;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.form label {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.9rem;
    margin-bottom: -0.5rem;
}

.form input, .form textarea {
    padding: 0.85rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    background: #ffffff;
    transition: border-color 0.3s ease;
}

.form input:focus, .form textarea:focus {
    outline: none;
    border-color: #0284c7;
}

.contact-wa-box {
    margin-top: 2rem;
    text-align: center;
    padding: 1.8rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
}

.contact-wa-box p {
    font-weight: 700;
    color: #0369a1;
    margin-bottom: 0.8rem;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 2rem;
    background: #0f172a;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Responsive Scaling */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    section {
        padding: 3rem 5%;
    }
}

/* --- HAMBURGER MENU & MOBILE RESPONSIVE --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 5%;
    }

    .menu-toggle {
        display: flex;
    }

    .navbar nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: #0f172a;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.4);
        transition: right 0.4s ease;
        padding: 2rem;
    }

    .navbar nav.active {
        right: 0;
    }

    .navbar nav a {
        font-size: 1.1rem;
    }

    .navbar nav a.btn-wa-nav {
        width: 100%;
        text-align: center;
    }
}

/* --- PORTFOLIO CARD WITH MOCKUP PREVIEW --- */
.portfolio-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2.5rem !important;
    max-width: 1100px !important; /* Lebarkan sikit grid supaya kad nampak selesa */
    margin: 0 auto !important;
}

.portfolio-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
    border-color: #38bdf8;
}

/* Container Gambar Mockup */
.portfolio-image {
    width: 100%;
    height: 220px; /* Tinggikan sikit gambar supaya paparan mockup lebih jelas */
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

/* Paparan Mobile (Phone) */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Kesan Zoom Lembut Bila Tetikus Lalu */
.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.portfolio-badge {
    align-self: flex-start;
    background: #e0f2fe;
    color: #0284c7;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.portfolio-card h3 {
    color: #0f172a;
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

.portfolio-card p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-demo {
    display: block;
    text-align: center;
    background: #0f172a;
    color: #38bdf8;
    padding: 0.75rem 1rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-demo:hover {
    background: #0284c7;
    color: #ffffff;
}