/* 
   Bagatur İnşaat - Premium Design System (Dark Slate & Gold theme)
   Inspired by kiriklar.com.tr with ultra-premium styling
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --primary-dark: #0f172a;      /* Slate 900 */
    --secondary-dark: #1e293b;    /* Slate 800 */
    --accent-gold: #c5a880;       /* Premium Gold */
    --accent-gold-hover: #b39266; /* Deep Gold */
    --gold-gradient: linear-gradient(135deg, #dfc097 0%, #c5a880 50%, #9e7f53 100%);
    --bg-light: #f8fafc;          /* Slate 50 */
    --text-dark: #1e293b;         /* Slate 800 */
    --text-muted: #64748b;        /* Slate 500 */
    --border-color: #e2e8f0;      /* Slate 200 */
    --glass-bg: rgba(15, 23, 42, 0.95);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .display-font {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--primary-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 4px;
}

/* Buttons */
.btn-gold {
    background: var(--gold-gradient);
    color: var(--primary-dark) !important;
    font-weight: 600;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(197, 168, 128, 0.2);
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(197, 168, 128, 0.4);
    filter: brightness(1.05);
}

.btn-outline-gold {
    background: transparent;
    color: var(--accent-gold) !important;
    border: 1px solid var(--accent-gold);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: var(--transition);
}
.btn-outline-gold:hover {
    background: var(--gold-gradient);
    color: var(--primary-dark) !important;
    border-color: transparent;
    transform: translateY(-2px);
}

/* Top Info Bar */
.top-bar {
    background-color: var(--primary-dark);
    color: #cbd5e1;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(197, 168, 128, 0.15);
    padding: 8px 0;
}
.top-bar a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
}
.top-bar a:hover {
    color: var(--accent-gold);
}
.top-bar .social-icons a {
    font-size: 1rem;
    margin-left: 15px;
}

/* Header & Navbar */
.navbar-custom {
    background-color: var(--glass-bg);
    border-bottom: 2px solid var(--accent-gold);
    padding: 15px 0;
    transition: var(--transition);
}
.navbar-custom .navbar-brand img {
    height: 55px;
    transition: var(--transition);
}
.navbar-custom .nav-link {
    color: #f1f5f9 !important;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 10px 18px !important;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}
.navbar-custom .nav-link:hover, 
.navbar-custom .nav-item.active .nav-link,
.navbar-custom .nav-item.show .nav-link {
    color: var(--accent-gold) !important;
}
.navbar-custom .dropdown-menu {
    background-color: var(--primary-dark);
    border-top: 3px solid var(--accent-gold);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    margin-top: 10px;
}
.navbar-custom .dropdown-item {
    color: #cbd5e1 !important;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}
.navbar-custom .dropdown-item:last-child {
    border-bottom: none;
}
.navbar-custom .dropdown-item:hover {
    background-color: var(--secondary-dark);
    color: var(--accent-gold) !important;
    padding-left: 25px;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 75vh;
    min-height: 480px;
    overflow: hidden;
}
.hero-slider .carousel-item {
    height: 75vh;
    min-height: 480px;
}
.hero-slider .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    filter: brightness(0.45);
}
.hero-slider .carousel-caption {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    text-align: left;
    max-width: 700px;
    left: 8%;
    right: 8%;
}
.hero-slider .carousel-caption h1 {
    font-size: 3.5rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}
.hero-slider .carousel-caption p {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 30px;
    animation: fadeInUp 1.2s ease;
}
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 5%;
}
.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
    background-color: var(--primary-dark);
    border: 1px solid var(--accent-gold);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    padding: 10px;
    background-size: 50%;
    transition: var(--transition);
}
.hero-slider .carousel-control-prev-icon:hover,
.hero-slider .carousel-control-next-icon:hover {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
}

