/* CSS Değişkenleri (Renk Paleti ve Fontlar) */
:root {
    --inveco-primary: #0052CC; /* Daha Kurumsal Mavi */
    --inveco-secondary: #5A6772; /* Daha Yumuşak Gri */
    --inveco-dark: #1D2A39;     /* Koyu Lacivert/Antrasit */
    --inveco-light: #f8f9fa;    
    --inveco-accent: #FFA000;   /* Canlı Turuncu/Amber */
    --inveco-success: #28a745;
    --inveco-info: #17a2b8;
    --inveco-warning: #ffc107;
    --inveco-danger: #dc3545;
    --inveco-text: #343a40;     
    --inveco-text-muted: #6c757d;
    
    --font-primary: 'Montserrat', sans-serif; /* Başlıklar ve önemli metinler */
    --font-secondary: 'Open Sans', sans-serif; /* Paragraflar ve genel metinler */

    --navbar-height: 70px; 
    --navbar-height-scrolled: 60px;
}

/* Genel Stiller */
body {
    font-family: var(--font-secondary);
    color: var(--inveco-text);
    padding-top: var(--navbar-height); 
    line-height: 1.7;
    background-color: #fff;
}

html {
    scroll-padding-top: var(--navbar-height); 
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--inveco-dark);
}

.section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
}

.btn {
    font-family: var(--font-primary);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}
.btn-primary {
    background-color: var(--inveco-primary);
    border-color: var(--inveco-primary);
}
.btn-primary:hover {
    background-color: #0041A3; /* Primary koyusu */
    border-color: #003B93;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
}
.action-btn { /* Genel outline buton stili */
    border-width: 2px;
}
.action-btn-primary { /* Ana eylem butonu */
     background-color: var(--inveco-accent);
     border-color: var(--inveco-accent);
     color: var(--inveco-dark);
}
.action-btn-primary:hover {
    background-color: #E69500; /* Accent koyusu */
    border-color: #CC8400;
    color: var(--inveco-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 160, 0, 0.3);
}


/* Navbar */
.inveco-navbar {
    background-color: transparent !important; /* Başlangıçta transparan */
    transition: background-color 0.4s ease-in-out, padding 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
    padding-top: 15px;
    padding-bottom: 15px;
}

.inveco-navbar.scrolled {
    background-color: var(--inveco-dark) !important; 
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    padding-top: 10px;
    padding-bottom: 10px;
}


.inveco-navbar .navbar-brand {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--inveco-accent) !important; /* Logo rengi */
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s ease-in-out;
}

.navbar-nav .nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 0.6rem 1.1rem;
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
    border-radius: 4px;
    margin: 0 5px;
    position: relative;
}
.inveco-navbar:not(.scrolled) .nav-link { /* Sadece başlangıçta transparan navbar için */
     text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ffffff !important;
}
.navbar-nav .nav-link.active {
    font-weight: 700;
}
/* Aktif link için alt çizgi efekti */
.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: var(--inveco-accent);
    border-radius: 2px;
}
.navbar-nav .nav-link:hover::after { /* hoverda da göster ama daha soluk */
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 2px;
    background-color: rgba(255, 160, 0, 0.5);
    border-radius: 2px;
}


.navbar-toggler {
    border-color: rgba(255,255,255,0.4);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-brand .logo-img {
    height: 60px; /* Logo yüksekliği */
    width: auto; /* Oranı koruyarak genişlik otomatik ayarlanır */
    transition: all 0.3s ease; /* Yumuşak geçiş efekti */
}

/* Sayfa aşağı kaydırıldığında navbar küçülürse logo da küçülsün */
.navbar.scrolled .navbar-brand .logo-img {
    height: 50px;
}

/* Mobil görünümde logo boyutu */
@media (max-width: 768px) {
    .navbar-brand .logo-img {
        height: 45px;
    }
}

/* Hero Section */
#hero {
    min-height: 100vh; 
    background: linear-gradient(rgba(29, 42, 57, 0.7), rgba(29, 42, 57, 0.85)), url('img/hero-bg.jpg') no-repeat center center fixed; /* fixed ile parallax benzeri etki */
    background-size: cover;
    position: relative;
}

#hero h1 {
    font-size: 3.5rem; 
    font-weight: 800; /* Montserrat'ın en kalın ağırlığı */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    color: #fff;
}

#hero .hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.85);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}
.hero-btn {
    padding: 14px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    background-color: var(--inveco-accent);
    border-color: var(--inveco-accent);
    color: var(--inveco-dark);
    box-shadow: 0 4px 15px rgba(255, 160, 0, 0.2);
}
.hero-btn:hover {
    background-color: #E69500; 
    border-color: #CC8400;
    color: var(--inveco-dark);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 160, 0, 0.35);
}


