/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main Content */
.main-content {
    flex: 1;
    padding-bottom: 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #dd2b1c 0%, #0d497a 100%) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Logo Effect */
.logo-with-effect {
    filter: drop-shadow(0 0 15px rgba(221, 43, 28, 0.6)) 
            drop-shadow(0 0 25px rgba(13, 73, 122, 0.4));
    transition: all 0.3s ease;
}

.logo-with-effect:hover {
    filter: drop-shadow(0 0 20px rgba(221, 43, 28, 0.9)) 
            drop-shadow(0 0 30px rgba(13, 73, 122, 0.7));
    transform: scale(1.05);
}

/* Service Cards - 3D Enhanced */
.service-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 30px 35px 25px 35px;
    text-align: center;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.4) 50%, 
        rgba(102, 126, 234, 0.1) 70%,
        transparent 90%
    );
    transition: left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg,
        rgba(221, 43, 28, 0.1) 90deg,
        rgba(102, 126, 234, 0.1) 180deg,
        rgba(13, 73, 122, 0.1) 270deg,
        transparent 360deg
    );
    animation: cardRotatingGlow 10s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

@keyframes cardRotatingGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    transform: 
        translateY(-20px) 
        rotateX(5deg) 
        rotateY(2deg) 
        scale(1.03);
    box-shadow: 
        0 35px 80px rgba(0, 0, 0, 0.25),
        0 15px 40px rgba(102, 126, 234, 0.2),
        0 5px 15px rgba(221, 43, 28, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(102, 126, 234, 0.5);
    background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(255,255,255,0.92));
}

.card-icon {
    width: 90px;
    height: 90px;
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #dd2b1c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 12px 30px rgba(102, 126, 234, 0.4),
        0 5px 15px rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    z-index: 3;
    opacity: 0.9;
}

