/* Modern Vitabex Hero Section */
.hero-section {
    min-height: 100vh;
    /* Full height for desktop */
    min-height: calc(var(--vh, 1vh) * 100);
    /* Mobile viewport fix */
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.85) 50%, rgba(51, 65, 85, 0.85) 100%),
        url('/img/brano-Mm1VIPqd0OA-unsplash.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    /* Safe area for devices with notches */
}

/* Modern gradient overlay */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(59, 130, 246, 0.1) 0%,
            rgba(16, 185, 129, 0.1) 50%,
            rgba(139, 92, 246, 0.1) 100%);
    z-index: 1;
}

/* Animated background pattern */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes backgroundFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(1deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-1deg);
    }
}



.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInUp 1s ease-out 0.2s both;
    color: white;
}

/* Hero section highlight style */
.hero-title .highlight {
    background: linear-gradient(135deg, #3b82f6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    position: relative;
    display: inline-block;
    font-size: 4.5rem;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    border-radius: 2px;
    animation: brandGlow 2s ease-in-out infinite alternate;
}

@keyframes brandGlow {
    0% {
        opacity: 0.6;
        transform: scaleX(0.8);
    }

    100% {
        opacity: 1;
        transform: scaleX(1);
    }
}



.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.4s both;
    color: #cbd5e1;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    color: white;
    padding: 1.125rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-hero-primary:hover::before {
    left: 100%;
}

.btn-hero-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    color: white;
}

.btn-hero-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1.125rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn-hero-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-hero-secondary:hover::before {
    opacity: 1;
}

