/***************************************
 * TECHGNODE Website Styles
 * Table of Contents:
 * 
 * 1. Global Styles
 *    - Variables (Brand colors and theme settings)
 *    - Base Typography
 *    - Layout & Spacing
 *    - Components
 *      - Navigation
 *      - Buttons
 *      - Cards (Service, Why Choose, Principles)
 *      - Icons & Logos
 * 
 * 2. Page-Specific Styles
 *    - Home Page
 *      - Hero
 *      - Problem Statement
 *      - Exists
 *      - Services
 *      - Why Choose
 *    - Services Page
 *      - Hero
 *      - Intro
 *      - Services
 *    - About Page
 *      - Hero
 *      - Mission
 *      - Principles
 *    - Contact Page
 *      - Hero
 *      - Form
 * 
 * 3. Utilities & Media Queries
 *    - Helper Classes
 *    - Responsive Breakpoints (Desktop, Tablet, Mobile)
 *    - Print Styles
 ***************************************/

/***************************************
 * 1. Global Styles
 ***************************************/

/* Variables (Brand colors and theme settings) */
:root {
    /* Brand Colors */
    --bs-primary: #E4112A;
    --bs-primary-rgb: 239, 35, 60;
    --bs-primary-dark: #B40421;
    --bs-primary-dark-rgb: 217, 4, 41;
    
    /* Theme Colors */
    --color-dark: #28293E;
    --color-gray: #707C99;
    --color-light: #DAE4E7;
    --color-accent: #E4112A;
    --color-accent-dark: #B40421;
    --color-text: #28293E;
    --color-text-light: #707C99;
}

/* Base Typography */
body {
    color: var(--color-text);
    line-height: 1.6;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
}

.text-accent {
    color: var(--color-accent) !important;
}

.lead {
    font-weight: 400;
    line-height: 1.6;
}

/* Links */
a {
    color: var(--color-accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-accent-dark);
}

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

main {
    margin: 0;
    padding: 0;
    padding-top: 56px; /* Match the height of the navbar */
}

/* Layout & Spacing */
.section-padding {
    padding: 6rem 0;
}

@media (max-width: 991.98px) {
    .section-padding {
        padding: 5rem 0;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 3rem 0;
    }
}

.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 2rem;  /* Add vertical gutter to all rows */
}

/* Background Patterns */
.bg-cover {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-fixed {
    background-attachment: fixed;
}

.bg-gradient-light {
    background: linear-gradient(135deg, 
        rgba(43, 45, 66, 0.05), 
        rgba(141, 153, 174, 0.1)
    );
}

.bg-grid-pattern {
    background-color: rgba(255, 255, 255, 0.02);
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center center;
}

/* Components */
/* Navigation */
#mainNav {
    background-color: var(--color-dark);
    box-shadow: 0 2px 10px rgba(43, 45, 66, 0.15);
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}

#mainNav .navbar-brand {
    color: var(--color-light) !important;
    font-weight: bold;
}

#mainNav .nav-link {
    color: var(--color-light) !important;
    display: inline-block;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--color-light) !important;
    opacity: 1;
}

#mainNav .nav-link.active {
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
}

#mainNav .navbar-toggler {
    border-color: var(--color-light);
}

#mainNav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(237, 242, 244, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav {
    position: relative;
    z-index: 1;
}

/* Buttons */
.btn-expand {
    font-size: 0.875rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    text-align: center;
    font-weight: 600;
    padding: 0.5em 1.5em;
    border: 2px solid var(--color-accent);
    border-radius: 2px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--color-light) !important;
    text-decoration: none;
    transition: 0.3s ease all;
    z-index: 2;
    background: transparent;
    cursor: pointer;
}

.btn-expand:before {
    transition: 0.5s all ease;
    position: absolute;
    top: 0;
    left: 50%;
    right: 50%;
    bottom: 0;
    opacity: 0;
    content: '';
    background-color: var(--color-accent);
    z-index: -1;
}

.btn-expand:hover {
    color: var(--color-light) !important;
    border-color: var(--color-accent-dark);
}

.btn-expand:hover:before {
    transition: 0.5s all ease;
    left: 0;
    right: 0;
    opacity: 1;
}

