/* ===== VARIABLES ===== */
:root {
    --primary: #1d1d1f; /* Hitam elegan Apple/Flash style */
    --accent: #0066ff;
    --bg: #ffffff;
    --bg-soft: #f5f5f7;
    --bg-black-soft: #1a1a1a;
    --bg-card: #ffffff;
    --text: #1d1d1f;
    --text-secondary: #86868b;
    --border: #d2d2d7;
    --success: #00d95f;
    --gradient: linear-gradient(135deg, #1d1d1f 0%, #434343 100%);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.display-1 { 
    font-size: clamp(3rem, 8vw, 6rem); 
    line-height: 0.95;
    font-weight: 800;
}
.display-3 { 
    font-size: clamp(2.5rem, 5vw, 4rem); 
    line-height: 1.1;
}

.lead {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
}

.fw-800 {
    font-weight: 800 !important;
}

/* ===== SECTION SPACING ===== */
.section-py {
    padding: 100px 0;
}

.py-100 {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section-py {
        padding: 60px 0;
    }
    .py-100 {
        padding: 60px 0;
    }
}

/* ===== BACKGROUND COLORS ===== */
.bg-black-soft {
    background-color: var(--bg-black-soft);
    color: white;
}

.bg-black-soft .text-secondary {
    color: rgba(255, 255, 255, 0.7) !important;
}

.bg-black-soft .text-primary {
    color: white !important;
}

.bg-black-soft .service-card,
.bg-black-soft .pricing-card,
.bg-black-soft .testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.bg-black-soft .icon-wrapper {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.bg-soft {
    background: var(--bg-soft);
}

/* ===== HERO SECTION (FLASH STYLE) ===== */
.hero-section {
    position: relative;
    padding: 10rem 0 6rem;
    background: radial-gradient(circle at center, #f0f5ff 0%, #ffffff 70%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg-circles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    background: repeating-radial-gradient(circle, transparent, transparent 120px, rgba(0,0,0,0.015) 121px, rgba(0,0,0,0.015) 122px);
    z-index: 0;
}

/* ===== BUTTONS ===== */
.btn {
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-outline-primary {
    border: 1px solid var(--border);
    color: var(--text);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--bg-soft);
    color: var(--text);
    border-color: var(--text);
}

.btn-sm {
    padding: 8px 24px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.125rem;
}

/* ===== CARDS ===== */
.service-card, .pricing-card, .testimonial-card, .portfolio-card {
    background: var(--bg-card);
    border: 1px solid #e5e5e7;
    border-radius: 28px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    height: 100%;
}

.service-card:hover {
    border-color: transparent;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
    transform: translateY(-10px);
}

.testimonial-card {
    background: rgba(0, 0, 0, 0.02);
}

.bg-card {
    background: var(--bg-card);
    border: 1px solid #e5e5e7;
}

/* ===== ICONS ===== */
.icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.rating {
    color: #ffc107;
    margin-bottom: 1rem;
}

.rating i {
    margin-right: 2px;
}

/* ===== PRICING ===== */
.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    position: relative;
}

.pricing-badge {
    background: var(--primary);
    color: white;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    position: absolute;
    top: -10px;
    right: 20px;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    margin: 1.5rem 0;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.pricing-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.pricing-features li i {
    color: var(--success);
    margin-right: 10px;
    font-size: 0.9rem;
}

/* ===== FAQ ===== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.bg-black-soft .faq-item {
    border-color: rgba(255,255,255,0.1);
}

.faq-question {
    padding: 1.5rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 1.5rem;
}

.faq-answer p {
    color: var(--text-secondary);
    margin: 0;
}

/* ===== CONTACT FORM ===== */
.contact-info .icon-wrapper {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control, .form-select {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(29, 29, 31, 0.1);
}

/* ===== NAVIGATION ===== */
.navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(20px);
    padding: 1.5rem 0;
    transition: 0.3s;
}

.navbar-scrolled {
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.03);
}

.nav-link {
    color: var(--text) !important;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 10px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== ANIMATIONS ===== */
.laptop-3d {
    filter: drop-shadow(0 50px 80px rgba(0,0,0,0.15));
    animation: float 6s ease-in-out infinite;
    z-index: 2;
    position: relative;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

.rounded-3xl {
    border-radius: 24px;
}

.rounded-xl {
    border-radius: 16px;
}

.shadow-soft {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* ===== UTILITY CLASSES ===== */
.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-opacity-20 {
    opacity: 0.2;
}

.rounded-pill {
    border-radius: 50px !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991px) {
    .display-1 { font-size: 3.5rem; }
    .display-3 { font-size: 2.5rem; }
    .hero-section { 
        text-align: center; 
        padding-top: 8rem;
        min-height: auto;
    }
    .pricing-card.featured { 
        transform: none;
        margin-top: 0;
    }
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 1rem;
        border-radius: 12px;
        margin-top: 1rem;
    }
    .nav-link {
        margin: 5px 0;
    }
    .btn-lg {
        padding: 14px 32px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .display-1 { font-size: 2.8rem; }
    .display-3 { font-size: 2rem; }
    .lead { font-size: 1rem; }
    .section-py { padding: 50px 0; }
    .service-card, .pricing-card, .testimonial-card {
        padding: 1.5rem;
    }
    .icon-wrapper {
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
    }
    .pricing-price {
        font-size: 2.5rem;
    }
    .d-flex.flex-wrap {
        justify-content: center;
    }
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .display-1 { font-size: 2.2rem; }
    .display-3 { font-size: 1.8rem; }
    .hero-section {
        padding: 6rem 0 3rem;
    }
    .pricing-card.featured .pricing-badge {
        position: relative;
        top: 0;
        right: 0;
        display: inline-block;
        margin-bottom: 1rem;
    }
    .contact-info .d-flex {
        flex-direction: column;
        align-items: flex-start;
    }
    .contact-info .icon-wrapper {
        margin-bottom: 10px;
    }
}

/* Print Styles */
@media print {
    .navbar, .footer, .btn {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
    .section-py {
        padding: 20px 0 !important;
        break-inside: avoid;
    }
}

/* ===== PORTFOLIO SPECIFIC STYLES ===== */
.portfolio-hero {
    padding: 12rem 0 6rem;
    background: radial-gradient(circle at center, #f8f9fa 0%, #ffffff 70%);
    position: relative;
    overflow: hidden;
}

.portfolio-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1200px;
    height: 1200px;
    background: repeating-radial-gradient(
        circle, 
        transparent, 
        transparent 100px, 
        rgba(0,0,0,0.02) 101px, 
        rgba(0,0,0,0.02) 102px
    );
    z-index: 0;
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid #e5e5e7;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
    border-color: transparent;
}

.portfolio-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
    border-radius: 24px 24px 0 0;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-image {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top, 
        rgba(29, 29, 31, 0.95) 0%, 
        rgba(29, 29, 31, 0.7) 50%, 
        rgba(29, 29, 31, 0.3) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    border-radius: 24px 24px 0 0;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.overlay-content {
    transform: translateY(30px);
    transition: transform 0.4s ease 0.1s;
    width: 100%;
}

.portfolio-card:hover .overlay-content {
    transform: translateY(0);
}

.portfolio-content {
    padding: 1.5rem;
}

.filter-btn {
    transition: all 0.3s ease;
    border-width: 2px;
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(0.98);
}

.filter-btn:not(.active):hover {
    background: var(--bg-soft);
    transform: translateY(-2px);
}

.portfolio-item {
    animation: fadeInUp 0.5s ease;
    transition: all 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Portfolio Badges */
.badge.bg-opacity-20 {
    backdrop-filter: blur(10px);
}

/* CTA Section */
.bg-black-soft {
    background: var(--bg-black-soft);
    color: white;
}

.bg-black-soft .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ===== RESPONSIVE PORTFOLIO ===== */
@media (max-width: 991px) {
    .portfolio-hero {
        padding: 10rem 0 4rem;
    }
    
    .portfolio-image-wrapper {
        height: 220px;
    }
    
    .portfolio-overlay {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .portfolio-hero {
        padding: 8rem 0 3rem;
    }
    
    .portfolio-hero .display-1 {
        font-size: 3rem;
    }
    
    .portfolio-image-wrapper {
        height: 200px;
    }
    
    .portfolio-content {
        padding: 1.25rem;
    }
    
    .filter-btn {
        padding: 8px 20px !important;
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
}

@media (max-width: 576px) {
    .portfolio-hero {
        padding: 7rem 0 2rem;
    }
    
    .portfolio-hero .display-1 {
        font-size: 2.5rem;
    }
    
    .portfolio-hero .lead {
        font-size: 1rem;
    }
    
    .portfolio-card {
        margin-bottom: 1.5rem;
    }
    
    .portfolio-image-wrapper {
        height: 180px;
    }
    
    .overlay-content h5 {
        font-size: 1rem;
    }
    
    .overlay-content .btn {
        padding: 6px 16px;
        font-size: 0.875rem;
    }
    
    .portfolio-grid .col-lg-4 {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* Animation for portfolio items */
@keyframes portfolioItemAppear {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.portfolio-item {
    animation: portfolioItemAppear 0.5s ease forwards;
}

/* Ukuran untuk Desktop */
.navbar-brand .main-logo {
    height: 45px;       /* Ubah angka ini untuk memperbesar (Contoh: 60px - 80px) */
    width: auto;        /* Menjaga rasio agar tidak gepeng */
    object-fit: contain;
    padding: 5px 0;    /* Memberi sedikit ruang napas di atas/bawah */
    transition: all 0.3s ease;
}

/* Penyesuaian khusus untuk Mobile agar tidak terlalu memenuhi layar */
@media (max-width: 768px) {
    .navbar-brand .main-logo {
        height: 35px;   /* Ukuran sedikit lebih kecil di HP agar navbar tidak terlalu lebar */
    }
}

/* Opsional: Jika navbar terasa terlalu sempit setelah logo diperbesar */
.navbar {
    padding-top: 10px;
    padding-bottom: 10px;
}