/* Pages.css - Styles for all inner pages */

/* Page Header */
.page-header {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    background-size: cover;
    overflow: hidden;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: var(--fw-bold);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    display: inline-block;
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-primary);
}

.breadcrumbs {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}

.breadcrumbs a {
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.breadcrumbs a:hover {
    color: var(--accent-primary);
}

.breadcrumbs i {
    font-size: 0.7rem;
    color: var(--accent-primary);
}

.breadcrumbs span {
    color: var(--text-primary);
}

/* Section Intro */
.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-xxl);
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Servers Page Styles */
.servers-section {
    padding: var(--space-xxl) 0;
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
    width: 100%;
}

.server-card {
    background: rgba(25, 28, 27, 0.7);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.server-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(247, 35, 35, 0.2);
}

.server-card.featured {
    border: 1px solid rgba(247, 35, 35, 0.3);
    box-shadow: 0 15px 35px rgba(247, 35, 35, 0.15);
    position: relative;
    overflow: hidden;
}

.server-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(247, 35, 35, 0.1), transparent);
    z-index: 0;
    pointer-events: none;
}

.server-banner {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.server-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.server-card:hover .server-banner img {
    transform: scale(1.05);
}

.server-status {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(15, 18, 17, 0.8);
    padding: 5px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: var(--fw-medium);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2;
}

.server-status.online .status-dot {
    background-color: #2ecc71;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.8);
    animation: pulse 2s infinite;
}

.server-status.offline .status-dot {
    background-color: #e74c3c;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.8);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.server-players {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(15, 18, 17, 0.8);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: var(--fw-medium);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2;
}

.server-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--accent-primary);
    color: var(--text-primary);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(247, 35, 35, 0.5);
    z-index: 2;
}

.server-badge.dev-server {
    background: #3498db;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.5);
}

.server-badge.training-server {
    background: #9b59b6;
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.5);
}

.server-content {
    padding: var(--space-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.server-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    font-weight: var(--fw-bold);
}

.server-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.server-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    margin-top: auto;
}

