/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: #000;
}

/* Background GIF */
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Transparent Black Overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    transition: background 0.3s ease;
}

/* Text & Overlay Box */
.text-overlay {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
}

/* Text styling */
.hero h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #fff;
}

.hero .intro-line {
    font-size: 1.2rem;
    color: #fff;
}

/* Social links */
.hero .social-links a {
    font-size: 1.5rem;
    margin-right: 10px;
    transition: transform 0.3s;
    color: #fff;
}

.hero .social-links a:hover {
    transform: scale(1.2);
}

/* Profile Photo with float animation */
.hero img.profile-photo {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 50%;
    border: 5px solid #137a0b;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    margin-bottom: 30px;
    transition: transform 0.6s ease, box-shadow 0.6s ease;
    position: relative;
}

/* Hover effect */
.hero img.profile-photo:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.7);
}

/* Skills badges */
.text-overlay .badge {
    margin-right: 5px;
    margin-top: 5px;
}

/* ================== Responsive Adjustments ================== */

/* Large tablets */
@media (max-width: 1200px) {
    .hero h2 {
        font-size: 2.8rem;
    }

    .hero .intro-line {
        font-size: 1.15rem;
    }

    .hero img.profile-photo {
        max-width: 350px;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 2.5rem;
    }

    .hero .intro-line {
        font-size: 1.1rem;
    }

    .hero img.profile-photo {
        max-width: 250px;
        margin-bottom: 20px;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding: 25px 0;
    }

    .hero .row {
        flex-direction: column !important;
        justify-content: center !important;
        text-align: center !important;
        align-items: center !important;
    }

    .hero img.profile-photo {
        order: -1 !important;
        max-width: 180px;
        margin-top: 40px;
        z-index: 5 !important;
    }

    .text-overlay {
        max-width: 97%;
        text-align: justify !important;
        padding: 15px;
        position: relative;
        z-index: 3;
    }
}

/* Small Mobile Portrait */
@media (max-width: 576px) {
    .hero h2 {
        font-size: 1.8rem;
    }

    .hero .intro-line {
        font-size: 0.95rem;
    }

    .hero img.profile-photo {
        max-width: 150px;
        margin-top: 60px;
        margin-bottom: 0;
    }

    .text-overlay {
        text-align: justify !important;
    }

    .hero .social-links a {
        font-size: 1.1rem;
        margin: 0 3px;
    }
}