.btn-expand:active {
    transform: scale(0.95);
}

.btn-primary:active,
.btn-outline-primary:active {
    transform: scale(0.9);
}

/* Cards */
.card {
    background-color: var(--color-light) !important;
    border: none !important;
    border-radius: var(--bs-border-radius) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(43, 45, 66, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(43, 45, 66, 0.15);
}

.card-body {
    padding: 2rem !important;
}

.card-title {
    color: var(--color-dark) !important;
    margin-bottom: 1rem !important;
    font-weight: 600;
}

.card-text {
    color: var(--color-dark) !important;
    opacity: 0.9;
    line-height: 1.6;
}

/* Why Choose Cards */
.card--why-choose {
    border-left: 4px solid var(--color-gray) !important;
    background: rgba(255, 255, 255, 0.92) !important;
}

.card--why-choose:hover {
    border-left-color: var(--color-dark) !important;
    transform: translateX(10px);
}

/* Principles Cards */
.card--principle {
    min-height: 300px;
}

.card--principle .card-title {
    font-size: 1.2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(40, 41, 62, 0.1);
}

/* Icons & Logos */
.icon-circle {
    width: 50px;
    height: 50px;
    background: var(--color-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(112, 124, 153, 0.2);
}

.icon-circle i {
    color: var(--color-light);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.navbar-logo {
    height: 40px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
}

.hero-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 0.5rem;
    filter: brightness(1.2);
}

/* Footer */
.footer {
    background-color: var(--color-dark);
    color: var(--color-light);
}

/***************************************
 * 2. Page-Specific Styles
 ***************************************/

/* Home Page */
/* Hero */
.hero {
    position: relative;
    background: url('../images/home/hero-bg.jpg') center/cover no-repeat fixed;
    color: var(--color-light);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        145deg,
        rgba(40, 41, 62, 0.94),
        rgba(40, 41, 62, 0.88)
    );
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero .section-heading {
    color: var(--color-light);
    margin-bottom: 1.5rem;
}

.hero .section-heading::after {
    display: none;
}

.hero .lead {
    color: var(--color-light);
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.6;
}

/* Problem Statement */
.problem-statement {
    position: relative;
    padding: 4rem 0;
    background: linear-gradient(180deg,
        rgba(40, 41, 62, 0.03),
        rgba(255, 255, 255, 0)
    );
}

.problem-statement::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        to right,
        rgba(40, 41, 62, 0),
        rgba(40, 41, 62, 0.08),
        rgba(40, 41, 62, 0)
    );
}

.problem-statement .section-heading {
    color: var(--color-dark);
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.problem-statement .lead {
    color: var(--color-dark);
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    position: relative;
    font-weight: 500 !important;
}

/* Problem Statement Image */
.problem-statement-img {
    height: 400px;
    width: 100%;
    background-image: url('../images/home/problem.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(43, 45, 66, 0.12);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.problem-statement-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(43, 45, 66, 0.15);
}

.problem-statement-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(40, 41, 62, 0.15),
        rgba(40, 41, 62, 0.35)
    );
    transition: opacity 0.3s ease;
}

.problem-statement-img:hover::after {
    opacity: 0.9;
}

.problem-statement .text-center.fw-bold {
    margin-top: 2.5rem;
    font-size: 1.2rem;
    color: var(--color-dark);
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
}

.problem-statement .text-center.fw-bold i {
    color: var(--color-dark);
    font-size: 2.5rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(112, 124, 153, 0.2);
    border-radius: 50%;
    opacity: 0.95;
    vertical-align: middle;
    margin-right: 0.75rem;
    transition: all 0.3s ease;
}

.problem-statement .text-center.fw-bold i:hover {
    background: rgba(112, 124, 153, 0.25);
    transform: translateY(-1px);
}

@media (max-width: 576px) {
    .problem-statement .text-center.fw-bold {
        font-size: 1.1rem;
        gap: 0.5rem;
    }
    
    .problem-statement .text-center.fw-bold i {
        font-size: 2rem;
        width: 3rem;
        height: 3rem;
    }
}

