 /* ==============================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ============================================== */
:root {
    /* Color Palette */
    --primary: #3da9fc;
    --secondary: #094067;
    --accent: #3da9fc;
    --light: #d8eefe;
    --dark: #5f6c7b;

    /* Theme Colors */
    --bg-color: #ffffff;
    --text-color: #5a6775; /* Darkened for better contrast (was #5f6c7b) */
    --card-bg: #ffffff;
    --section-bg: #f8f9fa;
    --border-color: #e1e5e9;
    --shadow: rgba(0, 0, 0, 0.1);
    --navbar-bg: rgba(255, 255, 255, 0.95);

    /* Glass Morphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --glass-backdrop: blur(10px);

    /* Footer Colors */
    --footer-bg: #094067; /* Dark Blue */
    --footer-text: rgba(255, 255, 255, 0.75);

    /* Typography */
    --font-family: 'Inter', sans-serif;
    --font-size-base: 18px;
    --line-height-base: 1.6;

    /* Spacing */
    --section-padding: 80px;
    --border-radius: 10px;
    --border-radius-lg: 15px;
    --border-radius-xl: 20px;

    /* Transitions */
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);

    /* Service Card Background */
    --bg-image: none;

    /* Postcard Colors */
    --main-green: #79dd09;
    --main-green-rgb-015: rgba(121, 221, 9, 0.1);
    --main-yellow: #bdbb49;
    --main-yellow-rgb-015: rgba(189, 187, 73, 0.1);
    --main-red: #bd150b;
    --main-red-rgb-015: rgba(189, 21, 11, 0.1);
    --main-blue: #0076bd;
    --main-blue-rgb-015: rgba(0, 118, 189, 0.1);
}

/* ==============================================
   SERVICE CARDS STYLES
   ============================================== */
.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    overflow: hidden;
    height: 100%;
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(61, 169, 252, 0.2);
}

.service-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.service-card:hover .card-img-top {
    transform: scale(1.05);
}

.service-card .card-body {
    padding: 1.5rem;
}

.service-card .card-title {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-card .card-text {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.service-tags .badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
}

.service-card .card-footer {
    background: transparent;
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    text-align: center;
}

/* Service Details Toggle */
.service-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
    padding: 0 1.5rem;
    margin-top: 1rem;
}

.service-details.expanded {
    max-height: 500px; /* Adjust based on content */
    padding: 1rem 1.5rem;
}

.service-sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-sub-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.service-sub-list li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.learn-more-btn {
    position: relative;
    transition: all 0.3s ease;
}

.learn-more-btn::after {
    content: "▼";
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.learn-more-btn.expanded::after {
    transform: rotate(180deg);
}

.service-card .card-footer .btn {
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all var(--transition-fast);
}

.service-card .card-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ==============================================
   DARK MODE THEME
   ============================================== */
body.dark-mode {
    --primary: #42a5f5; /* A slightly brighter blue for dark backgrounds */
    --secondary: #e0e0e0; /* Light gray for headings */
    --light: #2c3e50;
    --dark: #bdc3c7; /* Lighter text for nav links */

    --bg-color: #0d2438; /* Deep blue background */
    --text-color: #bdc3c7; /* Softer white for body text */
    --card-bg: #1b2f45; /* Slightly lighter blue for cards */
    --section-bg: #142b41; /* A slightly lighter blue than the main bg for better section separation */
    --border-color: #2c3e50;
    --shadow: rgba(0, 0, 0, 0.2);
    --navbar-bg: rgba(27, 47, 69, 0.95); /* Dark, semi-transparent navbar */

    --glass-bg: rgba(0, 0, 0, 0.2);

    /* Footer Colors - Dark Mode */
    --footer-bg: #0a1f30; /* Very dark blue, darker than main bg */
    --footer-text: rgba(224, 224, 224, 0.7);

    /* Override Bootstrap's light background for dark mode */
    .bg-light {
        background-color: var(--section-bg) !important;
    }
}

/* ==============================================
   ENGINEERING EXCELLENCE SECTION
   ============================================== */
.engineering-excellence-section {
    background: linear-gradient(135deg, var(--bg-color) 0%, rgba(61, 169, 252, 0.02) 100%);
    position: relative;
    overflow: hidden;
}

.engineering-excellence-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(61, 169, 252, 0.03) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(9, 64, 103, 0.02) 0%, transparent 50%);
    z-index: 0;
}

/* Certification Badges */
.certification-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

.badge-item {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: 0 8px 25px var(--shadow);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.badge-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    transition: width var(--transition-normal);
}

.badge-item:hover::before {
    width: 6px;
}

.badge-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(61, 169, 252, 0.15);
}

.badge-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(61, 169, 252, 0.1), rgba(61, 169, 252, 0.05));
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.badge-item:hover .badge-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(61, 169, 252, 0.2), rgba(61, 169, 252, 0.1));
}

.badge-content h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.badge-content p {
    font-size: 0.85rem;
    color: var(--text-color);
    margin: 0;
    line-height: 1.4;
}

.engineering-metrics {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.metric-item {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.metric-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    transition: width var(--transition-normal);
}

.metric-item:hover::before {
    width: 6px;
}

.metric-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(61, 169, 252, 0.15);
}

.metric-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(61, 169, 252, 0.1), rgba(61, 169, 252, 0.05));
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.metric-item:hover .metric-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(61, 169, 252, 0.2), rgba(61, 169, 252, 0.1));
}

.metric-content {
    position: relative;
    z-index: 1;
}

.metric-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.metric-description {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.metric-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Engineering Process Visualization */
.engineering-process-viz {
    position: relative;
    z-index: 1;
}

.process-diagram {
    background: var(--card-bg);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    box-shadow: 0 15px 35px var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.process-diagram::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(61, 169, 252, 0.02), transparent);
    border-radius: inherit;
    z-index: 0;
}

.engineering-svg {
    width: 100%;
    height: auto;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.process-node {
    cursor: pointer;
    transition: all var(--transition-fast);
}

.process-node:hover {
    r: 35;
    filter: drop-shadow(0 0 10px rgba(61, 169, 252, 0.5));
}

.process-label {
    pointer-events: none;
    font-family: var(--font-family);
    font-weight: 600;
    fill: var(--text-color);
}

.process-arrow {
    stroke-dasharray: 5;
    animation: flow 2s linear infinite;
}

@keyframes flow {
    to {
        stroke-dashoffset: -10;
    }
}

.tech-params {
    fill: var(--section-bg);
    stroke: var(--border-color);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.params-title {
    fill: var(--secondary);
    font-family: var(--font-family);
    font-weight: 700;
}

.param-value {
    fill: var(--text-color);
    font-family: var(--font-family);
    font-weight: 500;
}

.btn-engineering-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: 0 8px 25px rgba(61, 169, 252, 0.3);
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.btn-engineering-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-engineering-cta:hover::before {
    left: 100%;
}

.btn-engineering-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(61, 169, 252, 0.4);
}

.btn-engineering-cta i {
    margin-left: 0.5rem;
    transition: transform var(--transition-fast);
}

.btn-engineering-cta:hover i {
    transform: translateX(4px);
}

/* Parameter Text Animation */
@keyframes param-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.param-anim {
    opacity: 0;
    animation: param-fade-in 0.6s ease-out forwards;
    animation-delay: calc(var(--delay, 0) * 1s);
}

/* ==============================================
   STP SOLUTIONS SECTION
   ============================================== */
.stp-solutions-section {
    background: var(--section-bg);
    position: relative;
    overflow: hidden;
}

.stp-solutions-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(61, 169, 252, 0.02), rgba(9, 64, 103, 0.02));
    z-index: 0;
}

