/* =========================================================
   TSS EURUS WEBSITE
   MAIN STYLESHEET
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');
/* =========================================================
   VARIABLES
========================================================= */

:root {

    --purple: #6C40A1;
    --purple-dark: #1A0A2E;
    --purple-light: #F5F0FB;

    --text: #101828;
    --muted: #777586;

    --white: #ffffff;
    --border: #e6e2eb;

    --container: 1320px;

    --transition: 0.3s ease;

}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Space Grotesk", sans-serif;

    color: var(--text);
    background: var(--white);

    line-height: 1.6;

    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea {
    font-family: inherit;
}


/* =========================================================
   COMMON
========================================================= */

.container {
    width: min(
        calc(100% - 60px),
        var(--container)
    );

    margin: 0 auto;
}

.section {
    padding: 112px 0;
}

.section-label {

    display: flex;
    align-items: center;

    gap: 10px;

    font-size: 14px;

    letter-spacing: 3px;

    color: var(--purple);

    margin-bottom: 60px;

    font-weight: 300;
}

.section-label span {

    display: block;

    width: 22px;
    height: 1px;

    background: #c49ae8;
}

.section-label.light {
    color: #BF9BDE;
}

.section-title {
    font-size: 60px;
    font-weight: 300;
    line-height: 66px;
    letter-spacing: -1.5px;
    margin-bottom: 80px;
}

.section-title span {
    color: var(--purple);
}

.section-title.light {
    color: white;
}

.section-title.light span {
    color: #BF9BDE;
}


/* =========================================================
   LOGO
========================================================= */

.logo {

    display: inline-flex;

    align-items: center;

    font-weight: 900;

    font-size: 15px;

    letter-spacing: -1px;
}

.logo-tss {
    color: #ef3c48;
}

.logo-eurus {
    color: #1755a3;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    height: 60px;

    background: rgba(
        255,
        255,
        255,
        0.96
    );

    z-index: 1000;

    border-bottom: 1px solid
        rgba(0, 0, 0, 0.04);

    transition:
        background var(--transition),
        box-shadow var(--transition);
}

.site-header.scrolled {

    box-shadow:
        0 5px 30px
        rgba(0, 0, 0, 0.08);
}

.header-inner {

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.main-nav {

    display: flex;

    align-items: center;

    gap: 35px;
}

.main-nav a {

    font-size: 14px;
    font-weight: 500;
    color: #101828;
    opacity: 0.6;
    transition: color var(--transition);
}

.main-nav a:hover,
.main-nav a.active {

    color: var(--purple);
}

/* =====================================================
   MOBILE MENU BUTTON
===================================================== */

.mobile-menu-btn {
    display: none;
    position: relative;

    width: 40px;
    height: 40px;

    border: 0;
    padding: 0;

    background: transparent;

    cursor: pointer;

    z-index: 1100;
}

.mobile-menu-btn span {
    position: absolute;

    left: 50%;

    width: 24px;
    height: 2px;

    background: var(--text);

    margin: 0;

    transform: translateX(-50%);

    transition:
        transform 0.3s ease,
        opacity 0.3s ease,
        top 0.3s ease;
}

/* Hamburger */

.mobile-menu-btn span:nth-child(1) {
    top: 12px;
}

.mobile-menu-btn span:nth-child(2) {
    top: 19px;
}

.mobile-menu-btn span:nth-child(3) {
    top: 26px;
}


/* =====================================================
   OPEN = CLOSE ICON
===================================================== */

.mobile-menu-btn.active span:nth-child(1) {
    top: 19px;
    transform: translateX(-50%) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    top: 19px;
    transform: translateX(-50%) rotate(-45deg);
}


/* =========================================================
   HERO
========================================================= */

.hero {

    position: relative;

    min-height: 680px;

    display: flex;

    align-items: center;

    color: white;

    background-color: #30283c;
    padding-bottom: 48px;
}

.hero-overlay {

    position: absolute;

    inset: 0;

    background-image: url("../images/hero-banner.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-content {

    position: relative;

    z-index: 2;

    min-height: 680px;

    display: flex;

    flex-direction: column;

    justify-content: center;
}

.hero-copy {

    max-width: 580px;

    padding-top: 70px;
}

.hero-copy h1 {
font-size: 48px;
    line-height: 55px;
    font-weight: 300;
    letter-spacing: -1.2px;
    margin-bottom: 20px;
}

.hero-copy h1 span {

    display: block;

    color: #BF9BDE;
}

.hero-copy p {

    max-width: 480px;

    font-size: 14px;

    color: rgba(
        255,
        255,
        255,
        0.60
    );

    margin-bottom: 25px;
}

.hero-buttons {

    display: flex;

    gap: 12px;
}

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 110px;

    padding: 11px 20px;

    border-radius: 8px;

    font-size: 14px;

    font-weight: 500;

    cursor: pointer;

    border: 1px solid transparent;

    transition:
        transform var(--transition),
        background var(--transition),
        color var(--transition);
}

.btn:hover {

    transform: translateY(-2px);
}

.btn-primary {

    background: var(--purple);

    color: white;
}

.btn-primary:hover {

    background: #BF9BDE;
}

.btn-outline {

    color: #BF9BDE;

    border-color: #BF9BDE;

    background:
        rgba(
            255,
            255,
            255,
            0.04
        );
}

.btn-outline:hover {

    background: white;

    color: var(--purple);
}

.hero-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    gap: 220px;
    padding: 20px 28px;
    background: rgba(18, 7, 32, 0.60);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hero-stat strong {

    font-size: 24px;

    font-weight: 300;
}

.hero-stat small {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.40);
    letter-spacing: 1px;
    font-weight: 400;
}


