/* Custom CSS for Newcomm Website */

/* Import Inter font family */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Root variables for consistent theming */
:root {
    --primary-blue: #0A2740;
    --accent-cyan: #29D9E2;
    --accent-yellow: #FFDF00;
    --light-gray: #f8f9fa;
    --text-gray: #6c757d;
}

/* Global styles */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
}

html {
    scroll-behavior: smooth;
}

/* Custom Bootstrap color overrides */
.bg-primary {
    background-color: var(--primary-blue) !important;
}

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

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(10, 39, 64, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-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: left 0.5s;
}

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

.btn-primary:hover,
.btn-primary:focus {
    background-color: #083045;
    border-color: #083045;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 39, 64, 0.4);
}

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

.btn-info {
    background-color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: #000 !important;
    box-shadow: 0 4px 15px rgba(41, 217, 226, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-info:hover::before {
    left: 100%;
}

.btn-info:hover,
.btn-info:focus {
    background-color: #24c2cc;
    border-color: #24c2cc;
    color: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(41, 217, 226, 0.4);
}

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

/* Navbar styles */
.navbar {
    background-color: var(--primary-blue) !important;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

/* Enhanced navbar button */
.navbar .btn-info {
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 600;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    border: 2px solid var(--accent-cyan);
    background: var(--accent-cyan);
    color: #000 !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(41, 217, 226, 0.3);
    position: relative;
    overflow: hidden;
}

.navbar .btn-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.navbar .btn-info:hover::before {
    left: 100%;
}

.navbar .btn-info:hover {
    background: #24c2cc;
    border-color: #24c2cc;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(41, 217, 226, 0.4);
    letter-spacing: 1px;
}

.navbar-scrolled {
    background-color: rgba(10, 39, 64, 0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    text-transform: lowercase;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-cyan) !important;
}

/* Hero section styles */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0f3a5a 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-section .container-fluid {
    position: relative;
    z-index: 1;
}

.dashboard-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-height: 400px;
    position: relative;
}

.dashboard-image {
    width: 120%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    object-position: left center;
    transform: translateX(-10%);
    transition: transform 0.3s ease;
}

.dashboard-container:hover .dashboard-image {
    transform: translateX(-5%);
}

/* Clean dashboard styling without frame */
.dashboard-container-clean {
    position: relative;
    max-height: 500px;
}

.dashboard-image-clean {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
}

.dashboard-container-clean:hover .dashboard-image-clean {
    transform: scale(1.02);
}

/* Steps section styles */
.steps-section {
    background: linear-gradient(to bottom, #fff 0%, #f8f9fa 100%);
    padding: 4rem 0;
}

.step-item {
    transition: transform 0.3s ease;
}

.step-item:hover {
    transform: translateY(-5px);
}

.step-number {
    font-weight: 700;
    font-size: 1.2rem;
}

/* Couriers section */
.couriers-section {
    background: #ffffff;
    padding: 4rem 0;
}

.courier-item {
    transition: all 0.3s ease;
}

.courier-item:hover {
    transform: translateY(-8px);
}

.courier-truck {
    transition: transform 0.3s ease;
    margin-bottom: 1rem;
}

.courier-truck img {
    max-height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.courier-item:hover .courier-truck {
    transform: scale(1.05);
}

.courier-logo {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.courier-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-cyan);
}

.courier-logo img {
    max-height: 40px;
    width: auto;
    max-width: 100%;
}

/* Services section */
.services-section {
    background: linear-gradient(to bottom, #fff 0%, #f8f9fa 100%);
    padding: 4rem 0;
}

.service-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-cyan);
}

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

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

/* Quote and support sections */
.quote-section,
.support-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0f3a5a 100%);
    position: relative;
}

.quote-section::before,
.support-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(41,217,226,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.quote-section .container-fluid,
.support-section .container-fluid {
    position: relative;
    z-index: 1;
}

/* Form styles */
.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 14px 18px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 0.25rem rgba(41, 217, 226, 0.15);
    background-color: #fff;
}

.form-control-lg,
.form-select-lg {
    padding: 16px 20px;
    font-size: 1.1rem;
    border-radius: 14px;
}

.form-label {
    font-weight: 600;
    margin-bottom: 10px;
    color: #495057;
}

/* Modern form styling */
.modern-form {
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: relative;
}

.modern-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--primary-blue));
    border-radius: 12px 12px 0 0;
}

.form-container {
    position: relative;
}

.form-check-input:checked {
    background-color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.form-check-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 0.2rem rgba(41, 217, 226, 0.25);
}

