@import "assets/blue.css";

:root {
    color-scheme: light dark;
    scroll-behavior: smooth;
    
    /* --- CORNERS --- */

    --corner-radius-full: 50px;
    --corner-radius-extra-large: 28px;
    --corner-radius-large: 16px;
    --corner-radius-medium: 12px;
    --corner-radius-small: 8px;
    --corner-radius-extra-small: 4px;
    --corner-radius-none: 0px;

    /* --- ANIMATIONS --- */

    --animation-basic-slow: all .2s ease-in-out;
    --animation-basic-medium: all .15s ease-in-out;
    --animation-basic-fast: all .1s ease-in-out;

    --animation-expressive-fast-spatial: cubic-bezier(0.42, 1.67, 0.21, 0.90); /* 350ms */
    --animation-expressive-default-spatial: cubic-bezier(0.38, 1.21, 0.22, 1.00); /* 500ms */
    --animation-expressive-slow-spatial: cubic-bezier(0.39, 1.29, 0.35, 0.98); /* 650ms */

    --animation-expressive-fast-effects: cubic-bezier(0.31, 0.94, 0.34, 1.00); /* 150ms */
    --animation-expressive-default-effects: cubic-bezier(0.34, 0.80, 0.34, 1.00); /* 200ms */
    --animation-expressive-slow-effects: cubic-bezier(0.34, 0.88, 0.34, 1.00); /* 300ms */

    --animation-standart-fast-spatial: cubic-bezier(0.27, 1.06, 0.18, 1.00); /* 350ms */
    --animation-standart-default-spatial: cubic-bezier(0.27, 1.06, 0.18, 1.00); /* 500ms */
    --animation-standart-slow-spatial: cubic-bezier(0.27, 1.06, 0.18, 1.00); /* 750ms */

    --animation-standart-fast-effects: cubic-bezier(0.31, 0.94, 0.34, 1.00); /* 150ms */
    --animation-standart-default-effects: cubic-bezier(0.34, 0.80, 0.34, 1.00); /* 200ms */
    --animation-standart-slow-effects: cubic-bezier(0.34, 0.88, 0.34, 1.00); /* 300ms */

    --animation-easing-emphasized: var(--animation-easing-standart);
    --animation-easing-emphasized-decelerate: cubic-bezier(0.05, 0.7, 0.1, 1.0);
    --animation-easing-emphasized-accelerate: cubic-bezier(0.3, 0.0, 0.8, 0.15);

    --animation-easing-standart: cubic-bezier(0.2, 0.0, 0, 1.0);
    --animation-easing-standart-decelerate: cubic-bezier(0, 0, 0, 1);
    --animation-easing-standart-accelerate: cubic-bezier(0.3, 0, 1, 1);

    --animation-easing-linear: linear;

    --animation-duration-short1: 50ms;
    --animation-duration-short2: 100ms;
    --animation-duration-short3: 150ms;
    --animation-duration-short4: 200ms;

    --animation-duration-medium1: 250ms;
    --animation-duration-medium2: 300ms;
    --animation-duration-medium3: 350ms;
    --animation-duration-medium4: 400ms;

    --animation-duration-long1: 450ms;
    --animation-duration-long2: 500ms;
    --animation-duration-long3: 550ms;
    --animation-duration-long4: 600ms;

    --animation-duration-extra-long1: 700ms;
    --animation-duration-extra-long2: 800ms;
    --animation-duration-extra-long3: 900ms;
    --animation-duration-extra-long4: 1000ms;

    /* --- FONTS --- */

    --font-display-large-size: 57px;
    --font-display-large-weight: 400;

    --font-display-medium-size: 52px;
    --font-display-medium-weight: 400;

    --font-display-small-size: 44px;
    --font-display-small-weight: 400;


    --font-headline-large-size: 32px;
    --font-headline-large-weight: 400;

    --font-headline-medium-size: 28px;
    --font-headline-medium-weight: 400;

    --font-headline-small-size: 24px;
    --font-headline-small-weight: 400;


    --font-title-large-size: 22px;
    --font-title-large-weight: 400;

    --font-title-medium-size: 16px;
    --font-title-medium-weight: 500;

    --font-title-small-size: 14px;
    --font-title-small-weight: 500;


    --font-body-large-size: 16px;
    --font-body-large-weight: 400;

    --font-body-medium-size: 14px;
    --font-body-medium-weight: 400;

    --font-body-small-size: 12px;
    --font-body-small-weight: 400;


    --font-label-large-size: 14px;
    --font-label-large-weight: 500;

    --font-label-medium-size: 12px;
    --font-label-medium-weight: 500;

    --font-label-small-size: 11px;
    --font-label-small-weight: 400;

    /* --- ELEVATED --- */

    --md-sys-elevation-1: 0 1px 3px 1px rgba(0,0,0,0.15), 0 1px 2px 0 rgba(0,0,0,0.3);
    --md-sys-elevation-2: 0 2px 6px 2px rgba(0,0,0,0.15), 0 1px 2px 0 rgba(0,0,0,0.3);
    --md-sys-elevation-3: 0 4px 8px 3px rgba(0,0,0,0.15), 0 1px 3px 0 rgba(0,0,0,0.3);
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}
::-webkit-scrollbar-track {
    background: var(--md-sys-color-surface);
}
::-webkit-scrollbar-thumb {
    background: var(--md-sys-color-outline-variant);
    border-radius: var(--corner-radius-full);
    border: 3px solid var(--md-sys-color-surface);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--md-sys-color-outline);
}