.card-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        transparent 50%, 
        rgba(102, 126, 234, 0.3) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .card-icon {
    transform: scale(1.2) rotate(15deg);
    background: linear-gradient(135deg, #764ba2 0%, #dd2b1c 50%, #667eea 100%);
    box-shadow: 
        0 18px 40px rgba(102, 126, 234, 0.6),
        0 8px 20px rgba(221, 43, 28, 0.4),
        inset 0 3px 0 rgba(255, 255, 255, 0.4);
    opacity: 1;
    animation: iconRightFloat 2s ease-in-out infinite;
}

.service-card:hover .card-icon::before {
    opacity: 1;
}

@keyframes iconRightFloat {
    0%, 100% { 
        transform: scale(1.2) rotate(15deg) translateY(0px); 
    }
    50% { 
        transform: scale(1.2) rotate(15deg) translateY(-6px); 
    }
}

@keyframes iconFloat {
    0%, 100% { transform: scale(1.2) rotateY(15deg) rotateX(10deg) translateZ(20px) translateY(0px); }
    50% { transform: scale(1.2) rotateY(15deg) rotateX(10deg) translateZ(20px) translateY(-5px); }
}

.service-card h3 {
    color: #2d3748;
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 75px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #2d3748 0%, #667eea 50%, #dd2b1c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

.service-card:hover h3 {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #dd2b1c 0%, #667eea 50%, #2d3748 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card p {
    color: #718096;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.service-card:hover p {
    color: #4a5568;
    transform: translateY(-2px);
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    flex: 1;
    position: relative;
    z-index: 2;
}

.service-features li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #4a5568;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.service-features li:hover {
    transform: translateX(8px) scale(1.02);
    background: rgba(102, 126, 234, 0.1);
    color: #2d3748;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.service-features li i {
    color: #48bb78;
    margin-right: 12px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #48bb78, #38a169);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.service-features li:hover i {
    transform: scale(1.2) rotate(360deg);
    background: linear-gradient(135deg, #38a169, #2f855a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-footer {
    padding-top: 15px;
    position: relative;
    z-index: 2;
}

.btn-text {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #dd2b1c 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.4),
        0 3px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

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

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

.btn-text:hover {
    transform: translateY(-3px) scale(1.05) rotateX(10deg);
    background: linear-gradient(135deg, #764ba2 0%, #dd2b1c 50%, #667eea 100%);
    box-shadow: 
        0 15px 40px rgba(102, 126, 234, 0.6),
        0 5px 15px rgba(221, 43, 28, 0.3),
        0 2px 5px rgba(0, 0, 0, 0.3);
    color: white;
}

.btn-text i {
    margin-left: 10px;
    transition: all 0.3s ease;
}

.btn-text:hover i {
    transform: translateX(5px) rotateZ(45deg);
}

/* Fixed Footer */
.fixed-footer {
    background: linear-gradient(135deg, #dd2b1c 0%, #0d497a 100%) !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    margin-top: auto;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-card {
        margin-bottom: 40px;
        padding: 30px 25px;
        min-height: 450px;
    }
    
    .card-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .service-card p {
        font-size: 1rem;
    }
    
    .service-features li {
        font-size: 0.95rem;
    }
    
    /* Mobilde logo ve gif düzenlemesi */
    .logo-with-effect {
        max-height: 110px !important;
    }
    
    header .row {
        align-items: center !important;
    }
    
    header .col-md-6:first-child {
        text-align: left !important;
    }
    
    header .col-md-6:last-child {
        text-align: right !important;
    }
    
    header img[alt="Animation"] {
        max-height: 95px !important;
    }
    
    .fixed-footer img {
        max-height: 50px !important;
    }
}

@media (max-width: 576px) {
    .service-card {
        padding: 25px 20px;
        min-height: 400px;
    }
    
    .card-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    /* Küçük mobilde daha da büyük logo */
    .logo-with-effect {
        max-height: 120px !important;
    }
    
    header img[alt="Animation"] {
        max-height: 105px !important;
    }
    
    /* Header layout düzenlemesi */
    header .col-md-6 {
        margin-bottom: 0 !important;
    }
    
    header .col-md-6:first-child {
        text-align: left !important;
    }
    
    header .col-md-6:last-child {
        text-align: right !important;
    }
    
    .fixed-footer .col-md-6 {
        text-align: center !important;
        margin-bottom: 5px;
    }
    
    .fixed-footer .col-md-6:last-child {
        margin-bottom: 0;
    }
}

/* Animation - DÜZELTME: Animasyonları kart bazında ayrı tutuyorum */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeInUp 0.8s ease forwards;
    animation-play-state: paused;
}

.service-card.visible {
    animation-play-state: running;
}

.service-card:first-child {
    animation-delay: 0.2s;
}

.service-card:last-child {
    animation-delay: 0.4s;
}

/* Loading State - DÜZELTME: Sadece tıklanan karta uygulanır */
.service-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.service-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Section spacing */
.services-section {
    padding: 60px 0;
}

/* No Forms Message */
.no-forms-message {
    background: linear-gradient(135deg, rgba(221, 43, 28, 0.05) 0%, rgba(13, 73, 122, 0.05) 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(221, 43, 28, 0.1);
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.no-forms-message .feature-item {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.no-forms-message .feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.no-forms-message .alert {
    border: none;
    background: rgba(13, 162, 184, 0.1);
    color: #0c7489;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(13, 162, 184, 0.1);
}

.no-forms-message .alert a {
    color: #dd2b1c;
    transition: all 0.3s ease;
    text-decoration: none !important;
    border-bottom: 2px solid transparent;
}

.no-forms-message .alert a:hover {
    color: #0d497a;
    border-bottom: 2px solid #0d497a;
    transform: translateY(-1px);
}

.no-forms-message h2 {
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.no-forms-message .lead {
    line-height: 1.8;
    font-size: 1.1rem;
}

.no-forms-message .feature-item h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
} 

/* Mobile Responsive for 3D Cards */
@media (max-width: 768px) {
    .service-card {
        padding: 25px 20px 0px 20px;
        min-height: auto;
        border-radius: 20px;
        transform-style: flat;
        perspective: none;
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
    }
    
    .service-card:hover {
        transform: translateY(-12px) scale(1.02);
        box-shadow: 
            0 25px 60px rgba(0, 0, 0, 0.2),
            0 10px 30px rgba(102, 126, 234, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.7);
    }
    
    .card-icon {
        width: 75px;
        height: 75px;
        top: 12px;
        right: 12px;
        font-size: 1.7rem;
    }
    
    .service-card:hover .card-icon {
        transform: scale(1.1) rotate(12deg);
        animation: iconRightFloatMobile 2s ease-in-out infinite;
    }
    
    @keyframes iconRightFloatMobile {
        0%, 100% { 
            transform: scale(1.1) rotate(12deg) translateY(0px); 
        }
        50% { 
            transform: scale(1.1) rotate(12deg) translateY(-3px); 
        }
    }
    
    @keyframes iconFloatMobile {
        0%, 100% { transform: scale(1.15) translateZ(10px) translateY(0px); }
        50% { transform: scale(1.15) translateZ(10px) translateY(-3px); }
    }
    
    .service-card h3 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    
    .service-card p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .service-features {
        margin: 20px 0 15px 0;
    }
    
    .card-footer {
        padding: 15px 0px 20px 0px;
        margin-top: auto;
        background: transparent;
    }
    
    .service-features li {
        padding: 6px 10px;
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .service-features li:hover {
        transform: translateX(5px) scale(1.01);
    }
    
    .btn-text {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .btn-text:hover {
        transform: translateY(-2px) scale(1.03);
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 20px 15px 0px 15px;
        min-height: auto;
        border-radius: 18px;
        margin-bottom: 15px;
        display: flex;
        flex-direction: column;
    }
    
    .service-card:hover {
        transform: translateY(-8px) scale(1.01);
    }
    
    .card-icon {
        width: 65px;
        height: 65px;
        top: 10px;
        right: 10px;
        font-size: 1.5rem;
    }
    
    .service-card:hover .card-icon {
        transform: scale(1.08) rotate(10deg);
        animation: iconRightFloatSmall 2s ease-in-out infinite;
    }
    
    @keyframes iconRightFloatSmall {
        0%, 100% { 
            transform: scale(1.08) rotate(10deg) translateY(0px); 
        }
        50% { 
            transform: scale(1.08) rotate(10deg) translateY(-2px); 
        }
    }
    
    @keyframes iconFloatSmall {
        0%, 100% { transform: scale(1.1) translateY(0px); }
        50% { transform: scale(1.1) translateY(-2px); }
    }
    
    .service-card h3 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    .service-card p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    .service-features {
        margin: 15px 0 10px 0;
    }
    
    .card-footer {
        padding: 10px 0px 15px 0px;
        margin-top: auto;
        background: transparent;
    }
    
    .service-features {
        margin: 20px 0;
    }
    
    .service-features li {
        padding: 5px 8px;
        font-size: 0.85rem;
        margin-bottom: 10px;
        border-radius: 10px;
    }
    
    .service-features li:hover {
        transform: translateX(3px);
    }
    
    .btn-text {
        padding: 10px 20px;
        font-size: 0.95rem;
        border-radius: 25px;
    }
    
    .btn-text:hover {
        transform: translateY(-1px) scale(1.02);
    }
    
    .btn-text i {
        margin-left: 8px;
    }
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
    .service-card::after {
        display: none; /* Disable rotating glow on mobile for performance */
    }
    
    .card-icon::before {
        display: none; /* Simplify mobile animations */
    }
} 