/* Hero Section 114 - Fixed & Perfect */

/* Ana Hero Container - Belirgin arka plan */
.hero-homepage-style {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    padding: 4rem 0;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark .hero-homepage-style {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
}

/* Subtle Background Pattern */
.hero-homepage-style::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    animation: gentle-drift 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes gentle-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(10px, -5px) scale(1.02); }
    50% { transform: translate(-5px, 10px) scale(1.01); }
    75% { transform: translate(-10px, -5px) scale(1.02); }
}

/* Content Container - Perfect Centering */
.hero-content-homepage {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header Area */
.hero-header {
    margin-bottom: 2rem;
    width: 100%;
    position: relative;
    z-index: 15; /* Formüllerden üstte olsun */
}

.hero-subtitle-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 9999px;
    padding: 0.5rem 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4f46e5;
}

.dark .hero-subtitle-badge {
    background: rgba(30, 41, 59, 0.4);
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.4);
}

/* Title - Perfect Center & 19 Vurgusu */
.hero-title-main {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1f2937;
    text-align: center;
    width: 100%;
}

.dark .hero-title-main {
    color: #f9fafb;
}

/* 19 Özel Vurgu - Glow Effect ile */
.hero-title-main .highlight-19 {
    color: #4f46e5;
    font-weight: 900;
    text-shadow: 0 2px 15px rgba(79, 70, 229, 0.4);
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: highlight-glow 3s ease-in-out infinite;
    position: relative;
}

.dark .hero-title-main .highlight-19 {
    background: linear-gradient(135deg, #a5b4fc, #c7d2fe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 15px rgba(165, 180, 252, 0.5);
    animation: highlight-glow-dark 3s ease-in-out infinite;
}

@keyframes highlight-glow {
    0%, 100% {
        text-shadow: 0 2px 15px rgba(79, 70, 229, 0.4);
        filter: brightness(1);
    }
    50% {
        text-shadow: 0 4px 25px rgba(79, 70, 229, 0.8), 0 0 30px rgba(79, 70, 229, 0.4);
        filter: brightness(1.2);
    }
}

@keyframes highlight-glow-dark {
    0%, 100% {
        text-shadow: 0 2px 15px rgba(165, 180, 252, 0.5);
        filter: brightness(1);
    }
    50% {
        text-shadow: 0 4px 25px rgba(165, 180, 252, 0.9), 0 0 30px rgba(165, 180, 252, 0.5);
        filter: brightness(1.3);
    }
}

.hero-description {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
    text-align: center;
}

.dark .hero-description {
    color: #9ca3af;
}

/* Central 114 Animation - Perfect Center */
.hero-central-number {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3rem auto;
    width: 100%;
    z-index: 10; /* Header ve description'dan üstte olsun */
}

.number-main {
    font-size: 9rem;
    font-weight: 900;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    z-index: 3;
    animation: number-pulse-homepage 4s ease-in-out infinite;
    text-align: center;
    line-height: 1;
}

/* Glow Effect - Perfectly Aligned */
.number-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9rem;
    font-weight: 900;
    color: rgba(99, 102, 241, 0.25);
    filter: blur(25px);
    z-index: 1;
    animation: glow-pulse 3s ease-in-out infinite;
    line-height: 1;
}

@keyframes number-pulse-homepage {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.05);
        filter: brightness(1.15);
    }
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.25;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.4;
        transform: translateX(-50%) scale(1.1);
    }
}

/* Calculation Orbit - Alt katman, daha compact */
.calculation-orbit-114 {
    position: absolute;
    inset: -40px;
    animation: orbit-rotate 30s linear infinite;
    z-index: 0; /* Alt katmana al */
}

.formula-bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.4s ease;
    cursor: pointer;
    animation: float-formula 4s ease-in-out infinite;
    z-index: 1; /* Alt katmanda tut */
}

.dark .formula-bubble {
    background: rgba(30, 41, 59, 0.25);
    border-color: rgba(100, 116, 139, 0.4);
}

.formula-bubble:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.15);
    animation-play-state: paused;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.dark .formula-bubble:hover {
    background: rgba(30, 41, 59, 0.4);
}

/* Formula positioning - Ultra tight around 114 */
.formula-1 {
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: #10b981;
    animation-delay: 0s;
}

.formula-2 {
    top: -0.5rem;
    right: -2.5rem;
    color: #3b82f6;
    animation-delay: -3.75s;
}

.formula-3 {
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: #8b5cf6;
    animation-delay: -7.5s;
}

.formula-4 {
    top: -0.5rem;
    left: -2.5rem;
    color: #f59e0b;
    animation-delay: -11.25s;
}

.formula-5 {
    top: 50%;
    right: -2.8rem;
    transform: translateY(-50%);
    color: #ef4444;
    animation-delay: -15s;
}

.formula-6 {
    top: 50%;
    left: -2.8rem;
    transform: translateY(-50%);
    color: #06b6d4;
    animation-delay: -18.75s;
}

.formula-7 {
    top: 1rem;
    right: -1.5rem;
    color: #ec4899;
    animation-delay: -22.5s;
}

.formula-8 {
    top: 1rem;
    left: -1.5rem;
    color: #84cc16;
    animation-delay: -26.25s;
}

@keyframes orbit-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes float-formula {
    0%, 100% {
        transform: translateY(0px);
    }
    33% {
        transform: translateY(-8px);
    }
    66% {
        transform: translateY(4px);
    }
}

/* CTA Area - Simple & Centered */
.hero-cta-homepage {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 20; /* Formüllerden üstte olsun */
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #4338ca, #6d28d9);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-homepage-style {
        min-height: 60vh;
        padding: 2rem 0;
    }
    
    .number-main,
    .number-glow {
        font-size: 6rem;
    }
    
    .hero-title-main {
        font-size: 2.2rem;
    }
    
    .formula-bubble {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }
    
    .calculation-orbit-114 {
        inset: -30px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .number-main,
    .number-glow {
        font-size: 7rem;
    }
    
    .hero-title-main {
        font-size: 2.5rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .calculation-orbit-114,
    .number-main,
    .number-glow,
    .formula-bubble {
        animation: none !important;
    }
}