/* ============================================
   Purple Dog Technologies - Hero Section
   File: css/sections/hero.css
   ============================================ */

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 2rem 80px;
}

/* Hero Background */
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(190, 55, 243, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(123, 31, 162, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 80%, rgba(74, 20, 140, 0.08) 0%, transparent 40%);
}

/* Hero Grid Pattern */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(190, 55, 243, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(190, 55, 243, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

/* Hero Particles */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

/* Hero Container */
.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Hero Content */
.hero-content {
    animation: slideUp 1s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(190, 55, 243, 0.1);
    border: 1px solid rgba(190, 55, 243, 0.3);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    font-family: 'Audiowide', cursive;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;;
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2rem;
    max-width: 540px;
    line-height: 1.8;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-family: 'Audiowide', cursive;
    font-size: 2.5rem;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 0.5rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    animation: slideUp 1s ease-out 0.3s both;
}

.hero-visual-main {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    background: var(--gradient-glow);
    border-radius: var(--radius-full);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Code Window */
.code-window {
    width: 90%;
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(190, 55, 243, 0.2);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red { background: #ff5f56; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green { background: #27ca40; }

.code-content {
    padding: 20px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
}

.code-line {
    display: flex;
    gap: 12px;
}

.code-number {
    color: rgba(255, 255, 255, 0.2);
    user-select: none;
    min-width: 24px;
}

.code-text .keyword { color: #c792ea; }
.code-text .function { color: #82aaff; }
.code-text .string { color: #c3e88d; }
.code-text .variable { color: #f78c6c; }
.code-text .comment { color: #546e7a; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 0;
    }

    .hero-subtitle {
        margin: 0 auto 2rem;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 1.5rem 60px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .stat-item {
        text-align: center;
    }

    .floating-card {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 1rem 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}
