/* ==========================================================================
   #TEAM PAGE STYLES - Belsh Leather
   ========================================================================== */

/* Core Variables */
:root {
    --color-gold: #D4AF37;
    --color-gold-light: rgba(212, 175, 55, 0.8);
    --color-black: #000000;
    --color-black-soft: #111111;
    --color-gray: #1A1A1A;
    --color-white: #FFFFFF;
    --color-text: rgba(255, 255, 255, 0.9);
    --color-text-light: rgba(255, 255, 255, 0.7);
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s ease;
    --radius-sm: 4px;
    --radius-md: 8px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Base Styles */
body {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-black);
    overflow-x: hidden;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Team Hero Section */
.team-hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    background-color: var(--color-black-soft);
    overflow: hidden;
}

.team-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    padding-top: 12rem;
}

.team-hero__title {
    font-size: clamp(4rem, 8vw, 9.6rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: 2.4rem;
}

.team-hero__subtitle {
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    color: var(--color-gold-light);
    max-width: 800px;
    margin: 0 auto 4rem;
}

/* Team Introduction */
.team-intro {
    padding: 12rem 0;
}

.section-header {
    margin-bottom: 6rem;
}

.section-header__subtitle {
    display: block;
    font-size: 1.4rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.6rem;
}

.section-header__title {
    font-size: clamp(3.2rem, 5vw, 5.6rem);
    line-height: 1.2;
    color: var(--color-white);
}

.team-intro__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.team-intro__text {
    font-size: 1.8rem;
    color: var(--color-text-light);
}

.team-intro__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-card {
    background-color: var(--color-gray);
    padding: 3rem 2rem;
    border-radius: var(--radius-sm);
    text-align: center;
    border-left: 2px solid var(--color-gold);
}

.stat-card__number {
    font-size: 4.8rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.stat-card__label {
    font-size: 1.4rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Team Grid - Enhanced with 3D Effects */
.team-grid {
    padding: 8rem 0;
    background-color: var(--color-black-soft);
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem;
}

.team-member {
    position: relative;
    perspective: 1000px;
    height: 400px;
}

.team-member__inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform var(--transition-slow);
    transform-style: preserve-3d;
}

.team-member__front,
.team-member__back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.team-member__back {
    background-color: var(--color-gray);
    transform: rotateY(180deg);
    padding: 3rem;
    display: flex;
    align-items: center;
}

.team-member__image {
    position: relative;
    width: 100%;
    height: 100%;
}

.team-member__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.team-member__info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: var(--color-white);
}

.team-member__name {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
}

.team-member__position {
    font-size: 1.4rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.team-member__hover-indicator {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 4rem;
    height: 4rem;
    background-color: var(--color-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.team-member:hover .team-member__hover-indicator {
    opacity: 1;
}

.team-member__details {
    width: 100%;
}

.team-member__bio {
    font-size: 1.6rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.team-member__contact {
    margin-bottom: 2rem;
}

.team-member__email,
.team-member__phone {
    display: block;
    color: var(--color-gold);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color var(--transition-fast);
}

.team-member__email:hover,
.team-member__phone:hover {
    color: var(--color-white);
}

.team-member__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border: 1px solid var(--color-gold);
    border-radius: 50%;
    color: var(--color-gold);
    transition: all var(--transition-fast);
}

.team-member__social a:hover {
    background-color: var(--color-gold);
    color: var(--color-black);
}

/* Craftsmanship Section */
.craftsmanship {
    padding: 12rem 0;
}

.craftsmanship__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.craftsmanship__content {
    max-width: 500px;
}

.craftsmanship__gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.05);
}
/* Cursor Styles */
.cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background-color: var(--color-gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
    will-change: transform;
}

.cursor-follower {
    position: fixed;
    width: 24px;
    height: 24px;
    border: 1px solid var(--color-gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
    will-change: transform;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-gold);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 10;
}

.scroll-indicator__line {
    width: 1px;
    height: 4rem;
    background-color: var(--color-gold);
    margin-bottom: 1rem;
    animation: scrollLine 2s infinite ease-in-out;
}

@keyframes scrollLine {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(1rem);
        opacity: 0.2;
    }
}

/* Global Presence Section */
.global-presence {
    padding: 12rem 0;
    background-color: var(--color-black-soft);
    position: relative;
}

.global-presence__map-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.global-presence__map {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.global-presence__map img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.9;
}

/* Country Markers */
.map-marker {
    position: absolute;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    cursor: pointer;
}

.map-marker__point {
    width: 8px;
    height: 8px;
    background-color: var(--color-gold);
    border-radius: 50%;
    position: relative;
    z-index: 3;
}

.map-marker__glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212,175,55,0.4) 0%, rgba(212,175,55,0) 70%);
    border-radius: 50%;
    z-index: 1;
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.4;
    }
}

.map-marker__label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    color: var(--color-white);
    white-space: nowrap;
    background-color: rgba(0,0,0,0.7);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-sm);
    margin-top: 0.8rem;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
    z-index: 4;
}