/* Section Başlıkları */
.section-title {
    color: var(--inveco-dark);
    margin-bottom: 0.75rem;
    font-size: 2.8rem;
    font-weight: 700;
}
.section-subtitle {
    color: var(--inveco-primary);
    font-weight: 700;
    font-size: 1.5rem;
}

.title-hr {
    width: 90px;
    height: 5px;
    background-color: var(--inveco-accent);
    border: none;
    margin: 0 auto 2.5rem auto; 
    opacity: 1;
    border-radius: 3px;
}

/* Hakkımızda Section */
#hakkimizda .text-muted {
    color: #525d66 !important; /* Daha yumuşak bir gri */
    font-size: 1.05rem;
}
#hakkimizda .btn-outline-secondary {
    color: var(--inveco-secondary);
    border-color: var(--inveco-secondary);
    border-width: 2px;
    padding: 0.6rem 1.2rem;
}
#hakkimizda .btn-outline-secondary:hover {
    background-color: var(--inveco-secondary);
    color: #fff;
    transform: translateY(-2px);
}
#hakkimizda img {
    border: 5px solid #fff; /* Beyaz çerçeve */
}


/* Hizmetler Section */
.service-card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    background-color: #fff;
    padding: 20px;
    border-bottom: 4px solid transparent; /* Hover için yer tutucu */
}
.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 1.2rem 2.5rem rgba(0,0,0,.08)!important;
    border-bottom-color: var(--inveco-accent);
}
.service-card .card-title {
    color: var(--inveco-dark);
    font-size: 1.3rem;
    margin-top: 1rem;
}
.service-card .card-text {
    font-size: 0.95rem;
    color: var(--inveco-text-muted);
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.service-card:hover .icon-circle {
    transform: scale(1.1);
}


/* Projeler Section */
.project-card img {
    height: 240px; 
    object-fit: cover;
    border-top-left-radius: calc(0.375rem - 1px); 
    border-top-right-radius: calc(0.375rem - 1px);
    transition: transform 0.4s ease;
}
.project-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden; /* img hover için */
    transition: box-shadow 0.3s ease;
}
.project-card:hover {
    box-shadow: 0 .75rem 1.8rem rgba(0,0,0,.1)!important;
}
.project-card:hover img {
    transform: scale(1.05);
}
.project-card .card-title {
    color: var(--inveco-dark);
    font-size: 1.25rem;
}
.project-btn {
    transition: all 0.3s ease;
    font-weight: 600;
}
.project-btn:hover {
    background-color: var(--inveco-primary);
    color: #fff;
    transform: scale(1.05);
}

/* Müşteri Yorumları (Testimonial) */
#musteri-yorumlari .carousel-item {
    padding: 0 12%; 
    min-height: 400px; 
    display: flex;
    align-items: center;
    justify-content: center;
}
.testimonial-card {
    background-color: #fff;
    padding: 35px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
    text-align: center;
}
.testimonial-avatar {
    width: 110px;
    height: 110px;
    object-fit: cover;
    margin: 0 auto 15px auto;
    border: 5px solid var(--inveco-light);
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
.testimonial-text {
    font-size: 1.15rem;
    color: var(--inveco-text-muted);
    margin-bottom: 1.2rem;
    line-height: 1.8;
}
.testimonial-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--inveco-dark);
}
.testimonial-title {
    font-size: 0.9rem;
    color: var(--inveco-secondary);
}
#testimonialCarousel .carousel-indicators [data-bs-target] {
    background-color: var(--inveco-primary);
    opacity: 0.5;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    transition: opacity 0.3s ease;
}
#testimonialCarousel .carousel-indicators .active {
    opacity: 1;
}
#testimonialCarousel .carousel-control-prev-icon,
#testimonialCarousel .carousel-control-next-icon {
    background-color: var(--inveco-dark); 
    border-radius: 50%;
    padding: 18px; 
    width: 25px; 
    height: 25px; 
    background-size: 60% 60%; 
}
#testimonialCarousel .carousel-control-prev, #testimonialCarousel .carousel-control-next {
    width: 8%; 
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
#testimonialCarousel .carousel-control-prev:hover, #testimonialCarousel .carousel-control-next:hover {
    opacity: 1;
}


/* İletişim Section */
.contact-form {
    background-color: #fff;
}
.contact-info-title {
    color: var(--inveco-dark);
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
}
.contact-info-list li {
    margin-bottom: 1rem;
    color: var(--inveco-text-muted);
    display: flex;
    align-items: center; 
    font-size: 1.05rem;
}
.contact-info-list li i {
    color: var(--inveco-primary);
    font-size: 1.2rem;
}

.form-control-lg {
    padding: 0.8rem 1rem;
    font-size: 1rem;
}
.form-control:focus {
    border-color: var(--inveco-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.2);
}

.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%; 
    position: relative;
    height: 0;
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    filter: grayscale(30%) opacity(0.9); /* Hafif desatüre ve opak */
}

