/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0a0a0a;
    color: #f5f5f5;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header & Navigasi */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #f5f5f5;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section dengan Slideshow */
.hero {
    position: relative;
    text-align: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    padding: 40px;
}

.slide {
    position: absolute;
    top: 40px;
    left: 40px;
    width: calc(100% - 80px);
    height: calc(100% - 80px);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    filter: blur(3px) brightness(0.7);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    color: #f5f5f5;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ffffff;
    color: #0a0a0a;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #e6e6e6;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* About Section dengan Foto Profil Kecil */
.about {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 0 0 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateX(-100px);
    opacity: 0;
    transition: all 0.8s ease;
}

.about-image.animate-in {
    transform: translateX(0);
    opacity: 1;
}

.about-image.animate-out {
    transform: translateX(-100px);
    opacity: 0;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.about-content {
    flex: 1;
    transform: translateX(100px);
    opacity: 0;
    transition: all 0.8s ease;
}

.about-content.animate-in {
    transform: translateX(0);
    opacity: 1;
}

.about-content.animate-out {
    transform: translateX(100px);
    opacity: 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #ffffff;
}

.about-content p {
    margin-bottom: 20px;
    color: #ccc;
}

/* Skills Section */
.skills {
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.skill-card {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s ease;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.6s ease;
}

.skill-card.animate-in {
    transform: translateY(0);
    opacity: 1;
}

.skill-card.animate-out {
    transform: translateY(100px);
    opacity: 0;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.skill-icon {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Projects Section */
.projects {
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 50px;
}

.project-card {
    background-color: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    height: 250px;
    cursor: pointer;
    transform: translateX(-100px);
    opacity: 0;
    transition: all 0.6s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.project-card.animate-in {
    transform: translateX(0);
    opacity: 1;
}

.project-card.animate-out {
    transform: translateX(-100px);
    opacity: 0;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

.project-image {
    width: 40%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.project-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.project-description {
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
    padding: 8px 15px;
    border: 1px solid #ffffff;
    border-radius: 5px;
}

.project-links a:hover {
    background-color: #ffffff;
    color: #0a0a0a;
}

/* Video */
.video-section {
    text-align: center;
}

.video-container {
    margin: 40px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.8s ease;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.video-container.animate-in {
    transform: scale(1);
    opacity: 1;
}

.video-container.animate-out {
    transform: scale(0.9);
    opacity: 0;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* Contact Section */
.contact {
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.6s ease;
}

.contact-item.animate-in {
    transform: translateY(0);
    opacity: 1;
}

.contact-item.animate-out {
    transform: translateY(50px);
    opacity: 0;
}

.contact-icon {
    font-size: 1.8rem;
    color: #ffffff;
}

.contact-item a {
    color: #f5f5f5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #ffffff;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #1a1a1a;
    color: #f5f5f5;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    transform: translateY(30px);
    opacity: 0;
}

.social-links a.animate-in {
    transform: translateY(0);
    opacity: 1;
}

.social-links a.animate-out {
    transform: translateY(30px);
    opacity: 0;
}

.social-links a:hover {
    background-color: #ffffff;
    color: #0a0a0a;
    transform: translateY(-5px);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #333;
    color: #aaa;
    font-size: 0.9rem;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    color: #0a0a0a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

/* Project Detail Pages */
.project-detail {
    padding-top: 120px;
    min-height: 100vh;
    display: none;
}

.project-detail.active {
    display: block;
}

.project-header {
    text-align: center;
    margin-bottom: 50px;
}

.project-hero {
    height: 400px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 40px;
}

.project-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.project-description h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.project-description p {
    margin-bottom: 20px;
    color: #ccc;
}

.project-details {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
}

.project-details h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.detail-item {
    margin-bottom: 15px;
}

.detail-item strong {
    display: block;
    margin-bottom: 5px;
    color: #fff;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border: 1px solid #ffffff;
    border-radius: 5px;
}

.back-button:hover {
    gap: 15px;
    background-color: #ffffff;
    color: #0a0a0a;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about {
        flex-direction: column;
        text-align: center;
    }
    
    .about-image {
        flex: 0 0 250px;
        margin-bottom: 30px;
    }
    
    .about-image img {
        height: 350px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #0a0a0a;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        flex-direction: column;
        height: auto;
    }
    
    .project-image {
        width: 100%;
        height: 200px;
    }
    
    .about-image {
        flex: 0 0 200px;
    }
    
    .about-image img {
        height: 300px;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .slideshow-container {
        padding: 20px;
    }
    
    .slide {
        top: 20px;
        left: 20px;
        width: calc(100% - 40px);
        height: calc(100% - 40px);
    }
}

@media (max-width: 480px) {
    .logo-container {
        gap: 10px;
    }
    
    .logo-img {
        width: 35px;
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .slideshow-container {
        padding: 15px;
    }
    
    .slide {
        top: 15px;
        left: 15px;
        width: calc(100% - 30px);
        height: calc(100% - 30px);
    }
    
    .project-content {
        padding: 20px;
    }
    
    .project-title {
        font-size: 1.5rem;
    }
    
    .about-image {
        flex: 0 0 180px;
    }
    
    .about-image img {
        height: 250px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 20px;
    }
}