@import "css/global.css";

/*Header*/
#header {
    background: url("../../images/header-background.jpg") no-repeat fixed center;
    min-width: 100%;
    min-height: 400px;
    height: 30vh;
    background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    -webkit-background-size: cover;
    z-index: 0;
    display: flex;
    align-items: center;
    position: relative;
}

/* Add overlay to header */
#header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

#header .content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    padding: 150px;
    width: 100%;
}

#header .content .info {
    display: flex;
    flex-direction: column;
}

#header .content .info .minecraft-server-ip {
    color: var(--white-color);
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 600;
}

#header .content .info .title {
    color: var(--white-color);
    text-transform: uppercase;
    font-size: 65px;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#header .content .info .title span {
    color: var(--main-color);
}

#header .content .description {
    color: var(--description-color);
    font-size: 18px;
    font-weight: 400;
    max-width: 700px;
    line-height: 1.6;
    text-align: center;
}

/* Contact Options */
.contact-options {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 50px;
}

.contact-option {
    flex: 1;
    background: var(--stats-background);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-option:hover {
    transform: translateY(-5px);
    border-color: var(--main-color);
    box-shadow: 0 10px 20px rgba(57, 190, 255, 0.1);
}

.contact-option .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--stat-icon-background-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-option .icon i {
    font-size: 30px;
    color: var(--white-color);
}

.contact-option h3 {
    color: var(--white-color);
    font-size: 20px;
    margin-bottom: 10px;
}

.contact-option p {
    color: var(--description-color);
    font-size: 16px;
}

.contact-option .discord-online-users {
    color: var(--green-color);
    font-weight: 600;
}

/*Contacts*/
#contacts .content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

#contacts .content .section-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--white-color);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

#contacts .content .section-title::before {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 0;
    width: 150px;
    height: 1px;
    border-radius: 5px;
    background: var(--description-color);
}

#contacts .content .section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    border-radius: 5px;
    background: var(--main-color);
}

#contacts .content .columns {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 60px;
}

/* Form Styling */
#contacts .content .columns .contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    flex: 2;
    background: var(--stats-background);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .row {
    flex: 1;
}

#contacts .content .columns .contact-form .row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

#contacts .content .columns .contact-form .row label {
    color: var(--white-color);
    font-size: 16px;
    font-weight: 500;
}

.input-container {
    position: relative;
}

.input-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--description-color);
    font-size: 16px;
}

.input-container.textarea i {
    top: 25px;
    transform: none;
}

.row input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(210, 208, 208, 0.1);
    padding: 15px 15px 15px 45px;
    font-size: 16px;
    color: var(--white-color);
    outline: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
}

.row textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(210, 208, 208, 0.1);
    padding: 15px 15px 15px 45px;
    font-size: 16px;
    outline: none;
    line-height: 1.6;
    border-radius: 8px;
    color: var(--white-color);
    font-family: var(--main-font);
    transition: all 0.3s ease;
    resize: vertical;
    overflow-y: auto;
    min-height: 200px;
    max-height: 350px;
    width: 100%;
}

.row input:focus, .row textarea:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 10px rgba(57, 190, 255, 0.2);
    background: rgba(255, 255, 255, 0.07);
}

.row input:hover, .row textarea:hover {
    background: rgba(255, 255, 255, 0.07);
}

#contacts .content .columns .contact-form .form-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-top: 10px;
}

#contacts .content .columns .contact-form .form-footer button {
    background: var(--main-color);
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    color: var(--white-color);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(57, 190, 255, 0.3);
}

#contacts .content .columns .contact-form .form-footer button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(57, 190, 255, 0.4);
}

#contacts .content .columns .contact-form .form-footer button:active {
    transform: translateY(0);
}

#contacts .content .columns .contact-form .form-footer .alert {
    color: var(--description-color);
    font-size: 15px;
}

/* Contact Info Styling */
.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

#contacts .content .columns .url {
    text-decoration: none;
    height: fit-content;
}

