@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

/* Root Variables */

:root {
    --html-orange: #E34F26;
    --css-blue: #1572B6;
    --dark: #05070a;
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--dark);
    color: white;
    overflow-x: hidden;
}

/* Premium Mesh Gradient Background */

.mesh-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 80% 20%, rgba(21, 114, 182, 0.15), transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(227, 79, 38, 0.15), transparent 40%);
}

/* Hero Grid Layout */

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    padding: 120px 8% 0 8%;
    align-items: center;
    gap: 5rem;
}

.content-side {
    max-width: 550px;
}

.badge {
    color: var(--html-orange);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    display: block;
}

h1 {
    font-size: clamp(2rem, 4.5vw, 4rem);
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(90deg, var(--html-orange), var(--css-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.cta-btns {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

.btn-fill {
    background: white;
    color: black;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.btn-fill:hover {
    background: var(--css-blue);
    color: white;
    transform: translateY(-3px);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

.stats-row {
    display: flex;
    gap: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

.stat strong {
    font-size: 1.3rem;
    display: block;
    margin-bottom: 4px;
    font-size: 1.8rem;
    background: linear-gradient(90deg, var(--html-orange), var(--css-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat span {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Visual Side - Card Stack */

.visual-side {
    position: relative;
    display: flex;
    justify-content: center;
}

.preview-stack {
    position: relative;
    width: 100%;
    height: 450px;
}

.glass-preview-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 15px;
    width: 320px;
    position: absolute;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    animation: float 6s infinite ease-in-out;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
}

.card-title {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.card-img-box {
    height: 180px;
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tags {
    display: flex;
    gap: 8px;
}

.tags span {
    font-size: 0.6rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.tag-html {
    background: rgba(227, 79, 38, 0.2);
    color: var(--html-orange);
}

.tag-css {
    background: rgba(21, 114, 182, 0.2);
    color: var(--css-blue);
}

.secondary-card {
    bottom: 20px;
    right: 20px;
    transform: scale(0.9);
    z-index: -1;
    opacity: 0.6;
    animation-delay: -3s;
}

@keyframes float {

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

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

/* Mobile Responsiveness */

@media (max-width: 1024px) {

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 140px;
        gap: 2rem;
    }

    .content-side {
        max-width: 80%;
        margin: 0 auto;
    }

    .visual-side {
        display: none;
    }

    .cta-btns {
        justify-content: center;
    }
}

@media (max-width: 700px) {

    .content-side {
        max-width: 100%;
    }
}

@media (max-width: 500px) {

    .cta-btns {
        flex-direction: column;
    }

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

    .stat strong {
        font-size: 1.2rem;
    }
}