/* Variables */
:root {
    --primary-color: #001763;
    --secondary-color: #e76f51;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    
    /* Colorful Dynamic Background */
    background-color: #f4f7fa;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(231, 111, 81, 0.08), transparent 25%), 
        radial-gradient(circle at 85% 30%, rgba(0, 23, 99, 0.08), transparent 25%), 
        linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(240, 248, 255, 0.9) 100%),
        repeating-linear-gradient(45deg, rgba(0, 23, 99, 0.03) 0px, rgba(0, 23, 99, 0.03) 2px, transparent 2px, transparent 12px),
        repeating-linear-gradient(135deg, rgba(231, 111, 81, 0.03) 0px, rgba(231, 111, 81, 0.03) 2px, transparent 2px, transparent 12px);
    background-attachment: fixed;
    background-size: 100% 100%, 100% 100%, 100% 100%, 60px 60px, 60px 60px;
    animation: colorfulMove 20s ease-in-out infinite alternate;
}

@keyframes colorfulMove {
    0% { background-position: 0% 50%, 100% 50%, 0 0, 0 0, 0 0; }
    50% { background-position: 100% 50%, 0% 50%, 0 0, 15px 15px, -15px -15px; }
    100% { background-position: 0% 50%, 100% 50%, 0 0, 30px 30px, -30px -30px; }
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title span {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.bg-light-custom {
    background-color: var(--light-bg);
}

/* Buttons */
.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #e55e42; /* Slightly darker shade of secondary color */
    border-color: #e55e42;
    color: var(--white);
}

.btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 28px;
    border-radius: 5px;
    font-weight: 500;
}

.btn-outline-custom:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-white-outline-custom {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 10px 28px;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-white-outline-custom:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 15px 0;
    transition: all 0.4s ease;
}

.navbar.navbar-shrink {
    padding: 8px 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.navbar-brand {
    font-weight: 700;
    font-size: 24px;
    color: var(--primary-color);
}

.text-secondary-custom {
    color: var(--secondary-color);
}

.nav-link {
    color: #333;
    font-weight: 500;
    margin-left: 20px;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    height: auto;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding-top: 100px; /* Account for fixed header */
    position: relative;
    overflow: hidden;
}

.hero-bg-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(30px);
    z-index: 0;
    transition: background-image 0.5s ease-in-out;
    opacity: 0.5;
    transform: scale(1.1); /* Prevent white edges from blur */
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-swiper {
    width: 100%;
    padding-bottom: 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-swiper .swiper-pagination {
    bottom: 20px !important;
}

.hero-swiper .swiper-pagination-bullet {
    background-color: var(--white);
    opacity: 0.7;
}

.hero-swiper .swiper-pagination-bullet-active {
    background-color: var(--secondary-color);
    opacity: 1;
}

.hero-swiper .swiper-slide {
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Hero Swiper Navigation */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: all 0.3s ease;
}

.hero-swiper:hover .swiper-button-next,
.hero-swiper:hover .swiper-button-prev {
    opacity: 1;
}

.hero-swiper .swiper-button-next:after,
.hero-swiper .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 120px 0 60px; /* Increased top padding for fixed header */
    margin-bottom: 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-banner h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
}

.page-banner .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.page-banner .breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.page-banner .breadcrumb-item.active {
    color: var(--white);
}

.page-banner .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.page-banner .breadcrumb-item a:hover {
    color: var(--white);
    text-decoration: underline;
}

.page-banner .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    padding-left: 0;
    list-style: none;
    margin-top: 40px;
}

.pagination li {
    margin: 0 5px;
}

.pagination li a, .pagination li span {
    color: var(--primary-color);
    background-color: var(--white);
    border: 1px solid #dee2e6;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
    display: block;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.pagination li a:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(231, 111, 81, 0.3);
}

.pagination li.active a, .pagination li.active span {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(0, 23, 99, 0.3);
}

.pagination li.disabled a, .pagination li.disabled span {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
    opacity: 0.6;
    box-shadow: none;
}

/* Service Cards Redesign */
.service-card {
    background: #fff;
    border-radius: 15px;
    padding: 0;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 23, 99, 0.1);
    border-color: rgba(231, 111, 81, 0.2);
}

.service-icon-wrapper {
    background: linear-gradient(135deg, var(--primary-color) 0%, #002395 100%);
    padding: 30px;
    text-align: center;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.service-icon i {
    font-size: 32px;
    color: var(--white);
}

.service-content {
    padding: 30px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-description {
    color: #666;
    margin-bottom: 25px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.service-features {
    text-align: left;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: auto;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #555;
    display: flex;
    align-items: center;
}

.feature-list li:last-child {
    margin-bottom: 0;
}

.feature-list li i {
    color: var(--secondary-color) !important;
}

/* Project Cards (Recreated) */
.project-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.project-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-content {
    padding: 20px;
}

.project-content h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Testimonials (Recreated) */
.testimonial-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    margin: 20px 5px;
    transition: var(--transition);
    height: 100%;
    position: relative;
    border: 1px solid rgba(0,0,0,0.02);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.testimonial-card .quote-icon {
    font-size: 40px;
    color: rgba(231, 111, 81, 0.15);
    position: absolute;
    top: 20px;
    left: 20px;
}

.client-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid rgba(255,255,255,0.8);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.client-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-card .stars {
    color: #ffc107;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.testimonial-card p {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.testimonial-card h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 5px;
}

.testimonial-card small {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Swiper Pagination */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background-color: var(--secondary-color);
    width: 20px;
    border-radius: 5px;
}

/* Footer (Recreated) */
footer {
    background-color: var(--primary-color);
    color: #fff;
    padding-top: 60px;
    padding-bottom: 30px;
}

footer h4 {
    color: var(--white);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 10px;
}

footer ul li a {
    color: rgba(255,255,255,0.7);
}

footer ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

/* Footer Social Icons */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
}

/* Gallery Section */
.gallery-filter {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-filter button {
    background: transparent;
    border: 2px solid var(--primary-color);
    padding: 8px 25px;
    margin: 0 5px 10px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-filter button:hover,
.gallery-filter button.active {
    background: var(--primary-color);
    color: var(--white);
}

.gallery-item {
    margin-bottom: 30px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-item img {
    width: 100%;
    height: 300px; /* Fixed height for consistency */
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 10px;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 23, 99, 0.7); /* Primary color with opacity */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    border-radius: 10px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 2rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay i {
    transform: translateY(0);
}

/* Contact Page Improvements */
.contact-info-box, .contact-form-box {
    border: 1px solid rgba(0,0,0,0.05);
}

.icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 23, 99, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-info-item:hover .icon-box {
    background-color: var(--primary-color);
    color: var(--white) !important;
}

/* Utility Classes */
.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px);
}
