/* Custom styles for SONAS Solutions Redesign */

:root {
    --ss-primary: #0d6efd; /* Bootstrap Blue for consistency */
    --ss-secondary: #6c757d;
    --ss-light: #f8f9fa;
    --ss-dark: #212529;
    --ss-text-body: #495057;
    --ss-text-heading: #343a40;
    --ss-border-color: #dee2e6;
    --ss-border-radius: 0.5rem;
    --ss-shadow-sm: 0 .125rem .25rem rgba(0, 0, 0, .075);
    --ss-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ss-text-body);
    background-color: #fff;
    line-height: 1.6;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ss-text-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--ss-secondary);
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.hero {
    /*background-color: var(--ss-light);*/
    padding: 6rem 0;
    min-height: 95vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
}

.hero-lead {
    font-size: 1.3rem;
    color: var(--ss-secondary);
    margin: 1.5rem 0;
}

.lead {
    font-size: 1.3rem;
    color: var(--ss-secondary);
    margin: 1.5rem 0;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--ss-border-radius);
    box-shadow: var(--ss-shadow);
    overflow: hidden;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* About Section */
.about-image {
    border-radius: var(--ss-border-radius);
    box-shadow: var(--ss-shadow);
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: -2rem;
    width: 100%;
    height: 100%;
    background-color: var(--ss-primary);
    opacity: 0.05;
    border-radius: var(--ss-border-radius);
    z-index: -1;
    transition: transform 0.3s ease;
}

.about-image-wrapper:hover::before {
    transform: translate(0.5rem, 0.5rem);
}

.about-features {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.about-features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.about-features .icon {
    font-size: 1.25rem;
    color: var(--ss-primary);
    margin-top: 0.25rem;
}

/* Services Section */
.services-section {
    background-color: var(--ss-light);
}

.service-card {
    background-color: #fff;
    border: 1px solid var(--ss-border-color);
    border-radius: var(--ss-border-radius);
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ss-shadow);
}

.service-card .icon {
    font-size: 2.5rem;
    color: var(--ss-primary);
    margin-bottom: 1.5rem;
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* CTA Section */
.cta-section {
    background-color: var(--ss-dark);
    color: #fff;
}

.cta-title {
    color: #fff;
}

.cta-lead {
    color: rgba(255, 255, 255, 0.7);
}

/* Custom Button Styles */
.btn {
    padding: 0.8rem 1.75rem;
    border-radius: 50rem; /* Pill shape */
    font-weight: 600;
    border-width: 2px;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--ss-primary);
    border-color: var(--ss-primary);
    color: #fff;
    box-shadow: var(--ss-shadow-sm);
}

.btn-primary:hover, .btn-primary:focus {
    transform: translateY(-3px);
    box-shadow: var(--ss-shadow);
    background-color: #0b5ed7;
    border-color: #0a58ca;
    color: #fff;
}

.btn-outline-secondary {
    border-color: var(--ss-border-color);
    color: var(--ss-text-heading);
    background-color: #fff;
}

.btn-outline-secondary:hover, .btn-outline-secondary:focus {
    transform: translateY(-3px);
    box-shadow: var(--ss-shadow-sm);
    background-color: var(--ss-light);
    color: var(--ss-dark);
    border-color: var(--ss-border-color);
}

/* Navbar Styles */
.main-header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ss-border-color);
}

.navbar-brand .brand-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--ss-dark);
}

.navbar-brand .brand-text strong {
    font-weight: 700;
}

.navbar .nav-link {
    font-weight: 500;
    color: var(--ss-text-body);
    transition: color 0.2s ease, background-color 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: 50rem;
    margin: 0 0.25rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--ss-primary);
    background-color: rgba(13, 110, 253, 0.1);
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.brand-text-original {
    color: #506bbd;
    font-size: 18px;
    line-height: 1;
}

