/* =========================================
   1. RESET & GLOBAL STYLES
   ========================================= 
*/
:root {
    --primary-color: #0066ff;
    --primary-soft: #f0f7ff;
    --text-dark: #1a1a1a;
    --text-muted: #666666;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* =========================================
   2. NAVBAR
   ========================================= 
*/
.navbar {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #f0f0f0;
    z-index: 1000;
}

.navbar-brand {
    letter-spacing: -1px;
    font-weight: 700;
}

/* =========================================
   3. HERO SECTION
   ========================================= 
*/
.hero {
    padding: 50px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: #ffffff;
}

.welcome-badge {
    display: inline-block;
    background-color: var(--primary-soft);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem); /* Ukuran teks judul diperkecil */
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.hero-desc {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 35px;
}

/* Tombol */
.btn-lg {
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background-color: #0052cc;
    box-shadow: 0 8px 15px rgba(0, 102, 255, 0.2);
}

.btn-light {
    background-color: #f8f9fa;
    border: 1px solid #eee;
}

/* =========================================
   4. PHOTO COMPONENT (UKURAN DISESUAIKAN)
   ========================================= 
*/
.photo-wrapper {
    position: relative;
    width: 100%;
    max-width: 360px; /* Lebar container diperkecil */
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Kotak latar biru muda */
.bg-box {
    position: absolute;
    width: 280px; /* Lebar box diperkecil */
    height: 340px; /* Tinggi box diperkecil */
    background-color: var(--primary-soft);
    border-radius: 25px;
    bottom: -8px;
    right: 8px;
    z-index: 1;
}

/* Foto Utama */
.main-photo {
    position: relative;
    width: 280px; /* Lebar foto diperkecil */
    height: 340px; /* Tinggi foto diperkecil */
    border-radius: 25px;
    z-index: 2;
    object-fit: cover;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Ikon Melayang */
.floating-icon {
    position: absolute;
    width: 48px; /* Ukuran ikon diperkecil */
    height: 48px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    z-index: 3;
}

/* Posisi Ikon */
.icon-code { 
    top: 40px; 
    right: -15px; 
}

.icon-phone { 
    top: 180px; 
    right: -25px; 
}

.icon-paint { 
    bottom: 15px; 
    left: -15px; 
}

/* =========================================
   5. SOSIAL MEDIA & SECTIONS
   ========================================= 
*/
.social-links {
    margin-top: 5px;
}

.social-links a {
    font-size: 1.3rem;
    color: #555;
    transition: var(--transition);
    opacity: 0.7;
}

.social-links a:hover {
    color: var(--primary-color);
    opacity: 1;
    transform: translateY(-2px);
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 35px;
    letter-spacing: -0.5px;
}

/* Project Card */
.card {
    border: none;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.05) !important;
}

/* =========================================
   6. RESPONSIVE DESIGN
   ========================================= 
*/
@media (max-width: 991px) {
    .hero {
        text-align: center;
        padding-top: 30px;
    }
    
    .hero-desc {
        margin: 0 auto 30px;
    }

    .photo-wrapper {
        margin-top: 50px;
        max-width: 320px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
    }
    
    .btn-lg {
        width: 100%;
    }

    .bg-box, .main-photo {
        width: 250px;
        height: 300px;
    }
}