/* Section Styling */
.section-padding {
    padding: 80px 0;
}
.bg-dark-section {
    background-color: var(--primary-dark);
    color: #ffffff;
}
.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}
.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 10px;
    position: relative;
}
.bg-dark-section .section-title h2 {
    color: #ffffff;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gold-gradient);
}
.section-title p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}
.bg-dark-section .section-title p {
    color: #94a3b8;
}

/* About Section */
.about-image-wrapper {
    position: relative;
    border: 3px solid var(--accent-gold);
    padding: 15px;
    border-radius: 8px;
}
.about-image-wrapper img {
    border-radius: 4px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Services Page & Cards */
.service-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}
.service-card:hover::before {
    transform: scaleX(1);
}
.service-icon-box {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(197, 168, 128, 0.1);
    color: var(--accent-gold);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    transition: var(--transition);
}
.service-card:hover .service-icon-box {
    background: var(--gold-gradient);
    color: var(--primary-dark);
}
.service-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-dark);
}
.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Projects Showcase */
.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}
.filter-btn {
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--text-dark);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
    background: var(--gold-gradient);
    color: var(--primary-dark) !important;
    border-color: transparent;
}

.project-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
}
.project-image-box {
    position: relative;
    overflow: hidden;
    height: 250px;
}
.project-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.project-card:hover .project-image-box img {
    transform: scale(1.1);
}
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.project-card:hover .project-overlay {
    opacity: 1;
}
.project-card-body {
    padding: 25px;
}
.project-badge {
    background: var(--gold-gradient);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 3px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}
.project-card-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 15px;
}
.project-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}
.project-meta span {
    margin-right: 15px;
}

/* CEO Message Page */
.ceo-container {
    padding: 60px 0;
}
.ceo-quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--accent-gold);
    border-left: 4px solid var(--accent-gold);
    padding-left: 20px;
    margin: 30px 0;
}

/* History Timeline */
.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 30px 0;
}
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--accent-gold);
    transform: translateX(-50%);
}
.timeline-item {
    margin-bottom: 40px;
    position: relative;
    width: 50%;
    padding: 0 30px;
}
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}
.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}
.timeline-item::after {
    content: '';
    position: absolute;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-dark);
    border: 3px solid var(--accent-gold);
    z-index: 1;
}
.timeline-item:nth-child(odd)::after {
    right: -8px;
}
.timeline-item:nth-child(even)::after {
    left: -8px;
}
.timeline-item .year {
    display: inline-block;
    background: var(--gold-gradient);
    color: var(--primary-dark);
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 4px;
    margin-bottom: 10px;
}
.timeline-item p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: #cbd5e1;
    border-top: 4px solid var(--accent-gold);
    padding: 70px 0 20px 0;
}
.footer-logo {
    height: 65px;
    margin-bottom: 25px;
}
.footer h4 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-gold);
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 8px;
}
.footer-contact li {
    display: flex;
    margin-bottom: 15px;
    font-size: 0.9rem;
}
.footer-contact i {
    color: var(--accent-gold);
    margin-right: 15px;
    font-size: 1.1rem;
    margin-top: 3px;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
    margin-top: 50px;
    font-size: 0.85rem;
    color: #64748b;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Page Form */
.contact-info-card {
    background: var(--primary-dark);
    color: #ffffff;
    border-radius: 8px;
    padding: 40px;
    border-bottom: 3px solid var(--accent-gold);
    height: 100%;
}
.contact-info-card h3 {
    color: var(--accent-gold);
    margin-bottom: 30px;
}
.contact-info-item {
    display: flex;
    margin-bottom: 25px;
}
.contact-info-icon {
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-right: 20px;
}
.contact-form-wrapper {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}
.form-control:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.25rem rgba(197, 168, 128, 0.25);
}

