@import url('variables.css');

body {
    background-color: var(--bg-body);
    color: var(--text-body);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden !important;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary-light);
}

/* =========================================
   Utility Classes
   ========================================= */
.text-primary-custom {
    color: var(--color-primary) !important;
}

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

.bg-primary-custom {
    background-color: var(--color-primary) !important;
    color: var(--text-inverse);
}

.bg-surface {
    background-color: var(--bg-surface) !important;
}

/* =========================================
   Buttons
   ========================================= */
.btn-primary-custom {
    background-color: var(--color-primary);
    color: var(--text-inverse);
    border: none;
    font-weight: 800;
    padding: 12px 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn-primary-custom:hover {
    background-color: var(--color-primary-dark);
    color: var(--text-inverse);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.6);
}

.btn-primary-custom:hover::before {
    left: 100%;
}

.btn-outline-custom {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-weight: 700;
    padding: 10px 28px;
    text-transform: uppercase;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background-color: var(--color-primary);
    color: var(--text-inverse);
    box-shadow: 0 0 10px rgba(var(--color-primary-rgb), 0.4);
}

/* =========================================
   Team Section - Ultra Premium Flip Cards
   ========================================= */
.team-section-premium {
    background: none;
    background-color: transparent;
    padding: 120px 0;
}
.section-title {
    font-weight: 800;
    letter-spacing: 0.5px;
}
.section-subtitle {
    color: #6c757d;
}
.section-divider {
    width: 90px;
    height: 2px;
    background: rgba(0,0,0,0.08);
    margin: 10px auto 18px auto;
}
.team-section-premium .section-title { margin-bottom: 6px; }
.team-section-premium .section-divider { margin: 6px auto 8px auto; }
.team-section-premium .section-subtitle { margin-top: 4px; }
.team-premium-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.team-card {
    position: relative;
    perspective: 1200px;
    will-change: transform, opacity;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    touch-action: manipulation;
}
.team-card.in-view {
    opacity: 1;
    transform: translateY(0);
}
.team-card-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    overflow: hidden;
    background: #fff;
}
@media (hover: hover) and (pointer: fine) {
    .team-card:hover .team-card-inner {
        transform: rotateY(180deg);
        box-shadow: 0 16px 36px rgba(0,0,0,0.12);
    }
    .team-card:hover .team-card-front img {
        transform: scale(1.05);
    }
    .team-card:hover .team-card-front {
        opacity: 0 !important;
        visibility: hidden;
        pointer-events: none;
        display: none !important;
    }
    .team-card:hover .team-card-front * {
        opacity: 0 !important;
        visibility: hidden;
    }
    .team-card:hover .team-card-back {
        opacity: 1;
        z-index: 3;
        display: flex !important;
    }
    .team-card:hover .team-back-content {
        opacity: 1 !important;
        transform: none !important;
    }
}
.team-card.is-flipped .team-card-inner {
    transform: rotateY(180deg);
}
.team-card.is-flipped .team-card-front {
    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none;
    display: none !important;
}
.team-card.is-flipped .team-card-front * {
    opacity: 0 !important;
    visibility: hidden;
}
.team-card.is-flipped .team-card-back {
    opacity: 1;
    z-index: 3;
    display: flex !important;
}
.team-card.is-flipped .team-back-content {
    opacity: 1 !important;
    transform: none !important;
}
.team-card:hover .team-card-front img,
.team-card.is-flipped .team-card-front img {
    display: none !important;
}
.team-card:hover .team-front-overlay,
.team-card.is-flipped .team-front-overlay {
    display: none !important;
}
.team-card-front,
.team-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.team-card-front {
    z-index: 2;
    transform: rotateY(0deg);
    opacity: 1;
    transition: opacity 0.3s ease;
}
.team-card-front img,
.team-placeholder-front {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.team-placeholder-front {
    background: #eef1f5;
    color: #9aa4b2;
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.team-front-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 16px 18px;
    background: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.45) 100%);
}
.team-front-role {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.team-card-back {
    transform: rotateY(180deg);
    background: #ffffff;
    color: #0b1320;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    position: relative;
    backface-visibility: visible !important;
    -webkit-backface-visibility: visible !important;
}
.team-card-back::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #ffffff;
    border-radius: 16px;
    z-index: 0;
}
.team-back-content {
    padding: 28px;
    text-align: left;
    opacity: 1 !important;
    transform: none !important;
    transition: none;
    position: relative;
    z-index: 10;
    color: #212529;
}
.team-back-name {
    font-weight: 800;
    margin-bottom: 6px;
    color: #212529;
}
.team-back-role {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}
.team-back-divider {
    width: 60px;
    height: 2px;
    background: rgba(0,0,0,0.12);
    margin: 10px 0 16px 0;
}
.team-back-desc {
    color: #343a40;
    font-size: 0.86rem;
    line-height: 1.45;
    position: relative;
    padding-left: 26px;
    padding-right: 26px;
}
.team-quote-open {
    display: block;
    color: rgba(0,0,0,0.18);
    font-size: 24px;
    line-height: 1;
    margin: 8px 0 6px 0;
}
.team-quote-close {
    display: flex;
    justify-content: flex-end;
    color: rgba(0,0,0,0.18);
    font-size: 24px;
    line-height: 1;
    margin: 6px 0 0 0;
}
/* Ensure dark text overrides in all states */
.team-card .team-card-back,
.team-card .team-back-content,
.team-card .team-back-content * {
    color: #212529 !important;
}
@media (max-width: 1200px) {
    .team-premium-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .team-section-premium {
        padding: 80px 0;
    }
}
@media (max-width: 768px) {
    .team-premium-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }
    .team-section-premium {
        padding: 60px 0;
    }
    .team-back-content { padding: 22px; }
    .team-back-desc { font-size: 0.93rem; }
}

