/* ========================================
   IV HERO SECTION - RESPONSIVE & MODERN
   ======================================== */

/* Hero Section */
.iv-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 160px;
    padding-bottom: 100px;
}

/* Background */
.iv-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.iv-hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) contrast(1.2);
}

.iv-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.2) 0%, rgba(0, 204, 102, 0.2) 100%);
    z-index: 1;
}

/* Minimum viewport height utility */
.iv-min-vh-100 {
    min-height: calc(100vh - 220px);
}

/* Hero Content */
.iv-hero-content {
    position: relative;
    z-index: 10;
    color: white;
}

/* Badge */
.iv-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 102, 204, 0.15);
    border: 1px solid rgba(0, 102, 204, 0.3);
    color: rgba(255, 255, 255, 0.95);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    animation: iv-fade-in-up 0.8s ease-out 0.2s both;
}

.iv-badge-icon {
    font-size: 1rem;
}

.iv-badge-text {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Title */
.iv-hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    animation: iv-fade-in-up 0.8s ease-out 0.4s both;
}

.iv-title-highlight {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 500;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.95;
}

.iv-title-main {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: block;
    line-height: 1.1;
}

/* Description */
.iv-hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    animation: iv-fade-in-up 0.8s ease-out 0.6s both;
}

.iv-hero-description strong {
    color: rgba(255, 255, 255, 1);
    font-weight: 600;
}

/* Stats */
.iv-hero-stat {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    animation: iv-fade-in-up 0.8s ease-out 0.8s both;
    height: 100%;
}

.iv-hero-stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.iv-stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.iv-stat-label {
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    line-height: 1.2;
}

/* Buttons */
.iv-hero-actions {
    animation: iv-fade-in-up 0.8s ease-out 1s both;
}

.iv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    min-height: 56px;
}

.iv-btn::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 ease;
}

.iv-btn:hover::before {
    left: 100%;
}

.iv-btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.iv-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
}

.iv-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.iv-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.iv-btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 1rem;
}

.iv-w-100 {
    width: 100% !important;
}

/* Hero Visual */
.iv-hero-visual {
    animation: iv-fade-in-left 1s ease-out 0.6s both;
}

.iv-hero-image-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 400px;
    margin: 0 auto;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.iv-hero-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.iv-hero-image-container:hover .iv-hero-portrait {
    transform: scale(1.05);
}

/* Effects */
.iv-hero-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.iv-effect-circle {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(20px);
    animation: iv-float 6s ease-in-out infinite;
}

.iv-effect-dots {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, var(--accent-color-1) 2px, transparent 2px);
    background-size: 15px 15px;
    opacity: 0.5;
    animation: iv-float 4s ease-in-out infinite reverse;
}

.iv-effect-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 204, 102, 0.1) 100%);
    mix-blend-mode: overlay;
    border-radius: 1.5rem;
}

/* Floating Cards */
.iv-floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.iv-floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    animation: iv-float-card 8s ease-in-out infinite;
    opacity: 0;
    animation-fill-mode: forwards;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.iv-floating-card-1 {
    top: 10%;
    left: -15%;
    animation-delay: 0.5s;
    animation-duration: 6s;
    z-index: 5;
}

.iv-floating-card-2 {
    top: 55%;
    right: -20%;
    animation-delay: 1s;
    animation-duration: 8s;
    z-index: 5;
}

.iv-floating-card-3 {
    bottom: 15%;
    left: -18%;
    animation-delay: 1.5s;
    animation-duration: 7s;
    z-index: 5;
}

.iv-card-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.iv-card-text {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Scroll Indicator */
.iv-scroll-indicator {
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    animation: iv-bounce 2s infinite;
    z-index: 15;
    pointer-events: auto;
}

.iv-scroll-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.iv-scroll-arrow {
    animation: iv-bounce-arrow 2s infinite;
}

/* Animations */
@keyframes iv-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes iv-fade-in-left {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes iv-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes iv-float-card {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    20% {
        opacity: 1;
        transform: translateY(0px);
    }
    80% {
        opacity: 1;
        transform: translateY(-10px);
    }
    100% {
        opacity: 0.8;
        transform: translateY(0px);
    }
}

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

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

/* Responsive Design */

/* Small devices */
@media (max-width: 575.98px) {
    .iv-hero {
        padding-top: 140px;
        padding-bottom: 80px;
        min-height: 100vh;
    }
    
    .iv-min-vh-100 {
        min-height: calc(100vh - 180px);
    }
    
    .iv-hero-content {
        text-align: center;
        padding-bottom: 2rem;
    }
    
    .iv-hero-badge {
        margin-bottom: 1.5rem !important;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .iv-badge-text {
        font-size: 0.75rem;
    }
    
    .iv-hero-stat {
        padding: 1rem 0.75rem;
        margin-bottom: 1rem;
    }
    
    .iv-stat-number {
        font-size: 1.8rem;
    }
    
    .iv-stat-label {
        font-size: 0.8rem;
    }
    
    .iv-hero-image-container {
        height: 300px;
        max-width: 300px;
    }
    
    .iv-btn {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .iv-btn-lg {
        padding: 1.1rem 1.75rem;
        font-size: 1rem;
    }
    
    .iv-scroll-indicator {
        bottom: 20px;
    }
}

/* Medium devices */
@media (min-width: 576px) and (max-width: 991.98px) {
    .iv-hero {
        padding-top: 150px;
        padding-bottom: 60px;
    }
    
    .iv-min-vh-100 {
        min-height: calc(100vh - 170px);
    }
    
    .iv-hero-content {
        text-align: center;
        padding-bottom: 2rem;
    }
    
    .iv-hero-description {
        max-width: 100%;
    }
    
    .iv-scroll-indicator {
        bottom: 25px;
    }
}

/* Large devices */
@media (min-width: 992px) {
    .iv-hero-content {
        text-align: left;
    }
    
    .iv-hero-description {
        max-width: 90%;
    }
    
    .iv-hero-image-container {
        max-width: 100%;
        height: 450px;
    }
}

/* Extra large devices */
@media (min-width: 1200px) {
    .iv-title-main {
        font-size: 3.5rem;
    }
    
    .iv-hero-description {
        font-size: 1.25rem;
        max-width: 85%;
    }
    
    .iv-hero-image-container {
        height: 500px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .iv-hero * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
    
    .iv-scroll-indicator,
    .iv-floating-card,
    .iv-effect-circle,
    .iv-effect-dots {
        animation: none !important;
    }
    
    .iv-floating-card {
        opacity: 1 !important;
    }
}

/* Print styles */
@media print {
    .iv-hero-background,
    .iv-floating-elements,
    .iv-scroll-indicator,
    .iv-hero-effects {
        display: none !important;
    }
    
    .iv-hero {
        background: white !important;
        color: black !important;
        min-height: auto !important;
        padding: 2rem 0 !important;
    }
    
    .iv-hero-content {
        color: black !important;
    }
}