/* ---------------------------------- fonts --------------------------------- */

@import url('https://fonts.googleapis.com/css2?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');

.poppins {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* ---------------------------------- colors --------------------------------- */

:root {
  --bg: #06191E;
  --surface-dark: #142A30;
  --surface-light: #2C3B40;
  --secondary: #166479;
  --secondary-light: #b5dde8;
  --brand: #2096AF;
  --brand-light: #3FD0EF;
  --text: #FDFDFD;
  --text-muted: #B2B2B2;
  --text-dark: #1e1e1e;
  --accent: #FFC857;
  --accent-dark: #E0A458;
  --accent-light: #F5DD90;
  --warn: #F38950;
  --negative: #ED4040;
  --positive: #48bb4c;
}

/* ------------------------------- animations ------------------------------- */

@keyframes scan {
    0% {
        transform: translateY(-300px) scale(0.5);
        opacity: 0;
    }
    15% {
        transform: translateY(-300px) scale(0.5);
        opacity: 0;
    }
    25%,75% {
        transform: translateY(0px) scale(1);
        opacity: 1;
    }
    85% {
        transform: translateY(300px) scale(0.5);
        opacity: 0;
    }
    100% {
        transform: translateY(300px) scale(0.5);
        opacity: 0;
    }
}

@keyframes focus {
    0%,25% { transform: scale(1); }
    30% { transform: scale(0.9) rotate(0deg); }
    40% { transform: scale(0.9) rotate(5deg); }
    60% { transform: scale(0.9) rotate(-5deg); }
    70% { transform: scale(0.9) rotate(0deg); }
    75%,100% { transform: scale(1); }
}

@keyframes fadein {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ---------------------------------- global --------------------------------- */

* {
  box-sizing: border-box;
  font-family: poppins, sans-serif;
  color: var(--text);
}

html {
    scroll-behavior: smooth;
}

body {
    font-size: 1rem;
    background-color: var(--bg);
    margin: 0;
}

main {
    display: flex;
    flex-direction: column;
    margin-bottom: 5rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 600;
    margin-top: 0;
}

h2, h3 {
    font-weight: 600;
    margin-top: 0;
}

a {
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

a:hover, footer a:hover {
    color: var(--accent-light);
    transition: color 0.2s ease;
}

.bold {
    font-weight: 600;
}

.highlight {
    color: var(--accent);
}

section { 
    padding: 5rem 1rem; 
    width: 90%; 
    margin: 0 auto;
}

section.light {
    background-color: var(--secondary-light);
    width: 100%;
    padding: 3rem 5rem;
}

section.light h1, section.light h2, section.light h3, section.light span, section.light p {
    color: var(--text-dark);
}

#team, #about, #faq, #gallery, #demo
{ scroll-margin-top: 15vh; }

img {
  max-width: 100%;
  height: auto; 
}


/* ----------------------------------- nav ---------------------------------- */

nav {
    display: flex;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    align-items: center;
    justify-content: right;
    gap: 2rem;
    padding: 1.2rem;
    z-index: 1;
    background-color: transparent;
    border-bottom: none;
    backdrop-filter: none;
}

#logo-desktop {
    height: 30px;
    position: absolute;
    left: 1.5rem;
}

#logo-mobile {
    display: none;
}

nav.scroll {
    background-color: rgba(36, 75, 86, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
}

/* --------------------------------- header --------------------------------- */

header {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    background-image: url("/media/SOVA_COVER.png");
    height: 100vh;
    padding: 3rem;
}

#logo-header { display: none; }

#tagline {
    font-size: 5rem;
    font-weight: 300;
    line-height: 5.5rem;
    margin-bottom: 2rem;
    margin-top: 0;
}

#tagline span {
    color: var(--accent);
    font-weight: 600;
}

.header-right {
    justify-content: left;
    text-align: left;
    width: 80%;
    align-content: center;
}

.header-left {
    justify-content: right;
    text-align: right;
    width: 20%;
    align-content: center;
    margin-right: 1rem;
}

button {
    background-color: transparent;
    border: 2px solid var(--text);
    color: var(--text);
    padding: 0.75rem 1.5rem;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button:hover, #DLbutton:hover, #learnmore:hover {
    background-color: #3fcfef7d;
    transition: background-color 0.2s ease;
}

.header-buttons {
    display: flex;
    gap: 1rem;
}

#DLbutton {
    border: none;
    background-color: var(--secondary);
    transition: background-color 0.2s ease;
}

#learnmore {
    transition: background-color 0.2s ease;
}

.animation {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;  
    width: 100%;
}

#detect {
    position: relative;      
    width: 100%;
    animation: focus 3.5s ease-in-out infinite;
}

#detectimg {
    position: absolute;      
    width: 80%;              
    transform: translate(-50%, -50%); 
    animation: scan 3.5s ease-in-out infinite;
}

/* ---------------------------- how does it work ---------------------------- */

.how h1 {
    margin-bottom: 0;
    margin-top: 2rem;
}

.subtitle {
    margin-top: 0;
    color: var(--text-muted);
    font-size: 1.5rem;
    margin-bottom: 3rem;
}

.howcontainer {
    text-align: center;
    margin: 0 auto;
    display: flex;
    gap: 40px;
}

.howbox {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: black 0px 2px 10px;
    background-color: var(--surface-light);
    padding: 0 1.5rem;
    border-radius: 15px;
    width: 50%;
    text-align: left;
}

.howbox span {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--brand-light);
    margin-right: 0.2rem;
}