/* Feature List */
.feature-list {
    padding-left: 0;
    margin-top: 2rem;
}

.feature-list-item {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border-left: 3px solid var(--color-accent);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(43, 45, 66, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.feature-list-item:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(43, 45, 66, 0.08);
}

.feature-list-item p {
    color: var(--color-text);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

/* Exists Section */
.exists {
    position: relative;
    background: url('/images/home/exists.jpg') center/cover no-repeat fixed;
    isolation: isolate;  /* Create a new stacking context */
}

.exists::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        215deg,
        rgba(40, 41, 62, 0.95),
        rgba(40, 41, 62, 0.88)
    );
    z-index: 1;
}

.exists .container {
    position: relative;
    z-index: 2;
}

.exists .section-heading,
.exists .lead {
    color: var(--color-light);
}

.exists .lead {
    font-weight: 400;
}

/* Base Grid Item Component */
.icon-grid-item {
    padding: 1.5rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 4px rgba(112, 124, 153, 0.1);
}

.icon-grid-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 8px rgba(40, 41, 62, 0.15);
}

.icon-grid-item h3 {
    color: var(--color-dark);
    transition: color 0.3s ease;
}

.icon-grid-item p {
    color: var(--color-text-light);
    transition: color 0.3s ease;
}

/* Exists Section Variant */
.exists-grid-item {
    /* Override base styles */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.exists-grid-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

.exists-grid-item h3 {
    color: var(--color-light);
}

.exists-grid-item p {
    color: var(--color-light);
    opacity: 0.85;
}

/* Services Section */
.services-section {
    position: relative;
    background: url('/images/home/services-bg.jpg') center/cover no-repeat fixed;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        215deg,
        rgba(40, 41, 62, 0.85),
        rgba(40, 41, 62, 0.75)
    );
    z-index: 1;
}

.services-section .container {
    position: relative;
    z-index: 2;
}

.services-section .section-heading,
.services-section .lead {
    color: var(--color-light);
    font-weight: 400;
}

.services-section .card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: none !important;
    border-radius: 8px !important;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.services-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.services-section .card-title {
    color: var(--color-dark) !important;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.services-section .card-text {
    color: var(--color-text) !important;
    opacity: 0.9;
}

.services-section .btn-outline-primary {
    color: var(--color-accent) !important;
    border-color: var(--color-accent) !important;
    background: transparent !important;
    transition: all 0.3s ease;
    margin-top: auto;
}

.services-section .btn-outline-primary:hover {
    color: var(--color-light) !important;
    background: var(--color-accent) !important;
    border-color: var(--color-accent) !important;
}

.services-section .card:hover .service-card-img::after {
    background: linear-gradient(
        to bottom,
        rgba(40, 41, 62, 0.1),
        rgba(40, 41, 62, 0.3)
    );
}

.services-section .card:hover .service-card-img {
    transform: scale(1.05);
}

.services-section .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
}

/* Service Card Images */
.service-card-img {
    height: 280px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.service-validation-img {
    background-image: url('../images/home/validation.jpg');
}

.service-advisory-img {
    background-image: url('../images/home/advisory.jpg');
}

.service-training-img {
    background-image: url('../images/home/training.jpg');
}

/* Animated Slogan */
.animated-slogan {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-light);
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 2rem;
    transform: translateX(-65px);
}

.slogan-words {
    overflow: hidden;
    position: relative;
    height: 3rem;
    width: 260px;
    text-align: right;
    margin: 0 8px;
}

.slogan-end {
    white-space: nowrap;
}

.slogan-words::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(40, 41, 62, 0) 0%,
        rgba(40, 41, 62, 0) 100%
    );
    z-index: 20;
    pointer-events: none;
}

.slogan-word {
    display: block;
    height: 100%;
    color: var(--color-accent);
    animation: spin_words 40s infinite;
    font-weight: 600;
    background: transparent;
    text-align: right;
}

