@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
    --logo-color: #03283c;
    --text-light: #f1f1f1;
    --text-muted: #cccccc;
    --bg-dark: #121212;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #ddd;
    padding: 0.75rem 1rem;
    text-align: center;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Poppins", sans-serif;
}

.navbar img {
    height: 40px;
    margin-right: 0.75rem;
}

.navbar span {
    font-weight: 400;
    font-size: 1.25rem;
    color: var(--logo-color);
}

/* Main Content */
main {
    display: flex;
    flex: 1;
    margin-top: 60px; /* navbar height */
}

.main-text {
    display: flex;
    flex-direction: column;
    flex: 1; /* allow child sections to expand */
}

/* Logo Section */
.logo-section {
    background-color: #c4c4c4;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.logo-section img {
    max-width: 90%;
    height: auto;
    animation: fadeInUp 3s forwards;
}

/* Text Content Section */
.text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--logo-color);
    background-size: 400% 400%;
    padding: 2rem 1rem;
    color: var(--text-light);
    text-align: center;
}

/* Text animations */
.text-content h1,
.text-content p,
.text-content .contact-btn {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.text-content h1 {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 2rem;
    margin-bottom: 1rem;
    animation-delay: 0.2s;
}

.text-content p {
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    max-width: 700px;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: var(--text-muted);
    animation-delay: 0.4s;
}

.contact-btn {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    background-color: #ffffff;
    color: var(--logo-color);
    border: 2px solid var(--logo-color);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px #c4c4c4;
    animation-delay: 0.6s;
}

.contact-btn:hover {
    background-color: var(--logo-color);
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 6px 12px #c4c4c4;
}

/* Footer */
footer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-top: 1px solid #ddd;
    padding: 1rem;
    text-align: center;
    gap: 3rem;
}

footer .social-icons a {
    display: inline-flex;      
    align-items: center;
    justify-content: center;
    color: var(--logo-color);
    font-size: 1.25rem;
    text-decoration: none;
    transition: transform 0.35s ease, color 0.3s ease;
    opacity: 0;
    animation: fadeInFloat 1s forwards;
}

footer .social-icons a:nth-child(1) { animation-delay: 0.1s; }
footer .social-icons a:nth-child(2) { animation-delay: 0.2s; }
footer .social-icons a:nth-child(3) { animation-delay: 0.3s; }
footer .social-icons a:nth-child(4) { animation-delay: 0.4s; }
footer .social-icons a:nth-child(5) { animation-delay: 0.5s; }
footer .social-icons a:nth-child(6) { animation-delay: 0.6s; }

footer .social-icons a:hover {
    font-size: 1.75rem;
    color: var(--logo-color);
}

/* Modal overlay */
.email-modal {
    display: none; /* hidden by default */
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Modal content box */
.email-modal-content {
    background-color: var(--logo-color);
    color: var(--text-muted);
    padding: 2rem;
    border-radius: 12px;
    border: 2px #ffffff;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

/* Buttons container */
.email-modal-buttons {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-around;
}

/* Animations */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInFloat {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Media Queries */
@media (max-width: 768px) {
    .navbar span { display: none; }
}

@media (min-width: 640px) {
    .text-content h1 { font-size: 2.25rem; }
}

@media (min-width: 768px) {
    header { padding: 0 1rem; }
    .navbar img { height: 90px; }
    .logo-section img {
        max-width: 70%;
        padding-top: 2rem;
    }
}

@media (min-width: 1024px) {
    .main-text {
        flex-direction: row; /* side by side */
        align-items: stretch;
        justify-content: stretch;
        text-align: left;
    }
    .logo-section {
        flex: 0 0 50%; /* take up 40% of row */
        width: 100%; /* override 100% */
        justify-content: center;
        align-items: center;
    }
    .logo-section img {
        max-width: 100%; /* keeps it responsive */
        height: auto;
    }
    .text-content {
        flex: 0 0 50%; /* take remaining space */
        width: 100%;
        max-width: none;
        text-align: center;
        align-items: center;
    }
    .text-content h1 { 
        font-size: 2.5rem; 
    }
    .text-content p {
        font-size: 1.25rem;
        padding: 0 2rem;
    }
    .contact-btn {
        font-size: 1.25rem;
    }
    footer .social-icons a { font-size: 1.75rem; }
    footer .social-icons a:hover {
        font-size: 2.5rem;
        color: var(--logo-color);
    }
}

@media (min-width: 1280px) {
    .text-content h1 { font-size: 3rem; }
}

@media (min-width: 1536px) {
    .text-content p {
        font-size: 1.5rem;
    }
    .contact-btn {
        font-size: 1.5rem;
    }
}
