:root {
    --bg-red: #C64B3D;
    --text-red: #C64B3D; 
    --bg-cream: #FEF8EB;
    --bg-pink-light: #EFC8C8;
    --bg-yellow: #FDD870; 
    --bg-blue: #ACCBD9;
    --bg-blue-card: #A8C8D6;
    --bg-pink-card: #F4ACB7;
    --text-dark: #333;
    --font-main: 'Poppins', sans-serif;
    --font-header: 'Fredoka', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-cream);
    color: var(--text-dark);
}

h1, h2, h3, h4 {
    font-family: var(--font-header);
    color: var(--text-red);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Buttons --- */
.btn-primary {
    background-color: var(--bg-red);
    color: white;
    padding: 15px 50px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(198, 75, 61, 0.3); 
    transition: all 0.3s ease-in-out; 
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05); 
    box-shadow: 0 15px 25px rgba(198, 75, 61, 0.5); 
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-header);
    color: var(--text-red);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 40px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.back-btn:hover .circle-arrow {
    transform: scale(1.2) rotate(-90deg); 
    background-color: #a83228; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.back-btn:hover span:last-child {
    transform: translateX(5px); 
    color: #a83228;
}

.circle-arrow {
    background: var(--bg-red);
    color: white;
    width: 35px; height: 35px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease; 
}

/* --- Navbar --- */
nav {
    background-color: var(--bg-pink-light);
    padding: 20px 0;
    text-align: center;
}

.nav-links {
    position: relative; 
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px; 
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-red);
    background: transparent;
    padding: 10px;
}

.nav-links a {
    position: relative;
    z-index: 2; 
    text-decoration: none;
    padding: 10px 20px;
    color: var(--text-red);
    transition: color 0.3s ease;
}

.marker {
    position: absolute;
    left: 0;
    top: 0; 
    height: 50%; 
    width: 0; 
    background-color: #FEF3E2; 
    border-radius: 30px;
    z-index: 1; 
    transition: 0.5s ease; 
    opacity: 0; 
}

.nav-links a:hover {
    color: var(--bg-red);
}

.brand-name {
    font-family: var(--font-header);
    font-size: 2rem; 
    font-weight: 500;
    color: var(--text-red);
    letter-spacing: 1px;
}

.btn-pill-small {
    background-color: #FEF3E2;
    padding: 10px 40px; 
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-red);
}

/* --- Hero Section --- */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px 15%;
    background-color: var(--bg-cream);
}

.hero-text h1 {
    font-size: 5.5rem; 
    font-weight: 400; 
    margin-bottom: 30px;
    line-height: 1.1;
    color: var(--text-red);
}

.hero-text p {
    font-size: 1.1rem; 
    max-width: 450px;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 30px;
}

.jane-letters {
    position: relative;
    display: flex;
    align-items: flex-end; 
    justify-content: center;

    transform: rotate(-2deg); 

    margin-top: 20px;
    margin-right: 20px;
    padding-bottom: 30px; 
}

.jane-letters {
    position: relative;
    display: inline-block; 
    margin-top: 20px;
    margin-right: 20px;
    transform: rotate(-3deg); 
}

.jane-main-logo {
    display: block;
    width: 500px; 
    height: auto;
    position: relative;
    z-index: 2; 

    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));

    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
}

.jane-main-logo:hover {
    transform: translateY(-15px) scale(1.05); 
    filter: drop-shadow(0 20px 25px rgba(198, 75, 61, 0.3));
    cursor: pointer;
}

.jane-accent-line {
    position: absolute;
    bottom: -20px; 
    left: -5%; 
    width: 110%; 
    height: auto;
    z-index: 1; 
    
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.1));
    transition: transform 0.4s ease;
}

.jane-accent-line:hover {
    transform: translateY(-5px) scale(1.02);
    filter: drop-shadow(0 10px 10px rgba(253, 216, 112, 0.5));
    cursor: pointer;
}

.jane-letters:hover .jane-accent-line {
    transform: translateY(-5px);
}

/* --- About Section --- */
.about {
    background: linear-gradient(to bottom, var(--bg-yellow) 75%, var(--bg-blue) 75%);
    padding: 100px 10%; 
    display: flex;
    justify-content: center; 
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px; 
    max-width: 1200px;
    width: 100%;
}

.about-image img {
    width: 350px; 
    height: 500px; 
    object-fit: cover;
    border-radius: 40px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background-color: #db4a39;
    mix-blend-mode: multiply; 
}

.about-text {
    max-width: 500px;
}

.about-text h2 {
    font-size: 4rem; 
    line-height: 1.1;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 40px; 
    font-weight: 500;
}

.about-text .btn-primary {
    display: inline-block;
    width: 100%; 
    max-width: 280px; 
    text-align: center;
    
    padding: 18px 0; 
    font-size: 1.2rem;
    border-radius: 50px;
    margin-top: 10px; 
}

/* --- Projects Section --- */
.projects {
    padding: 80px 15%;
    background-color: var(--bg-cream);
    text-align: center;
}