@keyframes spin_words {
    10% { transform: translateY(0); }
    12% { transform: translateY(-102%); }
    14% { transform: translateY(-100%); }
    18% { transform: translateY(-202%); }
    20% { transform: translateY(-200%); }
    24% { transform: translateY(-302%); }
    26% { transform: translateY(-300%); }
    30% { transform: translateY(-402%); }
    32% { transform: translateY(-400%); }
    36% { transform: translateY(-502%); }
    38% { transform: translateY(-500%); }
    42% { transform: translateY(-602%); }
    44% { transform: translateY(-600%); }
    48% { transform: translateY(-702%); }
    50% { transform: translateY(-700%); }
    54% { transform: translateY(-802%); }
    56% { transform: translateY(-800%); }
    60% { transform: translateY(-902%); }
    62% { transform: translateY(-900%); }
    66% { transform: translateY(-1002%); }
    68% { transform: translateY(-1000%); }
    72% { transform: translateY(-1102%); }
    74% { transform: translateY(-1100%); }
    78% { transform: translateY(-1202%); }
    80% { transform: translateY(-1200%); }
    84% { transform: translateY(-1302%); }
    86% { transform: translateY(-1300%); }
    100% { transform: translateY(-1300%); }
}

/* Best For Section */
.best-for-wrapper {
    background: linear-gradient(to right, rgba(40, 41, 62, 0.04), rgba(40, 41, 62, 0.02));
    border-radius: 12px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 24px rgba(40, 41, 62, 0.08), 0 2px 8px rgba(40, 41, 62, 0.04);
    transition: all 0.3s ease;
}

.best-for-wrapper:hover {
    box-shadow: 0 12px 32px rgba(40, 41, 62, 0.12), 0 4px 12px rgba(40, 41, 62, 0.06);
    transform: translateY(-2px);
}

.best-for-wrapper i {
    color: var(--color-accent) !important;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.best-for-wrapper .content {
    flex: 1;
}

.best-for-wrapper strong {
    color: var(--color-dark);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.best-for-wrapper p {
    color: var(--color-text);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 400;
}

/* Contact Form Submit Button */
.submit-button {
    font-family: inherit;
    font-size: 18px;
    background: var(--color-accent);
    color: var(--color-light);
    padding: 0.7em 1.5em;
    padding-left: 0.9em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    min-width: 250px;
    position: relative;
}

.submit-button span {
    display: block;
    margin-left: 0.6em;
    transition: all 0.3s ease-in-out;
}

.submit-button .svg-wrapper {
    position: absolute;
    left: 1.5em;
    transition: all 0.3s ease-in-out;
}

.submit-button svg {
    display: block;
    transform-origin: center center;
    transition: transform 0.3s ease-in-out;
}

.submit-button:hover .svg-wrapper {
    left: 50%;
    transform: translateX(-50%);
    animation: fly-1 0.6s ease-in-out infinite alternate;
}

.submit-button:hover svg {
    transform: rotate(45deg) scale(1.1);
}

.submit-button:hover span {
    transform: translateX(8em);
    opacity: 0;
}

@keyframes fly-1 {
    from {
        transform: translateX(-50%) translateY(0.1em);
    }
    to {
        transform: translateX(-50%) translateY(-0.1em);
    }
}

/* Social Icons */
.social-icon {
    text-decoration: none !important;
    display: inline-block;
    line-height: 1;
}

.social-icon i {
    font-size: 1.5rem;
}

/* Closing Statement */
.closing-statement {
    text-align: center;
    font-weight: 600;
    font-size: 1.4rem;
    margin-top: 3rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(
        to right,
        rgba(112, 124, 153, 0),
        rgba(112, 124, 153, 0.2),
        rgba(112, 124, 153, 0)
    );
    border-radius: 8px;
    color: var(--color-dark);
    line-height: 1.4;
    position: relative;
    border-bottom: 3px solid rgba(40, 41, 62, 0.1);
}

/* Why Choose */
.why-choose.bg-light {
    position: relative;
    background: url('../images/home/why.jpg') center/cover no-repeat fixed;
}

.why-choose.bg-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(141, 153, 174, 0.92),
        rgba(40, 41, 62, 0.88)
    );
    z-index: 0;
}

.why-choose .container {
    position: relative;
    z-index: 1;
}

.why-choose .section-heading,
.why-choose .lead {
    color: var(--color-light);
}

/* Services Page */
/* Hero */


