/* ==========================================================================
   GLOBAL STYLES
   ========================================================================== */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(circle at top, #0f172a, #020617);
    color: #e5e7eb;
    overflow-x: hidden;
}

.container{
    max-width: 1200px;
    margin: auto;
    padding: 0 24px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header{
    padding: 25px 0;
}

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

.logo{
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;

    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #cbd5e1 30%,
        #93c5fd 65%,
        #3b82f6 100%
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    transition: .3s ease;
}

.logo:hover{
    transform: translateY(-2px);
}

/* SOCIAL LINKS */
.social{
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.social a{
    text-decoration: none;
    color: #94a3b8;
    font-size: 14px;
    transition: .3s;
}

.social a:hover{
    color: #60a5fa;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero{
    text-align: center;
    padding: 120px 0;
}

.hero-title{
    font-size: clamp(34px, 5vw, 68px);
    line-height: 1.2;
    font-weight: 700;
    max-width: 1000px;
    margin: auto;
}

.hero-title span{
    color: #3b82f6;
}

.hero-desc{
    color: #94a3b8;
    margin-top: 24px;
    font-size: 18px;
}

.highlight{
    margin-top: 18px;
    color: #3b82f6;
    font-size: 15px;
    font-weight: 600;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary{
    display: inline-block;
    margin-top: 30px;
    padding: 16px 34px;

    background: linear-gradient(
        135deg,
        #3b82f6,
        #2563eb
    );

    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;

    transition: .3s ease;
    box-shadow: 0 10px 30px rgba(37, 99, 235, .25);
}

.btn-primary:hover{
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, .4);
    cursor: pointer !important;
}

.social-cta {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================================
   CORE SECTIONS & GRIDS
   ========================================================================== */
.section{
    padding: 90px 0;
    text-align: center;

    opacity: 0;
    transform: translateY(40px);
    transition: .8s ease;
}

.section.show{
    opacity: 1;
    transform: translateY(0);
}

.section h2{
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 15px;
    font-weight: 600;
}

/* LAYANAN GRID */
.grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

/* ==========================================================================
   CARD LAYANAN (DIPERCANTIK - ELEGAN & TECH)
   ========================================================================== */
.card {
    background: rgba(30, 41, 59, 0.4); /* Warna navy slate semi transparan */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05); /* Border tipis elegan */
    border-radius: 16px;
    padding: 32px 24px;
    font-weight: 600;
    font-size: 1rem;
    color: #f1f5f9;
    letter-spacing: 0.3px;
    
    cursor: pointer !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px; 
    line-height: 1.6;

    /* Efek transisi diperhalus */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    opacity: 0;
    transform: translateY(40px);
}

/* EFEK HOVER CARD MENYALA (GLOW EFFECT) */
.card:hover {
    transform: translateY(-6px) scale(1.02);
    background: rgba(30, 41, 59, 0.7);
    border-color: #3b82f6; /* Warna biru khas teknik */
    
    /* Efek bayangan menyala biru tipis */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 
                0 0 15px rgba(59, 130, 246, 0.2);
}

.card * {
    cursor: pointer !important;
}

/* ==========================================================================
   PORTFOLIO IMAGES (LEBIH ELEGAN)
   ========================================================================== */
.portfolio-grid img {
    width: 100%;
    aspect-ratio: 9/16;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer !important;
    
    /* Bayangan lembut di bawah gambar */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);

    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-grid img.show {
    opacity: 1;
    transform: scale(1);
}

/* EFEK HOVER GAMBAR */
.portfolio-grid img:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   OPTIMASI WARNA TEXT DESKRIPSI
   ========================================================================== */
.hero-desc, .creator-desc, .cta p {
    color: #94a3b8; /* Warna abu-abu soft agar kontras teks utama lebih naik */
    font-weight: 300;
}

/* ==========================================================================
   CREATOR & CTA SECTION
   ========================================================================== */
.creator-desc{
    max-width: 800px;
    margin: 20px auto 40px auto;
    color: #94a3b8;
    line-height: 1.8;
    font-size: 16px;
}

.cta{
    padding: 120px 0;
}

.cta p {
    color: #94a3b8;
    font-size: 18px;
    margin-bottom: 10px;
}

/* FOOTER */
footer{
    text-align: center;
    padding: 40px 20px;
    background: #000000;
    color: #64748b;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, .05);
}

/* ==========================================================================
   MODAL LIGHTBOX FIXES
   ========================================================================== */
.modal{
    display: none; 
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, .95);
    align-items: center;
    justify-content: center;
}

/* Kelas bantuan untuk dipicu JavaScript */
.modal.open {
    display: flex !important; 
}

.modal-content{
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.8);
    animation: zoomEffect 0.3s ease;
}

@keyframes zoomEffect {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close{
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: #ef4444;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* TABLET VIEW */
@media(max-width: 960px){
    .grid{
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid{
        grid-template-columns: repeat(3, 1fr);
    }

    .hero{
        padding: 90px 0;
    }
}

/* MOBILE VIEW */
@media(max-width: 600px){
    .nav{
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .social{
        justify-content: center;
        gap: 15px;
    }

    .logo{
        font-size: 34px;
    }

    .hero{
        padding: 70px 0;
    }

    .hero-title{
        font-size: 32px;
    }

    .hero-desc{
        font-size: 15px;
    }

    .grid{
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .portfolio-grid{
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .card{
        padding: 22px;
        min-height: auto;
    }

    .btn-primary{
        width: 100%;
        max-width: 280px;
    }
    
    .close {
        right: 20px;
        top: 10px;
    }
}