@font-face {
    font-family: 'Artific';
    src: url('Artific-Light.woff2') format('woff2'),
         url('Artific-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Artific';
    src: url('Artific-SemiBold.woff2') format('woff2'),
         url('Artific-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Artific', Arial, sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.5;
    scroll-behavior: smooth;
}

#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    position: relative;
    z-index: 1;
}

section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    min-height: 90vh;
}

section:first-child {
    height: 80vh;
    position: relative;
    padding-bottom: 0px;
}

section:nth-child(2) {
    padding-top: 0px;
}

.logo {
    position: sticky;
    top: -16%;
    transition: opacity 2.4s ease;
}

.logo:hover {
    opacity: 0.005;
}

/* Card styles */
.card {
    max-width: 800px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 34px 42px;
    background: rgba(85, 111, 247, 0.4);
    backdrop-filter: blur(50px);
    border: 1px solid rgba(57, 82, 210, 0.4);
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 68, 0.4);
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 42px 80px rgba(0, 0, 0, 0.5);
}

/* Card-specific styles */

.last-card ul {
    display: block;
}

.last-card li {
    display: list-item;
    flex: none;
    min-width: 100%;
    padding-left: 0;
    white-space: normal;
    word-wrap: break-word;
    margin-bottom: 1rem;
}

/* Typography */
h2, h3 {
    font-family: 'Artific', Arial, sans-serif;
    font-weight: 600;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

p, li, strong {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

p {
    max-width: 800px;
    margin-bottom: 1.5rem;
}

p + p {
    margin-top: 1rem;
}

p + ul {
    margin-top: -1.5rem;
}

/* Lists */
ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

li {
    margin-bottom: 0;
    flex: 1 1 50%;
    min-width: 50%;
    padding-left: 0.5rem;
    text-indent: -0.5rem;
}

/* Special list styles */
.tools-list {
    margin-top: 1rem;
    display: block;
}

.tools-list li {
    display: block;
    flex: none;
    min-width: 100%;
    padding-left: 0;
    text-indent: 0;
}

/* Team/Middle section styles */
.middle-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.middle-member {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.middle-member.toolbox {
    display: block;
}

.middle-member p {
    margin-bottom: 0;
}

.avatar {
    font-family: sans-serif;
    font-size: 2.5rem;
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.middle-info {
    flex: 1;
}

/* Links and special elements */
.link {
    display: inline-block;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.link:hover {
    color: white;
    border-bottom-color: white;
}

.moreless {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    padding: 0;
    margin-top: 0.5rem;
    margin-right: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 0.9rem;
}

.moreless:hover {
    color: white;
    border-bottom-color: white;
}

code {
    font-family: 'Courier New', Consolas, Monaco, monospace;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.9rem;
}

.bullet::after {
    content: "\00a0\00a0\00a0";
}

.tool-category {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.years {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.years:before {
    content: "(";
}

.years:after {
    content: " y)";
}

/* Inquiry Form */
.last-card h3 {
    margin-top: 3rem;
}

form {
    margin-top: 1rem;
    max-width: 600px;
}

fieldset {
    border: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="rgba(255,255,255,0.6)" d="M6 8L0 0h12z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;
}

option {
    background: rgba(26, 26, 46, 0.95);
    color: white;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

button[type="submit"] {
    background: #9A7FF2;
    border: 1px solid #9A7FF2;
    color: white;
    padding: 14px 40px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 12px rgba(154, 127, 242, 0.4);
}

button[type="submit"]:hover {
    background: #8C6EEF;
    border-color: #8C6EEF;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(154, 127, 242, 0.6);
}

/* Mobile responsive */
@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }
    
    .card {
        flex-direction: column;
        gap: 20px;
        margin: 0 10px;
        padding: 40px 20px;
    }
    
    .card::before {
        display: none;
    }
    
    .card-content {
        margin-right: 0;
        margin-left: 0;
    }
    
    li {
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    .middle-member {
        gap: 1rem;
    }
    
    .avatar {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}