/* Global reset and layout */
* {
    box-sizing: border-box;
}

body {
    font-family: "Radio Canada Big", sans-serif;
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
    color: white;
    line-height: 1.6;
}

.header-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('IMG_2588.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    z-index: -1;
}

.colorname {
    color: rgb(126, 12, 231);
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
    padding: 20px;
}

/* Navbar */
.navbar {
    background: rgba(11, 10, 56, 0.7);
    padding: 30px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.leftside {
    font-size: 2rem;
    font-weight: bolder;
}

.rightside ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rightside ul li {
    margin-right: 24px;
    cursor: pointer;
    position: relative;
    padding: 10px;
    transition: color 0.3s ease;
}

.rightside ul li::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: white;
    left: 0;
    bottom: 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.rightside ul li:hover {
    color: #ffcc00;
    font-size: 1.1rem;
}

.rightside ul li:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Section Styling */
.section {
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: rgb(28, 7, 63);
    margin: 20px 0;
    border-radius: 10px;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    max-width: 100vw;
    overflow-x: hidden;
}

.section-content {
    max-width: 800px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ffcc00;
}

.section-content p,
.section-content .info {
    font-size: 1.5rem;
}

/* Info Lines */
.info-line {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.dot {
    width: 18px;
    height: 18px;
    background-color: #ffcc00;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .dot {
        width: 14px;
        height: 14px;
    }
}

/* Project & Contact Buttons */
.projects-buttons,
.contact-buttons,
.contact-form {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    padding: 0 10px;
}

.project-button,
.contact-button,
.form-button {
    padding: 15px 30px;
    font-size: 1.2rem;
    color: white;
    background: #1f1d14;
    border: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    text-decoration: none;
    flex: 1 1 200px;
    max-width: 250px;
    text-align: center;
}

.project-button:hover,
.contact-button:hover,
.form-button:hover {
    background: rgb(66, 66, 211);
}

/* Contact Form */
.contact-form {
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    padding: 15px;
    font-size: 1.2rem;
    border: 2px solid #1f1d14;
    border-radius: 5px;
    width: 300px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Centered intro text */
.centered-content {
    text-align: center;
    font-size: 2.5rem;
    width: 80%;
    max-width: 800px;
}

/* Profile Image */
.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-left: 20px;
    align-self: center;
}

/* Hamburger menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger-menu span {
    height: 3px;
    width: 25px;
    background: white;
    margin: 5px;
    border-radius: 5px;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }

    .rightside ul {
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -250px;
        width: 200px;
        height: 100%;
        background: rgba(11, 10, 56, 0.9);
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 3;
    }

    .rightside ul.show {
        right: 0;
    }

    .rightside ul li {
        margin: 20px 0;
    }
}
