/*RESET DEFAULT STYLING*/
*, *::before, *::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}

/* Global link styling */
a {
    text-decoration: none;
    color: inherit;
}

/*SET VARIABLES*/
:root{
    --main-bg-color: #f8f8f8;
    --main-accent-color: #39c9bb;
    --main-dark-color: teal;
    
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    font-size: 16px;
}

/* NAVBAR - Transparent/See-through */
#navbar {
    display: flex;
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    justify-content: space-between;
    color: white;
    background-color: rgba(0, 0, 0, 0.3); /* Transparent background */
    backdrop-filter: blur(10px); /* Blur effect */
    max-height: 10vh;
    transition: all 0.3s ease-in-out;
}

#navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.8);
}

#navbar ul {
    list-style: none;
}

#navbar a{
    text-decoration: none;
    text-align: center;
    color: white;
}

.logo-container{
    display: flex;
    /*background: rgba(255, 255, 255, 0.9);*/
    max-width: 20%;
    min-width: 120px;
    justify-content: center;
    align-items: center;
    overflow: visible;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    /*backdrop-filter: blur(10px);*/
}

.logo-img{
    align-self: center;
    height: auto;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.nav-links-container {
    padding: min(10%, 2rem);
    display: flex;
    align-items: center;
}

.nav-links{
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links li{
    cursor: pointer;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 1rem;
    z-index: 1001;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.hamburger div {
    width: 35px;
    height: 4px;
    background-color: white;
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active .line2 {
    opacity: 0;
}

.hamburger.active .line1 {
    transform: rotate(-45deg) translate(-10px, 10px);
}

.hamburger.active .line3 {
    transform: rotate(45deg) translate(-5.2px, -4px);
}

/* MAIN CONTENT */
.contact-page {
    min-height: 100vh;
    position: relative;
}

.contact-background {
    background-image: url('images/form-bg-1-xl.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    position: relative;
}

.contact-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.contact-content {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 100vh;
    align-items: center;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;

    padding: 5rem 1rem;

    display: grid;
    grid-template-columns: 1fr 1fr;

    padding: 3.5rem 1rem;
}

/* CONTACT INFO SECTION */
.contact-info-section {
    flex: 1;
    padding: 2rem;

    padding: clamp(1rem, -2.016rem + 6.275vw, 2rem);
}

.contact-info-content {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 3rem;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);

    padding: clamp(1.5rem, 1.285rem + 1.072vw, 3rem);
}

.contact-info-content h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: white;
    font-size: clamp(2.5rem, 1.857rem + 0.714vw, 3rem);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    /*font-size: 1.2rem;*/
    color: var(--main-accent-color);
    margin-top: 0.2rem;
    min-width: 20px;
    font-size: clamp(1.2rem, 0.557rem + 0.714vw, 1.7rem);
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.contact-label {
    /*font-size: 0.9rem;*/
    font-weight: 600;
    color: var(--main-accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: clamp(0.9rem, 0.257rem + 0.714vw, 1.4rem);
}

.contact-value {
    font-size: 1rem;
    color: white;
    line-height: 1.4;

    font-size: clamp(1rem, 0.357rem + 0.714vw, 1.5rem);
}

/* CONTACT FORM SECTION */
.contact-form-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;

    /*min-width: 350px;*/

    padding: clamp(1rem, -2.016rem + 6.275vw, 2rem);
}

.contact-form-container {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;

    padding: clamp(1.5rem, 1.285rem + 1.072vw, 3rem);
}

.contact-form-container h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #333;
    text-align: center;
    font-size: clamp(2.5rem, 1.857rem + 0.714vw, 3rem);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    gap: clamp(1.2rem, 0.627rem + 1.192vw, 1.7rem);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: flex;
    flex-direction: column;
}

.col {
    display: flex;
    flex-direction: column;
}

.form-input, .form-input-msg {
    border: none;
    border-bottom: 2px solid #e0e0e0;
    padding: 1rem 0;
    font-size: 1rem;
    font-family: "Montserrat", sans-serif;
    background: transparent;
    transition: border-color 0.3s ease;

    font-size: clamp(1rem, 0.357rem + 0.714vw, 1.5rem);
}

.form-input:focus, .form-input-msg:focus {
    outline: none;
    border-bottom-color: var(--main-accent-color);
}

.form-input-msg {
    resize: vertical;
    min-height: 120px;
}

.form-btn {
    background-color: var(--main-accent-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.1rem, 0.457rem + 0.714vw, 1.6rem);
}

.form-btn:hover {
    background-color: var(--main-dark-color);
}

.hidden {
    display: block;
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/***
    FOOTER
***/
.footer-container{
    display: flex;
}
.footer-contents-container{
    background-color: var(--main-accent-color);
    width: 100%;
    display: grid;
    grid-template-rows: 1fr 2rem;
}
.footer-info-container{
    display: flex;
    padding: 2rem;
    color: white;
    /*justify-content: space-evenly;*/

    padding: clamp(1rem, 0.286rem + 3.571vw, 2rem);

    gap: 1rem;

    padding: clamp(0.9rem, 0.11rem + 3.937vw, 2rem);

    justify-self: center;
}
.footer-social-links, .footer-quick-links, .footer-territory-acknowledgement{
    display: grid;
    grid-template-rows: 1.8rem 1fr;
    align-items: center;
}
.footer-title{
    font-size: 1.5rem;

    font-size: clamp(1.2rem, 1.019rem + 0.534vw, 1.5rem);
    border-bottom: 1px solid;
}
.social-text{
    font-family: "Montserrat", sans-serif;

}
.quick-links, .social-links{
    display: flex;
    flex-direction: column;
    list-style: none;
    justify-content: space-evenly;
    line-height: 1.3rem;

    justify-content: start;
    min-width: 80px;
}

.footer-social-icon{
    color: white;
}
.footer-territory-acknowledgement p{
    font-size: 0.8rem;
    line-height: 1.4;
    max-width: 550px;
}
.footer-credit-container{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(177, 178, 181, 0.65);
    color: white;
    height: 100%;
}
.footer-credit-container h6{
    opacity: 1;
    font-size: clamp(0.6rem, -0.175rem + 3.862vw, 0.67rem);
}

.copyright{
    font-weight: 600;
}
.credit{
    font-weight: 400;
}

/* 1440px  */
@media (min-width: 1441px) {
    /*.contact-value {
        line-height: 1.9; /*Uniteless values multiply the size of the font by the value*/
    /*}*/
    
}
/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links-container {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.9);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 0;
        height: 100vh;
        justify-content: center;
        z-index: 1000;
        backdrop-filter: blur(10px);
    }
    
    .nav-links-container.active {
        left: 0;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 0;
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        color: white;
        text-decoration: none;
        padding: 1rem;
        display: block;
        transition: 0.3s;
    }
    
    .nav-links a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 5px;
    }
    
    .logo-container {
        max-width: 30%;
    }
    
    /* Ensure navbar is visible when menu is open */
    #navbar.menu-open {
        opacity: 1;
        visibility: visible;
    }

    .contact-content {
        /*flex-direction: column;*/
        padding: 1rem;
        gap: 1rem;

        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;

        padding: 4.5rem 1rem;
    }
    
    .contact-info-content {
        padding: 2rem;
    }
    
    .contact-info-content h1 {
        font-size: 2rem;
    }

    /*.contact-form-section {
        padding: 2rem
    }*/
    
    .contact-form-container {
        padding: 2rem;
        max-width: none;
    }
    
    .contact-form-container h2 {
        /*font-size: 1.5rem;*/
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .contact-info-content {
        padding: 1.5rem;
    }
    
    .contant-form-section {
        min-width: unset;
    }

    .contact-form-container {
        padding: 1.5rem;
    }
    
    .contact-details {
        gap: 1.5rem;
    }
    
    .contact-item {
        gap: 0.8rem;
    }
}

@media (max-width: 800px) {
    .footer-container .logo-container {
        display: none;
    }
}

@media (max-width: 550px) {
    .footer-info-container {
        display: grid;
        grid-template-rows: 1fr 1fr auto;
    }

    .footer-quick-links {
        grid-template-columns: auto 1fr;
        gap: 1rem;
        grid-template-rows: 1fr;
    }

    .footer-title {
        font-size: 1.1rem;
        border-bottom: none;
        /*border-right: 1px solid;*/

        font-size: clamp(1rem, 0.65rem + 1.747vw, 1.25rem);
    }

    .footer-quick-links {
        grid-row: 2 / 3;
        grid-template-columns: auto 1fr;
        gap: 1rem;
        grid-column: 1 / 3;
    }

    .footer-menu-links {
        grid-row: 1 / 2;
    }

    .footer-contact-links {
        grid-row: 2 / 3;
    }

    .quick-links {
        flex-direction: row;
        /*gap: 1.5rem;*/
        gap: 1rem;

        font-size: clamp(0.8rem, 0.52rem + 1.397vw, 1rem);
    }

    .footer-territory-acknowledgement {
        grid-column: 1 / 3;
        grid-row: 3 / 4;
    }

    .footer-territory-acknowledgement p {
        /*max-width: 400px;*/
        
        font-size: clamp(0.8rem, 0.66rem + 0.699vw, 0.9rem);
    }
}

@media (max-width: 461px) {
    .hero-container {
        grid-template-rows: repeat(3, 1fr);
    }
}

@media (max-width: 350px) { 
    .contact-content {
        padding: 4.5rem 0rem;
    }
}

@media (min-width: 2000px) { 
    .logo-img {
        max-width: 90%;
    }
}