/* SÜPER MODERN ANIMASYON VE EFEKTLER */

/* Particles Container */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Floating Background Elements */
.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-element {
    position: absolute;
    background: linear-gradient(45deg, rgba(37, 99, 235, 0.3), rgba(16, 185, 129, 0.3));
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.element-3 {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

.element-4 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 30%;
    animation-delay: 1s;
}

.element-5 {
    width: 140px;
    height: 140px;
    top: 70%;
    left: 60%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Hero Title Animations */
.hero-title-container {
    perspective: 1000px;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 4rem;
    line-height: 1.1;
    text-align: center;
    margin-bottom: 2rem;
}

.title-line-1,
.title-line-2,
.title-line-3 {
    display: block;
    animation: titleSlideIn 1s ease-out forwards;
    opacity: 0;
    transform: translateY(50px);
}

.title-line-1 {
    animation-delay: 0.2s;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.title-line-2 {
    animation-delay: 0.4s;
}

.title-line-3 {
    animation-delay: 0.6s;
    color: #10b981;
    text-shadow: 0 0 30px rgba(16, 185, 129, 0.8);
}

@keyframes titleSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Highlight Animated Effect */
.highlight-animated {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glitch Text Effect */
.glitch-text {
    position: relative;
    color: #ffffff;
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    animation: glitch 2s infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitch-1 0.5s infinite;
    color: #ff0040;
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-2 0.5s infinite;
    color: #00ffff;
    z-index: -2;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(-2px, -2px); }
    20% { transform: translate(2px, 2px); }
    30% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    50% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    70% { transform: translate(-2px, 2px); }
    80% { transform: translate(2px, -2px); }
    90% { transform: translate(-2px, -2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(2px, 2px); }
    20% { transform: translate(-2px, -2px); }
    30% { transform: translate(2px, -2px); }
    40% { transform: translate(-2px, 2px); }
    50% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    70% { transform: translate(2px, -2px); }
    80% { transform: translate(-2px, 2px); }
    90% { transform: translate(2px, 2px); }
}

/* Typing Animation */
.typing-container {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin: 2rem 0;
}

.typing-text {
    color: #10b981;
}

.typed-text {
    color: #ffffff;
    border-right: 2px solid #10b981;
}

.cursor {
    color: #10b981;
    animation: blink 1s infinite;
}

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

/* 3D Tech Cube */
.tech-cube-container {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
    perspective: 1000px;
}

.tech-cube {
    position: relative;
    width: 100px;
    height: 100px;
    transform-style: preserve-3d;
    animation: rotateCube 10s infinite linear;
}

.cube-face {
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(16, 185, 129, 0.9));
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.cube-face.front { transform: rotateY(0deg) translateZ(50px); }
.cube-face.back { transform: rotateY(180deg) translateZ(50px); }
.cube-face.right { transform: rotateY(90deg) translateZ(50px); }
.cube-face.left { transform: rotateY(-90deg) translateZ(50px); }
.cube-face.top { transform: rotateX(90deg) translateZ(50px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(50px); }

@keyframes rotateCube {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Animated Buttons */
.btn-glow {
    position: relative;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
    animation: pulseGlow 2s ease-in-out infinite alternate;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

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

@keyframes pulseGlow {
    0% { box-shadow: 0 0 20px rgba(255, 107, 107, 0.5); }
    100% { box-shadow: 0 0 40px rgba(255, 107, 107, 0.8), 0 0 60px rgba(255, 107, 107, 0.4); }
}

.btn-hologram {
    position: relative;
    background: transparent;
    border: 2px solid #00ffff;
    color: #00ffff;
    overflow: hidden;
}

.hologram-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 255, 0.1) 50%, transparent 70%);
    animation: hologramScan 3s linear infinite;
}

@keyframes hologramScan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.btn-hologram:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    margin: 0 auto 10px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { top: 8px; opacity: 1; }
    100% { top: 24px; opacity: 0; }
}

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

.scroll-text {
    font-size: 0.8rem;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Matrix Rain Effect */
.matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 1;
}

/* Cyber Section Title */
.cyber-title {
    position: relative;
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.title-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: rgba(37, 99, 235, 0.1);
    transform: translate(3px, 3px);
    z-index: 1;
}

.title-front {
    position: relative;
    background: linear-gradient(45deg, #ffffff, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: 2;
}

.title-underline {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.underline-animated {
    width: 100px;
    height: 4px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    background-size: 200% 200%;
    animation: gradientShift 2s ease infinite;
    border-radius: 2px;
}

/* 3D Service Cards */
.services-grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    perspective: 1000px;
}

.service-card-3d {
    position: relative;
    width: 100%;
    height: 400px;
    cursor: pointer;
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.service-card-3d:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-front {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(31, 41, 55, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.card-back {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(16, 185, 129, 0.9));
    transform: rotateY(180deg);
    color: white;
}

.service-icon-3d {
    margin-bottom: 1.5rem;
    position: relative;
}

.icon-container {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    animation: iconFloat 3s ease-in-out infinite;
}

.icon-container i {
    font-size: 2rem;
    color: white;
    z-index: 2;
}

.icon-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    opacity: 0.3;
    animation: iconGlow 2s ease-in-out infinite alternate;
    z-index: 1;
}

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

@keyframes iconGlow {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.2); opacity: 0.1; }
}

.service-title-3d {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.service-desc-3d {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.service-price-3d {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.price-from {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-amount {
    font-size: 1.8rem;
    font-weight: 900;
    color: #10b981;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 22px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    animation: cardGlow 4s ease infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card-3d:hover .card-glow {
    opacity: 1;
}

@keyframes cardGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Card Back Content */
.card-back-content h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.feature-list li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-align: left;
}

/* Neon Button */
.btn-neon {
    background: transparent;
    border: 2px solid #00ffff;
    color: #00ffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.btn-neon:hover {
    background: #00ffff;
    color: #000;
    box-shadow: 0 0 30px #00ffff, 0 0 60px #00ffff, 0 0 90px #00ffff;
    text-shadow: none;
}

.btn-neon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

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

/* Background Animation Elements */
.services-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.floating-code {
    position: absolute;
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: rgba(16, 185, 129, 0.1);
    animation: floatCode 8s linear infinite;
}

.floating-code:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-code:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 3s;
}

.floating-code:nth-child(3) {
    top: 80%;
    left: 70%;
    animation-delay: 6s;
}

@keyframes floatCode {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive Animations */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .glitch-text {
        font-size: 2rem;
    }
    
    .tech-cube {
        width: 80px;
        height: 80px;
    }
    
    .cube-face {
        width: 80px;
        height: 80px;
        font-size: 0.8rem;
    }
    
    .services-grid-3d {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card-3d {
        height: 350px;
    }
    
    .cyber-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .glitch-text {
        font-size: 1.5rem;
    }
    
    .typing-container {
        font-size: 1.2rem;
    }
    
    .service-card-3d {
        height: 320px;
    }
    
    .card-front,
    .card-back {
        padding: 1.5rem;
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}