/* Common Variables */
:root {
    --section-padding: 100px 0;
    --section-bg: rgb(20, 30, 48);
    --card-border: 2px solid rgba(255, 255, 255, 0.2);
    --card-hover-bg: #3b3b57;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Common Classes */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 60px;
    color: var(--primary-color);
}

/* Common Card Styles */
.card-base {
    background-color: transparent;
    border: var(--card-border);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.card-base:hover {
    background-color: var(--card-hover-bg);
    transform: translateY(-10px);
    box-shadow: var(--card-shadow);
}

/* Paw Effect Mixin */
.paw-effect::after {
    content: '';
    position: absolute;
    bottom: -32px;
    right: -32px;
    width: 42px;
    height: 42px;
    background-image: url('../media/paw64.png');
    background-size: cover;
    transition: all 0.3s ease-out;
    opacity: 0;
}

.paw-effect:hover::after {
    bottom: 0;
    right: 15px;
    opacity: 1;
}

/* ======= Hero Section ======= */

.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--section-bg) 5%, transparent 50%);
    z-index: 0;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    filter: brightness(50%);
}

.hero-content {
    padding-left: 12rem;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 620;
    line-height: 1.2;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

/* ====================================================================== */
/* ====== PERUBAHAN UTAMA: Membuat Section Menjadi Full Screen ====== */
/* ====================================================================== */
/* .services-section,
.about-section,
.contact-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    background-color: var(--section-bg);
} */

.services-section,
.about-section,
.contact-section {
    padding: var(--section-padding); /* Memberi jarak atas dan bawah */
}


/* ====== Services Section ===== */
/* .services-section sudah di-handle oleh rule di atas */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: transparent;
    border: var(--card-border);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.service-card:hover {
    background-color: var(--card-hover-bg);
    transform: translateY(-10px);
    box-shadow: var(--card-shadow);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: -32px;
    right: -32px;
    width: 42px;
    height: 42px;
    background-image: url('../media/paw64.png');
    background-size: cover;
    transition: all 0.3s ease-out;
    opacity: 0;
}

.service-card:hover::after {
    bottom: 0;
    right: 15px;
    opacity: 1;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--secondary-color);
    font-size: 0.9rem;
    line-height: 1.6;
}


/* =========================================== */
/* ====== Styling untuk Project Section ====== */
/* =========================================== */

.project-section {
    position: relative;
    padding: 0;
    height: 100vh;
    background-color: var(--section-bg);
    overflow: hidden;
}

.project-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.project-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 60px;
    color: var(--primary-color);
    position: relative;
    z-index: 2;
}

.slide .item {
    width: 200px;
    height: 300px;
    background-position: 50% 50%;
    background-size: cover;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 20px;
    box-shadow: 0 30px 50px #505050;
    transition: 0.5s ease-in-out; /* Menggunakan transisi yang lebih halus */
    z-index: 1; /* Z-index default */
}

.slide .item:nth-child(1) {
    top: 0;
    left: 0;
    transform: translate(0, 0);
    border-radius: 0;
    width: 100%;
    height: 100%;
    box-shadow: none;
    opacity: 0;
}

.slide .item:nth-child(2) {
    top: 0;
    left: 0;
    transform: translate(0, 0);
    border-radius: 0;
    width: 100%;
    height: 100%;
    box-shadow: none;
    opacity: 1; /* Pastikan terlihat */
    z-index: 2; /* Letakkan di atas item pertama */
}

.slide .item:nth-child(2)::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 3;
    pointer-events: none;
}

.project-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom, 
        var(--section-bg) 0%, 
        transparent 30%, 
        transparent 70%, 
        var(--section-bg) 100%
    );
    z-index: 5;
    pointer-events: none; /* Memastikan overlay tidak menghalangi interaksi */
}

.slide .item:nth-child(3) {
    left: calc(100% - 300px);
    top: 100%;
    transform: translateY(-150px) rotate(-15deg);
    z-index: 4; /* Pastikan kartu pratinjau di atas latar belakang */
    opacity: 1; /* Pastikan terlihat */
}

.slide .item:nth-child(n + 4) {
    left: calc(100% + 220px);
    opacity: 0;
}

.item .content {
    position: absolute;
    top: 50%;
    left: 12rem;
    width: auto;
    max-width: 500px;
    text-align: left;
    color: #eee;
    transform: translate(0, -50%);
    display: none;
    z-index: 10; /* Meningkatkan z-index agar di atas overlay */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    pointer-events: auto; /* Memastikan elemen bisa diinteraksi */
}