/* Footer New */
.footer-new {
    background-color: var(--ss-light); /* Light background */
    color: var(--ss-text-body); /* Standard text color */
    padding-top: 5rem;
    padding-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.footer-new .footer-logo img {
    max-height: 40px;
    margin-bottom: 1.5rem;
    filter: none; /* Remove filter for light background */
}

.footer-new .footer-heading {
    font-family: 'Lexend', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--ss-text-heading);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-new p {
    font-size: 0.95rem;
}

.footer-new .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-new .footer-links li {
    margin-bottom: 0.8rem;
}

.footer-new .footer-links a {
    color: var(--ss-text-body);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-new .footer-links a:hover {
    color: var(--ss-primary);
    padding-left: 5px;
}

.footer-new .footer-contact-info p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.footer-new .footer-contact-info i {
    color: var(--ss-primary);
    margin-right: 12px;
    font-size: 1.2rem;
}

.footer-new .footer-social-links {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
    display: flex;
    gap: 1.2rem;
}

.footer-new .footer-social-links a {
    color: var(--ss-secondary);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-new .footer-social-links a:hover {
    color: var(--ss-primary);
    transform: translateY(-3px);
}

.footer-new .footer-bottom {
    border-top: 1px solid var(--ss-border-color);
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Projects Page Styles */
.projects-header {
    background-color: var(--ss-light);
    padding: 5rem 0;
    text-align: center;
}

.projects-header .page-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
}

.projects-header .page-subtitle {
    font-size: 1.2rem;
    color: var(--ss-secondary);
    max-width: 700px;
    margin: 1rem auto 0;
}

.project-card {
    background-color: #fff;
    border: 1px solid var(--ss-border-color);
    border-radius: var(--ss-border-radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--ss-text-body);
    display: block;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ss-shadow);
    color: var(--ss-text-body);
}

.project-card-image-wrapper {
    background-color: #fff;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px; /* Fixed height for alignment */
    border-bottom: 1px solid var(--ss-border-color);
}

.project-card-image-wrapper.bg-white {
    background-color: #fff;
}

.project-card-image-wrapper img {
    max-height: 100px;
    max-width: 100%;
    width: auto;
}

.project-card-content {
    padding: 1.5rem 2rem;
}

.project-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ss-text-heading);
    margin-bottom: 0.5rem;
}

.project-card-description {
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--ss-primary);
    margin-top: 1rem;
    text-decoration: none;
}

.project-card-link i {
    transition: transform 0.2s ease;
}

.project-card:hover .project-card-link i {
    transform: translateX(4px);
}

/* Contact Page Styles */
.contact-header {
    background-color: var(--ss-light);
    padding: 5rem 0;
    text-align: center;
}

.contact-header .page-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
}

.contact-header .page-subtitle {
    font-size: 1.2rem;
    color: var(--ss-secondary);
    max-width: 700px;
    margin: 1rem auto 0;
}

.contact-info-card {
    background-color: #fff;
    border: 1px solid var(--ss-border-color);
    border-radius: var(--ss-border-radius);
    padding: 2.5rem;
    height: 100%;
}

.contact-info-card .icon {
    font-size: 2.5rem;
    color: var(--ss-primary);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.contact-info-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-info-card p, .contact-info-card a {
    color: var(--ss-text-body);
    font-size: 1.05rem;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.contact-info-card a:hover {
    color: var(--ss-primary);
}

.contact-form {
    background-color: #fff;
    border: 1px solid var(--ss-border-color);
    border-radius: var(--ss-border-radius);
    padding: 2.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--ss-text-heading);
}

.form-control {
    padding: 0.8rem 1rem;
    border-radius: 0.375rem;
}

.form-control:focus {
    border-color: var(--ss-primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.offcanvas {
    height: 100vh;
}

@media (max-width: 991.98px) {
    .offcanvas-body .navbar-nav {
        align-items: flex-start; /* Align items to the left */
        margin-left: 0 !important; /* Override ms-auto */
    }
    .offcanvas-body .nav-link {
        padding: 0.75rem 0; /* Adjust padding for vertical layout */
        font-size: 1.1rem;
        margin: 0; /* Reset margin */
        width: 100%; /* Make links full-width */
    }
    .offcanvas-body .dropdown-menu {
        border: none;
        box-shadow: none;
        background-color: transparent;
    }
    .offcanvas-body .dropdown-item {
        padding-left: 0;
    }
}

/* Responsive adjustments for smaller screens */
@media (max-width: 767.98px) {
    .section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2.0rem);
    }

    .hero-lead, .lead {
        font-size: 1rem;
    }

    .projects-header .page-title,
    .contact-header .page-title {
        font-size: clamp(1.8rem, 8vw, 2.2rem);
    }

    .projects-header .page-subtitle,
    .contact-header .page-subtitle {
        font-size: 1rem;
    }

    .project-card-title {
        font-size: 1.1rem;
    }

    .contact-info-card {
        padding: 1.5rem;
    }

    .contact-info-card h3 {
        font-size: 1.2rem;
    }
}
