body {
    margin: 0;
    padding: 0;
    background-color: black;
    color: white;
    font-family: Arial, sans-serif;
    height: auto;
}

.header-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1% 2%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 30;
}

.profile-container {
    display: flex;
    align-items: center;
    text-align: center;
}

.profile-pic {
    width: 5vw;
    height: 5vw;
    max-width: 70px;
    max-height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-menu {
    margin-top: 1rem;
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row; /* Default: horizontal row on larger screens */
}

.nav-menu li {
    margin: 0 3rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: clamp(1rem, 2vw, 1.125rem);
}

.nav-menu a:hover {
    color: #ccc;
}

.profile-header {
    display: flex;
    justify-content: center;
    align-items: center;
}

.content {
    padding: 2%;
    margin-top: 10rem;
    width: 100%;
    background-color: black;
}

.contact-section {
    max-width: 600px;
    margin: 0 auto;
}

.contact-header {
    display: grid;
    grid-template-columns: 3fr 1fr; /* 3:1 ratio for title and GIF */
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-section h2 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin: 0; /* Remove default margin since grid handles positioning */
}

.contact-gif {
    background-color: #333;
    border-radius: 0.625rem;
    padding: 0.625rem;
    text-align: center;
}

.contact-gif img {
    width: 100%;
    max-width: clamp(6rem, 10vw, 8rem); /* Matches the small size of the GIF */
    height: auto;
    border-radius: 0.3125rem;
    display: block;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem;
    background-color: #333;
    border: none;
    border-radius: 0.625rem;
    color: white;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background-color: #444;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form button {
    padding: 0.75rem;
    background-color: #555;
    border: none;
    border-radius: 0.625rem;
    color: white;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #666;
}

.social-links {
    margin-top: 2rem;
    text-align: center;
}

.social-links h3 {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 1rem;
}

.social-media-icons-wrapper a {
    color: white;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin: 0 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-media-icons-wrapper a:hover {
    color: #ccc;
}

footer {
    background-color: #1a1a1a;
    padding: 2% 0;
    text-align: center;
    margin-top: 2rem;
    width: 100%;
}

.footer-copyright {
    margin: 0;
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    color: #aaa;
}

@media (max-width: 768px) {
    .header-bar {
        padding: 1% 1%;
    }
    .nav-menu li {
        margin: 0 1.5rem; /* Reduced margin for tablet */
    }
    .profile-pic {
        width: 8vw;
        height: 8vw;
    }
    .content {
        margin-top: 8rem;
        padding: 1%;
    }
    .contact-form input,
    .contact-form textarea,
    .contact-form button {
        padding: 0.5rem;
    }
    .contact-header {
        grid-template-columns: 3fr 1fr; /* Maintain 3:1 ratio */
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .header-bar {
        padding: 1% 1%;
    }
    .profile-pic {
        width: 10vw;
        height: 10vw;
    }
    .nav-menu {
        margin-top: 0.5rem; /* Reduced margin for mobile */
    }
    .nav-menu ul {
        flex-direction: row; /* Keep navigation icons in a horizontal row on mobile */
        align-items: center;
    }
    .nav-menu li {
        margin: 0 1rem; /* Further reduced margin for mobile */
    }
    .nav-menu a {
        font-size: clamp(0.875rem, 2vw, 1rem); /* Smaller icons on mobile */
    }
    .content {
        margin-top: 6rem; /* Adjusted to account for smaller header */
    }
    .contact-header {
        grid-template-columns: 3fr 1fr; /* Maintain 3:1 ratio */
        gap: 0.5rem;
    }
    .contact-form input,
    .contact-form textarea,
    .contact-form button {
        font-size: clamp(0.75rem, 1.5vw, 0.875rem); /* Smaller text on mobile */
    }
}