/* =========================================================
   ABOUT
========================================================= */

.about {
    background: white;
}

.timeline {

    position: relative;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 30px;

    padding-top: 35px;
}

.timeline-line {

    position: absolute;

    top: 40px;

    left: 0;
    right: 0;

    height: 1px;

    background: #BF9BDE;
    opacity: 0.5;
}

.timeline-item {

    position: relative;

    text-align: center;

    padding-top: 55px;
}

.timeline-dot {

    position: absolute;

    width: 40px;
    height: 40px;


    border-radius: 50%;

    background: white;

    border: 2px solid #BF9BDE;

    z-index: 2;
}

.timeline-dot::after {

    content: "";

    position: absolute;

    width: 12px;
    height: 12px;

    top: 50%;
    left: 50%;

    transform:
        translate(
            -50%,
            -50%
        );

    border-radius: 50%;

    background: #b77ee1;
}

.timeline-item.active
.timeline-dot {

    background: var(--purple);

    border-color: var(--purple);
}

.timeline-item.active
.timeline-dot::after {

    background: white;
}

.timeline-label {

    display: block;

    color: #BF9BDE;

    font-size: 12px;
    font-weight: 300;
    letter-spacing: 1.2px;

    margin-bottom: 8px;
}

.timeline-content h3 {

    font-size: 14px;

    margin-bottom: 8px;
    font-weight: 500;
    line-height: 20px;
}

.timeline-content p {
    font-size: 12px;
    color: #4A5565;
    line-height: 20px;
    font-weight: 400;
}

/* =========================================
   TIMELINE CAROUSEL
========================================= */

.timeline-carousel {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
}

.timeline-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Timeline line stays fixed while slides move */
.timeline-viewport::before {
    content: "";
    position: absolute;

    top: 25px;
    left: 0;
    right: 0;

    height: 1px;
    background: #dcc9f4;

    z-index: 0;
}

.timeline-track {
    display: flex;
    position: relative;
    transition: transform 0.5s ease;
}


/* Each timeline box */
.timeline-item {
    position: relative;
    flex: 0 0 25%;
    min-width: 25%;
    box-sizing: border-box;
    padding: 0 25px;
    text-align: center;
}


/* Timeline dot */
.timeline-dot {
    width: 50px;
    height: 50px;
    border: 2px solid #b887e8;
    border-radius: 50%;
    background: #fff;

    margin: 0 auto 42px;

    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-dot::after {
    content: "";
    width: 14px;
    height: 14px;
    background: #b887e8;
    border-radius: 50%;
}


/* Active dot */

.timeline-item.active .timeline-dot::after {
    background: #fff;
}


/* Timeline content */
.timeline-content {
    max-width: 360px;
    margin: 0 auto;
}

.timeline-label {
    display: block;
    color: #c18aee;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.timeline-content h3 {
    font-size: 18px;
    line-height: 1.4;
    margin: 0 0 12px;
    color: #111827;
}

.timeline-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #53627a;
    margin: 0;
}


