/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .content,
    .sander-section {
        width: 100%;
        max-width: 600px;
    }

    .image-container {
        margin-left: 0; /* Center the image */
        justify-content: center;
    } 
 
    .nav-container {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 1rem;
    }

    .nav-container.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 1rem;
    }

    .contact-button {
        width: 100%;
        text-align: center;
    }

    .projects-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .project-card {
        position: relative;
        background: #1E1E1E;
        border-radius: 10px;
        overflow: hidden;
        margin: 1rem;
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
    }

    .view-details {
        display: inline-block;
        padding: 0.5rem 1rem;
        background: #6A0DAD;
        color: white;
        text-decoration: none;
        border-radius: 5px;
        transition: background 0.3s ease;
        text-align: center;
        order: 2;
        margin-top: 0.25rem;
    }


    .view-details:hover {
        background: #580A8A; /* A slightly darker shade */
    }
    .project-card .view-details {
        margin-top: 1rem;
    }

    .projects-section .cool-text {
        font-size: 5rem;
        text-align: center;
    }

    .project-title {
        margin: 0;
        order: 1;
    }

    .project-image, .project-placeholder {
        width: 100%;
        height: auto;
    }

    .project-info {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .project-cta p {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .email-me {
        width: 100%;
        text-align: center;
    }

    .qualities-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .quality-card {
        max-width: 300px;
        margin: 0 auto;
        width: 100%;
    }

    .reviews h1 {
        font-size: 2rem;
    }

    .reviews .cool-text {
        font-size: 2rem;
        text-align: center;
    }
    
    .review-container {
        padding: 0 1rem;
    }

    .review-card {
        max-width: 80%;
        margin: 0 auto;
    }

    .tools-container {
        flex-direction: column;
        display: flex;
        align-content: center;
    }

    .tool-icon {
        width: 60px;
        height: 60px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        width: 60px;
        height: 60px;
    }

    .contact-text p {
        margin-top: 0.5rem;
    }   
}

@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column; 
        text-align: center; 
    }

    .sander-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 90%;
        margin: 0 auto;
    }
    
    .image-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 0 auto; /* Center the image container */
    }

    .hero-section h4 {
        word-wrap: break-word;
        white-space: normal;
    }

    .projects-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .project-card {
        position: relative;
        background: #1E1E1E;
        border-radius: 10px;
        overflow: hidden;
        margin: 1rem;
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
    }

    .qualities-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .reviews h1 {
        font-size: 2.5rem;
    }

    .reviews .cool-text {
        font-size: 5rem;
        text-align: center;
    }

    .review-container {
        padding: 0 1rem;
    }

    .review-card {
        max-width: 80%;
        margin: 0 auto;
    }
    .reviews {
        position: relative;
        padding: 2rem 0;
        max-width: 1200px;
        margin: 0 auto;
    }

    .nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(106, 13, 173, 0.95);
        color: white;
        border: none;
        width: 55px;
        height: 55px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 100;
        box-shadow: 0 2px 15px rgba(106, 13, 173, 0.4);
        transition: all 0.3s ease;
    }
    
    .nav-btn:hover {
        background: rgba(106, 13, 173, 1);
        box-shadow: 0 4px 20px rgba(106, 13, 173, 0.6);
    }
    
    .prev {
        left: -70px;
    }
    
    .next {
        right: -70px;
    }
}

