/* ============================================
   BOSS İnşaat - Custom Styles
   Primary Color: #00B4D8 (Logo Blue)
   ============================================ */

/* ============================================
   ROOT VARIABLES
   ============================================ */
:root {
    --primary-color: #00B4D8;
    --primary-dark: #0096B8;
    --secondary-color: #023E8A;
    --accent-color: #0077B6;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* RTL Support for Arabic */
body[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

body[dir="rtl"] .navbar-nav {
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* Keep logo always on left even in RTL */
body[dir="rtl"] .navbar-brand {
    order: -1;
}

body[dir="rtl"] .navbar-collapse {
    direction: rtl;
}

/* Fix language switcher position in RTL */
body[dir="rtl"] .language-switcher {
    margin-right: 0 !important;
    margin-left: 1rem !important;
}

body[dir="rtl"] .language-switcher .dropdown-menu {
    right: auto;
    left: 0;
    inset: auto auto auto 0 !important;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-dark));
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--white) !important;
}

.navbar-brand .logo {
    height: 50px;
    width: 50px;
    object-fit: contain;
    border-radius: 50%;
    background: white;
    padding: 5px;
}

.brand-text {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

/* Language Switcher Container */
.language-switcher {
    position: relative;
}

.language-switcher .btn {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    font-weight: 500;
    background: transparent;
}

.language-switcher .btn:hover {
    background: rgba(0, 180, 216, 0.2);
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--white);
}

/* When dropdown is open (active state) */
.language-switcher .btn:active,
.language-switcher .btn:focus,
.language-switcher .btn.show {
    background: rgba(0, 180, 216, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--white);
    box-shadow: none;
}

/* Language Dropdown Menu Styling */
.language-switcher .dropdown-menu {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-dark));
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
    min-width: 160px;
    margin-top: 0.5rem;
    position: absolute;
    right: 0;
    left: auto;
    transform: none;
    inset: auto 0 auto auto !important;
}

.language-switcher .dropdown-item {
    color: rgba(255, 255, 255, 0.95);
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.language-switcher .dropdown-item:hover,
.language-switcher .dropdown-item:focus {
    background: rgba(0, 180, 216, 0.3);
    color: var(--white);
    border-left-color: var(--primary-color);
    transform: translateX(3px);
}

.language-switcher .dropdown-item:active {
    background: rgba(0, 180, 216, 0.5);
    color: var(--white);
    border-left-color: var(--primary-color);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    background-image: url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?w=1920');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 62, 138, 0.85);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 1.2s ease;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.4s ease;
}

.hero-buttons .btn {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 180, 216, 0.4);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--white);
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section-padding {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto 1rem;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.stat-box {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 180, 216, 0.3);
}

.stat-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-box h4 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0.5rem 0;
}

.stat-box p {
    color: var(--text-light);
    margin: 0;
}

/* Company Profile Box */
.company-profile-box {
    border-left: 4px solid var(--primary-color);
}

.company-profile-box h3 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.company-profile-box h4 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.company-profile-box .profile-section {
    padding-left: 1rem;
    border-left: 2px solid rgba(0, 180, 216, 0.2);
}

.company-profile-box p {
    text-align: justify;
    line-height: 1.8;
    color: var(--text-dark);
}


/* ============================================
   SERVICES SECTION
   ============================================ */
.service-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 180, 216, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: rotateY(360deg);
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.project-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 180, 216, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
}

.project-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.project-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Project Tabs */
.project-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.project-tab {
    padding: 0.75rem 2rem;
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.project-tab:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 180, 216, 0.3);
}

.project-tab.active {
    background: var(--primary-color);
    color: var(--white);
}

.project-tab-content {
    display: none;
}

.project-tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Project List View */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-list-item {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.project-list-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 25px rgba(0, 180, 216, 0.2);
}

.project-list-item h4 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-list-item .project-description {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-color);
    line-height: 1.6;
}


.project-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.project-detail-item {
    display: flex;
    flex-direction: column;
}

