html {
    -webkit-text-size-adjust: 100%;
}

:root {
    --primary-color: #fd9758;
    --secondary-color: #ffffff;
    --dark-color: #2C3E50;
    --light-color: #F8F9FA;
    --text-muted: #6c757d;
    --text-primary: #FFA76F;
    --text-dark: #1f2937;
}
:root {
    --primary-color: #fd9758;
    --secondary-color: #ffffff;
    --dark-color: #2C3E50;
    --light-color: #F8F9FA;
    --text-muted: #6c757d;
    --text-primary: #FFA76F;
    --text-dark: #1f2937;
}

/* Ganti btn primary */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--secondary-color) !important;
}

/* Hover / Focus */
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-color) !important;
    /* lebih gelap dari primary */
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

/* Ganti outline primary */
.btn-outline-primary {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary-color) !important;
    color: var(--secondary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}
/*
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    white-space: nowrap;
} */

.site-logo {
    width: 125px;
    height: auto;
}

.site-name {
    display: inline-block;
    font-size: 20pt;
    font-weight: 600;
    white-space: nowrap;
    /* cegah turun baris */
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 15px;
    color: var(--dark-color) !important;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0 !important;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.hero .lead {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 2rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.hero-image {
    position: relative;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.feature-list li {
    padding: 0.8rem 0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.feature-list li i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

.btn-primary-custom {
    background: var(--primary-color);
    border: none;
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px 5px;
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 167, 111, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 167, 111, 0.4);
    color: white;
    background: #ff9654;
}

.btn-secondary-custom{
    background: var(--secondary-color);
    border: none;
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px 5px;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 167, 111, 0.3);
}

.btn-secondary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(101, 46, 12, 0.4);
    color: white;
    background: var(--primary-color);
}

.hero-buttons {
    margin-top: 2rem;
    display: flex ;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-title p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
}

/* Cards */
.card-custom {
    border: none;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    height: 100%;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.card-custom:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

/* About Section */
.about-feature {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.about-feature:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-feature .card-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin: 0 1.5rem 0 0;
}

/* Portfolio */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 2rem;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 167, 111, 0.9);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

/* Pricing */
.pricing-card {
    border: none;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.pricing-card.featured {
    background: var(--primary-color);
    color: white;
    transform: scale(1.02);
    border: 3px solid var(--primary-color);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured:hover {
    transform: translateY(-10px) scale(1.02);
}

.price {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin: 1rem 0;
    color: var(--primary-color);
}

.pricing-card.featured .price {
    color: white;
}

.pricing-card ul {
    margin: 2rem 0;
}

.pricing-card ul li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
}


.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 167, 111, 0.25);
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    text-align: center;
    line-height: 50px;
    margin: 0 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    transform: translateY(-5px);
    color: white;
    background: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
    }
}

