/*
    Main Stylesheet for ARRP Solutions LLP Website
    - Contains all shared styles for a consistent look and feel.
    - Based on the designs from index(7).html and careers.html.
*/

@import url('responsive-core.css');
@import url('menu.css');
@import url('preloader.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');
@import url('animations.css');

body {
    font-family: 'Poppins', sans-serif;
    color: var(--color-text-main);
    background-color: var(--color-bg);
}

/* Main Stylesheet for ARRP Solutions LLP Website */
/* Core functionality is now handled in responsive-core.css */

/* Note: Root variables and basic reset have been moved to responsive-core.css */
@import url('responsive-tables.css');


/* =================================
   HEADER & NAVIGATION
   Handled by menu.css and menu.js
   ================================= */

/* Placeholder for any style.css specific overrides if needed */

/* --- Header Adjustments --- */

.header-right-items {
    margin-left: auto;
    /* Pushes items to the right */
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* =================================
   HERO SECTION
   ================================= */

.h4-reorder {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-all-btn {
    background-color: var(--accent-orange);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    min-height: 100vh;
    padding: calc(var(--header-height) + 6rem) var(--container-padding) 6rem;
    background-size: cover;
    background-position: center;
    margin-top: 0;
}

/* Base style for all subpage heroes */
.subpage-hero,
.contact-hero,
.careers-hero,
.blog-hero-section,
.hero-heading,
.policy-hero {
    position: relative;
    min-height: 100vh;
    /* Consistent height matching software-development.html */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--header-height) + 6rem) var(--container-padding) 6rem;
    color: white !important;
    background-size: cover;
    background-position: center;
    margin-top: 0;
    overflow: hidden;
}

.subpage-hero::before,
.contact-hero::before,
.careers-hero::before,
.blog-hero-section::before,
.hero-heading::before,
.policy-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 34, 56, 0.85) 0%, rgba(255, 106, 61, 0.3) 100%);
    z-index: 1;
}

.subpage-hero-content,
.contact-hero-content,
.careers-hero-content,
.hero-content,
.blog-header,
.hero-heading>* {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-subtitle {
    display: inline-block;
    color: var(--accent-orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-title span {
    color: var(--accent-orange);
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem var(--container-padding);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--accent-orange);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #FFFFFF;
}

.hero-title span {
    background: linear-gradient(to right, var(--highlight-yellow), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: white !important;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    max-width: 800px;
    /* Increased for better fit */
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 106, 61, 0.3);
    min-width: 320px;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    background-color: #FF4500;
    /* A darker shade of orange */
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 106, 61, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: white;
    border-color: white;
    color: var(--primary-navy) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Stats section visibility handled in reorder.css */

.section-title span {
    color: var(--accent-orange) !important;
    -webkit-text-fill-color: initial;
}

input,
select,
textarea,
.form-group input,
.form-group select,
.form-group textarea {
    background-color: var(--color-surface);
    color: var(--color-text-main);
    border: 2px solid var(--color-border);
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

input:focus,
select:focus,
textarea:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-orange);
    background-color: var(--color-bg);
    box-shadow: 0 5px 15px rgba(255, 106, 61, 0.15);
    transform: translateY(-2px);
    outline: none;
}


/* =================================
   GENERAL CONTENT & SECTIONS
   ================================= */

.section-container {
    width: 100%;
    max-width: var(--container-width-max);
    margin: 0 auto;
    padding-inline: var(--container-padding);
    transition: var(--transition-theme);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--accent-orange);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary-navy);
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
    transition: color 0.3s ease;
}

.section-title span {
    background: linear-gradient(to right, var(--accent-orange), var(--highlight-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
    transition: color 0.3s ease;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2.5rem;
    align-items: stretch;
}

@media (min-width: 576px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange), var(--highlight-yellow));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 106, 61, 0.2);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.4rem;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-link {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2.5rem;
    align-items: stretch;
}

@media (min-width: 576px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.project-card {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    background: var(--bg-white);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

.project-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-orange), #FF4500);
    color: var(--bg-white);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.project-title {
    font-size: 1.3rem;
    color: var(--primary-navy);
    margin-bottom: 0.8rem;
}

.project-description {
    color: var(--color-text-muted);
    flex-grow: 1;
}

.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    margin-bottom: 2rem;
    padding-left: 2rem;
    position: relative;
}

.benefits-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-orange);
    font-size: 1.5rem;
    font-weight: 600;
}

.benefits-list h4 {
    color: var(--primary-navy);
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
}

.benefits-list p {
    color: var(--color-text-muted);
    margin: 0;
}

.dropdown-menu .has-dropdown>a::after {
    content: '>';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: var(--transition);
}

.dropdown-menu .has-dropdown:hover>a::after {
    transform: translateY(-50%) rotate(90deg);
    color: var(--accent-orange);
}

