:root,
[data-bs-theme="light"] {
    --delivtoo-primary: #1e40af;
    --delivtoo-primary-light: #3b82f6;
    --delivtoo-primary-dark: #1e3a8a;
    --delivtoo-primary-rgb: 30, 64, 175;

    --delivtoo-secondary: #0f172a;
    --delivtoo-secondary-rgb: 5, 150, 105; 

    --delivtoo-accent: #0f79c0;
    --delivtoo-accent-rgb: 14, 165, 233;

    --delivtoo-danger: #dc2626;
    --delivtoo-danger-rgb: 220, 38, 38;

    --delivtoo-warning: #f59e0b;
    --delivtoo-warning-rgb: 245, 158, 11;

    --delivtoo-bg: #f8fafc;
    --delivtoo-surface: #ffffff;
    --delivtoo-surface-hover: #f1f5f9;
    --delivtoo-text: #0f172a;
    --delivtoo-text-muted: #64748b;
    --delivtoo-text-light: #94a3b8;
    --delivtoo-border: #e2e8f0;
    --delivtoo-border-light: #f1f5f9;
    --delivtoo-background-card: white;
    --gradient-primary: linear-gradient(135deg, var(--delivtoo-primary) 0%, var(--delivtoo-primary-light) 100%);
 
    --gradient-secondary: linear-gradient(135deg, var(--delivtoo-secondary) 0%, #960505 50%);

    --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.07), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-popup: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-blue: 0 10px 25px -5px rgba(var(--delivtoo-primary-rgb), 0.25), 0 8px 10px -6px rgba(var(--delivtoo-primary-rgb), 0.2);

    --footer-shadow: var(--shadow-card);

    /* Primary */
    --bs-primary: var(--delivtoo-primary);
    --bs-primary-rgb: var(--delivtoo-primary-rgb);
    --bs-primary-hover: var(--delivtoo-primary-light);
    --bs-primary-active: var(--delivtoo-primary-light);
    --bs-primary-subtle: #1e3a8a;
    --bs-primary-emphasis: #93c5fd;
    --bs-text-on-primary: #0f172a;
    --bs-primary-border-subtle: #2563eb;
    --bs-primary-emphasis-hover:#c5e0ff;
    /* Secondary */
    --bs-secondary: var(--delivtoo-secondary);
    --bs-secondary-rgb: var(--delivtoo-secondary-rgb);
    --bs-secondary-hover: #ffffff;
    --bs-secondary-active: #ffffff;
    --bs-secondary-subtle: #475569;
    --bs-secondary-emphasis: #f1f5f9;
    --bs-text-on-secondary: var(--delivtoo-text-light);
    --bs-secondary-border-subtle: #64748b;
    --bs-text-on-primary: #ffffff;
    /* Danger */
    --bs-danger: var(--delivtoo-danger);
    --bs-danger-rgb: var(--delivtoo-danger-rgb);

    /* Warning */
    --bs-warning: var(--delivtoo-warning);
    --bs-warning-rgb: var(--delivtoo-warning-rgb);
    --bs-text-on-warning: #0f172a;

    /* Body, Text, and Background */
    --bs-body-bg: var(--delivtoo-bg);
    --bs-body-color: var(--delivtoo-text);
    --bs-secondary-bg: var(--delivtoo-surface);
    --bs-tertiary-bg: var(--delivtoo-surface-hover);
    --bs-emphasis-color: var(--delivtoo-secondary);
    --bs-muted-color: var(--delivtoo-text-muted);
    --bs-card-bg: white;
    /* Borders */
    --bs-border-color: var(--delivtoo-border);
    --bs-border-color-translucent: rgba(255, 255, 255, 0.15);

    --bs-box-shadow: var(--shadow-card);
     --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgb(var(--delivtoo-text-rgb))' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


[data-bs-theme="dark"] {
    --delivtoo-primary: #60a5fa;
    --delivtoo-primary-light: #93c5fd;
    --delivtoo-primary-dark: #3b82f6;
    --delivtoo-primary-rgb: 96, 165, 250;

    --delivtoo-secondary: #e2e8f0;
    --delivtoo-secondary-rgb: 52, 211, 153;

    --delivtoo-accent: #38bdf8;
    --delivtoo-accent-rgb: 56, 189, 248;

    --delivtoo-danger: #f87171;
    --delivtoo-danger-rgb: 248, 113, 113;

    --delivtoo-warning: #fbbf24;
    --delivtoo-warning-rgb: 251, 191, 36;

    --delivtoo-bg: #0f172a;
    --delivtoo-surface: #1e293b;
    --delivtoo-surface-hover: #334155;
    --delivtoo-text: #ffffff;
    --delivtoo-text-muted: #94a3b8;
    --delivtoo-text-light: #64748b;
    --delivtoo-border: #334155;
    --delivtoo-border-light: #475569;
    --delivtoo-background-card: rgba(174, 174, 174, 0.32);
    --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.15), 0 1px 2px 0 rgba(0, 0, 0, 0.1);
    --shadow-card-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    --shadow-popup: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 10px 10px -5px rgba(0, 0, 0, 0.15);
    --shadow-blue: 0 10px 25px -5px rgba(var(--delivtoo-primary-rgb), 0.2), 0 8px 10px -6px rgba(var(--delivtoo-primary-rgb), 0.15);

    --footer-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);

    /* Primary */
    --bs-primary: var(--delivtoo-primary);
    --bs-primary-rgb: var(--delivtoo-primary-rgb);
    --bs-primary-hover: var(--delivtoo-primary-light);
    --bs-primary-active: var(--delivtoo-primary-light);
    --bs-primary-subtle: #1e3a8a;
    --bs-primary-emphasis: #93c5fd;
    --bs-text-on-primary: #ffffff;
    --bs-primary-border-subtle: #ffffff;

    /* Secondary */
    --bs-secondary: var(--delivtoo-secondary);
    --bs-secondary-rgb: var(--delivtoo-secondary-rgb);
    --bs-secondary-hover: #ffffff;
    --bs-secondary-active: #ffffff;
    --bs-secondary-subtle: #475569;
    --bs-secondary-emphasis: #f1f5f9;
    --bs-text-on-secondary: var(--delivtoo-text-light);
    --bs-secondary-border-subtle: #64748b;

    /* Danger */
    --bs-danger: var(--delivtoo-danger);
    --bs-danger-rgb: var(--delivtoo-danger-rgb);

    /* Warning */
    --bs-warning: var(--delivtoo-warning);
    --bs-warning-rgb: var(--delivtoo-warning-rgb);
    --bs-text-on-warning: #0f172a;

    /* Body, Text, and Background */
    --bs-body-bg: var(--delivtoo-bg);
    --bs-body-color: var(--delivtoo-text);
    --bs-secondary-bg: var(--delivtoo-surface);
    --bs-tertiary-bg: var(--delivtoo-surface-hover);
    --bs-emphasis-color: var(--delivtoo-secondary);
    --bs-muted-color: var(--delivtoo-text-muted);
    --bs-card-bg: black;
    /* Borders */
    --bs-border-color: var(--delivtoo-border);
    --bs-border-color-translucent: rgba(255, 255, 255, 0.15);

    --bs-box-shadow: var(--shadow-card);
     --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgb(var(--delivtoo-text-rgb))' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* use css3 clamp pour le typography */
