@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700');

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', Arial, sans-serif;
}

html {
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    min-height: 100vh;
}

/* Video Background & Overlay */
.video-container {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(70, 70, 70, 0.8) 0%,
        rgba(65, 105, 225, 0.7) 35%,
        rgba(25, 25, 112, 0.6) 70%,
        rgba(0, 0, 51, 0.8) 100%
    );
    z-index: 1;
}

/* Navigation Styles */
.navigation-wrap {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(45, 45, 45, 0.85) !important;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.navbar {
    height: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
}

.navbar-brand {
    margin: 0 auto;
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 35px;
    width: auto;
    display: block;
    filter: invert(65%) sepia(87%) saturate(394%) hue-rotate(334deg) brightness(99%) contrast(97%);
    transition: all 0.3s ease;
}

.navigation-wrap:hover {
    height: 100px;
}

.navigation-wrap:hover .navbar-brand img {
    height: 45px;
}

/* Contact Page Content Container */
.content {
    position: fixed;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 20px 60px 20px;
}

html, body {
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevents scrolling */
    height: 100vh; /* Full viewport height */
    position: fixed; /* Ensures no scrolling */
    width: 100%;
}

/* Contact Form Specific Styles - Won't affect index.html */
#container {
    border: solid 3px #f79256;
    max-width: 1000px;
    width: 95%;
    margin: 0 auto;     /* Removed vertical margin */
    position: relative;
    background-color: rgba(45, 45, 45, 0.85);
    backdrop-filter: blur(10px);
    padding: 10px;      /* Further reduced padding */
    border-radius: 10px;
}

#contact_form {
    padding: 25px;      /* Reduced from 37.5px */
    margin: 15px 0;     /* Reduced from 30px */
}

/* Form Header - Uses unique classes */
#container h1 {  /* Scoped to container ID */
    color: #f79256;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 7px;
    text-align: center;
    text-transform: uppercase;
    margin: 5px 0;
}

.underline {
    border-bottom: solid 2px #f79256;
    width: 80px;  /* Adjust width to match "Contact" */
    margin: -0.512em auto;
    position: relative;
    left: 0;  /* Centers the line */
}

.icon_wrapper {
    margin: 53px auto 0;  /* Increased from 25px to about 53px (0.75cm) */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}



:root {
    --w: 3.25rem;  /* Reduced from 5rem */
    --h: 2.3rem;   /* Reduced from 3.5rem */
    --b: 2px solid #f79256;  /* Made border slightly thinner to match smaller size */
}

.mail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--w);
    height: var(--h);
    border: var(--b);
    overflow: hidden;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.mail:after {
    content: "";
    width: calc(var(--w) / 1.414);
    height: calc(var(--w) / 1.414);
    transform-origin: 50% 50%;
    transform: rotate(45deg) translateX(calc(var(--h) / (-1.414 * 2)))
        translateY(calc(var(--h) / (-1.414 * 2)));
    border: var(--b);
    box-sizing: border-box;
}

.mail:hover {
    overflow: visible;
    transform: scale(1.1);
}

/* Form Layout - Using unique class names */
.name {
    float: left;
    width: 45%;
}

.email {
    float: right;
    width: 45%;
}

.subject {
    width: 100%;
    clear: both;
}

.message {
    float: left;
    width: calc(100% - 200px); /* This leaves space for the button */
    margin-right: 200px /* Space for the button */
}

#contact_form {
    position: relative;
    padding: 15px;
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;          /* Use gap for consistent spacing */
}

.submit {
    position: absolute;
    bottom: 25px;
    right: 25px;
}

/* Form Inputs - Scoped to #contact_form */
#contact_form input[type='text'],
#contact_form input[type='email'],
#contact_form select,
#contact_form textarea {
    background: none;
    border: none;
    border-bottom: solid 2px #f79256;
    color: #f79256;
    font-size: 1em;
    font-weight: 400;
    letter-spacing: 1px;
    margin: 0 0 10px 0; /* Reduced margin */
    padding: 0 0 0.875em 0;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s;
}


#contact_form select {
    appearance: none;
    -webkit-appearance: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23f79256' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right center;
    padding-right: 30px;
}

#contact_form select option {
    background-color: #2a2a2a;
    color: #f79256;
    padding: 10px;
}