/* --- ADMIN PANEL LAYOUT & VIEWS --- */
.admin-body {
    background-color: #f1f5f9;
}
.admin-sidebar {
    background-color: var(--primary-dark);
    min-height: 100vh;
    border-right: 3px solid var(--accent-gold);
    box-shadow: 4px 0 15px rgba(0,0,0,0.1);
}
.admin-logo-wrapper {
    background-color: #0b111e;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.admin-logo-wrapper img {
    max-height: 45px;
}
.admin-nav {
    padding: 20px 0;
}
.admin-nav .nav-link {
    color: #94a3b8;
    padding: 12px 25px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.admin-nav .nav-link:hover, .admin-nav .nav-link.active {
    color: var(--accent-gold) !important;
    background-color: #1e293b;
    border-left-color: var(--accent-gold);
}
.admin-nav i {
    margin-right: 12px;
    font-size: 1.1rem;
}
.admin-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.admin-content {
    padding: 30px;
}
.admin-card {
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}
.admin-card-header {
    background-color: #fafbfc;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 25px;
    font-weight: 600;
    color: var(--primary-dark);
}
.admin-card-body {
    padding: 25px;
}

/* Statistics Widgets */
.stat-card {
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    padding: 25px;
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    border-left: 4px solid var(--accent-gold);
}
.stat-icon {
    width: 55px;
    height: 55px;
    background-color: rgba(197, 168, 128, 0.1);
    color: var(--accent-gold);
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}
.stat-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Login Page Admin */
.login-body {
    background: radial-gradient(circle at center, var(--secondary-dark) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-box {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 168, 128, 0.2);
    border-radius: 12px;
    padding: 50px 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Responsive Overrides */
@media (max-width: 991.98px) {
    .navbar-custom .nav-link {
        padding: 8px 0 !important;
    }
    .hero-slider .carousel-caption h1 {
        font-size: 2.2rem;
    }
    .timeline-container::before {
        left: 20px;
    }
    .timeline-item {
        width: 100% !important;
        padding-left: 45px !important;
        text-align: left !important;
    }
    .timeline-item::after {
        left: 12px !important;
    }
}

/* --- ADDITIONAL PREMIUM CUSTOM STYLING --- */

/* Gold text utility */
.text-gold {
    color: var(--accent-gold) !important;
}

/* Premium Subpage Header Banner */
.page-header-banner {
    position: relative;
    padding: 100px 0;
    border-bottom: 2px solid var(--accent-gold);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.page-header-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(9, 13, 22, 0.95) 100%);
    z-index: 1;
}

.page-header-banner .container {
    position: relative;
    z-index: 2;
}

.page-header-banner h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Custom breadcrumb override to prevent default blue links */
.custom-breadcrumb {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.custom-breadcrumb li {
    color: #94a3b8;
}

.custom-breadcrumb li a {
    color: var(--accent-gold) !important;
    text-decoration: none;
    transition: var(--transition);
}

.custom-breadcrumb li a:hover {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.custom-breadcrumb li + li::before {
    content: "\2022" !important; /* Bullet point */
    padding: 0 12px;
    color: rgba(197, 168, 128, 0.4) !important;
}

/* Refining Navbar Brand & Menu */
.navbar-custom .navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
}

/* Circular Navbar Logo styling to clip white borders */
.logo-circle-container {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #0d111a; /* matches the black background of the logo */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 0 10px rgba(197, 168, 128, 0.4);
    transition: var(--transition);
}

.logo-circle-container:hover {
    transform: scale(1.05);
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.logo-circle {
    height: 140% !important; /* Scale up vertically to push white bars out of bounds */
    width: auto !important;
    object-fit: cover;
}

/* CEO Circle styling on the homepage */
.ceo-circle-container {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-gold);
    box-shadow: 0 0 20px rgba(197, 168, 128, 0.3);
    background-color: #000000; /* Match the black background of the logo */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.ceo-circle-container:hover {
    transform: scale(1.05);
    border-color: #ffffff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

.ceo-circle-img {
    width: 92% !important;
    height: 122% !important;
    object-fit: contain;
}
.footer-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 120px;
    border: 3px solid #dfb76c;
    padding: 3px;
    background-color: #111a2e;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}