/* 
 * Panganot International Logistics
 * Main Stylesheet
 * Tailwind CSS + Custom Styles
 */

/* Tailwind CSS CDN */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

/* Custom Properties */
:root {
    --color-primary: #1e3a5f;
    --color-primary-dark: #0d1f33;
    --color-primary-light: #2d4a73;
    --color-secondary: #f59e0b;
    --color-secondary-dark: #d97706;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* Remove focus outline from buttons and links */
a:focus,
button:focus {
    outline: none;
}

.font-heading {
    font-family: var(--font-heading);
}

.font-body {
    font-family: var(--font-body);
}

/* Color Classes */
.bg-primary {
    background-color: var(--color-primary);
}

.bg-primary-dark {
    background-color: var(--color-primary-dark);
}

.bg-primary-light {
    background-color: var(--color-primary-light);
}

.bg-secondary {
    background-color: var(--color-secondary);
}

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

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

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

.border-primary {
    border-color: var(--color-primary);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    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: 0.5s;
}

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

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.btn-outline-white {
    background: transparent;
    border: 2px solid white;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.btn-secondary {
    background: var(--color-secondary);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--color-secondary-dark);
}

/* Swiper Customization */
.swiper-button-prev,
.swiper-button-next {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: var(--color-primary);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 18px !important;
    font-weight: bold;
}

.swiper-pagination-bullet {
    background: white !important;
    opacity: 0.5;
    width: 12px;
    height: 12px;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--color-secondary) !important;
}

/* Hero Slider */
.hero-slider .swiper-slide {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-slider .swiper-slide-active {
    opacity: 1;
}

/* Navigation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: width 0.3s ease;
}

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

/* Cards */
.service-card {
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

/* Gradient Overlays */
.gradient-overlay {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.95) 0%, rgba(13, 31, 51, 0.8) 100%);
}

/* Counter Animation */
.counter {
    font-variant-numeric: tabular-nums;
}

/* Custom Shapes */
.shape-blob {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blob-animation 8s ease-in-out infinite;
}

@keyframes blob-animation {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

/* Floating Animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Preloader */
#preloader {
    z-index: 9999;
}

/* Form Styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    ring: 2px;
    ring-color: var(--color-primary);
}

/* Checkbox */
input[type="checkbox"]:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

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

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

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

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

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

/* Responsive Typography */
@media (max-width: 768px) {
    .text-5xl {
        font-size: 2.5rem;
    }
    .text-4xl {
        font-size: 2rem;
    }
    .text-3xl {
        font-size: 1.75rem;
    }
}

/* Print Styles */
@media print {
    header, footer, .no-print {
        display: none !important;
    }
}

/* Prose Customization */
.prose h2 {
    color: var(--color-primary);
    font-family: var(--font-heading);
}

.prose h3 {
    color: var(--color-primary);
    font-family: var(--font-heading);
}

.prose a {
    color: var(--color-primary);
}

.prose a:hover {
    color: var(--color-secondary);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
}

/* WhatsApp Button Pulse */
.whatsapp-btn {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Loading Spinner */
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid white;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Hover Effects */
.card-lift {
    transition: all 0.3s ease;
}

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

/* Image Hover */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.5s ease;
}

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

/* Focus States for Accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}
