/* ==========================================
   BNI DRIVE NEW - Dark F1 Racing Theme
   ========================================== */

/* --- RESET & BASE --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg-primary: #0A0A0F;
    --color-bg-secondary: #12121A;
    --color-bg-card: #1A1A28;
    --color-bg-elevated: #222233;
    --color-red: #C8102E;
    --color-red-dark: #A00D24;
    --color-red-light: #E8334D;
    --color-red-glow: rgba(200, 16, 46, 0.3);
    --color-text-primary: #F0F0F5;
    --color-text-secondary: #9999AA;
    --color-text-muted: #666677;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-white: #FFFFFF;

    --font-heading: 'Catamaran', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container-max: 1200px;
    --section-padding: 100px 0;
    --section-padding-mobile: 60px 0;
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-primary);
    background: var(--color-bg-primary);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- CONTAINER --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- TYPOGRAPHY --- */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-text-primary);
    margin-bottom: 16px;
}

.section-title--center {
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.text-accent {
    color: var(--color-red);
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 1;
}

.btn--primary {
    background: linear-gradient(135deg, #C8102E 0%, #ff1744 50%, #C8102E 100%);
    background-size: 200% 200%;
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.4), 0 0 30px rgba(200, 16, 46, 0.2), inset 0 1px 0 rgba(255,255,255,0.2);
    animation: gradient-shift 3s ease infinite;
}

.btn--primary::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50px;
    background: linear-gradient(135deg, #ff1744, #ff6b6b, #C8102E, #ff1744);
    background-size: 300% 300%;
    animation: gradient-shift 3s ease infinite;
    z-index: -2;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn--primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg);
    transition: none;
}

.btn--primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 30px rgba(200, 16, 46, 0.6), 0 0 60px rgba(200, 16, 46, 0.3), 0 0 100px rgba(200, 16, 46, 0.15);
}

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

.btn--primary:hover::after {
    animation: shine-sweep 0.7s ease forwards;
}

.btn--primary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 10px rgba(200, 16, 46, 0.5);
}

.btn--outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
}

.btn--outline::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50px;
    background: conic-gradient(from var(--border-angle, 0deg), transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: rotate-border 3s linear infinite;
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-white);
    color: var(--color-white);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.15), 0 0 50px rgba(255, 255, 255, 0.05);
    transform: translateY(-4px);
}

.btn--outline:hover::after {
    opacity: 1;
}

.btn--lg {
    padding: 18px 42px;
    font-size: 1rem;
}

.btn--full {
    width: 100%;
}

.btn__arrow {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s ease;
    font-size: 1.2em;
}

.btn:hover .btn__arrow {
    transform: translateX(6px);
    animation: arrow-bounce 1s ease infinite;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(12px);
    padding: 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(200, 16, 46, 0.2);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.navbar__logo {
    display: flex;
    align-items: center;
}

.navbar__logo-img {
    height: 64px;
    width: auto;
    border-radius: 4px;
}

.navbar__menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar__list {
    display: flex;
    gap: 4px;
}

.navbar__link {
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 50px;
    background: var(--color-red);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.navbar__link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: width 0.4s ease, height 0.4s ease;
    transform: translate(-50%, -50%);
}

.navbar__link:hover::after {
    width: 200%;
    height: 200%;
}

.navbar__link:hover {
    color: var(--color-white);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 20px rgba(200, 16, 46, 0.5), 0 0 40px rgba(200, 16, 46, 0.2);
}

.navbar__cta {
    margin-left: 16px;
    padding: 10px 24px;
    font-size: 0.875rem;
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    margin: 6px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span {
    background: var(--color-white);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* --- HERO --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--color-bg-primary);
    overflow: hidden;
    padding-top: 80px;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.88) 0%, rgba(18, 18, 26, 0.75) 50%, rgba(200, 16, 46, 0.12) 100%);
}

/* Static speed lines — no animation */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 80px,
            rgba(200, 16, 46, 0.03) 80px,
            rgba(200, 16, 46, 0.03) 83px
        );
    pointer-events: none;
}

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

.hero__content {
    max-width: 680px;
}

