/* ============================================
   ULTRA PROFESSIONAL HOVER EFFECTS
   ============================================ */

/* ===== 1. Mega Menu / Navigation Hovers ===== */
.nav-menu li {
    position: relative;
}

.nav-menu li a {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.nav-menu li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #22c55e, #4ade80, #86efac);
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 3px;
    z-index: -1;
}

.nav-menu li a:hover::before {
    width: 100%;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(34,197,94,0.08) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 0.5rem;
    z-index: -1;
}

.nav-menu li a:hover::after {
    opacity: 1;
}

/* ===== 2. Hero Buttons - Magnetic Hover ===== */
.hero-btn-wrap .btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-btn-wrap .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-btn-wrap .btn:hover::before {
    width: 300px;
    height: 300px;
}

.hero-btn-wrap .btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.35);
}

.hero-btn-wrap .btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* ===== 3. Feature Cards - 3D Tilt + Glow ===== */
.hv-card {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    cursor: default;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Animated border gradient */
.hv-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: conic-gradient(from var(--angle, 0deg), #22c55e, #4ade80, #fbbf24, #22c55e);
    border-radius: 1.35rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s;
    animation: borderSpin 4s linear infinite paused;
}

@keyframes borderSpin {
    to { --angle: 360deg; }
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.hv-card:hover::before {
    opacity: 1;
    animation-play-state: running;
}

/* Inner background mask */
.hv-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: #fff;
    border-radius: 1.15rem;
    z-index: -1;
}

/* Spotlight follow effect */
.hv-card .card-glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 1.25rem;
    pointer-events: none;
    z-index: 0;
}

.hv-card:hover .card-glow {
    opacity: 1;
}

.hv-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(34, 197, 94, 0.12);
}

/* Icon Float */
.hv-card .hv-icon {
    width: 4.5rem;
    height: 4.5rem;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 2px solid #bbf7d0;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.25rem;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 1;
}

.hv-card:hover .hv-icon {
    transform: translateY(-8px) rotateY(15deg) scale(1.15);
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: #22c55e;
    box-shadow: 0 15px 30px rgba(34, 197, 94, 0.3);
}

/* Text slide up reveal */
.hv-card .hv-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.hv-card:hover .hv-title {
    color: #15803d;
}

.hv-card .hv-desc {
    font-size: 0.8rem;
    color: #9ca3af;
    line-height: 1.6;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.hv-card:hover .hv-desc {
    color: #6b7280;
}

/* Decorative floating particles */
.hv-card .particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    opacity: 0;
    transition: all 0.5s;
    z-index: 1;
}

.hv-card .particle:nth-child(1) { top: 20%; right: 15%; }
.hv-card .particle:nth-child(2) { top: 60%; right: 80%; }
.hv-card .particle:nth-child(3) { top: 75%; right: 25%; }
.hv-card .particle:nth-child(4) { top: 15%; right: 65%; }

.hv-card:hover .particle {
    opacity: 0.3;
    animation: particleFloat 2s ease-in-out infinite;
}

.hv-card:hover .particle:nth-child(2) { animation-delay: 0.3s; }
.hv-card:hover .particle:nth-child(3) { animation-delay: 0.6s; }
.hv-card:hover .particle:nth-child(4) { animation-delay: 0.9s; }

@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(5px, -10px) scale(1.5); }
    50% { transform: translate(-3px, -15px) scale(0.8); }
    75% { transform: translate(8px, -5px) scale(1.3); }
}

/* ===== 4. Service Showcase Cards - Flip + Morph ===== */
.hv-service {
    position: relative;
    height: 280px;
    perspective: 1200px;
    cursor: pointer;
}

.hv-service-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-style: preserve-3d;
}

.hv-service:hover .hv-service-inner {
    transform: rotateY(180deg);
}

.hv-service-front,
.hv-service-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 1px solid #e5e7eb;
}

.hv-service-front {
    background: linear-gradient(145deg, #fff, #f8fafc);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.hv-service-back {
    background: linear-gradient(145deg, #15803d, #166534);
    transform: rotateY(180deg);
    color: #fff;
    border: none;
}

.hv-service-front .s-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: transform 0.5s;
}

.hv-service:hover .hv-service-front .s-icon {
    transform: scale(0.8) rotateZ(15deg);
}

.hv-service-front h4 {
    font-size: 1.1rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.hv-service-front p {
    font-size: 0.8rem;
    color: #9ca3af;
}

.hv-service-back h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.hv-service-back ul {
    list-style: none;
    padding: 0;
}

.hv-service-back ul li {
    font-size: 0.8rem;
    padding: 0.3rem 0;
    opacity: 0.9;
}

.hv-service-back ul li::before {
    content: '✓ ';
    color: #4ade80;
}

.hv-service-back .s-btn {
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 0.5rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}

.hv-service-back .s-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* ===== 5. Glassmorphism Info Cards ===== */
.hv-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.25rem;
    padding: 1.75rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.hv-glass::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(34,197,94,0.05) 60deg, transparent 120deg);
    animation: glassShine 6s linear infinite paused;
    transition: opacity 0.3s;
    opacity: 0;
}