/* Intro */


/* Services */


/* About Page */
/* Hero */
.about-hero {
    position: relative;
    background: url('../images/about/hero-bg.jpg') center/cover no-repeat fixed;
    color: var(--color-light);
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        145deg,
        rgba(40, 41, 62, 0.94),
        rgba(40, 41, 62, 0.88)
    );
    z-index: 1;
}

.about-hero .container {
    position: relative;
    z-index: 2;
}

/* Mission */
.mission {
    position: relative;
    padding: 4rem 0;
    background: linear-gradient(180deg,
        rgba(40, 41, 62, 0.03),
        rgba(255, 255, 255, 0)
    );
}

.mission .section-heading {
    color: var(--color-dark);
    margin-bottom: 2rem;
}

.mission .lead {
    color: var(--color-dark);
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 3rem;
}

/* Principles */
.principles {
    position: relative;
    background: url('../images/about/principles-bg.jpg') center/cover no-repeat fixed;
}

.principles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        215deg,
        rgba(40, 41, 62, 0.92),
        rgba(40, 41, 62, 0.85)
    );
    z-index: 1;
}

.principles .container {
    position: relative;
    z-index: 2;
}

.principles .section-heading,
.principles .lead {
    color: var(--color-light);
}

/* Contact Page */
/* Hero */
.contact-hero {
    position: relative;
    background: url('../images/contact/hero-bg.jpg') center/cover no-repeat fixed;
    color: var(--color-light);
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        145deg,
        rgba(40, 41, 62, 0.94),
        rgba(40, 41, 62, 0.88)
    );
    z-index: 1;
}

.contact-hero .container {
    position: relative;
    z-index: 2;
}

