/* 
 * Lead Otomasyon CSS Styles
 * Ana stil dosyası
 */

/* ---- Genel Değişkenler ve Ayarlar ---- */
:root {
    --primary: #0A5688;
    --secondary: #1E293B;
    --accent: #3B82F6;
    --light: #F8FAFC;
    --dark: #0F172A;
    --gray: #64748B;
    --gray-light: #E2E8F0;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --whatsapp: #25D366;
    --whatsapp-dark: #128C7E;
    --transition: all 0.3s ease;
}

/* ---- Genel Stil Sıfırlama ve Temel Ayarlar ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary);
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    bottom: -10px;
    left: 0;
    background-color: var(--accent);
}

/* ---- Header Styles ---- */
header {
    background-color: var(--secondary);
    color: var(--light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light);
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover:after {
    width: 100%;
}

.cta-button {
    background-color: var(--accent);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ---- Hero Slider Styles ---- */
.hero-slider {
    margin-top: 0;
    position: relative;
}

.carousel-item {
    height: 80vh;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    filter: brightness(0.5);
}

.carousel-caption {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    text-align: left;
    left: 10%;
    right: 10%;
    max-width: 700px;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    max-width: 600px;
}

/* Animasyonlar */
.animate-fade {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

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

.hero-buttons .btn {
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-primary {
    background-color: #0D47A1;
    border-color: #0D47A1;
}

.btn-primary:hover {
    background-color: #0A3A86;
    border-color: #0A3A86;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 71, 161, 0.3);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.carousel-indicators {
    bottom: 30px;
}

.carousel-control-prev, 
.carousel-control-next {
    width: 5%;
    opacity: 0.7;
    transition: var(--transition);
}

.carousel-control-prev:hover, 
.carousel-control-next:hover {
    opacity: 1;
}

/* ---- About Section ---- */
.about {
    padding: 5rem 0;
}

.about-content {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1rem;
}

.about-img {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.about-img:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.2);
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---- Services Section ---- */
.services {
    padding: 5rem 0;
    background-color: #F1F5F9;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.service-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.service-desc {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

/* Collapsible content */
.service-full-desc {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-light);
}

.service-full-desc h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.service-full-desc ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.service-full-desc li {
    margin-bottom: 0.5rem;
}

.read-more {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    position: relative;
    cursor: pointer;
    margin-top: auto;
    transition: var(--transition);
}

.read-more:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.read-more:hover:after {
    width: 100%;
}

.read-more:hover {
    color: #2563EB;
}

.read-less {
    display: none;
    margin-top: 1rem;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.read-less:hover {
    color: #2563EB;
}

/* ---- Why Choose Us Section ---- */
.why-us {
    padding: 5rem 0;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.feature-desc {
    color: var(--gray);
}

/* ---- CTA Section ---- */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.cta-secondary {
    background-color: transparent;
    border: 2px solid white;
}

.cta-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* ---- Testimonials & References ---- */
.testimonials {
    padding: 5rem 0;
    background-color: #F1F5F9;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 4rem;
}

.testimonial-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

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

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--dark);
    position: relative;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 1.5rem;
    color: var(--accent);
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    border: 2px solid var(--accent);
}

.author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    color: var(--secondary);
}

.author-role {
    font-size: 0.875rem;
    color: var(--gray);
}

/* Referanslar Slider */
.references-section {
    margin-top: 4rem;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.references-title {
    font-size: 1.5rem;
    color: var(--secondary);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.references-title:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent);
}

.references-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1rem 0;
}

.reference-logo {
    width: 120px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    background-color: white;
    border-radius: 5px;
    transition: var(--transition);
    filter: grayscale(100%);
}

.reference-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.reference-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#referencesCarousel .carousel-control-prev,
#referencesCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: var(--accent);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

#referencesCarousel .carousel-control-prev {
    left: -20px;
}

#referencesCarousel .carousel-control-next {
    right: -20px;
}

#referencesCarousel .carousel-control-prev:hover,
#referencesCarousel .carousel-control-next:hover {
    opacity: 1;
}

@media (max-width: 992px) {
    .references-row {
        flex-wrap: wrap;
    }
    
    .reference-logo {
        width: 100px;
        height: 70px;
    }
}

@media (max-width: 768px) {
    .references-section {
        padding: 1.5rem;
    }
    
    .references-row {
        gap: 1rem;
    }
    
    .reference-logo {
        width: 80px;
        height: 60px;
    }
    
    #referencesCarousel .carousel-control-prev,
    #referencesCarousel .carousel-control-next {
        display: none;
    }
}

/* ---- Contact Section ---- */
.contact {
    padding: 5rem 0;
}

.contact-content {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
    background-color: #2563EB;
}

.contact-text {
    color: var(--gray);
}

.whatsapp-direct {
    color: var(--whatsapp);
    font-weight: 600;
    transition: var(--transition);
}

.whatsapp-direct:hover {
    color: var(--whatsapp-dark);
    text-decoration: underline;
}

.contact-form {
    flex: 1;
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-light);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.form-control.is-valid {
    border-color: var(--success);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--whatsapp);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.submit-btn:hover {
    background-color: var(--whatsapp-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.submit-btn i {
    font-size: 1.2rem;
}

/* WhatsApp Target Radios */
.whatsapp-targets-container {
    background-color: #f5f5f5;
    padding: 0.75rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.whatsapp-targets {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.whatsapp-target {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
}

.whatsapp-target:hover {
    background-color: #e9e9e9;
}

.whatsapp-target input {
    margin: 0;
}

.whatsapp-target span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.whatsapp-target i {
    color: var(--whatsapp);
}

.small {
    font-size: 0.875rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

/* Alert messages */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: var(--light);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--gray-light);
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-links h3:after, .footer-contact h3:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    bottom: -8px;
    left: 0;
    background-color: var(--accent);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-light);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: var(--gray-light);
}

.footer-contact i {
    margin-right: 10px;
    margin-top: 5px;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-light);
}

/* ---- Back to Top Button ---- */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #2563EB;
    transform: translateY(-3px);
}

/* ---- Responsive Styles ---- */
@media (max-width: 992px) {
    .about-content, .contact-content {
        flex-direction: column;
    }
    
    .carousel-caption h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--secondary);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
    }
    
    .nav-links a {
        padding: 0.75rem 1rem;
        display: block;
    }
    
    .mobile-menu {
        display: block;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .carousel-item {
        height: 70vh;
    }
    
    .carousel-caption {
        text-align: center;
        left: 5%;
        right: 5%;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .carousel-caption h1 {
        font-size: 1.75rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .hero-buttons .btn {
        margin-right: 0;
        width: 200px;
    }
    
    .whatsapp-targets {
        flex-direction: column;
    }
}