.hero__label {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-red-light);
    margin-bottom: 16px;
    opacity: 0;
    animation: fade-in-down 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: 24px;
    opacity: 0;
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero__subtitle {
    font-size: 1.2rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 40px;
    max-width: 560px;
    opacity: 0;
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.hero__drive {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ff1744, #C8102E, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 25px rgba(200, 16, 46, 0.6));
    position: relative;
    display: inline-block;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    opacity: 0;
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

/* Bolid button */
.btn-bolid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 240px;
    height: 80px;
    margin-left: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-bolid:hover {
    transform: translateX(15px) scale(1.05);
    filter: drop-shadow(0 0 25px rgba(200, 16, 46, 0.6)) drop-shadow(0 0 50px rgba(200, 16, 46, 0.3));
}

.btn-bolid__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.btn-bolid:hover .btn-bolid__img {
    filter: brightness(0.85);
}

.btn-bolid__text {
    position: relative;
    z-index: 1;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--color-white);
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    padding-right: 20px;
    transition: var(--transition);
}

.btn-bolid:hover .btn-bolid__text {
    color: var(--color-white);
}

/* --- STATS --- */
.stats {
    background: linear-gradient(135deg, var(--color-red) 0%, #8B0A1E 60%, var(--color-bg-primary) 100%);
    padding: 48px 0;
    position: relative;
}

/* Checkered flag pattern (very subtle) */
.stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(45deg, rgba(0,0,0,0.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0,0,0,0.05) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(0,0,0,0.05) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(0,0,0,0.05) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
    opacity: 0.3;
    pointer-events: none;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat {
    transition: all 0.4s ease;
}

.stat:hover {
    transform: scale(1.1);
}

.stat__number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: 4px;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5), 0 0 60px rgba(200, 16, 46, 0.6);
}

.stat__label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- ABOUT --- */
.about {
    padding: var(--section-padding);
    background: var(--color-bg-primary);
}

.about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about__text .section-title {
    margin-bottom: 24px;
}

.about__text p {
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about__image img {
    border-radius: 16px;
    border: 1px solid rgba(200, 16, 46, 0.15);
    transition: all 0.5s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.about__image img:hover {
    transform: scale(1.03) rotate(-1deg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(200, 16, 46, 0.15);
    border-color: rgba(200, 16, 46, 0.3);
}

/* --- VALUES --- */
.values {
    padding: var(--section-padding);
    background: var(--color-bg-secondary);
    position: relative;
}

/* Subtle checkered pattern on section title area */
.values::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background-image:
        linear-gradient(45deg, rgba(255,255,255,0.01) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.01) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.01) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.01) 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
}

.values__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    perspective: 800px;
}

.value-card {
    background: var(--color-bg-card);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

/* Animated border glow on hover */
.value-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: conic-gradient(from var(--border-angle, 0deg), #C8102E, #ff6b6b, #C8102E, #ff1744, #C8102E);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: rotate-border 3s linear infinite;
}

.value-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: var(--color-bg-card);
    z-index: -1;
}

.value-card:hover::before {
    opacity: 1;
}

.value-card:hover {
    box-shadow: 0 0 40px rgba(200, 16, 46, 0.3), 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 80px rgba(200, 16, 46, 0.1);
    transform: translateY(-12px);
}

.value-card__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    color: var(--color-red);
    filter: drop-shadow(0 0 10px rgba(200, 16, 46, 0.4));
    transition: all 0.4s ease;
}

.value-card:hover .value-card__icon {
    transform: scale(1.15) rotateY(10deg);
    filter: drop-shadow(0 0 20px rgba(200, 16, 46, 0.7));
}

.value-card__icon svg {
    width: 100%;
    height: 100%;
}

.value-card__title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 12px;
}

.value-card__text {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- MEMBERS --- */
.members {
    padding: var(--section-padding);
    background: var(--color-bg-primary);
}

.members__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    perspective: 800px;
}

