/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    --hero-text-duration: 0.5s;
    --hero-fade-duration: 1.5s;
    --hero-fade-delay: 0.5s;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--section-bg-1));
    z-index: 1;
    pointer-events: none;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
}

.hero-image.show {
    animation: heroFadeIn var(--hero-fade-duration) ease-in forwards;
    animation-delay: var(--hero-fade-delay);
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 60%,
        transparent 100%);
    z-index: 2;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    opacity: 0;
    pointer-events: none;
}

.hero-image img.show-image {
    opacity: 1;
    pointer-events: auto;
}

.hero-image video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    transition: opacity 1s ease-out;
    opacity: 1;
}

.hero-image video.hide-video {
    opacity: 0;
    pointer-events: none;
}

.hero-image video.fade-out {
    opacity: 0;
}

.hero-text {
    position: absolute;
    top: 30%;
    left: 5%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-text h1 {
    font-size: 4.5rem;
    margin-bottom: clamp(0.5rem, 2vw, 1.5rem);
    letter-spacing: -1px;
    color: var(--light-text);
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.9),
                 0 0 20px rgba(0, 0, 0, 0.7);
    opacity: 0;
}

.hero-text h1.hero-animate {
    animation: heroFadeIn var(--hero-text-duration) ease-out both;
}

.hero-text h2 {
    font-size: 2rem;
    font-weight: 600;
    padding-left: clamp(40px, 8vw, 120px);
    color: var(--primary-color);
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.9),
                 0 0 20px rgba(0, 0, 0, 0.7);
    opacity: 0;
}

.hero-text h2.hero-animate {
    animation: heroFadeIn var(--hero-text-duration) ease-out both;
    animation-delay: 0.2s;
}


/* Location Badge */
.location-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    background-color: rgba(10, 10, 10, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    border: 1px solid rgba(255, 107, 53, 0.3);
    opacity: 0;
    z-index: 3;
}

.location-badge.show {
    animation: heroFadeIn var(--hero-fade-duration) ease-in forwards;
    animation-delay: var(--hero-fade-delay);
}

.location-badge i {
    margin-right: 8px;
    color: var(--primary-color);
}

/* Hero Actions (Contact & CV buttons) */
.hero-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    opacity: 0;
    z-index: 3;
}

.hero-actions.show {
    animation: heroFadeIn var(--hero-fade-duration) ease-in forwards;
    animation-delay: var(--hero-fade-delay);
}

.hero-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background-color: rgba(10, 10, 10, 0.7);
    color: var(--primary-color);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.hero-action-btn * {
    pointer-events: none;
}

.hero-action-btn:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.4);
}

/* Tech Icons */
.tech-icons {
    position: absolute;
    bottom: 60px;
    left: 5%;
    display: flex;
    gap: 18px;
    z-index: 2;
    opacity: 0;
}

.tech-icons.show {
    animation: heroFadeIn var(--hero-fade-duration) ease-in forwards;
    animation-delay: var(--hero-fade-delay);
}

.tech-icon {
    position: relative;
    width: 48px;
    height: 48px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.tech-icon:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(255, 107, 53, 0.8));
}

.tech-icon::after {
    content: attr(data-name);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(10, 10, 10, 0.9);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border: 1px solid rgba(255, 107, 53, 0.5);
}

.tech-icon:hover::after {
    opacity: 1;
}
