﻿:root {
    --primary-color: #30336b; /* Deep Koamaru - Dark Indigo */
    --secondary-color: #f9ca24; /* Turbo Yellow - Bright Yellow */
    --accent-color-1: #6ab04c; /* Greenland Green - Fresh Green */
    --accent-color-2: #eb4d4b; /* Carmine Pink - Vibrant Red */
    --background-color: #f8f9fa; /* Light neutral background */
    --text-dark: #333; /* Dark text for readability */
    --text-light: #dcdde1; /* Light grey for contrast */
    --mango-yellow: #f0932b; /* Quince Jelly - Warm Orange */
    --rose-pink: #be2edd; /* Steel Pink - Bold Magenta */
    --peacock-green: #22a6b3; /* Jungle Green - Rich Blue-Green */
    --brick-red: #c23616; /* Mandarin Sorbet - Deep Reddish Orange */
    --marigold-yellow: #f6e58d; /* Vanilla Yellow - Soft Yellow */
}

/* Global body styling */
body {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

p {
    font-size: 1.1rem; /* Slightly larger for readability */
    line-height: 1.8; /* Optimal spacing between lines */
    color: var(--text-dark); /* Ensures high contrast */
    margin-bottom: 1.2rem; /* Spacing between paragraphs */
    letter-spacing: 0.5px; /* Slightly spaced letters for clarity */
    text-align: justify; /* Improves text alignment and readability */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}


/* Navbar Styling */
.navbar {
    background-color: var(--primary-color) !important; /* Indigo background for the navbar */
}

/* Navbar Brand and Link Text */
.navbar-brand, .nav-link {
    color: var(--text-light) !important; /* Light text on dark background */
}

    .nav-link:hover {
        color: var(--secondary-color) !important; /* Change color on hover to Saffron */
    }

/* Navbar Toggle Button (FontAwesome) */
.navbar-toggler {
    color: var(--text-light) !important; /* Set the icon color to light */
    background: none !important; /* Remove background */
    border: none !important; /* Remove border */
    font-size: 30px; /* Icon size */
    padding: 8px 10px;
    transition: color 0.3s ease; /* Smooth transition for icon color */
}

    .navbar-toggler:hover,
    .navbar-toggler:focus {
        color: var(--secondary-color) !important; /* Change color on hover/focus */
        transform: scale(1.1); /* Slight scale effect */
    }

    .navbar-toggler i {
        font-size: 30px; /* FontAwesome icon size */
        color: var(--text-light); /* Icon color */
    }

    .navbar-toggler:hover i {
        color: var(--secondary-color); /* Icon color on hover */
    }

/* Dropdown Styling */
.navbar-nav .dropdown-menu {
    display: none !important; /* Hide dropdown initially */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.navbar-nav .dropdown.show > .dropdown-menu {
    display: block !important; /* Show dropdown when active */
    opacity: 1;
    visibility: visible;
}

/* On larger screens (desktop) - Hover to open dropdown */
.navbar-nav .dropdown:hover > .dropdown-menu {
    display: block !important;
    opacity: 1;
    visibility: visible;
}

/* On smaller screens, click to open dropdown (mobile) */
@media (max-width: 992px) {
    .navbar-nav .dropdown-menu {
        display: none !important; /* Hide the dropdown by default */
    }

    .navbar-nav .dropdown.show > .dropdown-menu {
        display: block !important; /* Show the dropdown when it is in the 'show' state */
        opacity: 1;
        visibility: visible;
    }
}

/* Buttons */
.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

    .btn-primary:hover {
        background-color: var(--accent-color-2);
        border-color: var(--accent-color-2);
    }

/* Navbar Icons */
.icon-btn {
    color: var(--text-light) !important; /* Default icon color */
    font-size: 18px; /* Adjust icon size if needed */
    padding: 8px 12px;
    transition: color 0.3s ease; /* Smooth transition effect */
}

    .icon-btn:hover {
        color: var(--accent-color-1) !important; /* Icon color on hover */
    }

    /* Optional: Adjust icon size and spacing if needed */
    .icon-btn i {
        font-size: 20px; /* Adjust the size of the icons */
        transition: transform 0.3s ease;
    }

    .icon-btn:hover i {
        transform: scale(1.1); /* Slight scale effect on hover */
    }



/* Dark Mode Styling */
@media (prefers-color-scheme: dark) {
    body {
        background-color: var(--dark-mode-bg);
        color: var(--text-light);
    }

    .navbar {
        background-color: var(--dark-mode-bg); /* Dark navbar for dark mode */
    }

    .navbar-brand, .nav-link {
        color: var(--text-light) !important;
    }
}

/* Additional improvements: Accent Colors for CTA */
.btn-saffron {
    background-color: var(--mango-yellow);
    border-color: var(--mango-yellow);
}

    .btn-saffron:hover {
        background-color: var(--brick-red);
        border-color: var(--brick-red);
    }

.icon-btn-cta {
    color: var(--peacock-green);
}

    .icon-btn-cta:hover {
        color: var(--rose-pink);
    }

/* Carousel Styling */
.carousel-item {
    width: 100%;
    height: 70vh;
    min-height: 600px;
    background-position: center;
    background-size: cover;
    position: relative;
}

@media (max-width: 768px) {
    .carousel-item {
        height: 50vh; /* Reduced height for smaller screens */
    }
}

/* Standardize the opacity across all carousel items */
.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.6; /* Apply consistent opacity */
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay with consistent opacity */
}

/* Override background color on individual slides */
.carousel-item:nth-child(1)::before {
    background: linear-gradient(to right, var(--primary-color), rgba(0, 0, 0, 0.6)); /* Same opacity for all */
}

.carousel-item:nth-child(2)::before {
    background: linear-gradient(to right, var(--accent-color-1), rgba(0, 0, 0, 0.6)); /* Same opacity for all */
}

.carousel-item:nth-child(3)::before {
    background: linear-gradient(to right, var(--brick-red), rgba(0, 0, 0, 0.6)); /* Same opacity for all */
}


/* Caption Styling */
.carousel-caption {
    bottom: 25%; /* Adjusted positioning for better visibility */
    text-align: center; /* Center-align text for better readability */
    padding: 2rem;
    animation: slideIn 1s ease-out;
    color: var(--text-light);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8); /* Stronger shadow for contrast */
}

    /* Styling for Headings inside captions */
    .carousel-caption h1,
    .carousel-caption h2 {
        font-size: 2.5rem; /* Larger size for impact */
        font-weight: 700; /* Bolder text for emphasis */

        color: var(--secondary-color); /* Bright yellow for visibility */
        text-transform: uppercase;
        letter-spacing: 1.5px;
        margin-bottom: 0.8rem;
    }

    /* Paragraph inside carousel caption */
    .carousel-caption p {
        font-size: 1.4rem;
        font-weight: 500;
        text-align: center;
        color: var(--marigold-yellow); /* Soft yellow for readability */
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
        line-height: 1.6;
        max-width: 60%;
        margin: 0 auto; /* Centering the text */
    }