.member-card {
    background: var(--color-bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transform-style: preserve-3d;
    position: relative;
}

.member-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: conic-gradient(from var(--border-angle, 0deg), transparent 40%, #C8102E 50%, transparent 60%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: rotate-border 4s linear infinite;
}

.member-card > * {
    position: relative;
    z-index: 1;
}

.member-card:hover {
    box-shadow: 0 0 35px rgba(200, 16, 46, 0.25), 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: translateY(-10px);
}

.member-card:hover::before {
    opacity: 1;
}

.member-card__photo {
    aspect-ratio: 1;
    background: var(--color-bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 3rem;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.member-card__photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(100, 40, 200, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(200, 16, 46, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at center, transparent 35%, rgba(20, 10, 60, 0.25) 65%, rgba(10, 5, 40, 0.6) 100%);
    box-shadow: inset 0 0 60px 25px rgba(20, 10, 60, 0.5);
    opacity: 0;
    transition: opacity 3s cubic-bezier(0.25, 0.1, 0.25, 1);
    z-index: 1;
}

.member-card:hover .member-card__photo::after {
    opacity: 1;
}

.member-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 5s cubic-bezier(0.25, 0.1, 0.25, 1), filter 5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Ken Burns — zoom + pan, different directions per card */
.member-card:hover .member-card__photo img {
    transform: scale(1.15) translate(-3%, -2%);
    filter: brightness(1.1) contrast(1.08) saturate(1.15);
}

.member-card:nth-child(2):hover .member-card__photo img {
    transform: scale(1.15) translate(3%, -2.5%);
}

.member-card:nth-child(3):hover .member-card__photo img {
    transform: scale(1.13) translate(-2.5%, 3%);
}

.member-card:nth-child(4):hover .member-card__photo img {
    transform: scale(1.15) translate(3%, 2%);
}

.member-card:nth-child(5):hover .member-card__photo img {
    transform: scale(1.13) translate(-3%, 2.5%);
}

.member-card:nth-child(6):hover .member-card__photo img {
    transform: scale(1.15) translate(2.5%, -3%);
}

.member-card:nth-child(7):hover .member-card__photo img {
    transform: scale(1.13) translate(-2%, -3%);
}

.member-card:nth-child(8):hover .member-card__photo img {
    transform: scale(1.15) translate(3%, 2.5%);
}

.member-card__info {
    padding: 20px;
}

.member-card__name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}

.member-card__company {
    font-size: 0.9rem;
    color: var(--color-red-light);
    font-weight: 600;
    margin-bottom: 4px;
}

.member-card__role {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

/* Member badge */
.member-card__badge {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-red-light);
    background: rgba(200, 16, 46, 0.12);
    border: 1px solid rgba(200, 16, 46, 0.25);
    border-radius: 20px;
}

/* Power Team titles */
.members__team-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 48px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-red);
    display: inline-block;
    box-shadow: 0 2px 8px rgba(200, 16, 46, 0.2);
}

.members__team-title:first-of-type {
    margin-top: 0;
}

/* --- CTA SECTION --- */
.cta-section {
    padding: var(--section-padding);
    background: var(--color-bg-secondary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle diagonal racing stripes */
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 100px,
            rgba(200, 16, 46, 0.02) 100px,
            rgba(200, 16, 46, 0.02) 103px
        );
    pointer-events: none;
}

.cta-section__inner {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-section__title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--color-white);
    margin-bottom: 20px;
    text-shadow: 0 0 40px rgba(200, 16, 46, 0.3);
}

.cta-section__text {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.cta-section__details {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 40px;
}

.cta-detail {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.cta-detail strong {
    color: var(--color-red-light);
}

/* --- CONTACT --- */
.contact {
    padding: var(--section-padding);
    background: var(--color-bg-primary);
}

.contact__inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: start;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: var(--color-bg-card);
    transition: all 0.3s ease;
    color: var(--color-text-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.form-group select {
    color: var(--color-text-primary);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239999AA' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group select option {
    background: var(--color-bg-card);
    color: var(--color-text-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-red);
    box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.2), 0 0 30px rgba(200, 16, 46, 0.15), 0 0 60px rgba(200, 16, 46, 0.05);
    transform: scale(1.01);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact__card {
    background: rgba(26, 26, 40, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid rgba(200, 16, 46, 0.15);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(200, 16, 46, 0.05);
    transition: all 0.4s ease;
}

.contact__card:hover {
    border-color: rgba(200, 16, 46, 0.3);
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(200, 16, 46, 0.1);
    transform: translateY(-4px);
}

.contact__card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 20px;
}

.contact__card p {
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

/* Location block */
.contact__location-block {
    background: var(--color-bg-elevated);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--color-red);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: -4px 0 15px rgba(200, 16, 46, 0.1);
}

.contact__map-embed {
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.contact__location-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact__detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact__detail-item svg {
    flex-shrink: 0;
    color: var(--color-red);
    margin-top: 2px;
}

.contact__detail-item strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.contact__detail-item span,
.contact__detail-item a {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Social buttons */
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.social-btn:hover {
    border-color: var(--color-red);
    color: var(--color-white);
    background: var(--color-red);
    box-shadow: 0 0 25px rgba(200, 16, 46, 0.5), 0 0 50px rgba(200, 16, 46, 0.2);
    transform: translateY(-4px) scale(1.1);
}

.social-btn--sm {
    width: 36px;
    height: 36px;
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--color-text-secondary);
}

.social-btn--sm:hover {
    border-color: var(--color-red);
    color: var(--color-red-light);
    background: rgba(200, 16, 46, 0.1);
}

/* CTA social section */
.cta-section__social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

/* CTA detail link */
.cta-detail__link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition);
}

.cta-detail__link:hover {
    color: var(--color-red-light);
}

/* Contact social buttons */
.contact__social-btns {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

/* Contact map link */
.contact__map-link {
    color: var(--color-text-secondary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition);
}

.contact__map-link:hover {
    color: var(--color-red-light);
}

/* Form success */
.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 300px;
    text-align: center;
}

.form-success h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-text-primary);
}