/* =========================================
   ARROWS
========================================= */

.timeline-arrow {
    flex: 0 0 48px;

    width: 48px;
    height: 48px;

    border: 1px solid #7041ad;
    border-radius: 50%;

    background: #fff;
    color: #7041ad;

    font-size: 22px;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        opacity 0.25s ease,
        transform 0.25s ease;

    z-index: 5;
}

.timeline-arrow:hover:not(:disabled) {
    background: #7041ad;
    color: #fff;
    transform: scale(1.05);
}

.timeline-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {

    .timeline-item {
        flex: 0 0 50%;
        min-width: 50%;
        padding: 0 15px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .timeline-carousel {
        gap: 10px;
    }

    .timeline-arrow {
        flex: 0 0 40px;

        width: 40px;
        height: 40px;

        font-size: 18px;
    }

    .timeline-item {
        flex: 0 0 100%;
        min-width: 100%;
        padding: 0 10px;
    }

    .timeline-dot {
        margin-bottom: 35px;
    }

    .timeline-content h3 {
        font-size: 17px;
    }

    .timeline-content p {
        font-size: 14px;
    }

}


/* =========================================================
   PRODUCTS
========================================================= */

.products {

    background:
        var(--purple-light);
}

.products .section-title {
    margin-bottom: 56px;
}

.product-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.product-card {

    background: white;

    border-radius: 5px;

    overflow: hidden;

    box-shadow:
        0 8px 25px
        rgba(
            50,
            20,
            80,
            0.04
        );

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.product-card:hover {

    transform: translateY(-7px);

    box-shadow:
        0 18px 40px
        rgba(
            50,
            20,
            80,
            0.12
        );
}

.product-image {

    position: relative;

    height: 350px;

    overflow: hidden;
}

.product-image img {

    width: 100%;
    height: 100%;
    transition:
        transform 0.5s ease;
}

.product-card:hover
.product-image img {

    transform: scale(1.06);
}

.product-tag {

    position: absolute;

    left: 12px;
    bottom: 10px;

    background: var(--purple);

    color: white;

    padding: 4px 8px;

    border-radius: 10px;

    font-size: 6px;

    letter-spacing: 1px;
}

.product-content {

    padding: 20px;
}

.product-content h3 {

    font-size: 20px;

    margin-bottom: 8px;

    font-weight: 500;
}

.product-content p {
color: #4A5565;
font-size: 14px;
font-weight: 500;
line-height: 22.75px; 
}


/* =========================================================
   PROJECTS
========================================================= */

.projects {

    background:
        var(--purple-dark);

    color: white;

    overflow: hidden;
}

.projects .section-title {
    font-size: 80px;
    font-weight: 300;
    line-height: 88px; /* 110% */
    letter-spacing: -2px;
}

.projects-slider {

    overflow: hidden;

    width: 100%;
}

.projects-track {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 0 45px;

    transition:
        transform 0.5s ease;
}

.project-card {

    min-width: 0;

    padding:
        0 0 30px;

    border-bottom: 1px solid
        rgba(
            255,
            255,
            255,
            0.08
        );
}

.project-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 10px;
    background: rgba(191, 155, 222, 0.15);
    color: #BF9BDE;
    font-size: 10.4px;
    font-weight: 400;
    line-height: 15.6px; /* 150% */
    letter-spacing: 1.04px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.project-card h3 {
    color: #FFF;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px; /* 140% */
    margin-bottom: 16px;
}

.project-card p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    font-weight: 400;
    line-height: 22.75px; /* 162.5% */
}

.slider-controls {

    display: flex;

    align-items: center;

    gap: 20px;

    margin-top: 40px;
}

.slider-btn {

    width: 50px;
    height: 50px;

    border: 0;
    font-size: 20px;
    background:
        rgba(
            255,
            255,
            255,
            0.04
        );

    color: white;

    border-radius: 50%;

    cursor: pointer;

    transition: var(--transition);
}

.slider-btn:hover {

    background: var(--purple);

    border-color: var(--purple);
}

.slider-indicator {

    display: flex;

    align-items: center;

    gap: 8px;
}

.indicator {

    width: 6px;
    height: 6px;

    border-radius: 5px;

    background:#BF9BDE;
}

.indicator.active {

    width: 20px;

    background:
        #bd8dde;
}


/* =========================================================
   CONTACT
========================================================= */

.contact {

    background: white;
}

.contact-grid {

    display: grid;

    grid-template-columns:
        0.85fr 1.15fr;

    gap: 100px;

    align-items: start;
}

.contact-intro h2 {
    color: #101828;
    font-size: 120px;
    font-weight: 300;
    line-height: 116px; /* 96.667% */
    letter-spacing: -3.064px;
    margin-bottom: 32px;;
}

.contact-intro p {
    color: #4A5565;
    font-size: 16px;
    font-weight: 400;
    line-height: 26px; /* 162.5% */
    width: 60%;
}

.form-group {

    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: rgba(16, 24, 40, 0.40);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px; /* 133.333% */
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {

    display: block;

    width: 100%;

    border: 1px solid
        #e2dfe5;

    background: white;

    border-radius: 4px;

    padding: 10px 16px;

    font-size: 14px;
    font-weight: 400;
    color: rgba(16, 24, 40, 0.50);

    outline: none;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {

    border-color: #a36bc9;

    box-shadow:
        0 0 0 3px
        rgba(
            112,
            66,
            165,
            0.08
        );
}

.form-group textarea {

    resize: vertical;

    min-height: 100px;
}

.form-group.has-error input,
.form-group.has-error textarea {

    border-color: #df5555;
}

.error-message {

    display: none;

    color: #df5555;

    font-size: 8px;

    margin-top: 4px;
}

.form-group.has-error
.error-message {

    display: block;
}

.submit-btn {

    margin-top: 5px;

    border: 0;
}

.form-success {

    display: none;

    margin-top: 15px;

    padding: 12px;

    background: #edf9f0;

    color: #34834a;

    border-radius: 4px;

    font-size: 10px;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {

    background:
        var(--purple-light);

    padding: 25px 0;
}

.footer-inner {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}

.footer p {

    font-size: 12px;
    font-weight: 400;
    color: rgba(16, 24, 40, 0.40);
}

.footer nav {

    display: flex;

    gap: 36px;
}

.footer nav a {

    font-size: 12px;
    font-weight: 500;
    color: rgba(16, 24, 40, 0.40);
}

.footer nav a:hover {

    color: var(--purple);
}


/* =========================================================
   BACK TO TOP
========================================================= */

.back-to-top {

    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 42px;
    height: 42px;

    border: 0;

    border-radius: 50%;

    background: var(--purple);

    color: white;

    cursor: pointer;

    opacity: 0;

    visibility: hidden;

    transform: translateY(10px);

    transition: var(--transition);

    z-index: 999;
}

.back-to-top.show {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}


/* =========================================================
   ANIMATIONS
========================================================= */

.fade-up {

    opacity: 0;

    transform: translateY(30px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.fade-up.visible {

    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 992px) {

    .container {
        width:
            min(
                calc(100% - 40px),
                var(--container)
            );
    }
    .hero {
        min-height: 620px;
    }
    .projects .section-title {
        font-size: 60px;
        line-height: 70px;
    }
    .hero-content {
        min-height: 620px;
    }

    .hero-stats {
        gap: 100px;
    }

    .timeline {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 45px 25px;
    }

    .timeline-line {
        display: none;
    }

    .product-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .projects-track {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 25px;
    }

    .contact-grid {
        gap: 0;
        grid-template-columns: 50% 50%;
    }
    .contact-intro h2 {
        font-size: 60px;
        line-height: 80px;
    }
    .section {
        padding: 80px 0;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .container {
        width:
            calc(100% - 30px);
    }

    .section {
        padding: 65px 0;
    }

    /* Header */

    .site-header {
        height: 58px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .main-nav {

        position: absolute;

        top: 58px;
        left: 0;

        width: 100%;

        background: white;

        display: none;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        padding: 10px 15px;

        box-shadow:
            0 15px 30px
            rgba(0, 0, 0, 0.08);
    }

    .main-nav.open {
        display: flex;
        height: 100vh;
    }
    
    .main-nav a {

        padding: 13px 5px;

        border-bottom:
            1px solid #eee;
    }

    /* Hero */

    .hero {

        min-height: 620px;

        background-position:
            58% center;
    }

    .hero-content {

        min-height: 620px;

        justify-content: center;
    }

    .hero-copy {

        padding-top: 40px;
    }

    .hero-copy h1 {
        font-size: 32px;
        line-height: 40px;
    }

    .hero-stat strong {
        font-size: 18px;
        font-weight: 300;
    }
    .section-label, .products .section-title {
        margin-bottom: 20px;
    }
    .section-title {
        font-size: 40px;
        line-height: 50px;
        margin-bottom: 20px;
    }
    .projects .section-title {
        font-size: 40px;
        line-height: 55px;
    }
    .hero-copy p {

        font-size: 11px;
    }

    .hero-stats {

        gap: 50px;

        padding: 18px 0;
    }

    /* About */

    .timeline {

        grid-template-columns: 1fr;

        gap: 30px;
    }

    .timeline-dot {

        top: 0;
    }

    /* Products */

    .product-grid {

        grid-template-columns: 1fr;
    }

    .product-image {

        height: 210px;
    }

    /* Projects */

    .projects-track {

        display: flex;

        gap: 20px;
    }

    .project-card {

        flex:
            0 0 100%;
    }

    /* Contact */
    
    .contact-grid {

        grid-template-columns: 1fr;

        gap: 20px;
    }

    .contact-intro h2 {

        font-size: 48px;
        line-height: 58px;
        margin-bottom: 20px;
    }
    .contact-intro p {
        width: 100%;
    }

    /* Footer */

    .footer-inner {

        flex-direction: column;

        align-items: flex-start;
    }

    .footer nav {

        flex-wrap: wrap;

        gap: 15px;
    }

}

@media (min-width: 650px) {
    .slider-controls {
        display: none;
    }
}


/* =========================
   LEGAL / PRIVACY PAGE
========================= */

.legal-page {
    padding-top: 150px;
    padding-bottom: 120px;
}

.legal-header {
    margin-bottom: 70px;
    max-width: 900px;
}

.legal-header .section-title {
    margin-bottom: 20px;
}

.legal-updated {
    color: #777;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.legal-section {
    margin-bottom: 55px;
}

.legal-section h2 {
    margin: 0 0 20px;
    font-size: 24px;
    line-height: 1.3;
    color: var(--text);
}

.legal-section h3 {
    margin: 35px 0 15px;
    font-size: 19px;
    line-height: 1.4;
    color: #222;
}

.legal-section h4 {
    margin: 25px 0 12px;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.legal-content p {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.8;
    color: #53627a;
}

.legal-content ul {
    margin: 15px 0 25px;
    padding-left: 25px;
}

.legal-content li {
    margin-bottom: 10px;
    padding-left: 5px;
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

.legal-content strong {
    color: #222;
}

.legal-contact {
    margin-top: 25px;
    padding: 25px 30px;
    border-left: 3px solid var(--purple);
    background: var(--purple-light);
}

.legal-contact p {
    margin-bottom: 8px;
}

.legal-footer {
    margin-top: 80px;
    padding-top: 35px;
    border-top: 1px solid #d8d5ce;
}

.legal-footer p {
    margin-bottom: 8px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .legal-page {
        padding-top: 110px;
        padding-bottom: 70px;
    }

    .legal-header {
        margin-bottom: 45px;
    }

    .legal-section {
        margin-bottom: 40px;
    }

    .legal-section h2 {
        font-size: 18px;
    }

    .legal-section h3 {
        font-size: 18px;
    }

    .legal-content p,
    .legal-content li {
        font-size: 14px;
        line-height: 1.7;
    }

    .legal-contact {
        padding: 20px;
    }

    .legal-footer {
        margin-top: 50px;
    }

}