@media (hover: none) {
    .team-card-inner { transform: none !important; }
    .team-card-back { transform: none !important; -webkit-transform: none !important; }
    .team-card.show-back .team-card-front {
        opacity: 0 !important;
        visibility: hidden !important;
        display: none !important;
        pointer-events: none !important;
    }
    .team-card.show-back .team-card-back {
        opacity: 1 !important;
        display: flex !important;
        z-index: 3 !important;
    }
    .team-card.show-back .team-back-content {
        opacity: 1 !important;
        transform: none !important;
    }
}
/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.team-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}
.team-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 24px 8px 24px;
}
.team-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.team-card:hover .team-photo img {
    transform: scale(1.05);
}
.team-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #eef1f5;
    color: #9aa4b2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}
.team-info {
    padding: 12px 24px 24px 24px;
}
.team-info h5 {
    font-weight: 700;
}
.team-info .text-primary-custom {
    letter-spacing: 0.3px;
}
@media (max-width: 576px) {
    .team-photo { padding: 20px 20px 6px 20px; }
    .team-photo img, .team-placeholder { width: 96px; height: 96px; }
}
/* =========================================
   Navbar
   ========================================= */
.navbar {
    background-color: rgba(18, 18, 18, 0.95) !important; /* Slightly transparent surface color */
    border-bottom: 1px solid var(--divider-color);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 900;
    color: var(--color-primary) !important;
    font-style: italic;
    font-size: 1.8rem;
    text-shadow: 0 0 10px rgba(var(--color-primary-rgb), 0.3);
    display: flex;
    align-items: center;
}

.navbar-nav {
    display: flex;
    align-items: center;
}

.nav-link {
    color: var(--text-heading) !important;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 15px;
    position: relative;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    font-size: 0.95rem;
}

