/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* STOP SCROLLING */
html, body {
    height: 100%;
    overflow-x: hidden;
}

/* BASE STYLES */
body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    background: #ffffff;
    color: #111;
    display: flex;
    flex-direction: column;
}

/* HEADER */
header {
    background: #bc93fa;
    text-align: center;
    padding: 20px;
    flex-shrink: 0;
}

header h1 {
    font-size: 1rem;
    letter-spacing: 1px;
}

/* MAIN CONTENT */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

main img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    width: 250px;
    border: 3px solid #fff;
    padding: 5px;
    background: #222;
}

.hero-text {
    font-size: 2rem;
    font-weight: 600;
    max-width: 800px;
    margin-bottom: 50px;
}

.about, .contact {
    font-size: 0.9rem;
    color: #444;
    max-width: 600px;
    margin-bottom: 10px;
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar a {
    text-decoration: none;
    color: #111;
    font-size: 20px;
    letter-spacing: 1px;
}

.sidebar a:hover {
    color: #fff;
    text-decoration: line-through;
}

/* DESKTOP MARGIN */
main {
    margin-left: 140px;
}

/* RESPONSIVE ADJUSTMENTS */
@media only screen and (max-width: 768px) {
    /* Sidebar moves to top */
    .sidebar {
        position: static;
        flex-direction: row;
        justify-content: center;
        transform: none;
        margin-bottom: 15px;
    }

    .sidebar a {
        margin: 0 10px;
    }

    /* Main content full width */
    main {
        margin-left: 0;
        padding: 10px;
    }

    /* Adjust hero text and images */
    .hero-text {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    main img {
        width: 150px;
    }

    .about, .contact {
        font-size: 0.85rem;
        max-width: 90%;
    }

    header h1 {
        font-size: 0.9rem;
    }
}

@media only screen and (max-width: 480px) {
    .hero-text {
        font-size: 1.2rem;
    }

    main img {
        width: 120px;
    }

    .about, .contact {
        font-size: 0.8rem;
    }
}