.stp-process-flow {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.process-stage {
    background: var(--card-bg);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.process-stage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    transition: width var(--transition-normal);
}

.primary-stage::before { background: linear-gradient(180deg, #3da9fc, #2a7ab0); }
.secondary-stage::before { background: linear-gradient(180deg, #4caf50, #2e7d32); }
.tertiary-stage::before { background: linear-gradient(180deg, #ff9800, #e65100); }

.process-stage:hover::before {
    width: 6px;
}

.process-stage:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(61, 169, 252, 0.15);
}

.stage-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(61, 169, 252, 0.1), rgba(61, 169, 252, 0.05));
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.primary-stage .stage-icon { background: linear-gradient(135deg, rgba(61, 169, 252, 0.1), rgba(61, 169, 252, 0.05)); }
.secondary-stage .stage-icon { background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05)); color: #4caf50; }
.tertiary-stage .stage-icon { background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), rgba(255, 152, 0, 0.05)); color: #ff9800; }

.process-stage:hover .stage-icon {
    transform: scale(1.1) rotate(5deg);
}

.primary-stage:hover .stage-icon { background: linear-gradient(135deg, rgba(61, 169, 252, 0.2), rgba(61, 169, 252, 0.1)); }
.secondary-stage:hover .stage-icon { background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.1)); }
.tertiary-stage:hover .stage-icon { background: linear-gradient(135deg, rgba(255, 152, 0, 0.2), rgba(255, 152, 0, 0.1)); }

.stage-content {
    position: relative;
    z-index: 1;
}

.stage-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.stage-description {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.stage-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.metric {
    background: var(--light);
    color: var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

/* STP Benefits Card */
.stp-benefits-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
    height: fit-content;
}

.benefits-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.5;
}

.benefits-list li i {
    color: #4caf50;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.compliance-badge {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    margin: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

.compliance-badge i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.btn-stp-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: 0 8px 25px rgba(61, 169, 252, 0.3);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-stp-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-stp-cta:hover::before {
    left: 100%;
}

.btn-stp-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(61, 169, 252, 0.4);
}

.btn-stp-cta i {
    margin-left: 0.5rem;
    transition: transform var(--transition-fast);
}

.btn-stp-cta:hover i {
    transform: translateX(4px);
}

/* Responsive Design for New Sections */
@media (max-width: 992px) {
    .engineering-metrics,
    .stp-process-flow {
        gap: 1.5rem;
    }

    .metric-item,
    .process-stage,
    .stp-benefits-card {
        padding: 1.5rem;
    }

    .metric-title,
    .stage-title {
        font-size: 1.1rem;
    }

    .engineering-svg {
        max-width: 400px;
    }

    .process-diagram {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .engineering-excellence-section .row > .col-lg-6:first-child,
    .engineering-excellence-section .row > .col-lg-6:last-child {
        margin-bottom: 3rem;
    }

    .stp-solutions-section .row > .col-lg-8,
    .stp-solutions-section .row > .col-lg-4 {
        margin-bottom: 2rem;
    }

    .metric-item,
    .process-stage,
    .stp-benefits-card {
        padding: 1.25rem;
    }

    .metric-icon,
    .stage-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .engineering-svg {
        max-width: 300px;
    }

    .process-diagram {
        padding: 1rem;
    }

    .benefits-list li {
        font-size: 0.85rem;
    }

    .compliance-badge {
        padding: 0.75rem;
    }

    .btn-engineering-cta,
    .btn-stp-cta {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .metric-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .stage-metrics {
        flex-direction: column;
        gap: 0.5rem;
    }

    .metric {
        align-self: flex-start;
    }

    .engineering-svg {
        max-width: 250px;
    }

    .process-diagram {
        padding: 0.75rem;
    }

    .tech-params {
        width: 350px;
        height: 80px;
    }

    .param-value {
        font-size: 10px;
    }

    .params-title {
        font-size: 12px;
    }
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 18px;
}

        .lead {
            font-size: 1.2rem;
            font-weight: 300;
            line-height: 1.6;
            margin-top: 1rem;
        }

        /* Generic class for pages with a fixed navbar to prevent content from hiding underneath */
        .page-content {
            padding-top: 100px;
        }


        a {
            text-decoration: none;
        }
        
        h1, h2, h3, h4, h5, h6 {
            color: var(--secondary);
            font-weight: 700;
        }
        
        .navbar {
            /* Initial state: transparent and larger padding */
            background-color: var(--navbar-bg);
            box-shadow: 0 2px 15px var(--shadow);
            padding: 25px 0;
            transition: background-color var(--transition-fast), box-shadow var(--transition-fast), padding var(--transition-fast);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(61, 169, 252, 0.1);
        }

        /* Use flexbox to distribute items in the container */
        .navbar .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .navbar.scrolled {
            /* Scrolled state: solid background, smaller padding, and shadow */
            background-color: var(--navbar-bg);
            /* Add frosted glass effect */
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-shadow: 0 2px 15px var(--shadow);
            padding: 10px 0;
            border-bottom: 1px solid rgba(61, 169, 252, 0.15);
        }

        .navbar-brand img {
            height: 50px;
            transition: height var(--transition-fast), filter var(--transition-fast), transform var(--transition-fast);
            filter: brightness(1.1) contrast(1.1);
        }

        .navbar.scrolled .navbar-brand img {
            height: 40px;
            filter: brightness(1) contrast(1);
        }

        .navbar-brand:hover img {
            transform: scale(1.05);
        }

        .nav-link {
            color: var(--dark);
            font-weight: 600;
            position: relative;
            padding: 12px 16px;
            transition: all var(--transition-fast);
            font-size: 1rem;
            letter-spacing: 0.5px;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            border-radius: 8px;
            margin: 0 2px;
        }

        .nav-icon {
            font-size: 0.9rem;
            opacity: 0.8;
            transition: all var(--transition-fast);
        }

        .nav-link:hover .nav-icon {
            opacity: 1;
            transform: scale(1.1) rotate(5deg);
        }

        /* Use gap for spacing instead of margin */
        .navbar-nav {
            gap: 0.5rem;
        }

        /* Enhanced underline effect for active/hovered link */
        .nav-link::after {
            content: '';
            position: absolute;
            bottom: 8px;
            left: 50%;
            width: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 2px;
            transform: translateX(-50%);
        }

        .nav-link::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(61, 169, 252, 0.08), rgba(61, 169, 252, 0.04));
            opacity: 0;
            transition: opacity var(--transition-fast);
            border-radius: inherit;
            z-index: -1;
        }

        .nav-link:hover {
            color: var(--primary);
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(61, 169, 252, 0.15);
        }

        .nav-link:hover::before {
            opacity: 1;
        }

        .nav-link:hover::after {
            width: 80%;
        }

        /* Enhanced active state */
        .nav-link.active {
            color: var(--primary);
            background: linear-gradient(135deg, rgba(61, 169, 252, 0.1), rgba(61, 169, 252, 0.05));
            box-shadow: 0 4px 15px rgba(61, 169, 252, 0.1);
        }

        .nav-link.active::after {
            width: 100%;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
        }

        .nav-link.active::before {
            opacity: 0.6;
        }

        /* Enhanced focus state for accessibility */
        .nav-link:focus-visible {
            color: var(--primary);
            outline: 3px solid var(--primary);
            outline-offset: 2px;
            border-radius: 8px;
            box-shadow: 0 0 0 6px rgba(61, 169, 252, 0.2);
        }

        .nav-link:focus-visible::after {
            width: 80%;
        }

        /* Enhanced Dropdown Styling */
        .dropdown-menu {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: var(--border-radius-lg);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            padding: 0.5rem 0;
            margin-top: 0.5rem;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            animation: dropdownFadeIn 0.3s ease-out;
        }

        @keyframes dropdownFadeIn {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .dropdown-item {
            color: var(--text-color);
            font-weight: 500;
            padding: 0.75rem 1.5rem;
            transition: all var(--transition-fast);
            position: relative;
            overflow: hidden;
        }

        .dropdown-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(61, 169, 252, 0.1), transparent);
            transition: left 0.5s ease;
        }

        .dropdown-item:hover::before {
            left: 100%;
        }

        .dropdown-item:hover {
            background: transparent;
            color: var(--primary);
            transform: translateX(5px);
        }

        .dropdown-item:focus-visible {
            outline: 2px solid var(--primary);
            outline-offset: -2px;
        }

        .nav-cta-btn {
            border-radius: 25px;
            padding: 8px 20px;
            font-weight: 600;
            transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            border: none;
        }

        .nav-cta-btn:hover {
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 5px 15px rgba(61, 169, 252, 0.4);
            background: linear-gradient(135deg, var(--secondary), var(--primary));
        }

        body.dark-mode .nav-cta-btn {
            box-shadow: 0 5px 15px rgba(66, 165, 245, 0.2);
        }

        /* Avoids unwanted underlines on some elements without using the expensive universal selector */
        a, a:hover, a:focus {
            text-decoration-color: transparent;
        }



        .navbar-actions {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .btn-icon {
            background: transparent;
            border: 1px solid var(--border-color);
            color: var(--text-color);
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all var(--transition-fast);
            position: relative;
            overflow: hidden;
        }

        .btn-icon::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(61, 169, 252, 0.2), transparent);
            transition: left 0.5s ease;
        }

        .btn-icon:hover::before {
            left: 100%;
        }

        .btn-icon:hover {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 5px 15px rgba(61, 169, 252, 0.3);
        }

        .nav-user-greeting {
            color: var(--text-color);
            margin-right: 15px;
            font-weight: 500;
        }

        .nav-user-greeting #user-name {
            font-weight: 700;
            color: var(--primary);
        }

        /* ==============================================
           HOMEPAGE-SPECIFIC NAVBAR STYLES
           ============================================== */
        /* Only apply transparent navbar on the homepage */
        body.home .navbar:not(.scrolled) {
            background-color: rgba(255, 255, 255, 0.1);
            box-shadow: none;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
        }

        body.home .navbar:not(.scrolled) .nav-link {
            color: white;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        }

        body.home .navbar:not(.scrolled) .btn-icon {
            border-color: rgba(255, 255, 255, 0.5);
            color: white;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        body.home .navbar:not(.scrolled) .btn-icon:hover {
            background-color: rgba(255, 255, 255, 0.2);
            border-color: white;
        }

/* Hide desktop nav on mobile */
@media (max-width: 991.98px) {
    /* On mobile, the default bootstrap collapse behavior is what we want */
    .navbar-collapse {
        display: none; /* This will be handled by the mobile overlay now */
    }
    .navbar-actions {
        display: none; /* Hide desktop actions on mobile */
    }

    /* Accessibility: Add focus style for the hamburger toggler */
    .navbar-toggler:focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: 2px;
    }
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image: url('images/Back1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    aspect-ratio: 16 / 9;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 64, 103, 0.6); /* Dark blue overlay */
    z-index: -1;
}

/* Particle.js container */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: var(--secondary); /* Dark blue background */
    background-image: linear-gradient(160deg, var(--secondary) 0%, var(--primary) 100%);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    z-index: -2;
}
        .hero-content {
            max-width: 800px;
            margin: 0 auto;
            z-index: 1;
            /* Added for scroll animation */
            will-change: transform, opacity;
            transition: transform 0.1s linear, opacity 0.1s linear;
        }
        
        /* Staggered animation for hero elements */
        .hero-anim-item {
            opacity: 0;
            transform: translateY(40px);
            transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1), transform 1s cubic-bezier(0.19, 1, 0.22, 1);
        }
        .hero-anim-item.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* ==============================================
           INDUSTRIES SERVED SECTION
           ============================================== */
        .industries-served-section {
            background-color: var(--bg-color);
        }

        .industry-card-inner::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.1), transparent 40%);
            border-radius: inherit;
            opacity: 0;
            transition: opacity var(--transition-normal);
            z-index: 1;
        }

        .industry-card-inner {
            background: var(--card-bg);
            padding: 40px 20px;
            border-radius: var(--border-radius-lg);
            border: 1px solid var(--border-color);
            height: 100%;
            position: relative;
            overflow: hidden;
            z-index: 2;
            transition: all var(--transition-normal);
            transform: rotateX(var(--rotate-x, 0)) rotateY(var(--rotate-y, 0));
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .industry-card {
            text-align: center;
            box-shadow: 0 10px 30px var(--shadow);
            transition: all var(--transition-normal);
            height: 100%;
            border-radius: var(--border-radius-lg);
            transform-style: preserve-3d;
            perspective: 1000px;
            background: transparent; /* Parent is now a container for the 3D effect */
            border: none;
            padding: 0;
        }

        .industry-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(61, 169, 252, 0.2);
        }

        .industry-icon {
            font-size: 3rem;
            color: var(--primary);
            margin-bottom: 20px;
            transition: transform var(--transition-fast);
            position: relative; z-index: 2;
        }

        .industry-card:hover .industry-card-inner .industry-icon {
            transform: scale(1.15) rotate(-5deg);
        }

        .industry-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--secondary);
            margin: 0;
            transition: color var(--transition-fast);
            position: relative; z-index: 2;
        }

        .industry-card:hover .industry-card-inner .industry-title {
            color: var(--primary);
        }

        .industry-badge {
            background-color: var(--primary);
            color: white;
            font-size: 0.75rem;
            font-weight: 600;
            padding: 4px 10px;
            border-radius: 12px;
            margin-top: 15px;
            opacity: 0;
            transform: translateY(10px);
            transition: opacity 0.3s ease, transform 0.3s ease;
            position: relative; z-index: 2;
        }

        .industry-card:hover .industry-card-inner .industry-badge {
            opacity: 1;
            transform: translateY(0);
        }

        .industry-card:hover .industry-card-inner::before {
            opacity: 1;
        }

        @media (max-width: 768px) {
            .industry-card-inner { padding: 25px 15px; }
            .industry-icon { font-size: 2.5rem; }
            .industry-title { font-size: 1rem; }
        }

        /* New Industry Card Styles */
        .industry-card-new {
            display: flex;
            flex-direction: column;
            background: linear-gradient(145deg, var(--card-bg), var(--section-bg));
            border-radius: var(--border-radius-lg);
            box-shadow: 0 8px 25px var(--shadow);
            border: 1px solid var(--border-color);
            transition: all var(--transition-normal);
            text-decoration: none;
            color: inherit;
            overflow: hidden;
            height: 100%;
            position: relative;
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 0.6s ease-out forwards;
        }

        .industry-card-new:hover {
            transform: translateY(-12px) scale(1.03);
            box-shadow: 0 25px 45px rgba(61, 169, 252, 0.35);
            text-decoration: none;
            color: inherit;
            background: linear-gradient(145deg, var(--card-bg), var(--light));
        }

        .industry-card-new:hover::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(61, 169, 252, 0.05), rgba(61, 169, 252, 0.02));
            z-index: 1;
        }

        .industry-title-new {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--secondary);
            margin-bottom: 15px;
            text-align: center;
            padding: 20px 20px 0;
            position: relative;
            z-index: 2;
        }

        .industry-icon-new {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, rgba(61, 169, 252, 0.15), rgba(61, 169, 252, 0.08));
            border-radius: 50%;
            margin: 0 auto 20px;
            transition: all var(--transition-fast);
            position: relative;
            z-index: 2;
        }

        .industry-card-new:hover .industry-icon-new {
            transform: scale(1.15) rotate(10deg);
            background: linear-gradient(135deg, rgba(61, 169, 252, 0.25), rgba(61, 169, 252, 0.15));
            box-shadow: 0 8px 20px rgba(61, 169, 252, 0.3);
        }

        .industry-icon-new i {
            font-size: 2rem;
            color: var(--primary);
            transition: color var(--transition-fast);
        }

        .industry-card-new:hover .industry-icon-new i {
            color: var(--accent);
        }

        .industry-content-new {
            padding: 0 20px 20px;
            position: relative;
            z-index: 2;
            flex-grow: 1;
        }

        .industry-content-new p {
            font-size: 0.95rem;
            color: var(--text-color);
            line-height: 1.6;
            margin: 0;
            text-align: justify;
        }

        /* Staggered Animation Classes */
        .industry-card-new:nth-child(1) { animation-delay: 0.1s; }
        .industry-card-new:nth-child(2) { animation-delay: 0.2s; }
        .industry-card-new:nth-child(3) { animation-delay: 0.3s; }
        .industry-card-new:nth-child(4) { animation-delay: 0.4s; }
        .industry-card-new:nth-child(5) { animation-delay: 0.5s; }
        .industry-card-new:nth-child(6) { animation-delay: 0.6s; }
        .industry-card-new:nth-child(7) { animation-delay: 0.7s; }
        .industry-card-new:nth-child(8) { animation-delay: 0.8s; }
        .industry-card-new:nth-child(9) { animation-delay: 0.9s; }
        .industry-card-new:nth-child(10) { animation-delay: 1.0s; }
        .industry-card-new:nth-child(11) { animation-delay: 1.1s; }
        .industry-card-new:nth-child(12) { animation-delay: 1.2s; }
        .industry-card-new:nth-child(13) { animation-delay: 1.3s; }
        .industry-card-new:nth-child(14) { animation-delay: 1.4s; }
        .industry-card-new:nth-child(15) { animation-delay: 1.5s; }
        .industry-card-new:nth-child(16) { animation-delay: 1.6s; }
        .industry-card-new:nth-child(17) { animation-delay: 1.7s; }

        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Search and Filter Styles */
        .industry-search-container {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            max-width: 500px;
            margin: 0 auto;
        }

        .industry-search-input {
            flex: 1;
            border-radius: 25px;
            border: 2px solid var(--border-color);
            padding: 12px 20px;
            font-size: 1rem;
            transition: all var(--transition-fast);
        }

        .industry-search-input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(61, 169, 252, 0.1);
            outline: none;
        }

        .clear-search-btn {
            border-radius: 25px;
            padding: 12px 20px;
            font-weight: 600;
            transition: all var(--transition-fast);
        }

        .clear-search-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(61, 169, 252, 0.3);
        }

        /* Testimonial Styles */
        .testimonial-card {
            background: var(--card-bg);
            border-radius: var(--border-radius-lg);
            padding: 30px;
            box-shadow: 0 10px 30px var(--shadow);
            border: 1px solid var(--border-color);
            transition: all var(--transition-normal);
            height: 100%;
            position: relative;
            overflow: hidden;
        }

        .testimonial-card::before {
            content: '"';
            position: absolute;
            top: 20px;
            left: 20px;
            font-size: 4rem;
            color: rgba(61, 169, 252, 0.1);
            font-family: 'Georgia', serif;
            z-index: 0;
        }

        .testimonial-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 40px rgba(61, 169, 252, 0.2);
        }

        .testimonial-content {
            position: relative;
            z-index: 1;
            margin-bottom: 20px;
        }

        .testimonial-content p {
            font-size: 1rem;
            color: var(--text-color);
            line-height: 1.6;
            font-style: italic;
            margin: 0;
        }

        .testimonial-author {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .author-info h5 {
            font-size: 1.1rem;
            color: var(--secondary);
            margin-bottom: 5px;
            font-weight: 600;
        }

        .author-info span {
            font-size: 0.9rem;
            color: var(--text-color);
            font-weight: 500;
        }

        /* Enhanced CTA Styles */
        .cta-features {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 20px;
        }

        .cta-features .feature-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 1rem;
            color: white;
            font-weight: 500;
        }

        .cta-features .feature-item i {
            color: #4CAF50;
            font-size: 1.2rem;
        }

        .cta-form {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: var(--border-radius-lg);
            padding: 30px;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .cta-form h4 {
            color: white;
            margin-bottom: 20px;
            font-weight: 600;
        }

        .cta-form .form-control {
            background: rgba(255, 255, 255, 0.9);
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: var(--text-color);
            border-radius: 8px;
            padding: 12px 15px;
            margin-bottom: 15px;
        }

        .cta-form .form-control:focus {
            background: white;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(61, 169, 252, 0.2);
        }

        .cta-form .form-control::placeholder {
            color: #6c757d;
        }

        @media (max-width: 768px) {
            .industry-card-new {
                margin-bottom: 20px;
            }

            .industry-title-new {
                font-size: 1.1rem;
                padding: 15px 15px 0;
            }

            .industry-icon-new {
                width: 60px;
                height: 60px;
                margin-bottom: 15px;
            }

            .industry-icon-new i {
                font-size: 1.5rem;
            }

            .industry-content-new {
                padding: 0 15px 15px;
            }

            .industry-content-new p {
                font-size: 0.9rem;
            }

            .industry-search-container {
                flex-direction: column;
                gap: 15px;
            }

            .industry-search-input {
                width: 100%;
            }

            .cta-features {
                flex-direction: column;
                gap: 10px;
            }

            .cta-form {
                margin-top: 30px;
            }
        }

        /* Tooltip Styles */
        .industry-tooltip {
            position: absolute;
            background: var(--secondary);
            color: white;
            padding: 10px 15px;
            border-radius: var(--border-radius);
            font-size: 0.85rem;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s, visibility 0.3s;
            z-index: 10;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            margin-bottom: 10px;
        }

        .industry-card-new:hover .industry-tooltip {
            opacity: 1;
            visibility: visible;
        }

        .industry-tooltip::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            border: 5px solid transparent;
            border-top-color: var(--secondary);
        }

        /* ==============================================
           STATS COUNTER SECTION
           ============================================== */
        #stats {
            background: var(--section-bg);
            padding: 60px 0;
        }

        .stat-item {
            background: var(--card-bg);
            padding: 40px 20px;
            border-radius: var(--border-radius-lg);
            box-shadow: 0 10px 30px var(--shadow);
            border: 1px solid var(--border-color);
            transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow var(--transition-normal);
            text-align: center;
            /* For staggered animation */
            opacity: 0;
            transform: translateY(30px);
        }

        /* This class is added by JavaScript when the section is scrolled into view */
        .stat-item.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .stat-item:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(61, 169, 252, 0.2);
        }

        .stat-icon {
            font-size: 3rem;
            color: var(--primary);
            margin-bottom: 20px;
            display: block;
        }

        .stat-number {
            font-size: clamp(2.5rem, 5vw, 3.5rem);
            font-weight: 700;
            color: var(--secondary);
            line-height: 1;
            margin-bottom: 10px;
        }

        .stat-label {
            font-size: 1rem;
            font-weight: 500;
            color: var(--text-color);
            margin: 0;
        }

        .stat-stars {
            font-size: clamp(2.5rem, 5vw, 3.5rem);
            color: var(--border-color);
            line-height: 1;
            margin-bottom: 10px;
            display: flex;
            justify-content: center;
            gap: 5px;
        }

        .stat-stars .star {
            display: inline-block;
            position: relative;
            opacity: 0;
            transform: translateY(10px) scale(0.8);
            transition: opacity 0.5s ease, transform 0.5s ease;
        }

        .stat-item.visible .star {
            opacity: 1;
            transform: translateY(0) scale(1);
        }

        .star-fill {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 0; /* Initially no fill */
            color: #ffc107; /* Gold color for filled stars */
            overflow: hidden;
            transition: width 0.5s ease-in-out;
        }

        @keyframes pop-in-star {
            from { transform: scale(0.5); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }

        @media (max-width: 768px) {
            .stat-item {
                margin-bottom: 30px;
            }
            .row > .col-md-4:last-child .stat-item {
                margin-bottom: 0;
            }
        }

        .hero-subtitle {
            color: var(--primary);
            font-size: 1.2rem;
            letter-spacing: 1px;
            margin-bottom: 15px;
            display: flex; /* Use flexbox for letter alignment */
            justify-content: center;
        }

        /* New Liquid Fill Animation */
        .hero-subtitle span {
            color: white;
            font-weight: 600; /* Slightly thinner for a more refined look */
            display: inline-block; /* Needed for transform */
            /* Blurry animation */
            animation: blur-in-restartable 1.5s ease-out forwards; /* Play once on load and hold */
            /* Stagger the animation for each letter */
            animation-delay: calc(0.08s * var(--i)); /* Staggered delay */
            transition: transform var(--transition-fast), color var(--transition-fast);
        }

        .hero-subtitle span.space {
            width: 0.5em; /* Add space between words */
            animation: none; /* Do not animate spaces */
        }

        .hero-subtitle:hover span {
            transform: translateY(-3px) scale(1.1);
            color: var(--primary);
        }

        .hero-title {
            font-size: clamp(2.5rem, 5vw, 3.5rem); /* Fluid font size */
            font-weight: 700;
            margin-bottom: 20px;
            line-height: 1.2;
        }

        .hero-title-container {
            position: relative;
        }

        .hero-title-reflection {
            display: block;
            position: absolute;
            bottom: -100%; /* Position it right below the original title */
            left: 0;
            width: 100%;
            transform: scaleY(-1); /* Flip it vertically */
            
            /* Copy the styles of the h1 */
            font-size: clamp(2.5rem, 5vw, 3.5rem);
            font-weight: 700;
            line-height: 1.2;
            
            /* Create the fade-out and blur effect */
            mask-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
            -webkit-mask-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
            filter: blur(4px);
            opacity: 0.5;
        }

        /* Keyframes for the blurry animation */
        @keyframes blur-in-restartable {
            from { filter: blur(12px); opacity: 0; transform: scale(1.1); }
            to { filter: blur(0); opacity: 1; transform: scale(1); }
        }
        
        .hero-title span {
            position: relative; /* Required for the pseudo-element */
            /* Base text style */
            color: white;
        }

        /* The interactive spotlight effect */
        #interactive-hero-text::before {
            content: 'Water&Waste Water'; /* Must match the text in the span */
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            /* The gradient that creates the spotlight */
            background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), var(--primary) 0%, white 25%, var(--primary) 50%);
            background-size: 300% 300%; /* Make the gradient larger than the text */
            background-position: center;
            /* Clip the gradient to the text shape */
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
            /* Animate the background position for a subtle shimmer */
            animation: shimmer 8s linear infinite;
            transition: background-size 0.5s ease; /* Smooth transition for the effect */
        }

        /* The reflection part also needs to be updated */
        .hero-title-reflection span {
            color: white; /* Match the base color */
        }

        @keyframes shimmer {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .hero-cta-btn {
            background: var(--primary);
            color: white;
            border: 2px solid var(--primary);
            border-radius: 30px;
            padding: 15px 35px;
            font-weight: 600;
            font-size: 1.1rem;
            transition: all var(--transition-normal);
            overflow: hidden;
            position: relative;
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }

        .hero-cta-btn span {
            position: relative;
            z-index: 1;
            transition: color var(--transition-normal);
        }

        .hero-cta-btn i {
            position: relative;
            z-index: 1;
            transition: transform var(--transition-normal);
        }

        .hero-cta-btn:hover {
            background: transparent;
            border-color: white;
            color: white;
        }

        .hero-cta-btn:hover i {
            transform: translateX(5px);
        }


        .water-highlight {
            color: var(--accent) !important;
        }
        
        .section-padding {
            padding: 80px 0;
        }
        
        .section-title {
            position: relative;
            margin-bottom: 50px;
            font-weight: 700;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            height: 4px;
            background: var(--primary);
            border-radius: 2px;
        }

        .about-img {
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            max-width: 300px;
            filter: none;
            transition: filter 0.3s ease;
            background-color: transparent;
        }

        
        .nav-pills .nav-link {
            color: var(--dark);
            font-weight: 600;
            border-radius: 0;
            padding: 10px 20px;
            margin-right: 10px;
        }
        
        .nav-pills .nav-link.active {
            background-color: transparent;
            color: var(--primary);
            border-bottom: 3px solid var(--primary);
        }
        
        .tab-content {
            padding: 30px 0;
        }
        
        .tab-content ul {
            list-style: none;
            padding-left: 0;
        }
        
        .tab-content ul li {
            margin-bottom: 15px;
            padding-left: 25px;
            position: relative;
        }
        
        .tab-content ul li::before {
            content: '•';
            color: var(--primary);
            font-weight: bold;
            position: absolute;
            left: 0;
            top: 0;
        }
        
        /* ==============================================
           NEW MODERN SERVICES SECTION
           ============================================== */

        .services-section {
            background: var(--section-bg);
            position: relative;
            overflow: hidden;
        }

        .services-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(61, 169, 252, 0.03), rgba(9, 64, 103, 0.03));
            z-index: 0;
        }

        .services-section::after {
            content: '';
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background-image: url('../images/water-bg-pattern.svg');
            background-size: 500px;
            opacity: 0.03;
            z-index: 0;
        }

        .services-header {
            position: relative;
            z-index: 2;
            margin-bottom: 60px;
        }

        .services-header-icon {
            font-size: 3rem;
            color: var(--primary);
            margin-bottom: 20px;
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
        }

        .services-description {
            font-size: 1.1rem;
            color: var(--text-color);
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.7;
            opacity: 0;
            transform: translateY(30px);
            /* Gumamit ng clamp para sa responsive font-size */
            font-size: clamp(1rem, 2.5vw, 1.1rem);
            animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
        }

        body.dark-mode .services-description {
            animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
        }

        .services-list {
            display: flex;
            flex-direction: column;
            gap: 100px;
            margin-bottom: 60px;
            position: relative;
            z-index: 2;
        }

        .service-feature-item {
            position: relative;
            padding: 40px;
            background: var(--card-bg);
            border-radius: var(--border-radius-xl);
            box-shadow: 0 15px 40px var(--shadow);
            border: 1px solid var(--border-color);
            /* The .fade-in class will now handle the initial hidden state and transition */
            transition: box-shadow var(--transition-normal), transform var(--transition-normal);
        }
        
        /* Add staggered animation delay for service items */
        .service-feature-item.fade-in:nth-child(1) { transition-delay: 0.1s; }
        .service-feature-item.fade-in:nth-child(2) { transition-delay: 0.2s; }
        .service-feature-item.fade-in:nth-child(3) { transition-delay: 0.3s; }
        .service-feature-item.fade-in:nth-child(4) { transition-delay: 0.4s; }
        .service-feature-item.fade-in:nth-child(5) { transition-delay: 0.5s; }

        .service-feature-item:hover {
            /* The .visible class adds transform: translateY(0), so we need to adjust the hover effect */
            transform: translateY(-10px) !important;
            box-shadow: 0 25px 50px rgba(61, 169, 252, 0.15);
        }
        /* Use transition-delay for the staggered effect on the .fade-in elements */
        .services-list .fade-in:nth-child(1) { transition-delay: 0.1s; }
        .services-list .fade-in:nth-child(2) { transition-delay: 0.2s; }
        .services-list .fade-in:nth-child(3) { transition-delay: 0.3s; }
        .services-list .fade-in:nth-child(4) { transition-delay: 0.4s; }
        .services-list .fade-in:nth-child(5) { transition-delay: 0.5s; }
        .services-list .fade-in:nth-child(6) { transition-delay: 0.6s; }

        .service-image-wrapper {
            position: relative;
            border-radius: var(--border-radius-xl);
            overflow: hidden;
            box-shadow: 0 10px 30px var(--shadow);
            transition: transform var(--transition-normal);
        }

        .service-image-wrapper::before {
            content: '';
            position: absolute;
            top: 15px;
            left: 15px;
            right: 15px;
            bottom: 15px;
            border: 2px solid var(--primary);
            border-radius: var(--border-radius-lg);
            opacity: 0.3;
            transform: scale(1.05);
            transition: all var(--transition-normal);
        }

        .service-feature-item:hover .service-image-wrapper::before {
            opacity: 1;
            transform: scale(1);
        }
        .service-item-decorator {
            position: absolute;
            top: 50%;
            width: 80px;
            height: 2px;
            background: var(--primary);
            opacity: 0.5;
            z-index: -1;
        }

        .service-feature-item .row > div:first-child .service-item-decorator {
            right: -40px;
        }

        .service-feature-item .row > div:last-child .service-item-decorator {
            left: -40px;
        }

        .service-feature-item:hover .service-item-decorator {
            width: 120px;
        }

        .service-feature-item:hover .service-image-wrapper {
            transform: scale(1.03) translateY(-5px);
        }

        .service-image-wrapper img {
            opacity: 0.85;
            transition: transform var(--transition-slow);
            position: relative; /* Ensure image is below the ::before pseudo-element */
        }

        .service-feature-item:hover .service-image-wrapper img {
            transform: scale(1.1);
            opacity: 1;
        }

        .service-feature-item:hover .service-image-wrapper::before {
            background: rgba(255, 255, 255, 0.05); /* Become more transparent on hover */
            backdrop-filter: blur(5px); /* Reduce blur to "clear up" the glass */
        }

        .service-content-wrapper {
            padding: 20px 0;
        }

        .service-content-icon {
            font-size: 2.5rem;
            color: var(--primary);
            margin-bottom: 20px;
            display: inline-block;
            background: var(--light);
            width: 70px;
            height: 70px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .service-content-title {
            font-size: 2rem;
            color: var(--secondary);
            font-weight: 700;
            margin-bottom: 15px;
        }

        .service-content-description {
            font-size: 1.05rem;
            color: var(--text-color);
            line-height: 1.7;
            margin-bottom: 25px;
        }

        .service-features {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 25px;
        }

        .feature-tag {
            background: var(--card-bg);
            color: var(--text-color);
            font-size: 0.8rem;
            font-weight: 600;
            padding: 4px 12px;
            border-radius: 15px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border: 1px solid var(--border-color);
        }

        .feature-tag:hover {
            background: var(--light);
            border-color: var(--primary);
            color: var(--primary);
        }
        
        .service-feature-item .btn {
            transition: all var(--transition-normal) !important; /* Use important to override bootstrap */
        }
        
        .service-feature-item .btn i {
            transition: transform var(--transition-normal);
        }
        
        .service-feature-item .btn[aria-expanded="true"] i {
            transform: rotate(180deg);
        }
        
        .service-details-collapse {
            margin-top: 20px;
            margin-bottom: 20px;
        }
        
        .service-details-list {
            list-style: none;
            padding-left: 0;
            margin: 0;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
        }
        
        .service-details-list li {
            padding-left: 25px;
            position: relative;
            font-size: 0.95rem;
            color: var(--text-color);
            opacity: 0;
            transform: translateX(-10px);
            animation: fadeInDetail 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        }
        
        .service-details-collapse.show .service-details-list li:nth-child(1) { animation-delay: 0.1s; }
        .service-details-collapse.show .service-details-list li:nth-child(2) { animation-delay: 0.15s; }
        .service-details-collapse-show .service-details-list li:nth-child(3) { animation-delay: 0.2s; }
        .service-details-collapse.show .service-details-list li:nth-child(4) { animation-delay: 0.25s; }
        .service-details-collapse.show .service-details-list li:nth-child(5) { animation-delay: 0.3s; }
        
        .service-details-list li::before {
            content: '\f058'; /* Font Awesome check-circle icon */
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            left: 0;
            top: 2px;
            color: var(--primary);
        }
        
        @keyframes fadeInDetail {
            to { opacity: 1; transform: translateX(0); }
        }

        @media (max-width: 991.98px) {
            .service-feature-item { padding: 20px; }
            .service-item-decorator { display: none; }
        }

        .services-cta {
            position: relative;
            z-index: 2;
            padding: 40px 0;
            border-top: 1px solid var(--border-color);
            margin-top: 40px;
        }

        .cta-text {
            font-size: 1.2rem;
            color: var(--text-color);
            margin-bottom: 25px;
            font-weight: 500;
        }

        .services-main-cta {
            background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
            color: white !important;
            border: none !important;
            padding: 15px 35px !important;
            font-size: 1.1rem !important;
            font-weight: 600 !important;
            border-radius: 30px !important;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
            box-shadow: 0 8px 25px rgba(61, 169, 252, 0.3) !important;
            position: relative;
            overflow: hidden;
        }

        .services-main-cta::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.6s ease;
        }

        .services-main-cta:hover::before,
        .services-main-cta:focus-visible::before {
            left: 100%;
        }

        .services-main-cta:hover,
        .services-main-cta:focus-visible {
            transform: translateY(-3px);
            box-shadow: 0 12px 35px rgba(61, 169, 252, 0.4) !important;
        }

        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Services Section Responsive Design */
        @media (max-width: 1200px) {
            /* No longer needed, auto-fit handles this */
        }

        @media (max-width: 992px) {
 
            /* On mobile, make icon smaller and part of the content flow */
            .service-icon-overlay {
                position: relative;
                top: auto;
                left: auto;
                margin: 25px 0 15px;
                transform: none !important; /* Reset hover transform */
                width: 50px;
                height: 50px;
            }
 
            .service-content {
                padding: 0 25px 25px;
            }
        }
 
        @media (max-width: 768px) {
            .services-section {
                padding: 60px 0;
            }

            .services-header {
                margin-bottom: 40px;
            }

            .services-header-icon {
                font-size: 2.5rem;
                margin-bottom: 15px;
            }

            .services-description {
                font-size: 1rem;
            }

            .services-list {
                gap: 60px;
                margin-bottom: 40px;
            }

            .services-cta {
                padding: 30px 0;
            }

            .cta-text {
                font-size: 1.1rem;
            }

            .services-main-cta {
                padding: 12px 25px !important;
                font-size: 1rem !important;
            }
        }

        @media (max-width: 576px) {
            .services-section {
                padding: 50px 0;
            }

            .services-header {
                margin-bottom: 30px;
            }

            .services-header-icon {
                font-size: 2rem;
            }

            .services-description {
                font-size: 0.95rem;
            }

            .service-features {
                margin-bottom: 20px;
            }

            .feature-tag {
                font-size: 0.7rem;
                padding: 3px 10px;
            }
        }

