/* Reset & General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Afacad', sans-serif;
    overflow-x: hidden;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0D3B52;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    display: flex;
    gap: 15px;
}

.circle {
    width: 20px;
    height: 20px;
    background: #C8374B;
    border-radius: 50%;
    animation: bounce-loading 1.4s infinite ease-in-out both;
}

.circle:nth-child(1) {
    animation-delay: -0.32s;
}

.circle:nth-child(2) {
    animation-delay: -0.16s;
    background: #5BA3C3;
}

.circle:nth-child(3) {
    background: #F5EFE0;
}

@keyframes bounce-loading {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #5BA3C3;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo {
    font-family: 'Paytone One', sans-serif;
    font-size: 18px;
    color: #0D3B52;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: #0D3B52;
    text-decoration: none;
    font-family: 'Afacad', sans-serif;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #fff;
}

/* Hero Section */
.hero {
    background: #5BA3C3;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Floating Shapes Animation */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0.3;
    animation: float-shapes 20s infinite ease-in-out;
}

.shape-1 {
    width: 80px;
    height: 80px;
    background: #C8374B;
    border-radius: 50%;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    background: #F5EFE0;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: #0D3B52;
    transform: rotate(45deg);
    top: 40%;
    left: 15%;
    animation-delay: 4s;
    animation-duration: 20s;
}

.shape-4 {
    width: 70px;
    height: 70px;
    background: #C8374B;
    border-radius: 50%;
    top: 70%;
    left: 20%;
    animation-delay: 1s;
    animation-duration: 16s;
}

.shape-5 {
    width: 90px;
    height: 90px;
    background: #F5EFE0;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    top: 15%;
    left: 75%;
    animation-delay: 3s;
    animation-duration: 22s;
}

.shape-6 {
    width: 50px;
    height: 50px;
    background: #0D3B52;
    border-radius: 50%;
    top: 80%;
    left: 85%;
    animation-delay: 5s;
    animation-duration: 14s;
}

@keyframes float-shapes {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(90deg);
    }
    50% {
        transform: translateY(-60px) translateX(-20px) rotate(180deg);
    }
    75% {
        transform: translateY(-30px) translateX(20px) rotate(270deg);
    }
}

.hero h1 {
    font-family: 'Paytone One', sans-serif;
    font-size: 80px;
    color: #F5EFE0;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin: 0;
    animation: slideInFromLeft 1s ease-out, float 3s ease-in-out infinite 1s;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

.hero h2 {
    font-family: 'Nanum Brush Script', cursive;
    font-size: 90px;
    color: #C8374B;
    margin-top: -20px;
    animation: slideInFromRight 1s ease-out, bounce 2s ease-in-out infinite 1s;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
}

/* Animasi untuk PORTFOLIO */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100vw);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Animasi untuk Sasha */
@keyframes slideInFromRight {
    0% {
        transform: translateX(100vw) rotate(0deg);
        opacity: 0;
    }
    100% {
        transform: translateX(0) rotate(0deg);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0px) rotate(-2deg);
    }
    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

