/* style.css - Sertek Teknik Sistemleri Kurumsal Tasarım */
:root {
    --primary-color: #0b2341; /* Koyu Lacivert */
    --secondary-color: #0d6efd; /* Parlak Mavi */
    --accent-color: #f8f9fa; /* Açık Gri */
    --text-dark: #333;
    --text-light: #fff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
}

/* Navbar */
.navbar {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-light) !important;
    letter-spacing: 0.5px;
}

.brand-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 4px;
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    margin-left: 15px;
    transition: all 0.3s;
}

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

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: color-mix(in srgb, var(--secondary-color) 85%, #000);
    border-color: color-mix(in srgb, var(--secondary-color) 85%, #000);
}

/* Slider */
.hero-carousel {
    margin-top: 88px;
}

.hero-slide {
    min-height: 520px;
    background-size: cover;
    background-position: center;
    color: #fff;
    position: relative;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(11, 35, 65, 0.75);
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    padding: 120px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto 1.5rem;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    z-index: 3;
}

.page-splash {
    position: fixed;
    inset: 0;
    background: rgba(11, 35, 65, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.page-splash.hidden {
    opacity: 0;
    pointer-events: none;
}

.page-splash-content {
    color: #fff;
}

.page-splash-logo {
    width: 96px;
    height: 96px;
    object-fit: contain;
    background: #fff;
    border-radius: 16px;
    padding: 8px;
    margin-bottom: 16px;
}

.page-splash-logo-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    border-radius: 16px;
    background: #fff;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

body.splash-visible {
    overflow: hidden;
}

.contact-success-banner {
    background: rgba(13, 110, 253, 0.1);
    border: 1px solid rgba(13, 110, 253, 0.3);
    color: var(--primary-color);
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-weight: 600;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.contact-success-banner.hide {
    opacity: 0;
    transform: translateY(-6px);
}

/* Kartlar ve Hizmetler */
.service-card {
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
}

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

.icon-box {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* References */
.references-section {
    background-color: #000;
    color: #fff;
}

.reference-pill {
    display: inline-block;
    padding: 12px 24px;
    margin: 8px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    padding: 24px;
}

.gallery-modal.show {
    display: flex;
}

.gallery-modal-content {
    position: relative;
    max-width: 960px;
    width: 100%;
    text-align: center;
    color: #fff;
}

.gallery-modal-content img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 16px;
}

.gallery-modal-title {
    margin-top: 16px;
    font-size: 1.1rem;
}

.gallery-close,
.gallery-prev,
.gallery-next {
    position: absolute;
    top: 16px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
}

.gallery-close {
    right: 16px;
}

.gallery-prev {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-next {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

/* Floating buttons */
.floating-actions {
    position: fixed;
    left: 16px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1040;
}

.floating-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    font-weight: 600;
}

.floating-btn.whatsapp {
    background-color: #25d366;
}

.floating-btn span {
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: rgba(255,255,255,0.8);
    padding: 50px 0 20px;
}

footer h5 {
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
}

footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--secondary-color);
}

.instagram-placeholder {
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.instagram-placeholder i {
    font-size: 2rem;
    margin-bottom: 8px;
}

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

    .hero-slide-content {
        padding: 80px 0;
    }

    .page-splash-logo {
        width: 72px;
        height: 72px;
    }

    .floating-actions {
        left: 12px;
        bottom: 16px;
    }

    .floating-btn span {
        display: none;
    }

    .gallery-item img {
        height: 140px;
    }
}