/* ========================================
   Tareq Belal Logistical Services LTD
   PROFESSIONAL COLOR SCHEME
   ======================================== */

:root {
    /* PRIMARY COLORS - Trust & Professionalism */
    --primary-1: #0A2472;        /* Deep Royal Blue */
    --primary-2: #1E3A8A;        /* Vibrant Sapphire */
    --primary-3: #2563EB;        /* Bright Azure */
    --primary-4: #3B82F6;        /* Soft Blue */
    
    /* SECONDARY COLORS - Quality & Excellence */
    --secondary-1: #F59E0B;       /* Golden Amber */
    --secondary-2: #D97706;       /* Rich Gold */
    --secondary-3: #B45309;       /* Deep Orange */
    --secondary-4: #FBBF24;       /* Light Gold */
    
    /* ACCENT COLORS */
    --accent-success: #10B981;     /* Emerald Green */
    --accent-info: #3B82F6;        /* Info Blue */
    --accent-warning: #F59E0B;     /* Warning Orange */
    --accent-danger: #EF4444;      /* Error Red */
    --accent-purple: #8B5CF6;      /* Royal Purple */
    
    /* GRADIENTS */
    --gradient-primary: linear-gradient(135deg, #0A2472 0%, #1E3A8A 50%, #2563EB 100%);
    --gradient-secondary: linear-gradient(135deg, #F59E0B 0%, #D97706 70%, #B45309 100%);
    --gradient-premium: linear-gradient(135deg, #0A2472 0%, #F59E0B 100%);
    --gradient-success: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --gradient-info: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    
    /* NEUTRAL COLORS */
    --white: #FFFFFF;
    --light-100: #F8FAFC;
    --light-200: #F1F5F9;
    --light-300: #E2E8F0;
    --light-400: #CBD5E1;
    --dark-100: #334155;
    --dark-200: #1E293B;
    --dark-300: #0F172A;
    
    /* UI ELEMENTS */
    --shadow-sm: 0 2px 4px rgba(10,36,114,0.1);
    --shadow-md: 0 4px 12px rgba(10,36,114,0.15);
    --shadow-lg: 0 8px 24px rgba(10,36,114,0.2);
    --shadow-xl: 0 20px 40px rgba(10,36,114,0.25);
    --shadow-glow: 0 0 20px rgba(245,158,11,0.2);
    
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-xxl: 32px;
    --border-radius-full: 9999px;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark-200);
    background: var(--light-100);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

h3 {
    font-size: 2rem;
    color: var(--primary-1);
}

h4 {
    font-size: 1.5rem;
    color: var(--primary-2);
}

/* ===== Navigation ===== */
.navbar {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(10,36,114,0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-lg);
    background: rgba(255,255,255,0.98);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.navbar-brand i {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 10px;
    font-size: 2rem;
}

.nav-link {
    color: var(--dark-200) !important;
    font-weight: 600;
    padding: 0.5rem 1.2rem !important;
    position: relative;
    transition: all 0.3s;
    border-radius: var(--border-radius-full);
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary-2) !important;
    background: rgba(37,99,235,0.1);
}

.nav-link.active {
    background: var(--gradient-primary);
    color: white !important;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-xl);
    border-radius: var(--border-radius-lg);
    padding: 0.8rem;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(10,36,114,0.1);
    min-width: 280px;
}

.dropdown-item {
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius-md);
    transition: all 0.3s;
    font-weight: 500;
    color: var(--dark-200);
    display: flex;
    align-items: center;
}

.dropdown-item i {
    width: 24px;
    color: var(--primary-2);
    transition: all 0.3s;
    margin-right: 10px;
}

.dropdown-item:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateX(5px);
}

.dropdown-item:hover i {
    color: white;
}

/* ===== Buttons ===== */
.btn {
    padding: 12px 28px;
    font-weight: 600;
    border-radius: var(--border-radius-full);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    font-size: 1rem;
    letter-spacing: 0.3px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    color: white;
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    color: white;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-1);
    color: var(--primary-1);
}

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

.btn-outline-secondary {
    background: transparent;
    border: 2px solid var(--secondary-1);
    color: var(--secondary-1);
}

.btn-outline-secondary:hover {
    background: var(--gradient-secondary);
    color: white;
    border-color: transparent;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* ===== Cards ===== */
.card {
    border: none;
    border-radius: var(--border-radius-xl);
    background: white;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
    height: 100%;
}

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

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

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.card-img-top {
    height: 240px;
    object-fit: cover;
    transition: transform 0.8s;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-1);
}

