/* Custom Font Setup (Self-hosted Inter) */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-semibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Design Variables - Brighter and more vibrant theme */
:root {
    --bg-dark: #120726; /* Slightly brighter, richer purple-dark background */
    --text-white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.72);
    --pivx-purple: #8b5cf6; /* Vibrant violet-purple */
    --pivx-purple-glow: rgba(139, 92, 246, 0.5);
    --pivx-mint: #00f0c2; /* Saturated, extremely bright mint */
    --pivx-mint-glow: rgba(0, 240, 194, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.06); /* Brighter glass panel bg */
    --glass-border: rgba(255, 255, 255, 0.12); /* Brighter glass panel border */
    --glass-shadow: 0 12px 32px 0 rgba(0, 0, 0, 0.4);
    --transition-speed: 0.3s;
}

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

html {
    background-color: var(--bg-dark);
    scroll-behavior: smooth;
    min-height: 100%;
    width: 100%;
    overflow-x: clip;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-white);
    background-color: var(--bg-dark);
    /* Vibrant, brighter moving gradient background for premium look */
    background: linear-gradient(-45deg, #120726, #240c49, #42167c, #0e051c);
    background-size: 400% 400%;
    animation: gradientShift 16s ease infinite;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: clip;
    position: relative;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--pivx-purple-glow);
}

/* Main Container Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Section styling helper */
section {
    padding: 4.5rem 0;
    position: relative;
}

/* Glassmorphism Styles */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    border-radius: 16px;
}

/* Floating Navbar Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(18, 7, 38, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background var(--transition-speed), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

header.hide-header {
    transform: translateY(-100%);
}

header.scrolled {
    background: rgba(18, 7, 38, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

/* Logo Brand */
.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-white);
    gap: 0.75rem;
}

.brand-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-speed) ease;
}

.brand:hover .brand-logo {
    transform: rotate(8deg) scale(1.05);
}

.brand-name {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #ffffff 40%, #d8b4fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Desktop Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-speed) ease, text-shadow var(--transition-speed) ease;
    padding: 0.5rem 0;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-white);
    text-shadow: 0 0 10px var(--pivx-purple-glow);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--pivx-purple), var(--pivx-mint));
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::before, .nav-link.active::before {
    width: 100%;
}

/* Dropdown Menu Container (Desktop) */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.dropdown-toggle::after {
    content: '▾';
    font-size: 0.8rem;
    transition: transform 0.25s ease;
    display: inline-block;
    position: static;
    width: auto;
    height: auto;
    background: none;
}

.dropdown:hover .dropdown-toggle::after {
    transform: translateY(1px);
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(20, 10, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 36px rgba(0,0,0,0.6);
    border-radius: 12px;
    padding: 0.65rem 0;
    min-width: 160px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease, visibility var(--transition-speed);
    z-index: 200;
}

.dropdown:hover .dropdown-content,
.dropdown-content:hover,
.dropdown:focus-within .dropdown-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.6rem 1.25rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-align: left;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.dropdown-item:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.08);
}

/* Mobile Hamburger Trigger */
.menu-trigger {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 110;
    outline: none;
}

.menu-trigger svg {
    display: block;
    width: 28px;
    height: 28px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
}

/* Mobile Left Navigation Drawer */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    z-index: 105;
    background: rgba(18, 7, 38, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    padding: 88px 2rem 2rem 2rem;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav.open {
    left: 0;
}

.mobile-nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 102;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    list-style: none;
}

.mobile-nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 1.15rem;
    font-weight: 500;
    display: block;
    padding: 0.5rem 0;
    transition: color var(--transition-speed), transform var(--transition-speed);
    background: none;
    border: none;
    text-align: left;
    width: 100%;
    font-family: inherit;
    cursor: pointer;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    color: var(--text-white);
    transform: translateX(4px);
}

/* Mobile Dropdown Styling */
.mobile-dropdown-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-dropdown-btn::after {
    content: '▾';
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.mobile-dropdown-btn.open::after {
    transform: rotate(180deg);
}

.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-left: 1.5px solid rgba(255, 255, 255, 0.08);
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.mobile-dropdown-content.open {
    max-height: 120px;
    opacity: 1;
}

.mobile-dropdown-item {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.55);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.35rem 0;
    transition: color 0.2s ease;
}

.mobile-dropdown-item:hover {
    color: var(--text-white);
}

/* Main Content Wrapper */
main {
    flex-grow: 1;
}

/* Hero Section (Chapter 1) */
.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3.5rem;
    padding: 5rem 0 3rem 0;
    min-height: calc(85vh - 72px);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content {
    flex: 1.1;
    text-align: left;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 35%, #d8b4fe 70%, var(--pivx-mint) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 2rem;
}

.hero-illustration {
    flex: 0.9;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 440px;
    animation: floatIllustration 6s ease-in-out infinite;
}

@keyframes floatIllustration {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(1deg); }
}

.hero-svg-mascot {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(139, 92, 246, 0.25));
}

/* Glassmorphic Logo Shield & Official Icon Styles */
.logo-shield-container {
    position: relative;
    width: 320px;
    height: 320px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(20, 10, 42, 0.65) 0%, rgba(10, 5, 22, 0.75) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(139, 92, 246, 0.18);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), inset 0 0 24px rgba(255, 255, 255, 0.03), 0 0 40px rgba(76, 29, 149, 0.35);
}

.logo-shield-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 105%;
    height: 105%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(76, 29, 149, 0.8) 0%, rgba(46, 16, 101, 0.3) 50%, transparent 75%);
    z-index: -1;
    filter: blur(24px);
}