.map-marker:hover .map-marker__label {
    background-color: var(--color-black);
    transform: translateX(-50%) translateY(5px);
}

/* Global Coverage Visualization */
.global-coverage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.global-coverage__pulse {
    position: absolute;
    top: 55%;
    left: 72%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(212,175,55,0.5);
    border-radius: 50%;
    animation: pulse 4s ease-out infinite;
}

.global-coverage__dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.global-coverage__dots::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at center, var(--color-gold) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    70% {
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(10);
        opacity: 0;
    }
}

/* Country Stats */
.global-presence__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.global-presence__countries {
    background-color: var(--color-gray);
    padding: 3rem;
    border-radius: var(--radius-md);
}

.countries-title {
    font-size: 1.8rem;
    color: var(--color-gold);
    margin-bottom: 2rem;
}

.countries-list {
    columns: 2;
    column-gap: 3rem;
    list-style-type: none;
}

.countries-list li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
    break-inside: avoid;
}

.countries-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    background-color: var(--color-gold);
    border-radius: 50%;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .global-presence__map-container {
        grid-template-columns: 1fr;
    }
    
    .global-presence__info {
        order: -1;
    }
    
    .countries-list {
        columns: 1;
    }
}

@media (max-width: 768px) {
    .global-presence {
        padding: 8rem 0;
    }
    
    .global-presence__stats {
        grid-template-columns: 1fr;
    }
    
    .map-marker {
        width: 20px;
        height: 20px;
    }
    
    .map-marker__point {
        width: 6px;
        height: 6px;
    }
    
    .map-marker__label {
        font-size: 1rem;
        padding: 0.2rem 0.6rem;
    }
    
    .scroll-indicator {
        bottom: 2rem;
        font-size: 1rem;
    }
    
    .scroll-indicator__line {
        height: 3rem;
    }
}

/* Animation Styles */
[data-scroll] {
    will-change: transform, opacity;
}

/* CTA Section */
.team-cta {
    padding: 12rem 0;
    background: linear-gradient(to right, rgba(212, 175, 55, 0.1), transparent);
}

.team-cta__inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.team-cta__title {
    font-size: clamp(3.2rem, 5vw, 4.8rem);
    color: var(--color-white);
    margin-bottom: 2rem;
}

.team-cta__text {
    font-size: 1.8rem;
    color: var(--color-text-light);
    margin-bottom: 4rem;
}

.team-cta__buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.4rem 3.2rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    text-decoration: none;
    cursor: pointer;
}

.btn--gold {
    background-color: var(--color-gold);
    color: var(--color-black);
    border: 1px solid var(--color-gold);
}

.btn--gold:hover {
    background-color: transparent;
    color: var(--color-gold);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
}

.btn--outline:hover {
    background-color: var(--color-gold);
    color: var(--color-black);
}

.btn__icon {
    margin-left: 1rem;
    transition: transform var(--transition-fast);
}

.btn:hover .btn__icon {
    transform: translateX(3px);
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--color-gold);
    pointer-events: none;
    mix-blend-mode: difference;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .team-intro__content,
    .craftsmanship__inner {
        grid-template-columns: 1fr;
    }
    
    .craftsmanship__content {
        max-width: 100%;
    }
    
    /* Adjust map connections for smaller screens */
    .map-connection {
        display: none; /* Hide complex connections on smaller screens */
    }
}

@media (max-width: 768px) {
    .team-hero {
        min-height: 600px;
    }
    
    .team-intro__stats,
    .global-presence__stats {
        grid-template-columns: 1fr;
    }
    
    .team-cta__buttons {
        flex-direction: column;
    }
    
    /* Adjust team member cards for mobile */
    .team-member {
        height: auto;
        perspective: none;
    }
    
    .team-member__inner {
        transform-style: flat;
    }
    
    .team-member__front,
    .team-member__back {
        position: relative;
        transform: none;
        backface-visibility: visible;
    }
    
    .team-member__back {
        display: none; /* Hide back side on mobile */
    }
    
    /* Show info on click for mobile */
    .team-member.active .team-member__back {
        display: flex;
    }
}

@media (max-width: 576px) {
    .team-hero {
        min-height: 500px;
    }
    
    .team-hero__content {
        padding-top: 8rem;
    }
    
    .stat-card--large .stat-card__number {
        font-size: 4.8rem;
    }
}

/* Animation Base Styles */
[data-scroll] {
    will-change: transform, opacity;
}

/* Print Styles */
@media print {
    .preloader,
    .cursor,
    .cursor-follower,
    .scroll-indicator,
    .btn {
        display: none;
    }
    
    body {
        background-color: white;
        color: black;
        font-size: 12pt;
    }
    
    a {
        text-decoration: underline;
    }
    
    .team-member__back {
        position: relative;
        transform: none;
        background: none;
        padding: 0;
    }
    
    .team-member__image {
        display: none;
    }
    
    .global-presence__map {
        display: none;
    }
}