/* --- Hero Section --- */
.hero {
    height: calc(100vh - 80px);
    background-color: var(--bg-color);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero::before {
    content: "+";
    font-size: 24px;
    color: #868686;
    position: absolute;
    top: 20px;
    left: 50px;
}

.hero::after {
    content: "+";
    font-size: 24px;
    color: #868686;
    position: absolute;
    bottom: 20px;
    right: 50px;
}

.hero .container {
    max-width: 800px;
    margin: 0 auto;
}

.tag {
    display: inline-block;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero span.grad {
    background: var(--grad-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtext {
    color: #555;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* 2-column grid for hero section */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    max-width: 1100px;
}

/* LEFT SIDE (Animation) */
.hero-left {
    display: flex;
    justify-content: center;
}

.work-animation {
    width: 100%;
    max-width: 400px;
    height: 400px;
    border: none;
}

/* RIGHT SIDE (Text + Buttons) */
.hero-right {
    text-align: left;
}

.intro-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.intro-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

/* Social Buttons */
.social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.btn-social {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    padding: 0.3rem 0.6rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-social:hover {
    transform: translateY(-3px);
}

.btn-social.github {
    background: #24292e;
    color: #fff;
}

.btn-social.github:hover {
    background: #000;
}

.btn-social.linkedin {
    background: #24292e;
    color: #fff;
}

.btn-social.linkedin:hover {
    background: #000;
}

.btn-social.x {
    background: #24292e;
    color: #fff;
}

.btn-social.x:hover {
    background: #000;
}

.btn-social.leetcode {
    background: #24292e;
    color: #fff;
}

.btn-social.leetcode:hover {
    background: #000;
}

.btn-social.mail {
    background: #24292e;
    color: #fff;
}

.btn-social.mail:hover {
    background: #000;
}

.btn-social.resume {
    background: #fff;
    color: #000;
    border: 1px solid #000;
}

.btn-social.resume:hover {
    background: #000;
    color: #fff;
}

/* --- Hero Section Responsive Fix --- */
@media (max-width: 1100px) {
    .hero {
        padding: 60px 15px;
    }

    .hero-grid {
        gap: 1.5rem;
    }

    .work-animation {
        max-width: 350px;
        height: auto;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        padding: 50px 35px;
    }

    .hero-grid {
        grid-template-columns: 1fr; /* stack left + right vertically */
        justify-items: center;
        text-align: center;
    }

    .hero-left,
    .hero-right {
        width: calc(100% -50px);
    }

    .work-animation {
        max-width: 300px;
        height: auto;
    }

    .intro-title {
        font-size: 1.8rem;
    }

    .intro-text {
        font-size: 1rem;
    }

    .social-buttons {
        justify-content: center;
        gap: 0.6rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .work-animation {
        max-width: 300px;
        height: auto;
    }

    .intro-title {
        font-size: 1.5rem;
    }

    .intro-text {
        font-size: 0.95rem;
    }

    .social-buttons {
        gap: 0.5rem;
    }
}
