/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Navbar */
.navbar {
    position: fixed;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #007bff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-links li a {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #1a1a1a;
    position: relative;
    transition: all 0.3s ease;
    font-weight: 600;
}

.nav-links li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #007bff, #00ff88);
    transition: width 0.3s ease;
}

.nav-links li a:hover {
    color: #007bff;
}

.nav-links li a:hover::before {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,123,255,0.1) 0%, rgba(0,255,136,0.1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-text {
    animation: fadeInUp 1s ease-out;
}

.greeting {
    font-size: 1.5rem;
    color: #007bff;
    font-weight: 500;
    display: block;
    margin-bottom: 1rem;
    animation: slideInLeft 1s ease-out 0.3s both;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #007bff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.typing-text {
    min-height: 30px;
    margin: 1rem 0;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.text-rotate {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 1px;
}

.cta-button.primary {
    background: linear-gradient(45deg, #007bff, #00ff88);
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid #007bff;
    color: #007bff;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Sections */
section {
    padding: 5rem 2rem;
}

h2 {
    text-align: center;
    margin-bottom: 3rem;
}

/* About Section */
section#tentang {
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.4) 100%);
    overflow: hidden;
}

/* Tambahkan efek geometric shapes di background */
section#tentang::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,123,255,0.05) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
    z-index: 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-content img {
    width: 300px;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0,123,255,0.2);
    transition: all 0.3s ease;
}

.about-content img:hover {
    transform: scale(1.05);
    border-color: rgba(0,123,255,0.3);
    box-shadow: 0 15px 40px rgba(0,123,255,0.3);
}

.about-text {
    background: rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    animation: slideInRight 1s ease-out;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
    overflow: hidden;
}

.about-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.about-text:hover::before {
    transform: translateX(100%);
}

.about-text p {
    line-height: 1.8;
    color: #2c3e50;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* Tambahkan animasi rotate untuk background */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease-out;
}

.portfolio-item img {
    width: 100%;
    border-radius: 5px;
}

/* Styling untuk video lokal */
.portfolio-item video {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 1rem;
}

/* Styling untuk video lokal */
.video-wrapper {
    position: relative;
    padding-bottom: 62.25%; /* Sedikit lebih tinggi untuk mengakomodasi kontrol video */
    height: 0;
    overflow: hidden;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: none;
    object-fit: contain; /* Ubah ke contain agar video tidak terpotong */
    background: #000; /* Tambahkan background hitam */
}

/* Hover effect untuk video wrapper */
.video-wrapper:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Hover effect untuk video */
.portfolio-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.25);
}

/* Footer */
footer {
    padding: 2rem;
    background: linear-gradient(135deg, 
        rgba(255, 236, 168, 0.2) 0%, 
        rgba(0, 123, 255, 0.2) 100%
    );
    color: white;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
    overflow: hidden;
}

/* Update efek glow */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        to right, 
        transparent, 
        rgba(255, 236, 168, 0.5),
        transparent
    );
    animation: glow 2s linear infinite;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    color: #1a1a1a;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 236, 168, 0.5);
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 236, 168, 0.8), rgba(0, 123, 255, 0.4));
    animation: width-animate 2s ease-in-out infinite;
}

.footer-section p {
    color: #1a1a1a;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
}

.footer-bottom p {
    color: #1a1a1a;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 1500;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 2rem 0;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }
    
    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-links li:nth-child(1) { transition-delay: 0.2s; }
    .nav-links li:nth-child(2) { transition-delay: 0.3s; }
    .nav-links li:nth-child(3) { transition-delay: 0.4s; }
    
    .about-content {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .about-content img {
        width: 200px;
        margin-bottom: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .greeting {
        font-size: 1.2rem;
    }
    
    .text-rotate {
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
        animation: none;
    }

    .footer-section p {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    section#tentang::before {
        animation: none;
    }

    footer::before {
        animation: none;
    }
} 

.whatsapp-link {
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding: 0.3rem 0;
}

.whatsapp-link:hover {
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(255, 236, 168, 0.5);
    color: #007bff;
}

.email-link {
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding: 0.3rem 0;
}

.email-link:hover {
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(255, 236, 168, 0.5);
    color: #007bff;
} 

/* Portfolio Section */
.image-slider {
    position: relative;
    width: 100%;
    height: 300px;  /* Sesuaikan tinggi yang diinginkan */
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

.slider-container {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slider-container img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
} 

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 2000;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #1a1a1a;
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger span:first-child {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:last-child {
    top: 18px;
}

/* Hamburger Animation */
.hamburger.active span:first-child {
    transform: rotate(45deg);
    top: 9px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:last-child {
    transform: rotate(-45deg);
    top: 9px;
} 

/* Tambahkan efek scroll untuk navbar */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
} 

/* Add gradient border effect */
.portfolio-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(0,123,255,0.2), rgba(0,255,136,0.2));
    z-index: -1;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover::before {
    opacity: 1;
}

/* Update text color for better readability */
.portfolio-item h3 {
    color: #1a1a1a;
    font-weight: 600;
    margin: 1rem 0;
}

.portfolio-item p {
    color: #2c3e50;
    line-height: 1.6;
} 

/* Tambahkan animasi baru */
@keyframes glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes width-animate {
    0%, 100% { width: 50px; opacity: 0.5; }
    50% { width: 75px; opacity: 1; }
} 