/* ===================================
   7TechSystems - Modern Hero Section
   Premium High-UI Design
   =================================== */

/* ===================================
   Hero Section Container
   =================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    /* Show Cyber Tech Animation */
    padding-top: 80px;
}

/* Animated Gradient Background Overlay */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(230, 30, 67, 0.05) 0%,
            transparent 50%,
            rgba(230, 30, 67, 0.02) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Floating Geometric Shapes */
.hero-section::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(230, 30, 67, 0.1), rgba(230, 30, 67, 0.05));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(60px);
    animation: float 8s ease-in-out infinite, morphShape 12s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes morphShape {

    0%,
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
}

/* Particles Container Enhancement */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
}

/* ===================================
   Hero Content Container
   =================================== */

.hero-content {
    position: relative;
    z-index: 100;
    text-align: center;
    max-width: 1200px;
    padding: var(--space-3xl) var(--space-lg);
    pointer-events: auto;
}

/* ===================================
   Holographic Circuit Badge (v2)
   =================================== */

.hero-badge {
    margin-bottom: var(--space-xl);
    display: inline-flex;
    justify-content: center;
    width: 100%;
    perspective: 1000px;
}

.circuit-badge {
    position: relative;
    padding: 10px 30px;
    background: rgba(230, 30, 67, 0.03);
    border: 1px solid rgba(230, 30, 67, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.circuit-line {
    position: absolute;
    background: var(--primary-red);
    box-shadow: 0 0 10px var(--primary-red);
    transition: all 0.3s ease;
}

.circuit-line.top {
    top: 0;
    left: 0;
    height: 1px;
    width: 0;
    animation: traceLineH 3s infinite;
}

.circuit-line.bottom {
    bottom: 0;
    right: 0;
    height: 1px;
    width: 0;
    animation: traceLineH 3s infinite reverse;
}

.circuit-line.left {
    top: 0;
    left: 0;
    width: 1px;
    height: 0;
    animation: traceLineV 3s infinite 1.5s;
}

.circuit-line.right {
    bottom: 0;
    right: 0;
    width: 1px;
    height: 0;
    animation: traceLineV 3s infinite 1.5s;
}

@keyframes traceLineH {

    0%,
    100% {
        width: 0;
        left: 0;
    }

    50% {
        width: 100%;
        left: 0;
    }

    51% {
        width: 100%;
        left: auto;
        right: 0;
    }

    99% {
        width: 0;
        left: auto;
        right: 0;
    }
}

@keyframes traceLineV {

    0%,
    100% {
        height: 0;
        top: 0;
    }

    50% {
        height: 100%;
        top: 0;
    }

    51% {
        height: 100%;
        top: auto;
        bottom: 0;
    }

    99% {
        height: 0;
        top: auto;
        bottom: 0;
    }
}

.badge-glitch-text {
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
    z-index: 2;
    animation: textDecrypt 5s infinite;
}

@keyframes textDecrypt {

    0%,
    90%,
    100% {
        filter: blur(0);
        opacity: 1;
        transform: skewX(0);
    }

    92% {
        filter: blur(2px);
        opacity: 0.8;
        transform: skewX(10deg);
        color: var(--primary-red);
    }

    94% {
        filter: blur(0);
        opacity: 1;
        transform: skewX(-10deg);
    }
}

.badge-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(230, 30, 67, 0.08) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: auraPulse 4s ease-in-out infinite;
}

@keyframes auraPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* ===================================
   Hero Title - Modern Typography
   =================================== */

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.hero-title .text-gradient {
    background: linear-gradient(135deg,
            var(--primary-red) 0%,
            #FF2D55 50%,
            var(--primary-red) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
    position: relative;
    display: inline-block;
}

.hero-title .text-gradient::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--primary-red) 50%,
            transparent 100%);
    border-radius: var(--radius-full);
    opacity: 0.5;
    animation: shimmerLine 3s ease-in-out infinite;
}

