@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700;900&display=swap');

/* ==================== CSS Custom Properties ==================== */
:root {
    --primary-color: #ff3000;
    --secondary-color: #eeeeee;
    --tertiary-color: #dddddd;
    --overlay-dark: rgba(0, 0, 0, 0.7);
    --radius-md: 16px;
    --header-height: 100px;
    --content-width: 80%;
}

/* ==================== Reset & Base Typography ==================== */
* {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: black;
    overflow-x: hidden;
}

h1 {
    color: white;
    font-size: 60px;
}

h2 {
    color: var(--secondary-color);
    font-size: 48px;
}

h3 {
    color: white;
    font-size: 28px;
}

h4 {
    color: var(--tertiary-color);
    font-size: 24px;
}

h5 {
    font-size: 16px;
}

label {
    color: var(--tertiary-color);
    font-size: 18px;
}

p {
    font-size: 20px;
}

a {
    text-decoration: none;
    color: currentColor;
}

.background {
    width: 100%;
    margin-top: -100px;
    z-index: -1;
    position: fixed;
}

.dimmer {
    position: fixed;
    width: 100%;
    height: 100vh;
    background-color: var(--overlay-dark);
    top: var(--header-height);
    z-index: -1;
}

/* ==================== Shared Animations ==================== */
@keyframes ring-ring {
    0% {
        rotate: 0deg;
    }
    25% {
        rotate: -10deg;
    }
    50% {
        rotate: 0deg;
    }
    75% {
        rotate: 10deg;
    }
    100% {
        rotate: 0deg;
    }
}

/* ==================== Header / Navigation ==================== */
.dark-header-for-blending {
    background-color: var(--overlay-dark);
    width: 100%;
    height: var(--header-height);
    position: absolute;
    top: 0;
}

.nav-bar {
    width: 100%;
    height: var(--header-height);
    position: fixed;
    z-index: 5;
    top: 0;
    background-color: var(--overlay-dark);
    display: flex;
    align-items: center;
}

.nav-bar:hover {
    background-color: rgba(0, 0, 0, 0.9);
    height: 110px;
    transition: 1s;
}

.nav-bar img {
    left: 0;
    margin-left: 20px;
    height: 80px;
    width: 100%;
}

.nav-bar img:hover {
    scale: 1.1;
    transition: 0.5s;
}

.nav-bar nav {
    position: absolute;
    width: 100%;
    text-align: center;
}

.nav-links {
    font-size: 32px;
    padding: 20px;
    text-decoration: none;
    color: white;
    border-right: 1px solid #ccc;
}

.nav-links:last-child {
    border-right: none;
}

.active {
    text-decoration: underline;
}

.nav-bar h3 {
    position: absolute;
    right: 0;
    margin-right: 20px;
}

.nav-bar h3 span {
    margin-right: 10px;
    scale: 1.3;
    animation: ring-ring 2s infinite;
}

/* ==================== Contact Section ==================== */
.section-area {
    padding: 150px 5%;
    display: grid;
    place-items: center;
}

.section-container {
    background-color: rgba(0, 0, 0, 0.3);
    width: var(--content-width);
    border-radius: var(--radius-md);
    padding: 40px;
    display: flex;
    gap: 40px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.contact-info-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-container h2 {
    margin-bottom: 20px;
}

.contact-info-container h4 {
    line-height: 1.6;
}

.contact-form-container {
    flex: 1;
}

/* ==================== Contact Form ==================== */
form {
    width: 100%;
}

.inline-fields {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.field-group {
    flex: 1;
}

.field-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.field-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.field-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.message-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.message-group textarea {
    width: 100%;
    height: 180px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    resize: none;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.message-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-container {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

input[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    transition: background-color 0.3s, transform 0.2s;
}

input[type="submit"]:hover {
    background-color: #e02a00;
    transform: translateY(-2px);
}

input[type="submit"]:active {
    transform: translateY(0);
}

.form-status {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==================== Footer ==================== */
.footer-container {
    position: relative;
    margin-top: 0;
    width: 100%;
    height: 250px;
    background-color: var(--secondary-color);
    border-top: 8px solid var(--primary-color);
    bottom: 0;
}

.footer-container .text-area {
    margin-top: 20px;
    text-align: center;
}

.footer-container .text-area h3 {
    margin-bottom: 10px;
    color: black;
}

.footer-container .text-area h5 {
    margin-bottom: 5px;
}

.footer-container .socials-area {
    display: flex;
    position: absolute;
    width: 100%;
    justify-content: center;
}

.footer-container .socials-area a {
    padding: 10px;
}

/* ==================== Mobile: max-width 768px ==================== */
@media (max-width: 768px) {
    .nav-bar h3 {
        display: none;
    }

    .nav-links {
        font-size: 20px;
        padding: 12px;
    }

    .section-area {
        padding: 120px 4% 40px;
    }

    .section-container {
        width: 100%;
        flex-direction: column;
        padding: 24px;
        gap: 24px;
    }

    .contact-info-container h2 {
        font-size: 32px;
    }

    .contact-info-container h4 {
        font-size: 18px;
    }

    .inline-fields {
        flex-direction: column;
        gap: 12px;
    }

    .footer-container {
        height: auto;
        padding: 1.5rem 1rem;
    }
}

/* ==================== Extra-Small Screens: max-width 480px ==================== */
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }

    .nav-links {
        font-size: 16px;
        padding: 8px;
    }

    .section-area {
        padding: 110px 3% 30px;
    }

    .section-container {
        padding: 16px;
    }

    .contact-info-container h2 {
        font-size: 26px;
    }

    .contact-info-container h4 {
        font-size: 16px;
    }

    label {
        font-size: 16px;
    }

    input[type="submit"] {
        font-size: 16px;
        padding: 14px;
    }
}
