@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../assets/fonts/google/space-grotesk-main.woff2') format('woff2'),
         url('../assets/fonts/space-grotesk-400.ttf') format('truetype');
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../assets/fonts/google/space-grotesk-ext.woff2') format('woff2');
    unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20CF;
}

@font-face {
    font-family: 'Montserrat';
    font-style: italic;
    font-weight: 900;
    font-display: swap;
    src: url('../assets/fonts/google/montserrat-900-italic.woff2') format('woff2'),
         url('../assets/fonts/montserrat-900-italic.ttf') format('truetype');
}

@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('../assets/fonts/google/material-symbols-outlined.woff2') format('woff2'),
         url('../assets/fonts/material-symbols-outlined.ttf') format('truetype');
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: #0B1213;
    color: white;
    overflow-x: hidden;
}

@supports (content-visibility: auto) {
    .defer-section {
        content-visibility: auto;
        contain-intrinsic-size: 1px 900px;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.caps-word {
    font-family: 'Montserrat', 'Arial Black', 'Helvetica Neue', sans-serif;
    font-weight: 900;
    font-style: italic;
    font-synthesis: none;
}

.caps-brand-link {
    position: relative;
    display: inline-block;
    min-width: 4.4ch;
    white-space: nowrap;
    transition: transform 0.25s ease, text-shadow 0.25s ease, letter-spacing 0.25s ease;
}

.caps-brand-link .caps-brand-a {
    color: inherit;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.caps-brand-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 2px;
    border-radius: 9999px;
    background: linear-gradient(90deg, rgba(130, 221, 231, 0), rgba(130, 221, 231, 0.9), rgba(130, 221, 231, 0));
    transform: scaleX(0.25);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.caps-brand-link:hover {
    transform: translateY(-1px) scale(1.02);
    letter-spacing: 0.01em;
    text-shadow: 0 0 12px rgba(130, 221, 231, 0.25);
}

.caps-brand-link:hover .caps-brand-a {
    color: #82dde7;
    text-shadow: 0 0 12px rgba(130, 221, 231, 0.75);
}

.caps-brand-link:hover::after {
    transform: scaleX(1);
    opacity: 1;
}

a {
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
    .container { padding: 0 2rem; }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0B1213;
}

::-webkit-scrollbar-thumb {
    background: rgba(144, 244, 249, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(144, 244, 249, 0.5);
}

/* Selection */
::selection {
    background: rgba(144, 244, 249, 0.3);
    color: white;
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid #90f4f9;
    outline-offset: 2px;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Button base styles */
button {
    cursor: pointer;
    font-family: inherit;
}

/* Form elements */
input, textarea, select {
    font-family: inherit;
}

/* Utility classes */
.text-gradient {
    background: linear-gradient(135deg, #90f4f9 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.social-svg-icon {
    display: block;
    width: 1.1rem;
    height: 1.1rem;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.social-icon-link:hover .social-svg-icon {
    filter: none;
    opacity: 1;
    transform: scale(1.04);
}

.footer-social-link .social-svg-icon {
    opacity: 0.7;
}

.footer-social-link:hover .social-svg-icon {
    opacity: 1;
    transform: translateY(-1px);
}

.team-profile-card {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.team-profile-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 120% at 12% 8%, rgba(130, 221, 231, 0.2) 0%, rgba(130, 221, 231, 0.08) 30%, rgba(0, 0, 0, 0) 75%);
    pointer-events: none;
}

.team-profile-card::after {
    content: '';
    position: absolute;
    inset: auto -20% -40% auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(130, 221, 231, 0.2) 0%, rgba(130, 221, 231, 0) 70%);
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

.team-profile-card.glass-card:hover,
.team-profile-card.glass-card:focus-within {
    transform: translateY(-8px);
    border-color: rgba(130, 221, 231, 0.45);
    box-shadow: 0 14px 40px rgba(9, 17, 18, 0.45), 0 0 25px rgba(130, 221, 231, 0.2);
}

.team-profile-card:hover::after,
.team-profile-card:focus-within::after {
    opacity: 1;
    transform: scale(1);
}

.team-profile-content {
    position: relative;
    z-index: 1;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.team-profile-order {
    font-size: 2.25rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.28);
    margin-bottom: 0.9rem;
}

.team-profile-name {
    font-size: 1.85rem;
    line-height: 1.15;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.96);
}

.team-profile-role {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(145, 244, 249, 0.88);
    margin-top: 0.45rem;
}

.team-profile-links {
    display: flex;
    gap: 0.65rem;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(14px);
    overflow: visible;
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.team-profile-card:hover .team-profile-links,
.team-profile-card:focus-within .team-profile-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.team-profile-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.team-profile-link .social-svg-icon {
    width: 1rem;
    height: 1rem;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.team-profile-link:hover {
    transform: translateY(-2px);
    border-color: rgba(130, 221, 231, 0.55);
    background: rgba(130, 221, 231, 0.2);
}

@media (hover: none) {
    .team-profile-links {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

/* Prevent icon-font ligature text causing layout shift (CLS) before Material Symbols loads */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: 400;
    font-style: normal;
    font-size: 1em;
    text-transform: none;
    letter-spacing: normal;
    direction: ltr;
    font-feature-settings: 'liga';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    white-space: nowrap;
    line-height: 1;
    flex: 0 0 auto;
    vertical-align: middle;
}
