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

/* Modern CSS Reset */
html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
}

main {
    display: block;
}

img, svg, object {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Add these styles at the beginning of your CSS file, after the imports */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(28, 37, 65, 0.95); /* Dark navy blue with slight transparency */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    -webkit-backdrop-filter: blur(10px);
    -moz-backdrop-filter: blur(10px);
    -o-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(55, 114, 255, 0.1);
}

.nav-logo object {
    height: 100px;
    width: auto;
    -webkit-filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    -moz-filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    -o-filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.nav-logo object:hover {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: rgba(28, 37, 65, 0.95); /* Dark navy blue with slight transparency */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding-top: 90px;
    overflow: hidden; /* Disable body scroll */
}

.container {
    background: rgba(255, 255, 255, 0.9);
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.1),
        0 6px 6px rgba(0, 0, 0, 0.05),
        0 0 100px rgba(194, 0, 251, 0.15);
    width: 100%;
    max-width: 40vw;
    height: auto; /* Remove fixed height */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
}

.logo {
    text-align: center;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#logo {
    max-width: min(150px, 60%);
    height: auto;
    margin: 0 auto; /* Center horizontally */
    display: block;
}

.logo object {
    width: 100%;
    height: auto;
    margin: 0 auto; /* Center horizontally */
    display: block;
}

.message-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    min-height: 0;
}

#messageInput {
    width: 100%;
    padding: 15px;
    height: 80px;
    border: 2px solid rgba(55, 114, 255, 0.2);
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    resize: none;
    overflow-y: auto; /* Enable vertical scrolling */
    line-height: 1.5; /* Better line spacing for readability */
}

#messageInput:focus {
    border-color: #3772FF;
    box-shadow: 0 0 0 4px rgba(55, 114, 255, 0.1);
    background: white;
}

#messageInput::placeholder {
    color: #a0a0a0;
    opacity: 1; /* For Firefox */
}

#submitBtn {
    padding: 12px 32px;
    background: linear-gradient(135deg, #3772FF 0%, #C200FB 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(55, 114, 255, 0.2);
    width: 100%;
}

#submitBtn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 8px rgba(55, 114, 255, 0.3),
        0 0 0 2px rgba(55, 114, 255, 0.2);
}

#submitBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(55, 114, 255, 0.2);
}

/* Add some animation for when the input is filled */
#messageInput:not(:placeholder-shown) {
    border-color: #5AC4BE;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .container {
        max-width: 60vw;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 80vw;
        margin: 1rem;
    }
    
    .navbar {
        height: 70px;
    }
    
    .nav-logo object {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .container {
        max-width: 95vw;
        padding: 1.5rem;
    }
    
    #logo {
        max-width: 180px;
    }
}

@supports not (backdrop-filter: blur(10px)) {
    .navbar {
        background: rgb(28, 37, 65); /* Solid background fallback */
    }
}

@supports not (filter: brightness(0)) {
    .nav-logo object {
        /* Alternative styling for browsers that don't support filters */
        opacity: 0.9;
    }
} 