/* Carousel Indicators */
.carousel-indicators [data-bs-target] {
    width: 14px; /* Larger indicator size */
    height: 14px;
    border-radius: 50%;
    margin: 0 10px;
    background-color: var(--text-light); /* Default indicator color */
    border: 2px solid var(--primary-color); /* Border to make them stand out */
}

    .carousel-indicators [data-bs-target]:hover {
        background-color: var(--secondary-color); /* Hover effect */
        border-color: var(--accent-color-2);
    }

/* Navigation Arrows */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(255,255,255,0.3);
    padding: 1.5rem;
    border-radius: 50%;
    background-size: 60%;
    transition: all 0.3s ease;
}

    .carousel-control-prev-icon:hover,
    .carousel-control-next-icon:hover {
        background-color: rgba(255,255,255,0.7);
    }

/* Slide In Animation */
@keyframes slideIn {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Slide Number Styling */
.slide-number {
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    font-weight: bold;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
}

/* Dark Mode Enhancements */
@media (prefers-color-scheme: dark) {
    .carousel-item {
        background-color: #333; /* Darker background for carousel items */
    }

    .btn-primary {
        background-color: var(--accent-color-2);
        border-color: var(--accent-color-2);
    }
}

@media (max-width: 768px) {
    .carousel-caption {
        bottom: 15%; /* Adjusted for smaller screens */
    }

        .carousel-caption h1,
        .carousel-caption h2 {
            font-size: 1.8rem; /* Smaller font on mobile */
        }

        .carousel-caption p {
            font-size: 1.1rem;
            max-width: 80%;
        }
}

/* About Us Section */
.about-us {
    background-color: var(--background-color);
    padding: 70px 0;
    border-top: 5px solid var(--accent-color-1);
    position: relative;
    text-align: center;
}

    .about-us .container {
        max-width: 1200px;
        margin: 0 auto;
    }

    .about-us h2 {
        font-size: 2.5rem;
        color: var(--primary-color);
        font-weight: 700;
        margin-bottom: 30px;
        position: relative;
        display: inline-block;
        text-transform: uppercase;
    }

        .about-us h2::after {
            content: '';
            width: 120px;
            height: 3px;
            background-color: var(--primary-color);
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            transition: width 0.3s ease, transform 0.3s ease;
        }

        .about-us h2:hover::after {
            width: 150px;
            transform: translateX(-50%) scaleX(1.2);
        }

    .about-us p {
        font-size: 1.1rem;
        color: var(--text-dark);
        line-height: 1.8;
        text-align: justify;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .about-us .row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .about-us .col-md-6 {
        padding: 20px;
        flex: 1;
        max-width: 50%;
    }

    .about-us .img-fluid {
        border-radius: 15px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        width: 100%;
        max-height: 350px;
        object-fit: fill;
    }

        .about-us .img-fluid:hover {
            transform: scale(1.05);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
        }

    .about-us .btn {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        font-size: 1rem;
        padding: 12px 25px;
        border-radius: 5px;
        transition: all 0.3s ease;
    }

        .about-us .btn:hover {
            background-color: var(--accent-color-1);
            border-color: var(--accent-color-1);
            transform: translateY(-3px);
        }

/* Responsive adjustments */
@media (max-width: 992px) {
    .about-us .col-md-6 {
        max-width: 100%;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .about-us {
        padding: 50px 0;
    }
        .about-us .row {
            flex-direction: column-reverse; /* Moves image above text */
        }

        .about-us .col-md-6 {
            max-width: 100%;
            text-align: center;
        }

        .about-us h2 {
            font-size: 2rem;
        }

        .about-us p {
            font-size: 1rem;
        }
}


/* Key Services Section */
.key-services {
    background-color: var(--background-color);
    padding: 50px 0;
    text-align: center; /* Ensuring consistency like About Us */
}

    /* Key Services Heading Styling - Matches About Us */
    .key-services h2 {
        font-size: 2.8rem;
        color: var(--primary-color);
        font-weight: 700;
        margin-bottom: 40px;
        text-align: center; /* Center aligns heading */
        position: relative;
        display: inline-block;
    }

        /* Underline Effect for Key Services */
        .key-services h2::after {
            content: '';
            width: 120px;
            height: 3px;
            background-color: var(--primary-color);
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            transition: transform 0.3s ease, width 0.3s ease;
        }

        /* Hover Effect for Heading */
        .key-services h2:hover::after {
            width: 150px;
        }

/* Service Card Styling */
.service-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensure consistent height */
    height: 100%;
    padding-bottom: 20px; /* Added padding for spacing */
}

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    }

    /* Service Card Image */
    .service-card img {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }

    /* Service Card Title */
    .service-card h3 {
        margin-top: 15px;
        font-size: 1.8rem;
        color: var(--primary-color);
        font-weight: 500;
        padding: 0 10px;
    }

    /* Service Card Description */
    .service-card p {
        padding: 15px;
        font-size: 1.1rem;
        color: var(--text-dark);
        line-height: 1.6;
    }

/* Service Button */
.btn-service {
    margin-top: auto;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    width: 70%;
    max-width: 250px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

    .btn-service:hover {
        background-color: var(--accent-color-1);
        transform: scale(1.05);
    }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .service-card {
        margin-bottom: 30px;
    }

    .btn-service {
        width: 100%;
        padding: 12px;
    }
}


/* Get in Touch Section */
/* Get in Touch Section */
.get-in-touch {
    position: relative;
    background-image: url('https://www.mmu.ac.uk/sites/default/files/styles/page_header_half/public/2020-12/two%20ladies%20at%20computer%20mmu%20stock.PNG?h=5f551464&itok=Ifp88kq9');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    color: white;
    text-align: center;
}

    /* Overlay Styling */
    .get-in-touch::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to bottom, rgba(216, 214, 223, 0.57), rgba(14, 38, 234, 0.7));
        z-index: 1;
    }

    .get-in-touch * {
        position: relative;
        z-index: 2;
    }

    /* Heading */
    .get-in-touch h2 {
        font-size: 2.8rem;
        color: var(--primary-color);
        font-weight: 700;
        margin-bottom: 40px;
        text-align: center; /* Center aligns heading */
        position: relative;
        display: inline-block;
    }

        .get-in-touch h2::after {
            content: '';
            width: 120px;
            height: 3px;
            background-color: var(--primary-color);
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            transition: transform 0.3s ease, width 0.3s ease;
        }

        .get-in-touch h2:hover::after {
            transform: translateX(-50%) scaleX(1.2);
            width: 150px;
        }

    /* Paragraph Styling */
    .get-in-touch p {
        font-size: 1.125rem;
        color: var(--text-dark);
        line-height: 1.8;
        text-align: justify;
    }

    .get-in-touch .section-intro {
        font-size: 1.25rem;
        font-weight: 400;
        color: #fff;
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
        line-height: 1.6;
        padding: 10px 20px;
    }

    /* Contact Info Styling */
    .get-in-touch .contact-info {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }

        .get-in-touch .contact-info .contact-item {
            flex: 1;
            max-width: 48%;
            padding: 20px;
            background-color: var(--text-light);
            border-radius: 15px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

            .get-in-touch .contact-info .contact-item:hover {
                transform: scale(1.05);
                box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
            }

            .get-in-touch .contact-info .contact-item h4 {
                font-size: 1.5rem;
                color: var(--primary-color);
                margin-bottom: 20px;
            }

            .get-in-touch .contact-info .contact-item p {
                font-size: 1rem;
                color: var(--text-dark);
            }

    /* Form Styling */
    .get-in-touch form {
        background-color: var(--text-light);
        padding: 30px;
        border-radius: 15px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

        .get-in-touch form:hover {
            transform: scale(1.05);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
        }

        .get-in-touch form input,
        .get-in-touch form textarea {
            width: 100%;
            padding: 12px;
            border-radius: 8px;
            border: 1px solid var(--primary-color);
            margin-bottom: 15px;
            font-size: 1rem;
            color: var(--text-dark);
            background-color: var(--background-color);
        }

            .get-in-touch form input:focus,
            .get-in-touch form textarea:focus {
                border-color: var(--secondary-color);
                outline: none;
            }

/* Submit Button */
.submit-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 15px 35px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    outline: none;
}

    .submit-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }

    .submit-btn:active {
        transform: scale(0.95);
    }

