/* BaroGear Gaming Hero Section - Underwater Sci-Fi Theme */

.underwater-hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0f1c, #1a2332, #0f1419);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 255, 136, 0.05) 0%, transparent 50%);
    color: white;
    padding-top: 80px;
}

/* Animated Grid Overlay */
.underwater-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Underwater Particles */
.underwater-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.underwater-particles::before,
.underwater-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 212, 255, 0.6);
    border-radius: 50%;
    animation: float-particle 8s ease-in-out infinite;
}

.underwater-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.underwater-particles::after {
    top: 60%;
    right: 15%;
    animation-delay: 4s;
}

@keyframes float-particle {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) translateX(-5px);
        opacity: 1;
    }
    75% {
        transform: translateY(-30px) translateX(15px);
        opacity: 0.6;
    }
}

.hero-container {
    position: relative;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    z-index: 2;
}

.hero-overlay {
    display: none;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 3;
}

.hero-text {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-bg);
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 100%, 15px 100%);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: badge-shine 3s ease-in-out infinite;
}

@keyframes badge-shine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(45deg, #00d4ff, #0099cc, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    animation: title-underline 2s ease-in-out infinite alternate;
}

@keyframes title-underline {
    0% { width: 100px; }
    100% { width: 200px; }
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #fff;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
    letter-spacing: 2px;
    position: relative;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 90%;
    line-height: 1.7;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
}

.cta-btn.primary {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: var(--dark-bg);
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 100%, 20px 100%);
    box-shadow: 
        0 5px 15px rgba(0, 212, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cta-btn.primary::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 ease;
}

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

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(0, 212, 255, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cta-btn.secondary {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: 2px solid var(--primary-color);
    backdrop-filter: blur(10px);
    clip-path: none;
    position: relative;
}

.cta-btn.secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.cta-btn.secondary:hover::before {
    opacity: 0.1;
}

.cta-btn.secondary:hover {
    color: var(--primary-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.pulse {
    animation: pulse-icon 2s ease-in-out infinite;
    margin-left: 0.5rem;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Equipment Display */
.hero-equipment {
    position: relative;
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.equipment-model {
    position: relative;
    width: 100%;
    max-width: 500px;
    animation: float-equipment 6s ease-in-out infinite;
}

@keyframes float-equipment {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(1deg);
    }
    50% {
        transform: translateY(-10px) rotate(0deg);
    }
    75% {
        transform: translateY(-20px) rotate(-1deg);
    }
}

.equipment-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    filter: 
        drop-shadow(0 0 30px rgba(0, 212, 255, 0.6))
        drop-shadow(0 0 60px rgba(0, 212, 255, 0.3));
    transition: filter 0.3s ease;
}

.equipment-model:hover .equipment-image {
    filter: 
        drop-shadow(0 0 40px rgba(0, 212, 255, 0.8))
        drop-shadow(0 0 80px rgba(0, 212, 255, 0.4));
}

.equipment-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse-glow 4s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Equipment Stats */
.equipment-stats {
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% calc(100% - 15px), 15px 100%);
}

.stat-bar {
    margin-bottom: 1rem;
}

.stat-bar:last-child {
    margin-bottom: 0;
}

.stat-name {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.stat-progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.3rem;
    position: relative;
}

.stat-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: stat-shimmer 2s ease-in-out infinite;
}

@keyframes stat-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.stat-fill {
    height: 100%;
    border-radius: 4px;
    position: relative;
    width: 0;
    animation: fillWidth 2s ease-out forwards;
    animation-delay: 1s;
}

@keyframes fillWidth {
    from { width: 0; }
}

.stat-value {
    float: right;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Floating Items */
.floating-items {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-item {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    animation: float-item 8s ease-in-out infinite;
    animation-delay: var(--delay);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% calc(100% - 10px), 10px 100%);
}

.floating-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    animation: item-glow 4s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes item-glow {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.3; }
}

@keyframes float-item {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(var(--distance)) rotate(2deg);
    }
    50% {
        transform: translateY(calc(var(--distance) * 0.5)) rotate(0deg);
    }
    75% {
        transform: translateY(calc(var(--distance) * 1.2)) rotate(-2deg);
    }
}

.floating-item .item-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: 
        drop-shadow(0 0 10px rgba(0, 212, 255, 0.5))
        brightness(1.2);
    transition: filter 0.3s ease;
}

/* Responsive Design */
@media (min-width: 1200px) {
    .equipment-model { max-width: 450px; }
    .floating-item { width: 90px; height: 90px; }
    .floating-item .item-icon { width: 60px; height: 60px; }
}

@media (max-width: 1200px) {
    .hero-title { font-size: 4rem; }
    .hero-subtitle { font-size: 1.6rem; }
    .hero-description { font-size: 1.1rem; }
}

@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }
    
    .hero-text {
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .hero-title { 
        font-size: 3.5rem; 
        line-height: 1.1; 
        letter-spacing: 2px; 
    }
    .hero-subtitle { font-size: 1.4rem; }
    .hero-description { 
        font-size: 1.1rem; 
        margin-bottom: 2rem; 
        max-width: 100%;
    }
    .hero-cta { 
        justify-content: center; 
        gap: 1rem; 
        flex-wrap: wrap;
    }
    .cta-btn { 
        padding: 1rem 2rem; 
        font-size: 0.95rem;
    }
    
    .hero-equipment {
        width: 100%;
        margin-top: 1rem;
    }
    
    .equipment-model { 
        max-width: 400px; 
        margin: 0 auto; 
    }
    
    .floating-items { display: none; }
}

@media (max-width: 768px) {
    .underwater-hero { 
        height: 90vh; 
        min-height: 700px; 
        padding-top: 72px; 
    }
    
    .hero-container { 
        padding: 0 1rem; 
        align-items: flex-start; 
    }
    
    .hero-title { 
        font-size: 2.8rem; 
        line-height: 1.1; 
        letter-spacing: 1px; 
    }
    .hero-description { 
        max-width: 100%; 
        font-size: 1rem; 
        margin-bottom: 1.5rem;
    }
    .hero-cta { 
        flex-direction: column; 
        align-items: center; 
        gap: 0.75rem; 
    }
    .cta-btn { 
        padding: 0.9rem 1.8rem; 
        font-size: 0.9rem;
        width: 100%;
        max-width: 300px;
    }
    
    .equipment-model { 
        max-width: 350px; 
    }
    
    .equipment-stats { 
        position: static; 
        margin-top: 1rem; 
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title { 
        font-size: 2.2rem; 
        letter-spacing: 0.5px; 
        line-height: 1.1; 
    }
    .hero-subtitle { font-size: 1.2rem; }
    .hero-description { font-size: 0.95rem; }
    .cta-btn { 
        padding: 0.8rem 1.5rem; 
        font-size: 0.85rem;
    }
    .equipment-model { max-width: 300px; }
    .equipment-stats { display: none; }
    
    .floating-item { 
        width: 60px; 
        height: 60px; 
    }
    .floating-item .item-icon { 
        width: 35px; 
        height: 35px; 
    }
}

/* Performance Optimizations */
.hero-equipment,
.floating-item,
.equipment-glow {
    will-change: transform;
}

.equipment-image {
    will-change: filter;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .equipment-model,
    .floating-item,
    .equipment-glow,
    .hero-badge::before,
    .hero-title::after,
    .pulse,
    .stat-progress::before {
        animation: none !important;
    }
    
    .underwater-hero::before {
        animation: none !important;
    }
}