/* section-hero.css */

.hero-v3 {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hero-overlay), url('/img/junior-developer-sitting-down-desk-showing-laptop-with-source-code-senior-dev-asking-opinion-programer-writing-algorithm-interrupted-by-colleague-wanting-help-with-fixing-errors.jpg') center/cover no-repeat fixed;
    z-index: 0;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hero-overlay);
    z-index: 1;
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, var(--highlight) 0%, var(--success) 100%);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 8s ease-in-out infinite;
}

@keyframes particleFloat {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.1;
    }

    15% {
        transform: translate(20px, -40px) scale(1.2) rotate(45deg);
        opacity: 0.4;
    }

    30% {
        transform: translate(-15px, -80px) scale(0.8) rotate(90deg);
        opacity: 0.6;
    }

    45% {
        transform: translate(30px, -120px) scale(1.1) rotate(135deg);
        opacity: 0.3;
    }

    60% {
        transform: translate(-25px, -160px) scale(0.9) rotate(180deg);
        opacity: 0.5;
    }

    75% {
        transform: translate(15px, -200px) scale(1.3) rotate(225deg);
        opacity: 0.2;
    }

    90% {
        transform: translate(-10px, -240px) scale(0.7) rotate(315deg);
        opacity: 0.1;
    }

    100% {
        transform: translate(0, -280px) scale(1) rotate(360deg);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 2rem 1rem;
}

.hero-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--contrast);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.hero-heading .main-text {
    display: block;
    margin-bottom: 0.3rem;
}

.hero-heading .subtitle {
    color: var(--highlight);
    font-weight: 600;
}

.hero-content .lead {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--contrast);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.cta-wrapper {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    width: 100%;
}

.hero-cta {
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
    min-width: 160px;
    text-align: center;
    display: inline-block;
}

.hero-cta.btn-primary {
    background: var(--gradient);
    color: var(--contrast);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-cta.btn-outline-light {
    background: transparent;
    color: var(--contrast);
    border: 1px solid var(--contrast);
}

.hero-cta:hover {
    transform: translateY(-2px);
}

.hero-cta.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.hero-cta.btn-outline-light:hover {
    background: var(--accent-light);
    border-color: var(--primary);
    color: var(--dark);
}

.navbar {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar-shrink {
    background: rgba(255, 255, 255, 0.95) !important;
}

.navbar.shadow {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.custom-logo {
    max-height: 45px;
    width: auto;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-item {
    display: flex;
    align-items: center;
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--dark) !important;
    transition: all 0.3s ease;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

.nav-link.active {
    color: var(--primary) !important;
}

.nav-underline {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link.active .nav-underline {
    width: 100%;
}

.cta-link {
    background: var(--gradient) !important;
    border: none !important;
    transition: all 0.3s ease;
    padding: 0.4rem 1.2rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    height: 36px;
    font-size: 0.9rem;
}

.cta-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 178, 169, 0.3);
}

.language-switch {
    display: flex;
    align-items: center;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
    height: 36px;
    width: 120px;
    padding: 2px;
}

.language-option {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 18px;
    margin: 0;
    padding: 0 8px;
}

.language-option img {
    height: 18px;
    margin-right: 4px;
}

.language-option.active {
    background-color: var(--primary);
    color: white;
}

.language-option:not(.active) {
    color: var(--dark);
}

.language-option:not(.active):hover {
    background-color: #f3f4f6;
}

@media (max-width: 992px) {
    .navbar-nav {
        text-align: center;
        flex-direction: column;
        gap: 0.8rem;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 0.6rem 0;
    }

    .cta-link {
        width: fit-content;
        margin: 0.4rem auto;
        height: auto;
    }

    .language-switch {
        margin: 0.4rem auto;
        width: 120px;
    }
}

@media (max-width: 768px) {
    .hero-v3 {
        min-height: 100vh;
        background-attachment: scroll;
        padding: 2rem 0;
    }

    .hero-content {
        padding: 2rem 1rem;
        max-width: 100%;
    }

    .hero-heading {
        font-size: clamp(1.5rem, 6vw, 2.8rem);
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }

    .hero-content .lead {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        margin-bottom: 1.8rem;
        padding: 0 0.5rem;
    }

    .cta-wrapper {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
        margin-top: 1.5rem;
    }

    .hero-cta {
        width: 100%;
        max-width: 280px;
        padding: 0.9rem 1.5rem;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .hero-v3 {
        min-height: 100vh;
        padding: 1.5rem 0;
        display: flex;
        align-items: center;
    }

    .hero-content {
        padding: 1rem 0.8rem;
        width: 100%;
    }

    .hero-heading {
        font-size: clamp(1.4rem, 7vw, 2.5rem);
        line-height: 1.25;
        margin-bottom: 1rem;
    }

    .hero-heading .main-text {
        margin-bottom: 0.5rem;
    }

    .hero-content .lead {
        font-size: clamp(0.85rem, 4vw, 1rem);
        line-height: 1.5;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .cta-wrapper {
        margin-top: 1.5rem;
        gap: 0.8rem;
    }

    .hero-cta {
        max-width: 260px;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 320px) {
    .cta-wrapper {
        padding: 0 1rem;
    }

    .hero-cta {
        max-width: 220px;
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        min-width: 180px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .nav-item {
        font-size: 0.85rem;
    }

    .language-option {
        font-size: 0.8rem;
    }

    .language-option img {
        height: 16px;
        margin-right: 3px;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}