/* ===== Hero Sections ===== */
.hero-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(245,158,11,0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ===== Slideshow/Carousel ===== */
.carousel {
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    margin: 2rem 0;
}

.carousel-item {
    height: 600px;
    position: relative;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    filter: brightness(0.7);
}

.carousel-caption {
    background: linear-gradient(to top, rgba(10,36,114,0.95), transparent);
    left: 0;
    right: 0;
    bottom: 0;
    padding: 4rem;
    text-align: left;
}

.carousel-caption h3 {
    color: white;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.carousel-caption p {
    font-size: 1.2rem;
    max-width: 600px;
    color: rgba(255,255,255,0.95);
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background: var(--secondary-1);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 1;
}

/* ===== Feature Icons ===== */
.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2rem;
    transition: all 0.4s;
    box-shadow: var(--shadow-lg);
}

.feature-icon.large {
    width: 100px;
    height: 100px;
    font-size: 3rem;
    border-radius: 30px;
}

.feature-icon.small {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    border-radius: 12px;
}

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

.card:hover .feature-icon {
    transform: rotateY(180deg) scale(1.1);
}

/* ===== Forms ===== */
.form-control, .form-select {
    border: 2px solid var(--light-300);
    border-radius: var(--border-radius-lg);
    padding: 14px 18px;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-1);
    box-shadow: 0 0 0 4px rgba(245,158,11,0.1);
    outline: none;
}

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

.form-text {
    color: var(--dark-100);
    font-size: 0.875rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
    margin-top: 4rem;
}

.footer::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245,158,11,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.footer h5 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-1);
    border-radius: 3px;
}

.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.footer a:hover {
    color: var(--secondary-1);
    transform: translateX(5px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--secondary-1);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* ===== Badges ===== */
.badge {
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    font-size: 0.85rem;
}

.badge-primary {
    background: var(--gradient-primary);
    color: white;
}

.badge-secondary {
    background: var(--gradient-secondary);
    color: white;
}

.badge-success {
    background: var(--gradient-success);
    color: white;
}

/* ===== Section Divider ===== */
.section-divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-secondary);
    margin: 1.5rem 0;
    border-radius: 4px;
}

.section-divider.center {
    margin: 1.5rem auto;
}

/* ===== Page Header ===== */
.page-header {
    background: var(--gradient-primary);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245,158,11,0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.page-header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    -webkit-text-fill-color: white;
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.page-header .breadcrumb-item.active {
    color: var(--secondary-1);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* ===== Tables ===== */
.table {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.table thead th {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-color: var(--light-300);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--light-100);
}

/* ===== List Groups ===== */
.list-group {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.list-group-item {
    padding: 1rem 1.5rem;
    border: none;
    border-bottom: 1px solid var(--light-300);
    transition: all 0.3s;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover {
    background: var(--light-200);
    transform: translateX(5px);
}

.list-group-item i {
    color: var(--secondary-1);
    width: 24px;
}

/* ===== Alerts ===== */
.alert {
    border: none;
    border-radius: var(--border-radius-lg);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-md);
}

.alert-success {
    background: var(--gradient-success);
    color: white;
}

.alert-info {
    background: var(--gradient-info);
    color: white;
}

.alert-warning {
    background: var(--gradient-secondary);
    color: white;
}

/* ===== Progress Bars ===== */
.progress {
    height: 10px;
    border-radius: var(--border-radius-full);
    background: var(--light-300);
    overflow: hidden;
}

.progress-bar {
    background: var(--gradient-primary);
    border-radius: var(--border-radius-full);
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

.fade-in-down {
    animation: fadeInDown 0.8s ease-out;
}

.zoom-in {
    animation: zoomIn 0.6s ease-out;
}

/* ===== Responsive ===== */
@media (max-width: 1199.98px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.4rem; }
    .hero-title { font-size: 3.5rem; }
}

@media (max-width: 991.98px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    .hero-title { font-size: 3rem; }
    .carousel-item { height: 500px; }
    .carousel-caption h3 { font-size: 2.5rem; }
    .navbar-nav {
        padding: 1rem 0;
    }
    .nav-link {
        padding: 0.75rem 1rem !important;
    }
}

@media (max-width: 767.98px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    .hero-title { font-size: 2.5rem; }
    .carousel-item { height: 400px; }
    .carousel-caption { padding: 2rem; }
    .carousel-caption h3 { font-size: 2rem; }
    .carousel-caption p { font-size: 1rem; }
    .page-header { padding: 3rem 0; }
    .page-header h1 { font-size: 2rem; }
    .btn { padding: 10px 24px; }
}

@media (max-width: 575.98px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    .hero-title { font-size: 2rem; }
    .carousel-item { height: 350px; }
    .btn { padding: 8px 20px; font-size: 0.9rem; }
    .container { padding-left: 20px; padding-right: 20px; }
}

/* ===== Print Styles ===== */
@media print {
    .navbar, .footer, .btn, .carousel, .back-to-top {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
.navbar-brand img {
    max-height: 80px;
    width: auto;
}

@media (max-width: 1000px) {
    .navbar-brand img {
        max-height: 70px;
    }
}