@media screen and (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }

    .navbar ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        background: #000;
        width: 200px;
        border-radius: 0 0 8px 8px;
        padding: 10px 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    }

    .navbar ul li {
        text-align: left;
        margin: 0;
    }

    .navbar ul li a {
        display: block;
        padding: 10px 20px;
    }

    .navbar .hamburger {
        margin-left: 100px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
        width: 30px;
        height: 25px;
    }

    .navbar .hamburger span {
        display: block;
        height: 3px;
        width: 100%;
        background: white;
        transition: all 0.3s ease;
    }

    .navbar .logo {
        gap: 5px;
    }

    .navbar .logo img {
        height: 30px;
    }

    .navbar.active ul {
        display: flex;
    }

    .hero, .start {
        padding: 100px 20px;
    }

    .hero .title, .start .title {
        font-size: 36px;
    }

    .hero .subtitle, .start .subtitle {
        font-size: 18px;
    }

    .hero p, .start p {
        font-size: 14px;
        max-width: 100%;
    }

    .buttons {
        flex-direction: column;
        gap: 15px;
    }

    .about, .contact {
        flex-direction: column;
        padding: 50px 20px;
    }

    .about-text h2, .contact-title {
        font-size: 28px;
    }

    .about-text h3 {
        font-size: 20px;
    }

    .about-text p, .contact-text p {
        font-size: 16px;
        max-width: 100%;
    }

    .social-buttons {
        justify-content: center;
    }

    .about-stats {
        flex-direction: row;
        justify-content: space-around;
        gap: 10px;
        flex-wrap: wrap;
    }

    .stat {
        flex: 1 1 45%;
        font-size: 16px;
        padding: 15px;
    }

    .portfolio {
        padding: 150px 10px;
    }

    .portfolio-title {
        font-size: 28px;
    }

    .portfolio-item {
        width: 100%;
        max-width: 300px;
    }

    .portfolio-item h3 {
        font-size: 20px;
    }

    .portfolio-item p {
        font-size: 14px;
    }

    .archive {
        padding: 50px 10px;
    }

    .archive-title {
        font-size: 28px;
    }

    .archive-text {
        font-size: 16px;
    }

    .archive-btn {
        padding: 15px 60px;
        font-size: 16px;
    }

    .contact-emoji {
        font-size: 80px;
        margin-top: 20px;
    }

    .email-btn {
        width: 100%;
        justify-content: center;
        padding: 20px 0;
    }

    footer {
        padding: 10px 0;
    }

    .footer-bar {
        height: 4px;
    }

    .footer-text {
        font-size: 12px;
    }

    .error-title {
        font-size: 32px;
    }

    .error-code {
        font-size: 80px;
    }

    .error-btn {
        padding: 15px 30px;
        font-size: 16px;
    }

    .language-toggle {
        display: flex;
        justify-content: flex-start;
    }

    .lang-btn {
        display: none;
    }
}