.howbox h2 {
    line-height: 1rem;
    font-size: 2.2rem;
    margin-top: 30px;
    font-weight: 500;
    margin-bottom: 1.2rem;
    color: var(--text);
}

.howbox p {
    color: var(--text);
    margin-top: 0;
    font-size: 1.2rem;
}

/* -------------------------------- features -------------------------------- */

.feature-slide {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    min-height: 80vh;
}

.feature-slide.reverse {
    flex-direction: row-reverse;
    text-align: right;
}

.feature-image {
    width: 55%;
    flex-shrink: 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-content {
    width: 45%;
    display: flex;
    flex-direction: column;
}

.feature-content h2 {
    font-size: 2.8rem;
    line-height: 1;
    margin-bottom: 3rem;
}

.feature-content p {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-top: 0;
    color: var(--text-muted);
}

/* ---------------------------------- team ---------------------------------- */

.team {
    display: flex;
    gap: 1rem;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.teamabout {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    text-align: right;
    margin-bottom: 4rem;
}

.teamabout p {
    font-size: 1.2rem;
    color: var(--text-muted);
    width: 55%;
    text-align: left;
    margin-top: 0;
}

.teamsection h1 {
    margin-bottom: 0;
    line-height: 2.8rem;
}

.teamsection h3 {
    margin-top: 0;
    font-weight: 500;
    font-size: 1.6rem;
    color: var(--accent);
}

.member {
    display: flex;
    width: fit-content;
    background-color: var(--surface-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: black 0px 2px 10px;
    border-radius: 15px;
    text-align: center;
    align-items: center;
    padding: 0.5rem;
}

.member h2 {
    margin-bottom: 0;
    margin-top: 1.2rem;
    margin-right: 8px;
    font-weight: 500;
    line-height: 1.5rem;
    margin-top: 0;
}

.team p {
    margin-top: 5px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.innermember {
    text-align: left;
}

.innermember p {
    margin-bottom: 0;
}

.profile {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    background-color: var(--brand);
    margin-right: 1rem;
    align-content: center;
    font-size: 2.5rem;
    font-weight: 600;
}

/* ----------------------------------- faq ---------------------------------- */

.faq h1 {
    margin-bottom: 2rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    border-radius: 15px;
}

.faq-item {
    overflow: hidden;
    border-bottom: 2px solid var(--surface-light);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border: none;
    font-size: 1.5rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.faq-question:hover {
  background: #142A30;
}

.faq-icon {
  font-size: 1.4rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  padding: 1rem;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.5rem;
}

.faq-item.open .faq-answer {
  max-height: 50vh;
  padding: 1.5rem 1.2rem;
}

.faq-answer p {
  font-size: 1.2rem;
  line-height: 1.7;
}



/* -------------------------------- button arrows -------------------------------- */

.to-button {
    display: flex;
    justify-content: center;
}

.arrow {
    margin: 0;
    position: relative;
    transform: translate(0, 5px);
    transition: transform 0.2s ease;
}

.button-arrow:hover .arrow {
    transform: translate(5px, 5px);
    transition: transform 0.2s ease;
}

.to-button-header h2 {
    display: flex;
    justify-content: center;
    font-weight: 600;
    font-size: 1.8rem;
    text-align: center;
}

/* ------------------------------ contact page ------------------------------ */

.contacts {
    display: flex;
    gap: 5rem;
    padding: 0;
    margin: 0;
    position: absolute;
    height: 100vh;
}

.contact-img {
    background-image: url("media/SOVA_COVER.png");
    background-size: cover;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-img img {
    width: 70%;
}

.contact-info {
    padding: 3rem;
}

.contact-info span {
    color: var(--accent);
    font-weight: 600;
}

.contact-info p {
    margin-top: 0.5rem;
    font-size: 1.2rem;
}

.teamcontact {
    display: grid;
    grid-template-columns: 2fr 1fr;
    margin-bottom: 0;
    align-items: center;
}

.teamcontact-link {
    display: flex;
    gap: 1rem;
}

/* --------------------------------- gallery -------------------------------- */

.gallery {
    width: 90%;
    margin: 0 auto;
    margin-top: 2rem;
}

.gallery-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 10rem;
    width: 100%;
    align-items: center;
    justify-content: space-between
}

.gallery-section img {
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
}

.gallery-section:nth-child(1) img {
    width: 37%;
}

.gallery-section:nth-child(2) img {
    width: 30%;
}

.gallery h1 {
    font-size: 2.5rem;
    line-height: 2.5rem;
}

.gallery-section.reverse {
    flex-direction: row-reverse;
    text-align: left;
}

.gallery-section.reverse div {
    margin-left: 2rem;
    margin-right: 0;
}

.gallery-section div {
    margin-right: 2rem;
    margin-left: 0;
}

.gallery-section.reverse h1 {
    margin-right: 2rem;
    margin-left: 0;
}

.gallery-section p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.demo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    align-items: center;
}

.demo iframe {
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --------------------------------- footer --------------------------------- */

footer {
    background-color: var(--surface-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    padding: 1rem 2rem;
}

.footerBox {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    padding: 0.1rem;
    padding-bottom: 2rem;
}

.footer-section h3 {
    margin-top: 1rem;
    margin-bottom: 0;
    color: var(--accent-dark);
}

.footer-section p, .footer-section a {
    margin-top: 0.3rem;
    margin-bottom: 0;
    color: var(--text);
}

.footer-mobile {
    display: flex;
    flex-direction: column;
}

.bottom p {
    padding-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-left p {
    color: var(--text-muted); 
    margin-top: 1rem;
}

.footer-left img {
    width: 180px; 
    margin-top: 1rem
}