body {
    background-color: var(--delivtoo-bg);
    color: var(--delivtoo-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
	font-size: 18px;
    font-size: clamp(16px, 2.5vmin, 18px);
}

h1, .h1 {
    color: var(--delivtoo-text);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-size: clamp(1.75rem, 5vmin, 2.5rem);
}

h2, .h2 {
    color: var(--delivtoo-text);
    font-weight: 700;
    line-height: 1.2;
    /*font-size: clamp(1.5rem, 4vmin, 2rem);*/
    font-size: 37px !important;
}

h3, .h3 {
    color: var(--delivtoo-text);
    font-weight: 600;
    line-height: 1.3;
    font-size: clamp(1.2rem, 3.5vmin, 1.75rem);
}

h4, .h4 {
    font-size: clamp(1.1rem, 3vmin, 1.5rem);
}
h5, .h5 {
    font-size: clamp(1rem, 2.5vmin, 1.2rem);
}
h6, .h6 {
    font-size: clamp(0.9rem, 2.2vmin, 1.1rem);
}
p {
    font-size: clamp(0.9rem, 2.2vmin, 1.0rem);
}

.btn {
    border-radius: 0.50rem; 
    font-weight: 600;
      padding: clamp(0.375rem, 1.25vw, 0.625rem) clamp(0.75rem, 2.5vw, 1.25rem) !important;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem; 
    font-size: 80%;
}
/* Primary Actions - Blue (Professional & Trustworthy) */
.btn-primary,
.btn-gradient-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-blue);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.btn-primary::before,
.btn-gradient-primary::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: all 0.6s ease;
}

.btn-primary:hover,
.btn-gradient-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.3);
    color: white;
    text-decoration: none;
}

.btn-primary:hover::before,
.btn-gradient-primary:hover::before {
    left: 100%;
}

/* Secondary Actions - Green (Success & Positive) */
.btn-secondary,
.btn-gradient-secondary {
    background: var(--gradient-secondary);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover,
.btn-gradient-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(5, 150, 105, 0.3);
    color: white;
    text-decoration: none;
}

/* Outline Buttons - Subtle & Professional */
.btn-outline-primary,
.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--delivtoo-primary); 
    color: var(--delivtoo-primary);
    font-weight: 600;
    padding: 0.75rem 1.5rem; 
    border-radius: 10px; 
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.btn-outline-primary:hover,
.btn-outline-custom:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-outline-primary:hover::before,
.btn-outline-custom:hover::before {
    width: 100%;
}

/* Danger Actions - Red (Critical Actions Only) */

.btn-gradient-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-blue);
}
.btn-gradient-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(var(--delivtoo-primary-rgb), 0.35);
    color: white;
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--delivtoo-primary); 
    color: var(--delivtoo-primary);
}
.btn-outline-custom:hover {
    background: var(--delivtoo-primary);
    color: white;
    transform: translateY(-2px);
}
/* ============================================================================
   PRINCIPLE 1: CONTRAST & PRINCIPLE 8: PATTERN - Navigation
   ============================================================================ */

.navbar {
    background: var(--delivtoo-surface) !important;
    border-bottom: 1px solid var(--delivtoo-border);
    transition: all 0.3s ease;
    padding: clamp(0.5rem, 2vh, 1rem) 0;
    height: clamp(80px, 10vh, 120px);
    min-height: 80px;
}
.navbar-nav {
    display: flex;
    justify-content: space-evenly; 
    width: 100%; 
    flex-grow: 1; 
}
@media (max-width: 987.98px) {
    .navbar {
        padding: 0;
    }
}

.navbar-nav .nav-link {
    color: var(--delivtoo-text) !important;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;

}

.navbar-brand {
    padding-top: 10px;
    font-size: clamp(1.2rem, 4vh, 1.8rem);
}

.navbar-brand img {
    height: clamp(40px, 8vh, 60px); 
    width: auto;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: var(--delivtoo-surface-hover);
    color: var(--delivtoo-primary) !important;
}

.navbar.scrolled {
    background: rgba(var(--delivtoo-bg), 0.4) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--shadow-card);
}


.navbar-brand span {
    color: var(--delivtoo-text);
}