/* Management section */
.management-section {
    background: linear-gradient(to bottom, #fff 0%, #f8f9fa 100%);
    padding: 4rem 0;
}

.management-features .feature-item {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.management-features .feature-item:hover {
    transform: translateX(8px);
    border-left-color: var(--accent-cyan);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.management-section .bi-check-circle-fill {
    font-size: 1.2rem;
}

/* Support section enhancements */
.support-benefits .d-flex {
    transition: transform 0.3s ease;
}

.support-benefits .d-flex:hover {
    transform: translateX(5px);
}

.contact-info {
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-info:hover {
    background-color: rgba(0, 0, 0, 0.4) !important;
    transform: translateY(-2px);
}

/* Footer styles */
.footer-section {
    background: #fff;
    border-top: 1px solid #e9ecef;
}

.footer-section a:hover {
    color: var(--accent-cyan) !important;
}

/* Container spacing */
.container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .dashboard-mockup {
        margin-top: 2rem;
        max-height: 300px;
    }
    
    .steps-section .col-md-2 {
        margin-bottom: 2rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .display-6 {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .services-section .col-md-4 {
        margin-bottom: 1.5rem;
    }
}

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

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

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Enhanced button sizes */
.btn-lg {
    border-radius: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-lg:hover {
    letter-spacing: 1px;
}

/* Enhanced button animations */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.98);
}

.btn:not(:disabled):not(.disabled) {
    cursor: pointer;
}

/* Focus states for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: none; /* 2px solid var(--accent-cyan);*/
    outline-offset: 2px;
}

/* Modal styles */
.modal-content {
    border-radius: 16px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0f3a5a 100%) !important;
    padding: 1.5rem;
}

.modal-body {
    background: #fff;
}

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

.input-group .form-control {
    border-radius: 0 12px 12px 0;
    border-left: none;
}

.input-group .btn {
    border-radius: 0 12px 12px 0;
    border-left: none;
    border: 2px solid #e9ecef;
}

.modal .form-control:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 0.25rem rgba(41, 217, 226, 0.15);
}

.modal .input-group:focus-within .input-group-text,
.modal .input-group:focus-within .btn {
    border-color: var(--accent-cyan);
}

.modal .btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0f3a5a 100%);
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(10, 39, 64, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: none;
}

.modal .btn-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: left 0.5s;
}

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

.modal .btn-primary:hover {
    background: linear-gradient(135deg, #083045 0%, var(--primary-blue) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 39, 64, 0.4);
}

.modal .btn-outline-secondary {
    border-color: #e9ecef;
    color: var(--text-gray);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.modal .btn-outline-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(41, 217, 226, 0.1), transparent);
    transition: left 0.5s;
}

.modal .btn-outline-secondary:hover::before {
    left: 100%;
}

.modal .btn-outline-secondary:hover {
    background-color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 217, 226, 0.3);
}

/* Password strength indicator */
.password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.password-weak {
    background-color: #dc3545;
    width: 33%;
}

.password-medium {
    background-color: #ffc107;
    width: 66%;
}

.password-strong {
    background-color: #28a745;
    width: 100%;
}

/* Modal animations */
.modal.fade .modal-dialog {
    transform: scale(0.8) translateY(-100px);
    transition: all 0.3s ease;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* Loading states for modal buttons */
.modal .btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none !important;
}

/* Pulse animation for CTA buttons */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(41, 217, 226, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(41, 217, 226, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(41, 217, 226, 0);
    }
}

.hero-section .btn-info {
    animation: pulse 2s infinite;
}

/* Glow effect for special buttons */
.btn-lg.btn-primary {
    box-shadow: 0 4px 15px rgba(10, 39, 64, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-lg.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(10, 39, 64, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Special styling for form submit buttons */
form .btn-primary,
form .btn-info {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 14px;
    padding: 16px 24px;
}

form .btn-primary:hover,
form .btn-info:hover {
    letter-spacing: 1.5px;
}

.input-group-text { background-color: #FFF !important; }

.cookiealert a {
    color: #FFF;
}
button.acceptcookies {
    background: #000;
    color: #FFF;
    border: 0;
    padding: 2px 10px;
    border-radius: 16px;
}
.cookiealert {
    font-size: 0.8rem;
    background-image: none;
    background-color: rgba(0, 0, 0, 0.8);
	font-size: 0.8rem;
}

/* Print styles */
@media print {
    .navbar,
    .hero-section,
    .quote-section,
    .support-section,
    .modal {
        display: none;
    }
    
    .services-section,
    .management-section,
    .footer-section {
        background: white !important;
        color: black !important;
    }
}