.hv-glass:hover::before {
    opacity: 1;
    animation-play-state: running;
}

@keyframes glassShine {
    to { transform: rotate(360deg); }
}

.hv-glass:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.1), 0 0 80px rgba(34, 197, 94, 0.05);
    border-color: rgba(34, 197, 94, 0.3);
}

/* ===== 6. Stats Counter - Animated ===== */
.hv-stat {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

.hv-stat::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #22c55e, transparent);
    transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hv-stat:hover::after {
    width: 80%;
}

.hv-stat .stat-num {
    font-size: 2.5rem;
    font-weight: 900;
    color: #22c55e;
    transition: all 0.5s;
    display: block;
}

.hv-stat:hover .stat-num {
    transform: scale(1.15);
    text-shadow: 0 0 40px rgba(34, 197, 94, 0.3);
}

.hv-stat .stat-label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.5rem;
    transition: color 0.3s;
}

.hv-stat:hover .stat-label {
    color: #15803d;
}

/* ===== 7. CTA Banner - Shimmer ===== */
.hv-cta {
    background: linear-gradient(135deg, #15803d, #166534);
    border-radius: 1.5rem;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s;
}

.hv-cta:hover {
    transform: scale(1.01);
}

.hv-cta::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255,255,255,0.05) 40%,
        rgba(255,255,255,0.1) 50%,
        rgba(255,255,255,0.05) 60%,
        transparent 70%
    );
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { transform: translate(-30%, -30%) rotate(25deg); }
    100% { transform: translate(30%, 30%) rotate(25deg); }
}

/* Eslimi pattern overlay on CTA */
.hv-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='none' stroke='white' stroke-width='1'/%3E%3Ccircle cx='30' cy='30' r='10' fill='none' stroke='white' stroke-width='.5'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hv-cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.hv-cta-content h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #fff;
}

.hv-cta-content p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.hv-cta .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: #fff;
    color: #15803d;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.hv-cta .cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    opacity: 0;
    transition: opacity 0.3s;
}

.hv-cta .cta-btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.hv-cta .cta-btn:hover::before {
    opacity: 1;
}

.hv-cta .cta-btn span {
    position: relative;
    z-index: 1;
}

/* ===== 8. Hover Grid Section Layout ===== */
.hover-showcase {
    padding: 5rem 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.hover-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0L80 40L40 80L0 40z' fill='none' stroke='%2322c55e' stroke-width='1'/%3E%3Ccircle cx='40' cy='40' r='15' fill='none' stroke='%2322c55e' stroke-width='.5'/%3E%3Cpath d='M40 15L55 40L40 65L25 40z' fill='none' stroke='%2322c55e' stroke-width='.4'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hv-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.hv-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.hv-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.hv-glass-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
}

/* Glass grid background blobs */
.hv-glass-grid::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(34,197,94,0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    pointer-events: none;
}

.hv-glass-grid::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(251,191,36,0.1) 0%, transparent 70%);
    bottom: -80px;
    left: -80px;
    border-radius: 50%;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .hv-features-grid,
    .hv-services-grid { grid-template-columns: repeat(2, 1fr); }
    .hv-glass-grid { grid-template-columns: repeat(2, 1fr); }
    .hv-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .hv-features-grid,
    .hv-services-grid,
    .hv-glass-grid,
    .hv-stats-grid { grid-template-columns: 1fr; }
}

/* ===== 9. Floating Label on Glass ===== */
.hv-glass .gl-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
    transition: transform 0.4s;
}

.hv-glass:hover .gl-icon {
    transform: translateY(-5px) scale(1.1);
}

.hv-glass .gl-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.hv-glass:hover .gl-title {
    color: #15803d;
}

.hv-glass .gl-desc {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.6;
}

/* ===== 10. Scroll reveal stagger ===== */
.hv-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hv-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.hv-reveal:nth-child(2) { transition-delay: 0.1s; }
.hv-reveal:nth-child(3) { transition-delay: 0.2s; }
.hv-reveal:nth-child(4) { transition-delay: 0.3s; }
.hv-reveal:nth-child(5) { transition-delay: 0.4s; }
.hv-reveal:nth-child(6) { transition-delay: 0.5s; }
.hv-reveal:nth-child(7) { transition-delay: 0.6s; }
.hv-reveal:nth-child(8) { transition-delay: 0.7s; }