/* ============================================================================
   PRINCIPLE 2: BALANCE - Hero Section
   ============================================================================ */
        /* === HERO SECTION CONTAINER === */
        .hero-section {
            background-color: var(--delivtoo-surface);
            position: relative;
            overflow: hidden;
            color: var(--delivtoo-text);
            min-height: 90vh; 
            display: flex; 
            align-items: center; 
            justify-content: center;
        }

        .hero-banner {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%; 
            background-image: url('/assets/img/banniere/Banniere_Delivtoo.webp');
            background-repeat: no-repeat;
            background-size: cover; 
            background-position: right;
            z-index: 1;
        }

        .hero-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to right, #F8F9FA 20%, rgba(248, 249, 250, 0.1) 50%);
            z-index: 2;
        }

        .hero-content-wrapper {
            position: relative;
            z-index: 3;
            width: 100%; 
            padding: 4vw 1.5rem;
        }



        .hero-subtitle {
            font-weight: 700;
            color: var(--delivtoo-primary);
            letter-spacing: 0.1vw;
            /*font-size: clamp(0.8rem, 1.2vw, 1rem);*/
            font-size: clamp(1.125rem, 2vw, 1.25rem);
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
            margin-bottom: 100px !important;
        }


        .hero-title {
            font-size: clamp(2rem, 4vw, 4rem);
            font-weight: 800;
            color: var(--delivtoo-text-light);
            margin-bottom: 1.5vw;
            margin-top: 1.3vw;
            line-height: 1.15;
            word-break: break-word;
            overflow-wrap: break-word;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); 
        }

        .hero-title .text-gradient {
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
        }

        .hero-description {
            font-size: clamp(1rem, 1.2vw, 1.1rem);
            line-height: 1.6;
            margin-bottom: 2vw;
            word-break: break-word;
            overflow-wrap: break-word;
            text-shadow: 1px 1px 2px rgba(255, 255, 255);
            color: black;
        }


        @media (max-width: 1024px) {
            .hero-banner {
                background-image: url('/assets/img/banniere/Banniere_tablette.webp');

            }
            .hero-section::before {
                background: linear-gradient(to right, rgba(248, 249, 250, 0.9) 30%, rgba(248, 249, 250, 0.2) 80%);
            }
            .hero-content-wrapper {
                padding: 6vw 0;
            }
        }

        @media (max-width: 768px) {
            .hero-content-wrapper {
                min-height: auto;
                text-align: center; 
                padding: 3rem 1.5rem; 
            }

            .hero-banner {
                background-image: url('/assets/img/banniere/Banniere_mobile.webp');
                opacity: 1; 
            }
            .hero-section::before {
                background: linear-gradient(to right, #F8F9FA 50%, rgba(180, 205, 230, 0.6) 100%);
            }
            .hero-section {
                min-height: 50vw;
            }
            .hero-title {
                font-size: clamp(2rem, 2vw, 2rem);
                margin-top: 20px;
                margin-bottom: 20px;
                line-height: 45px;
            }

            .hero-description {
                font-size: 1em;
                margin-left: auto;
                margin-right: auto;
            }
        }
/* ============================================================================
   PRINCIPLE 4: PROPORTION - Cards & Content Blocks
   ============================================================================ */
.card{
    background-color: var(--delivtoo-background-card);
    border-radius: 1rem;
}
.card-popup {
    background: var(--delivtoo-surface);
    border: 1px solid var(--delivtoo-border); 
    border-radius: 16px; 
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-popup:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-popup);
    border-color: var(--delivtoo-primary);
}

.card-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px; 
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

/* ============================================================================
   PRINCIPLE 3: EMPHASIS - Service Cards with Balanced Colors
   ============================================================================ */

.service-card {
    background: var(--delivtoo-surface);
    border-radius: 16px; 
    padding: 2rem; 
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--delivtoo-border-light); 
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-popup);
    border-color: var(--delivtoo-primary);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px; 
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: all 0.3s ease;
}

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

/* Balanced Service Icons - Different Colors for Each */
.service-icon {
    width: 5rem; 
    height: 5rem; 
    margin: 0 auto 1.5rem; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em; 
}



.service-title {
    font-size: 1.5em; 
    font-weight: 700;
    color: var(--delivtoo-text);
    margin-bottom: 1rem; 
}

.service-description {
    color: var(--delivtoo-text-muted);
    line-height: 1.6;
}

/* Service Badges - Subtle Colors */
.service-badge {
    background: var(--delivtoo-surface-hover);
    color: var(--delivtoo-primary);
    border: 1px solid var(--delivtoo-border); 
    font-size: 0.875em; 
    font-weight: 600;
    padding: 0.5rem 1rem; 
    border-radius: 50px; 
    display: inline-flex;
    align-items: center;
    gap: 0.5rem; 
}

/* ============================================================================
   PRINCIPLE 7: RHYTHM - Consistent Spacing
   ============================================================================ */

.section-padding {
    padding: 5rem 0; 
}

.section-bg-surface {
    background: var(--delivtoo-surface);
}

.section-bg-default {
    background: var(--delivtoo-bg);
}

.section-tagline {
    font-size: 1.1em; 
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--delivtoo-primary);
    margin-bottom: 1rem; 
    display: inline-block;
}

.section-title {
    font-size: clamp(2em, 4vw, 3em); 
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem; 
    color: var(--delivtoo-text);
}

.section-paragraph {
    font-size: 1em; 
    line-height: 1.7;
    color: var(--delivtoo-text-muted);
    max-width: 800px;
    margin-bottom: 2rem; 
}


/* ============================================================================
   AFFICHAGE MOBILE DES TITRES & ESPACEMENT SECTION
   ============================================================================ */

