/* GSPS - Global Shipping & Parcel Service
   Single Page Website Stylesheet
   ================================== */

/* ===== CSS Variables ===== */
:root {
    --navy: #1a365d;
    --navy-light: #2563eb;
    --navy-dark: #0f172a;
    --orange: #f97316;
    --orange-light: #fb923c;
    --orange-dark: #ea580c;
    --silver: #94a3b8;
    --silver-light: #cbd5e1;
    --silver-dark: #64748b;
    --success: #22c55e;
}

/* ===== Base Styles ===== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #0f172a;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .fw-bold {
    font-family: 'Chivo', sans-serif;
    letter-spacing: -0.02em;
}

/* ===== Color Utilities ===== */
.bg-navy { background-color: var(--navy) !important; }
.bg-orange { background-color: var(--orange) !important; }
.bg-dark { background-color: #0a0a0a !important; }
.text-navy { color: var(--navy) !important; }
.text-orange { color: var(--orange) !important; }
.text-silver { color: var(--silver) !important; }

/* ===== Sticky Top Contact Bar ===== */
.contact-top-bar {
    position: relative;
    z-index: 1040;
    font-size: 0.9rem;
}

.contact-top-bar .contact-link {
    transition: all 0.3s ease;
}

.contact-top-bar .contact-link:hover {
    opacity: 0.8;
}

.pulse-icon {
    animation: pulse 2s infinite;
}

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

/* ===== Navigation ===== */
#mainNav {
    transition: all 0.3s ease;
    z-index: 1030;
}

#mainNav.scrolled {
    padding: 0.25rem 0;
}

#mainNav .navbar-brand img {
    transition: height 0.3s ease;
}

#mainNav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--orange) !important;
}

#mainNav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after {
    width: 80%;
}

/* ===== Buttons ===== */
.btn-navy {
    background-color: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.btn-navy:hover {
    background-color: var(--navy-dark);
    border-color: var(--navy-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.3);
}

.btn-orange {
    background-color: var(--orange);
    border-color: var(--orange);
    color: #fff;
}

.btn-orange:hover {
    background-color: var(--orange-dark);
    border-color: var(--orange-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

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

.btn-outline-orange:hover {
    background: var(--orange);
    color: #fff;
}

.btn-outline-navy {
    border: 2px solid var(--navy);
    color: var(--navy);
}

.btn-outline-navy:hover {
    background: var(--navy);
    color: #fff;
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 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.03'%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");
}

/* ===== Service Cards ===== */
.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-icon i {
    font-size: 24px;
}

.service-card {
    transition: all 0.3s ease;
    border: 1px solid transparent !important;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--orange) !important;
}

.service-card:hover .service-icon {
    background-color: var(--orange) !important;
    transform: scale(1.1);
}

/* ===== Contact Cards ===== */
.contact-card-hover {
    transition: all 0.3s ease;
}

.contact-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

/* ===== Forms ===== */
.form-control,
.form-select {
    border-color: #e2e8f0;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.15);
}

.form-control-lg,
.form-select-lg {
    padding: 0.875rem 1rem;
}

/* ===== Floating Buttons ===== */
.floating-buttons {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.floating-btn:hover {
    transform: scale(1.1);
    color: #fff;
}

.call-btn {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    animation: ring 2s ease-in-out infinite;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.floating-btn-text {
    position: absolute;
    right: 70px;
    background: var(--navy);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-btn:hover .floating-btn-text {
    opacity: 1;
    visibility: visible;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-5deg); }
    20%, 40% { transform: rotate(5deg); }
    50% { transform: rotate(0deg); }
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--orange);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--orange-dark);
    color: #fff;
    transform: translateY(-5px);
}

/* ===== Section Spacing ===== */
section {
    scroll-margin-top: 100px;
}

/* ===== Footer ===== */
footer a.text-silver:hover {
    color: var(--orange) !important;
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Card Styling ===== */
.rounded-4 {
    border-radius: 1rem !important;
}

.rounded-top-4 {
    border-top-left-radius: 1rem !important;
    border-top-right-radius: 1rem !important;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--silver);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--silver-dark);
}

/* ===== Selection ===== */
::selection {
    background-color: var(--orange);
    color: white;
}

/* ===== Focus States ===== */
*:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .floating-buttons {
        bottom: 80px;
        right: 15px;
    }
    
    .floating-btn {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    .floating-btn-text {
        display: none;
    }
    
    .contact-top-bar {
        font-size: 0.8rem;
    }
}

@media (max-width: 767.98px) {
    html {
        scroll-padding-top: 80px;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .hero-section {
        min-height: auto !important;
    }
    
    section {
        scroll-margin-top: 70px;
    }
    
    .floating-buttons {
        bottom: 70px;
        right: 10px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 10px;
    }
}

/* ===== Print Styles ===== */
@media print {
    .navbar,
    .contact-top-bar,
    .floating-buttons,
    .back-to-top,
    footer {
        display: none !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}
