html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #272727 100%);
    color: white;
    position: relative;
    overflow-x: hidden;
}

.container {
    background-color: #FFFF;
}

/* Header Styles */
header {
    margin: 20px 120px 0 120px;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 40px 0;
}

.header-content {
    position: relative;
    z-index: 2;
}

.nama {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

/* Typing Effect */
.typing-container {
    margin: 20px 0;
}

.typing-text {
    font-size: 24px;
    color: #a0aec0;
    font-weight: 300;
    border-right: 3px solid #667eea;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #667eea; }
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.btn-primary-custom, .btn-secondary-custom {
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary-custom {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary-custom:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 30px;
    color: #667eea;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

.keterangan {
    font-size: 30px;
    font-family: 'IBMPlexMono-Light', Helvetica, sans-serif;
    margin-top: 20px;
}

.keterangan_head {
    font-size: 18px;
    line-height: 1.8;
    color: #cbd5e0;
    margin-bottom: 15px;
}

/* Biography Section */
.biography-section {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 60px 120px;
    padding: 40px;
    background: rgba(50, 52, 67, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #667eea;
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.1) rotate(5deg);
}

.biography-title {
    font-size: 36px;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.biography-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-bottom: 20px;
    border-radius: 2px;
}

.biography-text {
    font-size: 18px;
    font-family: 'IBM Plex Mono', Helvetica, sans-serif;
    line-height: 1.8;
    color: #cbd5e0;
}

/* What I Do Section */
.what-section {
    padding: 60px 20px;
    max-width: auto;
    margin: auto;
}

.section-title {
    margin-left: 100px;
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-left: 100px;
    margin-bottom: 40px;
    border-radius: 2px;
}

.what-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.what-description {
    margin-left: 100px;
    flex: 1;
    font-size: 18px;
    line-height: 1.8;
    color: #cbd5e0;
}

.what-boxes {
    display: flex;
    gap: 30px;
    flex: 1;
}

.what-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 280px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.what-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.what-box:hover::before {
    left: 100%;
}

.what-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
}

.icon-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.what-box h3 {
    font-size: 22px;
    margin: 20px 0 15px;
    color: #fff;
}

.what-box p {
    font-size: 15px;
    color: #cbd5e0;
    line-height: 1.6;
}

/* Testimonial Section */
.testi{
    margin: 60px 0 30px 120px;
}

.testi h2 {
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.testimonial-section {
    padding: 40px;
    display: flex;
    justify-content: center;
}

.testimonial-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.testimonial-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 30px 20px 20px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 300px;
    text-align: center;
    position: relative;
    padding-top: 60px;
    transition: all 0.3s ease;
}

.testimonial-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
}

.testimonial-img-container {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 5px solid #667eea;
    background: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: transform 0.3s ease;
}

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

.rating {
    margin: 20px 0 15px;
    color: #ffc107;
    font-size: 18px;
}

blockquote {
    font-style: italic;
    font-size: 16px;
    margin-top: 20px;
    color: #cbd5e0;
    line-height: 1.6;
}

cite {
    display: block;
    font-weight: bold;
    margin-top: 15px;
    font-size: 14px;
    color: #667eea;
}

/* Skills Section */
.skill-section {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #1a1a2e 0%, #272727 100%);
}

.skill-title {
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.skill-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.skill-main {
    width: 400px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.3));
    animation: float 3s ease-in-out infinite;
}

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

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.skill-row {
    display: flex;
    justify-content: center;
    gap: 70px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.skill-img {
    width: 90px;
    height: auto;
    transition: all 0.3s ease;
    filter: grayscale(20%);
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-img:hover {
    transform: scale(1.2) rotate(10deg);
    filter: grayscale(0%) drop-shadow(0 0 20px rgba(102, 126, 234, 0.6));
    background: rgba(102, 126, 234, 0.1);
}

.skill-name {
    font-size: 16px;
    font-weight: 600;
    color: #cbd5e0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-item:hover .skill-name {
    opacity: 1;
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
    header {
        margin: 10px 20px 0 20px;
        min-height: 70vh;
        padding: 20px 0;
    }
    
    .nama {
        font-size: 32px;
    }
    
    .typing-text {
        font-size: 16px;
    }
    
    .keterangan_head {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-primary-custom, .btn-secondary-custom {
        width: 100%;
        justify-content: center;
    }
    
    .biography-section {
        flex-direction: column;
        align-items: center;
        margin: 30px 20px;
        padding: 30px 20px;
    }
    
    .profile-img {
        width: 150px;
        height: 150px;
    }
    
    .biography-title {
        font-size: 28px;
        text-align: center;
    }
    
    .biography-underline {
        margin-left: auto;
        margin-right: auto;
    }
    
    .biography-text {
        font-size: 16px;
        text-align: center;
    }
    
    .what-section {
        padding: 40px 10px;
    }
    
    .section-title {
        margin-left: 20px;
        font-size: 32px;
    }
    
    .title-underline {
        margin-left: 20px;
    }
    
    .what-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .what-description {
        margin-left: 20px;
        margin-right: 20px;
        font-size: 16px;
    }
    
    .what-boxes {
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
    }
    
    .what-box {
        width: 100%;
    }
    
    .testi {
        margin: 40px 0 20px 20px;
    }
    
    .testi h2 {
        font-size: 32px;
    }
    
    .testimonial-section {
        padding: 20px;
    }
    
    .testimonial-box {
        width: 100%;
    }
    
    .skill-section {
        padding: 40px 20px;
    }
    
    .skill-title {
        font-size: 32px;
    }
    
    .skill-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .skill-main {
        width: 250px;
    }
    
    .skill-list {
        gap: 30px;
    }
    
    .skill-row {
        gap: 30px;
    }
    
    .skill-img {
        width: 70px;
    }
    
    .project-section {
        padding: 40px 20px;
    }
    
    .project-title {
        font-size: 32px;
    }
    
    .project-grid {
        grid-template-columns: repeat(1, 1fr);
        margin-left: 20px;
        margin-right: 20px;
        gap: 20px;
    }
    
    .footer {
        margin-left: 0;
        text-align: center;
        padding: 40px 20px;
    }
    
    .footer-title {
        font-size: 28px;
    }
    
    .title-underline {
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-icons {
        justify-content: center;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Projects Section */
.project-section {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #272727 0%, #1a1a2e 100%);
}

.project-title {
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.project-grid {
    margin-left: 120px;
    margin-right: 120px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.project-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.project-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-info {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.project-item:hover .project-info {
    transform: translateY(0);
}

.project-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.project-info p {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.project-info i {
    font-size: 36px;
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: repeat(1, 1fr); /* Semua gambar jadi 1 kolom di layar kecil */
    }
    .project-img {
        width: 100%; /* Gambar menyesuaikan layar */
    }
}

/* Footer */
.footer {
    margin-left: 120px;
    padding: 60px 40px 40px;
    background: linear-gradient(135deg, #1a1a2e 0%, #272727 100%);
    color: white;
    text-align: left;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.footer-title {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.footer-icons {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.footer-icon {
    width: 30px;
    height: auto;
    transition: transform 0.3s ease;
}

.social-link:hover .footer-icon {
    transform: scale(1.1);
}

.footer-info p {
    margin: 8px 0;
    font-size: 14px;
    color: #cbd5e0;
    line-height: 1.8;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.scroll-to-top.visible {
    display: flex;
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
    .footer {
        margin-left: 0; /* Hapus margin kiri di layar kecil */
        text-align: center;
    }
    .footer-icons {
        justify-content: center; /* Ikon di tengah */
    }
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
    .biography-section {
        flex-direction: column;
        align-items: flex-start;
        margin: 10px;
    }
    .profile-img {
        margin: 10px auto; /* Center the image horizontally */
        width: 100px;
    }
    .biography-title {
        font-size: 24px;
        margin-left: 0;
    }
    .biography-text {
        font-size: 18px;
        margin-left: 0;
        max-width: 100%;
    }
    .what-section {
        padding: 10px;
    }
    .what-container {
        flex-direction: column;
        gap: 10px;
    }
    .what-description {
        margin-left: 0;
        font-size: 20px;
    }
    .what-boxes {
        flex-direction: column;
        gap: 10px;
    }
    .what-box {
        width: 100%;
    }
    .testimonial-section {
        padding: 20px;
    }
    .testimonial-box {
        width: 100%;
    }
    .skill-section {
        padding: 20px;
    }
    .skill-container {
        flex-direction: column;
    }
    .skill-main {
        width: 200px;
    }
    .skill-list {
        gap: 20px;
    }
    .skill-row {
        flex-direction: column;
        gap: 20px;
    }
    .project-section {
        padding: 20px;
    }
    .project-grid {
        grid-template-columns: repeat(1, 1fr);
        margin-left: 0;
    }
    .project-img {
        width: 100%;
    }
    .footer {
        margin-left: 0;
        text-align: center;
    }
    .footer-icons {
        justify-content: center;
    }
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none; /* Hidden by default, shown on mobile via JS */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    background: transparent;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    right: -280px;
    height: 100vh;
    width: 250px;
    background-color: #343a40; /* Match Bootstrap's bg-dark */
    z-index: 1001;
    transition: right 0.3s ease;
    padding: 60px 20px 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
}

.sidebar.active {
    right: 0;
}

.sidebar .navbar-nav {
    flex-direction: column !important;
    width: 100%;
}

.sidebar .nav-item {
    margin: 10px 0;
    width: 100%;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 18px;
    padding: 10px 15px;
    display: block;
    text-align: left;
    width: 100%;
    transition: color 0.15s ease-in-out;
}

.sidebar .nav-link:hover {
    color: #fff !important;
}

.sidebar .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.15s ease-in-out;
}

.sidebar .close-btn:hover {
    opacity: 1;
}

/* Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* Prevent scrolling when sidebar is open */
body.sidebar-open {
    overflow: hidden;
}