/* Form */
.contact-form {
    background: var(--color-light);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-form .form-control {
    border: 2px solid rgba(40, 41, 62, 0.1);
    padding: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 0.2rem rgba(228, 17, 42, 0.25);
}

.contact-form label {
    color: var(--color-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/***************************************
 * 3. Utilities & Media Queries
 ***************************************/

/* Helper Classes */
.text-accent {
    color: var(--color-accent) !important;
}

.fill-purple {
    fill: #EF233C !important;
}

/* Responsive Breakpoints */
@media (min-width: 992px) {
    #mainNav .nav-link {
        display: inline-block;
        width: auto;
    }
    
    .mission .feature-list {
        padding: 0 2rem;
    }
    
    .principles .card {
        min-height: 300px;
    }
    
    .services-section .card {
        min-height: 400px;
    }
}

@media (max-width: 991.98px) {
    #mainNav .nav-link {
        display: inline-block;
        width: auto;
    }
    
    .mission .lead {
        font-size: 1.1rem;
    }
    
    .principles .card {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .animated-slogan {
        font-size: 1.25rem;
        transform: none;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .slogan-words {
        height: 1.75rem;
        width: 165px;
        text-align: center;
        margin: 0 auto;
    }
    
    .slogan-word {
        text-align: center;
        margin: 0 auto;
        width: 100%;
    }
    
    .slogan-end {
        text-align: center;
        margin: 0 auto;
    }
    
    .closing-statement {
        font-size: 1.25rem;
        padding: 1.25rem;
        margin-top: 2.5rem;
    }
}

@media (max-width: 576px) {
    .section-heading {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .animated-slogan {
        font-size: 1.1rem;
    }
    
    .slogan-words {
        height: 1.5rem;
        width: 145px;
    }
    
    .closing-statement {
        font-size: 1.15rem;
        padding: 1rem;
        margin-top: 2rem;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: none !important;
        color: #000 !important;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline;
    }
    
    .container {
        max-width: none !important;
        width: 100% !important;
    }
}

/* Service Section Content */
.service-section .bg-white {
    color: var(--color-dark);
}

.service-section .bg-white h2,
.service-section .bg-white h3,
.service-section .bg-white h4,
.service-section .bg-white p,
.service-section .bg-white .lead {
    color: var(--color-dark) !important;
}

/* Service Section Button */
.btn-service {
    font-size: 0.875rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    text-align: center;
    font-weight: 600;
    padding: 0.75em 2em;
    border: 2px solid var(--color-accent);
    border-radius: 2px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--color-light) !important;
    text-decoration: none;
    transition: 0.3s ease all;
    z-index: 2;
    background: var(--color-accent);
    cursor: pointer;
}

.btn-service:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: var(--color-light) !important;
}

.btn-service:active {
    transform: scale(0.95);
}

/* Additional Utility Classes */
.bg-pattern {
    background-image: linear-gradient(rgba(40, 41, 62, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(40, 41, 62, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center center;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.gradient-overlay {
    position: relative;
}

.gradient-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        215deg,
        rgba(40, 41, 62, 0.85),
        rgba(40, 41, 62, 0.75)
    );
    z-index: 1;
}

.gradient-overlay > * {
    position: relative;
    z-index: 2;
}

/* Background Grid Pattern */
.bg-grid-pattern {
    background-image: linear-gradient(var(--color-gray) 1px, transparent 1px),
                      linear-gradient(90deg, var(--color-gray) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center center;
    background-color: rgba(237, 242, 244, 0.2);
    opacity: 0.05;
}

/* Homepage Services Section */
.services-home {
    position: relative;
    background: url('/images/home/services-bg.jpg') center/cover no-repeat fixed;
}

.services-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        215deg,
        rgba(40, 41, 62, 0.95),
        rgba(141, 153, 174, 0.88)
    );
    z-index: 1;
}

.services-home .container {
    position: relative;
    z-index: 2;
}

/* Homepage Services Typography */
.services-home .section-heading {
    color: var(--color-light);
    margin-bottom: 3.5rem;
}

.services-home .section-heading::after {
    background: var(--color-accent);
    width: 80px;
    height: 4px;
}

/* Homepage Services Cards */
.services-home .card {
    background: transparent !important;
    border: none !important;
    border-radius: 12px !important;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    max-width: 350px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.services-home .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(40, 41, 62, 0.25),
        rgba(40, 41, 62, 0.35)
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1;
}

.services-home .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.services-home .card-body {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    position: relative;
    z-index: 2;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.75),
        rgba(255, 255, 255, 0.65)
    );
    flex-grow: 1;
}

.services-home .card-text-wrapper {
    flex-grow: 1;
}

.services-home .card-title {
    color: var(--color-dark) !important;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.services-home .card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.services-home .card:hover .card-title::after {
    width: 60px;
}

.services-home .card-text {
    color: var(--color-text) !important;
    opacity: 0.85;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

/* Homepage Services Buttons */
.services-home .btn-outline-primary {
    color: var(--color-accent) !important;
    border: 2px solid var(--color-accent) !important;
    background: transparent !important;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    align-self: flex-start;
    margin-top: auto;
}

.services-home .btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    transition: left 0.3s ease;
    z-index: -1;
}

.services-home .btn-outline-primary:hover {
    color: var(--color-light) !important;
    border-color: var(--color-accent) !important;
}

.services-home .btn-outline-primary:hover::before {
    left: 0;
}

/* Homepage Services Images */
.services-home .service-card-img {
    height: 250px;
    position: relative;
    overflow: hidden;
}

/* Service Backgrounds */
.service-bg {
    position: relative;
    background: url('/images/services/services1.jpg') center/cover no-repeat fixed;
}

.service-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        215deg,
        rgba(40, 41, 62, 0.85),
        rgba(40, 41, 62, 0.75)
    );
    z-index: 1;
}

.service-bg .container {
    position: relative;
    z-index: 2;
}

.service-bg .bg-white {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Service Background 2 */
.service-bg-2 {
    position: relative;
    background: url('/images/services/services2.jpg') center/cover no-repeat fixed;
}

.service-bg-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        215deg,
        rgba(40, 41, 62, 0.85),
        rgba(40, 41, 62, 0.75)
    );
    z-index: 1;
}

.service-bg-2 .container {
    position: relative;
    z-index: 2;
}

.service-bg-2 .bg-white {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--color-gray);
}

/* Service Background 3 */
.service-bg-3 {
    position: relative;
    background: url('/images/services/services3.jpg') center/cover no-repeat fixed;
}

