/*
   NCH Teknik Servis - Main Stylesheet
   Author: GitHub Copilot
   Date: May 23, 2025
*/

/* ===== GENERAL STYLES ===== */
:root {
    --primary-color: #0056b3;
    --primary-dark: #004494;
    --primary-light: #e6f0ff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --body-color: #f8f9fa;
    --text-color: #495057;
    --heading-color: #212529;
    --border-radius: 0.375rem;
    --box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--body-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.section-title {
    position: relative;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    color: var(--secondary-color);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.shadow-hover {
    transition: var(--transition);
}

.shadow-hover:hover {
    box-shadow: var(--box-shadow);
    transform: translateY(-5px);
}

/* ===== HEADER STYLES ===== */
.top-bar {
    font-size: 0.875rem;
}

.navbar-brand img {
    max-height: 60px;
}

.navbar {
    padding: 0.75rem 0;
}

.nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover, 
.nav-link.active {
    color: var(--primary-color);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
}

.dropdown-item:hover, 
.dropdown-item:focus {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

/* ===== HERO SECTION ===== */
.hero-carousel .carousel-item {
    height: 830px;
    position: relative;
}

.hero-carousel .carousel-item img {
    height: 830px;
    object-fit: cover;
    width: 100%;
}

.carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    padding-left: 15px;
    padding-right: 15px;
    color: white;
}

.carousel-caption h1 {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.carousel-caption p {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* ===== FEATURES SECTION ===== */
.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.feature-card {
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
}

/* ===== SERVICES SECTION ===== */
.service-img-container {
    overflow: hidden;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    position: relative;
}

.service-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

/* ===== PROCESS SECTION ===== */
.process-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto;
    position: relative;
}

.process-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-light);
    z-index: -1;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonial-card {
    position: relative;
    z-index: 1;
}

.testimonial-text {
    font-style: italic;
    color: var(--secondary-color);
}

.user-avatar img {
    border: 3px solid var(--primary-color);
}

/* ===== PARTNERS SECTION ===== */
.partner-logo {
    max-height: 80px;
    opacity: 0.7;
    transition: var(--transition);
    filter: grayscale(100%);
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* ===== FOOTER SECTION ===== */
.footer {
    background-color: var(--dark-color);
}

.footer-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a {
    color: #adb5bd;
    transition: var(--transition);
}

.footer-menu a:hover {
    color: white;
    padding-left: 5px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 991.98px) {
    .hero-carousel .carousel-item {
        height: 650px;
    }
    
    .hero-carousel .carousel-item img {
        height: 650px;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .process-item {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-carousel .carousel-item {
        height: 500px;
    }
    
    .hero-carousel .carousel-item img {
        height: 500px;
    }
      .carousel-caption h1 {
        font-size: 1.75rem;
        color: white !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    
    .carousel-caption p {
        font-size: 1rem;
        color: white !important;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* ===== CUSTOM ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 1s ease;
}

/* ===== CONTACT PAGE ===== */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 86, 179, 0.25);
}

/* ===== ABOUT PAGE ===== */
.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.stats-box {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.stats-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ===== SERVICES PAGE ===== */
.service-detail-img {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.service-detail-img img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.service-detail-img:hover img {
    transform: scale(1.05);
}

/* ===== PORTFOLIO PAGE ===== */
.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.portfolio-filter-item {
    margin: 0.5rem;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    background-color: white;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.portfolio-filter-item:hover,
.portfolio-filter-item.active {
    background-color: var(--primary-color);
    color: white;
}

.portfolio-item {
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.portfolio-img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 86, 179, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-title {
    color: white;
    margin-bottom: 0.5rem;
}

.portfolio-category {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== BLOG PAGE ===== */
.blog-card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.blog-img-container {
    overflow: hidden;
    position: relative;
}

.blog-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-img {
    transform: scale(1.05);
}

.blog-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.blog-category {
    color: var(--primary-color);
    font-weight: 500;
}

.blog-title {
    margin: 1rem 0;
}

.blog-excerpt {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* ===== ACCORDION STYLES ===== */
.accordion-button:not(.collapsed) {
    background-color: var(--primary-light);
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 86, 179, 0.25);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230056b3'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* ===== SERVICE DETAILS STYLES ===== */
.service-gallery-thumbnail {
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: var(--border-radius);
    transition: var(--transition);
    opacity: 0.7;
}

.service-gallery-thumbnail.active {
    border-color: var(--primary-color);
    opacity: 1;
}

.service-gallery-thumbnail:hover {
    opacity: 1;
}

.service-feature-card .feature-icon {
    color: var(--primary-color);
}

.process-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
}

.process-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--light-color);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
}

.service-menu li {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

.service-menu li:last-child {
    border-bottom: none;
}

.service-menu li a {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-color);
    transition: var(--transition);
}

.service-menu li a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.service-menu li.active a {
    color: var(--primary-color);
    font-weight: 600;
}

.service-menu li i {
    width: 20px;
    text-align: center;
}

.highlight-answer {
    animation: highlight-fade 1s ease;
}

@keyframes highlight-fade {
    0% { background-color: rgba(0,86,179,0.15); }
    100% { background-color: transparent; }
}

.share-buttons .btn {
    margin-bottom: 10px;
}

.contact-info p {
    margin-bottom: 0.75rem;
}

.service-faq .accordion-button:not(.collapsed) {
    background-color: var(--primary-light);
    color: var(--primary-color);
    box-shadow: none;
}

.service-faq .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,0.125);
}

@media print {
    header, footer, .sidebar-widget, .related-services, .service-share, .service-cta, .back-to-top {
        display: none !important;
    }
    
    .col-lg-8 {
        width: 100% !important;
    }
    
    .service-detail-content {
        font-size: 12pt;
    }
}

/* ===== BREADCRUMB STYLES ===== */
.breadcrumb {
    color: white !important;
}

.breadcrumb-item {
    color: white !important;
}

.breadcrumb-item a {
    color: white !important;
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.breadcrumb-item a:hover {
    color: #f8f9fa !important;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.8) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}
