/* --- Global Styles (from styles.scss) --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;1,14..32,300&family=Whisper&display=swap');

p, a, li {
    font-size: clamp(1rem, 1.8vw, 1.8rem);
    line-height: 1.7;
}

h1, i {
    font-size: clamp(1.5rem, 3vw, 3rem);
}

i {
    font-size: 4rem;
    display: inline-block;
    background: linear-gradient(
            180deg,
            #E60001,
            #FF8D02,
            #FFED00,
            #028121,
            #004DFF,
            #770088
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

a {
    text-decoration: none;
}

body {
    background: #EDEDED;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.zigzag {
    position: relative;
    display: inline-block;
}

.zigzag::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 6px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='0,8 20,2 40,8 60,2 80,8 100,2 120,8' fill='none' stroke='%23C7717180' stroke-width='5'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: auto 100%;
    pointer-events: none;
}

.highlight {
    position: relative;
    display: inline-block;
}

.highlight::before {
    content: "";
    position: absolute;
    left: 10px;
    right: -10px;
    bottom: 6px;
    height: 0.5em;
    background-color: #C7717180;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.6s ease-out;
}

@media (max-width: 800px) {
    .highlight::before {
        bottom: 4px;
        right: -8px;
        left: 8px;
    }
}

.highlight.visible::before {
    transform: scaleX(1);
}

/* --- Home Page Styles (from home.component.scss) --- */
.hero {
    width: 100vw;
    text-align: center;
    height: 105vh;
    background: url('../assets/hero.png') no-repeat center center;
    background-size: cover;
    position: relative;
    clip-path: ellipse(150% 100% at 50% 0);
    animation: fade-in 1s ease-in forwards 1s;
}

.hero .hero-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 112%;
    z-index: 0;
}

@media (max-width: 800px) {
    .hero .hero-container {
        height: 90%;
    }
}

.hero .hero-container nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    opacity: 0;
    animation: opacity-in 1s ease-in forwards 2s;
}

.hero .hero-container nav img {
    aspect-ratio: 1;
    width: 70px;
    fill: white;
}

.hero .hero-container nav a {
    color: white;
    padding: 0 10px;
    transition: 0.3s ease;
}

.hero .hero-container nav a:hover {
    color: #C7717180;
    cursor: pointer;
}

.hero .hero-container .hero-title {
    color: white;
    font-family: 'Whisper', cursive;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(5rem, 10vw, 10rem);
}

.hero .hero-container .hero-title span {
    font-size: clamp(6rem, 18vw, 18rem);
}

@keyframes fade-in {
    0% {
        height: 105vh;
    }
    100% {
        height: 70vh;
    }
}

@keyframes opacity-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.hero-buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
}

@media (max-width: 800px) {
    .hero-buttons {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }
}

.hero-buttons .buttons {
    width: 150px;
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 100;
}

.hero-buttons .buttons::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #C7717180;
    transition: 0.3s ease;
    z-index: 1;
    border-radius: 50%;
}

.hero-buttons .buttons:hover::before {
    opacity: 0;
}

.hero-buttons .buttons:hover {
    cursor: pointer;
}

.hero-buttons .buttons a {
    z-index: 2;
    color: white;
}

.hero-buttons .button1 {
    background: url('assets/button1.jpg') no-repeat center center;
    background-size: cover;
}

.hero-buttons .button2 {
    background: url('assets/button2.png') no-repeat center center;
    background-size: cover;
}

.hero-buttons .button3 {
    background: url('assets/button3.jpg') no-repeat center center;
    background-size: cover;
}

.intro {
    position: relative;
    background-color: #2C3D31;
    color: white;
    padding: 4rem 0;
    overflow: hidden;
}

.intro::before,
.intro::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: #efefef;
    border-radius: 100% / 100%;
    z-index: 1;
}

.intro::before {
    top: -50px;
    transform: scaleX(1.1);
}

.intro::after {
    bottom: -50px;
    transform: scaleX(1.1) rotate(180deg);
}

.intro .intro-content {
    position: relative;
    z-index: 2;
    max-width: 85vw;
    margin: 0 auto;
}

.intro .intro-content .icon {
    width: 100%;
    text-align: center;
}

.welcome h1 {
    display: flex;
    align-items: center;
    width: 85vw;
    margin: auto;
}

.welcome h1 .title:first-of-type {
    margin-left: 10px;
}

