/**
 * USG Fight Gear - Premium Glassmorphism Design
 * Dark theme with cloth texture and neon blue accents
 */

:root {
    /* Colors */
    --primary-color: #00aaff;
    --primary-dark: #0088cc;
    --primary-light: #33bbff;
    --accent-glow: rgba(0, 170, 255, 0.5);
    
    --dark-bg: #0a0a0a;
    --dark-surface: #1a1a1a;
    --dark-card: #0f0f0f;
    
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    
    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.5);
    
    /* Fonts */
    --font-primary: 'Rajdhani', sans-serif;
    --font-heading: 'Orbitron', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ================================
   RESET & BASE STYLES
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--dark-bg);
    background-image: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Cloth Texture Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%23ffffff' fill-opacity='0.03' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

body > * {
    position: relative;
    z-index: 2;
}

/* ================================
   LOADING SCREEN
================================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
    position: relative;
}

.glowing-circle {
    width: 100px;
    height: 100px;
    border: 3px solid transparent;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
    box-shadow: 0 0 20px var(--accent-glow);
}

.loader .text {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-shadow: 0 0 20px var(--accent-glow);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ================================
   GLASS EFFECTS
================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: 0 8px 32px var(--glass-shadow);
}

.glass-nav {
    background: rgba(10, 10, 10, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: all var(--transition-normal);
}

.glass-nav.scrolled {
    background: rgba(10, 10, 10, 0.95) !important;
    box-shadow: 0 4px 30px rgba(0, 170, 255, 0.1);
}

/* ================================
   NAVIGATION
================================ */
.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 0 0 30px var(--accent-glow);
    line-height: 1;
}

.brand-tagline {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: -5px;
}

.nav-link {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary) !important;
    padding: 0.5rem 1.2rem !important;
    position: relative;
    transition: all var(--transition-fast);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transform: translateX(-50%);
    transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    text-shadow: 0 0 10px var(--accent-glow);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.navbar-toggler {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

.navbar-toggler:focus {
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ================================
   BUTTONS
================================ */
.btn-primary-glow {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: white;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-primary-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px var(--accent-glow);
    color: white;
}

.btn-primary-glow:hover::before {
    left: 100%;
}

.btn-outline-glow {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 35px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-outline-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
    z-index: -1;
}

.btn-outline-glow:hover {
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 30px var(--accent-glow);
}

.btn-outline-glow:hover::before {
    width: 300px;
    height: 300px;
}

/* ================================
   HERO SECTION
================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 170, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 170, 255, 0.1) 0%, transparent 50%);
    animation: pulse-bg 8s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(48px, 8vw, 90px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, white, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 80px var(--accent-glow);
}

.hero-title span {
    display: block;
    color: var(--primary-color);
    -webkit-text-fill-color: var(--primary-color);
    text-shadow: 0 0 40px var(--accent-glow);
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 24px);
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-weight: 500;
    letter-spacing: 2px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

/* ================================
   SECTION STYLES
================================ */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

/* ================================
   PRODUCT/CATEGORY CARDS
================================ */
.category-card,
.product-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
    height: 100%;
}

.category-card::before,
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(0, 170, 255, 0.1));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.category-card:hover,
.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 60px var(--accent-glow);
}

.category-card:hover::before,
.product-card:hover::before {
    opacity: 1;
}

.card-image {
    position: relative;
    overflow: hidden;
    padding-top: 75%;
    background: var(--dark-card);
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.category-card:hover .card-image img,
.product-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 25px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.card-category {
    font-size: 14px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.card-description {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.card-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--accent-glow);
}

/* ================================
   GALLERY GRID
================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    padding-top: 100%;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    transition: all var(--transition-normal);
}

.gallery-item:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 0 40px var(--accent-glow);
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ================================
   FOOTER
================================ */
.footer-section {
    background: var(--dark-surface);
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--glass-border);
}

.footer-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 170, 255, 0.05) 0%, transparent 50%);
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--accent-glow);
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.footer-description {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.8;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
    text-shadow: 0 0 10px var(--accent-glow);
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.contact-info i {
    color: var(--primary-color);
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.contact-info a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-info a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--accent-glow);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all var(--transition-normal);
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px var(--accent-glow);
    color: var(--primary-color);
}

.footer-bottom {
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid var(--glass-border);
}

.copyright-text {
    color: var(--text-muted);
    margin: 0;
    font-size: 14px;
}

/* ================================
   SCROLL TO TOP
================================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border: none;
    color: var(--primary-color);
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 1000;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px var(--accent-glow);
}

/* ================================
   FORM STYLES
================================ */
.form-control,
.form-select {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    background: var(--glass-bg);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 20px var(--accent-glow);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 8px;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .hero-section {
        min-height: 80vh;
        padding: 100px 0 60px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ================================
   UTILITY CLASSES
================================ */
.text-glow {
    text-shadow: 0 0 20px var(--accent-glow);
}

.glow-border {
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 20px var(--accent-glow);
}

.bg-dark-card {
    background: var(--dark-card);
}