@media (min-width: 992px) and (max-width: 1200px) {
    .nav-link {
        margin-left: 10px;
        font-size: 0.85rem;
        padding-left: 0;
        padding-right: 0;
    }
    .navbar-brand {
        font-size: 1.4rem;
    }
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

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

.nav-link:hover, .nav-link.active {
    color: var(--color-primary) !important;
}

/* =========================================
   Hero Section (Split Layout)
   ========================================= */
.hero-section {
    background: var(--gradient-hero);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    clip-path: none; /* Removed sporty clip-path for corporate stability */
    padding-top: 80px; /* Account for fixed navbar */
}

/* Subtle Carbon Texture Overlay */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--bg-surface) 15%, transparent 16%), radial-gradient(var(--bg-surface) 15%, transparent 16%);
    background-size: 4px 4px;
    background-position: 0 0, 2px 2px;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    z-index: 2;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-heading);
    background: none;
    -webkit-text-fill-color: initial;
    text-shadow: none;
}

.hero-slogan {
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    font-weight: 300;
    color: var(--color-accent-secondary);
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    font-weight: 400;
    color: var(--text-body);
    max-width: 600px;
}

.hero-image-container {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
    animation: float-bike 6s ease-in-out infinite;
}

/* Glow effect behind bike */
.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.2) 0%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
}

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

/* Corporate Divider */
.corporate-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    margin: 40px 0;
    opacity: 0.5;
}

/* =========================================
   Cards & Products
   ========================================= */
.rd-img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0,0,0,0.16);
}
@media (max-width: 576px) {
    .rd-img { height: 240px; }
}
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-primary);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--divider-color);
}

.card-body {
    color: var(--text-body);
}

.card-title {
    color: var(--text-heading);
    font-weight: 700;
}

.card-text strong {
    color: var(--color-primary);
}

/* =========================================
   Section Titles
   ========================================= */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 60px;
    padding-bottom: 15px;
    color: var(--text-heading);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: #050505;
    padding: 80px 0 40px;
    border-top: 3px solid var(--color-primary);
    margin-top: 80px;
    color: var(--text-muted);
}

.footer h5 {
    color: var(--text-heading);
    margin-bottom: 25px;
}

.footer ul li a {
    color: var(--text-muted);
}

.footer ul li a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

/* =========================================
   Angled Sections
   ========================================= */
.angled-section {
    position: relative;
    padding: 100px 0;
    margin: 80px 0;
    background-color: var(--bg-surface);
    transform: skewY(-3deg);
    border-top: 1px solid var(--divider-color);
    border-bottom: 1px solid var(--divider-color);
    overflow: hidden; /* Fix horizontal scrollbar */
}

.angled-content {
    transform: skewY(3deg);
}

/* =========================================
   Forms
   ========================================= */
.form-control {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-heading);
    padding: 12px 15px;
}

.form-control:focus {
    background-color: var(--bg-input);
    border-color: var(--color-primary);
    color: var(--text-heading);
    box-shadow: 0 0 0 0.25rem rgba(var(--color-primary-rgb), 0.25);
}

/* =========================================
   Admin Panel Specifics
   ========================================= */
.admin-sidebar {
    background-color: var(--bg-surface);
    min-height: 100vh;
    padding-top: 20px;
    border-right: 1px solid var(--divider-color);
}

.admin-sidebar .nav-link {
    color: var(--text-muted) !important;
    padding: 12px 25px;
    margin: 5px 0;
    border-radius: 0 25px 25px 0;
    transition: all 0.3s;
}

.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
    background-color: rgba(var(--color-primary-rgb), 0.1);
    color: var(--color-primary) !important;
    border-left: 4px solid var(--color-primary);
}

/* =========================================
   Animations
   ========================================= */
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(var(--color-primary-rgb), 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(var(--color-primary-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--color-primary-rgb), 0); }
}

.pulse-btn {
    animation: pulse-green 2s infinite;
}

/* Force hide backdrop if modal is not open */
body:not(.modal-open) .modal-backdrop { display: none !important; }
body:not(.modal-open) { overflow: auto !important; padding-right: 0 !important; }