#contacts .content .columns .url:hover .link .link-description .icon {
    transform: scale(1.1);
}

#contacts .content .columns .link {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: var(--stats-background);
    padding: 25px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

#contacts .content .columns .link:hover {
    border-color: var(--main-color);
    box-shadow: 0 10px 20px rgba(57, 190, 255, 0.1);
}

#contacts .content .columns .link h5 {
    color: var(--white-color);
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 700;
}

#contacts .content .columns .link .link-description {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

#contacts .content .columns .link .link-description .description {
    color: var(--description-color);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    flex: 1;
}

#contacts .content .columns .link .link-description .description .discord-online-users {
    color: var(--green-color);
    font-weight: 600;
}

#contacts .content .columns .link .link-description .icon {
    border-radius: 10px;
    background: var(--stat-icon-background-2);
    padding: 10px;
    transition: all 0.3s ease;
}

#contacts .content .columns .link .link-description .icon i {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    font-size: 20px;
    position: relative;
    background: var(--main-color);
    color: var(--white-color);
    border-radius: 10px;
}

/* FAQ Preview */
.faq-preview {
    background: var(--stats-background);
    padding: 25px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.faq-preview:hover {
    border-color: var(--main-color);
    box-shadow: 0 10px 20px rgba(57, 190, 255, 0.1);
}

.faq-preview h5 {
    color: var(--white-color);
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.faq-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(210, 208, 208, 0.1);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h6 {
    color: var(--main-color);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.faq-item p {
    color: var(--description-color);
    font-size: 15px;
    line-height: 1.6;
}

.more-faqs {
    display: inline-block;
    color: var(--main-color);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.more-faqs:hover {
    text-decoration: underline;
    opacity: 0.9;
}

/* Success Message Popup */
.message-sent-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.message-sent-popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--background-color);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.message-sent-popup.active .popup-content {
    transform: translateY(0);
}

.popup-content i {
    font-size: 60px;
    color: var(--green-color);
    margin-bottom: 20px;
}

.popup-content h3 {
    color: var(--white-color);
    font-size: 24px;
    margin-bottom: 15px;
}

.popup-content p {
    color: var(--description-color);
    font-size: 16px;
    margin-bottom: 25px;
}

.close-popup {
    background: var(--main-color);
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    color: var(--white-color);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-popup:hover {
    opacity: 0.9;
}

/*Footer*/
#footer {
    background: var(--stats-background);
    padding: 30px 150px;
}

/*Responsive*/
/*Header*/
@media screen and (max-width: 1625px) {
    #header .content {
        padding: 150px 90px;
    }
    
    #footer {
        padding: 30px 90px;
    }
}

@media screen and (max-width: 1361px) {
    #header .content {
        flex-direction: column;
        padding: 120px 90px;
    }
    
    .contact-options {
        flex-direction: column;
        max-width: 500px;
        margin: 0 auto 40px;
    }
}

@media screen and (max-width: 1024px) {
    #contacts .content .columns {
        flex-direction: column;
    }
    
    .contact-info {
        max-width: 100%;
    }
    
    .form-row {
        flex-direction: column;
    }
}

@media screen and (max-width: 819px) {
    #header .content {
        padding: 150px 30px;
    }

    #header .content .info .minecraft-server-ip {
        font-size: 15px;
    }

    #header .content .info .title {
        font-size: 40px;
    }

    #header .content .description {
        font-size: 16px;
    }
    
    #footer {
        padding: 30px 30px;
    }
    
    section:not(#header) .content {
        padding: 60px 30px;
    }
}

@media screen and (max-width: 530px) {
    #header .content {
        justify-content: start;
        align-items: start;
    }

    #header .content .info .title {
        font-size: 30px;
    }
    
    #contacts .content .columns .contact-form .form-footer {
        flex-direction: column;
        align-items: start;
    }

    #contacts .content .columns .contact-form .form-footer button {
        width: 100%;
        justify-content: center;
    }
    
    .popup-content {
        padding: 30px 20px;
    }
}