.welcome .title {
    font-family: 'Whisper', cursive;
    font-size: clamp(2rem, 4vw, 4rem);
}

.welcome .title-2 {
    font-family: 'Whisper', cursive;
    font-size: clamp(4rem, 8vw, 8rem);
}

.img-text {
    width: 85vw;
    margin: auto;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-around;
    padding: 10px;
}

@media (max-width: 800px) {
    .img-text {
        display: flex;
        flex-direction: column;
    }
}

.img-text p {
    width: 60%;
}

@media (max-width: 800px) {
    .img-text p {
        width: 100%;
    }
}

.img-text img {
    width: 30%;
    border-radius: 20px;
}

@media (max-width: 800px) {
    .img-text img {
        width: 80%;
    }
}

.ribbon {
    position: relative;
    background-color: #2C3D31;
    color: white;
    padding: 4rem 0;
    overflow: hidden;
}

.ribbon::before,
.ribbon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: #efefef;
    border-radius: 100% / 100%;
    z-index: 1;
}

.ribbon::before {
    top: -50px;
    transform: scaleX(1.1);
}

.ribbon::after {
    bottom: -50px;
    transform: scaleX(1.1) rotate(180deg);
}

.ribbon .content {
    width: 80vw;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    justify-items: center;
    align-items: center;
    text-align: center;
}

.content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 85vw;
    margin: auto;
}

.content i {
    margin: 10px;
}

.button {
    width: 120px;
    display: flex;
    justify-content: center;
    margin: 10px 0;
    transition: 0.3s ease;
    position: relative;
    background: #C7717180;
    color: white;
    padding: 1rem;
    border-radius: 50%;
    aspect-ratio: 1;
    align-items: center;
    text-align: center;
    text-decoration: none;
    overflow: hidden;
}

.button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
            180deg,
            #E60001,
            #FF8D02,
            #FFED00,
            #028121,
            #004DFF,
            #770088
    );
    opacity: 0;
    transition: 0.3s ease;
    border-radius: 50%;
    z-index: 0;
}

.button:hover::after {
    opacity: 1;
}

.button span {
    z-index: 1;
}