#contact_form textarea {
    line-height: 150%;
    height: 80px;
    resize: none;
}

/* Form Placeholders */
#contact_form input::placeholder,
#contact_form textarea::placeholder {
    color: rgba(247, 146, 86, 0.7);
}

/* Submit Button Styles */
#form_button {
    background: none;
    border: solid 2px #f79256;
    color: #f79256;
    cursor: pointer;
    display: inline-block;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.875em;
    font-weight: bold;
    outline: none;
    padding: 15px;
    text-transform: uppercase;
    transition: all 0.3s;
   margin: 0;
   padding: 15px 30px;
}

#form_button:hover {
    background: #f79256;
    color: #2a2a2a;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(247, 146, 86, 0.3);
}

/* Thank You Message Container */
.thank-you-container {
    width: 600px;
    background-color: rgba(45, 45, 45, 0.85);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    text-align: center;
    color: #f79256;
    animation: fadeIn 0.5s ease-in;
    display: none;
}

.thank-you-container div {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: bold;
}

.thank-you-container p {
    font-size: 1.2em;
    margin-bottom: 40px;
    line-height: 1.6;
}

.back-button {
    background: #f79256;
    color: #2a2a2a;
    border: none;
    padding: 15px 40px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
}

.back-button:hover {
    background: #ff9f66;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(247, 146, 86, 0.3);
}

/* Focus & Active States */
#contact_form input:focus,
#contact_form textarea:focus,
#contact_form select:focus {
    outline: none;
    border-color: #ff9f66;
    box-shadow: 0 0 10px rgba(247, 146, 86, 0.3);
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer - Contact Page Specific */
.footer-wrap {
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(45, 45, 45, 0.85);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-wrap:hover {
    height: 60px;
}

.footer-content {
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

.footer-content p {
    color: #f79256;
    margin: 0;
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
}


.main-contact-btn {
    /* Reset font weight to normal */
    font-weight: 400;
    /* Remove text decoration on hover */
    text-decoration: none;
}

.main-contact-btn:hover {
    text-decoration: none;
}


.contact-btn {
    position: absolute;
    background: #f79256;
    border-radius: 25px;
    padding: 12px 30px !important;
    color: black !important;
    font-size: 18px !important;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
}

/* Index.html contact button */
.navbar a[href="contact2.html"].contact-btn {
    right: 5%;
}

/* Contact2.html home button */
.navbar a[href="index.html"].contact-btn {
    left: 5%;
}

/* Hover states for both buttons */
.navigation-wrap:hover .contact-btn {
    opacity: 1;
    visibility: visible;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(247, 146, 86, 0.4);
    color: black !important;
    text-decoration: none;
}


.navbar a[href="contact2.html"].contact-btn {
    right: 5%;
}

/* Contact2.html home button */
.navbar a[href="index.html"].contact-btn {
    left: 5%;
}

/* Hover states for both buttons */
.navigation-wrap:hover .contact-btn {
    opacity: 1;
    visibility: visible;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(247, 146, 86, 0.4);
    color: black !important;
    text-decoration: none;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    #container {
        margin: 20px auto;
        width: 95%;
    }
    
    #contact_form {
        padding: 10px;
    }
    
    .name,
    .email {
        float: none;
        width: 100%;
    }
    
    .thank-you-container {
        width: 90%;
        padding: 20px;
    }
}

@media screen and (max-width: 480px) {
    #container h1 {
        font-size: 24px;
    }
    
    .underline {
        width: 68px;
    }
    
    #form_button {
        padding: 15px 25px;
    }
    
    .icon {
        height: 30px;
        width: 30px;
    }
}


@media screen and (max-width: 420px) {
    #container h1 {
        font-size: 18px;
    }
    
    #contact_form input[type='text'],
    #contact_form input[type='email'],
    #contact_form select,
    #contact_form textarea {
        font-size: 0.875em;
    }
}

@media screen and (max-height: 700px) {
    #container h1 {
        font-size: 24px;
    }
    
    .icon {
        height: 30px;
        width: 30px;
    }
    
    #contact_form {
        padding: 10px;
    }
    
    #contact_form textarea {
        height: 60px;
    }
    
    #form_button {
        padding: 12px 25px;
    }
}