.btn-hero-secondary:hover {
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
    color: white;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile-First Responsive Design */
@media (max-width: 575px) {
    .hero-section {
        min-height: auto;
        /* Changed from 100vh to auto to prevent excessive height */
        padding-top: 90px;
        /* Increased from 70px for more space above VITABEX */
        padding-bottom: 1rem;
        /* Reduced bottom padding */
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-content {
        padding: 2rem 1rem;
        /* Increased from 1.5rem for more space */
        max-width: 100%;
        margin-bottom: 2rem;
        /* Added margin bottom for space above image */
    }

    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 1rem;
        line-height: 1.1;
        margin-top: 1rem;
        /* Added margin top for space above VITABEX */
    }

    .hero-title .highlight {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        line-height: 1.5;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 320px;
        padding: 1.25rem 2rem;
        font-size: 1.1rem;
        min-height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Hide floating elements on mobile for better performance */
    .hero-floating {
        display: none;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .hero-section {
        padding-top: 75px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .hero-content {
        padding: 2rem 1.5rem;
        max-width: 700px;
    }

    .hero-title {
        font-size: 2.75rem;
        margin-bottom: 1.25rem;
    }

    .hero-title .highlight {
        font-size: 3.75rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .hero-cta {
        flex-direction: row;
        gap: 1.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        min-width: 200px;
        padding: 1.125rem 2rem;
    }
}

@media (min-width: 992px) {
    .hero-section {
        padding-top: 80px;
    }

    .hero-content {
        padding: 2rem;
        max-width: 800px;
    }

    .hero-title {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }

    .hero-cta {
        flex-direction: row;
        gap: 1rem;
        justify-content: center;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {

    .btn-hero-primary:hover,
    .btn-hero-secondary:hover {
        transform: none;
        box-shadow: none;
    }

    .btn-hero-primary:active {
        background: linear-gradient(135deg, #1e40af, #1d4ed8);
        transform: scale(0.98);
    }

    .btn-hero-secondary:active {
        background: rgba(59, 130, 246, 0.1);
        transform: scale(0.98);
    }
}

/* Landscape mobile optimization */
@media (max-width: 991px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding-top: 60px;
        padding-bottom: 2rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-cta {
        flex-direction: row;
        gap: 1rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: auto;
        min-width: 160px;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Modern floating animation for decorative elements */
.hero-floating {
    position: absolute;
    animation: modernFloating 6s ease-in-out infinite;
    z-index: 1;
}

@keyframes modernFloating {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }

    25% {
        transform: translateY(-15px) rotate(90deg);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 1;
    }

    75% {
        transform: translateY(-15px) rotate(270deg);
        opacity: 0.8;
    }
}

.hero-floating-1 {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
    font-size: 2rem;
}

.hero-floating-2 {
    top: 65%;
    right: 12%;
    animation-delay: 2s;
    font-size: 1.5rem;
}

.hero-floating-3 {
    bottom: 25%;
    left: 15%;
    animation-delay: 4s;
    font-size: 1.8rem;
}

/* Additional modern decorative elements */
.hero-section .hero-floating::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
    }
}

/* 
Hero Image Section */
.hero-image {
    position: relative;
    z-index: 2;
    animation: fadeInRight 1s ease-out 0.3s both;
}

.hero-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-main-image {
    width: 100%;
    height: auto;
    min-height: 400px;
    max-height: 500px;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease;
    display: block;
    background-color: #f3f4f6;
}

.hero-image-container:hover .hero-main-image {
    transform: scale(1.05);
}

/* Decorative elements for hero image */
.hero-image-decorative {
    position: absolute;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(16, 185, 129, 0.9));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    animation: floatDecorative 4s ease-in-out infinite;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.hero-decorative-1 {
    width: 50px;
    height: 50px;
    top: 15%;
    right: 15%;
    animation-delay: 0s;
}

.hero-decorative-2 {
    width: 40px;
    height: 40px;
    bottom: 20%;
    left: 10%;
    animation-delay: 1.5s;
}

.hero-decorative-3 {
    width: 45px;
    height: 45px;
    top: 50%;
    left: -10px;
    animation-delay: 3s;
}

@keyframes floatDecorative {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(180deg);
    }
}

/* Stats overlay */
.hero-stats-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1rem;
    display: flex;
    justify-content: space-around;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat-item {
    text-align: center;
    color: white;
}

.hero-stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive adjustments for two-column layout */
@media (max-width: 991px) {
    .hero-content {
        text-align: center;
        margin-bottom: 3rem;
    }

    .hero-image {
        margin-top: 2rem;
        margin-bottom: 1rem;
        /* Reduced from 3rem to 1rem to prevent excessive height */
    }

    .hero-main-image {
        min-height: 300px;
    }

    .hero-stats-overlay {
        bottom: 15px;
        left: 15px;
        right: 15px;
        padding: 0.75rem;
    }

    .hero-stat-number {
        font-size: 1.25rem;
    }

    .hero-stat-label {
        font-size: 0.75rem;
    }
}

@media (min-width: 992px) {
    .hero-content {
        text-align: left;
        padding-right: 3rem;
        padding-left: 0;
        margin-left: -1rem;
    }

    .hero-cta {
        justify-content: flex-start;
    }

    .hero-image {
        padding-left: 2rem;
        margin-right: -1rem;
        margin-bottom: 0;
        /* Reset margin bottom for desktop */
    }
}

@media (max-width: 575px) {
    .hero-image-decorative {
        display: none;
    }

    .hero-main-image {
        min-height: 250px;
        margin-bottom: 1rem;
        /* Added bottom margin for image */
    }

    .hero-stats-overlay {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 2rem;
        /* Added bottom margin for stats overlay */
    }

    .hero-stat-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .hero-stat-number,
    .hero-stat-label {
        display: inline;
        margin: 0;
    }
}

/* Extra spacing for larger screens */
@media (min-width: 1200px) {
    .hero-content {
        padding-right: 4rem;
        margin-left: -2rem;
    }

    .hero-image {
        padding-left: 3rem;
        margin-right: -2rem;
    }
}

@media (min-width: 1400px) {
    .hero-content {
        padding-right: 5rem;
        margin-left: -3rem;
    }

    .hero-image {
        padding-left: 4rem;
        margin-right: -3rem;
    }
}