.slide .item:nth-child(2) .content {
    display: block;
}

.content .name {
    font-size: 40px;
    text-transform: uppercase;
    font-weight: bold;
    opacity: 0;
    animation: animate 1s ease-in-out 1 forwards;
}

.content .des {
    margin-top: 10px;
    margin-bottom: 20px;
    opacity: 0;
    animation: animate 1s ease-in-out 0.3s 1 forwards;
}

.content a {
    display: inline-block;
    position: relative;
    z-index: 15;
    opacity: 0;
    animation: animate 1s ease-in-out 0.6s 1 forwards;
    text-decoration: none;
}

.content button {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.content button:hover {
    background: var(--primary-color);
    color: var(--section-bg);
}

@keyframes animate {
    from {
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(33px);
    }
    to {
        opacity: 1;
        transform: translate(0, 0);
        filter: blur(0);
    }
}

.button {
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 20px;
    z-index: 10;
    padding-bottom: 60px;
}

.button button {
    width: 40px;
    height: 35px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    margin: 0 5px;
    border: 1px solid #000;
    transition: 0.3s;
}

.button button:hover {
    background-color: #ababab;
    color: #fff;
}


/* =========================================== */
/* ======= Styling untuk About Section ====== */
/* =========================================== */
/* .about-section sudah di-handle oleh rule di atas */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    color: var(--secondary-color);
    font-size: 1.1rem;
    line-height: 1.6;
    color: white;
}

.about-text p {
    margin-bottom: 1rem;
}

/* Utility: hide mobile-only blocks by default (desktop) */
.mobile-only { display: none; }

/* Update media query untuk responsiveness */
@media (max-width: 768px) {
    .about-content {
        padding: 0 20px;
    }
    
    .about-text {
        font-size: 1rem;
    }
}

.about-profile {
    display: true;
    flex-direction: column;
    align-items: flex-start;
    margin: 100px auto;
    padding: 40px;
    padding-top: 150px;
    max-width: 1200px;
    position: relative;
    border: none; /* removed per request: no visible border on profile cards */
    border-radius: 16px;
    color: var(--secondary-color);
    text-align: left;
    background: linear-gradient(
        to bottom,
        rgba(20, 30, 48, 0.8),
        rgb(20, 30, 48)
    );
    min-width: 100%;
    flex-shrink: 0;
}

.profile-image {
    position: absolute;
    right: 30px;
    top: 0px;
    width: 600px;
    height: 700px;
    z-index: 2;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.profile-content {
    flex: 1;
    padding-right: 40px;
}

.profile-header {
    font-size: 7rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 2px;
}

.profile-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    margin-bottom: 2rem;
    font-weight: 600;
}

.profile-details {
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    width: 300px;
}


