/* Custom CSS for Arteesans.ng */

:root {
    --primary-color: #0b2c4f;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white: #ffffff;
    --font-family: 'Poppins', sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    position: relative;
    z-index: 1000;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
}

.logo {
    height: 40px;
    width: auto;
    margin-right: 10px;
    object-fit: contain;
    max-width: 150px;
}

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

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-color);
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::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 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="1000,100 1000,0 0,100"/></svg>');
    background-size: 100% 100%;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons .btn {
    margin-bottom: 1rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.3);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down {
    color: var(--white);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

/* Services Section */
.services {
    padding: 5rem 0;
}

/* Service Card Hover Flip Effect */
.service-card {
    perspective: 1000px !important;
    position: relative !important;
    height: 350px !important;
    overflow: visible !important;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.service-card-inner {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    transition: transform 0.6s ease !important;
    transform-style: preserve-3d !important;
}

/* Hover to flip */
.service-card:hover .service-card-inner {
    transform: rotateY(180deg) !important;
}

.service-card-front,
.service-card-back {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    backface-visibility: hidden !important;
    border-radius: var(--border-radius);
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 2rem !important;
    box-sizing: border-box !important;
}

.service-card-front {
    background: var(--white) !important;
    box-shadow: var(--box-shadow) !important;
    border: 1px solid #e9ecef !important;
    z-index: 2 !important;
}

.service-card-back {
    transform: rotateY(180deg) !important;
    background: var(--white) !important;
    box-shadow: var(--box-shadow) !important;
    border: 1px solid #e9ecef !important;
    z-index: 1 !important;
    padding: 0 !important;
    position: relative;
    overflow: hidden;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-description {
    color: var(--secondary-color);
    line-height: 1.7;
}



.service-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    z-index: 1;
    transition: transform 0.3s ease;
}

.service-card.flipped .service-image {
    transform: scale(1.05);
}

.service-overlay {
    display: none !important;
}

/* Mobile optimizations for flip cards */
@media (max-width: 768px) {
    .service-card-inner {
        height: 300px;
    }
    
    .service-card-front,
    .service-card-back {
        padding: 1.5rem 1rem;
    }
    
    .service-overlay {
        padding: 1.5rem;
    }
    
    /* Enhanced touch feedback for mobile */
    .service-card {
        -webkit-tap-highlight-color: rgba(0, 123, 255, 0.3);
        transition: all 0.2s ease;
    }
    
    .service-card:active {
        transform: scale(0.98);
    }
    
    /* Faster flip animation on mobile */
    .service-card-inner {
        transition: transform 0.6s;
    }
    
    /* Better image sizing on mobile */
    .service-image {
        object-position: center;
    }
    
    .service-overlay .service-title {
        font-size: 1.3rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover:not(.flipped) {
        transform: none;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 0;
}

.step-card {
    position: relative;
    padding: 2rem;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin: 2rem 0 1.5rem;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.step-description {
    color: var(--secondary-color);
    line-height: 1.7;
}

/* Request Service Form */
.request-service {
    padding: 5rem 0;
    background: var(--white);
}

.form-container {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

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

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 123, 255, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: 5rem 0;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--secondary-color);
    font-weight: 500;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--white);
}

.contact-item {
    padding: 2rem;
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.contact-info {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--dark-color) !important;
    padding: 3rem 0 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-right: 10px;
    object-fit: contain;
    max-width: 150px;
    filter: brightness(0) invert(1);
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.social-links {
    margin-bottom: 1rem;
}

.social-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Alert Styles */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

/* Mobile-First Responsive Design */

/* Mobile phones (320px - 480px) */
@media (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero {
        padding: 4rem 0 2rem;
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
        text-align: center;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .form-container {
        padding: 1rem;
        margin: 1rem 0;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .service-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
        border-radius: 12px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .service-title {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .service-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .step-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .step-icon {
        font-size: 2rem;
        margin: 1.5rem 0 1rem;
    }
    
    .step-title {
        font-size: 1.2rem;
    }
    
    .contact-item {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .logo {
        height: 30px;
        max-width: 120px;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-brand {
        flex-direction: column;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .footer-logo {
        height: 30px;
        max-width: 120px;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .social-links {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .social-link {
        font-size: 1.2rem;
        margin: 0 0.75rem;
    }
}

/* Small mobile phones (up to 375px) */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .form-container {
        padding: 0.75rem;
    }
    
    .service-card,
    .step-card,
    .contact-item {
        padding: 1.25rem 0.75rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
}

/* Tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .form-container {
        padding: 2rem;
    }
    
    .hero-buttons .btn {
        display: inline-block;
        width: auto;
        margin-right: 1rem;
        margin-bottom: 1rem;
    }
    
    .service-card,
    .step-card,
    .contact-item {
        margin-bottom: 2rem;
    }
}

/* Large tablets and small desktops (769px - 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* Touch-friendly interactions and mobile optimizations */
.btn {
    min-height: 44px; /* Apple's recommended minimum touch target */
    min-width: 44px;
    touch-action: manipulation; /* Prevent double-tap zoom */
}

.nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    touch-action: manipulation;
}

.form-control,
.form-select {
    min-height: 44px;
    font-size: 16px; /* Prevent zoom on iOS */
    -webkit-appearance: none;
    appearance: none;
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Improve text readability on mobile */
.hero-content,
.section-subtitle,
.service-description,
.step-description {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile-optimized navbar */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    min-height: 44px;
    min-width: 44px;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid var(--primary-color);
}

.navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 0 0 12px 12px;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Mobile form improvements */
.form-label {
    font-size: 14px;
    font-weight: 600;
}

.form-control:focus,
.form-select:focus {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

/* Better mobile spacing */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* Mobile hero adjustments */
.hero {
    background-attachment: scroll; /* Better performance on mobile */
}

.hero::before {
    background-size: cover;
}

/* Improved mobile grid */
.row.g-4 > * {
    margin-bottom: 1.5rem;
}

/* Mobile-optimized animations */
@media (max-width: 768px) {
    .service-card:hover,
    .step-card:hover,
    .contact-item:hover {
        transform: translateY(-5px); /* Reduced movement for mobile */
    }
    
    .fade-in {
        transform: translateY(20px); /* Reduced initial offset */
    }
    
    .btn:hover {
        transform: translateY(-1px); /* Subtle hover effect */
    }
}

/* Improve mobile accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobile-specific focus styles */
@media (max-width: 768px) {
    .btn:focus,
    .nav-link:focus,
    .form-control:focus,
    .form-select:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Improve mobile performance */
.service-icon,
.step-icon,
.contact-icon {
    will-change: transform;
    backface-visibility: hidden;
}

/* Mobile-optimized loading spinner */
@media (max-width: 768px) {
    .loading-spinner .spinner-border {
        width: 2rem;
        height: 2rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Mobile scrollbar (thinner) */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 4px;
    }
}

/* Mobile-specific utilities */
.text-center-mobile {
    text-align: center;
}

@media (min-width: 769px) {
    .text-center-mobile {
        text-align: left;
    }
}

/* Improve mobile tap targets */
.service-card,
.step-card,
.contact-item {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 123, 255, 0.1);
}

/* Mobile-optimized image containers */
.hero-image,
.about-image {
    text-align: center;
}

.hero-image img,
.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .hero-image {
        margin-top: 2rem;
        order: 2;
    }
    
    .hero-content {
        order: 1;
        text-align: center;
    }
    
    .about-image {
        margin-top: 2rem;
        order: 2;
    }
    
    .about-content {
        order: 1;
        text-align: center;
    }
}

/* Mobile-first utility classes */
.mobile-hide {
    display: none;
}

@media (min-width: 769px) {
    .mobile-hide {
        display: block;
    }
}

.mobile-show {
    display: block;
}

@media (min-width: 769px) {
    .mobile-show {
        display: none;
    }
}

/* Enhanced mobile navbar */
@media (max-width: 768px) {
    .navbar {
        transition: transform 0.3s ease;
    }
    
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        margin: 0.25rem 0;
        text-align: center;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(0, 123, 255, 0.1);
    }
}

/* Mobile performance optimizations */
.mobile-device * {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.mobile-device .service-card,
.mobile-device .step-card,
.mobile-device .contact-item {
    will-change: transform;
}

/* Improved mobile form styling */
@media (max-width: 768px) {
    .form-control,
    .form-select {
        padding: 1rem;
        border-radius: 12px;
        font-size: 16px;
        border: 2px solid #e9ecef;
    }
    
    .form-control:focus,
    .form-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
        transform: none; /* Remove scale on focus for better UX */
    }
    
    .form-label {
        font-weight: 600;
        margin-bottom: 0.75rem;
        display: flex;
        align-items: center;
    }
    
    .form-label i {
        color: var(--primary-color);
    }
}

/* Mobile-specific button improvements */
@media (max-width: 768px) {
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        border-radius: 12px;
        min-height: 50px;
    }
    
    .btn-primary {
        background: linear-gradient(135deg, var(--primary-color), #0056b3);
        border: none;
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    }
    
    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    }
    
    .btn-outline-light {
        border: 2px solid rgba(255, 255, 255, 0.8);
        color: white;
        backdrop-filter: blur(10px);
    }
    
    .btn-outline-light:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: white;
        color: white;
    }
}

/* Mobile accessibility improvements */
@media (max-width: 768px) {
    .service-card:focus,
    .step-card:focus,
    .contact-item:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    .btn:focus-visible {
        outline: 3px solid rgba(0, 123, 255, 0.5);
        outline-offset: 2px;
    }
}

/* Mobile dark mode support */
@media (prefers-color-scheme: dark) and (max-width: 768px) {
    /* Main Body Background */
    body {
        background-color: #121212 !important;
        color: white !important;
    }
    
    /* Main Content Areas */
    .container,
    .container-fluid {
        background-color: #121212 !important;
    }
    
    /* Sections */
    .hero,
    .services,
    .request-service,
    section {
        background-color: #121212 !important;
        color: white !important;
    }
    
    /* Navigation */
    .navbar {
        background: rgba(18, 18, 18, 0.95) !important;
    }
    
    .navbar-collapse {
        background: rgba(18, 18, 18, 0.98) !important;
    }
    
    .navbar-brand,
    .nav-link {
        color: white !important;
    }
    
    /* Form Container */
    .form-container {
        background: #1e1e1e !important;
        color: white !important;
        border: 1px solid #333 !important;
    }
    
    /* Form Elements */
    .form-control,
    .form-select {
        background: #2d2d2d !important;
        border-color: #444 !important;
        color: white !important;
    }
    
    .form-control::placeholder {
        color: #999 !important;
    }
    
    .form-label {
        color: white !important;
    }
    
    /* Form Groups and Labels */
    .input-group-text {
        background: #2d2d2d !important;
        color: white !important;
        border-color: #444 !important;
    }
    
    /* Text Elements */
    h1, h2, h3, h4, h5, h6 {
        color: white !important;
    }
    
    p, span, div, li, .lead {
        color: white !important;
    }
    
    .text-muted {
        color: #999 !important;
    }
    
    /* Buttons */
    .btn-outline-secondary {
        color: white !important;
        border-color: #666 !important;
        background: transparent !important;
    }
    
    .btn-outline-secondary:hover {
        background: #666 !important;
        color: white !important;
    }
    
    .btn-primary {
        background: #007bff !important;
        border-color: #007bff !important;
        color: white !important;
    }
    
    /* Fix for Join Our Network button - light buttons should have dark text */
    .btn-light {
        background: #f8f9fa !important;
        border-color: #f8f9fa !important;
        color: #212529 !important;
    }
    
    .btn-light:hover {
        background: #e2e6ea !important;
        border-color: #dae0e5 !important;
        color: #212529 !important;
    }
    
    .btn-light .fw-bold,
    .btn-light span {
        color: #212529 !important;
    }
    
    /* Cards and Containers */
    .card {
        background: #1e1e1e !important;
        color: white !important;
        border: 1px solid #333 !important;
    }
    
    .card-body {
        color: white !important;
    }
    
    /* Hero Section */
    .hero {
        background: #121212 !important;
    }
    
    .hero h1,
    .hero p,
    .hero .lead {
        color: white !important;
    }
    
    /* Service Cards */
    .service-card {
        background: #1e1e1e !important;
        color: white !important;
        border: 1px solid #333 !important;
    }
    
    .service-card-inner {
        background: #1e1e1e !important;
    }
    
    .service-card-front,
    .service-card-back {
        background: #1e1e1e !important;
        color: white !important;
    }
    
    .service-title {
        color: white !important;
    }
    
    .service-description {
        color: #ccc !important;
    }
    
    /* Footer */
    .footer {
        background: #0d0d0d !important;
        color: white !important;
    }
    
    .footer h5,
    .footer p,
    .footer a {
        color: white !important;
    }
    
    /* Override any white backgrounds */
    .bg-white,
    .bg-light {
        background: #1e1e1e !important;
        color: white !important;
    }
    
    /* Artisan Signup Page Specific Styles */
    .benefit-card {
        background: #1e1e1e !important;
        color: white !important;
        border: 1px solid #333 !important;
    }
    
    .benefit-card h4,
    .benefit-card p {
        color: white !important;
    }
    
    /* Availability and Security Sections */
    .availability-section,
    .security-section {
        background: #1e1e1e !important;
        color: white !important;
        border: 1px solid #333 !important;
    }
    
    .availability-section h5,
    .security-section h5,
    .availability-section .form-label,
    .security-section .form-label {
        color: white !important;
    }
    
    .availability-section .form-text,
    .security-section .form-text {
        color: #ccc !important;
    }
    
    /* Captcha Display Box */
    .captcha-display-box {
        background: #2d2d2d !important;
        border: 1px solid #444 !important;
        color: white !important;
    }
    
    /* Security Info */
    .security-info {
        color: white !important;
    }
    
    .security-info h6 {
        color: white !important;
    }
    
    .security-badge {
        background: #2d2d2d !important;
        border: 1px solid #444 !important;
    }
    
    /* Form Select Large */
    .form-select-lg,
    .form-control-lg {
        background: #2d2d2d !important;
        border-color: #444 !important;
        color: white !important;
    }
    
    /* Invalid Feedback */
    .invalid-feedback {
        color: #ff6b6b !important;
    }
    
    /* Form Check Labels */
    .form-check-label {
        color: white !important;
    }
    
    /* Section Titles and Subtitles */
    .section-title,
    .section-subtitle {
        color: white !important;
    }
    
    /* Success Message */
    .alert-success {
        background: #1e4d3e !important;
        border-color: #28a745 !important;
        color: white !important;
    }
}

/* Reduced motion for mobile users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .service-card,
    .step-card,
    .contact-item,
    .btn {
        animation: none;
        transition: none;
    }
    
    .hero::before {
        animation: none;
    }
}

/* Form Validation Styles */
.form-control.is-invalid {
    border-color: var(--danger-color);
}

.form-control.is-valid {
    border-color: var(--success-color);
}

.invalid-feedback {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Button Loading State */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Captcha Styles */
.captcha-container {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

#captchaQuestion {
    background: linear-gradient(135deg, var(--primary-color), #0056b3) !important;
    color: white !important;
    font-weight: 600;
    border: none !important;
    font-size: 1rem;
}

#captcha {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

#captcha.is-valid {
    border-color: var(--success-color) !important;
    background-color: rgba(40, 167, 69, 0.1) !important;
}

#captcha.is-invalid {
    border-color: var(--danger-color) !important;
    background-color: rgba(220, 53, 69, 0.1) !important;
}

.btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
    transition: var(--transition);
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    transform: translateY(-1px);
}

/* Mobile captcha optimizations */
@media (max-width: 768px) {
    .captcha-container {
        padding: 0.75rem;
    }
    
    #captchaQuestion {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    #captcha {
        font-size: 1rem;
    }
    
    .btn-outline-secondary.btn-sm {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Enhanced How It Works Step Cards */
.step-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef !important;
    min-height: 400px;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.1) !important;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
    z-index: 10;
}

.step-icon {
    font-size: 3rem;
    margin: 2rem 0 1.5rem;
}

.step-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.step-description {
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Timeline styling improvements */
.timeline-item {
    padding: 1rem;
    transition: transform 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-3px);
}

.timeline-icon {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Mobile optimizations for How It Works */
@media (max-width: 768px) {
    .step-card {
        min-height: auto;
        margin-bottom: 2rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        top: -17px;
    }
    
    .step-icon {
        font-size: 2.5rem;
        margin: 1.5rem 0 1rem;
    }
    
    .step-title {
        font-size: 1.2rem;
    }
    
    .timeline-icon {
        width: 50px !important;
        height: 50px !important;
    }
}

/* About Page Styles - CEO Head Popping Effect */
.founder-image-container {
    position: relative;
    display: inline-block;
    margin: 2rem auto;
    overflow: visible;
    cursor: pointer;
    perspective: 1000px;
}

/* Main CEO image with dramatic popping effect */
.founder-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 3;
    background: white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transform-origin: center bottom;
}

/* Background gradient circle */
.founder-image-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: all 0.6s ease;
    opacity: 0.7;
}

/* Sparkle effect that appears on hover */
.founder-image-container::after {
    content: '✨';
    position: absolute;
    top: 15%;
    right: 15%;
    font-size: 1.5rem;
    opacity: 0;
    transform: translateY(10px) scale(0.5);
    transition: all 0.4s ease;
    z-index: 4;
}

/* The main "HEAD POPPING OUT" hover effect */
.founder-image-container:hover .founder-image {
    transform: scale(1.3) translateY(-30px) rotateY(8deg) rotateX(-5deg);
    box-shadow: 
        0 35px 70px rgba(0, 123, 255, 0.4),
        0 0 50px rgba(0, 123, 255, 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
    border-width: 6px;
    border-color: #ffffff;
    clip-path: ellipse(90% 110% at 50% 35%);
}

.founder-image-container:hover::before {
    transform: translate(-50%, -50%) scale(1.2) rotateZ(5deg);
    opacity: 0.9;
    box-shadow: 0 25px 50px rgba(0, 123, 255, 0.3);
}

.founder-image-container:hover::after {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: sparkleFloat 2s ease-in-out infinite;
}

/* Continuous floating animation during hover */
@keyframes popFloat {
    0%, 100% {
        transform: scale(1.3) translateY(-30px) rotateY(8deg) rotateX(-5deg);
    }
    33% {
        transform: scale(1.32) translateY(-35px) rotateY(5deg) rotateX(-3deg);
    }
    66% {
        transform: scale(1.28) translateY(-32px) rotateY(10deg) rotateX(-7deg);
    }
}

@keyframes sparkleFloat {
    0%, 100% { 
        opacity: 1; 
        transform: translateY(0) scale(1) rotate(0deg); 
    }
    50% { 
        opacity: 0.7; 
        transform: translateY(-8px) scale(1.2) rotate(10deg); 
    }
}

.founder-image-container:hover .founder-image {
    animation: popFloat 3s ease-in-out infinite;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .founder-image-container {
        margin: 1rem auto;
    }
    
    .founder-image {
        width: 150px;
        height: 150px;
    }
    
    .founder-image-container::before {
        width: 135px;
        height: 135px;
    }
    
    .founder-image-container:hover .founder-image {
        transform: scale(1.2) translateY(-20px) rotateY(5deg);
    }
    
    @keyframes popFloat {
        0%, 100% {
            transform: scale(1.2) translateY(-20px) rotateY(5deg);
        }
        50% {
            transform: scale(1.22) translateY(-25px) rotateY(3deg);
        }
    }
}

/* Artisan Signup Page Styles */
.benefit-card {
    background: var(--white);
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.benefit-card h4 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.benefit-card p {
    color: var(--secondary-color);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Form Enhancements for Artisan Signup */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, var(--primary-color));
    transform: translateY(-2px);
}

.card {
    border: none;
    border-radius: 15px;
}

.card-body {
    padding: 3rem;
}

/* Artisan Signup Mobile Styles */
@media (max-width: 768px) {
    .card-body {
        padding: 2rem 1.5rem;
    }
    
    .benefit-card {
        margin-bottom: 1rem;
    }
}

/* Artisan CTA Section Styles */
.artisan-cta {
    position: relative;
    overflow: hidden;
}

.artisan-cta::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"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

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

.stat-box {
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-box h3 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

/* Navigation Button Fixes */
.navbar-nav .btn {
    border-radius: 25px !important;
    padding: 8px 20px !important;
    margin: 0 5px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.navbar-nav .btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

.btn-outline-primary:hover {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}

/* Mobile responsiveness for artisan CTA */
@media (max-width: 768px) {
    .artisan-cta .display-6 {
        font-size: 1.8rem;
    }
    
    .artisan-cta .lead {
        font-size: 1rem;
    }
    
    .stat-box h3 {
        font-size: 1.5rem;
    }
    
    .navbar-nav .btn {
        margin: 5px 0 !important;
        width: 100%;
        text-align: center;
    }
}

.founder-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.founder-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.education-item, .interest-item {
    transition: transform 0.3s ease;
}

.education-item:hover, .interest-item:hover {
    transform: translateY(-5px);
}

.founder-quote {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), #337fd0) !important;
}

.founder-quote::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid var(--primary-color);
}

.value-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--primary-color);
}

.value-icon {
    transition: transform 0.3s ease;
}

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

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

.value-description {
    color: var(--secondary-color);
    line-height: 1.6;
}

/* Mobile optimizations for About page */
@media (max-width: 768px) {
    .founder-image {
        width: 150px;
        height: 150px;
    }
    
    .founder-name {
        font-size: 1.5rem;
    }
    
    .founder-title {
        font-size: 1rem;
    }
    
    .education-item, .interest-item {
        margin-bottom: 1rem;
    }
    
    .founder-quote {
        margin-top: 2rem;
        padding: 1.5rem !important;
    }
    
    .value-card {
        margin-bottom: 1.5rem;
    }
}

/* Service List Styles for Services Page */
.service-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.service-list li {
    padding: 0.25rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Timeline Styles for How It Works Page */
.timeline-item {
    padding: 2rem 1rem;
}

.timeline-icon {
    margin-bottom: 1rem;
}

/* Step Card Enhancements */
.step-card .step-number {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Active Navigation Link */
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* FAQ Accordion Styling */
.accordion-button {
    background-color: var(--white);
    color: var(--dark-color);
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

/* Service Features Grid */
.service-features {
    padding: 3rem 0;
}

/* Responsive Enhancements for New Pages */
@media (max-width: 768px) {
    .step-card {
        margin-bottom: 3rem;
        padding: 2rem 1rem !important;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        top: -20px;
    }
    
    .timeline-item {
        padding: 1rem;
    }
    
    .timeline-icon {
        width: 50px !important;
        height: 50px !important;
    }
}
.ceo-akinkunmi{
    position: relative;
    justify-content: center;
    align-items: center;
}

/* Enhanced Artisan Signup Form Styles */
.availability-section, .security-section {
    border: 1px solid rgba(0, 123, 255, 0.1);
    transition: all 0.3s ease;
}

.availability-section:hover, .security-section:hover {
    border-color: rgba(0, 123, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
}

.availability-section h5, .security-section h5 {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.form-select-lg, .form-control-lg {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-select-lg:focus, .form-control-lg:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.1);
}

.form-select-lg:hover, .form-control-lg:hover {
    border-color: var(--primary-color);
}

.security-input-group .bg-white {
    border: 2px solid #e9ecef !important;
    transition: all 0.3s ease;
}

.security-input-group:hover .bg-white {
    border-color: var(--primary-color) !important;
}

.captcha-box {
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    font-weight: bold;
}

.captcha-display {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.form-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.fw-semibold {
    font-weight: 600;
}

/* Icon positioning fix for select dropdown */
.position-relative .fa-chevron-down {
    pointer-events: none;
    z-index: 1;
}

/* Enhanced Mission Section Styles */
.mission-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.mission-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"><circle cx="20" cy="20" r="1.5" fill="rgba(0,123,255,0.05)"/><circle cx="80" cy="40" r="1" fill="rgba(0,123,255,0.05)"/><circle cx="40" cy="80" r="1.2" fill="rgba(0,123,255,0.05)"/></svg>');
    opacity: 0.6;
}

.mission-content {
    position: relative;
    z-index: 2;
}

.mission-header {
    position: relative;
}

.mission-badge {
    display: inline-block;
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.mission-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 1rem 0;
    position: relative;
}

.mission-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 2px;
}

.mission-statement {
    margin: 2rem 0;
}

.mission-lead {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.6;
    color: #34495e;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0,123,255,0.08) 0%, rgba(0,123,255,0.03) 100%);
    border-left: 4px solid #007bff;
    border-radius: 8px;
    position: relative;
}

.mission-lead::before {
    content: '"';
    font-size: 3rem;
    color: #007bff;
    position: absolute;
    top: -10px;
    left: 10px;
    opacity: 0.3;
    font-family: serif;
}

.mission-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #5a6c7d;
    font-weight: 400;
}

.mission-stats {
    border-top: 2px solid #e9ecef;
    padding-top: 2rem;
}

.stat-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #007bff;
    margin: 0;
    line-height: 1;
}

.stat-label {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
}

.mission-values {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(40,167,69,0.05) 0%, rgba(40,167,69,0.02) 100%);
    border-radius: 12px;
    border: 1px solid rgba(40,167,69,0.1);
}

.value-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.value-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.value-text {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

/* Additional Security Section */
.additional-security-section {
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.additional-security-section:hover {
    border-color: rgba(40, 167, 69, 0.4);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.1);
}

.security-info {
    border: 2px solid #e9ecef !important;
    transition: all 0.3s ease;
}

.security-info:hover {
    border-color: #28a745 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.input-group .input-group-text {
    border: 2px solid #e9ecef;
    border-right: none;
}

.input-group .form-control {
    border: 2px solid #e9ecef;
    border-left: none;
}

.input-group:focus-within .input-group-text,
.input-group:focus-within .form-control {
    border-color: var(--primary-color);
}

/* Improved Security Section */
.security-section {
    border: 2px solid rgba(0, 123, 255, 0.1);
}

.security-badge {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.security-info h6 {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Enhanced form validation styles */
.form-control.is-valid,
.form-select.is-valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.8-.77-.1-.1-1.25.1-.1.1.1 1.25zM.5 4.5l.1.2L.5 3.3l-.1.2.1 1.25zM3.8 5.17l-.1.1L2.5 4.5l.1-.2 1.25.1.1.1-.1 1.25z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Loading state for submit button */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Captcha Display Styles */
.captcha-display-box {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.captcha-display-box:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.captcha-code {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#captchaInput {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#captchaInput:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    border-color: #007bff;
}

/* Mission Section Mobile Responsiveness */
@media (max-width: 768px) {
    .mission-title {
        font-size: 2rem;
    }
    
    .mission-lead {
        font-size: 1.1rem;
        padding: 1rem;
    }
    
    .mission-text {
        font-size: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .value-items {
        justify-content: center;
    }
    
    .value-item {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Captcha Spacing Fix */
#captchaQuestion {
    word-spacing: normal;
    letter-spacing: normal;
}

#captchaQuestion #num1,
#captchaQuestion #num2 {
    margin-left: 0.25rem;
    margin-right: 0.25rem;
}

/* Ensure proper spacing in mobile dark mode */
@media (prefers-color-scheme: dark) and (max-width: 768px) {
    #captchaQuestion {
        word-spacing: normal;
        letter-spacing: normal;
    }
    
    #captchaQuestion #num1,
    #captchaQuestion #num2 {
        margin-left: 0.25rem;
        margin-right: 0.25rem;
    }
}