/* --- Specs Page Styles (from specs.component.scss) --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

nav .icon img {
    aspect-ratio: 1;
    width: 70px;
}

nav .icon img:hover {
    cursor: pointer;
}

nav .links a {
    color: black;
    padding: 0 10px;
    transition: 0.3s ease;
}

nav .links a:hover:not(.active) {
    color: #C7717180;
    cursor: pointer;
}

nav .links .active {
    background-color: #C7717180;
    color: white;
    border-radius: 10px;
}

.intro h1 {
    font-family: 'Whisper', cursive;
    font-size: clamp(3rem, 6vw, 6rem);
    margin: 0 7.5vw;
    z-index: 1;
    position: relative;
}

.intro .content {
    width: 100%;
    background: url('assets/wallBackground.jpg') center center no-repeat;
    background-size: cover;
    z-index: 0;
    position: relative;
    top: -20px;
}

.intro .content .img-text {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 85vw;
    margin: auto;
}

@media (max-width: 800px) {
    .intro .content .img-text {
        display: flex;
        flex-direction: column-reverse;
        padding-top: 10px;
    }
}

.intro .content .img-text p {
    width: 60%;
}

@media (max-width: 800px) {
    .intro .content .img-text p {
        width: 100%;
    }
}

.intro .content .img-text img {
    width: 30%;
    border-radius: 20px;
}

@media (max-width: 800px) {
    .intro .content .img-text img {
        width: 80%;
    }
}

.specsIntro {
    h1 {
        font-family: 'Whisper', cursive;
        font-size: clamp(3rem, 6vw, 6rem);
        margin: 0 7.5vw;
        z-index: 1;
        position: relative;
    }
    .specsContent {
        width: 100%;
        background: url('../assets/wallBackground.jpg') center center no-repeat;
        background-size: cover;
        z-index: 0;
        position: relative;
        top: -20px;

        .img-text {
            display: flex;
            justify-content: space-around;
            align-items: center;
            width: 85vw;
            margin: auto;

            @media (max-width: 800px) {
                display: flex;
                flex-direction: column-reverse;
                padding-top: 10px;
            }

            p {
                width: 60%;

                @media (max-width: 800px) {
                    width: 100%;
                }
            }

            img {
                width: 30%;
                border-radius: 20px;

                @media (max-width: 800px) {
                    width: 80%;
                }
            }
        }
    }
}

.header {
    position: relative;
    background-color: #2C3D31;
    color: white;
    padding: 4rem 0;
    overflow: hidden;
}

.header::before,
.header::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: #efefef;
    border-radius: 100% / 100%;
    z-index: 1;
}

.header::before {
    top: -50px;
    transform: scaleX(1.1);
}

.header::after {
    bottom: -50px;
    transform: scaleX(1.1) rotate(180deg);
}

.header h1 {
    width: 85vw;
    margin: auto;
    text-align: center;
    padding: 35px;
}

.list {
    width: 85vw;
    margin: auto;
}

.list li::marker {
    color: #C7717180;
    font-size: 1.5em;
    line-height: 1;
}

.switcher {
    width: 85vw;
    margin: auto;
}

.switcher h1 span {
    font-family: 'Whisper', cursive;
}

.switcher .content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

@media (max-width: 800px) {
    .switcher .content {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
}

.switcher .content ul {
    grid-row: 1 / span 2;
    grid-column: 1;
    height: fit-content;
    overflow-y: auto;
    background: #C7717180;
    border-radius: 20px;
    padding: 10px;
    overflow-x: hidden;
}

.switcher .content ul .active {
    background-color: #2C3D31;
    color: white;
    width: calc(100% + (10px * 2));
    position: relative;
    right: 10px;
    padding-left: 10px;
}

.switcher .content ul li {
    list-style: none;
}

.switcher .content ul li:hover {
    cursor: pointer;
    background-color: #2C3D31;
    color: white;
    width: calc(100% + (10px * 2));
    position: relative;
    right: 10px;
    padding-left: 10px;
    transition: 0.3s ease;
}

.switcher .content p {
    grid-column: 2;
    grid-row: 1;
    background: #2C3D31;
    color: white;
    padding: 1rem;
    border-radius: 20px;
}

.switcher .content img {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
}

.list2 {
    width: 85vw;
    margin: auto;
}

.list2 h1 span {
    font-family: 'Whisper', cursive;
}

.summary {
    display: flex;
    width: 85vw;
    margin: auto;
    align-items: center;
    justify-content: space-around;
}

@media (max-width: 800px) {
    .summary {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.summary p {
    width: 60%;
}

@media (max-width: 800px) {
    .summary p {
        width: 100%;
    }
}

.summary img {
    width: 30%;
    background-size: cover !important;
    border-radius: 20px;
}

@media (max-width: 800px) {
    .summary img {
        width: 80%;
    }
}

/* --- Footer Styles (from footer.component.scss) --- */
footer section {
    position: relative;
    background-color: #2C3D31;
    color: white;
    padding: 4rem 0;
    overflow: hidden;
    padding-bottom: 0;
}

footer section::before,
footer section::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: #efefef;
    border-radius: 100% / 100%;
    z-index: 1;
}

footer section::before {
    top: -50px;
    transform: scaleX(1.1);
}

footer section::after {
    bottom: 0;
    transform: scaleX(0) rotate(0);
    height: fit-content;
}

footer section .content {
    display: flex;
    width: 95vw;
    justify-content: space-between;
    align-items: center;
}

footer section .content .icons {
    justify-self: flex-start;
}

footer section .content .icons .flag {
    width: 70px;
    aspect-ratio: 5/3;
    object-fit: contain;
    display: block;
    margin: 20px;
}

footer section .content p,
footer section .content p a {
    font-size: clamp(0.7rem, 1vw, 1rem);
}

footer section .content p a,
footer section .content p a {
    color: white;
    text-decoration: underline;
}

@media (max-width: 800px) {
    footer section .content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }
    footer section .content .icons {
        grid-row: 1/3;
    }
}

footer section .quotes {
    font-size: clamp(0.7rem, 1vw, 1rem);
    text-align: center;
    width: 90vw;
    margin: auto;
    padding: 10px 0;
}


/* --- NEW Animation Styles --- */

/* For [appFadeIn] directive */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out 0s, transform 0.6s ease-out 0s;
}
.fade-in-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* For [appImageFadeOnView] directive */
.image-fade-on-scroll {
    opacity: 0;
    transition: opacity 1s ease-out 0.2s;
}
.image-fade-on-scroll.is-visible {
    opacity: 1;
}

/* For footer quote/flag cycling */
.quotes {
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
#cycling-flag {
    transition: opacity 0.3s ease-out;
}