/* ==============================================
   FAQ SECTION
   ============================================== */
#faq {
    background: var(--section-bg);
}

.accordion-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius) !important; /* Override Bootstrap */
    margin-bottom: 15px;
    overflow: hidden; /* Ensures border-radius is respected */
    transition: box-shadow var(--transition-fast);
}

.accordion-item:hover {
    box-shadow: 0 5px 20px rgba(61, 169, 252, 0.1);
}

.accordion-header {
    border-bottom: none;
}

.accordion-button {
    background-color: var(--card-bg);
    color: var(--secondary);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.25rem 1.5rem;
    transition: background-color var(--transition-fast);
}

.accordion-button:not(.collapsed) {
    background-color: var(--light);
    color: var(--primary);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);
    border-color: var(--primary);
}

/* Remove default Bootstrap icon */
.accordion-button::after {
    background-image: none; /* Remove Bootstrap's default SVG */
}

.accordion-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 15px;
    position: relative;
    transition: transform var(--transition-fast);
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background-color: currentColor;
    border-radius: 1px;
    transform: translate(-50%, -50%);
    transition: transform var(--transition-fast);
}

.accordion-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.accordion-button:not(.collapsed) .accordion-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

.accordion-body {
    padding: 1.5rem;
    color: var(--text-color);
}

        /* ==============================================
           OUR PROCESS TIMELINE - ENHANCED
           ============================================== */
        #process {
            background: var(--section-bg);
            position: relative;
            overflow: hidden;
        }

        #process::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(61, 169, 252, 0.02), rgba(9, 64, 103, 0.02));
            z-index: 0;
        }

        .process-header-enhanced {
            position: relative;
            z-index: 1;
            margin-bottom: 60px;
        }

        .process-header-content {
            text-align: center;
            margin-bottom: 40px;
        }

        .section-title {
            font-size: clamp(2.5rem, 5vw, 3.5rem);
            font-weight: 700;
            color: var(--secondary);
            margin-bottom: 20px;
            position: relative;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            border-radius: 2px;
        }

        .stat-label {
            font-size: 0.9rem;
            color: var(--text-color);
            font-weight: 600;
        }

        .process-progress-nav {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 40px;
        }

        .progress-dot {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: var(--light);
            border: 3px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all var(--transition-normal);
            position: relative;
        }

        .progress-dot.active {
            background: var(--primary);
            border-color: var(--primary);
            transform: scale(1.1);
            box-shadow: 0 0 0 8px rgba(61, 169, 252, 0.2);
        }

        .progress-dot:hover {
            background: var(--primary);
            border-color: var(--primary);
            transform: scale(1.05);
            box-shadow: 0 0 0 6px rgba(61, 169, 252, 0.15);
        }

        .progress-dot:focus-visible {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
        }

        .dot-number {
            color: var(--text-color);
            font-weight: 600;
            font-size: 1.1rem;
        }

        .progress-dot.active .dot-number {
            color: white;
        }

        /* Process Navigation Controls */
        .process-navigation {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;
            margin-bottom: 40px;
            position: relative;
            z-index: 2;
        }

        .process-nav-btn {
            background: var(--card-bg);
            border: 2px solid var(--border-color);
            color: var(--primary);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all var(--transition-fast);
            font-size: 1.2rem;
        }

        .process-nav-btn:hover:not(:disabled) {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
            transform: scale(1.1);
            box-shadow: 0 5px 15px rgba(61, 169, 252, 0.3);
        }

        .process-nav-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .process-progress-dots {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .process-timeline-container {
            position: relative;
            z-index: 1;
            overflow: hidden;
            padding: 20px 0;
        }

        @keyframes pulse {
            0% { box-shadow: 0 0 0 4px rgba(61, 169, 252, 0.2); }
            50% { box-shadow: 0 0 0 8px rgba(61, 169, 252, 0.1); }
            100% { box-shadow: 0 0 0 4px rgba(61, 169, 252, 0.2); }
        }

        .process-card-modern {
            background: linear-gradient(135deg, var(--card-bg), rgba(255, 255, 255, 0.9));
            border-radius: var(--border-radius-xl);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 5px 15px rgba(61, 169, 252, 0.05);
            border: 1px solid var(--border-color);
            overflow: hidden;
            transition: all var(--transition-normal);
            position: relative;
        }

        .process-card-modern::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(61, 169, 252, 0.03), transparent);
            opacity: 0;
            transition: opacity var(--transition-normal);
            z-index: 1;
        }

        .process-card-modern:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 0 25px 50px rgba(61, 169, 252, 0.15), 0 10px 25px rgba(0, 0, 0, 0.1);
        }

        .process-card-modern:hover::before {
            opacity: 1;
        }

        .process-image-wrapper {
            position: relative;
            overflow: hidden;
            height: 200px;
        }

        .process-image-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform var(--transition-slow);
        }

        .process-card-modern:hover .process-image-wrapper img {
            transform: scale(1.1);
        }

        .process-step-number {
            position: absolute;
            top: 15px;
            left: 15px;
            width: 40px;
            height: 40px;
            background: var(--primary);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1.1rem;
            z-index: 2;
        }

        .process-step-icon {
            position: absolute;
            bottom: 15px;
            right: 15px;
            width: 50px;
            height: 50px;
            background: rgba(255, 255, 255, 0.9);
            color: var(--primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            z-index: 2;
            transition: transform var(--transition-fast);
        }

        .process-card-modern:hover .process-step-icon {
            transform: scale(1.1) rotate(5deg);
        }

        .process-content-modern {
            padding: 30px;
            position: relative;
            z-index: 2;
        }

        .process-step-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 15px;
        }

        .process-title-modern {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--secondary);
            margin: 0;
            flex: 1;
        }

        .process-expand-btn {
            background: none;
            border: none;
            color: var(--primary);
            font-size: 1.2rem;
            cursor: pointer;
            transition: transform var(--transition-fast);
            padding: 5px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .process-expand-btn:hover {
            background: rgba(61, 169, 252, 0.1);
            transform: scale(1.1);
        }

        .process-expand-btn:focus-visible {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
        }

        .process-description-modern {
            font-size: 1rem;
            color: var(--text-color);
            line-height: 1.6;
            margin-bottom: 20px;
        }

        .process-details-expanded {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .process-details-expanded.show {
            max-height: 500px;
        }

        .process-key-points {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-top: 15px;
        }

        .key-point {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.9rem;
            color: var(--text-color);
            font-weight: 500;
        }

        .key-point i {
            color: var(--primary);
            font-size: 0.8rem;
        }

        .process-cta-section {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            padding: 60px 40px;
            border-radius: var(--border-radius-xl);
            text-align: center;
            margin-top: 60px;
            position: relative;
            overflow: hidden;
        }

        .process-cta-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
            opacity: 0.1;
        }

        .process-cta-content {
            position: relative;
            z-index: 1;
        }

        .process-cta-content h3 {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 15px;
        }

        .process-cta-content p {
            font-size: 1.1rem;
            margin-bottom: 30px;
            opacity: 0.9;
        }

        .process-cta-buttons {
            display: flex;
            gap: 20px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .process-cta-buttons .btn {
            padding: 15px 30px;
            font-weight: 600;
            border-radius: 50px;
            transition: all var(--transition-normal);
        }

        .process-cta-buttons .btn-primary {
            background: white;
            color: var(--primary);
            border: 2px solid white;
        }

        .process-cta-buttons .btn-primary:hover {
            background: transparent;
            color: white;
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
        }

        .process-cta-buttons .btn-outline-primary {
            background: transparent;
            color: white;
            border: 2px solid white;
        }

        .process-cta-buttons .btn-outline-primary:hover {
            background: white;
            color: var(--primary);
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
        }

        /* Process Timeline Responsive Design */
        @media (max-width: 992px) {
            .process-navigation {
                gap: 15px;
                margin-bottom: 30px;
            }

            .process-nav-btn {
                width: 45px;
                height: 45px;
                font-size: 1.1rem;
            }

            .progress-dot {
                width: 45px;
                height: 45px;
            }

            .process-timeline-horizontal {
                gap: 20px;
                padding: 15px;
            }

            .process-step-horizontal {
                min-width: 300px;
            }

            .process-card-modern {
                box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
            }

            .process-content-modern {
                padding: 25px;
            }

            .process-title-modern {
                font-size: 1.2rem;
            }

            .process-cta-section {
                padding: 50px 30px;
                margin-top: 50px;
            }

            .process-cta-content h3 {
                font-size: 1.75rem;
            }

            .process-cta-content p {
                font-size: 1rem;
            }

            .process-cta-buttons {
                gap: 15px;
            }

            .process-cta-buttons .btn {
                padding: 12px 25px;
                font-size: 1rem;
            }
        }

        @media (max-width: 768px) {
            .process-header-enhanced {
                margin-bottom: 40px;
            }

            .process-overview-stats {
                flex-direction: column;
                gap: 15px;
            }

            .stat-item {
                padding: 15px;
            }

            .process-navigation {
                gap: 10px;
                margin-bottom: 25px;
            }

            .process-nav-btn {
                width: 40px;
                height: 40px;
                font-size: 1rem;
            }

            .progress-dot {
                width: 40px;
                height: 40px;
            }

            .dot-number {
                font-size: 1rem;
            }

            .process-timeline-horizontal {
                gap: 15px;
                padding: 10px;
            }

            .process-step-horizontal {
                min-width: 280px;
            }

            .process-image-wrapper {
                height: 180px;
            }

            .process-content-modern {
                padding: 20px;
            }

            .process-title-modern {
                font-size: 1.1rem;
            }

            .process-description-modern {
                font-size: 0.95rem;
            }

            .key-point {
                font-size: 0.85rem;
            }

            .process-cta-section {
                padding: 40px 25px;
                margin-top: 40px;
                border-radius: var(--border-radius-lg);
            }

            .process-cta-content h3 {
                font-size: 1.5rem;
            }

            .process-cta-content p {
                font-size: 0.95rem;
            }

            .process-cta-buttons {
                flex-direction: column;
                gap: 12px;
            }

            .process-cta-buttons .btn {
                width: 100%;
                padding: 12px 20px;
                font-size: 0.95rem;
            }
        }

        @media (max-width: 576px) {
            .process-header-content {
                margin-bottom: 30px;
            }

            .section-title {
                font-size: 2rem;
                margin-bottom: 15px;
            }

            .process-overview-stats .stat-item {
                padding: 12px;
            }

            .stat-number {
                font-size: 1.5rem;
            }

            .stat-label {
                font-size: 0.8rem;
            }

            .process-navigation {
                gap: 8px;
            }

            .process-nav-btn {
                width: 36px;
                height: 36px;
                font-size: 0.9rem;
            }

            .progress-dot {
                width: 36px;
                height: 36px;
            }

            .dot-number {
                font-size: 0.9rem;
            }

            .process-timeline-horizontal {
                gap: 12px;
                padding: 8px;
            }

            .process-step-horizontal {
                min-width: 260px;
            }

            .process-image-wrapper {
                height: 160px;
            }

            .process-step-number {
                width: 35px;
                height: 35px;
                font-size: 1rem;
                top: 12px;
                left: 12px;
            }

            .process-step-icon {
                width: 45px;
                height: 45px;
                font-size: 1.3rem;
                bottom: 12px;
                right: 12px;
            }

            .process-content-modern {
                padding: 18px;
            }

            .process-title-modern {
                font-size: 1rem;
            }

            .process-description-modern {
                font-size: 0.9rem;
                margin-bottom: 15px;
            }

            .process-expand-btn {
                font-size: 1.1rem;
            }

            .key-point {
                font-size: 0.8rem;
            }

            .process-cta-section {
                padding: 35px 20px;
                margin-top: 35px;
            }

            .process-cta-content h3 {
                font-size: 1.3rem;
                margin-bottom: 12px;
            }

            .process-cta-content p {
                font-size: 0.9rem;
                margin-bottom: 25px;
            }

            .process-cta-buttons .btn {
                padding: 12px 18px;
                font-size: 0.9rem;
            }
        }

        /* ==============================================
           PARTNERS SECTION
           ============================================== */
        #partners {
            background: var(--section-bg);
        }

        .logo-carousel-container {
            position: relative;
            /* Gradient fade effect on the sides */
            -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);
        }

        .logo-carousel .swiper-wrapper {
            transition-timing-function: linear !important; /* Ensures constant speed */
        }

        .logo-carousel .swiper-slide {
            width: auto; /* Let slides size based on content */
            display: flex;
            align-items: center;
        }
        .partner-logo-wrapper {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: var(--border-radius-lg);
            padding: 30px 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            transition: transform var(--transition-normal), box-shadow var(--transition-normal);
        }

        .partner-logo-wrapper:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 30px rgba(61, 169, 252, 0.12);
        }

        .partner-logo-wrapper:hover .partner-logo {
            filter: grayscale(0%) opacity(1);
            transform: scale(1.05);
        }

        .partner-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 30px rgba(61, 169, 252, 0.12);
        }

        .partner-logo {
            height: 60px; /* Standardized height */
            max-width: 100%;
            object-fit: contain;
            /* Initial state for hover effect */
            filter: grayscale(100%);
            opacity: 0.7;
            transform: scale(0.95);
            transition: all var(--transition-normal);
            cursor: default; /* Indicate it's not clickable */
        }

        .swiper-slide:hover .partner-logo {
            /* Hover state */
            filter: grayscale(0%);
            opacity: 1;
            transform: scale(1.05);
        }

        /* In dark mode, logos can be hard to see. Let's make them brighter. */
        body.dark-mode .partner-card {
            background: transparent;
        }

        body.dark-mode .partner-card:hover {
            background: rgba(255, 255, 255, 0.05); /* Subtle hover effect */
        }

        body.dark-mode .partner-logo {
            /* Brighten logos for visibility in dark mode */
            filter: grayscale(100%) brightness(1.5) contrast(0.9);
            opacity: 0.6;
        }

        body.dark-mode .swiper-slide:hover .partner-logo {
            filter: none;
            opacity: 1;
        }

        .contact-info {
            margin-bottom: 30px;
        }
        
        .contact-info i {
            color: var(--primary);
            font-size: 1.2rem;
            width: 30px;
        }
        
        .social-icons a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: white;
            color: var(--dark);
            font-size: 1.2rem;
            margin-right: 10px;
            transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        }
        
        .social-icons a:hover,
        .social-icons a:focus-visible {
            background: var(--primary);
            color: white;
            transform: translateY(-3px);
        }
        
        .social-icons a.social-disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        
        .social-icons a.social-disabled:hover,
        .social-icons a.social-disabled:focus-visible {
            background: white;
            color: var(--dark);
            transform: none;
        }
        
        .btn-download {
            background: linear-gradient(135deg, var(--primary), #094067); /* Use a darker blue for dark mode gradient */
            color: white;
            border: none;
            border-radius: 25px;
            padding: 12px 24px;
            font-weight: 600;
            font-size: 0.95rem;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            margin-right: 10px;
            margin-bottom: 10px;
            box-shadow: 0 4px 15px rgba(61, 169, 252, 0.2);
            position: relative;
            overflow: hidden;
        }

        /* Shared shine effect for buttons */
        .btn-download::before,
        .btn-submit::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s ease;
        }

        .btn-download:hover,
        .btn-download:focus-visible {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(61, 169, 252, 0.4);
            color: white;
        }

        .btn-download:active {
            transform: translateY(-1px);
        }

        /* Trigger shine effect on hover/focus */
        .btn-download:hover::before,
        .btn-download:focus-visible::before,
        .btn-submit:hover::before,
        .btn-submit:focus-visible::before {
            left: 100%;
        }

        .contact-form {
            background: var(--card-bg);
            padding: 40px;
            border-radius: 15px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(61, 169, 252, 0.1);
            transition: box-shadow 0.3s ease, transform 0.3s ease;
        }

        .contact-form:hover,
        .contact-form:focus-within {
            box-shadow: 0 15px 50px rgba(61, 169, 252, 0.15);
            transform: translateY(-2px);
        }

        .contact-form-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .contact-form-title {
            color: var(--secondary);
            font-weight: 700;
            margin-bottom: 5px;
        }

        .contact-form-header p { color: var(--text-color); }

        .form-control {
            padding: 18px 20px;
            border: 2px solid var(--border-color);
            border-radius: 10px;
            margin-bottom: 25px;
            transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-size: 1rem;
            background: var(--section-bg);
            color: var(--text-color);
        }

        /* Styles for Floating Labels */
        .form-floating > .form-control {
            padding: 1rem 1rem 1rem 3rem; /* Add left padding for icon */
            height: calc(3.5rem + 2px);
            line-height: 1.25;
        }

        .form-floating > textarea.form-control {
            padding-top: 1.625rem; /* Adjust for textarea */
            min-height: 150px; /* Ensure textarea has a minimum height */
        }

        .form-floating > textarea.form-control ~ .form-control-icon {
            top: 1.625rem; /* Align icon with the first line of text */
        }

        .form-floating > label {
            padding: 1rem 3rem; /* Match input padding */
            color: #9ca3af;
        }

        .form-floating > .form-control:focus ~ label,
        .form-floating > .form-control:not(:placeholder-shown) ~ label {
            opacity: 0.65;
            transform: scale(0.85) translateY(-0.5rem) translateX(-1.5rem); /* Adjust label position to prevent icon overlap */
        }

        /* Icon inside input field */
        .form-control-icon {
            position: absolute;
            top: 50%;
            left: 1.2rem;
            transform: translateY(-50%);
            color: var(--dark);
            transition: color var(--transition-fast);
            z-index: 3; /* Ensure icon is above input background */
        }

        .form-floating > .form-control:focus ~ .form-control-icon {
            color: var(--primary);
        }

        .form-control:focus,
        .form-control:focus-visible {
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(61, 169, 252, 0.15);
            background: var(--card-bg);
            transform: translateY(-1px);
        }

        .form-control.is-invalid {
            padding-right: calc(1.5em + .75rem); /* Make space for Bootstrap's validation icon */
        }

        .form-control::placeholder {
            color: #9ca3af;
            font-weight: 400;
        }

        .btn-submit {
            background: linear-gradient(135deg, var(--primary), #094067); /* Use a darker blue for dark mode gradient */
            color: white;
            border: none;
            padding: 18px 30px;
            border-radius: 10px;
            font-weight: 600;
            font-size: 1.1rem;
            width: 100%;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            /* Add transition for background color for success state */
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                        background-color 0.4s ease,
                        background 0.4s ease, background-image 0.4s ease;
            box-shadow: 0 4px 15px rgba(61, 169, 252, 0.3);
            position: relative;
            overflow: hidden;
        }

        .btn-submit:hover,
        .btn-submit:focus-visible {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(61, 169, 252, 0.4);
        }

        .btn-submit:active {
            transform: translateY(-1px);
        }

        .btn-submit.success {
            background: #28a745; /* Green for success */
            box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
        }

        .btn-submit .submit-text {
            transition: opacity 0.2s ease;
        }

        .btn-submit.loading .submit-text,
        .btn-submit.success .submit-text {
            opacity: 0;
        }




/* ==============================================
   FILTER BUTTONS (for Products/Portfolio)
   ============================================== */
.filter-buttons-container {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 10px;
    box-shadow: var(--glass-shadow);
    display: inline-block; /* Allows the container to shrink-to-fit its content */
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background: transparent;
    color: var(--text-color);
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    background: rgba(61, 169, 252, 0.1);
    color: var(--primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 5px 15px rgba(61, 169, 252, 0.25);
    transform: translateY(-2px);
}

.filter-btn i { transition: transform var(--transition-fast); }
.filter-btn:hover i { transform: scale(1.2) rotate(-5deg); }

/* ==============================================
   ANIMATED PRODUCT GRID
   ============================================== */
   .product-grid {
       display: grid;
       grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
       gap: 2rem;
       transition: opacity 0.3s ease;
   }

   .product-item-col {
       /* Use a smoother fade and scale animation for filtering */
       transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
       opacity: 0;
       transform: scale(0.9);
   }
   
   .product-item-col.visible {
       opacity: 1;
       transform: scale(1);
   }

        /* Products Section */
.product-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 5px 25px var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer; /* Indicate the whole card is interactive */
    position: relative;
}

.product-card:hover,
.product-card:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(61, 169, 252, 0.15);
}

