:root {
    --primary-color: #1E3A8A;
    --accent-color: #D4AF37;
    --bg-color: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --text-color: #1F2937;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --royal-gradient: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.btn-primary {
    background: var(--royal-gradient);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 28px;
    border-radius: 25px;
    font-weight: 500;
    background: transparent;
    transition: all 0.3s ease;
}

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

.text-accent {
    color: var(--accent-color);
}

.bg-royal {
    background: var(--royal-gradient);
}

.section-padding {
    padding: 80px 0;
}

.card-royal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.card-royal:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.navbar-royal {
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 2px 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-royal .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 20px;
    transition: color 0.3s ease;
}

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

.hero-section {
    background: var(--royal-gradient);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(30, 58, 138, 0.85) 100%);
    opacity: 1;
}

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

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.stat-card {
    text-align: center;
    padding: 30px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tracking-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.tracking-input {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
    position: relative;
    z-index: 11;
    pointer-events: auto;
}

.tracking-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.service-card {
    padding: 40px 30px;
    text-align: center;
    border-radius: 16px;
    background: white;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--royal-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.footer-royal {
    background: #0F172A;
    color: white;
    padding: 60px 0 30px;
}

.footer-royal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-royal a:hover {
    color: var(--accent-color);
}

.card-header-royal {
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(30, 58, 138, 0.9) 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 16px 16px 0 0;
    font-weight: 600;
}

.card-header-royal.text-center {
    text-align: center;
}

.transport-modes {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.transport-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 280px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.transport-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.transport-card:hover .transport-img {
    transform: scale(1.1);
}

.transport-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 50%, transparent 100%);
    color: white;
    text-align: center;
}

.transport-overlay i {
    color: var(--accent-color);
}

.transport-overlay h4 {
    margin-bottom: 5px;
    font-size: 1.25rem;
}

.transport-overlay p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.logistics-cta {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 58, 138, 0.9) 100%),
                url('https://images.unsplash.com/photo-1494412574643-ff11b0a5c1c3?w=1920&h=600&fit=crop') center/cover no-repeat fixed;
    color: white;
    padding: 100px 0;
}

.logistics-cta h2 {
    color: white;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .tracking-form {
        padding: 25px;
        margin-top: 30px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .transport-card {
        height: 220px;
        margin-bottom: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .btn-primary, .btn-outline-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .footer-royal {
        padding: 40px 0 20px;
    }
    
    .navbar-royal {
        padding: 10px 0;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .nav-link-custom {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .floating-clock {
        width: 90px;
        height: 90px;
        bottom: 15px;
        right: 15px;
    }
    
    .clock-time {
        font-size: 1.1rem;
    }
    
    .seconds-value {
        font-size: 0.6rem;
    }
    
    .clock-timezone {
        font-size: 0.4rem;
        top: 8px;
    }
    
    .clock-date {
        font-size: 0.45rem;
        bottom: 10px;
    }
    
    .clock-divider {
        width: 35px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-padding {
        padding: 30px 0;
    }
    
    .tracking-form {
        padding: 20px;
    }
    
    .tracking-input {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .transport-card {
        height: 200px;
    }
    
    .transport-overlay {
        padding: 20px;
    }
    
    .transport-overlay h4 {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .btn-primary, .btn-outline-primary {
        padding: 8px 16px;
        font-size: 0.85rem;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
    }
    
    .footer-royal {
        padding: 30px 0 15px;
    }
    
    .footer-royal h5 {
        font-size: 1rem;
    }
    
    .footer-royal p, .footer-royal a {
        font-size: 0.85rem;
    }
    
    .card-royal {
        border-radius: 12px;
    }
    
    .card-header-royal {
        padding: 12px 15px;
        font-size: 0.9rem;
        border-radius: 12px 12px 0 0;
    }
    
    .floating-clock {
        width: 80px;
        height: 80px;
        bottom: 10px;
        right: 10px;
    }
    
    .clock-time {
        font-size: 1rem;
    }
    
    .seconds-value {
        font-size: 0.55rem;
    }
    
    .clock-divider {
        width: 30px;
        height: 1px;
    }
    
    .transport-modes {
        margin-top: -40px;
    }
    
    .cta-image-wrapper {
        margin-top: 20px;
    }
}

@media (max-width: 375px) {
    .hero-title {
        font-size: 1.4rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .tracking-form {
        padding: 15px;
    }
    
    .tracking-input {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
    
    .navbar-brand span {
        font-size: 1rem;
    }
    
    .nav-link-custom {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    
    .btn-admin-custom {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (hover: none) and (pointer: coarse) {
    .btn-primary, .btn-outline-primary, .btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .form-control, .form-select {
        min-height: 44px;
    }
    
    .nav-link-custom {
        padding: 12px 16px;
    }
    
    .service-card {
        padding: 30px 25px;
    }
    
    .transport-card {
        cursor: pointer;
    }
    
    .tracking-input {
        font-size: 16px !important;
    }
}