.server-features .feature {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.server-features .feature i {
    color: var(--accent-primary);
    font-size: 0.9rem;
}

.server-features .feature span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.server-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.server-actions .btn-primary,
.server-actions .btn-secondary {
    flex: 1;
    justify-content: center;
    padding: 0.7rem;
    font-size: 0.9rem;
}

/* Server Stats Section */
.server-stats-section {
    padding: var(--space-xxl) 0;
    background: rgba(15, 18, 17, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.stat-card {
    background: rgba(25, 28, 27, 0.7);
    border-radius: 12px;
    padding: var(--space-xl);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(247, 35, 35, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: var(--space-md);
}

.stat-value {
    font-size: 2rem;
    font-weight: var(--fw-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Connect Section */
.connect-section {
    padding: var(--space-xxl) 0;
}

.connect-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: center;
}

.connect-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.connect-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 2px;
}

.connect-content > p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: var(--space-xl);
    max-width: 500px;
}

.connect-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.connect-step {
    display: flex;
    gap: var(--space-lg);
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: var(--fw-bold);
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(247, 35, 35, 0.3);
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.step-link {
    color: var(--accent-primary);
    font-weight: var(--fw-medium);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    transition: all var(--transition-fast);
}

.step-link:hover {
    color: var(--accent-light);
    transform: translateX(3px);
}

.server-address {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(15, 18, 17, 0.6);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--space-sm);
    font-family: 'Geist Mono', monospace;
}

.server-address span {
    flex: 1;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.copy-btn.copied {
    background: var(--accent-primary);
    color: var(--text-primary);
}

.connect-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    height: 100%;
    min-height: 500px;
}

.connect-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(247, 35, 35, 0.2), rgba(15, 18, 17, 0.6));
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

@media (max-width: 992px) {
    .server-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .connect-grid {
        grid-template-columns: 1fr;
    }
    
    .connect-image {
        order: -1;
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .page-header {
        height: 250px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .server-features {
        grid-template-columns: 1fr;
    }
    
    .server-actions {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .connect-step {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .server-grid {
        grid-template-columns: 1fr;
    }
}

/* Rules Page Styles */
.rules-section {
    padding: var(--space-xxl) 0;
}

.rules-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.rules-navigation {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    height: fit-content;
    background: rgba(25, 28, 27, 0.7);
    border-radius: 12px;
    padding: var(--space-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.rules-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.rules-nav a {
    color: var(--text-secondary);
    padding: var(--space-xs) var(--space-md);
    border-radius: 6px;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
    display: block;
    position: relative;
    overflow: hidden;
}

.rules-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--accent-primary);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.rules-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.rules-nav a.active {
    background: rgba(247, 35, 35, 0.1);
    color: var(--accent-primary);
    font-weight: var(--fw-semibold);
}

.rules-nav a.active::before {
    transform: scaleY(1);
}

.rules-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xxl);
}

.rule-category {
    background: rgba(25, 28, 27, 0.7);
    border-radius: 12px;
    padding: var(--space-xl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    scroll-margin-top: 120px;
}

.rule-category h3 {
    font-size: 1.6rem;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rule-category h3 i {
    color: var(--accent-primary);
}

.rule-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rule-item:last-child {
    border-bottom: none;
}

.rule-number {
    font-size: 1.1rem;
    font-weight: var(--fw-bold);
    color: var(--accent-primary);
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(247, 35, 35, 0.1);
    border-radius: 50%;
}

.rule-text h4 {
    font-size: 1.05rem;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.rule-text p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

.rules-disclaimer {
    margin-top: var(--space-xxl);
    background: rgba(231, 76, 60, 0.1);
    border-radius: 12px;
    padding: var(--space-xl);
    display: flex;
    gap: var(--space-xl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.disclaimer-icon {
    font-size: 3rem;
    color: #e74c3c;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.disclaimer-text h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.disclaimer-text p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: var(--space-sm);
}

.disclaimer-text p:last-of-type {
    margin-bottom: var(--space-lg);
}

.disclaimer-text .btn-primary {
    display: inline-flex;
}

/* Mobile Rules Navigation */
.mobile-rules-nav {
    display: none;
    margin-bottom: var(--space-lg);
    width: 100%;
}

.mobile-rules-select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(25, 28, 27, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1rem;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-base);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.mobile-rules-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(247, 35, 35, 0.2);
}

.mobile-rules-select option {
    background: rgba(15, 18, 17, 0.95);
    color: var(--text-primary);
    padding: 10px;
}

.mobile-select-wrapper {
    position: relative;
    width: 100%;
}

.mobile-select-wrapper::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-primary);
    pointer-events: none;
}

/* Responsive Rules Page */
@media (max-width: 992px) {
    .rules-container {
        grid-template-columns: 1fr;
    }
    
    .rules-navigation {
        display: none;
    }
    
    .mobile-rules-nav {
        display: block;
        position: sticky;
        top: calc(var(--header-height) + 10px);
        z-index: 100;
    }
}

@media (max-width: 768px) {
    .rule-item {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .rule-number {
        width: auto;
        height: auto;
        background: none;
        justify-content: flex-start;
    }
    
    .rules-disclaimer {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .disclaimer-icon {
        font-size: 2.5rem;
    }
}

/* Store Page Styles */
.store-section {
    padding: var(--space-xxl) 0;
}

/* Store Categories */
.store-categories {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    justify-content: center;
}

.category-btn {
    background: rgba(25, 28, 27, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.category-btn.active {
    background: var(--accent-primary);
    color: var(--text-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(247, 35, 35, 0.3);
}

/* Store Section Titles */
.store-section-title {
    font-size: 1.8rem;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    padding-bottom: var(--space-xs);
}

.store-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 2px;
}

/* Products Grid */
.featured-products,
.all-products {
    margin-bottom: var(--space-xxl);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

/* Featured grids with flex wrap for better responsive behavior */
#featured-vehicles-grid,
#featured-projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xl);
    justify-content: center;
}

#featured-vehicles-grid .product-card,
#featured-projects-grid .product-card {
    flex: 1 1 300px;
    max-width: calc(33.333% - var(--space-lg));
    min-width: 280px;
}

/* Make cards take full width when fewer than 3 cards in a row */
.products-grid:has(> .product-card:only-child) .product-card {
    grid-column: 1 / -1;
}

.products-grid:has(> .product-card:nth-last-child(2):first-child),
.products-grid:has(> .product-card:nth-last-child(1):nth-child(2)) {
    grid-template-columns: repeat(2, 1fr);
}

/* Product Cards */
.product-card {
    background: rgba(25, 28, 27, 0.7);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    flex-grow: 1;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(247, 35, 35, 0.2);
}

.product-card.featured {
    border: 1px solid rgba(247, 35, 35, 0.3);
    box-shadow: 0 15px 35px rgba(247, 35, 35, 0.15);
}

.product-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(247, 35, 35, 0.1), transparent);
    z-index: 0;
    pointer-events: none;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-primary);
    color: var(--text-primary);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(247, 35, 35, 0.5);
    z-index: 2;
}

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: var(--space-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-content h4 {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.product-description {
    margin-bottom: var(--space-md);
}

.product-description p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
    margin-top: auto;
}

.product-features .feature {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.product-features .feature i {
    color: var(--accent-primary);
    font-size: 0.9rem;
}

.product-features .feature span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.product-price {
    display: flex;
    justify-content: center;
    margin-top: var(--space-md);
}

.product-price .price {
    font-size: 1.5rem;
    font-weight: var(--fw-bold);
    color: var(--text-primary);
}

.add-to-cart-btn {
    background: var(--accent-primary);
    color: var(--text-primary);
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-to-cart-btn:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

/* Cart Styles */
.cart-icon {
    position: relative;
    font-size: 1.2rem;
    color: var(--text-primary);
    cursor: pointer;
    margin-right: var(--space-md);
    transition: all var(--transition-fast);
}

.cart-icon:hover {
    color: var(--accent-primary);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-primary);
    color: var(--text-primary);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: var(--fw-bold);
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: rgba(15, 18, 17, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.close-cart {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.close-cart:hover {
    color: var(--accent-primary);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
}

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    text-align: center;
}

.empty-cart i {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.empty-cart p {
    font-size: 1.2rem;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.empty-cart span {
    font-size: 0.9rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
}

.item-details h4 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.item-price {
    color: var(--accent-primary);
    font-weight: var(--fw-medium);
    margin-bottom: var(--space-xs);
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quantity-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.remove-item {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.remove-item:hover {
    color: #e74c3c;
}

.cart-footer {
    padding: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    font-size: 1.2rem;
    color: var(--text-primary);
}

.total-amount {
    font-weight: var(--fw-bold);
    color: var(--accent-primary);
}

.checkout-btn {
    width: 100%;
    background: var(--accent-primary);
    color: var(--text-primary);
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.checkout-btn:hover {
    background: var(--accent-light);
}

.cart-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent-primary);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1001;
}

.cart-notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* FAQ Section */
.faq-section {
    padding: var(--space-xxl) 0;
    background: rgba(15, 18, 17, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: var(--space-md);
    background: rgba(25, 28, 27, 0.7);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-question {
    padding: var(--space-md) var(--space-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--transition-fast);
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: var(--fw-medium);
}

.faq-question i {
    color: var(--accent-primary);
    transition: all var(--transition-fast);
}

.faq-question.active {
    background: rgba(247, 35, 35, 0.05);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-answer a {
    color: var(--accent-primary);
    transition: all var(--transition-fast);
}

.faq-answer a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

/* Responsive Store Styles */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #featured-vehicles-grid .product-card,
    #featured-projects-grid .product-card {
        max-width: calc(50% - var(--space-lg));
    }
}

@media (max-width: 768px) {
    .store-categories {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: var(--space-sm);
        justify-content: flex-start;
    }
    
    .category-btn {
        white-space: nowrap;
    }
    
    .product-price {
        justify-content: flex-start;
    }
    
    .add-to-cart-btn {
        width: 100%;
        justify-content: center;
    }
    
    .cart-sidebar {
        max-width: 100%;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    #featured-vehicles-grid .product-card,
    #featured-projects-grid .product-card {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Purchase Info */
.purchase-info {
    margin-top: var(--space-lg);
    background: rgba(25, 28, 27, 0.7);
    border-radius: 12px;
    padding: var(--space-lg);
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.purchase-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
}

.purchase-info .btn-primary {
    display: inline-flex;
    padding: 12px 24px;
    font-size: 1rem;
}

/* Product Price Adjustment */
.product-price {
    display: flex;
    justify-content: center;
    margin-top: var(--space-md);
}

.product-price .price {
    font-size: 1.5rem;
    font-weight: var(--fw-bold);
    color: var(--text-primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-price {
        justify-content: flex-start;
    }
}

/* Alternative approach for browsers that don't support :has() */
@supports not (selector(:has(*))) {
    .products-grid.one-card .product-card {
        grid-column: 1 / -1;
    }
    
    .products-grid.two-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Store Navigation */
.store-navigation {
    background: rgba(15, 18, 17, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 70px;
    z-index: 100;
    padding: var(--space-md) 0;
    margin-bottom: var(--space-xl);
}

.store-nav-links {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
}

.store-nav-links a {
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-decoration: none;
    padding: var(--space-xs) var(--space-md);
    border-radius: 30px;
    transition: all var(--transition-fast);
    position: relative;
}

.store-nav-links a:hover {
    color: var(--text-primary);
}

.store-nav-links a.active {
    color: var(--text-primary);
}

.store-nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 2px;
}

/* Projects Section */
.projects-section {
    padding-top: var(--space-xxl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: var(--space-xxl);
}

.projects-section .product-badge {
    background: #4CAF50;
}

.projects-section .featured .product-badge {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
}

/* Responsive styles */
@media (max-width: 768px) {
    .store-navigation {
        top: 60px;
    }
    
    .store-nav-links {
        gap: var(--space-md);
    }
    
    .store-nav-links a {
        font-size: 0.95rem;
        padding: var(--space-xs) var(--space-sm);
    }
}

/* About Page Styles */
.about-section {
    padding: var(--space-xxl) 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: center;
    margin-top: var(--space-xl);
}

.about-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    aspect-ratio: 1 / 1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(247, 35, 35, 0.2), rgba(15, 18, 17, 0.6));
}

.about-text h3 {
    font-size: 2.2rem;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.about-text h3 span {
    color: var(--accent-primary);
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

/* Mission Section */
.mission-section {
    padding: var(--space-xxl) 0;
    background: rgba(15, 18, 17, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mission-statement {
    position: relative;
    max-width: 800px;
    margin: 0 auto var(--space-xxl);
    padding: var(--space-xl) var(--space-xxl);
    text-align: center;
}

.mission-statement p {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-weight: var(--fw-medium);
}

.mission-statement i {
    color: var(--accent-primary);
    font-size: 2rem;
    opacity: 0.7;
    position: absolute;
}

.mission-statement i.fa-quote-left {
    top: 0;
    left: 0;
}

.mission-statement i.fa-quote-right {
    bottom: 0;
    right: 0;
}

.mission-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.value-item {
    display: flex;
    gap: var(--space-lg);
    background: rgba(25, 28, 27, 0.7);
    border-radius: 12px;
    padding: var(--space-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    border-color: rgba(247, 35, 35, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.value-content h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.value-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Staff Section */
.staff-section {
    padding: var(--space-xxl) 0;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.staff-card {
    background: rgba(25, 28, 27, 0.7);
    border-radius: 12px;
    overflow: hidden;
    padding: var(--space-lg);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.staff-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto var(--space-md);
}

.staff-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-role {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: var(--text-primary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.staff-role.admin {
    background: var(--accent-primary);
}

.staff-role.mod {
    background: #3498db;
}

.staff-role.support {
    background: #2ecc71;
}

.staff-card h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Join Us Section */
.join-us-section {
    padding: var(--space-xxl) 0;
    text-align: center;
}

.join-us-content {
    max-width: 800px;
    margin: 0 auto;
}

.join-us-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.join-us-content p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: var(--space-xl);
}

.join-us-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
}

.join-us-buttons .btn {
    padding: 12px 24px;
    font-size: 1rem;
}

/* Responsive Styles for About Page */
@media (max-width: 1200px) {
    .staff-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .about-image {
        max-height: 400px;
        aspect-ratio: 16 / 9;
    }
    
    .mission-values {
        grid-template-columns: 1fr;
    }
    
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-text h3 {
        font-size: 1.8rem;
    }
    
    .mission-statement p {
        font-size: 1.2rem;
    }
    
    .value-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .join-us-buttons {
        flex-direction: column;
    }
    
    .join-us-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .staff-grid {
        grid-template-columns: 1fr;
    }
}

/* Gallery Page Styles */
.gallery-categories-section {
    padding: var(--space-xl) 0;
}

.gallery-categories {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin-top: var(--space-lg);
    position: relative;
    z-index: 10;
}

.category-btn {
    background: rgba(25, 28, 27, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-size: 0.9rem;
    font-weight: var(--fw-medium);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.category-btn:hover {
    background: rgba(247, 35, 35, 0.1);
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

.category-btn.active {
    background: var(--accent-primary);
    color: var(--text-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(247, 35, 35, 0.5);
    transform: translateY(-3px);
}

.gallery-grid-section {
    padding: var(--space-xl) 0 var(--space-xxl);
    perspective: 1000px;
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    position: relative;
}

.gallery-item {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    animation: fadeInScale 0.8s forwards;
    animation-delay: calc(var(--animation-order) * 0.1s);
    will-change: transform, opacity;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.gallery-item:hover {
    transform: translateY(-15px) scale(1.02) rotateX(5deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(247, 35, 35, 0.3);
    z-index: 5;
}

.gallery-item.hidden {
    display: none;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    70% {
        opacity: 1;
        transform: translateY(-10px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gallery-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    aspect-ratio: 16 / 10;
    cursor: pointer;
    transform: translateZ(0);
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1), filter 0.7s ease;
}

.gallery-item:hover .gallery-image {
    filter: brightness(1.1) contrast(1.1);
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.08) translateZ(30px);
}

.gallery-caption {
    display: none;
}

.modal-caption {
    display: none;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-lg);
    z-index: 2;
    transform: translateZ(20px);
    pointer-events: none;
}

.gallery-actions {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 3;
    pointer-events: auto;
}

.gallery-item:hover .gallery-actions {
    opacity: 1;
    transform: scale(1);
}

.gallery-zoom {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    font-size: 1.4rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.gallery-zoom:hover {
    background: var(--accent-primary);
    transform: scale(1.15) rotate(25deg);
    box-shadow: 0 15px 30px rgba(247, 35, 35, 0.5);
}

/* Gallery Modal */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(10px);
}

.gallery-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(247, 35, 35, 0.3);
    transform: scale(0.9) translateY(30px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    background: rgba(25, 28, 27, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.modal-content img.slide-left {
    transform: translateX(-50px);
    opacity: 0;
}

.modal-content img.slide-right {
    transform: translateX(50px);
    opacity: 0;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 10;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transform: scale(0);
    opacity: 0;
}

.gallery-modal.active .modal-close {
    transform: scale(1);
    opacity: 1;
    transition-delay: 0.5s;
}

.modal-close:hover {
    background: var(--accent-primary);
    transform: rotate(90deg) scale(1.1);
    border-color: transparent;
}

.modal-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    display: flex;
    gap: var(--space-lg);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 10;
}

.gallery-modal.active .modal-nav {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    transition-delay: 0.3s;
}

.modal-prev,
.modal-next {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.modal-prev:hover,
.modal-next:hover {
    background: var(--accent-primary);
    transform: scale(1.1);
    border-color: transparent;
}

/* Responsive Gallery Styles */
@media (max-width: 1200px) {
    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .gallery-masonry {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .gallery-categories {
        overflow-x: auto;
        padding-bottom: var(--space-sm);
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    
    .category-btn {
        white-space: nowrap;
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .modal-caption h3 {
        font-size: 1.3rem;
    }
    
    .modal-caption p {
        font-size: 0.9rem;
    }
    
    .modal-prev,
    .modal-next {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .gallery-zoom {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Loading Animation */
.gallery-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 18, 17, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.gallery-loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: var(--space-md);
    animation: pulse 2s infinite;
}

.loading-spinner i {
    animation: spin 1.5s infinite linear;
}

.gallery-loading p {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: var(--fw-medium);
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

/* Scroll To Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: var(--text-primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 100;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--accent-light);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(247, 35, 35, 0.4);
}

@media (max-width: 768px) {
    .scroll-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 20px;
        right: 20px;
    }
}

/* Add glow effect on hover */
.gallery-item::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, var(--accent-primary), transparent, var(--accent-primary));
    z-index: -1;
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-item:hover::before {
    opacity: 0.5;
    animation: glowRotate 3s linear infinite;
}

@keyframes glowRotate {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 300% 300%;
    }
}

.gallery-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 50%,
        rgba(0, 0, 0, 0.8) 100%);
    opacity: 0.7;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    backface-visibility: hidden;
}

.gallery-item:hover .gallery-image::after {
    opacity: 0.9;
}

/* Terms of Service Page Styles */
.terms-section {
    padding: var(--space-xxl) 0;
}

.terms-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.terms-navigation {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    height: fit-content;
    background: rgba(25, 28, 27, 0.7);
    border-radius: 12px;
    padding: var(--space-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.terms-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.terms-nav a {
    color: var(--text-secondary);
    padding: var(--space-xs) var(--space-md);
    border-radius: 6px;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
    display: block;
    position: relative;
    overflow: hidden;
}

.terms-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--accent-primary);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.terms-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.terms-nav a.active {
    background: rgba(247, 35, 35, 0.1);
    color: var(--accent-primary);
    font-weight: var(--fw-semibold);
}

.terms-nav a.active::before {
    transform: scaleY(1);
}

.terms-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xxl);
}

.terms-section-content {
    background: rgba(25, 28, 27, 0.7);
    border-radius: 12px;
    padding: var(--space-xl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    scroll-margin-top: 120px;
}

.terms-section-content h3 {
    font-size: 1.6rem;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terms-section-content h3 i {
    color: var(--accent-primary);
}

.terms-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.terms-text p {
    margin-bottom: var(--space-md);
}

.terms-text p:last-child {
    margin-bottom: 0;
}

.terms-text ul {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

.terms-text ul li {
    margin-bottom: var(--space-xs);
}

.terms-text a {
    color: var(--accent-primary);
    transition: all var(--transition-fast);
}

.terms-text a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

.terms-last-updated {
    margin-top: var(--space-xl);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Mobile Terms Navigation */
.mobile-terms-nav {
    display: none;
    margin-bottom: 2rem;
    width: 100%;
}

.mobile-select-wrapper {
    position: relative;
    width: 100%;
}

.mobile-select-wrapper::after {
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--primary);
}

.mobile-terms-select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-terms-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.3);
}

.mobile-terms-select option {
    background-color: #1a1a1a;
    color: #fff;
    padding: 10px;
}

/* Media query to show mobile navigation on smaller screens */
@media (max-width: 992px) {
    .terms-container {
        grid-template-columns: 1fr;
    }
    
    .terms-navigation {
        display: none;
    }
    
    .mobile-terms-nav {
        display: block;
    }
}

/* Media query for terms page on smaller screens */
@media (max-width: 768px) {
    .terms-section-content {
        padding: 20px;
    }
    
    .terms-section-content h2 {
        font-size: 1.5rem;
    }
    
    .terms-section-content h3 {
        font-size: 1.2rem;
    }
} 