.profile-label {
    color: var(--secondary-color);
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.profile-value {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    margin-top: 0.5rem;
}
.about-profile-slider {
    position: relative;
    max-width: 1200px;
    margin: 60px auto;
    overflow: visible;
}
.about-profiles {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.about-profile {
    min-width: 100%;
    flex-shrink: 0;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    margin: 0; /* Menghapus margin dari about-profile */
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: var(--primary-color);
}

.slider-btn i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.slider-btn:hover i {
    color: rgb(20, 30, 48);
}

.prev-btn {
    left: -80px;
}

.next-btn {
    right: -80px;
}

@media (max-width: 1400px) {
    .slider-btn {
        width: 40px;
        height: 40px;
    }
    
    .prev-btn {
        left: -50px;
    }
    
    .next-btn {
        right: -50px;
    }
}

@media (max-width: 1200px) {
    .prev-btn {
        left: 20px;
    }
    
    .next-btn {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .about-profile {
        margin: 60px auto;
        padding: 30px;
        padding-top: 100px;
        align-items: center; /* REFINEMENT: Ensure content block is centered */
        /* Make the about card use normal document flow on mobile so absolutely positioned
           images on desktop don't overlap the card content. */
        position: relative; /* ensure border encloses children when image becomes static */
    }
      /* Ensure the card stacks vertically on mobile so header, image, and value appear
       in a predictable column regardless of character artwork size */
    .about-profile {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        padding-top: 40px; /* reduce top padding for mobile */
    }

    /* Ensure the card stacks vertically on mobile so header, image, and value appear
       in a predictable column regardless of character artwork size */
    .about-profile {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        padding-top: 40px; /* reduce top padding for mobile */
        width: 60%; /* responsive width for different artwork */
        min-width: 100% !important;
        box-sizing: border-box;
        padding-left: 18px;
        padding-right: 18px;
    }

    /* Limit image height so very tall artwork doesn't push content out of viewport */
    .profile-image img {
        max-height: 50vh;
        width: auto;
        max-width: 90%;
        height: auto;
        display: block;
        margin: 0 auto;
    }
    /* On mobile, place the profile image inside the card flow so it no longer overlaps text.
       Use order to optionally put it above or below the text. Default: image above the header. */
    .profile-image {
        position: relative; /* was absolute on desktop; make it static/relative on mobile */
        top: auto;
        right: auto;
        transform: none;
        width: 60%; /* responsive width for different artwork */
        max-width: 320px; /* cap width to avoid overflow */
        height: auto; /* let aspect ratio be preserved */
        margin: 0 auto 20px auto; /* center and add spacing */
        order: -1; /* place image before the text/content */
        z-index: 2;
        pointer-events: none;
    }

    /* Limit image height so very tall artwork doesn't push content out of viewport */
    .profile-image img {
        max-height: 50vh;
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    /* Hide any overflow from the slider container on mobile so images don't bleed out */
    .about-profile-slider { overflow: hidden; }
    .about-profiles { align-items: center; }

    .profile-content {
        padding-right: 0;
        text-align: center;
        /* Ensure content stacks below the image when order is used */
        order: 0;
    }

    /* Utility classes to control visibility of duplicated elements */
    .mobile-only { display: block !important; }
    .desktop-only { display: none !important; }

    /* Hide original details block on mobile to avoid duplicated descriptions */
    .profile-details { display: none; }

    /* Ensure the order: header (mobile-only) -> image -> value (mobile-only) */
    .profile-header.mobile-only { order: -2; margin-top: 0; }
    .profile-image { order: -1; }
    .profile-value.mobile-only { order: 1; margin-top: 12px; }

    .profile-header {
        font-size: 4rem;
    }
    .profile-details {
        width: 100%;
    }

    .hero-content {
        padding-left: 5%;
        padding-right: 5%;
        text-align: left ;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }

    .item .content {
        left: 5%;
        right: 5%;
        max-width: 90%;
    }

    .slide .item:nth-child(3) {
        width: 120px;
        height: 180px;
        left: calc(100% - 130px);
        top: 100%;
        transform: translateY(-90px) rotate(-15deg);
    }

    .slide .item:nth-child(n+4) {
        left: calc(100% + 150px);
        opacity: 0;
    }
    
    .services-grid, .project-grid {
        grid-template-columns: 1fr;
    }

    .team-member {
        padding-left: 5%;
        text-align: left;
        order: 1;
    }
    .member-name {
        font-size: 2rem;
        font-weight: bold;
    }
    .member-bio {
        max-width: 100%;
    }
    .contact-content {
        padding: 0 10px;
    }
    .contact-content h2 {
        font-size: 2rem;
    }
    .contact-content p {
        font-size: 0.9rem;
    }
    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* =========================================== */
/* ======= Styling untuk Contact Section ====== */
/* =========================================== */
/* .contact-section sudah di-handle oleh rule di atas */
.contact-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.contact-tagline {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.contact-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background-color: transparent;
    border: var(--card-border);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.contact-card:hover {
    background-color: var(--card-hover-bg);
    transform: translateY(-10px);
    box-shadow: var(--card-shadow);
}

.contact-card::after {
    content: '';
    position: absolute;
    bottom: -32px;
    right: -32px;
    width: 42px;
    height: 42px;
    background-image: url('../media/paw64.png');
    background-size: cover;
    transition: all 0.3s ease-out;
    opacity: 0;
}

.contact-card:hover::after {
    bottom: 0;
    right: 15px;
    opacity: 1;
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-color);
    margin-right: 1rem;
}

.icon-wrapper i {
    font-size: 1.5rem;
    color: rgb(20, 30, 48);
}

.contact-info {
    text-align: left;
}

.contact-info h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.contact-info p {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.fun-fact {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.fun-fact i {
    font-size: 2rem;
    color: var(--primary-color);
}

.fun-fact p {
    color: var(--secondary-color);
    font-size: 1rem;
    margin: 0;
}

@media (max-width: 768px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    .fun-fact {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================== */
/* ======= Styling untuk Footer Section ====== */
/* =========================================== */
.footer {
    padding: 20px 0;
    text-align: center;
    background-color: var(--section-bg);
    color: var(--secondary-color);
    font-size: 0.9rem;
}
.footer a {
    color: var(--primary-color);
    text-decoration: underline;
}
.footer a:hover {
    color: var(--button-bg-color);
}