/* Global Styles */
:root {
    --primary-blue: #102A83;
    --primary-red: #E30016;
    --primary-green: #009035;
    --dark-bg: #333333;
    --text-dark: #292929;
    --text-muted: #2C3E50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

@import url('animation.css');

/* Navbar Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 40px;
}

.nav-link {
    color: #292929;
    font-weight: 500;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    text-decoration: none;
    border-bottom: none;
}

.nav-link:hover {
    color: #E30016;
}

.nav-link.active {
    color: #E30016 !important;
}

/* Offcanvas Menu Styles */
.offcanvas-body {
    padding: 20px;
    display: flex;
    justify-content: flex-end;
}

.offcanvas-body ul {
    margin-bottom: 0;
    display: flex;
    flex-direction: row;
    gap: 24px;
}

.offcanvas-body li {
    margin: 0;
}

.offcanvas-link {
    color: #292929;
    text-decoration: none;
    font-weight: 500;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    display: inline-block;
    white-space: nowrap;
}

.offcanvas-link:hover {
    color: #E30016;
}

.offcanvas-link.active {
    color: #E30016;
}

/* Offcanvas Mobile Menu */
.offcanvas {
    width: 280px !important;
}

.offcanvas-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.offcanvas-body {
    padding: 1.5rem;
}

.offcanvas-body .navbar-nav {
    gap: 0.5rem;
}

.offcanvas-body .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
}

.dropdown-item {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    padding: 0.75rem 1.5rem;
    color: #292929;
    transition: background-color 0.3s ease;
}

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

.dropdown-item svg {
    flex-shrink: 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-image {
    position: relative;
    width: 100%;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 3;
    width: 100%;
    color: #111111;
}

.hero-content h1 {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: 56px;
    line-height: 120%;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 30px;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.btn-danger {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 24px;
    padding: 12px 48px;
    border-radius: 4px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-danger:hover {
    background-color: #b30013;
    border-color: #b30013;
}

/* Floating Images */
.floating-images {
    position: absolute;
    z-index: 4;
    width: 100%;
    height: 100%;
    top: 0;
    pointer-events: none;
}

.floating-img {
    position: absolute;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.floating-img.img-1 {
    width: 238px;
    height: 357px;
    left: 15%;
    top: 50%;
    transform: translateY(-50%);
}

.floating-img.img-2 {
    width: 197px;
    height: 295px;
    right: 20%;
    top: 40%;
}

.floating-img.img-3 {
    width: 163px;
    height: 244px;
    left: 50%;
    top: 10%;
    transform: translateX(-50%);
}

/* About Section */
.about-section {
    position: relative;
    overflow: hidden;
    padding: 100px 0 !important;
}

.about-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.about-section .container {
    z-index: 3;
}

.floating-images-2 {
    position: absolute;
    z-index: 4;
    width: 100%;
    height: 100%;
    top: 0;
    pointer-events: none;
}

.floating-img-2 {
    position: absolute;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.floating-img-2.img-4 {
    width: 483px;
    height: 481px;
    left: 5%;
    bottom: 0;
}

.floating-img-2.img-5 {
    width: 443px;
    height: 423px;
    right: 5%;
    top: 20%;
}

/* Section Titles */
.section-title {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: #292929;
}

.section-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    line-height: 30px;
    color: #292929;
}

/* Values Section */
.values-section {
    padding: 100px 0;
}

.value-card {
    background-color: #FAFBFE;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.value-icon {
    width: 200px;
    height: 200px;
    overflow: hidden;
}

.value-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.value-card h3 {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: var(--text-dark);
}

.value-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #292929;
}

/* Questions Section */
.questions-section {
    min-height: 421px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 100px 0;
}

.questions-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
}

.questions-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.questions-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(51, 51, 51, 1) 50%, rgba(51, 51, 51, 0.8) 100%);
    z-index: 2;
}

.questions-section .container {
    z-index: 3;
}

.questions-section h2 {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
}

.questions-section p {
    color: #fff;
}

/* Footer */
.footer {
    background-color: #ffffff;
    color: #292929;
    padding: 40px 0 20px;
}

.footer-logo img {
    height: 40px;
}

.footer p {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 30px;
    color: #292929;
}

/* Email and Phone Number Styling */
.footer .d-flex.align-items-center p,
.footer .d-flex.align-items-start p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

.icon-box {
    min-width: 24px;
}

.icon-box svg {
    width: 24px;
    height: 24px;
}

.footer-title {
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    font-size: 20px;
    color: #292929;
}

.footer ul li a {
    color: #292929;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: var(--primary-red);
}