/* --- UI COMPONENTS --- */

* {
    transition: all 350ms var(--animation-expressive-default-effects);
}

body {
    background-color: var(--md-sys-color-background);
    color: var(--md-sys-color-on-background);
    font-family: system-ui, -apple-system, sans-serif;
    margin: 0;
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1000;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-container {
    background: var(--md-sys-color-surface-container);
    padding: 24px;
    border-radius: var(--corner-radius-extra-large);
    width: 320px;
    box-shadow: var(--md-sys-elevation-3);
    color: var(--md-sys-color-on-surface);
}
.modal-title {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: var(--font-headline-small-size);
}
.modal-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.copy-input {
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
    background: var(--md-sys-color-surface-container-highest);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--corner-radius-medium);
    color: var(--md-sys-color-on-surface);
    font-family: inherit;
    font-size: var(--font-body-large-size);
    outline: none;
}
.copy-input:focus {
    border-color: var(--md-sys-color-primary);
}

.dropdown {
    position: relative;
    display: inline-flex;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--md-sys-color-surface-container);
    border-radius: var(--corner-radius-medium);
    box-shadow: var(--md-sys-elevation-3);
    min-width: 150px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--animation-basic-medium);
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--md-sys-color-on-surface);
    text-align: left;
    cursor: pointer;
    font-size: var(--font-body-large-size);
    transition: background 0.2s;
}
.dropdown-item:hover {
    background: var(--md-sys-color-surface-container-highest);
}
.dropdown-item.active {
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

/* --- FAB --- */

.floating-theme-toggle {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1000;
}
.floating-theme-toggle .dropdown-menu {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 8px;
    transform: translateY(10px);
}
.floating-theme-toggle .dropdown.active .dropdown-menu {
    transform: translateY(0);
}

.md-fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--animation-basic-medium);
    box-shadow: var(--md-sys-elevation-3);
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
}
.md-fab:hover {
    box-shadow: var(--md-sys-elevation-2);
    opacity: 0.9;
}
.md-fab:active {
    opacity: 0.8;
}

/* --- APP BAR --- */
.app-bar {
    background: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface);
    padding: 4px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 0 0 transparent; 
}
.app-bar.scrolled {
    background: var(--md-sys-color-surface-container-low);
    box-shadow: var(--md-sys-elevation-2);
}

.app-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 64px; /* Standard MD3 top app bar height */
}
.logo {
    font-size: var(--font-title-large-size);
    font-weight: var(--font-title-large-weight);
    color: var(--md-sys-color-on-surface);
}
nav {
    display: flex;
    gap: 8px; /* Slightly tighter gap in MD3 */
    align-items: center;
}
.button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--md-sys-color-on-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: var(--corner-radius-full);
    transition: background 0.2s;
}
.button:hover {
    background: var(--md-sys-color-surface-container-highest);
}

/* --- TYPOGRAPHY --- */
.display-large {
    font-size: var(--font-display-large-size);
    font-weight: var(--font-display-large-weight);
    line-height: 1.12;
    margin: 0;
}
.headline-medium {
    font-size: var(--font-headline-medium-size);
    font-weight: var(--font-headline-medium-weight);
    line-height: 1.28;
    margin: 0;
}
.title-large {
    font-size: var(--font-title-large-size);
    font-weight: var(--font-title-large-weight);
    line-height: 1.27;
    margin: 0;
}
.title-medium {
    font-size: var(--font-title-medium-size);
    font-weight: var(--font-title-medium-weight);
    line-height: 1.5;
    margin: 0;
}
.body-large {
    font-size: var(--font-body-large-size);
    font-weight: var(--font-body-large-weight);
    line-height: 1.5;
    margin: 0;
}
.body-medium {
    font-size: var(--font-body-medium-size);
    font-weight: var(--font-body-medium-weight);
    line-height: 1.43;
    margin: 0;
}

