/* Variables */
:root {
    --primary-color: #00264d; /* Dark Blue */
    --secondary-color: #004d99; /* Medium Blue */
    --accent-color: #daa520; /* Gold */
    --text-color: #333;
    --light-bg: #f8f8f8;
    --dark-bg: #001a33; /* Even darker blue for footers/headers */
    --white: #ffffff;
    --gray-light: #e0e0e0;
    --gray-medium: #888888;
    --gray-dark: #555555;

    /* New for smoother transitions */
    --transition-speed: 0.3s;
    --transition-timing: ease-in-out;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6; /* Enhanced for readability */
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 15px;
}

h1 {
    font-size: 3.2em; /* Slightly larger */
    font-weight: 700;
    letter-spacing: -0.02em; /* Subtle letter spacing for prominence */
}

h2 {
    font-size: 2.5em; /* Slightly larger */
    font-weight: 700;
    /* Optional: Subtle gradient for H2 - apply sparingly */
    /* background: linear-gradient(to right, var(--primary-color), var(--secondary-color)); */
    /* -webkit-background-clip: text; */
    /* -webkit-text-fill-color: transparent; */
    /* display: inline-block; */
}

h3 {
    font-size: 1.8em;
    font-weight: 600;
}

p {
    margin-bottom: 15px;
    line-height: 1.8; /* Enhanced for readability */
}

ul {
    list-style: none;
    margin-bottom: 15px;
}

ul li {
    margin-bottom: 8px;
    line-height: 1.7; /* Enhanced for readability */
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-timing);
}

a:hover {
    color: var(--accent-color);
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: all var(--transition-speed) var(--transition-timing);
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--secondary-color); /* Changes to secondary color on hover */
    transform: translateY(-3px); /* Slightly more pronounced lift */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25); /* Stronger shadow */
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: all var(--transition-speed) var(--transition-timing);
    cursor: pointer;
    text-align: center;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px); /* Consistent lift with primary button */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25); /* Stronger shadow */
}

.section {
    padding: 80px 0;
    text-align: center;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    position: relative;
    padding-bottom: 10px;
}

.section-header .subtitle {
    font-size: 1.2em;
    color: var(--gray-dark);
    margin-top: 15px;
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

/* Header */
#header {
    background-color: var(--primary-color);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color var(--transition-speed) var(--transition-timing), padding var(--transition-speed) var(--transition-timing);
}

#header.scrolled {
    background-color: var(--dark-bg); /* Darker blue on scroll */
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 1.5em;
    font-weight: 700;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    transition: color var(--transition-speed) var(--transition-timing);
    position: relative; /* For underline effect */
    padding-bottom: 5px; /* Space for underline */
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Active Nav Link State */
.nav-links li a.active-nav {
    color: var(--accent-color);
    font-weight: 600;
}
.nav-links li a.active-nav::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0; /* Align with bottom of link */
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    animation: underlineExpand 0.3s forwards;
    transform-origin: left; /* Ensure animation starts from left */
}

@keyframes underlineExpand {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}


.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    height: 3px;
    width: 25px;
    background-color: var(--white);
    margin-bottom: 5px;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Hero Section (Index Page) */
#hero {
    background: url('assets/hero-bg.jpg') no-repeat center center/cover;
    color: var(--white);
    padding: 150px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100vh;
    position: relative;
    background-attachment: fixed; /* For Parallax Effect */
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay */
    z-index: 1;
}

#hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInScale 1s ease-out forwards;
}

#hero h1 {
    font-size: 4em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4); /* Subtle text shadow */
}

#hero p {
    font-size: 1.5em;
    margin-bottom: 30px;
    font-weight: 300;
}

/* General Page Hero for Internal Pages */
#page-hero {
    background: url('assets/page-hero-bg.jpg') no-repeat center center/cover;
    color: var(--white);
    padding: 120px 0 80px; /* Reduced padding for smaller hero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 40vh; /* Shorter height for internal pages */
    position: relative;
    background-attachment: fixed; /* For Parallax Effect */
}

#page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Slightly darker overlay */
    z-index: 1;
}

#page-hero .page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

#page-hero h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); /* Subtle text shadow */
}

#page-hero p {
    font-size: 1.3em;
    font-weight: 300;
}

/* About Section */
#about {
    background-color: var(--light-bg);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    text-align: left;
}

.about-image {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    opacity: 0; /* For animation */
    transform: translateY(20px); /* For animation */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 2;
    min-width: 300px;
    padding: 20px;
    opacity: 0; /* For animation */
    transform: translateY(20px); /* For animation */
    transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
}

.about-text h2 {
    text-align: left;
}

.about-text .divider {
    margin-left: 0;
}

/* Services Section */
#services .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-speed) var(--transition-timing);
    text-align: center;
    opacity: 0; /* For animation */
    transform: translateY(20px); /* For animation */
}

.service-card:hover {
    transform: translateY(-8px); /* More pronounced lift */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15); /* Stronger shadow */
}

