/* ============================================
   Wordweave Website Styles
   ============================================ */

/* ============================================
   Font Face Declaration
   ============================================ */
@font-face {
    font-family: "Bitshow";
    src:
        local("Bitshow"),
        url("../res/bitshow.ttf") format("truetype");
}

/* ============================================
   CSS Variables (Color Palette)
   ============================================ */
:root {
    --color-primary-dark: #004d40;
    --color-primary: #00796b;
	--color-primary-transparent: #92c8c2;
    --color-primary-light: #068f82;
    --color-bg-light: #b2dfdb;
    --color-bg-lighter: #e0f2f1;
    --color-text-dark: #333;
    --color-white: white;
}

/* ============================================
   Base Styles
   ============================================ */
* {
    box-sizing: border-box;
}

body {
    font-family: Bitshow, Arial, sans-serif;
    font-size: clamp(0.75rem, 2.5vw, 1rem);
    letter-spacing: 1.2px;
    margin: 0;
    padding: 0;
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h2, h3 {
    color: var(--color-primary-dark);
}

p {
    color: var(--color-primary-light);
}

/* ============================================
   Header & Navigation
   ============================================ */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(to bottom, var(--color-primary-dark), var(--color-primary));
    color: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 999;
}

header .logo {
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
}

header .logo a {
    text-decoration: none;
    color: inherit;
}

nav {
    text-align: right;
    line-height: 1.75em;
}

nav a {
    margin: 0 10px;
    color: var(--color-white);
    text-decoration: none;
    font-weight: bold;
}

nav a.active {
    text-decoration: underline;
    text-underline-offset: 0.25rem;
    color: var(--color-bg-light);
}

/* ============================================
   Main Content
   ============================================ */
main {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

section {
    margin: 40px auto;
    max-width: 90vw;
    padding: 0 20px;
}

.section-title {
    font-size: 2em;
    margin-bottom: 10px;
    color: var(--color-primary-dark);
}

.section-text {
    flex: 1;
    padding-right: 20px;
}

.section-text p {
    height: 7.5em;
    text-align: justify;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2em;
    color: var(--color-primary-dark);
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   Carousel
   ============================================ */
.carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 900px;
    position: relative;
}

.carousel-slide {
    display: none;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.carousel-slide.active {
    display: flex;
}

.carousel img {
    max-width: 40%;
    height: auto;
    object-fit: contain;
    max-height: 25em;
}

.carousel-dots {
    text-align: center;
    margin-top: 2em;
}

.carousel-dots span {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin: 5px;
    background-color: var(--color-bg-lighter);
    border-radius: 50%;
    cursor: pointer;
}

.carousel-dots span.active {
    background-color: var(--color-primary);
}

/* ============================================
   Call to Action
   ============================================ */
.call-to-action {
    text-align: center;
    max-width: calc(100% - 120px);
    margin: 60px auto;
    padding: 20px;
    background-color: var(--color-bg-lighter);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 77, 64, 0.15);
}

.call-to-action h2 {
    margin-bottom: 20px;
    font-size: 2em;
	display: flex;
    justify-content: center;
}

.call-to-action a {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    font-size: 1.2em;
    border-radius: 5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.call-to-action a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 77, 64, 0.3);
}

/* ============================================
   Feature Grid
   ============================================ */
.feature-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
}

.feature-card {
    background-color: var(--color-bg-lighter);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 77, 64, 0.1);
    max-width: 20em;
}

.feature-card h3 {
    margin-bottom: 10px;
}

/* ============================================
   About Section
   ============================================ */
.about {
    background-color: var(--color-bg-lighter);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 77, 64, 0.1);
}

.about h2 {
    margin-bottom: 20px;
}

.features-section {
    width: 100%;
    margin: 0;
}

.features-section h2 {
    text-align: center;
}

/* ============================================
   Team Section
   ============================================ */
.team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.team-member {
    background-color: var(--color-bg-light);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.team-member h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.team-member p {
    margin: 0;
}

.team-member p:last-child:has(a) {
    margin-top: auto;
}

.team-member a {
    color: var(--color-primary-dark);
    text-decoration: none;
    font-weight: bold;
}

/* ============================================
   Footer
   ============================================ */
footer {
    text-align: center;
    padding: 20px;
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    margin-top: auto;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .carousel {
        max-width: 90%;
    }

    .carousel-slide {
        flex-direction: column;
    }

    .section-text,
    .carousel img {
        max-width: 100%;
        padding: 0;
        margin: 10px 0;
    }
}

/* ============================================
   Roadmap Timeline
   ============================================ */

.roadmap {
    background-color: var(--color-bg-lighter);
    border-radius: 12px;
    padding: 40px 30px;
    margin: 60px auto;
    max-width: 700px;
    box-shadow: 0 10px 25px rgba(0, 77, 64, 0.12);
    text-align: center;
}

.timeline {
    position: relative;
    margin-top: 40px;
    padding-left: 20px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: calc(100% - 70px);
    background: var(--color-primary-transparent);
    border-radius: 2px 2px 0 0;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--color-primary-dark);
    border: 3px solid var(--color-bg-lighter);
    border-radius: 50%;
    position: absolute;
	top: -10px;
    left: -20px;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 12px rgba(0, 77, 64, 0.3);
}

.timeline-content {
    background: var(--color-bg-light);
    padding: 18px 22px;
    border-radius: 12px;
    border-top-left-radius: 0;
    box-shadow: 0 8px 18px rgba(0, 77, 64, 0.12);
    max-width: 40em;
}

.timeline-content h3 {
    margin: 0 0 10px;
    color: var(--color-primary-dark);
    text-align: left;
}

.timeline-content p {
    margin: 0;
    color: var(--color-primary-light);
    text-align: left;
}

.timeline-future {
    margin-top: 50px;
}

.timeline-future p {
    color: var(--color-primary-transparent);
}

.timeline-line-fade {
    width: 4px;
    height: 60px;
    margin: 0 auto 10px auto;
	position: absolute;
    left: 0;
    bottom: 0;
    transform: translateX(-50%);
    background: linear-gradient(
        to bottom,
        var(--color-primary-transparent) 0%,
        transparent 100%
    );
}