/* About Section */
.about {
    background: #F5EFE0;
    padding: 80px 40px;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-left {
    flex: 1;
}

.about-left h2 {
    font-family: 'Nanum Brush Script', cursive;
    font-size: 60px;
    color: #C8374B;
    margin-bottom: 30px;
}

.about-left p {
    font-family: 'Afacad', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.about-right {
    flex: 0 0 350px;
}

.about-image {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* About Page - New Separate Page */
.about-page {
    background: #F5EFE0;
    min-height: 100vh;
    padding-top: 80px;
}

/* Top Section - Photo and Bio */
.about-page-top {
    background: #F5EFE0;
    padding: 40px;
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-top-left {
    flex: 0 0 350px;
}

.about-top-left h2 {
    font-family: 'Nanum Brush Script', cursive;
    font-size: 70px;
    color: #C8374B;
    margin-bottom: -20px;
    position: relative;
    z-index: 10;
}

.about-photo-container {
    width: 100%;
    text-align: center;
    position: relative;
}

.about-photo-container img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.photo-label {
    font-family: 'Nanum Brush Script', cursive;
    font-size: 28px;
    color: #C8374B;
    margin: 0;
}

.photo-label {
    font-family: 'Nanum Brush Script', cursive;
    font-size: 28px;
    color: #C8374B;
    margin: 0;
}

.about-top-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.about-top-right p {
    font-family: 'Afacad', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

/* Bottom Section - All Information */
.about-page-bottom {
    background: #C8374B;
    padding: 50px 40px;
    color: #F5EFE0;
}

.about-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.about-info-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-section {
    margin-bottom: 0;
}

.about-section h3 {
    font-family: 'Nanum Brush Script', cursive;
    font-size: 35px;
    color: #F5EFE0;
    margin-bottom: 15px;
}

.about-section ul {
    list-style: none;
    padding-left: 0;
}

.about-section ul li {
    font-family: 'Afacad', sans-serif;
    font-size: 16px;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.about-section ul li:before {
    content: "•";
    position: absolute;
    left: 0;
}

.contact-links p {
    font-family: 'Afacad', sans-serif;
    font-size: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-link-about {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s, transform 0.3s;
}

.contact-link-about:hover {
    opacity: 0.8;
    transform: translateX(5px);
}

.contact-icon-about {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.experience-item,
.education-item {
    margin-bottom: 25px;
}

.exp-title,
.edu-title {
    font-family: 'Afacad', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.exp-date,
.edu-date {
    font-family: 'Afacad', sans-serif;
    font-size: 14px;
    font-style: italic;
    margin-bottom: 5px;
}

.exp-desc,
.edu-desc {
    font-family: 'Afacad', sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

.tools-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tools-icons img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: #fff;
    padding: 5px;
    border-radius: 8px;
}

/* ========== WORKS SELECTION PAGE (untuk navigation bar) ========== */
.works-selection {
    background: #5BA3C3;
    min-height: 100vh;
    padding: 100px 40px 40px;
}

.works-selection h2 {
    font-family: 'Nanum Brush Script', cursive;
    font-size: 60px;
    color: #C8374B;
    text-align: center;
    margin-bottom: 50px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.category-card {
    cursor: pointer;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 300px;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.category-image {
    width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(200, 55, 75, 0.95), rgba(200, 55, 75, 0.7));
    padding: 30px;
    transition: background 0.3s;
}

.category-card:hover .category-overlay {
    background: linear-gradient(to top, rgba(200, 55, 75, 1), rgba(200, 55, 75, 0.85));
}

.category-overlay h3 {
    font-family: 'Nanum Brush Script', cursive;
    font-size: 40px;
    color: #F5EFE0;
    margin: 0;
    text-align: center;
}

/* ========== WORKS SECTION - LEVEL 1: Categories (Home Page) ========== */
.works {
    background: #F5EFE0;
    padding: 80px 40px;
}

.works h2 {
    font-family: 'Nanum Brush Script', cursive;
    font-size: 60px;
    color: #C8374B;
    text-align: center;
    margin-bottom: 50px;
}

.works-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.works-slider {
    overflow: hidden;
    width: 100%;
}

.works-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
}

.work-item {
    background: #C8374B;
    min-width: calc((100% - 60px) / 3);
    height: 250px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    flex-shrink: 0;
}

.work-item:hover {
    transform: translateY(-10px);
}

.work-label {
    font-family: 'Afacad', sans-serif;
    color: #F5EFE0;
    font-size: 18px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 15px;
    border-radius: 5px;
}

.arrow {
    font-size: 40px;
    color: #0D3B52;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
    transition: color 0.3s;
}

.arrow:hover {
    color: #C8374B;
}

.arrow-left,
.arrow-right {
    position: static;
    transform: none;
}

/* ========== WORKS SECTION - LEVEL 2: Category Page (Grid Karya) ========== */
.works-category-page {
    background: #5BA3C3;
    min-height: 100vh;
    padding: 100px 40px 40px;
}

.works-category-page h2 {
    font-family: 'Nanum Brush Script', cursive;
    font-size: 60px;
    color: #C8374B;
    text-align: center;
    margin-bottom: 50px;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.work-card {
    background: #F5EFE0;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.work-card-image {
    width: 100%;
    height: 220px;
    background: #0D3B52;
    overflow: hidden;
}

.work-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.work-card:hover .work-card-image img {
    transform: scale(1.05);
}

.work-card-title {
    padding: 20px;
    text-align: center;
}

.work-card-title h3 {
    font-family: 'Nanum Brush Script', cursive;
    font-size: 32px;
    color: #C8374B;
    margin: 0;
}

/* ========== WORKS SECTION - LEVEL 3: Project Detail Page ========== */
.project-detail-page {
    background: #F5EFE0;
    min-height: 100vh;
    padding: 100px 40px 40px;
}

.project-detail-container {
    max-width: 1200px;
    margin: 0 auto;
}

.back-button {
    font-family: 'Afacad', sans-serif;
    color: #0D3B52;
    font-size: 18px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    cursor: pointer;
    transition: color 0.3s;
    font-weight: 600;
}

.back-button:hover {
    color: #C8374B;
}

.project-image {
    background: #0D3B52;
    height: 500px;
    border-radius: 15px;
    margin-bottom: 40px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info h3 {
    font-family: 'Nanum Brush Script', cursive;
    font-size: 50px;
    color: #C8374B;
    margin-bottom: 20px;
}

.project-info p {
    font-family: 'Afacad', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}

.project-meta {
    display: flex;
    gap: 60px;
    margin-top: 40px;
}

.software,
.year {
    flex: 1;
}

.software h4,
.year h4 {
    font-family: 'Nanum Brush Script', cursive;
    font-size: 40px;
    color: #C8374B;
    margin-bottom: 15px;
}

.software-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.software-icon {
    width: 50px;
    height: 50px;
    background: #0D3B52;
    border-radius: 8px;
    object-fit: contain;
    padding: 5px;
}

.year p {
    font-family: 'Afacad', sans-serif;
    font-size: 24px;
    color: #333;
    font-weight: 600;
}

/* ========== OLD WORKS DETAIL PAGE (Not used anymore) ========== */
.works-detail-page {
    background: #5BA3C3;
    min-height: 100vh;
    padding: 100px 40px 40px;
}

.works-detail-page h2 {
    font-family: 'Nanum Brush Script', cursive;
    font-size: 60px;
    color: #C8374B;
    text-align: center;
    margin-bottom: 50px;
}

/* Contact Section */
.contact {
    background: #0D3B52;
    padding: 100px 40px;
    color: #F5EFE0;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.contact-left {
    flex: 1;
}

.contact-left h2 {
    font-family: 'Nanum Brush Script', cursive;
    font-size: 60px;
    color: #C8374B;
    margin-bottom: 20px;
}

.contact-left p {
    font-family: 'Afacad', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Afacad', sans-serif;
    font-size: 14px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Afacad', sans-serif;
    font-size: 14px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s, transform 0.3s;
}

.contact-link:hover {
    opacity: 0.8;
    transform: translateX(5px);
}

.contact-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.contact-right {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: 'Afacad', sans-serif;
    font-size: 16px;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background: #F5EFE0;
    font-family: 'Afacad', sans-serif;
    font-size: 14px;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.submit-btn {
    background: #C8374B;
    color: #F5EFE0;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-family: 'Afacad', sans-serif;
    font-size: 16px;
    cursor: pointer;
    float: right;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #a02d3d;
}

/* Footer */
footer {
    background: #000;
    color: #C8374B;
    text-align: center;
    padding: 20px;
    font-family: 'Afacad', sans-serif;
    font-size: 14px;
}

/* Page States */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 50px;
    }
    
    .hero h2 {
        font-size: 60px;
    }

    .about-content {
        flex-direction: column;
    }

    .about-right {
        flex: 1;
        width: 100%;
    }

    .about-image {
        height: 350px;
    }
    
    .about-page-top {
        flex-direction: column;
    }
    
    .about-top-left {
        flex: 1;
        width: 100%;
    }
    
    .about-info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .works-track {
        flex-direction: column;
    }
    
    .work-item {
        min-width: 100%;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .arrow {
        display: none;
    }

    .project-meta {
        flex-direction: column;
        gap: 30px;
    }

    .project-image {
        height: 300px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        height: 250px;
    }
}