.product-category-badge {
    position: absolute;
    top: 15px;
    left: -5px;
    background: var(--primary);
    color: white;
    padding: 5px 15px 5px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 0 20px 20px 0;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform var(--transition-fast);
}

.product-card:hover .product-category-badge { transform: translateX(5px); }

.product-image-container {
    background-color: white; /* Ensures transparent PNGs have a solid background */
    padding: 20px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* For overflow hidden */
    border-bottom: 1px solid var(--border-color);
}

body.dark-mode .product-image-container {
    background-color: #eef2f5; /* A light grey for dark mode to ensure image visibility */
}

.product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform var(--transition-normal);
}

.product-card:hover .product-img {
    transform: scale(1.15);
}

.product-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.product-card-footer {
    padding: 0 25px 25px;
    background: var(--card-bg);
    transition: background-color var(--transition-fast);
    margin-top: auto; /* Pushes footer to the bottom */
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 0;
    flex-grow: 1; /* Pushes the button to the bottom */
}

.btn-inquire {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%; /* Make button full width of the footer */
}

.btn-inquire:hover,
.btn-inquire:focus-visible {
    background: var(--primary);
    color: white;
    box-shadow: 0 5px 15px rgba(61, 169, 252, 0.2);
}

.btn-inquire i {
    transition: transform var(--transition-fast);
}

