/* custom.css - modern sharp design system */

/* Design System Variables */
:root {
    --primary-color: #007bff;
    --heading-font: 'Inter', sans-serif;
    --body-font: 'Roboto', sans-serif;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.18);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

/* Typography Enhancements */
body {
    font-family: var(--body-font);
    line-height: 1.65;
    color: #1a1a1a;
    font-weight: 400;
    letter-spacing: 0.3px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* Navbar - Modern & Sharp */
.navbar {
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    padding: 1rem 0;
    transition: all var(--transition-smooth);
    position: relative;
    z-index: 1040;
    overflow: visible !important;
}

.navbar-brand img {
    max-width: 260px;
    height: auto;
    width: auto;
    transition: transform var(--transition-fast);
}

.navbar-brand:hover img {
    transform: translateY(-2px);
}

.navbar .container {
    display: flex;
    align-items: center;
}

/* Language Dropdown - Modern */
.navbar .dropdown.ms-auto {
    margin-top: 0;
}

.dropdown-toggle {
    border-color: #dee2e6 !important;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.dropdown-toggle:hover {
    border-color: var(--primary-color) !important;
    background-color: rgba(0, 123, 255, 0.05);
}

.dropdown-menu {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    animation: slideDown var(--transition-smooth);
    z-index: 1050;
}

.navbar .dropdown {
    z-index: 1050;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background-color: rgba(0, 123, 255, 0.08);
    color: var(--primary-color);
    padding-left: 1.25rem;
}

/* Services Section */
section {
    padding: 60px 0;
}

#services {
    padding-top: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Service Cards - Modern & Sharp */
.service-card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-smooth);
    background: white;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #0056b3);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.service-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: all var(--transition-smooth);
    filter: brightness(1);
}

.service-card:hover img {
    transform: scale(1.08);
    filter: brightness(0.95);
}

.card-body {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
    transition: color var(--transition-fast);
}

.service-card:hover .card-title {
    color: var(--primary-color);
}

.card-text {
    flex-grow: 1;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.65;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Modern Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.35);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Grid & Spacing */
.row {
    row-gap: 2rem;
}

.gy-5 {
    row-gap: 2.5rem !important;
}

/* Container */
.container {
    max-width: 1200px;
}

/* Services Row Centering */
.services .row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.services .col-xl-4 {
    margin-bottom: 1rem;
}

/* Footer - Modern */
.footer {
    padding: 2.5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-top: 1px solid #e9ecef;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    transition: background var(--transition-smooth);
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .navbar-brand img {
        max-width: 200px;
    }
    
    .service-card {
        margin: 0 auto;
    }
    
    #services {
        padding-top: 30px;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .card-title {
        font-size: 1.05rem;
    }
}

/* Utility Classes */
.header-logo {
    padding-bottom: 40px;
    flex: 1;
    text-align: center;
}
.header-logo img {
    width: 450px;
    height: 100%;
    max-width: 80%;
    object-fit: cover;
}
.services .img {
    border-radius: 8px;
    overflow: hidden;
}
.services .img img {
    transition: 0.6s;
}
.img-fluid {
    max-width: 100%;
    height: auto;
}
.position-relative {
    position: relative !important;
}
.cntr {
    justify-content: center;
}
.header {
    display: flex;
}

/* prevent horizontal scrollbar from layout overflow */
html, body {
    overflow-x: hidden;
}

/* dropdown menu base improvements */
.dropdown-menu {
    position: absolute;
    min-width: auto !important;
    right: 0 !important;
    left: auto !important;
    white-space: nowrap !important;
    background: #fff !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15) !important;
    max-width: calc(100vw - 20px) !important;
    width: auto !important;
    padding: 0 !important;
    z-index: 2000 !important;
    overflow: hidden;
}
.dropdown-menu.show {
    left: auto !important;
    right: 0 !important;
}
.dropdown-item {
    white-space: nowrap !important;
    color: #333 !important;
    padding: 0.5rem 1rem !important;
}
.dropdown-item.active,
.dropdown-item:active {
    background-color: #f8f9fa !important;
    color: #333 !important;
}
.dropdown-item:hover, .dropdown-item:focus {
    background-color: #f8f9fa !important;
}
