/* Custom Styles for Phatang Tour Company */

/* Font Face Declaration */
@font-face {
    font-family: 'Phetsarath OT';
    src: url('Phetsarath OT.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Lao font support */
body {
    font-family: 'Phetsarath OT', 'Saysettha OT',  'Noto Sans Lao', sans-serif;
}

/* WhatsApp button animations */
.whatsapp-btn {
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;  
}

.whatsapp-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;
}

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

/* Card hover effect - เฉพาะ service cards เท่านั้น */
.bg-white.rounded-lg {
    transition: transform 0.3s ease;
}

.bg-white.rounded-lg:hover {
    transform: translateY(-5px);
}

/* Responsive font sizes */
@media (max-width: 640px) {
    body {
        font-size: 14px;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    body {
        font-size: 15px;
    }
}

@media (min-width: 1025px) {
    body {
        font-size: 16px;
    }
}

/* Loading animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Service card icons animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.bg-white:hover svg {
    animation: pulse 1s infinite;
}

/* Mobile menu improvements */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Print styles */
@media print {
    header, footer {
        display: none;
    }

    .whatsapp-btn {
        display: inline-block;
        color: #000;
        background: #fff;
        border: 1px solid #000;
    }
}

/* Accessibility improvements */
.whatsapp-btn:focus {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

a:focus {
    outline: 2px solid #1A73E8;
    outline-offset: 2px;
}

/* Color scheme variables */
:root {
    --primary: #1A73E8;
    --primary-dark: #0A2A43;
    --success: #34A853;
    --background: #F5F7FA;
}

/* Tooltip styles */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 14px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-2px);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