/* Footer */
footer {
    background-color: var(--inveco-dark) !important; 
}
footer h6 {
    color: var(--inveco-accent);
}
.footer-link {
    text-decoration: none;
    transition: color 0.2s ease-in-out, padding-left 0.2s ease-in-out;
}
.footer-link:hover {
    color: #fff !important;
    padding-left: 5px;
}
.social-link {
    transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
}
.social-link:hover {
    color: var(--inveco-accent) !important;
    transform: translateY(-3px);
}
footer .border-secondary {
    border-color: rgba(255,255,255,0.15) !important;
}

/* Yukarı Çık Butonu */
#scrollTopButton {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none; 
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.3rem;
    z-index: 1030; /* Navbar'ın üzerinde kalması için (fixed-top navbar z-index 1030) */
    background-color: var(--inveco-accent);
    border-color: var(--inveco-accent);
    color: var(--inveco-dark);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

#scrollTopButton:hover {
    background-color: #E69500;
    border-color: #CC8400;
    color: var(--inveco-dark);
    transform: scale(1.1);
}


/* Responsive Ayarlamalar */
@media (max-width: 991.98px) {
    :root {
        --navbar-height: 65px; /* Mobil için navbar yüksekliği */
    }
    .section-padding {
        padding-top: 70px;
        padding-bottom: 70px;
    }
    #hero h1 {
        font-size: 2.8rem;
    }
    #hero .hero-subtitle {
        font-size: 1.2rem;
    }
    .section-title {
        font-size: 2.4rem;
    }
    #musteri-yorumlari .carousel-item {
        padding: 0 8%;
    }
}

@media (max-width: 767.98px) {
    :root {
        --navbar-height: 60px;
    }
    body {
        padding-top: var(--navbar-height);
    }
    html {
        scroll-padding-top: var(--navbar-height);
    }

    #hero h1 {
        font-size: 2.3rem;
    }
    #hero .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2.5rem !important;
    }
    .hero-btn {
        padding: 12px 28px;
        font-size: 1rem;
    }
    .section-title {
        font-size: 2rem;
    }
     .section-subtitle {
        font-size: 1.3rem;
    }
    .title-hr {
        width: 70px;
        height: 4px;
        margin-bottom: 2rem;
    }
    
    .d-flex.justify-content-between.align-items-md-center { /* Projeler başlık ve buton */
        flex-direction: column;
        align-items: center !important; /* Başlığı sola yasla */
        text-align: center;
    }
    .d-flex.justify-content-between.align-items-md-center .btn {
        margin-top: 1.5rem;
    }

    #musteri-yorumlari .carousel-item {
        padding: 0 3%;
        min-height: auto; /* İçeriğe göre otomatik ayarlasın */
        padding-bottom: 50px; /* Kontroller için yer */
    }
    .testimonial-card {
        padding: 25px;
    }
    .testimonial-avatar {
        width: 90px;
        height: 90px;
    }
    footer .text-md-start {
        text-align: center !important;
    }
    footer .social-icons {
        justify-content: center !important;
        margin-top: 1rem;
    }
    footer .d-flex.justify-content-md-between {
        flex-direction: column;
        align-items: center;
    }
}

/* Navbar logosu için ana stil */
.logo-img {
    max-height: 200px; /* Arttırıldı */
    width: auto;
    transition: max-height 0.4s ease-in-out;
}

/* Navbar brand içindeki logo */
.navbar-brand .logo-img {
    height: 100px; /* Arttırıldı */
    width: auto;
    transition: all 0.3s ease;
}

/* Scroll edildiğinde küçülecek logo */
.navbar.scrolled .navbar-brand .logo-img {
    height: 80px; /* Arttırıldı */
}

/* Mobil görünüm için logo boyutu */
@media (max-width: 768px) {
    .navbar-brand .logo-img {
        height: 70px; /* Arttırıldı */
    }
    .navbar.scrolled .navbar-brand .logo-img {
        height: 60px; /* Arttırıldı */
    }
}

/* Logo Stilleri */
.logo-img {
    width: auto;
    transition: all 0.4s ease-in-out;
}

/* Navbar Logo */
.navbar-logo {
    height: 120px; /* Daha büyük navbar logo */
    min-height: 80px;
}

.navbar.scrolled .navbar-logo {
    height: 90px; /* Scroll durumunda küçültülmüş boyut */
}

/* Hero Section Logo */
.hero-logo {
    height: 150px; /* Hero section'daki logo boyutu */
    filter: brightness(0) invert(1); /* Logo beyaz renkte görünsün */
}

/* Mobil Görünüm */
@media (max-width: 768px) {
    .navbar-logo {
        height: 80px;
    }
    
    .navbar.scrolled .navbar-logo {
        height: 70px;
    }
    
    .hero-logo {
        height: 100px;
    }
}