/* --- VARIABLE & RESET --- */
:root {
    --primary-dark: #0f172a;
    /* Menggantikan Hijau Gelap di referensi */
    --primary-light: #ffffff;
    --accent-gold: #fbbf24;
    --accent-green: #10b981;
    /* Untuk aksen kecil */
    --text-grey: #64748b;
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: var(--primary-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo .dot {
    color: var(--accent-gold);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #cbd5e1;
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-links a:hover {
    color: white;
}

.btn-primary {
    padding: 10px 25px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: white;
    color: var(--primary-dark);
}

.menu-toggle {
    display: none;
    color: white;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero-section {
    background-color: var(--primary-dark);
    color: white;
    text-align: center;
    padding: 100px 20px 150px;
}

.subtitle-badge {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--accent-gold);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-section h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-section p {
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 40px;
}

.btn-secondary {
    background: var(--accent-gold);
    color: var(--primary-dark);
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(251, 191, 36, 0.3);
}

/* --- STATS SECTION --- */
.stats-section {
    background: var(--primary-light);
    padding: 100px 0;
    color: var(--primary-dark);
}

.stats-top {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.circle-stat {
    background: #1e293b;
    color: white;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-shrink: 0;
}

.circle-stat::after {
    content: '+';
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--accent-gold);
    font-size: 1.5rem;
}

.circle-stat .number {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
}

.stats-intro h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-top: 10px;
}

.section-tag {
    font-size: 0.8rem;
    color: var(--text-grey);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 1px solid #ccc;
    padding-left: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    border-top: 1px solid #e2e8f0;
    padding-top: 40px;
    margin-bottom: 80px;
}

.stat-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-grey);
}

.mid-headline {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.mid-headline h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* --- FEATURE SECTION (DARK) --- */
.feature-section {
    background: var(--primary-dark);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-text p {
    color: #94a3b8;
    margin-bottom: 30px;
}

.btn-primary-yellow {
    background: var(--accent-gold);
    color: var(--primary-dark);
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 40px;
    transition: 0.3s;
}

.btn-primary-yellow:hover {
    background: white;
}

.feature-list {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.feature-box {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.feature-box i {
    color: var(--accent-gold);
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 50%;
    height: fit-content;
}

.feature-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.overlay-card {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(5px);
}

.play-btn {
    width: 40px;
    height: 40px;
    border: 1px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- PORTFOLIO SECTION --- */
.portfolio-section {
    padding: 100px 0;
    background: #f8fafc;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 60px;
}

.subtitle-center {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-grey);
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-gold);
    color: var(--primary-dark);
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.card-content p {
    color: var(--text-grey);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.link-arrow {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.3s;
}

.link-arrow:hover {
    color: var(--accent-gold);
    margin-left: 5px;
}

.footer {
    text-align: center;
    padding: 20px;
    background: white;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: var(--text-grey);
}

/* --- MODAL STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.close-modal {
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--primary-dark);
}

.modal-body {
    text-align: center;
}

.price-tag {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin: 20px 0;
}

/* --- ANIMATIONS & RESPONSIVE --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animation Classes */
.reveal,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 1s ease-out;
}

.reveal {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Icon Animation on Hover */
.feature-box:hover .icon-animate {
    animation: shake 0.5s;
}

@keyframes shake {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(10deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* --- TESTIMONIAL SECTION --- */
.testimonial-section {
    padding: 100px 0;
    background: var(--primary-dark);
    color: white;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
}

.quote-icon {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.testimonial-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 30px;
    font-style: italic;
}

.client-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: white;
}

.client-info span {
    font-size: 0.85rem;
    color: var(--text-grey);
}

/* Mobile Responsive - Tablet and below */
@media (max-width: 768px) {

    /* Testimonial Optimization */
    .testimonial-section {
        padding: 60px 0;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-card {
        padding: 30px 20px;
    }

    /* Navbar Optimization */
    .navbar {
        padding: 12px 4%;
    }

    .logo {
        font-size: 1.1rem;
    }

    .btn-primary {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-dark);
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        gap: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: none;
        /* Hidden by default */
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 20px 25px;
        color: #cbd5e1;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 1rem;
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.05);
        color: var(--accent-gold);
        padding-left: 35px;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .menu-toggle {
        display: block;
        font-size: 1.2rem;
    }

    /* Hero Section Optimization */
    .hero-section {
        padding: 60px 15px 80px;
    }

    .subtitle-badge {
        font-size: 0.6rem;
        letter-spacing: 1px;
        padding: 4px 8px;
        margin-bottom: 15px;
    }

    .hero-section h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .hero-section p {
        font-size: 0.85rem;
        margin-bottom: 25px;
        padding: 0 10px;
    }

    .btn-secondary {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    /* Stats Section Optimization */
    .stats-section {
        padding: 60px 0;
    }

    .stats-top {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        margin-bottom: 50px;
    }

    .circle-stat {
        width: 140px;
        height: 140px;
    }

    .circle-stat .number {
        font-size: 3rem;
    }

    .circle-stat::after {
        font-size: 1.2rem;
        top: 15px;
        right: 30px;
    }

    .section-tag {
        font-size: 0.7rem;
    }

    .stats-intro h2 {
        font-size: 1.6rem;
        padding: 0 10px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 30px;
        margin-bottom: 50px;
    }

    .stat-item h3 {
        font-size: 1rem;
    }

    .stat-item p {
        font-size: 0.9rem;
    }

    .mid-headline {
        padding: 0 15px;
    }

    .mid-headline h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .mid-headline p {
        font-size: 0.9rem;
    }

    /* Feature Section Optimization */
    .feature-section {
        padding: 60px 0;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature-text h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .feature-text p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .btn-primary-yellow {
        padding: 10px 24px;
        font-size: 0.9rem;
        margin-bottom: 30px;
    }

    .feature-box {
        gap: 15px;
        margin-bottom: 20px;
    }

    .feature-box i {
        font-size: 1.2rem;
        padding: 12px;
    }

    .feature-box h4 {
        font-size: 1rem;
    }

    .feature-box p {
        font-size: 0.85rem;
    }

    .feature-image {
        display: none;
    }

    /* Portfolio Section Optimization */
    .portfolio-section {
        padding: 60px 0;
    }

    .portfolio-header {
        margin-bottom: 40px;
        padding: 0 15px;
    }

    .subtitle-center {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .portfolio-header h2 {
        font-size: 1.8rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .card-image {
        height: 200px;
    }

    .card-content {
        padding: 20px;
    }

    .card-content h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .card-content p {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .link-arrow {
        font-size: 0.85rem;
    }

    .card-tag {
        font-size: 0.65rem;
        padding: 4px 8px;
    }

    /* Contact Section Optimization */
    .contact-section {
        padding: 60px 0;
    }

    .contact-section .portfolio-header h2 {
        font-size: 1.8rem;
    }

    .contact-section .portfolio-header p {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    /* Modal Optimization */
    .modal-content {
        padding: 20px;
        width: 92%;
        max-width: 400px;
    }

    .modal-header h3 {
        font-size: 1.2rem;
    }

    .close-modal {
        font-size: 1.5rem;
    }

    .modal-body p {
        font-size: 0.9rem;
    }

    .price-tag {
        font-size: 1.6rem;
        margin: 15px 0;
    }

    /* Footer Optimization */
    .footer {
        padding: 15px;
        font-size: 0.8rem;
    }

    /* Container Optimization */
    .container {
        padding: 0 15px;
    }
}

/* Extra optimization for smartphones (480px and below) - Perfect for 1080x2400 */
@media (max-width: 480px) {
    .navbar {
        padding: 10px 3%;
    }

    .logo {
        font-size: 1rem;
    }

    .btn-primary {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .hero-section {
        padding: 50px 12px 70px;
    }

    .subtitle-badge {
        font-size: 0.55rem;
        padding: 3px 6px;
    }

    .hero-section h1 {
        font-size: 1.5rem;
        line-height: 1.25;
    }

    .hero-section p {
        font-size: 0.8rem;
    }

    .btn-secondary {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .stats-intro h2 {
        font-size: 1.3rem;
    }

    .circle-stat {
        width: 120px;
        height: 120px;
    }

    .circle-stat .number {
        font-size: 2.5rem;
    }

    .circle-stat::after {
        font-size: 1rem;
        top: 12px;
        right: 25px;
    }

    .mid-headline h3 {
        font-size: 1.2rem;
    }

    .mid-headline p {
        font-size: 0.85rem;
    }

    .feature-text h2 {
        font-size: 1.5rem;
    }

    .feature-box h4 {
        font-size: 0.95rem;
    }

    .portfolio-header h2 {
        font-size: 1.5rem;
    }

    .card-content h3 {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .portfolio-grid {
        gap: 10px;
    }

    .card-image {
        height: 130px;
    }

    .card-content {
        padding: 10px;
    }

    .card-content p {
        font-size: 0.75rem;
        margin-bottom: 10px;
        line-height: 1.3;
    }

    .link-arrow {
        font-size: 0.75rem;
    }

    .card-tag {
        font-size: 0.6rem;
        padding: 3px 6px;
        top: 8px;
        left: 8px;
    }

    .container {
        padding: 0 12px;
    }

    .modal-content {
        width: 95%;
        padding: 18px;
    }

    .price-tag {
        font-size: 1.4rem;
    }
}

/* Mobile Responsive - Tablet and below - Additional Overrides */
@media (max-width: 768px) {
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .testimonial-card {
        padding: 20px 15px !important;
    }

    .quote-icon {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .testimonial-card p {
        font-size: 0.8rem;
        margin-bottom: 20px;
        line-height: 1.4;
    }

    .client-info h4 {
        font-size: 0.9rem;
    }

    .client-info span {
        font-size: 0.7rem;
    }
}

/* --- PROFILE IMAGE STATS --- */
.profile-stats-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #0f172a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .profile-stats-img {
        width: 140px;
        height: 140px;
        border-width: 3px;
    }
}