@media (max-width: 768px) {
    h2, .h2 {
        color: var(--delivtoo-text);
        font-weight: 600;
        line-height: 1.2;
        font-size: 23px !important;
    } 

    .service-title {
        font-size: 1em; 
        font-weight: 700;
        color: var(--delivtoo-text);
        margin-bottom: 1rem; 
    }

    .tracking-section {
        background: var(--delivtoo-bg);
        padding: 1rem 0 !important; 
    }

    .section-padding{
        padding: 2.5rem 0 !important;
    }

    .section-paragraph {
        font-size: 0.9em; 
        line-height: 1.7;
        color: var(--delivtoo-text-muted);
        max-width: 800px;
        margin-bottom: 2rem; 
    }


}

/* ============================================================================
   PRINCIPLE 10: MOVEMENT - Tracking Section
   ============================================================================ */

.tracking-section {
    background: var(--delivtoo-bg);
    padding: 4rem 0; 
}

.tracking-card {
    background: var(--delivtoo-surface);
    border-radius: 20px; 
    padding: 3rem; 
    box-shadow: var(--shadow-popup);
    border: 1px solid var(--delivtoo-border-light); 
    position: relative;
    overflow: hidden;
}

.tracking-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px; 
    background: var(--gradient-primary);
}

/* Tracking Feature Icons - Balanced Colors */
.tracking-feature-icon {
    width: 3.75rem; 
    height: 3.75rem; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5em; 
}

.tracking-feature-icon.icon-realtime {
    background: var(--gradient-accent);
}

.tracking-feature-icon.icon-notifications {
    background: var(--gradient-secondary);
}

.tracking-feature-icon.icon-security {
    background: var(--gradient-primary);
}

/* ============================================================================
   PRINCIPLE 11: VARIETY - Package Cards
   ============================================================================ */

.package-card {
    background: var(--delivtoo-surface);
    border-radius: 16px; 
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--delivtoo-border-light); 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.package-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-popup);
    border-color: var(--delivtoo-primary);
}

.package-image {
    width: 100%;
    height: 260px; 
    object-fit: cover;
    transition: transform 0.3s ease;
}

.package-card:hover .package-image {
    transform: scale(1.05);
}

.package-info {
    padding: 1.5rem; 
}

/* Package Badges - Subtle Variety */
.package-badge {
    font-size: 0.75em; 
    font-weight: 600;
    padding: 0.25rem 0.75rem; 
    border-radius: 50px; 
    color: white;
}

.package-badge.badge-light {
    background: var(--gradient-accent);
}

.package-badge.badge-standard {
    background: var(--gradient-primary);
}

.package-badge.badge-heavy {
    background: var(--gradient-secondary);
}

/* ============================================================================
   PRINCIPLE 12: UNITY - Delivery Service Items
   ============================================================================ */

.delivery-service-item {
    background: var(--delivtoo-surface);
    padding: 1.5rem; 
    border-radius: 12px; 
    font-weight: 500;
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--delivtoo-border-light); 
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--delivtoo-text);
}

.delivery-service-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--delivtoo-primary);
}

.delivery-service-item strong {
    color: var(--delivtoo-primary);
}

.delivery-service-item i {
    color: var(--delivtoo-accent);
}

/* ============================================================================
   PRINCIPLE 3: EMPHASIS - Stats Section (Minimal Red Usage)
   ============================================================================ */

.stats-section {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 0; 
    position: relative;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem; 
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px; 
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2); 
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 3em; 
    font-weight: 900;
    margin-bottom: 0.5rem; 
    display: block;
}

.stat-label {
    font-size: 1em; 
    opacity: 0.9;
}

/* ============================================================================
   FORM CONTROLS - Professional Styling
   ============================================================================ */

.form-control {
    background: var(--delivtoo-surface);
    border: 2px solid var(--delivtoo-border); 
    color: var(--delivtoo-text);
    border-radius: 12px; 
    padding: 0.85rem 1.0625rem;
    font-size: clamp(13.6px, 11.9px + 0.425vw, 15.3px);
    transition: all 0.3s ease;
}

.form-control:focus {
    background: var(--delivtoo-surface);
    border-color: var(--delivtoo-primary);
    color: var(--delivtoo-text);
    box-shadow: 0 0 0 3px rgba(var(--delivtoo-primary-rgb), 0.1); 
}

.form-control::placeholder {
    color: var(--delivtoo-text-muted);
}

.input-group-text {
    background: var(--delivtoo-surface);
    border-color: var(--delivtoo-border); 
    color: var(--delivtoo-text-muted);
}


/* ============================================================================
   THEME TOGGLE BUTTON
   ============================================================================ */

.theme-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background: var(--delivtoo-surface);
    border: 1px solid var(--delivtoo-border); 
    width: 45px; 
    height: 45px; 
    box-shadow: var(--shadow-card-hover);
}
.theme-toggle i {
    color: var(--delivtoo-primary);
}

.theme-toggle:hover {

    box-shadow: var(--shadow-card-hover);
    border-color: var(--delivtoo-primary);
}


/* ============================================================================
   ANIMATIONS & ACCESSIBILITY
   ============================================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
:focus {
    outline: 2px solid var(--delivtoo-primary); 
    outline-offset: -1px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary,
    .btn-gradient-primary,
    .btn-secondary,
    .btn-gradient-secondary {
        border: 2px solid currentColor; 
    }
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
    .theme-toggle,
    .btn,
    .navbar {
        display: none !important;
    }

    .hero-section,
    .stats-section {
        background: white !important;
        color: black !important;
    }

    .card-popup,
    .service-card,
    .package-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important; 
    }
}

:root {
    /* Footer specific variables */
    --footer-gradient-subtle: linear-gradient(135deg,
        rgba(var(--delivtoo-primary-rgb), 0.02) 0%,
        rgba(var(--delivtoo-secondary-rgb), 0.02) 50%,
        rgba(var(--delivtoo-accent-rgb), 0.02) 100%);

    --footer-shadow-light: 0 -4px 20px rgba(0, 0, 0, 0.05); 
    --footer-shadow-dark: 0 -4px 20px rgba(0, 0, 0, 0.15); 

    /* Enhanced footer button gradients */
    --footer-action-gradient: linear-gradient(135deg,
        var(--delivtoo-primary) 0%,
        var(--delivtoo-secondary) 100%);

    --footer-social-gradient: linear-gradient(135deg,
        var(--delivtoo-accent) 0%,
        var(--delivtoo-primary) 100%);
}