.project-detail-item strong {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.project-detail-item span {
    color: var(--text-dark);
}

/* Progress Bar */
.progress-bar-container {
    margin-top: 1rem;
}

.progress-bar-container strong {
    color: var(--primary-color);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 25px;
    background: #e0e0e0;
    border-radius: 50px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    transition: width 1s ease;
    color: var(--white);
    font-weight: 600;
    font-size: 0.85rem;
}

.status-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-ongoing {
    background: #d1ecf1;
    color: #0c5460;
}

.status-suspended {
    background: #f8d7da;
    color: #721c24;
}

.status-substantially {
    background: #fff3cd;
    color: #856404;
}

/* ============================================
   EQUIPMENT SECTION
   ============================================ */
.equipment-card {
    background: var(--white);
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.equipment-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 180, 216, 0.2);
}

.equipment-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.equipment-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.equipment-card p {
    color: var(--text-light);
    margin: 0;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    min-width: 40px;
}

.contact-item h5 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.contact-item p {
    margin: 0;
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.contact-form .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    border-radius: 8px;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    background: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 180, 216, 0.25);
}

.contact-form textarea.form-control {
    resize: vertical;
}

.contact-form .btn-primary {
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
}

#formMessage {
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

#formMessage.success {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid #28a745;
    display: block;
}

#formMessage.error {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid #dc3545;
    display: block;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 0;
}

.footer p {
    margin: 0;
    opacity: 0.8;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-collapse {
        background: rgba(2, 62, 138, 0.98);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 10px;
    }
    
    .language-switcher {
        margin-top: 1rem;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        font-size: 1rem;
        padding: 0.7rem 1.5rem;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 575px) {
    .navbar-brand .logo {
        height: 40px;
        width: 40px;
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.bg-primary {
    background-color: var(--primary-color) !important;
}

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

.shadow-custom {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ============================================
   PROJECT MODAL STYLES
   ============================================ */
#projectModal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

#projectModal .modal-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-dark));
    color: var(--white);
    border-radius: 15px 15px 0 0;
    padding: 1.5rem 2rem;
}

#projectModal .modal-title {
    font-size: 1.5rem;
    font-weight: 600;
}

#projectModal .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
}

#projectModal .btn-close:hover {
    opacity: 1;
}

/* RTL support for modal close button */
[dir="rtl"] #projectModal .btn-close {
    right: auto;
    left: 1.5rem;
}

#projectModal .modal-body {
    padding: 2rem;
}

/* Project Gallery */
.project-gallery {
    position: relative;
}

.main-image-container {
    position: relative;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.main-image-container img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 15px;
}

.gallery-next {
    right: 15px;
}

.image-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Photo Caption */
.image-caption {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 80px;
    background: rgba(0, 0, 0, 0.75);
    color: var(--white);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
    backdrop-filter: blur(5px);
}

/* RTL support for image caption */
[dir="rtl"] .image-caption {
    left: 80px;
    right: 15px;
}

/* Thumbnail Container */
.thumbnail-container {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
    opacity: 0.6;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--primary-color);
    opacity: 1;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Project Type Details in Modal */
.project-type-details {
    padding: 1rem;
    max-height: 600px;
    overflow-y: auto;
}

.type-description {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.05), rgba(18, 52, 86, 0.05));
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.type-description .lead {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 0;
}

/* Related Projects Section */
.related-projects-section {
    margin-top: 1.5rem;
}

.modal-project-category {
    margin-bottom: 2rem;
}

.category-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.category-title i {
    font-size: 1.3rem;
}

.modal-projects-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-project-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    transition: var(--transition);
}

.modal-project-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.modal-project-item h6 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.modal-project-item .project-client {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.modal-project-item .project-client i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.modal-project-item .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    margin-top: 0.5rem;
    display: inline-block;
}

/* No projects message */
.no-projects-message {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-light);
    font-style: italic;
}

/* Scrollbar styling for modal */
.project-type-details::-webkit-scrollbar {
    width: 8px;
}

.project-type-details::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.project-type-details::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.project-type-details::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Responsive Modal */
@media (max-width: 991px) {
    #projectModal .modal-body {
        padding: 1.5rem;
    }
    
    .main-image-container img {
        height: 300px;
    }
    
    .project-type-details {
        margin-top: 2rem;
        max-height: 400px;
    }
}

@media (max-width: 575px) {
    #projectModal .modal-header {
        padding: 1rem;
    }
    
    #projectModal .modal-title {
        font-size: 1.2rem;
    }
    
    #projectModal .modal-body {
        padding: 1rem;
    }
    
    .main-image-container img {
        height: 250px;
    }
    
    .thumbnail {
        width: 60px;
        height: 45px;
    }
    
    .gallery-prev,
    .gallery-next {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}

