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

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 50px;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--primary-light);
    font-weight: 500;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22C55E;
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

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

.hero-stat .stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.hero-stat .stat-suffix {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-light);
}

.hero-stat .stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

.hero-visual {
    position: relative;
}

.hero-code-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.hero-code-block::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.2;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
}

.code-dots {
    display: flex;
    gap: 8px;
}

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

.code-dots span:nth-child(1) {
    background: #EF4444;
}

.code-dots span:nth-child(2) {
    background: #F59E0B;
}

.code-dots span:nth-child(3) {
    background: #22C55E;
}

.code-title {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.code-body {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.8;
    overflow-x: auto;
}

.code-body code {
    font-family: inherit;
}

.code-keyword {
    color: #C084FC;
}

.code-var {
    color: #60A5FA;
}

.code-prop {
    color: #34D399;
}

.code-string {
    color: #FCD34D;
}

.code-method {
    color: #60A5FA;
}

.code-param {
    color: #FB923C;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--border-color);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    width: 100%;
    height: 50%;
    background: var(--primary);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% {
        top: -50%;
    }

    100% {
        top: 100%;
    }
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-light);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
}

.service-link:hover {
    gap: 10px;
}

/* About Preview */
.about-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    color: var(--text-secondary);
    margin-bottom: 36px;
    font-size: 16px;
    line-height: 1.8;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 36px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    font-size: 18px;
}

.feature-item h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 13px;
    color: var(--text-muted);
}

.about-image-stack {
    position: relative;
    min-height: 450px;
}

.about-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-md);
    animation: floatCard 6s ease-in-out infinite;
}

.about-card-1 {
    top: 0;
    left: 20%;
    animation-delay: 0s;
}

.about-card-2 {
    top: 80px;
    right: 0;
    animation-delay: 2s;
}

.about-card-3 {
    top: 160px;
    left: 10%;
    animation-delay: 4s;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.about-card-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.about-card-number {
    font-size: 24px;
    font-weight: 800;
    display: block;
}

.about-card-label {
    font-size: 12px;
    color: var(--text-muted);
}

.terminal-block {
    position: absolute;
    bottom: 0;
    left: 5%;
    right: 5%;
    background: #0D1117;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.terminal-header {
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    gap: 6px;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot.red {
    background: #EF4444;
}

.terminal-dot.yellow {
    background: #F59E0B;
}

.terminal-dot.green {
    background: #22C55E;
}

.terminal-body {
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 2;
}

.terminal-prompt {
    color: #22C55E;
}

.terminal-output {
    color: var(--text-muted);
    padding-left: 16px;
}

.terminal-cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}