/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

/* =========================
   RESET & BASE STYLES
   ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background: linear-gradient(135deg, #1a0b2e 0%, #2d1b4e 50%, #4a2c6d 100%);
    color: #ffffff;
    min-height: 100vh;
}

/* =========================
   NAVBAR STYLES
   ========================= */
.navbar {
    background: rgba(26, 11, 46, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar-scrolled {
    background: rgba(26, 11, 46, 0.95);
    padding: 0.5rem 0;
}

.logo {
    height: 50px;
    width: auto;
}

.navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    padding: 0.8rem 1.5rem !important;
    margin: 0 0.2rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    background: linear-gradient(135deg, #b857d4 0%, #8b4db8 100%);
    color: #fff !important;
    box-shadow: 0 5px 15px rgba(184, 87, 212, 0.4);
}

/* =========================
   PORTFOLIO SECTION
   ========================= */
.portfolio-section {
    min-height: 100vh;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a0b2e 0%, #2d1b4e 50%, #4a2c6d 100%);
}

/* Portfolio Header */
.portfolio-header {
    margin-bottom: 4rem;
    animation: fadeInDown 1s ease;
}

.portfolio-title {
    font-size: 4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.portfolio-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    color: #e0d4f7;
}

/* Portfolio Card */
.portfolio-card {
    background: linear-gradient(135deg, #2d1b4e 0%, #3d2a5e 100%);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 3px solid rgba(255, 255, 255, 0.6);
    height: 100%;
    animation: fadeInUp 0.8s ease;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(184, 87, 212, 0.4);
    border-color: rgba(255, 255, 255, 0.9);
}

/* Portfolio Image */
.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 300px;
    background: linear-gradient(135deg, #3d2a5e 0%, #4d3a6e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

/* Portfolio Overlay */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 11, 46, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.btn-view {
    background: linear-gradient(135deg, #b857d4 0%, #8b4db8 100%);
    color: #ffffff;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(184, 87, 212, 0.3);
}

.btn-view:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(184, 87, 212, 0.5);
}

/* Portfolio Info */
.portfolio-info {
    padding: 1.5rem;
    text-align: center;
}

.portfolio-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.portfolio-card-desc {
    font-size: 1rem;
    font-weight: 300;
    color: #e0d4f7;
    margin: 0;
}

/* =========================
   TESTIMONIAL SECTION
   ========================= */
.testimonial-section {
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 2;
}

.testimonial-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.testimonial-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    color: #e0d4f7;
    text-align: center;
    margin-bottom: 3rem;
}

/* Testimonial Slider */
.testimonial-slider {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 60px;
}

.testimonial-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.testimonial-slide {
    display: none;
    width: 100%;
    animation: fadeIn 0.5s ease;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

/* Slider Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #1a0b2e;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.slider-btn:hover {
    background: #b857d4;
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(184, 87, 212, 0.4);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

/* Slider Dots */
.slider-dots {
    text-align: center;
    padding: 1.5rem 0 0;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: #b857d4;
    transform: scale(1.2);
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* =========================
   FLOATING PARTICLES
   ========================= */
.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(184, 87, 212, 0.6);
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
    box-shadow: 0 0 20px rgba(184, 87, 212, 0.8);
    z-index: 1;
}

.particle-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.particle-2 {
    top: 70%;
    left: 80%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
}

.particle-3 {
    top: 30%;
    left: 85%;
    width: 8px;
    height: 8px;
    animation-delay: 4s;
}

.particle-4 {
    top: 90%;
    left: 20%;
    animation-delay: 3s;
}

/* =========================
   FOOTER SECTION
   ========================= */
.footer {
    position: relative;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(26, 11, 46, 0.95);
    color: #ffffff;
    text-align: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
}

.footer .container {
    position: relative;
    z-index: 1001;
}

.copyright {
    font-size: 1rem;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}

/* =========================
   ANIMATIONS
   ========================= */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(-10px) translateX(-10px);
    }
    75% {
        transform: translateY(-30px) translateX(5px);
    }
}

/* =========================
   RESPONSIVE DESIGN
   ========================= */
@media (max-width: 991px) {
    .navbar-nav {
        background: rgba(26, 11, 46, 0.95);
        padding: 1rem;
        border-radius: 15px;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.3rem 0;
    }
    
    .portfolio-title {
        font-size: 3rem;
    }
    
    .portfolio-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .portfolio-section {
        padding-top: 100px;
    }
    
    .portfolio-title {
        font-size: 2.5rem;
    }
    
    .portfolio-subtitle {
        font-size: 1rem;
    }
    
    .portfolio-header {
        margin-bottom: 2.5rem;
    }
    
    .portfolio-image {
        height: 250px;
    }
    
    .testimonial-title {
        font-size: 2.5rem;
    }
    
    .testimonial-subtitle {
        font-size: 1.1rem;
    }
    
    .testimonial-slider {
        padding: 0 50px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    .footer {
        padding: 1rem 0.5rem;
    }

    .copyright {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .portfolio-title {
        font-size: 2rem;
    }
    
    .portfolio-subtitle {
        font-size: 0.9rem;
    }
    
    .logo {
        height: 40px;
    }
    
    .portfolio-card-title {
        font-size: 1.2rem;
    }
    
    .portfolio-card-desc {
        font-size: 0.9rem;
    }
    
    .portfolio-image {
        height: 220px;
    }
    
    .btn-view {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .testimonial-title {
        font-size: 2rem;
    }
    
    .testimonial-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .testimonial-slider {
        padding: 0 45px;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
}

/* =========================
    PORTFOLIO MODAL (RAPI & RESPONSIF)
   ========================= */
#portfolioModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* LEBIH GELAP */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 3000;
}

#portfolioModal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content-box {
    background: #ffffff;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    padding: 25px;
    box-shadow: 0 0 40px rgba(0,0,0,0.4);
    text-align: center;
    animation: fadeInUp 0.35s ease;
    position: relative;
}

/* Image rapi & tidak meledak */
#modalImage {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Title & description */
#modalTitle {
    font-size: 1.7rem;
    font-weight: 700;
    color: #1a0b2e;
    margin-top: 10px;
}

#modalDescription {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

/* Close button pojok kanan */
.modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: 0.2s;
}

.modal-close:hover {
    color: #b857d4;
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .modal-content-box {
        padding: 18px;
        border-radius: 15px;
    }

    #modalImage {
        max-height: 50vh;
    }

    #modalTitle {
        font-size: 1.3rem;
    }

    #modalDescription {
        font-size: 0.9rem;
    }
}