/* Enhanced footer main section */
.footer-main {
    padding: 5rem 0 3rem; 
    background: transparent;
}
/* Professional brand section with better contrast */
.footer-brand .brand-title {
    color: var(--delivtoo-primary);
    font-size: 2em; 
    font-weight: 900;
    margin-bottom: 1rem; 
    text-transform: uppercase;
    letter-spacing: 2px; 
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}
.footer-brand .brand-description {
    color: var(--delivtoo-text-muted);
    font-size: 1.1em; 
    line-height: 1.7;
    margin-bottom: 2rem; 
    font-weight: 400;
}
/* Enhanced footer logo with theme support */
.footer-logo {
    filter: brightness(1) contrast(1);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem; 
}
[data-bs-theme="dark"] .footer-logo {
    filter: brightness(1.2) contrast(1.1) saturate(1.1);
}
.footer-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.1);
}
/* Enhanced contact information */
.contact-info {
    margin: 2rem 0; 
    padding: 1.5rem; 
    background: var(--delivtoo-surface-hover);
    border-radius: 12px; 
    border: 1px solid var(--delivtoo-border); 
}
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem; 
    color: var(--delivtoo-text);

    font-weight: 500;
}
.contact-item:last-child {
    margin-bottom: 0;
}
.contact-item i {
    color: var(--delivtoo-primary);
    width: 24px; 
    height: 24px; 
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--delivtoo-primary-rgb), 0.1);
    border-radius: 6px; 
    margin-right: 0.75rem; 
    flex-shrink: 0;
    font-size: 0.9em; 
}
.contact-item a {
    color: var(--delivtoo-text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}
.contact-item a:hover {
    color: var(--delivtoo-primary);
    transform: translateX(3px);
}
/* Enhanced social media links */
.social-links {
    display: flex;
    gap: 1.2rem; 
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem; 
}
@media (min-width: 768px) {
    .social-links {
        justify-content: flex-start;
    }
}
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px; 
    height: 50px; 
    background: var(--delivtoo-surface-hover);
    border: 2px solid var(--delivtoo-border); 
    border-radius: 50%;
    color: var(--delivtoo-text-muted);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.2em; 
    position: relative;
    overflow: hidden;
}
.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--footer-social-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}
.social-link:hover::before {
    opacity: 1;
}
.social-link i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}
.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: transparent;
    color: white;
    box-shadow: 0 10px 30px rgba(var(--delivtoo-primary-rgb), 0.4);
}
/* Enhanced footer section titles */
.footer-title {
    color: var(--delivtoo-text);
    font-size: 1.3em; 
    font-weight: 800;
    margin-bottom: 2rem; 
    padding: 1rem 1.25rem; 
    background: var(--delivtoo-surface-hover);
    border-left: 5px solid var(--delivtoo-primary); 
    border-radius: 0 12px 12px 0; 
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px; 
    box-shadow: var(--shadow-card);
}
.footer-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(var(--delivtoo-primary-rgb), 0.1),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}
.footer-title:hover::before {
    transform: translateX(100%);
}
.footer-title i {
    color: var(--delivtoo-primary);
    font-size: 1.1em; 
    margin-right: 0.75rem; 
    background: rgba(var(--delivtoo-primary-rgb), 0.1);
    width: 32px; 
    height: 32px; 
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px; 
}
/* Enhanced footer links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 1rem; 
}
.footer-link {
    color: var(--delivtoo-text-muted);
    text-decoration: none;
    font-size: 1em; 
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px; 
    position: relative;
    overflow: hidden;
}
.footer-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(var(--delivtoo-primary-rgb), 0.05);
    transition: left 0.3s ease;
}
.footer-link:hover::before {
    left: 0;
}
.footer-link:hover {
    color: var(--delivtoo-primary);
    transform: translateX(10px);
    background: var(--delivtoo-surface-hover);
    box-shadow: var(--shadow-card);
}
.footer-link i {
    color: var(--delivtoo-secondary);

    width: 24px; 
    height: 24px; 
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--delivtoo-secondary-rgb), 0.1);
    border-radius: 6px; 
    margin-right: 0.75rem; 
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.footer-link:hover i {
    color: var(--delivtoo-primary);
    background: rgba(var(--delivtoo-primary-rgb), 0.1);
    transform: scale(1.1);
}
/* Danger link styling */
.footer-link.text-danger {
    color: var(--delivtoo-danger) !important;
}
.footer-link.text-danger:hover {
    color: var(--delivtoo-danger) !important;
    background: rgba(var(--delivtoo-danger-rgb), 0.1);
}
.footer-link.text-danger i {
    color: var(--delivtoo-danger) !important;
    background: rgba(var(--delivtoo-danger-rgb), 0.1);
}
.footer-link.text-danger:hover i {
    color: var(--delivtoo-danger) !important;
    background: rgba(var(--delivtoo-danger-rgb), 0.2);
}