.section-title {
    text-align: left;
    font-size: 3rem;
    margin-bottom: 40px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); 
    gap: 30px;
    width: 200%; 
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-detail-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr; 
    gap: 60px;
    align-items: start;
    margin-top: 20px;
}

.project-visuals {
    width: 100%;
}

.project-image-column {
    position: relative;
    padding-right: 20px;
}

.main-img-wrapper {
    width: 100%;
    height: 450px; 
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    background-color: #eee; 
    position: relative;
}

.main-project-image {
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    display: block;
    transition: opacity 0.3s ease; 
}

.gallery-controls {
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 20px; 
}

.thumbnail-list {
    display: flex;
    gap: 15px; 
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail-list img {
    width: 80px;       /* Ukuran fix */
    height: 80px;      /* Ukuran fix */
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    
    /* TRICK: Border transparan default supaya tidak 'melompat' saat aktif */
    border: 3px solid transparent; 
    box-sizing: border-box;
}

.thumbnail-list img:hover,
.thumbnail-list img.active-thumb {
    opacity: 1;
    border-color: var(--bg-red); /* Border merah saat aktif */
    transform: translateY(-5px); /* Efek naik sedikit */
    box-shadow: 0 5px 15px rgba(198, 75, 61, 0.2);
}

.nav-arrow {
    width: 45px;
    height: 45px;
    background-color: var(--bg-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    flex-shrink: 0; /* Agar tidak mengecil */
}

.nav-arrow:hover {
    transform: scale(1.1);
    background-color: #b83b2f;
}

.thumbnail-carousel {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px; 
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}

.thumbnail-carousel::-webkit-scrollbar {
    display: none;
}

.thumbnail-carousel img {
    width: 100px; 
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
    border: 3px solid transparent;
}

.thumbnail-carousel img.active-thumb,
.thumbnail-carousel img:hover {
    opacity: 1;
    border-color: var(--text-red); 
    transform: translateY(-3px);
}

.thumbnail-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 5px;
    pointer-events: none; 
}

.thumbnail-arrows .arrow-btn {
    width: 40px; height: 40px;
    font-size: 1.5rem;
    pointer-events: auto;
    opacity: 0.7;
}

.thumbnail-arrows .arrow-btn:hover {
    opacity: 1;
}

.project-info-column h1 {
    font-size: 3rem;
    color: var(--text-red);
    margin-bottom: 40px;
}

.project-info-column .info-section {
    margin-bottom: 30px;
}

.project-info-column .info-section h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.project-info-column .info-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.project-info h1 {
    font-size: 3rem;
    color: var(--text-red);
    margin-bottom: 30px;
    line-height: 1.1;
}

.info-group h3 {
    font-size: 1.4rem;
    color: var(--text-red);
    margin-bottom: 15px;
}

.info-group p {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

.mt-40 { margin-top: 40px; }

@media (max-width: 768px) {
    .project-detail-layout {
        grid-template-columns: 1fr; /* Tumpuk ke bawah di HP */
        gap: 40px;
    }
    
    .thumbnail-list img {
        width: 60px;
        height: 60px;
    }
}

.card {
    border-radius: 20px;
    padding: 30px;
    text-align: left;
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-15px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.15); 
}

.card:hover .card-image img {
    transform: rotate(0deg) scale(1.05); 
}

.card-image {
    width: 100%;
    height: 220px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 15px;
    transform: rotate(-5deg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.4s ease;
}

.card-yellow { background-color: #FFDD78; }
.card-blue { background-color: var(--bg-blue-card); }
.card-pink { background-color: var(--bg-pink-card); }

.num {
    font-size: 3rem;
    color: var(--text-red);
    opacity: 0.8;
    font-family: var(--font-header);
    display: block;
    margin-bottom: 10px;
}

.num::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background: var(--text-red);
    margin-top: 5px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.card-image img {
    width: 100%;
    border-radius: 15px;
    transform: rotate(-5deg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; 
    margin-top: 60px;
}

.arrow-btn {
    background-color: var(--bg-red);
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease-in-out; 
}

.arrow-btn span {
    color: white;
    font-size: 1.8rem; 
    font-weight: bold;
    line-height: 1; 
}

.arrow-btn:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: #e03c31; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); 
}

.dots-indicator {
    display: flex;
    gap: 15px;
}

.dots-indicator .dot {
    display: block;
    width: 30px;
    height: 8px; 
    border-radius: 5px; 
    background-color: var(--bg-pink-card); 
    transition: all 0.3s ease;
    cursor: pointer;
}

.dots-indicator .dot.active {
    background-color: var(--bg-red); 
    width: 50px; 
}

.dots-indicator .dot:not(.active):hover {
    background-color: #f7a097; 
    transform: scale(1.1); 
}

/* --- Footer --- */
footer {
    background-color: var(--bg-red);
    color: #FFFFFF; 
    padding: 60px 10%; 
}

footer h2 {
    color: #FFFFFF; 
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.footer-logo-img {
    width: 150px; 
    height: auto;
    margin-bottom: 20px;
    display: block;
}

.footer-grid {
    display: grid; 

    grid-template-columns: 1.5fr 0.8fr 1fr 1.5fr; 

    gap: 50px; 

    text-align: left; 

    margin-top: 40px;
    width: 100%;
}

.input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.2); 
    border-radius: 10px;
    padding: 5px 5px 5px 15px; 
    align-items: center; 
    margin-top: 15px;
}

.input-group input {
    background: transparent;
    border: none;
    color: white;
    padding: 10px 0;
    width: 100%;
    outline: none;
    font-family: var(--font-main);
    font-size: 0.9rem;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .main-img-wrapper {
        height: 300px; 
    }
}

.footer-contact a {
    color: #FFFFFF;
    text-decoration: underline; 
    text-underline-offset: 3px; 
    transition: opacity 0.3s ease;
}

.footer-contact a:hover {
    opacity: 0.7; 
}

.footer-contact p {
    display: flex; 
    align-items: center;
    gap: 10px; 
    margin-bottom: 15px; 
    font-size: 1rem; 
    color: white; 
}

.contact-icon {
    width: 25px;   
    height: 25px;  
    object-fit: contain; 
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.1)); 
    flex-shrink: 0; 
}