.btn-inquire:hover i {
    transform: translateX(4px);
}
        
        #backToTop {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: var(--primary);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
        }
        
        #backToTop.active {
            opacity: 1;
            visibility: visible;
        }
        
        #backToTop:hover,
        #backToTop:focus-visible {
            background: var(--secondary);
            transform: translateY(-3px);
        }
        
        
/* Modern Footer Styles */
.footer-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px; /* Adjust height as needed */
    overflow: hidden;
    z-index: 0;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-size: 1000px 100px;
    background-repeat: repeat-x;
    animation: wave-flow 15s linear infinite;
}

.wave.wave1 { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3e%3cpath d='M-164.2,55.3C-6.5,102.8,158.8,11.3,293.9,55.3c148.2,48.2,305.5,48.2,453.6,0s305.5-48.2,453.6,0c148.2,48.2,305.5,48.2,453.6,0V100H-164.2V55.3z' fill='rgba(255,255,255,0.08)'/%3e%3c/svg%3e"); animation-delay: -2s; opacity: 0.7; }
.wave.wave2 { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3e%3cpath d='M-164.2,55.3C-6.5,102.8,158.8,11.3,293.9,55.3c148.2,48.2,305.5,48.2,453.6,0s305.5-48.2,453.6,0c148.2,48.2,305.5,48.2,453.6,0V100H-164.2V55.3z' fill='rgba(255,255,255,0.05)'/%3e%3c/svg%3e"); animation-delay: -5s; animation-duration: 20s; opacity: 0.5; }

@keyframes wave-flow {
    0% { transform: translateX(0); }
    100% { transform: translateX(-1000px); }
}

.footer-modern {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 80px 0 0;
    position: relative;
    overflow: hidden; /* Hide overflowing wave animations */
}

.footer-hours {
    margin-top: 1.5rem;
}

.hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hours-list li {
    margin-bottom: 0.75rem;
    color: var(--footer-text);
    font-size: 0.95rem;
}

.hours-list strong {
    color: white;
}

@keyframes logo-pulse {
    /* The animation stays dormant for most of the duration */
    0%, 95% {
        transform: scale(1);
        filter: brightness(0) invert(1) drop-shadow(0 0 0 rgba(61, 169, 252, 0));
    }
    /* The pulse effect happens in the last 5% of the animation cycle */
    97.5% {
        transform: scale(1.05);
        filter: brightness(0) invert(1) drop-shadow(0 0 12px rgba(61, 169, 252, 0.7));
    }
}

.footer-brand .footer-logo {
    max-width: 150px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}



        .footer-description {
            color: var(--footer-text);
            font-size: 0.95rem;
            line-height: 1.6;
            margin-bottom: 0;
        }

        .footer-heading {
            color: white;
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            position: relative;
            padding-bottom: 0.5rem;
        }

        .footer-heading::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 30px;
            height: 2px;
            background: var(--primary);
        }

        .footer-links {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .footer-links li {
            margin-bottom: 0.75rem;
        }

        .footer-links a {
            color: var(--footer-text);
            text-decoration: none;
            font-size: 0.95rem;            
            transition: color var(--transition-fast);
            position: relative;
            padding-bottom: 5px;
        }
        
        .footer-links a:focus-visible { outline: 1px solid white; border-radius: 2px; }

        .footer-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 1px;
            background-color: var(--primary);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform var(--transition-fast);
        }

        .footer-links a:hover {
            color: white;
        }

        .footer-links a:hover::after {
            transform: scaleX(1);
        }

        .contact-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .contact-list li {
            margin-bottom: 0.75rem;
        }

        .contact-list a {
            color: var(--footer-text);
            text-decoration: none;
            font-size: 0.95rem;
            transition: color 0.3s ease;
        }

        .contact-list a:hover,
        .contact-list a:focus-visible {
            color: white;
        }

        .contact-list i {
            width: 18px;
            opacity: 0.8;
        }

        .footer-contact {
            list-style: none;
            padding: 0;
        }

        .footer-contact li {
            display: flex;
            align-items: flex-start;
            gap: 15px;
            margin-bottom: 1rem;
        }

        .footer-contact i {
            color: var(--primary);
            margin-top: 5px;
        }

        .footer-social-icons .social-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            font-size: 1.1rem;
            margin-right: 0.75rem;
            margin-bottom: 0.5rem;
            transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .footer-social-icons .social-link:hover,
        .footer-social-icons .social-link:focus-visible {            
            background: white;
            color: var(--primary);
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .footer-social-icons .social-link.social-disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .footer-social-icons .social-link.social-disabled:hover,
        .footer-social-icons .social-link.social-disabled:focus-visible {            
            background: rgba(255, 255, 255, 0.1);
            color: white;
            transform: none;
            box-shadow: none;
        }

        .footer-cta .btn-download {
            background: rgba(255, 255, 255, 0.15);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.3);
            padding: 0.75rem 1.5rem;
            font-size: 0.9rem;
            border-radius: 25px;
            transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
        }

        .footer-cta .btn-download:hover,
        .footer-cta .btn-download:focus-visible {
            background: white;
                color: var(--secondary); /* Use a darker color for better contrast on white */
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .footer-map {
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .footer-map iframe {
            width: 100%;
            border: none;
        }

        .footer-divider {
            height: 1px;
            border: none;
            background-color: rgba(255, 255, 255, 0.15);
            margin: 3rem 0 2rem;
        }

        .footer-bottom {
            padding: 1.5rem 0;
        }

        .newsletter-form {
            position: relative;
            max-width: 350px;
            margin-top: 1rem;
        }

        .newsletter-form input {
            width: 100%;
            padding: 12px 50px 12px 20px;
            border-radius: 25px;
            border: 1px solid rgba(255, 255, 255, 0.3);
            background: rgba(255, 255, 255, 0.1);
            color: white;
            transition: all var(--transition-fast);
        }

        .newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.6); }

        .newsletter-form input:focus {
            outline: none;
            background: rgba(255, 255, 255, 0.2);
            border-color: var(--primary);
        }

        .newsletter-form button {
            position: absolute;
            right: 5px;
            top: 5px;
            bottom: 5px;
            width: 40px;
            border-radius: 50%;
            background: var(--primary);
            color: white;
            border: none;
            transition: all var(--transition-fast);
        }

        .newsletter-form.loading button {
            background: var(--dark);
            transform: scale(1);
        }

        .newsletter-form.success button {
            background: #28a745; /* Green for success */
            transform: scale(1.1);
        }

        .newsletter-form.success button i {
            animation: pop-in 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
        }

        .newsletter-form.success input {
            border-color: #28a745;
            background: rgba(40, 167, 69, 0.2);
        }

        .newsletter-form button:hover {
            background: white;
            color: var(--primary);
            transform: scale(1.1);
        }

        .copyright {
            color: var(--footer-text);
            font-size: 0.95rem;
            margin-bottom: 0;
        }

        .footer-tagline {
            color: var(--footer-text);
            font-size: 0.9rem;
            font-weight: 500;
            font-style: italic;
            text-align: right;
        }

        /* Tiyakin na ang footer tagline ay nasa gitna sa maliliit na screen */
        @media (max-width: 767.98px) {
            .footer-tagline {
                text-align: center;
            }
        }
        /* Footer Responsive Design */
        @media (max-width: 992px) {
            .footer-modern {
                padding: 60px 0 0;
            }

            .footer-brand {
                text-align: center;
                margin-bottom: 2rem;
            }

            .footer-description {
                text-align: center;
            }
        }

        @media (max-width: 768px) {
            .footer-modern {
                padding: 50px 0 0;
            }

            .footer-heading {
                font-size: 1rem;
                margin-bottom: 1.25rem;
            }

            .footer-links a,
            .contact-list a {
                font-size: 0.9rem;
            }

            .footer-social-icons .social-link {
                width: 35px;
                height: 35px;
                font-size: 1rem;
                margin-right: 0.5rem;
            }

            .footer-cta .btn-download {
                padding: 0.6rem 1.2rem;
                font-size: 0.85rem;
            }

            .footer-map iframe {
                height: 120px;
            }

            .footer-divider {
                margin: 2rem 0 1.5rem;
            }

            .copyright,
            .footer-tagline {
                font-size: 0.85rem;
                text-align: center;
            }

            .footer-bottom .text-md-end {
                text-align: center !important;
            }            

            /* Stack contact download buttons vertically */
            .contact-info + .social-icons + .btn-download,
            .contact-info + .social-icons + .btn-download + .btn-download {
                display: block;
                width: 100%;
            }
        }

        @media (max-width: 576px) {
            .footer-modern {
                padding: 40px 0 0;
            }

            .footer-brand .footer-logo {
                max-width: 100px;
            }

            .footer-description {
                font-size: 0.9rem;
            }

            .footer-heading {
                font-size: 0.95rem;
            }

            .footer-links li {
                margin-bottom: 0.5rem;
            }

            .footer-social-icons .social-link {
                width: 32px;
                height: 32px;
                font-size: 0.9rem;
            }

            .footer-map iframe {
                height: 100px;
            }

            .footer-tagline {
                text-align: center;
                margin-top: 10px;
            }
        }
        
        @media (max-width: 768px) {
            .hero-title {
                font-size: 2.5rem;
            }

            body.home .hero-title-reflection {
                /* Hide the reflection on smaller screens for clarity and to prevent layout shifts */
                display: none;
            }

            .section-padding {
                padding: 60px 0;
            }

            .contact-form {
                padding: 30px 20px;
            }

            .form-control {
                padding: 15px 16px;
                font-size: 0.95rem;
            }

            .btn-submit {
                padding: 16px 25px;
                font-size: 1rem;
            }

            .service-card {
                margin-bottom: 20px;
            }

            .product-card {
                margin-bottom: 20px;
            }
        }
        
        /* Enhanced Mobile & Tablet Navbar */
        @media (max-width: 991.98px) {
            /* The mobile overlay styles are already in place and should work well.
               We just need to ensure the desktop-specific styles are overridden. */
            .navbar-nav {
                gap: 0; /* Reset gap for vertical mobile menu */
            }
            .navbar .container {
                /* Reset flex behavior for mobile to allow toggler to work correctly */
                display: block;
            }

            /* Mobile Navigation Improvements */
            .mobile-nav-overlay {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100vh;
                background: var(--glass-bg);
                backdrop-filter: var(--glass-backdrop);
                -webkit-backdrop-filter: var(--glass-backdrop);
                z-index: 1045;
                display: flex;
                align-items: center;
                justify-content: center;
                /* Change justify-content to push the menu to the right */
                justify-content: flex-end;
                /* The overlay itself will now just handle the background fade */
                background: rgba(0, 0, 0, 0.5);
                backdrop-filter: none; /* Remove blur for a simpler background fade */
                -webkit-backdrop-filter: none;
                opacity: 0;
                visibility: hidden;
                transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            }

            .mobile-nav-overlay.show {
                opacity: 1;
                visibility: visible;
                backdrop-filter: blur(5px);
                -webkit-backdrop-filter: blur(5px);
            }

            .mobile-nav-content {
                background: var(--card-bg);
                /* Adjust dimensions for a sidebar */
                width: 320px;
                max-width: 85vw;
                height: 100vh;
                max-height: 100vh;
                border-radius: 20px 0 0 20px; /* Round corners on the left side */
                padding: 30px;
                overflow-y: auto;
                box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
                /* Initial state: off-screen to the right */
                transform: translateX(100%);
                transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
                position: relative;
            }

            .mobile-nav-overlay.show .mobile-nav-content {
                /* Final state: on-screen */
                transform: translateX(0);
            }

    .mobile-nav-header {
        display: flex;
        align-items: center;
        gap: 15px;
        padding-bottom: 20px;
        margin-bottom: 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-nav-logo {
        height: 35px;
    }

    .mobile-nav-header span {
        font-weight: 600;
        color: var(--secondary);
        font-size: 1.1rem;
    }


            .mobile-nav-close {
                position: absolute;
                top: 15px;
                right: 20px;
                background: none;
                border: none;
                font-size: 1.5rem;
                color: var(--text-color);
            }
            
            .mobile-nav-close:focus-visible {
                outline: 2px solid var(--primary);
                outline-offset: 2px;
                border-radius: 50%;
            }

            .mobile-nav-content .nav-link {
                color: var(--text-color);
        padding: 12px 20px;
                border-radius: 10px;
        margin-bottom: 5px;
                font-size: 1.1rem;
                transition: all 0.3s ease;
        text-align: left;
        display: flex;
        align-items: center;
        font-weight: 500;
            }

            .mobile-nav-content .nav-link:hover {
                background: var(--light);
                color: var(--primary);
        transform: scale(1.02);
    }

    .mobile-nav-content .nav-link:focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: -2px; /* Inset outline */
        background-color: var(--light);
        color: var(--primary);
    }

    .mobile-nav-content .navbar-nav .nav-link.active {
        background: var(--primary);
        color: white;
        font-weight: 700; /* Make active link bolder to match desktop */
        box-shadow: 0 4px 15px rgba(61, 169, 252, 0.2);
            }

            .mobile-auth-container {
                display: flex;
        flex-direction: row; /* Changed to row for better layout */
        justify-content: center;
        align-items: center;
        gap: 10px;
                padding: 20px;
                background: var(--section-bg);
                border-radius: 15px;
                margin-top: 20px;
            }

            .mobile-auth-container .nav-auth-buttons {
                width: 100%;
                justify-content: center;
            }

            .mobile-auth-container .nav-cta-btn {
                width: 100%;
        flex: 1; /* Allow buttons to grow */
                justify-content: center;
        padding: 12px 20px;
                font-size: 1rem;
            }

    .mobile-auth-container .nav-user-greeting {
        margin: 0;
    }
        }
        
        .portfolio-tabs .nav-link {
            color: var(--dark);
            font-weight: 600;
        }

        @media (max-width: 768px) {
            .hero-title {
                font-size: clamp(2rem, 10vw, 2.5rem);
            }

            .section-padding {
                padding: 60px 0;
            }

            .about-img {
                margin-bottom: 30px;
            }

            .service-card, .product-card {
                margin-bottom: 20px;
            }

            .contact-form {
                padding: 30px 20px;
            }

            .btn-download {
                padding: 10px 20px;
                font-size: 0.9rem;
                margin-right: 5px;
                margin-bottom: 8px;
            }

            .contact-info {
                text-align: center;
            }

            /* Reduce fade effect on smaller screens */
            #partners::before,
            #partners::after {
                width: 50px;
            }

            .form-control {
                padding: 15px 16px;
                font-size: 0.95rem;
            }

            .btn-submit {
                padding: 16px 25px;
                font-size: 1rem;
            }
        }

        @media (max-width: 375px) {
            .hero-title {
                font-size: 1.8rem;
            }

            .hero-subtitle {
                font-size: 0.9rem;
            }

            .section-padding {
                padding: 40px 0;
            }

            .contact-form {
                padding: 20px 10px;
            }

            .form-control {
                padding: 12px 14px;
                font-size: 0.9rem;
            }

            .btn-submit {
                padding: 14px 20px;
                font-size: 0.95rem;
            }

            .footer-map iframe {
                height: 120px;
            }

            .social-icons a {
                width: 30px;
                height: 30px;
                font-size: 0.9rem;
                margin-right: 6px;
            }
        }

        /* Preloader */
        #preloader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--bg-color);
            z-index: 9999;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        /* Add a fade-out transition for the preloader */
        #preloader.fade-out {
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
        }

        .spinner {
            display: inline-block;
        }

        .spinner > div {
            width: 18px;
            height: 18px;
            background-color: var(--primary);
            border-radius: 100%;
            display: inline-block;
            animation: sk-bouncedelay 1.4s infinite ease-in-out both;
        }

        .spinner .bounce1 {
            animation-delay: -0.32s;
        }

        .spinner .bounce2 {
            animation-delay: -0.16s;
        }

        @keyframes sk-bouncedelay {
            0%, 80%, 100% {
                transform: scale(0);
            }
            40% {
                transform: scale(1.0);
            }
        }

        /* Scroll Progress Bar */
        #scrollProgress {
            position: fixed;
            top: 0;
            left: 0;
            width: 0%;
            height: 4px;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            z-index: 1001;
            transition: width 0.3s ease;
        }

        /* Fade-in animation */
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }

        @media (max-width: 1024px) {
            .section-padding {
                padding: 70px 0;
            }

        }

        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Make the animated heading visible when its section is */
        .fade-in.visible .about-description strong {
            opacity: 1;
            transform: translateY(0);
        }
        .fade-in.visible .about-description strong::after {
            transform: scaleX(1);
        }

        /* Enhanced hover effects */
        .service-card, .product-card {
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .btn-submit.loading {
            position: relative;
            pointer-events: none;
        }

        .btn-submit.loading .submit-text {
            opacity: 0;
        }

        .btn-submit.loading::after {
            content: "";
            position: absolute;
            /* Center the spinner */
            top: 50%;
            left: 50%;
            width: 1.2em;
            height: 1.2em;
            margin: -0.6em 0 0 -0.6em;
            border: 2px solid transparent;
            border-top-color: #fff;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        .btn-submit.success::after {
            content: '\f00c'; /* Font Awesome check icon */
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0);
            font-size: 1.5em;
            color: white;
            animation: pop-in 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
        }



        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .form-message {
            font-weight: 600;
            font-size: 1rem;
            padding: 0.5em 1em;
            border-radius: 0.25rem;
            opacity: 0;
            transform: translateY(10px);
            transition: opacity 0.4s ease, transform 0.4s ease;
            margin-top: 1rem;
        }

        .form-message.success {
            color: #155724;
            background-color: #d4edda;
            border: 1px solid #c3e6cb;
        }

        .form-message.error {
            color: #721c24;
            background-color: #f8d7da;
            border: 1px solid #f5c6cb;
        }

        .form-message.show {
            opacity: 1;
            transform: translateY(0);
        }

        @keyframes pop-in {
            to { transform: translate(-50%, -50%) scale(1); }
        }