/* --- LAYOUT --- */
.container.main-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px;
}

.section {
    padding: 64px 0;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center children horizontally */
    gap: 24px;
}

.hero-section {
    padding: 64px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Center children horizontally */
    gap: 24px;
}

.section-title {
    color: var(--md-sys-color-on-surface);
    text-align: center;
    margin: 0;
}

.section-desc {
    color: var(--md-sys-color-on-surface-variant);
    max-width: 600px;
}

/* --- MD3 CARDS --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    width: 100%; /* Ensure it spans the container */
}

.md-card {
    border-radius: var(--corner-radius-large);
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--animation-basic-medium);
}

.md-card .card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.md-card .card-content-wrapper {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
}

.md-card .card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.md-card .card-content .body-medium {
    color: var(--md-sys-color-on-surface-variant);
}

.md-card .card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Card Types */
.md-card.elevated {
    background-color: var(--md-sys-color-surface-container-low);
    box-shadow: var(--md-sys-elevation-1);
}
.md-card.elevated:hover {
    box-shadow: var(--md-sys-elevation-2);
}

.md-card.featured-card {
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    max-width: 900px;
    width: 100%;
}
.md-card.featured-card .card-image {
    height: 360px;
}
.md-card.featured-card .featured-content-wrapper {
    padding: 32px;
    display: flex;
    flex-direction: column;
}
.md-card.featured-card .display-medium {
    margin: 0 0 16px 0;
    color: var(--md-sys-color-on-primary-container);
}
.md-card.featured-card .body-large {
    color: var(--md-sys-color-on-primary-container);
    opacity: 0.9;
    max-width: 600px;
}
.md-card.featured-card .card-actions {
    margin-top: 32px;
    justify-content: flex-start;
}

.md-card.filled-card {
    background-color: var(--md-sys-color-surface-container-highest);
}
.md-card.filled-card:hover {
    background-color: var(--md-sys-color-surface-container-highest);
    transform: translateY(-2px);
}

.md-card.outlined {
    background-color: var(--md-sys-color-surface);
    border: 1px solid var(--md-sys-color-outline-variant);
}
.md-card.outlined:hover {
    border-color: var(--md-sys-color-outline);
}

/* --- BUTTONS --- */

.md-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--corner-radius-full);
    font-size: var(--font-label-large-size);
    font-weight: var(--font-label-large-weight);
    font-family: system-ui, -apple-system, sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: var(--animation-basic-fast);
    border: none;
}

.md-button .button-icon {
    width: 18px;
    height: 18px;
}

.md-button.filled {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
}
.md-button.filled:hover {
    box-shadow: var(--md-sys-elevation-1);
    background-color: var(--md-sys-color-primary);
    opacity: 0.9;
}

.md-button.text {
    background-color: transparent;
    color: var(--md-sys-color-primary);
    padding: 10px 12px;
}
.md-button.text:hover {
    background-color: var(--md-sys-color-primary-container);
    opacity: 0.8;
}

.md-button.tonal {
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}
.md-button.tonal:hover {
    background-color: var(--md-sys-color-secondary-container);
    opacity: 0.9;
}

.md-button.outlined {
    background-color: transparent;
    border: 1px solid var(--md-sys-color-outline);
    color: var(--md-sys-color-primary);
}
.md-button.outlined:hover {
    border-color: var(--md-sys-color-primary);
    background-color: var(--md-sys-color-primary-container);
    opacity: 0.9;
}

.action-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center; /* Center buttons inside the container */
    width: 100%;
}


.contact-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 600px;
    width: 100%;
}

.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
}

@media (max-width: 600px) {
    .contact-row {
        grid-template-columns: 1fr;
    }
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background-color: var(--md-sys-color-surface-container);
    border-radius: var(--corner-radius-medium);
    text-decoration: none;
    color: var(--md-sys-color-on-surface);
    transition: var(--animation-basic-medium);
}
.contact-item:hover {
    background-color: var(--md-sys-color-surface-container-high);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    border-radius: var(--corner-radius-full);
}

.contact-text {
    display: flex;
    flex-direction: column;
}
.contact-text .body-medium {
    color: var(--md-sys-color-on-surface-variant);
}

/* --- FOOTER --- */

.footer {
    background-color: var(--md-sys-color-surface-container);
    color: var(--md-sys-color-on-surface-variant);
    padding: 16px 0;
    margin-top: 64px;
    border-top-left-radius: var(--corner-radius-extra-large);
    border-top-right-radius: var(--corner-radius-extra-large);
}
.footer p {
    margin: 0;
    font-size: var(--font-body-small-size);
    font-weight: var(--font-body-small-weight);
}