@media screen and (max-width: 1000px) {
    p {
        font-size: .9rem;
        line-height: 1.8rem;
    }
    
    .grid-3 {
        gap: 1rem;
    }
    
    .skills-right ul li {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 825px) {
    /* Burger */
    .burger {
        display: block;
        cursor: pointer;
    }
    
    .toggle-burger .Line-1 {
        transform: rotate(-45deg) translate(-5px, 7px);
    }
    
    .toggle-burger .Line-2 {
        opacity: 0;
    }
    
    .toggle-burger .Line-3 {
        transform: rotate(45deg) translate(-5px, -7px);
    }
    
    /* Navigation */
    nav {
        position: fixed;
        width: 60%;
        right: 0;
        top: 0;
        height: 100vh;
        background: var(--PrimaryBackgroundColor);
        border-left: 1px solid var(--BorderColor);
        z-index: 9;
        transform: translateX(100%);
        transition: 0.3s ease-in-out;
        display: none;
        padding-top: 80px;
    }

    nav ul {
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 1rem 0;
        gap: 0.5rem;
    }

    nav ul li {
        width: 85%;
        display: flex;
        justify-content: center;
    }

    nav ul li a {
        font-size: 1.1rem;
        padding: 0.8rem 1rem;
        width: 100%;
        text-align: center;
        border: 1.5px solid var(--BorderColor);
        border-radius: var(--ItemBorderRadius);
        background: var(--PrimaryBackgroundColor);
        transition: all 0.2s ease-in-out;
    }

    nav ul li a:hover {
        background: var(--ThirdBackgroundColor);
        border-color: var(--PrimaryIconColor);
        color: var(--PrimaryIconColor);
    }
    
    /* Dropdown di mobile - posisikan di paling bawah dan hilangkan dropdown */
    nav ul li.dropdown {
        order: 99;
        margin-top: auto;
        padding-bottom: 3rem;
    }
    
    /* Dropdown Menu Mobile - selalu visible dan stacked, tanpa dropdown */
    .dropdown-toggle {
        display: none;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
        width: 100%;
        text-align: center;
        margin-top: 0;
        padding: 0;
        right: auto;
        transform: none;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        opacity: 1;
    }
    
    .dropdown-menu li {
        margin: 0;
    }
    
    .dropdown-menu li a {
        padding: 0.8rem 1rem;
        background: var(--PrimaryBackgroundColor);
        border: 1.5px solid var(--BorderColor);
        border-radius: var(--ItemBorderRadius);
    }
    
    .nav-active {
        transform: translateX(0);
        width: 60%;
        display: block;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    :root {
        --SectionPadding: 4rem 0;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin: .6rem 0 2.5rem;
    }
    
    .pre-title {
        font-size: .8rem;
    }
    
    /* Hero Section */
    #hero {
        grid-template-columns: 1fr;
        height: fit-content;
    }
    
    .hero-reight {
        order: -1;
    }
    
    .hero-reight img {
        width: 70%;
    }
    
    .hero-left {
        text-align: center;
        padding-bottom: 5rem;
    }
    
    .hero-left .pre-title {
        margin: 0 auto;
    }
    
    .hero-name {
        font-size: 2.3rem;
        margin-bottom: .5rem;
    }
    
    /* Skills Section */
    .skills-grid {
        gap: 1rem;
    }
    
    /* Contact Section */
    .box-contact {
        flex-direction: column;
    }
    
    .contact-left {
        display: flex;
        flex-direction: column;
    }
    
    .contact-right {
        display: flex;
        flex-direction: row;
    }
    
    .contact-form {
        width: 100%;
    }
    
    /* Footer Section */
    footer {
        padding: 2rem;
    }
}

@media screen and (max-width: 640px) {
    /* Titles */
    .section-title {
        font-size: 1.3rem;
    }
    
    .pre-title {
        font-size: .7rem;
    }
}