.product-card img.highlighted { box-shadow: 0 0 20px rgba(61, 169, 252, 0.8); filter: brightness(1.2); transition: all 0.3s ease; }

/* Image Zoom Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.image-modal.show {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.modal-content img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}
.close-modal:focus-visible { outline: 1px solid white; border-radius: 2px; }
.close-modal:hover {
    color: var(--primary);
}

/* Enhanced About Section with Animated Description */
#about {
    background: var(--section-bg);
    background-image: url('images/backtol2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(61, 169, 252, 0.05), rgba(9, 64, 103, 0.05));
    z-index: 0;
}

.about-container {
    position: relative;
    z-index: 1;
}

.about-description-heading {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.about-content {
    position: relative;
    z-index: 1;
}

/* Updated About Description Styles */
.about-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    height: 100%;
    position: relative; /* Needed for absolute positioning of the logo */
    /* Idinagdag ang breathing animation */
    animation: subtle-breathing 12s ease-in-out infinite;
}

.about-description-logo {
    position: absolute;
    top: 20px; /* Inilipat mula sa 'bottom' papuntang 'top' */
    right: 30px;
    width: 60px; /* Pinalaki nang kaunti para mas maging watermark */
    height: auto;
    opacity: 0.08; /* Ginawang mas transparent para maging subtle na watermark */
    filter: grayscale(50%); /* Ginawang medyo gray para hindi masyadong matapang ang kulay */
    transition: all var(--transition-normal); /* Mas smooth na transition */
}

.about-description:hover .about-description-logo {
    opacity: 0.4; /* Medyo lilitaw kapag naka-hover */
    filter: grayscale(0%); /* Ibabalik ang original na kulay */
    transform: scale(1.05); /* Dadagdag ng kaunting paglaki */
}

body.dark-mode .about-description-logo {
    opacity: 0.15; /* In-adjust para maging subtle din sa dark mode */
    mix-blend-mode: lighten; /* Mas magandang blend sa dark background */
}

/* Animated heading for the about description */
.about-description strong {
    color: var(--primary);
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

.about-description strong::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    /* Delay the underline animation until after the text appears */
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.8s;
}

/* Enhanced Tab Navigation */
#aboutTabs {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

#aboutTabs .nav-link {
    background: transparent;
    color: var(--text-color);
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

#aboutTabs .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transition: left 0.3s ease;
    z-index: -1;
}

#aboutTabs .nav-link:hover::before {
    left: 0;
}

#aboutTabs .nav-link:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(61, 169, 252, 0.3);
}

#aboutTabs .nav-link.active {
    background: linear-gradient(135deg, var(--primary), #094067); /* Use a darker blue for dark mode gradient */
    color: white;
    box-shadow: 0 5px 15px rgba(61, 169, 252, 0.3);
}

#aboutTabs .nav-link.active::before {
    left: 0;
}

/* Enhanced Tab Content */
.tab-content {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--glass-shadow);
    position: relative;
    z-index: 2;
    min-height: 200px;
}

.tab-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(61, 169, 252, 0.05), rgba(9, 64, 103, 0.05));
    border-radius: 15px;
    z-index: -1;
}

.tab-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.tab-content ul li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
}

.tab-content ul li::before {
    content: '→';
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;    transition: color 0.3s ease, transform 0.3s ease;
}

.tab-content ul li:hover::before,
.tab-content ul li:focus-within::before {
    color: var(--secondary);
    transform: translateX(5px);
}

.tab-content .tab-pane.active ul li {
    opacity: 1;
    transform: translateX(0);
}

.tab-content .tab-pane.active ul li:nth-child(1) { transition-delay: 0.1s; }
.tab-content .tab-pane.active ul li:nth-child(2) { transition-delay: 0.2s; }
.tab-content .tab-pane.active ul li:nth-child(3) { transition-delay: 0.3s; }
.tab-content .tab-pane.active ul li:nth-child(4) { transition-delay: 0.4s; }
.tab-content .tab-pane.active ul li:nth-child(5) { transition-delay: 0.5s; }
.tab-content .tab-pane.active ul li:nth-child(6) { transition-delay: 0.6s; }

/* Keyframes para sa mga bagong animation */
@keyframes subtle-gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes subtle-breathing {
    0% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    }
    50% {
        transform: scale(1.005);
        box-shadow: 0 12px 40px rgba(61, 169, 252, 0.08);
    }
    100% {
        transform: scale(1);
        box-shadow: var(--glass-shadow);
    }
}

/* Map Container Styles */
.map-container {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.map-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(61, 169, 252, 0.2);
}


/* ==============================================
   AMAZING AUTHENTICATION PAGES (LOGIN/REGISTER)
   ============================================== */

.auth-page {
    background: linear-gradient(135deg, #e0f7fa, #e8eaf6);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 1100px;
    min-height: 700px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    overflow: hidden;
    animation: auth-fade-in 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes auth-fade-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.auth-art-side {
    flex: 1;
    background: linear-gradient(160deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.auth-logo-link {
    display: inline-block;
}

.auth-logo {
    height: 50px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.auth-art-content {
    text-align: left;
    animation: slide-up 0.8s 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.auth-art-content h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.auth-art-content p {
    font-size: 1.1rem;
    opacity: 0.8;
    line-height: 1.6;
}

.auth-background-shape {
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: scale(0);
    animation: pop-in-shape 1.5s 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes pop-in-shape {
    to { transform: scale(1); }
}

.auth-form-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
}

.auth-form-box {
    width: 100%;
    max-width: 400px;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
    animation: slide-up 0.8s 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.auth-subtitle {
    color: var(--dark);
    margin-bottom: 40px;
    animation: slide-up 0.8s 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.input-group-auth {
    position: relative;
    margin-bottom: 25px;
    animation: slide-up 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.input-group-auth:nth-of-type(1) { animation-delay: 0.4s; }
.input-group-auth:nth-of-type(2) { animation-delay: 0.5s; }
.input-group-auth:nth-of-type(3) { animation-delay: 0.6s; }
.input-group-auth:nth-of-type(4) { animation-delay: 0.7s; }

.input-group-auth i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dark);
    transition: color var(--transition-fast);
}

.input-group-auth input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--section-bg);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.input-group-auth input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(61, 169, 252, 0.15);
}

.input-group-auth input:focus + i {
    color: var(--primary);
}

.auth-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
}

.forgot-password {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-auth {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 5px 15px rgba(61, 169, 252, 0.3);
}

.btn-auth:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(61, 169, 252, 0.4);
}

.auth-switch {
    text-align: center;
    margin-top: 30px;
    color: var(--dark);
}

.auth-switch a {
    color: var(--primary);
    font-weight: 600;
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 992px) {
    .auth-art-side { display: none; }
    .auth-container { min-height: auto; }
}

/* Utility class to hide elements accessibly */
.hidden {
    display: none !important;
}

.testimonial-client-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--light);
}

.testimonial-client-name {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 0;
}

.testimonial-client-company {
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 0;
}

/* ==============================================
   CORE VALUES SECTION
   ============================================== */
.value-card-inner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.1), transparent 20%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 1;
}

