/* Reset margin dan padding default */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Style untuk body dan font umum */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Floating animation untuk background */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s linear infinite;
    z-index: -1;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50px, -50px); }
}

/* Container untuk konten */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
}

/* Navigation container */
nav {
    order: 2;
    margin-top: 10px;
}

/* Header styling dengan efek glassmorphism */
header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

header h1 {
    color: white;
    text-align: center;
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #fff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    order: 1;
}

/* Navigation styling */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

nav ul li a:hover::before {
    left: 100%;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Section umum styling */
section {
    background: rgba(255, 255, 255, 0.95);
    margin: 30px auto;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 1000px;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeInUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

section:nth-child(even) {
    animation-delay: 0.2s;
}

section:nth-child(odd) {
    animation-delay: 0.4s;
}

/* Heading styling */
h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    font-weight: 700;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Tentang Saya section */
#about {
    background: rgba(255, 255, 255, 0.95);
}

#about p {
    font-size: 1.3em;
    line-height: 1.6;
    color: #555;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Layanan section */
#services ul {
    list-style: none;
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

#services li {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 25px;
    border-radius: 15px;
    font-size: 1.3em;
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    animation: slideInUp 0.8s ease-out forwards;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#services li:hover {
    transform: translateY(-5px) scale(1.02);
}

#services li:nth-child(1) { animation-delay: 0.1s; }
#services li:nth-child(2) { animation-delay: 0.2s; }

@keyframes slideInUp {
    to { transform: translateY(0); opacity: 1; }
}

/* Sertifikat Pelatihan section */
#certifications {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

#certifications h2 {
    color: white;
}

#certifications > p {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 30px;
    opacity: 0.9;
}

#certifications ul {
    list-style: none;
    display: grid;
    gap: 30px;
}

#certifications li {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

#certifications li:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 0.25);
}

#certifications h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: white;
}

#certifications li p {
    font-size: 1.1em;
    margin-bottom: 20px;
    opacity: 0.9;
}

#certifications img {
    max-width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    filter: brightness(0.9);
}

#certifications img:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

/* Kontak section */
#contact {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    text-align: center;
}

#contact h2 {
    color: white;
}

#contact > p {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

#contact ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

#contact li {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 15px;
    font-size: 1.1em;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

#contact li:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Footer styling */
footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    backdrop-filter: blur(10px);
}

footer p {
    font-size: 1.1em;
    opacity: 0.8;
}

/* Responsive design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.2em;
    }
    
    header nav ul {
        gap: 15px;
    }
    
    header nav ul li a {
        padding: 10px 20px;
        font-size: 1em;
    }
    
    section {
        margin: 20px;
        padding: 30px 20px;
    }
    
    h2 {
        font-size: 2em;
    }
    
    #about p {
        font-size: 1.1em;
    }
    
    #services li {
        font-size: 1.1em;
        padding: 20px;
    }
    
    #certifications img {
        height: 200px;
    }
    
    #contact ul {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8em;
    }
    
    section {
        margin: 15px;
        padding: 25px 15px;
    }
    
    h2 {
        font-size: 1.6em;
    }
    
    #certifications img {
        height: 150px;
    }
}