@media (max-width: 992px) {
    .hero {
        padding: 100px 0 60px;
        text-align: center;
        margin-top: 50px;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

    .about-feature {
        text-align: center;
        flex-direction: column;
    }

    .about-feature .card-icon {
        margin: 0 auto 1rem;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {

    :root {
            --primary-color: #ff7520;
            --text-primary: var(--primary-color);
        }
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }

    .navbar-nav .nav-link {
        margin: 5px 0;
    }

    .hero {
        padding: 80px 0 40px;
        margin-top: 50px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
    }

    .card-custom {
        margin-bottom: 2rem;
    }

    .pricing-card.featured {
        transform: none;
        margin: 2rem 0;
    }

    section {
        padding: 40px 0;
    }

    .section-title {
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 0 30px;
        margin-top: 75px;
    }

    .btn-primary-custom {
        padding: 12px 25px;
        font-size: 0.95rem;
    }

    .card-custom {
        padding: 2rem 1.5rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .pricing-card {
        padding: 2rem 1.5rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content>* {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-content h1 {
    animation-delay: 0.1s;
}

.hero-content .lead {
    animation-delay: 0.2s;
}

.hero-content .feature-list {
    animation-delay: 0.3s;
}

.hero-content .hero-buttons {
    animation-delay: 0.4s;
}

.hero-image {
    animation: fadeInUp 0.8s ease-out 0.5s both;
}



/* DETAIL */
  .project-header {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 120px 0 80px;
    margin-bottom: 0;
}



.project-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.project-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Project Gallery */
.project-gallery {
    margin-bottom: 4rem;
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.thumbnail-gallery {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.thumbnail {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Project Details */
.project-details {
    background: white;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
}

.detail-section {
    margin-bottom: 3rem;
}

.detail-section h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tech-item {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tech-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.tech-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

/* Stats Section */
.project-stats {
    background: var(--primary-color);
    color: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
    margin-bottom: 2rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Call to Action */
.cta-section {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
}

.btn-primary-custom {
    background: var(--primary-color);
    border: none;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 167, 111, 0.3);
    margin: 0 0.5rem;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 167, 111, 0.4);
    color: white;
    background: var(--primary-color);
}

/* Related Projects */
.related-projects {
    margin-top: 4rem;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    color: inherit;
    text-decoration: none;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card-body {
    padding: 1.5rem;
}

.project-card h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.project-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.project-card .project-type {
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Modal for full-screen images */
.modal {
    background: rgba(0, 0, 0, 0.9);
}

.modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
}

.modal-body {
    padding: 0;
    text-align: center;
}

.modal-body img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
    }
}

@media (max-width: 992px) {

    .site-logo {
        width: 115px;
        height: auto;
        margin-bottom: 0.25rem;
    }



    .project-header {
        padding: 100px 0 60px;
        text-align: center;
    }

    .project-meta {
        justify-content: center;
    }

    .tech-stack {
        justify-content: center;
    }

    .thumbnail-gallery {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }

    .site-logo {
        width: 100px;
        height: auto;
        margin-bottom: 0.25rem;
    }

    .site-name {
        display: inline-block;
        white-space: nowrap;
    }

    .project-header {
        padding: 80px 0 40px;
    }

    .project-details {
        padding: 2rem 1.5rem;
    }

    .main-image {
        height: 250px;
    }

    .thumbnail {
        width: 80px;
        height: 60px;
    }

    .tech-item {
        padding: 0.8rem 1rem;
    }

    .tech-item i {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {

    /* Navbar brand container */
    .navbar-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Logo */
    .site-logo {
        width: 125px;
        height: auto;
        margin-bottom: 0.25rem;
    }

    /* Nama situs - tampilkan kecil jika diinginkan */
    .site-name {
        display: none;
    }

    /* Meta section */
    .project-meta {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .meta-item,
    .project-tags {
        justify-content: center;
    }

    /* Tombol full width */
    .btn-primary-custom {
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}


/* watermark */

.watermark {
    position: absolute;
    bottom: 10px;
    left: 10px;
    opacity: 0.5;
    font-size: 16px;
    color: var(--secondary-color);
    /* pakai warna dari variable */
    pointer-events: none;
}



/* Watermark di modal */
.watermark-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(1.2rem, 4vw, 2.8rem);
    /* min 1.2rem, ideal 4vw, max 2.8rem */
    font-weight: 700;
    color: rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    pointer-events: none;
    white-space: nowrap;
    text-shadow: 2px 2px 10px rgba(255, 255, 255, 0.5);
}

/* Overlay efek hover */
.portfolio-item {
    cursor: pointer;
    overflow: hidden;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Buat background overlay modal transparan */
.modal {
    background: rgba(0, 0, 0, 0.4);
    /* hitam transparan - sesuaikan opacity */
}

/* Hilangkan warna dasar konten modal agar transparan */
.modal-content {
    background: rgba(255, 255, 255, 0.85);
    /* putih transparan */
    backdrop-filter: blur(10px);
    /* efek blur elegan (opsional) */
    border: none;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}


/* Scroll button */

.scroll-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #251c17;
    color: white;
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: inline-flex;
    /* ✅ lebih stabil di mobile */
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s ease;
    z-index: 1000;
    text-decoration: none;
    box-sizing: border-box;
    line-height: 1;
    /* ✅ hilangkan distorsi font */
    aspect-ratio: auto;
    /* biarkan default */
    -webkit-tap-highlight-color: transparent;
    /* ✅ hilangkan efek biru iOS */
}

.scroll-button:hover {
    background-color: var(--primary-color);
}

#scrollTopBtn {
    display: none;
}

/* ✅ Tambahkan untuk jaga proporsi di semua layar */
@supports not (aspect-ratio: 1 / 1) {
    .scroll-button {
        height: auto;
        padding: 0;
    }
}

/* ✅ Tambahan khusus iPhone Safari */
@media screen and (max-device-width: 768px) {
    .scroll-button {
        width: 55px !important;
        height: 55px !important;
        border-radius: 50% !important;
        transform: translateZ(0);
        /* cegah distorsi GPU */
    }
}
