/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
}

:root {
    --bs-primary: #34547A;
    --bs-primary-rgb: 52, 84, 122;
    --bs-primary-dark: #233852;
    --bs-success: #67C090;
    --bs-success-rgb: 103, 192, 144;
    --bs-secondary: #34B8BD;
    --bs-secondary-rgb: 52, 184, 189;
}

.text-primary {
    color: var(--bs-primary) !important;
}

.bg-primary {
    background-color: var(--bs-primary) !important;
}

.btn-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

.btn-primary:hover {
    background-color: var(--bs-primary-dark) !important;
    border-color: var(--bs-primary-dark) !important;
}

.btn-outline-primary {
    color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

.btn-outline-primary:hover {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #fff !important;
}

.text-success {
    color: var(--bs-success) !important;
}

.bg-success {
    background-color: var(--bs-success) !important;
}

.text-secondary {
    color: var(--bs-secondary) !important;
}

.bg-secondary {
    background-color: var(--bs-secondary) !important;
}

html {
    scroll-padding-top: 120px;
    /* Offset for fixed navbar + top bar */
    scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: all 0.3s ease;
}

/* Top Bar */
.top-bar {
    background-color: var(--bs-primary);
    color: white;
    font-size: 0.875rem;
    height: 40px;
    /* Fixed height */
    display: flex;
    align-items: center;
    padding: 8px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1031;
}

.top-bar a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    transition: opacity 0.2s;
}

.top-bar a:hover {
    opacity: 0.8;
}

@media (min-width: 992px) {
    .navbar {
        top: 40px;
        /* Matches top-bar height */
    }

    .hero-section {
        padding-top: 120px !important;
    }

    .page-header {
        margin-top: 116px !important;
    }
}

@media (min-width: 992px) {
    .navbar-nav {
        align-items: center;
    }
}

.nav-link {
    font-weight: 500;
    color: #555 !important;
    margin-left: 1rem;
    margin-right: 1rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--bs-primary) !important;
}

/* Dropdown Menu */
.dropdown-menu {
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--bs-primary);
}

.dropdown-header {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    color: white;
    transform: translateY(-5px);
}

/* Hero Section */
.hero-section {
    min-height: 60vh;
    /* margin-top: 76px; Removed as per user request */
    /* Navbar height compensation */
    padding: 60px 0;
    /* Mobile padding */
    background-image: url('https://images.pexels.com/photos/20046691/pexels-photo-20046691.jpeg?_gl=1*i9ty3q*_ga*MTEwOTM0MTkxNy4xNzYzMzc2MjI4*_ga_8JE65Q40S6*czE3NjM1NDE4ODMkbzIkZzEkdDE3NjM1NDE5NThkajU5JGwwJGgw');
    /* Placeholder */
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Page Header (Subpages) */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/img/subpage-hero.jpg');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-top: 76px;
    /* Navbar height compensation */
}

.page-header-insaat {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/img/insaat-hero.png');
    background-size: cover;
    background-position: center;
}

.page-header-iletisim {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/img/iletisim-hero.png');
    background-size: cover;
    background-position: center;
}

.page-header-mekanik {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/img/mekanik-hero.jpg');
    background-size: cover;
    background-position: center;
}

.page-header-about {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/img/about-hero.png');
    background-size: cover;
    background-position: center;
}

.page-header-projects {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/img/projelerimiz-hero.jpg');
    background-size: cover;
    background-position: center;
}

.page-header .lead {
    font-weight: 300;
    opacity: 0.9;
}

@media (min-width: 992px) {
    .hero-section {
        height: 80vh;
        /* Reduced fixed height for desktop */
        min-height: 650px;
        /* Reduced minimum height */
        display: flex;
        align-items: center;
    }

    /* Increased Heading Sizes for Desktop */
    .hero-section h1 {
        font-size: 6rem;
        /* Increased font size */
        font-weight: 800;
        letter-spacing: -2px;
        line-height: 1.1;
    }

    .page-header h1 {
        font-size: 3.25rem;
        /* Intermediate size */
    }
}

/* Default Mobile Sizes */
.hero-section h1,
.page-header h1 {
    font-size: 1.75rem;
    /* Reduced from 2.5rem */
}

/* Mobile Hero Spacing Fixes */
@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding-top: 100px;
        /* Navbar offset */
        padding-bottom: 60px;
    }

    .page-header {
        height: auto;
        /* Disable fixed height */
        min-height: 250px;
        margin-top: 0;
        padding-top: 100px;
        /* Navbar offset */
        padding-bottom: 40px;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* Dark overlay */
    z-index: 1;
}

.hero-section .container {
    z-index: 2;
    /* Ensure text is above overlay */
}

/* Cards */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
}

/* Modern Service Cards */
.modern-card {
    border: 1px solid #e9ecef !important;
    border-radius: 1rem !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #fff;
    overflow: hidden;
    position: relative;
}

.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    border-color: transparent !important;
}

.modern-card .icon-box {
    width: 90px !important;
    height: 90px !important;
    background: linear-gradient(135deg, rgba(19, 70, 134, 0.1) 0%, rgba(19, 70, 134, 0.05) 100%) !important;
    color: var(--bs-primary);
    transition: all 0.3s ease;
}

.modern-card:hover .icon-box {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-dark) 100%) !important;
    color: #fff !important;
    transform: scale(1.1);
}

.modern-card h3 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #212529;
}

.modern-card p {
    color: #6c757d;
    line-height: 1.7;
}

.modern-card .btn-link {
    text-decoration: none;
    font-weight: 600;
    color: var(--bs-primary);
    display: inline-flex;
    align-items: center;
    transition: margin-left 0.2s ease;
}

.modern-card:hover .btn-link {
    margin-left: 5px;
}

/* Testimonial Cards */
.testimonial-card {
    border: none !important;
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

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

.testimonial-card .quote-icon {
    font-size: 2rem;
    color: var(--bs-primary);
    opacity: 0.2;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.testimonial-card .user-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f8f9fa;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-card .rating {
    color: #ffc107;
    font-size: 0.9rem;
}

/* Page Header Styles Update */
.page-header h1 {
    font-weight: 700;
    text-transform: capitalize;
    /* Pascal Case */
    letter-spacing: 1px;
}

/* Forms */
.form-control,
.form-select {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus,
.form-select:focus {
    border: 1px solid var(--bs-primary);
    background-color: #fff !important;
}

/* Placeholder Styling */
.form-control::placeholder {
    color: #6c757d;
    opacity: 1;
    /* Firefox */
}

.form-control::-ms-input-placeholder {
    /* Edge 12 -18 */
    color: #6c757d;
}

/* Buttons */
/* Buttons */
.btn-primary,
.btn-light {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-section .btn {
    min-width: 200px;
}

/* Animated Icon Button styles removed as per user request */

/* Service Tags */
.service-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border-radius: 50rem;
    font-size: 0.9rem;
    color: #495057;
    border: 1px solid #e9ecef;
}

.service-tag .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
}

/* Ensure consistent width for hero buttons */

/* Footer */
footer a:hover {
    color: #fff !important;
}

/* Floating WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    color: white;
    transform: translateY(-5px);
}

/* Mobile Padding Fix */
@media (max-width: 576px) {
    .container {
        padding-left: 30px;
        padding-right: 30px;
    }
}

/* Modern Footer */
.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: #fff;
    transform: translateX(5px);
}

.social-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    background: var(--bs-primary);
    color: #fff;
    transform: translateY(-3px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact-item i {
    color: var(--bs-primary);
    margin-top: 0.25rem;
    margin-right: 1rem;
}

/* Utility Classes */
.img-square {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
}