/* Global Styles */
:root {
    --primary-color: #0056b3;
    --secondary-color: #007bff;
    --dark-color: #004085;
    --light-color: #cce5ff;
    --gradient-start: #004085;
    --gradient-end: #0056b3;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    padding-top: 56px;
}

/* Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Hero Section */
.hero {
    background: linear-gradient(90deg, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(0, 0, 0, 0.8) 60%, 
        rgba(0, 0, 0, 0) 100%), 
        url('../images/logo_large_right.jpeg');
    background-size: contain;
    background-position: right center;
    background-repeat: no-repeat;
    height: 100vh;
    color: white;
    position: relative;
    display: flex;
    align-items: center;
    padding: 5vh 0;
    box-sizing: border-box;
}

.hero .container {
    padding: 2rem 0;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    max-width: 700px;
}

.hero .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero .btn {
    padding: 0.8rem 2rem;
    font-size: 1.2rem;
}

/* Navbar */
.navbar {
    background: white !important;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 30px;
    margin-right: 10px;
}

.navbar-nav .nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
}

.dropdown-menu {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
}

.navbar-toggler {
    border-color: var(--primary-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 86, 179, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Navbar Logo */
.navbar-logo {
    background-color: white;
    border-radius: 50%;
    padding: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.navbar-logo img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .hero {
        background: linear-gradient(180deg, 
            rgba(0, 0, 0, 0.8) 0%, 
            rgba(0, 0, 0, 0.8) 40%, 
            rgba(0, 0, 0, 0) 100%), 
            url('../images/logo_large_right.jpeg');
        background-size: contain;
        background-position: bottom center;
        background-repeat: no-repeat;
        display: flex;
        align-items: center;
    }

    .hero h1 {
        font-size: 2.5rem;
        text-align: left;
        margin-top: 2rem;
    }

    .hero .lead {
        font-size: 1.2rem;
        text-align: left;
    }

    .hero .btn {
        display: inline-block;
        margin: 0;
        max-width: 200px;
    }
}

/* Services Section */
.card {
    border: none;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
}

.card-body {
    padding: 2rem;
}

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

/* About Section */
#about img {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%
    );
}

/* Contact Section */
#contact form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-control, .form-select {
    padding: 0.8rem;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 3rem 0;
}

.social-links a {
    font-size: 1.5rem;
    margin-left: 1rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--light-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .lead {
        font-size: 1.2rem;
    }

    /* Service page mobile ordering */
    .service-section .order-lg-2 {
        order: 2 !important;
    }

    .service-section .order-lg-1 {
        order: 1 !important;
    }

    .service-section .col-lg-6 {
        margin-bottom: 2rem;
    }

    .service-image-grid {
        margin: 1rem 0 2rem;
    }
}

/* Service Pages */
.service-header {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 100px 0;
    margin-bottom: 50px;
}

.service-section {
    padding: 80px 0;
    background-color: #fff;
}

.service-section:nth-child(even) {
    background-color: #f8f9fa;
}

.service-content {
    padding: 2rem;
}

.service-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-image-grid {
    display: block;
    margin: 2rem 0;
}

.service-image-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15), 0 6px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-image-grid img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 10px 10px rgba(0, 0, 0, 0.1);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    transition: transform 0.3s ease;
}

.feature-list li:hover {
    transform: translateX(5px);
}

.feature-list li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.dropdown-menu-dark {
    background: var(--dark-color);
    border: none;
}

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

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

/* Partnerships Carousel */
.partnerships-section {
    background: #f8f9fa;
    padding: 4rem 0;
}

.partnerships-carousel {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.carousel-container {
    overflow: hidden;
    border-radius: 15px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    display: none;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
    display: block;
}

.partner-item {
    padding: 3rem 2rem;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.partner-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.partner-link:hover {
    transform: translateY(-5px);
    color: inherit;
    text-decoration: none;
}

.partner-logo {
    max-width: 200px;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.partner-link:hover .partner-logo {
    filter: grayscale(0%);
}

.partner-info {
    text-align: center;
}

.partner-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.partner-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    max-width: 400px;
    line-height: 1.5;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    gap: 1rem;
}

.carousel-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.carousel-btn:hover {
    background: var(--dark-color);
    transform: scale(1.1);
}

.carousel-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.carousel-indicators {
    display: flex;
    gap: 0.5rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary-color);
}

.indicator:hover {
    transform: scale(1.2);
}

/* Mobile responsiveness for partnerships */
@media (max-width: 768px) {
    .partnerships-section {
        padding: 2rem 0;
    }
    
    .partner-item {
        padding: 2rem 1rem;
        min-height: 150px;
    }
    
    .partner-logo {
        max-width: 150px;
        max-height: 60px;
    }
    
    .partner-name {
        font-size: 1.1rem;
    }
    
    .partner-description {
        font-size: 0.85rem;
    }
    
    .carousel-controls {
        margin-top: 1.5rem;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}