/* =================================
   BREADCRUMB NAVIGATION
   ================================= */
.breadcrumb-container {
    position: absolute;
    top: calc(var(--header-height) + 1rem);
    left: var(--container-padding);
    background-color: transparent !important;
    padding: 0;
    margin: 0;
    border: none !important;
    font-size: 0.85rem;
    z-index: 1000;
}

.breadcrumb-container a,
.breadcrumb-container span {
    color: #FFFFFF !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
}

.breadcrumb-container a:hover {
    color: var(--accent-orange) !important;
    text-shadow: 0 0 10px rgba(255, 106, 61, 0.4);
}

.breadcrumb-container span::after {
    content: '>';
    margin: 0 10px;
    opacity: 0.6;
    color: #FFFFFF;
    font-size: 0.8rem;
}

.breadcrumb-container span:last-child::after {
    display: none;
}

/* =================================
   GRID & CARD STYLES
   ================================= */

.grid-section {
    padding: 4rem var(--container-padding);
    background: var(--color-surface);
    transition: var(--transition-theme);
}

.grid-container {
    max-width: 1200px;
    margin: 0 auto;
}

.open-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* ============ CLIENTS SECTION ============ */
.slider {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.slide-track {
    display: flex;
    width: calc(250px * 16);
    animation: scroll 40s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 8));
    }
}

.slide {
    width: 250px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    height: 80px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* ============ TESTIMONIALS SECTION ============ */
.testimonial-section {
    background: linear-gradient(to bottom, #fdfdfd, #f8f9fa);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .testimonial-section {
    background: linear-gradient(to bottom, #fdfdfd, #f8f9fa);
    color: #1A2238;
}

[data-theme="dark"] .testimonial-section .section-title {
    color: #1A2238;
}

[data-theme="dark"] .testimonial-section .section-subtitle {
    color: var(--accent-orange);
}

[data-theme="dark"] .testimonial-card {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.04);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .testimonial-card .testimonial-text,
[data-theme="dark"] .testimonial-card .author-info p {
    color: #666666;
}

[data-theme="dark"] .testimonial-card .author-info h4 {
    color: #1A2238;
}

/* Background pattern for premium feel */
.testimonial-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--accent-orange) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    opacity: 0.03;
    pointer-events: none;
}

.testimonial-slider-container {
    position: relative;
    max-width: var(--container-width-max);
    margin: 0 auto;
    padding: 1rem;
    overflow: visible;
    /* Allow cards to lift without clipping */
}

.testimonial-slider {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 2rem);
    background-color: var(--bg-white);
    border-radius: 20px;
    padding: 2.2rem;
    margin: 0 1rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 106, 61, 0.15);
}

.testimonial-card::after {
    content: '“';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 5rem;
    color: var(--accent-orange);
    opacity: 0.05;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card .stars {
    color: #ffc107;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.testimonial-text {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 0.95rem;
    font-weight: 450;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1.25rem;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    margin-right: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.author-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.author-info p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 500;
}

.testimonial-controls {
    text-align: center;
    margin-top: 3.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.testimonial-prev,
.testimonial-next {
    background-color: var(--bg-white);
    color: var(--primary-navy);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background-color: var(--accent-orange);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(255, 106, 61, 0.2);
}

.testimonial-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background-color: var(--accent-orange);
    width: 24px;
    border-radius: 4px;
}

/* ============ CONTACT FORM SECTION ============ */
.quote-form {
    max-width: 900px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem 2rem;
}

@media (min-width: 768px) {
    .quote-form {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text-main);
    font-size: 0.9rem;
    transition: var(--transition-theme);
}

/* Enhanced Form Input Styles (Global) */
input,
select,
textarea,
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.95rem 1.1rem;
    border-radius: 8px;
    border: 2px solid var(--color-border);
    background-color: var(--color-surface);
    color: var(--color-text-main);
    font-size: 1rem;
    transition: all 0.3s ease, var(--transition-theme);
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

/* Placeholder Visibility Fix */
::placeholder {
    color: var(--color-text-muted);
    opacity: 0.7;
}

/* Animated Focus State */
input:focus,
select:focus,
textarea:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-orange);
    background-color: var(--color-bg);
    box-shadow: 0 5px 15px rgba(255, 106, 61, 0.15);
    transform: translateY(-2px);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.full-width {
    grid-column: 1 / -1;
}

/* =================================
   FOOTER
   ================================= */
footer {
    background: #1A2238 !important;
    color: rgba(255, 255, 255, 0.8);
    padding-top: 3rem;
    /* More compact */
    padding-bottom: 2rem;
    text-align: left;
    margin-top: auto;
}

.footer-content {
    width: 100%;
    max-width: var(--container-width-max);
    margin: 0 auto;
    padding-inline: var(--container-padding);
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    /* Custom widths for compactness */
    gap: 2rem;
    /* Reduced gap */
    margin-bottom: 3rem;
    align-items: start;
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 3rem;
    }
}

