/* Hero Section Styles */
.hero-bg,
.hero-overlay {
    z-index: 0 !important;
}
.hero-scaled > img{
    object-fit: cover;    /* fill + preserve aspect ratio */
    object-position: 50% 50%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    z-index: var(--z-back);
}

.hero-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-left: 8%;
    padding: 3rem;
    z-index: var(--z-normal);
}

.hero-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero-bg {
    z-index: var(--z-back);
}
.hero-overlay {
    z-index: var(--z-back);
}

.hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(120deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.hero-title {
    font-size: 3.75rem;
    margin-bottom: 1rem;
    color: var(--light-text);
    font-weight: 700;
    line-height: 1.1;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--light-color);
    font-weight: 300;
    max-width: 90%;
    line-height: 1.4;
}

.hero-socials {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    font-size: 1.2rem;
    transition: var(--transition);
}

.hero-social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.hero-photo {
    position: absolute;
    bottom: -20px;
    right: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    display: none;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--light-text);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: var(--z-normal);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Media Queries */
@media (min-width: 768px) {
    .hero-photo {
        display: block;
    }
}

@media (max-width: 992px) {
    .hero-content {
        margin-left: 5%;
        max-width: 500px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        margin: 0 auto;
        padding: 2rem;
        text-align: center;
    }

    .hero-card {
        padding: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-socials {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-content {
        padding: 1.5rem;
    }

    .hero-card {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}