.service-bg-3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        175deg,
        rgba(40, 41, 62, 0.85),
        rgba(40, 41, 62, 0.75)
    );
    z-index: 1;
}

.service-bg-3 .container {
    position: relative;
    z-index: 2;
}

.service-bg-3 .bg-white {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--color-dark);
}

/* Service Background 4 */
.service-bg-4 {
    position: relative;
    background: url('/images/services/services4.jpg') center/cover no-repeat fixed;
}

.service-bg-4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        125deg,
        rgba(40, 41, 62, 0.85),
        rgba(40, 41, 62, 0.75)
    );
    z-index: 1;
}

.service-bg-4 .container {
    position: relative;
    z-index: 2;
}

.service-bg-4 .bg-white {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--color-text-light);
}

/* Service Card Feature Items */
.feature-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 3px solid transparent;
}

.service-bg .feature-item {
    border-left-color: var(--color-gray);
}

.service-bg-2 .feature-item {
    border-left-color: var(--color-gray);
}

.service-bg-3 .feature-item {
    border-left-color: var(--color-dark);
}

.service-bg-4 .feature-item {
    border-left-color: var(--color-text-light);
}

.feature-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Service Icons */
.service-icon-wrapper {
    padding: 2rem;
    border-radius: 50%;
    width: 140px;
    height: 140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(40, 41, 62, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-icon-wrapper i {
    color: var(--color-dark) !important;
    opacity: 0.9;
    font-size: 6rem;
}

.service-icon-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(40, 41, 62, 0.12);
}

/* Who We Serve Section */
.who-we-serve {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    perspective: 1000px;
    width: 100%;
    justify-content: center;
    justify-items: center;
    margin: 0 auto;
}

.serve-card {
    height: 300px;
    cursor: pointer;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    will-change: transform;
    width: 100%;
    max-width: 400px;
}

.serve-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.serve-card:hover .serve-card-inner {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

.serve-card-front, .serve-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.serve-card-front {
    background: linear-gradient(145deg, var(--color-dark), var(--color-dark) 60%);
    color: var(--color-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.serve-card-back {
    background: var(--color-light);
    color: var(--color-dark);
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.serve-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: rgba(228, 17, 42, 0.1);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.serve-card:hover .serve-icon {
    transform: scale(1.1);
}

.serve-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.serve-card-back p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Trust Indicators */
.trust-badge {
    padding: 1rem;
    background: var(--color-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Professional Data Visualization */
.stats-container {
    background: var(--color-dark);
    color: var(--color-light);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Icon Grid - Updated Colors and Effects - Moved to end to match style.css order */
.icon-grid-item {
    padding: 1.5rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 4px rgba(112, 124, 153, 0.1);
}

.icon-grid-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 8px rgba(40, 41, 62, 0.15);
}

.icon-grid-item h3 {
    color: var(--color-dark);
    transition: color 0.3s ease;
}

.icon-grid-item p {
    color: var(--color-text-light);
    transition: color 0.3s ease;
}

/* Exists Section Variant */
.exists-grid-item {
    /* Override base styles */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.exists-grid-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

.exists-grid-item h3 {
    color: var(--color-light);
}

.exists-grid-item p {
    color: var(--color-light);
    opacity: 0.85;
}

/* Section Heading Styles */
.section-heading {
    margin-bottom: 3rem;
    color: var(--color-dark);
    position: relative;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-accent);
}

/* CTA Section */
.cta-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, 
        rgba(141, 153, 174, 0.92), 
        rgba(40, 41, 62, 0.92)
    );
    border-radius: 0;
    color: var(--color-light);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        rgba(141, 153, 174, 0.85),
        rgba(40, 41, 62, 0.85)
    );
    opacity: 1;
    z-index: -1;
}

.cta-section .section-heading {
    color: var(--color-light);
}

.cta-section .section-heading::after {
    background: var(--color-light);
}

/* Security Icon */
.security-icon {
    display: none;
}

/* Home Page Hero Logo - Larger Size */
.home-hero-logo {
    max-width: 600px !important;
}

@media (max-width: 576px) {
    .home-hero-logo {
        max-width: 400px !important;
    }
} 