/* Global Styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #475569;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --whatsapp-color: #25D366;
    --gradient: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    color: var(--dark-color);
    line-height: 1.6;
    background-color: #ffffff;
    width: 100%;
    max-width: 100%;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1200px !important;
    padding-left: 15px;
    padding-right: 15px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Section Spacing */
section {
    padding: 1rem 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.display-4 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.lead {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--secondary-color);
    line-height: 1.8;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 40px;
    transition: transform 0.3s ease;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.hero-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 24px;
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.02);
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background: #ffffff;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-weight: bold;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.service-card {
    padding: 2.5rem;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 24px;
}

/* Portfolio Section */
.portfolio-section {
    padding: 3rem 0;
    background: var(--light-color);
    overflow: hidden;
}

.portfolio-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.portfolio-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(37, 99, 235, 0.9), rgba(37, 99, 235, 0.7));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 2rem;
    text-align: center;
}

@media (min-width: 769px) {
    .portfolio-item:hover .portfolio-overlay {
        opacity: 1;
    }
    
    .portfolio-item:hover img {
        transform: scale(1.1);
    }
}

@media (max-width: 768px) {
    .portfolio-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(37, 99, 235, 0.95), rgba(37, 99, 235, 0.85));
        padding: 1rem;
    }
    
    .portfolio-item img {
        height: 200px;
    }
    
    .portfolio-overlay h3 {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }
    
    .portfolio-overlay p {
        font-size: 0.9rem;
        margin-bottom: 0;
    }
    
    .portfolio-item {
        margin-bottom: 15px;
    }
}

.portfolio-overlay h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

/* Why Us Section */
.why-us-section {
    padding: 3rem 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.why-us-section .badge {
    background: var(--gradient);
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 100px;
    margin-bottom: 2rem;
}

.why-us-section h2 {
    margin-bottom: 2rem;
    line-height: 1.4;
}

.why-us-section .lead {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #6c757d;
}

/* Contact Section */
.contact-section {
    padding: 3rem 0;
    background: #FFFFFF;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-control, .form-select {
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.contact-image {
    height: 100%;
    min-height: 400px;
}

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

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: #fff;
    padding-top: 2rem;
    margin-top: 4rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

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

.footer-social .social-link {
    color: #fff;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.footer-social .social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

/* Media Queries */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
    
    section {
        padding: 3rem 0;
        overflow-x: hidden;
    }
    
    .portfolio-section .row {
        margin-left: -15px;
        margin-right: -15px;
    }
    
    .portfolio-item {
        margin-bottom: 20px;
    }
    
    .portfolio-item img {
        height: 250px;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .fixed-contact {
        right: 16px;
        bottom: 16px;
    }
    
    .contact-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

/* Buttons */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 100px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}


/* Fixed Contact Buttons */
.fixed-contact {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.contact-btn {
    width: 56px;
    height: 56px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.contact-btn.whatsapp {
    background: var(--whatsapp-color);
}

.contact-btn.phone {
    background: var(--gradient);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 45px;
    height: 45px;
    background: #394e6f;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    cursor: pointer;
}

.scroll-to-top:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

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

/* Animations */
[data-aos] {
    opacity: 0;
    transition: all 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
} 

.acontact {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999; /* Butonların her zaman üstte olmasını sağlar */
    display: none; /* Başlangıçta gizli */
}

.acontact a {
    border-radius: 0; /* Kenarları keskin tutmak için */
}

.acontact .row {
    margin: 0; /* Kenar boşluklarını sıfırladık */
}

.acontact .col-6 {
    flex: 0 0 50%; /* Butonları eşit şekilde yerleştirmek için */
}

@media (max-width: 767px) {
    .acontact {
        display: block; /* Sadece mobilde görünür hale gelir */
    }
}

/* Başlangıçta her iki elementi de gizli yapıyoruz */
#scrollTop,
.fixed-contact {
    display: none;
}

/* 768px ve üzeri ekranlarda (tablet ve masaüstü) göster */
@media (min-width: 768px) {
    #scrollTop,
    .fixed-contact {
        display: flex; /* Ekranın üst kısmında ve alt kısmında görünsün */
    }
}
