/* ============================================
   HNY Teknoloji - Animations & Effects
   ============================================ */

/* ---- Scroll Reveal ---- */
.hny-animate-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.hny-animate-fade-up.hny-visible {
    opacity: 1;
    transform: translateY(0);
}
.hny-delay-1 { transition-delay: 0.15s; }
.hny-delay-2 { transition-delay: 0.3s; }
.hny-delay-3 { transition-delay: 0.45s; }

/* ---- Gradient Text ---- */
.hny-gradient-text {
    background: linear-gradient(135deg, #00D4AA 0%, #4F46E5 50%, #00F5C8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: hny-gradient-shift 4s ease infinite;
}
@keyframes hny-gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ---- Float ---- */
@keyframes hny-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.hny-hero-metrics .hny-glass-card {
    animation: hny-float 6s ease-in-out infinite;
}
.hny-hero-metrics .hny-glass-card:nth-child(2) { animation-delay: -2s; }
.hny-hero-metrics .hny-glass-card:nth-child(3) { animation-delay: -4s; }

/* ---- Glow Button ---- */
.hny-btn-glow .wp-block-button__link,
.hny-btn-glow .wp-element-button {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.25);
    background-color: #00D4AA !important;
    color: #0A1628 !important;
}
.hny-btn-glow .wp-block-button__link:hover,
.hny-btn-glow .wp-element-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.35), 0 4px 12px rgba(10, 22, 40, 0.1);
    background-color: #00F5C8 !important;
    color: #0A1628 !important;
}

/* ---- Outline Button (Dark BG) ---- */
.hny-btn-outline-light .wp-block-button__link {
    color: #fff !important;
    border-color: rgba(255,255,255,0.3) !important;
    background: transparent !important;
    transition: all 0.3s ease;
}
.hny-btn-outline-light .wp-block-button__link:hover {
    border-color: #00D4AA !important;
    color: #00D4AA !important;
    background: rgba(0,212,170,0.05) !important;
}

/* ---- Service Card ---- */
.hny-service-card {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.hny-service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00D4AA, #4F46E5, #00D4AA);
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    animation: hny-gradient-slide 3s linear infinite paused;
}
@keyframes hny-gradient-slide {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
.hny-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0,212,170,0.08), 0 8px 24px rgba(10,22,40,0.06);
    border-color: rgba(0,212,170,0.2) !important;
}
.hny-service-card:hover::before {
    transform: scaleX(1);
    animation-play-state: running;
}

/* ---- Tech Card ---- */
.hny-tech-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.hny-tech-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0,212,170,0.3) !important;
    background: rgba(255,255,255,0.08) !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* ---- Contact Card ---- */
.hny-contact-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hny-contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(10,22,40,0.08);
    border-color: #00D4AA !important;
}

/* ---- Glass Card ---- */
.hny-glass-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.hny-glass-card:hover {
    border-color: rgba(0,212,170,0.3) !important;
    background: rgba(255,255,255,0.08) !important;
}

/* ---- Hero Sections (All) ---- */
.has-hero-gradient-gradient-background {
    position: relative;
    overflow: hidden;
}
.has-hero-gradient-gradient-background::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 20% 80%, rgba(0,212,170,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(79,70,229,0.1) 0%, transparent 50%);
    animation: hny-aurora 15s ease-in-out infinite alternate;
    pointer-events: none;
}
.has-hero-gradient-gradient-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}
.has-hero-gradient-gradient-background > * {
    position: relative;
    z-index: 1;
}
.hny-hero-inner {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
@keyframes hny-aurora {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(10deg) scale(1.1); }
}

/* ---- Floating Orbs ---- */
.hny-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(100px);
    opacity: 0.3;
    will-change: transform;
}
.hny-orb-1 {
    width: 350px; height: 350px;
    background: rgba(0,212,170,0.12);
    top: 10%; left: -5%;
    animation: hny-orb-float-1 20s ease-in-out infinite;
}
.hny-orb-2 {
    width: 300px; height: 300px;
    background: rgba(79,70,229,0.10);
    bottom: 10%; right: -5%;
    animation: hny-orb-float-2 25s ease-in-out infinite;
}
@keyframes hny-orb-float-1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(50px, -30px); }
    66% { transform: translate(-20px, 40px); }
}
@keyframes hny-orb-float-2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-40px, 20px); }
    66% { transform: translate(30px, -50px); }
}

/* ---- Cursor Glow ---- */
.hny-cursor-glow {
    position: fixed;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,212,170,0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    will-change: left, top;
}

/* ---- Morphing Blobs ---- */
.hny-blob {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: hny-morph 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes hny-morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

/* ---- Scroll Progress Bar ---- */
.hny-scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, #00D4AA, #4F46E5);
    z-index: 10000;
    width: 0;
    transition: width 0.1s linear;
}

/* ---- Stats Section ---- */
.hny-stats-section {
    position: relative;
}
.hny-stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: hny-shimmer 3s ease-in-out infinite;
    pointer-events: none;
}
@keyframes hny-shimmer {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* ---- Badge Pulse ---- */
.hny-badge {
    animation: hny-pulse-border 3s ease-in-out infinite;
}
@keyframes hny-pulse-border {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,212,170,0.1); }
    50% { box-shadow: 0 0 0 8px rgba(0,212,170,0); }
}

/* ---- Blog Card (Modern Glassmorphism) ---- */
.hny-blog-card {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(10, 22, 40, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.6) !important;
    display: flex;
    flex-direction: column;
    position: relative;
}
.hny-blog-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00D4AA, #4F46E5);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.hny-blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(10, 22, 40, 0.10), 0 0 0 1px rgba(0,212,170,0.15);
    border-color: rgba(0,212,170,0.2) !important;
}
.hny-blog-card:hover::before {
    transform: scaleX(1);
}
/* Title */
.hny-blog-card .wp-block-post-title {
    color: #0A1628 !important;
    transition: color 0.3s ease;
}
/* Excerpt */
.hny-blog-card .wp-block-post-excerpt {
    flex: 1;
}
.hny-blog-card .wp-block-post-excerpt__more-text {
    display: none;
}
/* Read More Button */
.hny-read-more-btn {
    display: inline-block;
    background: linear-gradient(135deg, #00D4AA, #00C49A) !important;
    color: #0A1628 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 212, 170, 0.2);
    white-space: nowrap;
}
.hny-read-more-btn:hover {
    background: linear-gradient(135deg, #00F5C8, #00D4AA) !important;
    color: #0A1628 !important;
    transform: translateX(3px);
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}
/* Grid */
.hny-blog-grid {
    gap: 2rem !important;
}

/* ---- Smooth Scroll ---- */
html {
    scroll-behavior: smooth;
}