.value-card-inner {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    height: 100%;
    position: relative; /* Needed for the pseudo-element */
    overflow: hidden; /* Keep the spotlight contained */
    z-index: 2; /* Ensure content is above the spotlight */
    transition: all var(--transition-normal);
    transform: rotateX(var(--rotate-x, 0)) rotateY(var(--rotate-y, 0));
}

.value-card {
    text-align: center;
    box-shadow: 0 5px 25px var(--shadow);
    transition: all var(--transition-normal);
    height: 100%;
    border-radius: var(--border-radius-lg);
    /* This creates the 3D space for the inner card to tilt */
    transform-style: preserve-3d;
    perspective: 1000px;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(61, 169, 252, 0.15);
}
.value-card:hover .value-card-inner {
    /* Add a subtle glow on hover */
    box-shadow: 0 0 30px rgba(61, 169, 252, 0.2);
}
.value-card:hover .value-card-inner::before {
    opacity: 1;
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--light), var(--bg-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    border: 2px solid var(--primary);
    transition: all var(--transition-fast);
}

.value-card:hover .value-card-inner .value-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 8px 20px rgba(61, 169, 252, 0.3);
}

.value-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 15px;
}

.value-description {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.7;
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--light), var(--bg-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    border: 2px solid var(--primary);
    transition: all var(--transition-fast);
}

.value-card:hover .value-card-inner .value-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 8px 20px rgba(61, 169, 252, 0.3);
}

/* ==============================================
   INTERACTIVE TOOLS SECTION
   ============================================== */
.interactive-tools-section {
    background: linear-gradient(135deg, var(--section-bg) 0%, rgba(61, 169, 252, 0.02) 100%);
    position: relative;
    overflow: hidden;
}

.interactive-tools-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(61, 169, 252, 0.03) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(9, 64, 103, 0.02) 0%, transparent 50%);
    z-index: 0;
}

.interactive-tool-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(61, 169, 252, 0.1);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.interactive-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(61, 169, 252, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.interactive-tool-card:hover::before {
    left: 100%;
}

.interactive-tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(61, 169, 252, 0.15);
}

.tool-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.interactive-tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(5deg);
}

.tool-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.tool-description {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.btn-tool {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.btn-tool::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-tool:hover::before {
    left: 100%;
}

.btn-tool:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(61, 169, 252, 0.3);
}

/* Calculator, Estimator, Tours, Animations Modals */
.calculator-container,
.estimator-container,
.tours-container,
.animations-container {
    position: relative;
    z-index: 1;
}

.calculator-results,
.estimator-results {
    background: var(--section-bg);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    border: 1px solid var(--border-color);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.result-label {
    font-weight: 600;
    color: var(--text-color);
}

.result-value {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Tours Styles */
.tour-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tour-btn {
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tour-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 5px 15px rgba(61, 169, 252, 0.3);
}

.tour-viewport {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tour-image {
    display: none;
    position: relative;
}

.tour-image.active {
    display: block;
}

.tour-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.tour-image:hover img {
    transform: scale(1.02);
}

.tour-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.tour-overlay h6 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.tour-overlay p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}

.tour-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Animations Styles */
.animation-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.animation-btn {
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.animation-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 5px 15px rgba(61, 169, 252, 0.3);
}

.animation-viewport {
    position: relative;
    min-height: 400px;
}

.animation-content {
    display: none;
}

.animation-content.active {
    display: block;
}

.process-flowchart {
    text-align: center;
    padding: 20px;
}

.flowchart-svg {
    width: 100%;
    height: auto;
    max-width: 800px;
    margin: 0 auto;
}

.flowchart-svg text {
    fill: var(--text-color);
    font-family: var(--font-family);
    font-weight: 600;
}

.animation-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Animation keyframes for flowcharts */
@keyframes flow-arrow {
    0% {
        stroke-dashoffset: 20;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

.flowchart-svg line {
    stroke-dasharray: 10;
    animation: flow-arrow 2s ease-in-out infinite;
}

/* ==============================================
   FINAL CTA SECTION
   ============================================== */
.final-cta-section {
    padding: 140px 0;
    background-color: var(--secondary);
    color: white;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.final-cta-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.final-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/water-bg-pattern.svg'); /* A subtle SVG pattern */
    background-size: 500px;
    opacity: 0.05;
    animation: pan-background 60s linear infinite;
}

@keyframes pan-background {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* Animated shapes for depth */
.final-cta-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(61, 169, 252, 0.1);
    border-radius: 50%;
    animation: rotate-shape 25s linear infinite;
}

@keyframes rotate-shape {
    from { transform: rotate(0deg) scale(1); }
    to { transform: rotate(360deg) scale(1.1); }
}

/* Dark mode adjustments for Final CTA section */
body.dark-mode .final-cta-title,
body.dark-mode .final-cta-description {
    color: var(--footer-bg); /* Use a dark color for readability on light background */
}

.final-cta-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.final-cta-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: white;
    font-weight: 700;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
}

.final-cta-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.btn-cta-final {
    --x: 50%;
    --y: 50%;
    position: relative;
    display: inline-block;
    padding: 20px 50px;
    background: white;
    color: var(--secondary);
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-cta-final span {
    position: relative;
    z-index: 2;
    transition: color 0.4s ease;
}

.btn-cta-final::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at var(--x) var(--y), var(--primary) 0%, var(--secondary) 100%);
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.btn-cta-final:hover::before { transform: scale(3); }
.btn-cta-final:hover span { color: white; }
.btn-cta-final:hover { transform: scale(1.05); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3); }


/* ==============================================
   WHY CHOOSE US SECTION - REVAMPED
   ============================================== */
.why-choose-us-section {
    background: var(--section-bg);
    position: relative;
    overflow: hidden;
}
.why-choose-us-link {
    background: var(--section-bg);
    position: relative;
    overflow: hidden;
}

.why-choose-us-card {
    background: var(--card-gradient, linear-gradient(135deg, var(--primary), var(--secondary)));
    color: white;
    position: relative; /* For pseudo-element */
    overflow: hidden; /* To contain the spotlight */
    border-radius: var(--border-radius-lg);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform; /* Performance hint for the browser */
    padding: 30px;
    border: none;
    text-align: left;
    width: 100%;
    transform-style: preserve-3d;
    perspective: 1000px;
    cursor: pointer;
    transform: rotateX(var(--rotate-x, 0)) rotateY(var(--rotate-y, 0));
}

.why-choose-us-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

.why-choose-us-card.active,
.why-choose-us-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.why-choose-us-card.active::before,
.why-choose-us-card:hover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.2), transparent 40%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 1;
}

.why-choose-us-card:hover::before {
    opacity: 1;
}

.card-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 0%; /* Start with 0 width */
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 3;
    border-radius: 0 0 0 var(--border-radius-lg);
}

@keyframes progress-bar {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}


.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.card-title-feature {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.card-text-feature {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.6;
}

.why-choose-us-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    height: 100%; /* Let it fill the column */
    min-height: 450px; /* Increased height for a more substantial look */
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

.why-choose-us-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle vignette effect */
    background: radial-gradient(ellipse at center, rgba(0,0,0,0) 50%, rgba(0,0,0,0.3) 100%);
    z-index: 2;
    border-radius: inherit; /* Ensure the overlay respects the parent's rounded corners */
    pointer-events: none; /* Allows clicks to pass through */
}

.why-choose-us-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/noise-texture.png'); /* Subtle noise texture */
    opacity: 0.08;
    border-radius: inherit; /* Ensure the overlay respects the parent's rounded corners */
    z-index: 2;
}

.why-choose-us-image-stack {
    position: relative;
    flex-grow: 1;
}

.why-choose-us-image-stack img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
}

.why-choose-us-image-stack img.active {
    opacity: 1;
    z-index: 1;
    animation-duration: 10s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
}

@keyframes kenburns-in-left { from { transform: scale(1.2) translate(10%, 5%); } to { transform: scale(1) translate(0, 0); } }
@keyframes kenburns-out-right { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.2) translate(-10%, -5%); } }
@keyframes kenburns-in-right { from { transform: scale(1.2) translate(-10%, 5%); } to { transform: scale(1) translate(0, 0); } }
@keyframes kenburns-out-left { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.2) translate(10%, -5%); } }


.why-choose-us-image-stack img[data-kenburns-direction="in-left"].active { animation-name: kenburns-in-left; }
.why-choose-us-image-stack img[data-kenburns-direction="out-right"].active { animation-name: kenburns-out-right; }
.why-choose-us-image-stack img[data-kenburns-direction="in-right"].active { animation-name: kenburns-in-right; }
.why-choose-us-image-stack img[data-kenburns-direction="out-left"].active { animation-name: kenburns-out-left; }

.btn-why-choose-us-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    color: white;
    padding: 20px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--transition-fast);
}

.btn-why-choose-us-cta:hover {
    background: var(--primary);
    color: white;
}

.btn-why-choose-us-cta i {
    margin-left: 10px;
    transition: transform var(--transition-fast);
}

.btn-why-choose-us-cta:hover i {
    transform: translateX(5px);
}

/* ==============================================
   PORTFOLIO SECTION STYLES
   ============================================== */
.portfolio-section {
    background: linear-gradient(135deg, var(--section-bg) 0%, rgba(61, 169, 252, 0.02) 100%);
    position: relative;
    overflow: hidden;
}

.portfolio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(61, 169, 252, 0.03) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(9, 64, 103, 0.02) 0%, transparent 50%);
    z-index: 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.portfolio-item-wrapper {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    perspective: 1500px;
}

.portfolio-item-wrapper.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.card {
    width: 100%;
    height: 340px;
    margin: 0;
    perspective: 1500px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px var(--shadow);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255, 255, 255, 0.9) 100%);
    border: 1px solid rgba(61, 169, 252, 0.1);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(61, 169, 252, 0.05), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 1;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(61, 169, 252, 0.2);
}

.card:hover::before {
    opacity: 1;
}

.content {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.75, 0, 0.85, 1);
    border-radius: inherit;
}

.more {
    display: none;
}

.more:checked ~ .content {
    transform: rotateY(180deg);
}

.front,
.back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    border-radius: inherit;
    overflow: hidden;
}

.front {
    background: var(--card-bg);
    background-size: cover;
    background-position: center center;
    &::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: block;
        border-radius: inherit;
        backface-visibility: hidden;
        background: linear-gradient(
            40deg,
            rgba(61, 169, 252, 0.7),
            rgba(189, 187, 73, 0.7)
        );
    }
    .inner {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 1.5rem;
        transform: translateZ(80px) scale(0.94);
        position: relative;
        z-index: 1;
    }
}

.back {
    transform: rotateY(180deg);
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    .inner {
        height: 100%;
        display: flex;
        flex-direction: column;
        padding: 1.5rem;
        transform: translateZ(80px) scale(0.94);
        justify-content: space-between;
        position: relative;
        z-index: 1;
    }
}

.front .inner {
    text-align: center;
}

.front h2 {
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.rating {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.back .inner .info {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    i {
        margin-right: 0.5rem;
        font-size: 1.2rem;
    }
    .icon {
        margin-left: 0.5rem;
        span {
            display: block;
            margin-top: -0.25rem;
            font-size: 0.8rem;
            font-weight: 600;
            white-space: nowrap;
        }
    }
}

.back .inner .description {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-color);
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 0.5rem;
}

.back .inner .location,
.back .inner .price {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back .inner .location {
    justify-self: flex-start;
}

.back .inner .price {
    justify-self: flex-end;
}

.button {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    min-height: 3rem;
    background-color: transparent;
    border: solid 2px white;
    color: white;
    border-radius: 8px;
    text-align: center;
    backface-visibility: hidden;
    transition: all 0.3s ease-in-out;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
    margin-top: auto;

    &:hover {
        background-color: white;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
        text-shadow: none;
        color: var(--primary);
        transform: translateY(-2px);
    }

    &:focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: 2px;
    }

    &.return {
        color: var(--primary);
        border-color: var(--primary);
        text-shadow: none;
        &:hover {
            background-color: var(--primary);
            color: white;
            box-shadow: 0 5px 15px rgba(61, 169, 252, 0.3);
        }
    }
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--section-bg);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}



.portfolio-pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.portfolio-pagination .pagination {
    margin: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 50px;
    overflow: hidden;
}

.portfolio-pagination .page-link {
    color: var(--text-color);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 12px 18px;
    margin: 0;
    border-radius: 0 !important; /* Override bootstrap */
    transition: all var(--transition-fast);
    font-weight: 500;
}

.portfolio-pagination .page-link:hover {
    color: var(--primary);
    background: var(--light);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.portfolio-pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(61, 169, 252, 0.3);
}

.portfolio-pagination .page-item.disabled .page-link {
    color: #6c757d;
    background: var(--section-bg);
    border-color: var(--border-color);
    cursor: not-allowed;
}

.portfolio-pagination .page-item:first-child .page-link {
    border-radius: 50px 0 0 50px !important;
}
.portfolio-pagination .page-item:last-child .page-link {
    border-radius: 0 50px 50px 0 !important;
}

/* Responsive Design for Portfolio Flip Cards */
@media (max-width: 992px) {
    .card {
        width: 380px;
        height: 300px;
        margin: 0.8em;
    }

    .front .inner,
    .back .inner {
        padding: 1.2em;
    }

    .front h2 {
        font-size: 1.1rem;
    }

    .rating {
        font-size: 12px;
    }

    .back .inner .info span {
        font-size: 1.8em;
    }

    .back .inner .description {
        font-size: 0.8em;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 12px;
    }

    .card {
        width: 100%;
        max-width: 350px;
        height: auto;
        min-height: 280px;
        margin: 0.5em 0;
    }

    .front .inner,
    .back .inner {
        padding: 1em;
        grid-template-rows: auto auto auto 1fr auto;
    }

    .front h2 {
        font-size: 1rem;
        margin-bottom: 0.2em;
    }

    .rating {
        font-size: 11px;
    }

    .back .inner .info {
        flex-direction: column;
        text-align: center;
        margin-bottom: 10px;
    }

    .back .inner .info span {
        font-size: 1.5em;
        margin-bottom: 5px;
    }

    .back .inner .info .icon {
        margin-left: 0;
    }

    .back .inner .description {
        font-size: 0.75em;
        max-height: 80px;
        overflow-y: auto;
    }

    .back .inner .location,
    .back .inner .price {
        font-size: 0.8em;
        text-align: center;
    }

    .button {
        height: 2.5em;
        line-height: 2.4em;
        font-size: 0.9em;
    }

    .portfolio-pagination {
        margin-top: 30px;
    }

    .portfolio-pagination .page-link {
        padding: 12px 16px;
        min-width: 44px;
        min-height: 44px;
        font-size: 0.9rem;
    }

    /* Enhanced mobile filter controls */
    .filter-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .filter-btn {
        padding: 12px 16px;
        min-height: 44px;
        font-size: 0.9rem;
        border-radius: 25px;
        transition: all 0.2s ease;
        flex: 1;
        min-width: 120px;
    }

    .portfolio-search input,
    .portfolio-sort select {
        padding: 12px 16px;
        min-height: 44px;
        font-size: 1rem;
    }

    .filter-btn:active {
        transform: scale(0.95);
    }
}

