/* Global Styles */
/* DM Sans Font */
@font-face {
    font-family: 'DM Sans';
    src: url('../assets/fonts/DMSans_18pt-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
/* Inter Font */
@font-face {
    font-family: 'Inter';
    src: url('../assets/fonts/Inter_18pt-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
:root {
    --primary-color: #7C022D;
    --secondary-color: #FCEFDC;
    --neutral-0: #FFFFFF;
    --neutral-1: #DEE5ED;
    --text-color: #333333;
    --text-color-body: #6C6C6C;
    --text-color-dark:#1A202C;
    --accent-color: #ff9900;
    --updates-bg: #FFFFFF;
    --news-bg: #fcf9f5;
    --events-bg: #fdf1df;
    --card-bg: #ffffff;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    overflow-x: hidden;
}
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    max-width: 100%;
}
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    background-color: var(--neutral-0);
    color: var(--text-color);
    overflow-x: hidden;
}
/* Header Styles */
.header-container {
    width: 100%;
    min-height: 9vh;
    padding: 1rem 2rem 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    background-color: var(--neutral-0);
    border-bottom: 1px solid var(--neutral-1);
}
.logo {
    display: flex;
    align-items: center;
    gap: 1vw;
    text-decoration: none;
}
.logo-img {
    width: 9vw;
    max-width: 70px;
    min-width: 36px;
    height: auto;
    aspect-ratio: 1/1;
}
.logo-text {
    font-size: 1.5rem;
    font-family: 'DM Sans', sans-serif;
    font-style: normal;
    font-weight: 700;
    line-height: 1.5;
    color: var(--primary-color);
}
/* Navigation Styles */
.nav-list {
    list-style: none;
    display: flex;
    gap: 2vw;
    flex-wrap: wrap;
}
.nav-list a {
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    transition: color 0.3s ease;
    font-weight: 400;
}
.nav-list a:hover {
    color: var(--primary-color);
}
/* Current page link */
.nav-list li.current-page a {
    color: var(--primary-color);          
    font-weight: 700;
    padding-bottom: 0.2em; 
    border-bottom: 2px solid var(--primary-color);   
}
/* Main Styles */
main {
    flex: 1;
}
/* Footer Styles */
.footer {
    background-color: var(--primary-color);
    color: var(--neutral-0);
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-left: 4rem;
    margin-right: 4rem;
}
/* Footer-Left */
.footer-left {
    display: flex;
    flex-direction: column;
    align-items: right;
    margin-bottom: 2vw;
}
.footer-left-logo-img {
    width: 5vw;
    height: 5vw;
    margin-right: 1vw;
    margin-bottom: 1vw;
}
.footer-left-logo-text {
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    color: var(--secondary-color);
    font-family: 'DM Sans', sans-serif;
    font-style: normal;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.1em;
}
/* Footer-Right*/
.footer-right {
    display: flex;
    gap: 5rem;
    flex-wrap: wrap;
    margin-right: 0;
}
.footer-right-column-header {
    font-size: 1.2rem;
    font-weight: bold;
    padding-bottom: 2vw;
}
.footer-right-column p {
    margin: 1em 0; 
}
.footer-right-column p a {
    color: var(--neutral-0); 
    text-decoration: none; 
    transition: color 0.3s, text-decoration 0.3s;
    margin: 1em 0 1.5em 0;
    cursor: pointer;
    transition: color 0.3s;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}
.footer-right-column p a:hover {
    color: var(--accent-color); 
    text-decoration: underline;
}
/* Footer Bottom */
.footer-bottom {
    border-top: 0.25px solid #FFF;
    margin-top: 3vw;
    padding-top: 1vw;
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
}
.footer-bottom a {
    color: var(--neutral-0);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-bottom a:hover {
    color: var(--accent-color);
}
.footer-contact-btn {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--secondary-color); 
    color: var(--primary-color); 
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    font-family: 'Inter', sans-serif;
    text-align: center;
}
.footer-contact-btn:hover {
    background-color: var(--accent-color); 
    color: var(--neutral-0); 
}
/* Responsive */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-right {
        gap: 4vw;
        margin-top: 2vw;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5em;
    }
}
@media (min-width: 820px) and (max-width: 1180px) {
  .details-row-middle,
  .details-row-bottom {
    flex-direction: column;   /* stack */
    text-align: center;
    gap: 2rem;
  }
  .details-text-middle,
  .details-text-bottom {
    width: 100%;
  }
  .details-image-container,
  .technology-image-container {
    max-width: 90%;
    margin: 0 auto; 
  }
}
@media (max-width: 819px) {
    .details-row-middle,
    .details-row-bottom {
        flex-direction: column;
        gap: 1.5rem;
    }
    .details-image-container img,
    .technology-image-container img {
        max-width: 100%;
    }
}
/* Mobile responsiveness */
@media (max-width: 600px) {
    .logo {
        gap: 0.5rem;
    }
    .logo-text {
        font-size: 1rem; 
    }
    .logo-img {
        width: 40px;
        height: auto;
    }
    .nav-list {
        gap: 1rem;
        margin-top: 0.5rem;
        flex-wrap: wrap;
    }
    .nav-list a {
        font-size: 0.9rem;
    }
    .footer-container {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    .footer-left-logo-img {
        width: 40px;
        height: 40px;
        margin-bottom: 0.5rem;
    }
    .footer-left-logo-text {
        font-size: 1rem;
        letter-spacing: 0.05em;
    }
    .footer-right {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 1rem;
    }
    .footer-right-column-header {
        font-size: 1rem;
        padding-bottom: 0.5rem;
    }
    .footer-right-column p {
        font-size: 0.9rem; 
        margin: 0.3em 0 1em 0;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        font-size: 0.85rem; 
        gap: 0.5em;
    }
}
/* Burger button (hidden on desktop) for responsive design*/
.burger {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    top: 15px;
    right: 20px;
    z-index: 1001; /* above nav */
}
/* Mobile nav */
@media (max-width: 768px) {
    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px; /* below header */
        left: 0;
        width: 100%;
        background: var(--neutral-0);
        padding: 1rem;
        gap: 1rem;
        border-top: 1px solid var(--neutral-1);
        z-index: 1000;
    }
    .nav.active {
        display: flex;
    }
    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-list a {
        font-size: 1rem;
        padding: 0.5rem 0;
    }
    .burger {
        display: block;
    }
}