
.compact-hero {
    min-height: auto;
    padding: 100px 0 50px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f0f2f5 100%);
}

.compact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: rgba(93, 179, 203, 0.05);
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.animated-badge {
    display: inline-block;
    background: linear-gradient(90deg, #1B3B6F, #5db3cb);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(93, 179, 203, 0.3);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    line-height: 1.2;
    color: var(--navy-blue);
    font-weight: 700;
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.highlight-animated {
    position: relative;
    display: inline-block;
    color: var(--accent-color);
}

.highlight-animated::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(93, 179, 203, 0.2);
    z-index: -1;
    animation: widthAnimation 1.5s ease-in-out infinite alternate;
}

@keyframes widthAnimation {
    from { width: 0; }
    to { width: 100%; }
}

.typing-container {
    height: 30px;
    font-size: 1.3rem;
    font-weight: 500;
    color: #333;
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

.static-text {
    color: #555;
}

.typing-text {
    color: var(--accent-color);
    font-weight: 600;
    position: relative;
}

.typing-text::after {
    content: '|';
    position: absolute;
    right: -5px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 25px 0;
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

.btn-primary-gradient {
    background: linear-gradient(90deg, var(--accent-color), #74c5db);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(93, 179, 203, 0.3);
    transition: all 0.3s ease;
}

.btn-primary-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(93, 179, 203, 0.4);
    color: white;
}

.btn-text-link {
    color: var(--navy-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.btn-text-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.btn-text-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.btn-text-link:hover i {
    transform: translateX(3px);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

.stat-item {
    text-align: center;
    padding: 0 15px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy-blue);
    position: relative;
}

.stat-number::after {
    content: '%';
    font-size: 1rem;
    position: absolute;
    right: -15px;
    top: 5px;
    opacity: 0.8;
}

.stat-item:first-child .stat-number::after,
.stat-item:last-child .stat-number::after {
    display: none;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
}

.hero-visual {
    position: relative;
    z-index: 2;
    animation: fadeIn 1s ease forwards;
}

.visual-element {
    position: relative;
    padding: 20px;
}

.hero-image {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.15));
    transform-style: preserve-3d;
    animation: float 4s ease-in-out infinite;
    border-radius: 20%;
}

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

.floating-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    animation: floatIcon 5s ease-in-out infinite;
}

.icon-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.icon-2 {
    top: 15%;
    right: 15%;
    animation-delay: 1s;
}

.icon-3 {
    bottom: 25%;
    left: 15%;
    animation-delay: 2s;
}

.icon-4 {
    bottom: 15%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes floatIcon {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(5px, 5px); }
    50% { transform: translate(0, 10px); }
    75% { transform: translate(-5px, 5px); }
}

.quick-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

.contact-text {
    font-weight: 500;
    color: #555;
    font-size: 0.9rem;
}

.contact-button {
    background: #25D366;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.contact-button:hover {
    background: #1ea956;
    transform: translateY(-3px);
    color: white;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
    .compact-hero {
        padding: 120px 0 60px;
    }
    
    .compact-hero::before {
        width: 100%;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
        opacity: 0.5;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 40px;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-primary-gradient, .btn-text-link {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-divider {
        width: 80%;
        height: 1px;
    }
    
    .quick-contact {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .contact-button {
        width: 100%;
        justify-content: center;
    }
    
    .floating-icon {
        width: 40px;
        height: 40px;
    }
}
