/*
Theme Name: Mahlizar Personal
Version: 1.3 - Perfect Mobile Responsive
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --accent-blue: #60a5fa;
    --light-gray: #f8fafc;
    --gray: #64748b;
    --dark-gray: #334155;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    position: relative;
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--secondary-blue);
    transition: width 0.3s;
}

.nav-link:hover::after { width: 100%; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--primary-blue);
    transition: 0.3s;
}

/* ==================== HERO - PERFECT MOBILE ==================== */
.hero {
    height: 100vh;
            background: linear-gradient(rgba(30, 58, 138, 0.8), rgba(30, 58, 138, 0.8)),
                        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%23f0f9ff" width="1200" height="800"/><path fill="%233b82f6" opacity="0.1" d="M0 400Q300 200 600 400T1200 400V800H0z"/></svg>');
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: white;
            position: relative;
        }

.hero-content {
    max-width: 800px;
    width: 100%;
    padding: 0 1rem;
}

.hero-content h1 {
            font-size: clamp(3rem, 8vw, 6rem);
            font-weight: 800;
            margin-bottom: 1rem;
            letter-spacing: -2px;
        }

.hero-content .subtitle {
            font-size: clamp(1.2rem, 3vw, 2rem);
            font-weight: 300;
            margin-bottom: 2rem;
            opacity: 0.95;
        }

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== UMUM ==================== */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 1.5rem; 
}

section { 
    padding: 100px 0; 
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.cta-button {
    display: inline-block;
    background: var(--secondary-blue);
    color: white;
    padding: clamp(0.9rem, 2.5vw, 1rem) clamp(1.8rem, 4vw, 2.5rem);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    box-shadow: 0 10px 30px rgba(59,130,246,0.4);
    transition: all 0.3s;
    white-space: nowrap;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(59,130,246,0.6);
}

/* Cards */
.project-card, .service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s;
}

.project-card:hover, .service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.projects-grid, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: white;
    padding: 4rem 0 2rem;
}

/* ==================== ABOUT SECTION - GAMBAR ATAS DI MOBILE ==================== */


.about-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
        }

.about-image {
            position: relative;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0,0,0,0.1);
        }

.about-image img {
            width: 100%;
            height: 500px;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
 .about-image:hover img {
            transform: scale(1.05);
        }

.about-text {
    flex: 1;
    max-width: 600px;
}

.about-text h3 {
    font-size: clamp(1.6rem, 4vw, 2rem);
    color: var(--primary-blue);
    margin-bottom: 1.2rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.2rem;
    margin-top: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    text-align: center;
    background: white;
    padding: 1.5rem 1rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
    display: block;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--gray);
    font-weight: 500;
}

/* ==================== PERFECT MOBILE RESPONSIVE ==================== */

/* Tablet */
@media (max-width: 1024px) {
    .projects-grid, .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    section { padding: 80px 0; }
}

/* Mobile Large (768px ke bawah) */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 75px;
        flex-direction: column;
        width: 100%;
        background: white;
        padding: 2rem 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transition: 0.4s;
        text-align: center;
    }
    
    .nav-menu.active { left: 0; }
    
    .nav-menu li { margin: 1rem 0; }
    .nav-link { font-size: 1.2rem; }

    /* Hero Mobile */
    .hero {
        min-height: 90vh;
        padding: 1.5rem 1rem;
        background-attachment: scroll;
    }
    
    .hero-content h1 {
        margin-bottom: 1.2rem;
        line-height: 1.15;
    }
    
    .hero-content .subtitle {
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
        margin: 0.5rem 0;
    }

    section { padding: 70px 0; }
    
    .container { padding: 0 1.25rem; }
    
    /* ABOUT MOBILE - GAMBAR ATAS */
    .about-content {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .about-image {
        order: -1;
        max-width: 100%;
    }
    
    .about-text {
        text-align: center;
        padding: 0 0.5rem;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 100%;
    }
    
    .projects-grid, .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Desktop & Tablet - Side by Side */
@media (min-width: 769px) {
    .about-content {
        flex-direction: row;
        gap: 4rem;
        align-items: center;
        text-align: left;
    }
    
    .about-image {
        order: 0;
        flex: 0 0 45%;
        max-width: 450px;
    }
    
    .about-text {
        flex: 1;
        text-align: left;
    }
    
    .stats {
        grid-template-columns: repeat(3, 1fr);
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    
    .hero {
        min-height: 85vh;
        padding: 1rem 0.75rem;
    }
    
    .hero-content h1 {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
    }
    
    .hero-content .subtitle {
        font-size: clamp(0.95rem, 4vw, 1.2rem);
    }
    
    section { padding: 60px 0; }
    
    .section-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        margin-bottom: 2rem;
    }
    
    .about {
        padding: 70px 0;
    }
    
    .about-content {
        gap: 2rem;
    }
    
    .about-image img {
        border-radius: 16px;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .stat-item {
        padding: 1.2rem 0.8rem;
    }
    
    .logo {
        font-size: clamp(1.2rem, 6vw, 1.5rem);
    }
    
    .projects-grid, .services-grid {
        gap: 1.25rem;
    }
}

/* Extra Small */
@media (max-width: 360px) {
    .hero {
        padding: 0.75rem 0.5rem;
    }
    
    .container { padding: 0 0.75rem; }
    
    .section-title {
        margin-bottom: 1.5rem;
    }
}

/* ==================== PAGE CONTENT ==================== */
.page-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-content h1, .page-content h2, .page-content h3 {
    color: var(--primary-blue);
    margin: 2rem 0 1rem;
}

.page-content p {
    margin-bottom: 1.3rem;
}

/* Elementor */
.elementor-page .container {
    max-width: 1200px;
    padding: 0 1.5rem;
    margin: 0 auto;
}

/* Images */
article img,
.page-content img,
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    margin: 2rem auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: block;
}

.page-content .aligncenter,
.post-content .aligncenter {
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    article img {
        max-height: 350px;
        border-radius: 16px;
    }
    
    .page-content img,
    .post-content img {
        margin: 1.5rem auto;
        border-radius: 12px;
    }
}