@font-face {
    font-family: 'DM Sans Variable';
    src: url('/fonts/dm-sans-latin-300-normal.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Sans Variable';
    src: url('/fonts/dm-sans-latin-400-normal.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Sans Variable';
    src: url('/fonts/dm-sans-latin-500-normal.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Sans Variable';
    src: url('/fonts/dm-sans-latin-600-normal.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Sans Variable';
    src: url('/fonts/dm-sans-latin-700-normal.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Sans Variable';
    src: url('/fonts/dm-sans-latin-800-normal.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root{
    --font-family: 'DM Sans Variable', sans-serif;

    --darkblue: #182134;
    --blue: #2156DF;
    --light: rgba(249, 249, 249, 0.1);
    --green: #09E452;
    --gray: #F5F5F7; 
    --black: #606C80;
}

html, body {
    height: 100%;
    background-color: var(--light);
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

.darkblue-btn{
    background-color: var(--darkblue);
    color: white;
    border: none;
    padding: 0.75rem 1.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4rem;
    font-size: clamp(0.9rem, 1vw, 1rem);
    box-shadow:
        0 1px 2px 0 rgba(0, 0, 0, 0.35),
        0 1px 0 1.5px #2D3F66;
    text-decoration: none;
    transition: box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.darkblue-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(to top, rgba(18, 18, 18, 0.5), transparent), var(--blue);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.darkblue-btn:hover::before {
    opacity: 1;
}

.darkblue-btn:hover {
    box-shadow:
        0 1px 2px 0 rgba(0, 0, 0, 0.35),
        0 1px 0 1.5px #182134;
}

.glass-btn{
    background: rgba(249, 249, 249, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    border: 1px solid var(--light);
    padding: 0.75rem 1.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    width: fit-content;
    justify-content: center;
    border-radius: 4rem;
    font-size: clamp(0.9rem, 1vw, 1rem);
    text-decoration: none;
    transition: background 0.3s ease;
}

.glass-btn:hover {
    background: rgba(249, 249, 249, 0.18);
}

.custom-hr {
    border: none;
    height: 1px;
    background-color: #27334B;
    margin: 2rem 0;
    opacity: 1;
}

.blue-btn{
    background-color: var(--blue);
    color: white;
    border: none;
    padding: 0.75rem 1.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4rem;
    font-size: clamp(0.9rem, 1vw, 1rem);
    box-shadow:
        0 1px 2px 0 rgba(0, 0, 0, 0.35),
        0 1px 0 1.5px #2156DF;
    text-decoration: none;
    transition: box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.blue-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.5), transparent), var(--blue);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.blue-btn:hover::before {
    opacity: 1;
}

.blue-btn:hover {
    box-shadow:
        0 1px 2px 0 rgba(0, 0, 0, 0.35),
        0 1px 0 1.5px #2156DF;
}

/* ============= Form Controls ============= */

.form-control.contact-input {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control.contact-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-control.contact-input:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(33, 86, 223, 0.25);
    color: #fff;
    outline: none;
}

/* ============= Toast ============= */

.app-toast {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.app-toast--visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.app-toast--success {
    background-color: var(--darkblue);
    border: 1px solid var(--green);
}

.app-toast--success .toast-icon {
    color: var(--green);
}

.app-toast--error {
    background-color: var(--darkblue);
    border: 1px solid #E54D4D;
}

.app-toast--error .toast-icon {
    color: #E54D4D;
}

.toast-icon {
    display: flex;
    align-items: center;
}

.toast-msg {
    line-height: 1.4;
}