.footer-actions {
    display: flex;
    flex-direction: column;
    gap: 1.2rem; 
}
.footer-actions.vertical {
    gap: 1rem; 
}
.footer-action-btn {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem; 
    background: var(--delivtoo-surface-hover);
    border: 2px solid var(--delivtoo-border); 
    border-radius: 15px; 
    color: var(--delivtoo-text);
    text-decoration: none;
    font-weight: 700;

    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.footer-action-btn.compact {
    padding: 1rem 1.25rem; 
    font-size: 0.95em; 
}
.footer-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--footer-action-gradient);
    transition: left 0.4s ease;
    z-index: 0;
}
.footer-action-btn:hover::before {
    left: 0;
}
.footer-action-btn > * {
    position: relative;
    z-index: 1;
}
.footer-action-btn:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: transparent;
    color: white;
    box-shadow: 0 10px 35px rgba(var(--delivtoo-primary-rgb), 0.3);
}
.footer-action-btn i {
    color: var(--delivtoo-secondary);
    font-size: 1.2em; 
    margin-right: 1rem; 
    background: rgba(var(--delivtoo-secondary-rgb), 0.1);
    width: 36px; 
    height: 36px; 
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px; 
    transition: all 0.3s ease;
}
.footer-action-btn:hover i {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.footer-bottom {
    background: var(--delivtoo-background);
    border-top: 0.3px solid var(--delivtoo-border); 
    padding: 2rem 0; 
    margin-top: 3rem; 
    position: relative;
}
.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px; 
    background: var(--gradient-primary);
    opacity: 0.5;
}
.copyright p {
    color: var(--delivtoo-text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    margin: 0;
}
.copyright strong {
    color: var(--delivtoo-primary);
    font-weight: 900;
    margin: 0 0.5rem; 
    text-transform: uppercase;
    letter-spacing: 1px; 
}
.footer-bottom-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem; 
    font-size: 0.9em; 
    font-weight: 600;
}
@media (min-width: 992px) {
    .footer-bottom-links {
        justify-content: flex-end;
    }
}
.bottom-link {
    color: var(--delivtoo-text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem; 
    border-radius: 8px; 
}
.bottom-link:hover {
    color: var(--delivtoo-primary);
    background: var(--delivtoo-surface-hover);
    transform: translateY(-1px);
}
.separator {
    color: var(--delivtoo-border);
    font-weight: 300;
    font-size: 1.2em; 
}
/* Enhanced back to top button */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(20px);
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.btn-back-top {
    display: flex;
    align-items: center;
    gap: 0.75rem; 
    padding: 1rem 1.5rem; 
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px; 
    color: white;
    font-weight: 700;

    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 25px rgba(var(--delivtoo-primary-rgb), 0.4); 
    position: relative;
    overflow: hidden;
}
.btn-back-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}
.btn-back-top:hover::before {
    left: 100%;
}
.btn-back-top:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 40px rgba(var(--delivtoo-primary-rgb), 0.5);
}
.btn-back-top i {
    font-size: 1.3em; 
    animation: bounceUp 2s infinite;
}
@keyframes bounceUp {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-6px);
    }
    60% {
        transform: translateY(-3px);
    }
}
/*DARK THEME SPECIFIC ENHANCEMENTS */
[data-bs-theme="dark"] .professional-footer {
    background: var(--delivtoo-surface);
    border-top-color: var(--delivtoo-border);
    box-shadow: var(--footer-shadow-dark);
}
[data-bs-theme="dark"] .footer-bottom {
    background: var(--delivtoo-background);
}
[data-bs-theme="dark"] .contact-info {
    background: var(--delivtoo-surface-hover);
    border-color: var(--delivtoo-border);
}
[data-bs-theme="dark"] .social-link {
    background: var(--delivtoo-surface-hover);
    border-color: var(--delivtoo-border);
}
[data-bs-theme="dark"] .footer-title {
    background: var(--delivtoo-surface-hover);
    color: var(--delivtoo-text);
    box-shadow: var(--shadow-card);
}
[data-bs-theme="dark"] .footer-action-btn {
    background: var(--delivtoo-surface-hover);
    border-color: var(--delivtoo-border);
    color: var(--delivtoo-text);
}
/* RESPONSIVE ENHANCEMENTS */
@media (max-width: 767px) {
    .footer-main {
        padding: 4rem 0 2rem; 
    }

    .footer-brand .brand-title {
        font-size: 1.8em; 
        text-align: center;
    }

    .footer-brand .brand-description {
        text-align: center;

    }

    .contact-info {
        margin: 1.5rem 0; 
        padding: 1.25rem; 
    }

    .footer-title {
        font-size: 1.1em; 
        margin-bottom: 1.5rem; 
        padding: 0.9rem 1rem; 
    }

    .footer-actions {
        gap: 1rem; 
    }

    .footer-action-btn {
        padding: 1rem 1.25rem; 
        font-size: 0.95em; 
    }

    .social-links {
        justify-content: center;
        gap: 1rem; 
    }

    .social-link {
        width: 45px; 
        height: 45px; 
        font-size: 1.1em; 
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 0.75rem; 
        text-align: center;
    }

    .separator {
        display: none;
    }

    .btn-back-top {
        padding: 0.75rem; 
        border-radius: 50%;
        width: 50px; 
        height: 50px; 
        justify-content: center;
    }

    .back-top-text {
        display: none !important;
    }

    .back-to-top {
        bottom: 25px;
        right: 25px;
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    .footer-main {
        padding: 4.5rem 0 2.5rem; 
    }

    .footer-brand .brand-title {
        font-size: 1.9em; 
    }

    .social-links {
        gap: 1.1rem; 
    }
}
@media (min-width: 1200px) {
    .footer-main {
        padding: 6rem 0 4rem; 
    }

    .footer-brand .brand-title {
        font-size: 2.2em; 
    }

    .footer-brand .brand-description {
        font-size: 1.2em; 
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-link,
    .footer-action-btn,
    .social-link,
    .btn-back-top {
        transition: none;
    }

    .btn-back-top i {
        animation: none;
    }

    .footer-title::before,
    .footer-link::before,
    .footer-action-btn::before {
        transition: none;
    }
}

@media (prefers-contrast: high) {
    .footer-title {
        border-left-width: 8px; 
    }

    .footer-link {
        border: 1px solid transparent; 
    }

    .footer-link:hover {
        border-color: var(--delivtoo-primary);
    }

    .footer-action-btn {
        border-width: 3px; 
    }

    .social-link {
        border-width: 3px; 
    }
}

/* FOOTER PROFESSIONAL STYLING - FOLLOWING 12 DESIGN PRINCIPLES */
/* PRINCIPLE 3: EMPHASIS - Professional Footer Foundation */
.professional-footer {
    background: var(--delivtoo-surface);
    border-top: 0.3px solid var(--delivtoo-border); 
    position: relative;
    overflow: hidden;
}
.professional-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px; 
    background: var(--gradient-primary);
    opacity: 0.3;
}
/* PRINCIPLE 9: WHITE SPACE - Main Footer Section */
.footer-main {
    padding: 4rem 0 2rem; 
    position: relative;
}
/* PRINCIPLE 5: HIERARCHY - Footer Brand */
.footer-brand {
    margin-bottom: 2rem; 
}
.footer-brand .brand-title {
    color: var(--delivtoo-primary);
    font-size: 1.8em; 
    font-weight: 800;
    margin-bottom: 1rem; 
    text-transform: uppercase;
    letter-spacing: 1px; 
}
.footer-brand .brand-description {
    color: var(--delivtoo-text-muted);

    line-height: 1.6;
    margin-bottom: 1.5rem; 
}
.footer-logo {
    filter: brightness(1.1);
    transition: all 0.3s ease;
}
[data-bs-theme="dark"] .footer-logo {
    filter: brightness(1.3) contrast(1.2);
}
/* PRINCIPLE 11: VARIETY - Contact Information */
.contact-info {
    margin: 1.5rem 0; 
}
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem; 
    color: var(--delivtoo-text-muted);
    font-size: 0.95em; 
}
.contact-item i {
    color: var(--delivtoo-primary);
    width: 20px; 
    flex-shrink: 0;
}
.contact-item a {
    color: var(--delivtoo-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-item a:hover {
    color: var(--delivtoo-primary);
}
/* PRINCIPLE 6: REPETITION - Social Media Links */
.social-links {
    display: flex;
    gap: 1rem; 
    justify-content: center;
    flex-wrap: wrap;
}
@media (min-width: 768px) {
    .social-links {
        justify-content: flex-start;
    }
}
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px; 
    height: 45px; 
    background: var(--delivtoo-surface-hover);
    border: 2px solid var(--delivtoo-border); 
    border-radius: 50%;
    color: var(--delivtoo-text-muted);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1em; 
}
.social-link:hover {
    transform: translateY(-3px) scale(1.05);
    background: var(--delivtoo-primary);
    border-color: var(--delivtoo-primary);
    color: white;
    box-shadow: 0 8px 25px rgba(var(--delivtoo-primary-rgb), 0.3);
}
/* PRINCIPLE 2: BALANCE - Footer Section Titles */
.footer-title {
    color: var(--delivtoo-text);
    font-size: 1.2em; 
    font-weight: 700;
    margin-bottom: 1.5rem; 
    padding: 0.75rem 1rem; 
    background: var(--delivtoo-surface-hover);
    border-left: 4px solid var(--delivtoo-primary); 
    border-radius: 0 8px 8px 0; 
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.footer-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(var(--delivtoo-primary-rgb), 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}
.footer-title:hover::before {
    transform: translateX(100%);
}
.footer-title i {
    color: var(--delivtoo-primary);

}
/* PRINCIPLE 8: PATTERN - Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.8rem; 
}
.footer-link {
    color: var(--delivtoo-text-muted);
    text-decoration: none;
    font-size: 0.95em; 
    display: flex;
    align-items: center;
    padding: 0.5rem 0; 
    transition: all 0.3s ease;
    border-radius: 6px; 
    position: relative;
}
.footer-link:hover {
    color: var(--delivtoo-primary);
    transform: translateX(8px);
    padding-left: 0.5rem; 
}
.footer-link i {
    color: var(--delivtoo-secondary);
    font-size: 0.9em; 
    width: 18px; 
    flex-shrink: 0;
    transition: color 0.3s ease;
}
.footer-link:hover i {
    color: var(--delivtoo-primary);
}
.footer-link.text-danger {
    color: var(--delivtoo-danger) !important;
}
.footer-link.text-danger:hover {
    color: var(--delivtoo-danger) !important;
    background: rgba(var(--delivtoo-danger-rgb), 0.1);
}
.footer-link.text-danger i {
    color: var(--delivtoo-danger) !important;
}
/* PRINCIPLE 4: PROPORTION - Footer Action Buttons */
.footer-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem; 
}
.footer-actions.vertical {
    gap: 0.8rem; 
}
.footer-action-btn {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem; 
    background: var(--delivtoo-surface-hover);
    border: 2px solid var(--delivtoo-border); 
    border-radius: 12px; 
    color: var(--delivtoo-text);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.footer-action-btn.compact {
    padding: 0.8rem 1rem; 
    font-size: 0.9em; 
}
.footer-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: 0;
}
.footer-action-btn:hover::before {
    left: 0;
}
.footer-action-btn > * {
    position: relative;
    z-index: 1;
}
.footer-action-btn:hover {
    transform: translateY(-2px);
    border-color: var(--delivtoo-primary);
    color: white;
    box-shadow: 0 8px 25px rgba(var(--delivtoo-primary-rgb), 0.25);
}
.footer-action-btn i {
    color: var(--delivtoo-secondary);
    font-size: 1.1em; 
    margin-right: 0.75rem; 
    transition: color 0.3s ease;
}
.footer-action-btn:hover i {
    color: white;
}
/* PRINCIPLE 1: CONTRAST - Footer Bottom */
.footer-bottom {
    background: var(--delivtoo-background);
    border-top: 0.3px solid var(--delivtoo-border); 
    padding: 1.5rem 0; 
    /* margin-top: 2rem; */
}
.copyright p {
    color: var(--delivtoo-text-muted);
    display: flex;
    align-items: center;
}
.copyright strong {
    color: var(--delivtoo-primary);
    font-weight: 700;
}
.footer-bottom-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem; 
    font-size: 0.85em; 
}
@media (min-width: 992px) {
    .footer-bottom-links {
        justify-content: flex-end;
    }
}
.bottom-link {
    color: var(--delivtoo-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}
.bottom-link:hover {
    color: var(--delivtoo-primary);
}
.separator {
    color: var(--delivtoo-border);
    font-weight: 300;
}
/* PRINCIPLE 10: MOVEMENT - Enhanced Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.btn-back-top {
    display: flex;
    align-items: center;
    gap: 0.5rem; 
    padding: 0.75rem 1.25rem; 
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px; 
    color: white;
    font-weight: 600;
    font-size: 0.9em; 
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(var(--delivtoo-primary-rgb), 0.3); 
}
.btn-back-top:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(var(--delivtoo-primary-rgb), 0.4);
}
.btn-back-top i {
    font-size: 1.1em; 
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}
/* PRINCIPLE 7: RHYTHM - Responsive Adjustments */
@media (max-width: 767px) {
    .footer-main {
        padding: 3rem 0 1.5rem; 
    }

    .footer-brand .brand-title {
        font-size: 1.6em; 
        text-align: center;
    }

    .footer-brand .brand-description {
        text-align: center;
    }

    .footer-title {
        font-size: 1.1em; 
        margin-bottom: 1.25rem; 
    }

    .footer-actions {
        gap: 0.8rem; 
    }

    .footer-action-btn {
        padding: 0.9rem 1rem; 
        font-size: 0.9em; 
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 0.5rem; 
        text-align: center;
    }

    .separator {
        display: none;
    }

    .btn-back-top {
        padding: 0.75rem; 
        border-radius: 50%;
        width: 50px; 
        height: 50px; 
        justify-content: center;
    }

    .back-top-text {
        display: none !important;
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    .footer-main {
        padding: 3.5rem 0 2rem; 
    }

    .footer-brand .brand-title {
        font-size: 1.7em; 
    }
}
/* PRINCIPLE 12: UNITY - Dark Theme Enhancements */
[data-bs-theme="dark"] .professional-footer {
    background: var(--delivtoo-surface);
    border-top-color: var(--delivtoo-border);
}
[data-bs-theme="dark"] .footer-bottom {
    background: var(--delivtoo-background);
}
[data-bs-theme="dark"] .social-link {
    background: var(--delivtoo-surface-hover);
    border-color: var(--delivtoo-border);
}
[data-bs-theme="dark"] .footer-title {
    background: var(--delivtoo-surface-hover);
    color: var(--delivtoo-text);
}
[data-bs-theme="dark"] .footer-action-btn {
    background: var(--delivtoo-surface-hover);
    border-color: var(--delivtoo-border);
    color: var(--delivtoo-text);
}
/* Animation for footer sections on scroll */
.footer-section {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease;
}
.footer-section.animate {
    transform: translateY(0);
    opacity: 1;
}


.password-field {
    position: relative;
}
.password-icon {
    position: absolute;
    right: 1rem; /* Kept rem for position */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--bs-secondary-color);
    z-index: 3;
}
.password-icon:hover {
    color: var(--bs-primary);
}
        /* Blockquote styles - corrected for Material feel */
        blockquote {
            font-size: 1.0em; 
            margin-top: 2.5rem; 
            margin-bottom: 2.5rem; 
            font-family: 'Open Sans', sans-serif;
            font-style: italic;
            color: var(--delivtoo-text);
            padding: 1.2em 30px 1.2em 75px; 
            border-left: 8px solid var(--delivtoo-text-light); 
            line-height: 1.6;
            position: relative;
            background: var(--delivtoo-bg);
            border-radius: 12px; 
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
        }
        .blockquote {
            font-size: 1.1em; 
        }
        blockquote::before {
            color: var(--delivtoo-accent);
            font-size: 2em; 
            position: absolute;
            left: 10px;
            top: -10px;
        }

        blockquote::after {
            content: '';
        }

        /* ========================================= */
/*  Theme Toggle Button (Improved Affordance)*/
/* ========================================= */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background-color: var(--bs-secondary-bg); 
    color: var(--bs-emphasis-color);
    border: 1px solid var(--bs-border-color); 
    width: 45px; 
    height: 45px; 
    border-radius: 50%; /* Circular shape */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1em; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background-color: var(--bs-tertiary-bg);
}