.service-card .icon {
    font-size: 3.5em;
    color: var(--accent-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease-in-out; /* For icon hover */
}

.service-card:hover .icon {
    transform: scale(1.1); /* Slightly enlarge icon on hover */
}

.service-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.95em;
    color: var(--gray-dark);
}

/* Service Detail Content Section */
#service-detail-content {
    text-align: left;
    padding-top: 50px; /* Adjust padding due to sticky header */
}

.service-detail-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 60px;
}

.service-detail-text {
    flex: 2;
    min-width: 300px;
}

.service-detail-text h2 {
    text-align: left;
    margin-bottom: 20px;
}

.service-detail-text ul {
    list-style: none;
    margin-top: 20px;
    padding-left: 0;
}

.service-detail-text ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 1.05em;
}

.service-detail-text ul li i {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 1.2em;
    margin-top: 3px;
}

.service-detail-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px; /* Limit image width */
}

.service-detail-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.benefit-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-speed) var(--transition-timing);
    opacity: 0; /* For animation */
    transform: translateY(20px); /* For animation */
}

.benefit-card:hover {
    transform: translateY(-8px); /* More pronounced lift */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15); /* Stronger shadow */
}

.benefit-card .benefit-icon {
    font-size: 3em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    transition: transform 0.3s ease-in-out;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
}

.benefit-card h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 0.95em;
    color: var(--gray-dark);
}

/* Portfolio Section */
#portfolio {
    background-color: var(--light-bg);
}

.portfolio-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 15px;
}

.tab-btn {
    background-color: var(--gray-light);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-speed) var(--transition-timing);
    border: none;
}

.tab-btn:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-speed) var(--transition-timing);
    opacity: 0; /* For animation */
    transform: translateY(20px); /* For animation */
    text-align: left;
}

.portfolio-item:hover {
    transform: translateY(-8px); /* More pronounced lift */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15); /* Stronger shadow */
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.portfolio-info {
    padding: 20px;
}

.portfolio-info h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
}

.portfolio-info p {
    font-size: 0.9em;
    color: var(--gray-dark);
    margin-bottom: 15px;
}

.portfolio-info a {
    font-weight: 600;
}

/* Team Section */
#team {
    background-color: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-member {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    opacity: 0; /* For animation */
    transform: translateY(20px); /* For animation */
    transition: all var(--transition-speed) var(--transition-timing);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--accent-color);
}

.team-member h3 {
    font-size: 1.4em;
    margin-bottom: 5px;
}

.team-member p {
    font-size: 0.9em;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.social-links a {
    font-size: 1.2em;
    color: var(--primary-color);
    margin: 0 8px;
    transition: color var(--transition-speed) var(--transition-timing);
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Testimonial Section */
#testimonials {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
}

#testimonials .section-header h2 {
    color: var(--white);
}

#testimonials .section-header .divider {
    background-color: var(--accent-color);
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
    overflow: hidden;
}

.testimonial-slide {
    display: none; /* Controlled by JS */
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
}

.testimonial-slide p {
    font-size: 1.2em;
    margin-bottom: 20px;
    line-height: 1.7;
}

.testimonial-author {
    font-weight: 600;
    font-size: 1.1em;
}

.testimonial-author span {
    display: block;
    font-size: 0.9em;
    font-weight: 400;
    color: var(--gray-light);
}

.slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.slider-nav button {
    background: none;
    border: none;
    color: var(--white);
    font-size: 2em;
    cursor: pointer;
    padding: 10px;
    transition: color var(--transition-speed) var(--transition-timing);
}

.slider-nav button:hover {
    color: var(--accent-color);
}

#sliderDots {
    display: flex;
    gap: 10px;
    margin: 0 20px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color var(--transition-speed) var(--transition-timing);
}

.dot.active {
    background-color: var(--white);
}

/* Partners Section (Index Page) */
#partners {
    background-color: var(--light-bg);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 40px;
    align-items: center;
    justify-items: center;
}

.partner-logo-item {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) var(--transition-timing);
    text-align: center;
}

.partner-logo-item:hover {
    transform: translateY(-5px); /* Consistent lift with other cards */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.partner-logo-item img {
    max-width: 100px; /* Adjust as needed */
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter var(--transition-speed) var(--transition-timing);
}

.partner-logo-item:hover img {
    filter: grayscale(0%);
}

/* Partners Detail Page */
.partner-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
    align-items: stretch; /* Ensures cards are same height */
    text-align: center;
}

.partner-item-detail {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-speed) var(--transition-timing);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes button to bottom */
}

.partner-item-detail:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.partner-item-detail img {
    max-width: 70%; /* Adjusted for better appearance on detail page */
    max-height: 80px; /* Limits height */
    object-fit: contain;
    margin: 0 auto 20px auto; /* Center and add margin below */
    display: block; /* Important for margin: auto to work */
    filter: grayscale(0%); /* Always colored on detail page */
    transition: transform 0.3s ease-in-out;
}

