/* =====================================
   KINGS PALACE - Custom Styles
   Premium Hotel & Tour Website
   ===================================== */

/* Root Variables */
:root {
    --royal-blue: #1e3a8a;
    --deep-navy: #0f172a;
    --gold-accent: #f59e0b;
    --hill-green: #065f46;
    --soft-grey: #f1f5f9;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

/* Navigation Sticky Effect */
#navbar.scrolled {
    padding: 0.25rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Hero Section */
.hero-section {
    position: relative;
    background-attachment: fixed;
}

.hero-bg {
    animation: zoomIn 20s ease infinite alternate;
}

@keyframes zoomIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* Logo Animation */
.logo-reveal {
    animation: fadeInDown 1s ease;
}

.logo-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Content Animation */
.hero-content {
    animation: fadeInUp 2.2s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTA Buttons */
.cta-button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Package Cards */
.package-card {
    transition: all 0.4s ease;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
}

/* Testimonial Cards */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.2);
}

/* Gallery Items */
.gallery-item {
    transition: all 0.3s ease;
}

.gallery-item.hidden {
    display: none;
}

/* Filter Buttons */
.filter-btn {
    padding: 0.75rem 2rem;
    background: white;
    color: var(--royal-blue);
    border: 2px solid var(--royal-blue);
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--royal-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(30, 58, 138, 0.3);
}

/* FAQ Accordion */
.faq-item {
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--royal-blue);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.4);
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--royal-blue);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: var(--gold-accent);
    transform: translateY(-5px);
}

/* Page Header */
.page-header {
    background-attachment: fixed;
}

/* Fade In Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Contact Cards */
.contact-card {
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    background: white;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
}

/* Timeline Items */
.timeline-item {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Why Cards */
.why-card {
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
}

/* Coverage Cards */
.coverage-card {
    transition: all 0.3s ease;
}

.coverage-card:hover {
    transform: scale(1.05);
}

/* Form Styles */
input:focus, textarea:focus, select:focus {
    border-color: var(--royal-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Success/Error Messages */
.success-message {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

/* Mobile Menu */
#mobile-menu {
    transition: max-height 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
    
    .scroll-top-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
        bottom: 20px;
        left: 20px;
    }
}

@media (max-width: 640px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
}

/* Loading Animation */
.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Hover Glow Effect */
.glow-on-hover {
    transition: all 0.3s ease;
}

.glow-on-hover:hover {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--royal-blue), var(--gold-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Icon Wrapper Animations */
.icon-wrapper {
    transition: all 0.3s ease;
}

.feature-card:hover .icon-wrapper,
.service-card:hover .icon-wrapper,
.why-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

/* Image Zoom Effect */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.5s ease;
}

.img-zoom:hover img {
    transform: scale(1.1);
}

/* Smooth Transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Print Styles */
@media print {
    .whatsapp-float,
    .scroll-top-btn,
    nav,
    footer {
        display: none;
    }
}

/* Accessibility - only for form elements, not nav links */
.nav-link:focus { outline: none; }
button:focus, input:focus, textarea:focus {
    outline: 2px solid var(--gold-accent);
    outline-offset: 2px;
}

/* Nav Link Animated Underline */
.nav-link {
    position: relative;
    padding-bottom: 4px;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #f59e0b;
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 0;
}

.nav-link.active {
    color: #1e3a8a !important;
}

/* Selection Color */
::selection {
    background: var(--gold-accent);
    color: white;
}

::-moz-selection {
    background: var(--gold-accent);
    color: white;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--soft-grey);
}

::-webkit-scrollbar-thumb {
    background: var(--royal-blue);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-accent);
}