/* Icon transition */
.theme-toggle i {
    transition: transform 0.4s ease, opacity 0.3s ease;
}

/* When switching, the old icon will rotate out */
.theme-toggle .icon-out {
    transform: rotate(90deg) scale(0.5);
    opacity: 0;
}

/* And the new icon will rotate in */
.theme-toggle .icon-in {
    transform: rotate(0) scale(1);
    opacity: 1;
}


.modal-backdrop.show {
    background-color: rgba(0, 0, 0, .4);
}

.modal-content {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 6px 6px rgba(0, 0, 0, 0.15);
  border: none;
  border-radius: 28px; 

  background-clip: padding-box; 
}

.modal-header {
    padding: 24px; 
    border-bottom: 1px solid var(--delivtoo-border); 
}

.modal-title {
    color: var(--delivtoo-text); 
    line-height: 32px; 
    font-weight: 500; 
}

.modal-body {
    padding: 24px;
    color: var(--delivtoo-text-muted);
}

.modal-footer {
    padding: 24px;
    border-top: 1px solid var(--delivtoo-border); 
    display: flex;
    gap: 8px; 
}

.form-control-sm {
    min-height: calc(1.5em + 0.5rem + calc(var(--bs-border-width) * 2));
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.pka-panel-credits {
    display: none !important;
}