:root {
    --primary-color: #ffcbdb;
    --primary-dark: #ff9bb8;
    --secondary-color: #ffeef2;
    --accent-color: #ff6b9d;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(255, 203, 219, 0.3);
    --shadow-hover: 0 8px 25px rgba(255, 203, 219, 0.4);
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Custom Navbar */
.custom-navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar-brand {
    color: var(--accent-color) !important;
    font-size: 2.6rem;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    font-size: 1.4rem; /* Yeni eklenen satır, linkleri büyüttü */
    transition: var(--transition);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--accent-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

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

.hero-section {
    height: 100vh;
    background: url('foto/1.jpg') no-repeat center center;
    background-size: cover;
    /* background-attachment: fixed; */  /* ← bunu kaldır */
    position: relative;
    display: flex;
    align-items: center;
}

.hero-section::before {
    display: none;
}


.hero-title {
    font-size: 4rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease 0.3s both;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.6s both;
}

.btn-primary:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
}

.section-divider {
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Service Cards */
.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.service-card .card-body {
    padding: 1.5rem;
}

.service-card h5 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--accent-color);
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
}

/* Material Cards */
.material-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.material-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.material-card img {
    width: 100%;
    height: 200px;   /* sabit yükseklik */
    object-fit: contain;  /* kırpma yok, resim ortalanır */
    background-color: #fff; /* boş alan varsa beyaz gözüksün */
}


.material-card .card-body {
    padding: 1.25rem;
}

.material-card h6 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.material-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.galeri img {
    width: 100%;
    height: 300px; /* kutu yüksekliğini sabit tuttuk */
    object-fit: contain; /* resmi orijinal oranında kutuya sığdırır */
    background-color: #000; /* resim küçük kalırsa arkası boş gözükmesin diye */
    display: block;
    margin: 0 auto;
}


.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 107, 157, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2rem;
    color: var(--white);
}

/* Contact Section */
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-item i {
    width: 20px;
    margin-top: 0.25rem;
}

.contact-item h6 {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.working-hours .border-bottom:last-child {
    border-bottom: none !important;
}

/* Map */
.map-container {
    height: 400px;
    box-shadow: var(--shadow);
}

/* Modal Customization */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-hover);
}

.modal-header {
    background: var(--secondary-color);
    border-bottom: 1px solid var(--primary-color);
}

.modal-title {
    color: var(--accent-color);
    font-weight: 600;
}

.modal-body img {
    border-radius: var(--border-radius);
}

.modal-body ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 1.5rem;
}

.modal-body ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.modal-body ul li:last-child {
    border-bottom: none;
}

/* Footer */
footer {
    background: var(--text-color) !important;
}

footer h5, footer h6 {
    color: var(--primary-color) !important;
}

.social-links a {
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-3px);
}

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

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-card img,
    .material-card img,
    .gallery-item img {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .service-card img,
    .material-card img,
    .gallery-item img {
        height: 180px;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: var(--text-color);
}

/* Focus styles */
button:focus,
a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Modal Footer Ortala ve Kapat Butonu */
.modal-footer {
    justify-content: center; /* Butonu ortalar */
    border-top: none; /* Eğer border varsa kaldırır */
}

.btn-pink {
    background-color: #ff69b4; /* Pembe renk */
    color: white; /* Yazı rengi beyaz */
    border: none; /* Kenarlık yok */
    padding: 10px 25px; /* Buton iç boşluğu */
    border-radius: 25px; /* Yuvarlak hatlar */
    font-weight: bold;
    transition: background-color 0.3s ease; /* Hover geçiş efekti */
}

.btn-pink:hover {
    background-color: #ff85c1; /* Fare üzerine gelince daha açık pembe */
    color: white;
}


/* Galeri fotoğraflarının aynı boyutta görünmesi */
#galleryContainer .gallery-item {
    position: relative;       /* Fotoğrafı kapsayıcı içinde konumlandırmak için */
    width: 100%;              /* Kapsayıcı genişliği */
    padding-top: 75%;         /* Kapsayıcı yüksekliği. %100 = kare, %75 = 4:3 oran */
    overflow: hidden;         /* Taşan kısmı gizle */
    border-radius: 10px;      /* İsteğe bağlı: köşeleri yuvarlatır */
}

#galleryContainer .gallery-item img {
    position: absolute;       /* Kapsayıcıya göre konumlanacak */
    top: 0;
    left: 0;
    width: 100%;              /* Fotoğraf kapsayıcıyı kaplasın */
    height: 100%;             /* Fotoğraf kapsayıcıyı kaplasın */
    object-fit: cover;        /* Fotoğraf kırpılarak kapsayıcıyı doldurur, oran korunur */
}