.footer-links h4, 
.footer-contact h4, 
.footer-news h4 {
    color: #FFFFFF; 
    font-family: var(--font-header); 
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 500;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: #FFFFFF; 
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.input-group {
    display: flex;
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
    padding: 5px;
}

.input-group input {
    background: transparent;
    border: none;
    color: white;
    padding: 5px;
    width: 100%;
    outline: none;
}

.input-group button {
    background: white;
    border: none;
    color: var(--bg-red);
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-container {
    padding: 40px 10%;
    background-color: var(--bg-cream);
    min-height: 100vh; /* Tinggi minimal setayar layar penuh */
    animation: fadeIn 0.5s ease-in-out;
}

/* Tombol Back */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-header);
    color: var(--text-red);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 40px;
    cursor: pointer; 
}

.circle-arrow {
    background: var(--bg-red);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.btn-send-icon {
    background: transparent; 
    border: none;
    cursor: pointer;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.btn-send-icon img {
    width: 35px; 
    height: 35px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.1)); 
}

.btn-send-icon img:hover {
    transform: scale(1.1) rotate(-10deg);
}

/* Layout Kiri-Kanan */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr; 
    gap: 80px; 
    align-items: start; 
}

.mt-50 { margin-top: 50px; }
.mt-2 { margin-top: 15px; }
.mt-1 { margin-top: 8px; }

.info-section h3 {
    color: var(--text-red); 
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.info-section p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

/* Foto & Label Melayang */
.photo-container { position: relative; width: 100%; }
.photo-container img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 10px 10px 0px rgba(198, 75, 61, 0.1);
    background-color: #DB4A39;
    mix-blend-mode: multiply; /* Efek warna tumpuk */
}

.float-pill {
    position: absolute;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: #FFDD78;
    color: var(--text-red);
    z-index: 2;
}
.date-pill { top: 40px; right: -30px; }
.nation-pill { bottom: 80px; left: -30px; }

/* Teks & Grid Info */
.right-column h1 { font-size: 4rem; color: var(--text-red); line-height: 1.1; margin-bottom: 30px; }
.bio-text p { font-size: 1rem; line-height: 1.6; margin-bottom: 20px; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.info-block h3 { font-size: 1.4rem; margin-bottom: 15px; color: var(--text-red); }

/* Ikon Software (Kotak Merah) */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.software-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 10px; 
    margin-top: 10px;
}

.software-icons span {
    background-color: var(--bg-red);
    color: white;
    width: 30px; height: 30px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 0.7rem;
}

.software-icons img {
    width: 40px;
    height: 40px; 
    object-fit: contain; 
    border-radius: 8px; 
}

.software-icons img:hover {
    transform: scale(1.1); 
}

.skills-icons { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 15px; }
.skills-icons span { 
    background-color: var(--bg-red); 
    color: white; 
    width: 35px; height: 35px; 
    border-radius: 8px; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 0.75rem; font-weight: 700; 
}

/* Tag Skill (Biru) */
.skill-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.skill-tags span { 
    background-color: var(--bg-blue-card); 
    color: white; 
    padding: 6px 15px; 
    border-radius: 20px; 
    font-size: 0.85rem; font-weight: 600; 
}
.lang-grid { display: flex; gap: 30px; }

.animate-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-scroll.show {
    opacity: 1;
    transform: translateY(0);
}

.card:nth-child(2) { transition-delay: 0.2s; }
.card:nth-child(3) { transition-delay: 0.4s; }

.projects-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 10px 0 50px 0; 
}

.arrow-btn.disabled {
    background-color: #E0E0E0;
    cursor: not-allowed;
    opacity: 0.5;
    transform: none !important;
    box-shadow: none;
}

.social-icons {
    margin-top: 10px; 
    display: flex; 
    gap: 15px; 
    align-items: center; 
}

.social-icon {
    width: 32px; 
    height: 32px;
    object-fit: contain; 
    transition: transform 0.2s ease-in-out; 
}

.social-icon:hover {
    transform: scale(1.1); 
}