.hero-logo-icon {
    width: 78%;
    height: 78%;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(76, 29, 149, 0.6)) drop-shadow(0 0 12px rgba(139, 92, 246, 0.35));
    animation: gentleRotate 12s ease-in-out infinite;
}

@keyframes gentleRotate {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(4deg); }
}

/* Section Header Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3.5rem;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #ffffff 40%, #d8b4fe 75%, var(--pivx-mint) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title::after {
    content: '';
    display: block;
    width: 64px;
    height: 3.5px;
    background: linear-gradient(90deg, var(--pivx-purple), var(--pivx-mint));
    margin: 0.85rem auto 0 auto;
    border-radius: 4px;
}

/* Cards Grid Layout (Chapter 2) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 2rem;
}

/* Interactive Glass Cards */
.card-item {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.4s ease,
                border-color 0.4s ease,
                box-shadow 0.4s ease;
    cursor: pointer;
}

.card-item:hover, .card-item:focus {
    transform: translateY(-8px) scale(1.01);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 24px 48px rgba(0, 240, 194, 0.12), 0 0 1px 1px rgba(255, 255, 255, 0.2);
}

.card-icon-container {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.card-icon {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: #d8b4fe;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.4s ease, transform 0.4s ease, filter 0.4s ease;
}

.card-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 1.15rem;
    letter-spacing: -0.015em;
    transition: color 0.4s ease, text-shadow 0.4s ease;
}

.card-text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    transition: color 0.4s ease;
}

/* Hover dynamic details */
.card-item:hover .card-icon-container {
    background: rgba(0, 240, 194, 0.16);
    border-color: rgba(0, 240, 194, 0.45);
    box-shadow: 0 0 16px rgba(0, 240, 194, 0.25);
    transform: scale(1.05);
}

.card-item:hover .card-icon {
    stroke: var(--pivx-mint);
    filter: drop-shadow(0 0 4px var(--pivx-mint-glow));
    transform: rotate(3deg);
}

.card-item:hover .card-title {
    color: var(--text-white);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

.card-item:hover .card-text {
    color: rgba(255, 255, 255, 0.95);
}

/* Team Grid Layout (Chapter 3) */
.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.25rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.4s ease,
                border-color 0.4s ease,
                box-shadow 0.4s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15), 0 0 1px 1px rgba(255, 255, 255, 0.2);
}

.avatar-container {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    padding: 3.5px;
    background: linear-gradient(135deg, var(--pivx-purple) 0%, var(--pivx-mint) 100%);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.3);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.team-card:hover .avatar-container {
    transform: scale(1.08) rotate(4deg);
    box-shadow: 0 8px 24px rgba(0, 240, 194, 0.4);
}

.avatar-svg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #190933;
    overflow: hidden;
    display: block;
}

.team-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text-white);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: wrap; /* allow wrapping on narrow layouts */
}

.character-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: #c084fc; /* Softer violet color */
    opacity: 0.85;
}

.team-role {
    font-size: 0.8rem;
    color: var(--pivx-mint);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.85rem;
}

.team-bio {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.team-tg-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.team-tg-link:hover {
    color: var(--text-white);
    background: rgba(0, 240, 194, 0.15);
    border-color: var(--pivx-mint);
    box-shadow: 0 4px 12px rgba(0, 240, 194, 0.15);
}

.team-tg-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
    display: block;
}

/* Background glowing blur bubbles for modern visual layout */
.glow-bubble {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.16; /* Sightly brighter opacity */
    z-index: -1;
    pointer-events: none;
}

.glow-purple {
    background: #a855f7;
    width: 480px;
    height: 480px;
    top: 10%;
    right: -100px;
}

.glow-mint {
    background: #00f0c2;
    width: 420px;
    height: 420px;
    bottom: 15%;
    left: -150px;
}

/* Footer Section - Same as testnet */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(11, 4, 24, 0.95);
    padding: 3.5rem 0;
    margin-top: auto;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
}

.footer-link {
    text-decoration: none;
    color: var(--text-muted);
    transition: color var(--transition-speed);
}

.footer-link:hover {
    color: var(--text-white);
}

.footer-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.45rem;
    margin-top: -2px;
}

.footer-credits {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-credits a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.footer-credits a:hover {
    color: var(--text-white);
}

/* Global Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Global Glass Preloader */
.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 7, 38, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.4s ease, pointer-events 0.4s ease;
    opacity: 1;
    pointer-events: auto;
}

.preloader-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.preloader-spinner {
    width: 54px;
    height: 54px;
    border: 3.5px solid rgba(255, 255, 255, 0.08);
    border-top-color: var(--pivx-mint);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(0, 240, 194, 0.15);
}

.preloader-text {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-white);
    letter-spacing: -0.01em;
    animation: preloaderPulse 1.6s ease-in-out infinite;
}

@keyframes preloaderPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Grid & Responsive Breakpoints */
@media (max-width: 1100px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 540px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Hide on mobile */
    }
    .menu-trigger {
        display: block; /* Show hamburger */
        order: -1;
        margin-right: 0.75rem;
    }
    .nav-wrapper {
        justify-content: flex-start;
        gap: 0.5rem;
    }
    .hero-wrapper {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 2rem;
        padding-bottom: 2rem;
        gap: 2rem;
    }
    .hero-content {
        text-align: center;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.15rem;
        margin: 0 auto 2rem auto;
    }
    .hero-illustration {
        max-width: 300px;
        margin: 0 auto;
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    .section-title {
        font-size: 2.15rem;
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 520px) {
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto;
    }
    .hero-title {
        font-size: 2rem;
    }
    .brand-name {
        font-size: 1.15rem;
    }
}