@keyframes shimmerLine {

    0%,
    100% {
        transform: scaleX(0.8);
        opacity: 0.3;
    }

    50% {
        transform: scaleX(1);
        opacity: 0.6;
    }
}

/* ===================================
   Hero Subtitle
   =================================== */

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: var(--font-normal);
}

/* ===================================
   Hero CTA Buttons
   =================================== */

.hero-cta {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-3xl);
}

.hero-cta .btn {
    position: relative;
    overflow: hidden;
    font-size: var(--font-size-base);
    padding: var(--space-md) var(--space-2xl);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.hero-cta .btn-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, #FF2D55 100%);
    box-shadow:
        0 10px 30px rgba(230, 30, 67, 0.4),
        0 0 0 0 rgba(230, 30, 67, 0.5);
    animation: pulseGlow 2s ease-in-out infinite;
}

.hero-cta .btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 15px 40px rgba(230, 30, 67, 0.5),
        0 0 30px rgba(230, 30, 67, 0.4);
}

.hero-cta .btn-outline {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--primary-red);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(230, 30, 67, 0.2);
}

.hero-cta .btn-outline:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: #ffffff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(230, 30, 67, 0.4);
}


@keyframes pulseGlow {

    0%,
    100% {
        box-shadow:
            0 10px 30px rgba(230, 30, 67, 0.4),
            0 0 0 0 rgba(230, 30, 67, 0.5);
    }

    50% {
        box-shadow:
            0 10px 30px rgba(230, 30, 67, 0.4),
            0 0 20px 10px rgba(230, 30, 67, 0.3);
    }
}

/* ===================================
   Hero Stats - 3D Cards
   =================================== */

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-3xl);
    perspective: 1000px;
}

.stat-item {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-base);
    transform-style: preserve-3d;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--primary-red) 50%,
            transparent 100%);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.stat-item:hover {
    transform: translateY(-10px) rotateX(5deg);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(230, 30, 67, 0.3);
    box-shadow:
        0 20px 60px rgba(230, 30, 67, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-item .counter {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-red) 0%, #FF2D55 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xs);
    line-height: 1;
    filter: drop-shadow(0 2px 10px rgba(230, 30, 67, 0.3));
}

.stat-item p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

/* ===================================
   Floating Decorative Elements
   =================================== */

.hero-section .floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 2;
    pointer-events: none;
}

.hero-section .floating-shape-1 {
    top: 20%;
    left: 5%;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-red), transparent);
    animation: float 6s ease-in-out infinite;
}

.hero-section .floating-shape-2 {
    bottom: 20%;
    right: 8%;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-dark), transparent);
    animation: float 8s ease-in-out infinite reverse;
}

.hero-section .floating-shape-3 {
    top: 50%;
    left: 10%;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-red), transparent);
    animation: float 7s ease-in-out infinite;
    animation-delay: 1s;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1024px) {
    .hero-section {
        min-height: 90vh;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: var(--space-3xl) 0;
    }

    .hero-content {
        padding: var(--space-2xl) var(--space-md);
    }

    .hero-cta {
        flex-direction: column;
        gap: var(--space-md);
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .hero-section::after {
        width: 250px;
        height: 250px;
    }

    .floating-shape {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .stat-item {
        padding: var(--space-lg);
    }
}

/* ===================================
   Dark Theme Enhancements
   =================================== */

[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg,
            var(--bg-darker) 0%,
            var(--bg-primary) 50%,
            var(--bg-secondary) 100%);
}

[data-theme="dark"] .hero-badge .badge {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .stat-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .stat-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(230, 30, 67, 0.4);
}

/* ===================================
   Performance Optimizations
   =================================== */

.hero-section * {
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {

    .hero-section::before,
    .hero-section::after,
    .floating-shape,
    .hero-badge .badge i {
        animation: none;
    }

    .stat-item:hover {
        transform: translateY(-5px);
    }
}