/* Contact Image */
.contact-img {
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

    .contact-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

/* Contact Description */
.contact-description {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 10px;
    color: #fff;
    text-align: center;
}

    .contact-description p {
        font-size: 1.2rem;
        color: #fff;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
        margin-bottom: 15px;
    }

/* Call Us Button */
.call-us-btn {
    background-color: #28a745 !important;
    border-color: #218838;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 12px 20px;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
}

    .call-us-btn:hover {
        background-color: #218838 !important;
        transform: scale(1.05);
    }

/* Responsive Design */
@media (max-width: 767px) {
    .get-in-touch h2 {
        font-size: 2.2rem;
    }

    .get-in-touch .contact-info {
        flex-direction: column;
    }

        .get-in-touch .contact-info .contact-item {
            max-width: 100%;
            margin-bottom: 20px;
        }

    .get-in-touch form {
        padding: 20px;
    }
}

/* FOOTER STYLES */
.footer {
    margin-top: 50px; /* Adds space before the footer */
    border-top: 5px solid var(--accent-color-1); /* Adds a border at the top of the footer */
    background: linear-gradient(135deg, var(--primary-color), #82589F);
    padding: 50px 0;
    color: var(--text-light);
    text-align: left;
    position: relative;
    overflow: hidden;
}

    .footer::before {
        content: '';
        position: absolute;
        top: -50px;
        left: -50px;
        width: 150px;
        height: 150px;
        background: var(--accent-color-1);
        border-radius: 50%;
        opacity: 0.2;
    }

    .footer::after {
        content: '';
        position: absolute;
        bottom: -50px;
        right: -50px;
        width: 100px;
        height: 100px;
        background: var(--mango-yellow);
        border-radius: 50%;
        opacity: 0.2;
    }

/* Footer Brand */
.footer-brand {
    font-size: 22px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.footer-text {
    font-size: 14px;
    color: var(--text-light);
    opacity: 0.8;
}

.footer .row > div {
    padding-bottom: 20px; /* Adds spacing between columns */
}

/* Footer Titles */
.footer-title {
    color: var(--marigold-yellow);
    font-size: 18px;
    margin-bottom: 15px; /* Increased spacing */
    position: relative;
    display: inline-block;
}

    .footer-title::after {
        content: "";
        display: block;
        width: 40px;
        height: 3px;
        background: var(--accent-color-1);
        margin-top: 5px;
        transition: width 0.3s ease-in-out;
    }

    .footer-title:hover::after {
        width: 60px; /* Expands on hover */
    }

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
}

    .footer-links li {
        margin-bottom: 8px;
    }

    .footer-links a {
        color: var(--text-light);
        text-decoration: none;
        font-size: 15px;
        transition: all 0.3s ease-in-out;
    }

        .footer-links a i {
            margin-right: 8px;
            color: var(--mango-yellow);
        }

        .footer-links a:hover {
            color: var(--accent-color-2);
            transform: translateX(5px);
        }

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icon {
    color: var(--text-light);
    font-size: 20px;
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

    .social-icon:hover {
        color: var(--accent-color-2);
        transform: scale(1.2);
    }

/* Footer Bottom */
.footer-bottom {
    font-size: 14px;
    color: var(--text-light);
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}
/* Center Social Icons on Small Screens */
@media (max-width: 767px) {
    .social-icons {
        justify-content: center;
    }
}
