/* ===================================
   Custom CSS for Semak Yapı Website
   =================================== */

/* Global Styles */
:root {
    --primary-color: #C9A855;
    --secondary-color: #1A1A1A;
    --dark-color: #0D0D0D;
    --light-color: #F5F5F5;
    --text-color: #333333;
    --text-light: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Navbar Styles */
.navbar {
    padding: 1.25rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 60px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.brand-name {
    letter-spacing: 1px;
    white-space: nowrap;
}

/* Logo responsive ayarları */
@media (max-width: 768px) {
    .navbar-logo {
        height: 50px;
        max-width: 200px;
    }
    
    .brand-name {
        font-size: 1.1rem;
    }
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: var(--primary-color);
    color: white !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-color) 100%);
    background-image: url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?w=1920');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(13, 13, 13, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s backwards;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s backwards;
}

/* Feature Boxes */
.features-section {
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.feature-box {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    margin-bottom: 1rem;
}

/* Section Titles */
.section-title h2 {
    position: relative;
    padding-bottom: 1rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
}

/* About Preview Section */
.about-image-wrapper img {
    border-radius: 10px;
}

/* Service Cards */
.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    margin-bottom: 1rem;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.stat-item h2 {
    font-weight: 700;
}

/* CTA Section */
.cta-section {
    background: var(--light-color);
    padding: 4rem 0;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #B8963E;
    border-color: #B8963E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201, 168, 85, 0.3);
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color) !important;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-color) 100%);
    background-image: url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?w=1920');
    background-size: cover;
    background-position: center;
    padding: 120px 0 80px;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(13, 13, 13, 0.85) 100%);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    background: transparent;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white;
}

/* Mission Vision Boxes */
.mission-vision-box {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Value Boxes */
.value-box {
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.value-box:hover {
    transform: translateY(-5px);
}

.value-icon {
    transition: all 0.3s ease;
}

.value-box:hover .value-icon i {
    transform: scale(1.1);
}

/* Team Cards */
.team-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.team-image {
    overflow: hidden;
    height: 280px;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

/* Certification Boxes */
.cert-box {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.cert-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Service Detail Pages */
.service-detail {
    padding: 1rem 0;
}

.service-detail ul {
    padding-left: 0;
}

/* Project Cards */
.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.project-item {
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1;
}

.project-content {
    padding: 1.5rem;
}

.project-category {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
    border-top: 1px solid #eee;
    padding-top: 0.75rem;
}

/* Project Filter */
.project-filter {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-filter .btn {
    margin: 0.25rem;
}

/* Contact Info Boxes */
.contact-info-box {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.contact-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.icon-wrapper {
    display: inline-block;
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.form-control,
.form-select {
    border: 2px solid #e0e0e0;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(201, 168, 85, 0.15);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* Map Container */
.map-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
}

/* Working Hours Box */
.working-hours-box {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 8px;
}

/* Accordion Styles */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    background-color: white;
    color: var(--text-color);
    font-weight: 500;
    padding: 1.25rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-body {
    padding: 1.25rem;
    background-color: white;
}

/* Footer Styles */
footer {
    margin-top: auto;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.text-light-gray {
    color: rgba(255, 255, 255, 0.7);
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
}

.social-links a {
    display: inline-block;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--primary-color) !important;
}

/* Error Page */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.error-content {
    padding: 3rem;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: rgba(26, 26, 46, 0.95);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
    }
    
    .hero-section {
        background-attachment: scroll;
    }
    
    .features-section {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .display-6 {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .cta-section {
        display: none;
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.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);
    color: white;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    line-height: 60px;
}

/* WhatsApp buton animasyonu */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    animation: none;
}

/* Responsive - Mobil cihazlarda küçült */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 26px;
    }
    
    .whatsapp-float i {
        line-height: 50px;
    }
}

/* Print'te gizle */
@media print {
    .whatsapp-float {
        display: none;
    }
}