.partner-item-detail:hover img {
    transform: scale(1.05); /* Slight zoom on hover */
}

.partner-item-detail h3 {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.partner-item-detail p {
    font-size: 0.95em;
    color: var(--gray-dark);
    margin-bottom: 20px;
    flex-grow: 1; /* Allows paragraph to take available space */
}

.partner-item-detail .btn-primary {
    align-self: center; /* Center the button within the flex column */
    margin-top: auto; /* Pushes button to the bottom */
}


/* Blog Section (Placeholder) */
#blog-intro {
    background-color: var(--white);
    text-align: center;
}

#blog-intro .blog-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Contact Section */
#contact {
    background-color: var(--primary-color);
    color: var(--white);
}

#contact .section-header h2 {
    color: var(--white);
}

#contact .section-header .divider {
    background-color: var(--accent-color);
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 50px;
    text-align: left;
}

.contact-info, .contact-form-container {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
    color: var(--gray-light);
}

.contact-info ul li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--gray-light);
}

.contact-info ul li i {
    font-size: 1.2em;
    color: var(--accent-color);
    margin-right: 10px;
}

.contact-form-container {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form-container h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--gray-light);
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    transition: border-color var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 77, 153, 0.2); /* Subtle focus ring */
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button[type="submit"] {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 60px 0 20px;
    font-size: 0.9em;
}

footer .footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    margin-bottom: 40px;
    text-align: left;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer-logo h3 {
    color: var(--white);
    font-size: 1.6em;
    margin-bottom: 0;
}

.footer-column p {
    color: var(--gray-light);
    line-height: 1.7;
}

.footer-column h3 {
    color: var(--white);
    font-size: 1.3em;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 5px;
}
.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
    border-radius: 1px;
}


.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray-light);
    transition: color var(--transition-speed) var(--transition-timing);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    outline: none;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    font-size: 0.95em;
}

.newsletter-form button {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.1em;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    transition: background-color var(--transition-speed) var(--transition-timing);
}

.newsletter-form button:hover {
    background-color: var(--secondary-color);
}


.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    margin: 0;
    color: var(--gray-light);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: var(--gray-light);
    transition: color var(--transition-speed) var(--transition-timing);
}

.footer-bottom-links a:hover {
    color: var(--accent-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em; /* Slightly larger icon */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) var(--transition-timing), visibility var(--transition-speed) var(--transition-timing), background-color var(--transition-speed) var(--transition-timing);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-color); /* Changes to accent color on hover */
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* General fade-in for scroll animations */
.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Responsive Design */
@media (max-width: 992px) {
    #header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        background-color: var(--primary-color);
        position: absolute;
        top: 100%;
        left: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
        padding: 20px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .nav-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 25px; /* Adjust based on header padding */
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    #hero h1 {
        font-size: 3em;
    }

    #page-hero h1 {
        font-size: 2.8em;
    }

    .about-content, .service-detail-overview, .contact-content {
        flex-direction: column;
        text-align: center;
    }

    .about-text h2, .service-detail-text h2, .contact-info h3, .contact-form-container h3 {
        text-align: center;
    }

    .about-text .divider {
        margin: 10px auto 0 auto;
    }

    .service-detail-text {
        order: 2; /* Text below image on small screens */
    }

    .service-detail-image {
        order: 1; /* Image above text on small screens */
        max-width: 80%;
        margin: 0 auto 30px;
    }

    .contact-form-container {
        order: 1;
    }
    .contact-info {
        order: 2;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-column {
        min-width: unset;
        width: 100%;
        text-align: center;
    }

    .footer-column h3::after {
        margin: 0 auto;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 2em;
    }

    .section {
        padding: 60px 0;
    }

    #hero {
        padding: 100px 0;
    }

    #hero h1 {
        font-size: 2.8em;
    }

    #hero p {
        font-size: 1.2em;
    }

    #page-hero {
        padding: 100px 0 60px;
        min-height: 35vh;
    }

    #page-hero h1 {
        font-size: 2.5em;
    }

    .portfolio-tabs {
        flex-direction: column;
        align-items: center;
    }

    .tab-btn {
        width: 80%;
        margin-bottom: 10px;
    }

    .testimonial-slide {
        padding: 20px;
    }

    .testimonial-slide p {
        font-size: 1em;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.6em;
        bottom: 20px;
        right: 20px;
    }

    .partner-grid-full .partner-item-detail img {
        max-width: 50%; /* Further adjust for very small screens if logos are too big */
        max-height: 60px; /* Further limit height */
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.8em;
    }
    .btn-primary, .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .service-card, .portfolio-item, .team-member, .benefit-card {
        padding: 20px;
    }
    .service-card .icon {
        font-size: 3em;
    }
    .benefit-card .benefit-icon {
        font-size: 2.5em;
    }
    .newsletter-form input[type="email"] {
        font-size: 0.85em;
    }
    .newsletter-form button {
        font-size: 1em;
        padding: 10px;
    }
}