.form-success p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* --- FOOTER --- */
.footer {
    background: #060609;
    color: rgba(255, 255, 255, 0.6);
    padding: 48px 0 24px;
    border-top: 1px solid rgba(200, 16, 46, 0.15);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer__logo-img {
    height: 44px;
    width: auto;
    border-radius: 4px;
}

.footer__tagline {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 4px;
}

.footer__links {
    display: flex;
    gap: 24px;
}

.footer__links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45);
    transition: var(--transition);
}

.footer__links a:hover {
    color: var(--color-red-light);
}

.footer__social {
    display: flex;
    gap: 16px;
}

.footer__social a {
    color: rgba(255, 255, 255, 0.45);
    transition: var(--transition);
}

.footer__social a:hover {
    color: var(--color-red-light);
}

.footer__social svg {
    width: 22px;
    height: 22px;
}

.footer__bottom {
    padding-top: 24px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.25);
}

/* ==========================================
   KEYFRAME ANIMATIONS
   ========================================== */

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(200,16,46,0.6));
        background-position: 0% 50%;
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(200,16,46,1)) drop-shadow(0 0 80px rgba(200,16,46,0.5));
        background-position: 100% 50%;
    }
}

@keyframes speed-lines {
    from { transform: translateX(0); }
    to { transform: translateX(25%); }
}

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

@keyframes shine-sweep {
    from { left: -100%; }
    to { left: 200%; }
}

@keyframes wave-drift {
    0% { transform: translateX(0); }
    50% { transform: translateX(-25px); }
    100% { transform: translateX(0); }
}

@keyframes rotate-border {
    from { --border-angle: 0deg; }
    to { --border-angle: 360deg; }
}

@keyframes arrow-bounce {
    0%, 100% { transform: translateX(6px); }
    50% { transform: translateX(12px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(200,16,46,0.3); }
    50% { box-shadow: 0 0 40px rgba(200,16,46,0.6), 0 0 80px rgba(200,16,46,0.2); }
}

/* CSS Houdini for rotating border - fallback graceful */
@property --border-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

/* ==========================================
   SCROLL-REVEAL ANIMATIONS
   ========================================== */

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }
.reveal-delay-5 { transition-delay: 0.75s; }

/* ==========================================
   PARTICLE CANVAS
   ========================================== */

.hero__particles {
    display: none;
}

/* ==========================================
   SECTION DIVIDERS
   ========================================== */

.section-divider {
    position: relative;
    height: 60px;
    overflow: hidden;
    background: transparent;
}

.section-divider svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 120%;
    height: 100%;
    animation: wave-drift 6s ease-in-out infinite;
}

.section-divider--red svg path {
    fill: var(--color-bg-secondary);
}

.section-divider--dark svg path {
    fill: var(--color-bg-primary);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 992px) {
    .hero__title {
        font-size: 2.8rem;
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .about__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .values__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact__inner {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer__links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Mobile nav */
    .navbar {
        backdrop-filter: none;
    }

    .hamburger {
        display: block;
    }

    .navbar__menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 1050;
    }

    .navbar__menu.active {
        opacity: 1;
        visibility: visible;
    }

    .navbar__list {
        flex-direction: column;
        align-items: center;
        gap: 0;
        width: 100%;
        padding: 0 24px;
    }

    .navbar__list li {
        width: 100%;
    }

    .navbar__link {
        font-size: 1.4rem;
        font-weight: 700;
        padding: 18px 24px;
        color: var(--color-white);
        background: none;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        width: 100%;
        text-align: center;
        display: block;
    }

    .navbar__link:hover {
        color: var(--color-red-light);
        background: rgba(200, 16, 46, 0.05);
        transform: none;
        box-shadow: none;
    }

    .navbar__cta.btn-bolid {
        margin-left: 0;
        margin-top: 32px;
        width: 280px;
        height: 90px;
    }

    .navbar__cta.btn-bolid .btn-bolid__text {
        font-size: 1.1rem;
    }

    /* Disable 3D tilt on mobile */
    .value-card,
    .member-card {
        transform-style: flat;
    }

    .hero__particles {
        display: none;
    }

    /* Hero mobile */
    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .hero__title {
        font-size: 2.2rem;
    }

    .hero__subtitle {
        font-size: 1.05rem;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        text-align: center;
    }

    /* Stats mobile */
    .stats__grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat__number {
        font-size: 2rem;
    }

    /* CTA mobile */
    .cta-section__title {
        font-size: 2rem;
    }

    .cta-section__details {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 1.8rem;
    }

    .stats__grid {
        grid-template-columns: 1fr;
    }

    .members__grid {
        grid-template-columns: 1fr;
    }
}