/* PS Digisolutions Link with Animated Gradient */
.ps-digisolutions-link {
    background: linear-gradient(90deg, #E30016, #102A83, #E30016, #102A83);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 3s ease infinite;
    font-weight: 500;
    display: inline-block;
    text-decoration: underline;
    text-decoration-color: #E30016;
    text-underline-offset: 3px;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.footer ul li a svg {
    flex-shrink: 0;
}

.social-icons a {
    display: inline-flex;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

.footer hr {
    border-color: #292929;
}

.payment-icons img {
    border-radius: 4px;
    object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 1199px) {
    .floating-img.img-1 {
        left: 5%;
        width: 180px;
        height: 270px;
    }

    .floating-img.img-2 {
        right: 10%;
        width: 150px;
        height: 225px;
    }

    .floating-img.img-3 {
        width: 130px;
        height: 195px;
    }

    .floating-img-2.img-4 {
        width: 350px;
        height: 350px;
    }

    .floating-img-2.img-5 {
        width: 320px;
        height: 305px;
    }
}

@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 42px;
        line-height: 60px;
    }

    .section-title {
        font-size: 42px;
    }

    .floating-img,
    .floating-img-2 {
        display: none;
    }

    .navbar-nav {
        text-align: center;
        gap: 0.5rem !important;
    }

    .navbar-nav .nav-link {
        font-size: 20px;
    }

    .questions-bg {
        width: 100%;
        opacity: 0.3;
    }

    .questions-overlay {
        background: rgba(51, 51, 51, 0.9);
    }
}

@media (max-width: 767px) {

    /* Offcanvas menu - column layout on mobile */
    .offcanvas-body {
        padding: 0 20px 20px 20px;
        display: block;
    }

    .offcanvas-body ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .offcanvas-body li {
        padding: 16px 0;
        border-bottom: 1px solid rgba(17, 17, 17, 0.12);
    }

    .offcanvas-body li:last-child {
        border-bottom: none;
    }

    /* Mobile padding */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Footer row gap */
    .footer .row {
        gap: 20px;
        row-gap: 20px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
    }

    .footer .row>[class*="col-"] {
        margin-top: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .footer .payment-icons {
        margin-top: 0 !important;
    }

    /* Hero section mobile layout adjustments */
    .hero-content {
        top: 0;
        transform: none;
        height: 100%;
        padding-top: 0;
    }

    .hero-content .container,
    .hero-content .row {
        height: 100%;
    }

    .hero-content .row {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .hero-text-col {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-img-col {
        flex: 0 0 auto;
        align-items: flex-end !important;
        padding-bottom: 20px;
    }

    /* 1. Hero section - fit content on mobile */
    .hero-section {
        height: 600px;
    }

    /* 2. About section - hug content, hide extra height */
    .about-section {
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden;
        position: relative;
        min-height: auto;
        width: 100%;
    }

    .about-image {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
        min-height: 587px;
        z-index: 0;
        overflow: hidden;
    }

    .about-image img {
        width: 100%;
        height: 100%;
        min-height: 587px;
        object-fit: cover;
        object-position: center;
        border-radius: 0;
        display: block;
        transform: scale(1.1);
    }

    .about-section .container {
        position: relative;
        z-index: 1;
        padding-left: 20px;
        padding-right: 20px;
    }

    .about-section .row {
        margin: 0;
        width: 100%;
    }

    .about-content-wrapper {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* 3. Values section - reduce padding to 40px */
    .values-section {
        padding: 40px 0;
    }

    .hero-content h1 {
        font-size: 32px;
        line-height: 45px;
    }

    .hero-content p {
        font-size: 16px;
        line-height: 24px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-description {
        font-size: 16px;
        line-height: 24px;
    }

    .btn-danger {
        font-size: 18px;
        padding: 10px 32px;
    }

    .footer p {
        font-size: 16px;
        line-height: 24px;
    }

    .footer-title {
        font-size: 16px !important;
    }

    .payment-icons {
        display: flex;
        gap: 10px;
    }

    .payment-icons img {
        height: 35px !important;
        width: auto;
    }
}

@media (max-width: 575px) {
    .navbar-brand img {
        height: 30px;
    }

    .hero-content h1 {
        font-size: 24px;
        line-height: 36px;
    }

    .section-title {
        font-size: 28px;
    }

    .value-icon {
        width: 150px;
        height: 150px;
    }
}

/* Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating-img,
.floating-img-2 {
    animation: float 6s ease-in-out infinite;
}

.floating-img.img-2 {
    animation-delay: 1s;
}

.floating-img.img-3 {
    animation-delay: 2s;
}

.floating-img-2.img-5 {
    animation-delay: 1.5s;
}

/* Floating Animation for Hero Element */
.floating-element {
    animation: float-hero 6s ease-in-out infinite;
}

@keyframes float-hero {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Additional utility classes */
.text-primary-blue {
    color: var(--primary-blue);
}

.text-primary-red {
    color: var(--primary-red);
}

.text-primary-green {
    color: var(--primary-green);
}

.bg-primary-blue {
    background-color: var(--primary-blue);
}

.bg-primary-red {
    background-color: var(--primary-red);
}

.bg-primary-green {
    background-color: var(--primary-green);
}