/* Responsive Design for About Section */
@media (max-width: 768px) {
    .about-description {
        padding: 25px;
        margin-bottom: 40px;
        font-size: 1.1rem; /* Slightly larger base font for mobile readability */
    }

    .about-description-heading {
        /* Gumamit ng clamp para sa responsive font-size */
        font-size: clamp(1.6rem, 5vw, 2rem);
        margin-bottom: 1.5rem;
    }

    .about-description p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.2rem;
    }

    .about-description strong {
        font-size: 1.1rem;
    }

    .about-img {
        max-width: 250px;
        margin-bottom: 30px;
    }

    #aboutTabs {
        padding: 8px;
        margin-bottom: 20px;
    }

    #aboutTabs .nav-link {
        padding: 12px 18px;
        font-size: 0.95rem;
        margin-bottom: 5px;
        min-height: 48px; /* Ensure touch targets are at least 48px */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #aboutTabs .nav-link i {
        margin-right: 8px;
    }

    .tab-content {
        padding: 25px;
        border-radius: 12px;
    }

    .tab-content ul {
        padding-left: 0;
    }

    .tab-content ul li {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 12px;
        padding-left: 20px;
    }

    .tab-content ul li::before {
        font-size: 1.2rem;
        left: 0;
    }
}

/* Loading state for Portfolio and Product Grids */
.portfolio-grid.loading,
.product-grid.loading {
    min-height: 300px;
    position: relative;
}

/* Skeleton Loading Styles */
.skeleton-loading {
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton {
    pointer-events: none;
}

.skeleton-shimmer {
    background: linear-gradient(90deg, var(--border-color) 25%, rgba(255, 255, 255, 0.1) 50%, var(--border-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton .card-image {
    height: 200px;
    background: var(--section-bg);
}

.skeleton .card-title {
    height: 24px;
    width: 80%;
    margin-bottom: 8px;
}

.skeleton .card-client,
.skeleton .card-location {
    height: 16px;
    width: 60%;
    margin-bottom: 4px;
}

.skeleton .card-description-front {
    height: 40px;
    width: 100%;
}

.skeleton .category-label {
    height: 20px;
    width: 120px;
}

.skeleton .btn-view-details {
    height: 40px;
    width: 40px;
    border-radius: 50%;
}

.skeleton .category-icon {
    height: 40px;
    width: 40px;
    border-radius: 50%;
}

.skeleton .year-badge {
    height: 24px;
    width: 60px;
    border-radius: 12px;
}

@keyframes skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes skeleton-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.portfolio-grid > .col-12,
.product-grid > .col-12 {
    grid-column: 1 / -1; /* Make the 'no results' message span all columns */
}


/* ==============================================
   PORTFOLIO MODAL STYLES
   ============================================== */
.project-modal .modal-dialog {
    max-width: 700px;
}

.project-modal .modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.project-modal .modal-header {
    background: var(--light);
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    padding: 20px 30px;
}

.project-modal .modal-title {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.4rem;
}

.project-modal .modal-body {
    padding: 30px;
    background: var(--card-bg);
    font-size: 1.05rem;
}

.project-modal .project-details p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.project-modal .project-details strong {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
}

.project-modal .modal-footer {
    border-top: 1px solid var(--border-color);
    background: var(--section-bg);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    padding: 20px 30px;
}

.project-modal .btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.project-modal .btn-close:hover {
    opacity: 1;
}

/* Enhanced Filter Buttons */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background: var(--card-bg);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.filter-btn > * {
    position: relative;
    z-index: 1;
}

.filter-btn:hover {
    background: transparent;
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(61, 169, 252, 0.25);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(61, 169, 252, 0.25);
    transform: translateY(-2px);
}

.filter-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(61, 169, 252, 0.25);
}

/* Portfolio Responsive Design */
@media (max-width: 992px) {
    .portfolio-grid {
        gap: 20px;
    }

    .portfolio-card .card-header {
        padding: 15px;
    }

    .portfolio-card .card-body {
        padding: 20px;
    }

    .portfolio-card .card-footer {
        padding: 15px 20px;
    }

    .portfolio-controls {
        flex-direction: column;
        gap: 20px;
    }

    .portfolio-search {
        min-width: auto;
        margin-right: 0;
    }

    .portfolio-sort {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        padding: 12px;
    }

    .portfolio-card .card-body {
        padding: 15px;
    }

    .portfolio-card .card-title {
        font-size: 1rem;
    }

    .project-count {
        text-align: center;
        margin-bottom: 20px;
        font-size: 1rem;
    }

    .portfolio-pagination {
        margin-top: 30px;
    }

    .portfolio-pagination .page-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .portfolio-card .card-title {
        font-size: 0.95rem;
    }

    .portfolio-card .card-footer {
        padding: 10px 12px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .portfolio-search input,
    .portfolio-sort select {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* Mobile-specific animation for hero text */
@media (max-width: 991.98px) {
    /* Disable the interactive hero text animation on mobile */
    #interactive-hero-text::before,
    .hero-title-reflection span::before {
        animation: none;
        content: none;
    }
}

/* Modern Services Section Styles */

/* Scoped to .services-section to avoid global overrides */
.services-section {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--text-color);
    text-rendering: optimizeLegibility;
    font-weight: initial;
}

.services-section #pageHeaderTitle {
    margin: 2rem 0;
    text-transform: uppercase;
    text-align: center;
    font-size: 2.5rem;
}

/* Modern Service Cards */
.services-section .postcard {
    flex-wrap: wrap;
    display: flex;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius-lg);
    margin: 0 0 2rem 0;
    overflow: hidden;
    position: relative;
    color: var(--text-color);
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.services-section .postcard:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(61, 169, 252, 0.15);
}

.services-section .postcard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(61, 169, 252, 0.02), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 1;
}

.services-section .postcard:hover::before {
    opacity: 1;
}

/* Remove old color-themed backgrounds */
.services-section .postcard.green,
.services-section .postcard.blue,
.services-section .postcard.red,
.services-section .postcard.yellow {
    background-color: var(--card-bg) !important;
}

.services-section .postcard.green::before,
.services-section .postcard.blue::before,
.services-section .postcard.red::before,
.services-section .postcard.yellow::before {
    background-image: none !important;
}

.services-section i.fas {
    display: none; /* Remove Font Awesome icons */
    
    .t-dark {
        color: #18151f;
    }
    
    a {
        color: inherit;
    }
    
    h1, .h1 {
        margin-bottom: 0.5rem;
        font-weight: 500;
        line-height: 1.2;
    }
    
    .small {
        font-size: 80%;
    }

    .postcard__title {
        font-size: 1.75rem;
    }

    .postcard__img {
        max-height: 180px;
        width: 100%;
        object-fit: cover;
        position: relative;
    }

    .postcard__img_link {
        display: contents;
    }

    .postcard__bar {
        width: 50px;
        height: 10px;
        margin: 10px 0;
        border-radius: 5px;
        background-color: #424242;
        transition: width 0.2s ease;
    }

    .postcard__text {
        padding: 1.5rem;
        position: relative;
        display: flex;
        flex-direction: column;
    }

    .postcard__preview-txt {
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: justify;
        height: 100%;
    }

    .postcard__tagbox {
        display: flex;
        flex-flow: row wrap;
        font-size: 14px;
        margin: 20px 0 0 0;
        padding: 0;
        justify-content: center;

        .tag__item {
            display: inline-block;
            background: rgba(83, 83, 83, 0.4);
            border-radius: 3px;
            padding: 2.5px 10px;
            margin: 0 5px 5px 0;
            cursor: default;
            user-select: none;
            transition: background-color 0.3s;

            &:hover {
                background: rgba(83, 83, 83, 0.8);
            }
        }
    }

    &:before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background-image: linear-gradient(-70deg, #424242, transparent 50%);
        opacity: 1;
        border-radius: 10px;
    }

    &:hover .postcard__bar {
        width: 100px;
    }
}

@media screen and (min-width: 769px) {
    .services-section .postcard {
        flex-wrap: inherit;

        .postcard__title {
            font-size: 2rem;
        }

        .postcard__tagbox {
            justify-content: start;
        }

        .postcard__img {
            max-width: 300px;
            max-height: 100%;
            transition: transform 0.3s ease;
        }

        .postcard__text {
            padding: 3rem;
            width: 100%;
        }

        .media.postcard__text:before {
            content: "";
            position: absolute;
            display: block;
            background: #18151f;
            top: -20%;
            height: 130%;
            width: 55px;
        }

        &:hover .postcard__img {
            transform: scale(1.1);
        }

        &:nth-child(2n+1) {
            flex-direction: row;
        }

        &:nth-child(2n+0) {
            flex-direction: row-reverse;
        }

        &:nth-child(2n+1) .postcard__text::before {
            left: -12px !important;
            transform: rotate(4deg);
        }

        &:nth-child(2n+0) .postcard__text::before {
            right: -12px !important;
            transform: rotate(-4deg);
        }
    }
}
@media screen and (min-width: 1024px){
    .services-section .postcard__text {
        padding: 2rem 3.5rem;
    }
    
    .services-section .postcard__text:before {
        content: "";
        position: absolute;
        display: block;
      
        top: -20%;
        height: 130%;
        width: 55px;
    }
    
    .services-section .postcard.dark .postcard__text:before {
        background: #18151f;
    }
    .services-section .postcard.light .postcard__text:before {
        background: #e1e5ea;
    }
}

/* COLORS */
.services-section .postcard .postcard__tagbox .green.play:hover {
    background: var(--main-green);
    color: black;
}
.services-section .green .postcard__title:hover {
    color: var(--main-green);
}
.services-section .green .postcard__bar {
    background-color: var(--main-green);
}
.services-section .green::before {
    background-image: linear-gradient(
        -30deg,
        var(--main-green-rgb-015),
        transparent 50%
    );
}
.services-section .green:nth-child(2n)::before {
    background-image: linear-gradient(30deg, var(--main-green-rgb-015), transparent 50%);
}

.services-section .postcard .postcard__tagbox .blue.play:hover {
    background: var(--main-blue);
}
.services-section .blue .postcard__title:hover {
    color: var(--main-blue);
}
.services-section .blue .postcard__bar {
    background-color: var(--main-blue);
}
.services-section .blue::before {
    background-image: linear-gradient(-30deg, var(--main-blue-rgb-015), transparent 50%);
}
.services-section .blue:nth-child(2n)::before {
    background-image: linear-gradient(30deg, var(--main-blue-rgb-015), transparent 50%);
}

.services-section .postcard .postcard__tagbox .red.play:hover {
    background: var(--main-red);
}
.services-section .red .postcard__title:hover {
    color: var(--main-red);
}
.services-section .red .postcard__bar {
    background-color: var(--main-red);
}
.services-section .red::before {
    background-image: linear-gradient(-30deg, var(--main-red-rgb-015), transparent 50%);
}
.services-section .red:nth-child(2n)::before {
    background-image: linear-gradient(30deg, var(--main-red-rgb-015), transparent 50%);
}

.services-section .postcard .postcard__tagbox .yellow.play:hover {
    background: var(--main-yellow);
    color: black;
}
.services-section .yellow .postcard__title:hover {
    color: var(--main-yellow);
}
.services-section .yellow .postcard__bar {
    background-color: var(--main-yellow);
}
.services-section .yellow::before {
    background-image: linear-gradient(
        -30deg,
        var(--main-yellow-rgb-015),
        transparent 50%
    );
}
.services-section .yellow:nth-child(2n)::before {
    background-image: linear-gradient(
        30deg,
        var(--main-yellow-rgb-015),
        transparent 50%
    );
}

@media screen and (min-width: 769px) {
    .services-section .green::before {
        background-image: linear-gradient(
            -80deg,
            var(--main-green-rgb-015),
            transparent 50%
        );
    }
    .services-section .green:nth-child(2n)::before {
        background-image: linear-gradient(
            80deg,
            var(--main-green-rgb-015),
            transparent 50%
        );
    }

    .services-section .blue::before {
        background-image: linear-gradient(
            -80deg,
            var(--main-blue-rgb-015),
            transparent 50%
        );
    }
    .services-section .blue:nth-child(2n)::before {
        background-image: linear-gradient(80deg, var(--main-blue-rgb-015), transparent 50%);
    }

    .services-section .red::before {
        background-image: linear-gradient(-80deg, var(--main-red-rgb-015), transparent 50%);
    }
    .services-section .red:nth-child(2n)::before {
        background-image: linear-gradient(80deg, var(--main-red-rgb-015), transparent 50%);
    }
    
    .services-section .yellow::before {
        background-image: linear-gradient(
            -80deg,
            var(--main-yellow-rgb-015),
            transparent 50%
        );
    }
    .services-section .yellow:nth-child(2n)::before {
        background-image: linear-gradient(
            80deg,
            var(--main-yellow-rgb-015),
            transparent 50%
        );
    }
}

@media (max-width: 768px) {
    .hero-section {
        background-size: 720px 1080px !important;
    }
}

/* ==============================================
   ENHANCED PROCESS ANIMATIONS
   ============================================== */

/* Slide and bounce entrance animations */
@keyframes slideInBounce {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    60% {
        opacity: 1;
        transform: translateY(-10px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInLeftBounce {
    0% {
        opacity: 0;
        transform: translateX(-100px) scale(0.8);
    }
    60% {
        opacity: 1;
        transform: translateX(20px) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideInRightBounce {
    0% {
        opacity: 0;
        transform: translateX(100px) scale(0.8);
    }
    60% {
        opacity: 1;
        transform: translateX(-20px) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Floating animation for hover effects */
@keyframes floatUp {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-10px); 
    }
}

/* Glow pulse animation */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 15px 35px rgba(61, 169, 252, 0.15), 0 5px 15px rgba(61, 169, 252, 0.05);
    }
    50% {
        box-shadow: 0 25px 50px rgba(61, 169, 252, 0.25), 0 10px 25px rgba(61, 169, 252, 0.15);
    }
}

/* Progress dot pulse animation */
@keyframes pulseDot {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 0 0 rgba(61, 169, 252, 0.7);
    }
    50% { 
        transform: scale(1.15); 
        box-shadow: 0 0 0 10px rgba(61, 169, 252, 0);
    }
}

/* Particle animation */
@keyframes particleFloat {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0);
    }
}

/* Particle effect styles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat 1s ease-out forwards;
}