.footer-section h4 {
    color: white;
    font-size: 1.1rem;
    /* Slightly smaller */
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-branding {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-branding p {
    text-align: center;
    max-width: 300px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-orange);
    border-radius: 2px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.two-col-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1.5rem;
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--accent-orange);
    transform: translateX(5px);
}

/* Service Areas SEO Section */
.footer-additional-links {
    width: 100%;
    max-width: var(--container-width-max);
    margin: 0 auto 2rem;
    padding-inline: var(--container-padding);
    text-align: center;
}

.service-areas-seo {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    /* Slightly more visible border */
}

.service-areas-seo .seo-title {
    display: block;
    color: var(--highlight-yellow);
    /* Changed to yellow for better pop */
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
}

.service-areas-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.service-areas-container span {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.6);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    display: inline-block;
    white-space: nowrap;
}

.service-areas-container span:hover {
    background: var(--accent-orange);
    color: #fff;
    border-color: var(--accent-orange);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 106, 61, 0.3);
}

/* Subtle pulse animation on the title */
@keyframes titlePulse {
    0% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.8;
    }
}

.service-areas-seo .seo-title {
    animation: titlePulse 3s infinite ease-in-out;
}

/* Footer Bottom Row */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    font-size: 0.85rem;
    width: 100%;
    max-width: var(--container-width-max);
    margin: 0 auto;
    padding-inline: var(--container-padding);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    /* Left, Center, Right */
    align-items: center;
    gap: 1.5rem;
}

.footer-bottom-left p {
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.footer-bottom-center {
    display: flex;
    justify-content: center;
}

.social-media {
    display: flex;
    gap: 1rem;
}

.social-media a {
    color: #FFFFFF !important;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.social-media a:hover {
    background: var(--accent-orange);
    transform: translateY(-3px);
}

.footer-bottom-right {
    display: flex;
    justify-content: flex-end;
}

.footer-legal-links {
    display: flex;
    gap: 1.25rem;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--accent-orange);
}

@media (max-width: 768px) {
    .footer-bottom {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-bottom-left,
    .footer-bottom-center,
    .footer-bottom-right {
        justify-content: center;
    }
}



/* =================================
   UTILITIES
   ================================= */
#scrollToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    width: 50px;
    height: 50px;
    border: none;
    background-color: var(--accent-orange);
    color: var(--bg-white);
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(255, 106, 61, .3);
    transition: var(--transition);
    z-index: 100;
}

#scrollToTop:hover {
    background-color: #FF4500;
    transform: translateY(-5px);
}


/* =================================
   RESPONSIVE
   ================================= */

@media (max-width: 1024px) {
    .main-nav {
        display: contents;
        /* Reset flex container for mobile */
        margin-left: 0;
    }

    .nav-menu {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .header-right-items {
        gap: 0.5rem;
    }

    .quote-btn {
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }

    .logo span {
        display: none;
    }

    .dropdown-menu {
        position: static;
        display: none;
        background: rgba(0, 0, 0, 0.2);
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-item:hover .dropdown-menu {
        display: none;
    }

    /* Hide on hover on mobile */
    .nav-item.mobile-.open .dropdown-menu {
        display: block;
    }

    /* Show on click on mobile */
    .nav-item.mobile-open .dropdown-menu {
        display: block;
    }

    /* Show on click on mobile */
    .dropdown-menu li a {
        padding-left: 2.5rem !important;
    }

    .hero {
        min-height: 80vh;
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .services-grid,
    .projects-grid,
    .open-grid {
        grid-template-columns: 1fr;
    }

    .quote-form {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .two-column-layout {
        grid-template-columns: 1fr;
    }
}

/* =================================
   STANDARDIZED CARDS (Tech & Process)
   ================================= */
.tech-stack-grid,
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 992px) {

    .tech-stack-grid,
    .process-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.tech-card,
.process-card {
    background: var(--bg-white);
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.tech-card::before,
.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange), var(--highlight-yellow));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.tech-card:hover,
.process-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 106, 61, 0.2);
}

.tech-card:hover::before,
.process-card:hover::before {
    transform: scaleX(1);
}

.tech-card h4,
.process-card h3 {
    font-size: 1.35rem;
    color: var(--primary-navy);
    margin-bottom: 1rem;
    font-weight: 700;
}

.tech-card p,
.process-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

.process-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-orange);
    display: block;
}

/* Glow Effect for Tech Cards */
@keyframes tech-glow {
    0% {
        box-shadow: 0 0 5px rgba(255, 106, 61, 0);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 106, 61, 0.3);
    }

    100% {
        box-shadow: 0 0 5px rgba(255, 106, 61, 0);
    }
}

.tech-card.glowing {
    animation: tech-glow 3s infinite;
    border-color: var(--accent-orange);
}