/* ============================================================
   home.css — Landing Page Styles
   Styles specific to the home / landing page (index.html).
   ============================================================ */

/* ---- Hero Section ---- */
.hero {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

/* Greeting text above the name */
.hero__greeting {
    font-family: var(--font-mono);
    font-size: var(--text-base);
    color: var(--color-accent-primary);
    margin-bottom: var(--space-sm);
}

/* Main name / headline */
.hero__title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-md);
    line-height: 1.1;
}

/* Gradient text effect on name */
.hero__title span {
    background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-tertiary), var(--color-accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tagline under the name */
.hero__tagline {
    font-size: var(--text-xl);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

/* CTA buttons row */
.hero__cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Animated background canvas — sits behind hero content */
.hero__bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
}

/* Decorative gradient orbs behind the hero */
.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.hero__orb--1 {
    width: 400px;
    height: 400px;
    background: var(--color-accent-primary-20);
    top: -10%;
    right: -5%;
    animation: float-orb 8s ease-in-out infinite alternate;
}

.hero__orb--2 {
    width: 300px;
    height: 300px;
    background: var(--color-accent-secondary-20);
    bottom: -10%;
    left: -5%;
    animation: float-orb 10s ease-in-out infinite alternate-reverse;
}

.hero__orb--3 {
    width: 200px;
    height: 200px;
    background: var(--color-accent-tertiary-20);
    top: 40%;
    right: 20%;
    animation: float-orb 6s ease-in-out infinite alternate;
}

/* Floating animation for decorative orbs */
@keyframes float-orb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

/* ---- About Preview Section ---- */
.about-preview {
    background: var(--color-bg-secondary);
}

.about-preview__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-preview__text h3 {
    margin-bottom: var(--space-md);
}

.about-preview__text p {
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

/* Skills tags row */
.about-preview__skills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-lg);
}

/* Animated stats / fun facts */
.about-preview__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

/* Individual stat card */
.stat-card {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: var(--space-lg);
    text-align: center;
    transition: all var(--transition-base);
}

.stat-card:hover {
    border-color: var(--color-accent-primary-20);
    box-shadow: var(--shadow-glow-primary);
    transform: translateY(-2px);
}

/* Big number in the stat card */
.stat-card__number {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    color: var(--color-accent-primary);
    display: block;
    margin-bottom: var(--space-2xs);
}

/* Label under the stat number */
.stat-card__label {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

/* ---- Featured Projects Section ---- */
.featured-projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

/* Project card with accent border on hover */
.project-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.project-card:hover {
    border-color: var(--color-accent-primary-20);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), var(--shadow-glow-primary);
}

/* Project card image area */
.project-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--color-border);
}

/* Placeholder for projects without images */
.project-card__image-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-3xl);
    border-bottom: 1px solid var(--color-border);
}

/* Project card body content */
.project-card__body {
    padding: var(--space-lg);
}

.project-card__title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-xs);
}

.project-card__desc {
    font-size: var(--text-sm);
    margin-bottom: var(--space-md);
    color: var(--color-text-secondary);
}

/* Tags row inside project card */
.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2xs);
    margin-bottom: var(--space-md);
}

/* Links row in project card */
.project-card__links {
    display: flex;
    gap: var(--space-md);
}

.project-card__link {
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-accent-primary);
    transition: color var(--transition-fast);
}

.project-card__link:hover {
    color: var(--color-accent-secondary);
}

/* ---- Playground Preview Section ---- */
.playground-preview {
    background: var(--color-bg-secondary);
}

.playground-preview__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

/* Playground item card — playful gradient borders */
.playground-card {
    position: relative;
    background: var(--color-bg-tertiary);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
    overflow: hidden;
}

/* Rainbow gradient border effect on hover */
.playground-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-lg);
    padding: 2px;
    background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-tertiary), var(--color-accent-secondary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.playground-card:hover::before {
    opacity: 1;
}

.playground-card:hover {
    transform: translateY(-4px);
}

/* Big emoji/icon in playground card */
.playground-card__icon {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-md);
    display: block;
}

.playground-card__title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xs);
}

.playground-card__desc {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

/* ---- CTA / Contact Section ---- */
.cta-section {
    text-align: center;
}

.cta-section__links {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin-top: var(--space-xl);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {

    /* Stack hero content */
    .hero__content {
        text-align: center;
    }

    .hero__cta {
        justify-content: center;
    }

    /* Stack about grid */
    .about-preview__grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .about-preview__skills {
        justify-content: center;
    }

    /* Shrink orbs on mobile */
    .hero__orb--1 {
        width: 250px;
        height: 250px;
    }

    .hero__orb--2 {
        width: 180px;
        height: 180px;
    }

    .hero__orb--3 {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {

    /* Full-width buttons on small phones */
    .hero__cta {
        flex-direction: column;
        align-items: center;
    }

    .hero__cta .btn {
        width: 100%;
        justify-content: center;
    }
}