/* Global Styles */
/* Reset some base styles */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Navbar height + extra padding */
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    padding-top: 70px;
    background: #2a3447; /* Lighter blue-gray background */
    color: var(--bs-light);
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
    background: var(--bs-dark) !important; /* Back to darker navbar */
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.navbar .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

.navbar-brand {
    padding: 0;
    margin-right: 2rem;
}

.navbar-brand img {
    height: 40px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-item {
    margin: 0 0.5rem; /* Add spacing between nav items */
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.75rem 1.25rem !important; /* Increased padding */
}

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

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 75vh; /* Adjusted for smaller screens */
    overflow: hidden;
    margin-bottom: 0;
}

.carousel, .carousel-inner, .carousel-item {
    height: 100%;
}

.background-video,
.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

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

/* Carousel Styling */
.carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    padding: 0;
}

.text-gradient {
    background: linear-gradient(120deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.animate-badge {
    animation: slideFadeIn 0.5s ease forwards;
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

.custom-indicators {
    bottom: 2rem;
}

.custom-indicators button {
    width: 3rem;
    height: 0.3rem;
    border-radius: 0;
    background-color: rgba(255,255,255,0.5);
    border: none;
    margin: 0 0.5rem;
}

.custom-indicators button.active {
    background-color: var(--bs-primary);
}

.fade-control {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel:hover .fade-control {
    opacity: 1;
}

/* About Section Enhanced Styling */
.about-section {
    padding: 3rem 0; /* Adjusted for smaller screens */
    background: #344054; /* Lighter background */
    position: relative;
    z-index: 1;
}

.about-section .lead {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Feature Boxes */
.feature-box {
    padding: 1.5rem; /* Adjusted for smaller screens */
    border-radius: 15px;
    background: rgba(74, 158, 255, 0.1);  /* Light blue tint */
    transition: transform 0.3s ease;
    height: 100%;
    border: 1px solid rgba(74, 158, 255, 0.2);
    backdrop-filter: blur(10px);
    margin-bottom: 1rem; /* Added spacing for stacked items */
}

.feature-box:hover {
    transform: translateY(-5px);
    background: rgba(74, 158, 255, 0.15);
}

.feature-box i {
    font-size: 2.5rem;
}

.feature-box h4 {
    font-size: 1.2rem;
    margin: 1rem 0;
    color: var(--bs-light);
}

/* Content Boxes */
.content-box {
    height: 100%;
    transition: transform 0.3s ease;
    border: 1px solid rgba(74, 158, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem; /* Adjusted for smaller screens */
    border-radius: 15px;
    backdrop-filter: blur(10px);
    margin-bottom: 1rem; /* Added spacing for stacked items */
}

.content-box:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.15) 0%, rgba(74, 158, 255, 0.1) 100%);
}

/* Vision Box */
.vision-box {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 1px solid rgba(74, 158, 255, 0.2);
    transition: transform 0.3s ease;
    padding: 2rem !important; /* Adjusted for smaller screens */
    border-radius: 15px;
    backdrop-filter: blur(10px);
    margin-bottom: 1rem; /* Added spacing for stacked items */
}

.vision-box:hover {
    transform: translateY(-5px);
    background: linear-gradient(45deg, rgba(74, 158, 255, 0.2) 0%, rgba(74, 158, 255, 0.15) 100%);
}

.vision-box .lead {
    font-size: 1.2rem;
    line-height: 1.8;
    font-style: italic;
    color: var(--bs-light);
}

/* Services Section Enhanced */
.service-card {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    padding: 1.5rem; /* Adjusted for smaller screens */
    height: 100%;
    margin-bottom: 1rem; /* Added spacing for stacked items */
}

.service-card:hover {
    transform: translateY(-10px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.12) 100%);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
    text-align: center;
    margin-bottom: 1.5rem; /* Adjusted for smaller screens */
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem; /* Adjusted for smaller screens */
    border-radius: 15px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.service-icon i {
    font-size: 3rem; /* Adjusted for smaller screens */
}

.service-card .card-body {
    padding: 0;
    background: transparent;
}

.service-card .card-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--bs-light);
    font-weight: 600;
}

.service-card .card-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

/* Ensure service cards have equal heights within their row */
@media (min-width: 992px) {
    .service-card {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .service-card .card-body {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .service-card .card-text {
        flex: 1;
    }
}

/* News Section Enhanced Styling */
.news-section {
    background: linear-gradient(45deg, #3a7bd5 0%, #3a6073 100%);
}

.news-card {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1rem; /* Added spacing for stacked items */
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.news-card .card-img-top {
    height: 200px; /* Adjusted for smaller screens */
    object-fit: cover;
    transition: all 0.3s ease;
}

.news-card:hover .card-img-top {
    transform: scale(1.05);
}

.news-card .card-body {
    padding: 1.5rem; /* Adjusted for smaller screens */
    background: linear-gradient(to top, var(--bs-dark) 0%, rgba(33, 37, 41, 0.8) 100%);
}

/* News Grid */
.news-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.news-initial-images {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.news-image-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%; /* Full width on mobile */
    margin-bottom: 1rem; /* Added spacing for stacked items */
}

.news-image-card img {
    width: 100%;
    height: 150px; /* Adjusted for smaller screens */
    object-fit: cover;
    transition: all 0.3s ease;
}

.news-image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.news-image-card:hover img {
    transform: scale(1.05);
}

#additional-news {
    margin-top: 2rem;
}

.see-more-btn {
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    margin-top: 2rem;
}

.see-more-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Mobile-specific News Display */
@media (max-width: 768px) {
    .news-initial-images {
        display: flex;
        flex-wrap: wrap;
    }

    .news-initial-images .col {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    #mobileNewsRow .col {
        width: 100%;
    }

    .news-image-card {
        height: auto;
        margin-bottom: 1rem;
    }

    .news-image-card img {
        height: auto;
        max-height: 200px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.content {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: 40vh; /* Further adjust for mobile */
    }

    h1.display-1 {
        font-size: 2.5rem;
    }

    .lead {
        font-size: 1rem !important;
    }

    .about-section {
        padding: 2rem 0;
    }

    .feature-box {
        padding: 1rem;
    }

    .vision-box {
        padding: 1.5rem !important;
    }

    .service-card {
        padding: 1rem;
    }

    .service-icon i {
        font-size: 2.5rem;
    }

    .news-card .card-img-top {
        height: 150px;
    }

    .news-card .card-body {
        padding: 1rem;
    }

    .news-image-card img {
        height: 120px;
    }

    .contact-form-container {
        padding: 1.5rem;
    }

    .contact-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Original styles that don't conflict */
:root {
    --header-height: 70px;
    --section-padding: 5rem;
}

/* Colorful sections with more contrast */
#about {
    background: linear-gradient(135deg, #2C5364 0%, #203A43 100%); /* Blue-teal gradient */
}

#services {
    background: linear-gradient(135deg, #373B44 0%, #4286f4 100%); /* Dark to bright blue gradient */
}

#services .display-4 {
    margin-bottom: 4rem; /* Increased spacing between title and cards */
}

#news {
    background: linear-gradient(45deg, #3a7bd5 0%, #3a6073 100%);
}

#contact {
    background: linear-gradient(135deg, #1a2c41 0%, #141E30 100%);
}

/* News Grid */
.news-grid {
    max-height: none;
    overflow-y: visible;
    padding-right: 15px;
}

.news-image-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.news-image-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.news-image-card:hover img {
    transform: scale(1.05);
}

/* Color accents for icons */
.text-info {
    color: #00d2ff !important;
}

.text-success {
    color: #56ab2f !important;
}

.text-warning {
    color: #ff9966 !important;
}

/* Custom scrollbar for news grid */
.news-grid::-webkit-scrollbar {
    width: 8px;
}

.news-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.news-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.news-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Contact Section Styling - Enhanced */
#contact {
    background: linear-gradient(135deg, #1a2c41 0%, #141E30 100%);
}

.contact-info-container {
    height: 100%;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem; /* Adjusted for smaller screens */
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF6B6B 0%, #ff8e8e 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.contact-details {
    flex-grow: 1;
}

.contact-details h4 {
    color: var(--bs-light);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}


.contact-details p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-floating {
    background: transparent;
    margin-bottom: 1rem;
}

.form-floating > .form-control {
    background-color: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--bs-light);
    height: calc(3.5rem + 2px);
    line-height: 1.25;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.form-floating > textarea.form-control {
    background-color: transparent !important;
    height: 150px !important;
    resize: none;
}

.form-floating > .form-control:focus {
    background-color: transparent !important;
    border-color: #f7a130;
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 107, 0.25);
}

.form-floating > label {
    
    color: rgba(255, 255, 255, 0.6);
    padding: 1rem;
    font-size: 1.1rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: rgba(255, 255, 255, 0.8);
    background-color: transparent !important;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Ensure inputs always stay transparent, even when autofilled by browsers */
.form-floating > .form-control:not(:placeholder-shown),
.form-floating > .form-control:-webkit-autofill,
.form-floating > .form-control:-webkit-autofill:hover,
.form-floating > .form-control:-webkit-autofill:focus,
.form-floating > .form-control:-webkit-autofill:active {
    background-color: transparent !important;
    -webkit-box-shadow: 0 0 0 30px transparent inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.btn-primary {
    background: linear-gradient(135deg, #f39134 0%, #ff8e8e 100%);
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
    background: linear-gradient(135deg, #ff8e8e 0%, #FF6B6B 100%);
}

.btn-outline-primary {
    border: 2px solid #FF6B6B;
    color: #fda036;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
}

.btn-outline-primary:hover {
    background: #FF6B6B;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* Floating Contact Button and Menu */
.floating-contact-wrapper {
    
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.floating-contact-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF6B6B 0%, #ff8e8e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.floating-contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    color: white;
}

.floating-contact-menu {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: rgba(255, 255, 255, 0.404);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 200px;
    display: none;
    transform: translateY(20px);
}

.floating-contact-menu.show {
    display: block;
}

.floating-contact-menu a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--bs-light);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 10px;
    font-size: 1.1rem;
    white-space: nowrap;
}

.floating-contact-menu a:hover {
    background: rgba(255, 107, 107, 0.1);
    transform: translateX(5px);
}

.floating-contact-menu i {
    margin-right: 15px;
    width: 24px;
    text-align: center;
    color: #FF6B6B;
}

.text-primary {
    color: #f3a43d !important; /* Warm coral color */
}

.text-info {
    color: #00d2ff !important;
}

.text-success {
    color: #56ab2f !important;
}

.text-warning {
    color: #ff9966 !important;
}

.service-card .text-primary,
.about-section .text-primary {
    background: linear-gradient(45deg, #fca92d, #fc9e23);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Sections Background */
#services, #news, #about, #contact {
    min-height: auto;
    background: #344054; /* Lighter background matching navbar */
    padding: 80px 0;
}

/* Section Styles */
.section-full {
    min-height: auto;
    padding: 80px 0;
    position: relative;
}

/* Adjust content box backgrounds for better contrast */
.content-box {
    background: rgba(255, 255, 255, 0.1);
}

.vision-box {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
}

/* Cards */
.service-card, .news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover, .news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.language-selector select {
    background-color: transparent;
    color: var(--bs-light);
    border: 1px solid var(--bs-gray);
    font-size: 0.875rem;
    padding: 0.25rem 1.5rem 0.25rem 0.5rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.language-selector select:hover {
    border-color: var(--bs-primary);
}

.language-selector select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

.map-container {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.floating-message-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--bs-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.floating-message-btn:hover {
    transform: scale(1.1);
    color: white;
}

.see-more-btn[aria-expanded="true"] .show-text {
    display: none;
}

.see-more-btn[aria-expanded="true"] .hide-text {
    display: inline-block !important;
}

#additional-news.collapsing {
    transition: height 0.35s ease;
}

#additional-news.show {
    animation: fadeIn 0.5s ease-in-out;
}