/* Bootstrap CSS */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css');

/* Font Awesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

/* Custom CSS */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.hero-section {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 100px 0;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 3rem;
    text-align: center;
    color: #333;
}

.feature-icon {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.footer {
    background-color: #343a40;
    color: white;
    padding: 50px 0;
    margin-top: 50px;
}

.footer h5, .footer h6 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.8;
}

.footer a:hover {
    color: #007bff;
}

.footer .row {
    gap: 2rem;
}

.footer .social-links a {
    transition: all 0.3s ease;
    display: inline-block;
}

.footer .social-links a:hover {
    transform: translateY(-3px);
    color: #007bff !important;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer .text-white-50 {
    line-height: 1.8;
}

/* Responsive footer adjustments */
@media (max-width: 768px) {
    .footer .row {
        gap: 1rem;
    }
    
    .footer {
        padding: 40px 0;
    }
    
    .footer .col-md-6 {
        margin-bottom: 2rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Form Styles */
.form-control {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #007bff;
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Service Cards */
.service-card {
    text-align: center;
    padding: 2rem;
    height: 100%;
}

.service-card .card-icon {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.service-card h5 {
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

/* About Page */
.about-section {
    padding: 60px 0;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

/* Projects Gallery */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

/* Utility Classes */
.text-primary {
    color: #007bff !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.rounded {
    border-radius: 10px !important;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Error States */
.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success States */
.is-valid {
    border-color: #28a745;
}

.valid-feedback {
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* WhatsApp Widget - Modern Canlı Tasarım */
.whatsapp-widget-fixed {
    position: fixed !important;
    bottom: 25px !important;
    right: 25px !important;
    z-index: 2147483647 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto !important;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.whatsapp-icon-button {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366 0%, #20c997 50%, #128c7e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 
        0 12px 35px rgba(37, 211, 102, 0.5),
        0 6px 20px rgba(37, 211, 102, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 3px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    position: relative;
    overflow: visible;
    animation: whatsapp-float 3s ease-in-out infinite;
}

.whatsapp-icon {
    transition: all 0.3s ease;
    filter: brightness(1.1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.whatsapp-icon-button:hover {
    transform: scale(1.15) rotate(5deg);
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 16px 45px rgba(37, 211, 102, 0.7),
        0 8px 25px rgba(37, 211, 102, 0.5),
        inset 0 3px 0 rgba(255, 255, 255, 0.4);
    animation: whatsapp-bounce 0.6s ease-in-out;
}

.whatsapp-icon-button:hover .whatsapp-icon {
    transform: scale(1.1) rotate(-5deg);
    filter: brightness(1.3) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.whatsapp-icon-button:focus {
    outline: none;
    box-shadow: 
        0 0 0 4px rgba(37, 211, 102, 0.4),
        0 12px 35px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon-button:active {
    transform: scale(0.95);
    background: linear-gradient(135deg, #0f7a6b 0%, #1ea952 100%);
    transition: all 0.1s ease;
}

/* Pulse Ring Animasyonları */
.whatsapp-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 65px;
    height: 65px;
    border: 3px solid rgba(37, 211, 102, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: whatsapp-pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
    pointer-events: none;
}

.whatsapp-pulse-ring-delay {
    animation-delay: 1s;
    border-color: rgba(37, 211, 102, 0.4);
}



/* Canlı Animasyonlar */
@keyframes whatsapp-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes whatsapp-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: scale(1.15) rotate(5deg) translateY(0);
    }
    40% {
        transform: scale(1.2) rotate(5deg) translateY(-5px);
    }
    60% {
        transform: scale(1.1) rotate(5deg) translateY(-3px);
    }
}

@keyframes whatsapp-pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

@keyframes whatsapp-glow {
    0%, 100% {
        box-shadow: 
            0 8px 25px rgba(37, 211, 102, 0.4),
            0 4px 15px rgba(37, 211, 102, 0.2);
    }
    50% {
        box-shadow: 
            0 12px 35px rgba(37, 211, 102, 0.6),
            0 6px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .whatsapp-widget-fixed {
        bottom: 20px;
        right: 15px;
    }
    
    .whatsapp-icon-button {
        width: 55px;
        height: 55px;
        box-shadow: 
            0 6px 20px rgba(37, 211, 102, 0.4),
            0 3px 12px rgba(37, 211, 102, 0.2);
    }
    
    .whatsapp-icon-button:hover {
        transform: scale(1.1) rotate(3deg);
    }
    
    .whatsapp-pulse-ring {
        width: 60px;
        height: 60px;
        border-width: 2px;
    }
}