/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    background: linear-gradient(to bottom right, #4B0082, #111827, #000000);
    font-family: sans-serif;
    color: white;
    overflow-x: hidden;
}

/* Header */
header {
    background: linear-gradient(to right, #4B0082, #EC4899);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header div {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow-x: hidden;
}

header a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

header img {
    height: 2.5rem;
}

header span {
    font-size: 1.25rem;
    font-weight: bold;
    display: none;
}

@media (min-width: 640px) {
    header span {
        display: block;
    }
}

header nav a {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: medium;
    transition: background 0.3s;
}

header nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Main */
main {
    width: 100%;
    min-height: 100vh;
    padding: 3rem 2rem;
    overflow-x: hidden;
}

main > div {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2.5rem;
    overflow-x: hidden;
}

main > div > div {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 100%;
    overflow-x: hidden;
}

main h1 {
    font-size: 2.25rem;
    font-weight: bold;
    background: linear-gradient(to right, #C084FC, #F472B6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    word-wrap: break-word;
    max-width: 100%;
    overflow-x: hidden;
}

main p {
    font-size: 1.25rem;
    color: #E9D5FF;
    max-width: 32rem;
    margin: 0 auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    overflow-x: hidden;
}

/* Grid Layout */
main > div > div:nth-child(2) {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 100%;
    overflow-x: hidden;
}

@media (min-width: 1024px) {
    main > div > div:nth-child(2) {
        grid-template-columns: 5fr 2fr;
    }
}

/* Contact Form */
main > div > div:nth-child(2) > div:first-child {
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 100%;
    overflow-x: hidden;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 1rem;
    max-width: 100%;
    overflow-x: hidden;
}

form label {
    display: block;
    font-size: 0.875rem;
    font-weight: medium;
    color: white;
    margin-bottom: 0.25rem;
    word-wrap: break-word;
    max-width: 100%;
    overflow-x: hidden;
}

form div.relative {
    position: relative;
    max-width: 100%;
    overflow-x: hidden;
}

form div.relative > div {
    position: absolute;
    top: 0;
    left: 0;
    padding-left: 0.75rem;
    display: flex;
    align-items: center;
    height: 100%;
    pointer-events: none;
}

form i {
    color: #9CA3AF;
}

form input, form select, form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.5rem;
    outline: none;
    transition: border 0.3s;
    background: #2D2D2D;
    color: #D1D5DB;
    word-wrap: break-word;
    max-width: 100%;
    overflow-x: hidden;
}

form input:focus, form select:focus, form textarea:focus {
    border-color: #A855F7;
}

form input {
    padding-left: 2.5rem;
}

form select {
    background: #1F2937;
    color: white;
}

form button {
    width: 100%;
    background: linear-gradient(to right, #9333EA, #EC4899);
    color: white;
    font-weight: bold;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    overflow-x: hidden;
}

form button:hover {
    background: linear-gradient(to right, #7E22CE, #DB1970);
}

/* Contact Info */
main > div > div:nth-child(2) > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 100%;
    overflow-x: hidden;
}

main > div > div:nth-child(2) > div:last-child > div {
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: auto; /* Remove fixed height to prevent scroll */
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: hidden; /* Remove vertical scrollbar */
}

main > div > div:nth-child(2) > div:last-child > div > div {
    text-align: center;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: hidden; /* Remove vertical scrollbar */
}

main i.fa-quote-left, main i.fa-envelope {
    font-size: 2.25rem;
    color: #C084FC;
    margin-bottom: 1.5rem;
}

main h3 {
    font-size: 1.875rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
    max-width: 100%;
    overflow-x: hidden;
}

main p {
    color: #E9D5FF;
    font-size: 1.25rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    overflow-x: hidden;
}

main p.italic {
    font-style: italic;
    line-height: 1.5;
}

main p:not(.italic) {
    margin-bottom: 2rem;
}

main p:not(.italic) + p {
    color: #D8B4FE;
    margin-top: 1rem;
}

main > div > div:nth-child(2) > div:last-child > div:last-child > div > div {
    display: flex;
    gap: 1rem;
    justify-content: center;
    max-width: 100%;
    overflow-x: hidden;
}

main a.social-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    max-width: 100%;
    overflow-x: hidden;
}

main a.social-icon:nth-child(1) {
    background: #2563EB;
    color: white;
}

main a.social-icon:nth-child(2) {
    background: black;
    color: white;
}

main a.social-icon:nth-child(3) {
    background: linear-gradient(to right, #A855F7, #EC4899);
    color: white;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    padding: 2rem 0;
    max-width: 100%;
    overflow-x: hidden;
}

footer > div {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    overflow-x: hidden;
}

footer > div > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    footer > div > div {
        flex-direction: row;
        justify-content: space-between;
    }
}

footer p {
    color: #9CA3AF;
    word-wrap: break-word;
    max-width: 100%;
    overflow-x: hidden;
}

footer > div > div > div:last-child {
    display: flex;
    gap: 1.5rem;
    max-width: 100%;
    overflow-x: hidden;
}

footer a {
    color: #9CA3AF;
    transition: color 0.3s;
    word-wrap: break-word;
    max-width: 100%;
    overflow-x: hidden;
}

footer a:hover {
    color: white;
}

/* Modal */
#modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.75);
    max-width: 100%;
    overflow-x: hidden;
}

#modal.hidden {
    display: none;
}

#modal > div:first-child {
    background: #1E293B;
    border-radius: 0.75rem;
    padding: 1.5rem;
    max-width: 28rem;
    width: 100%;
    margin: 0 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: hidden;
}

#modal > div:last-child {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
    max-width: 100%;
    overflow-x: hidden;
}

#modal-content {
    text-align: center;
    max-width: 100%;
    overflow-x: hidden;
}

#modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    max-width: 100%;
    overflow-x: hidden;
}

#modal-message {
    color: #D1D5DB;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
    max-width: 100%;
    overflow-x: hidden;
}

#modal-icon {
    margin-bottom: 1rem;
}

#modal-close {
    background: #9333EA;
    color: white;
    font-weight: medium;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    transition: background 0.3s;
    max-width: 100%;
    overflow-x: hidden;
}

#modal-close:hover {
    background: #7E22CE;
}

form input, form select, form textarea {
    background: #2D2D2D;
    color: #D1D5DB;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    main > div > div:nth-child(2) > div:first-child form input,
    main > div > div:nth-child(2) > div:first-child form select,
    main > div > div:nth-child(2) > div:first-child form textarea {
        font-size: 0.875rem;
    }

    main h1 {
        font-size: 1.75rem;
    }

    main p {
        font-size: 1rem;
    }

    main h3 {
        font-size: 1.5rem;
    }

    form label {
        font-size: 0.75rem;
    }

    main > div {
        padding: 0 1rem;
    }
}