/* Custom Styles for Rao Tent House */

/* Google Font Integration */
body {
    font-family: 'Poppins', sans-serif;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #f68120;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e57110;
}

/* Navigation Animations */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #f68120;
    transition: width 0.3s ease;
}

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

/* Service Card Animations */
.service-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

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

/* Gallery Item Hover Effects */
.gallery-item {
    cursor: pointer;
    overflow: hidden;
}

.gallery-item img {
    transition: transform 0.3s ease;
}

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

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

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Form Input Focus Effects */
input:focus,
textarea:focus,
select:focus {
    border-color: #f68120 !important;
    box-shadow: 0 0 0 3px rgba(246, 129, 32, 0.1);
}

/* Button Animations */
button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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.4s, height 0.4s;
}

button:hover::before {
    width: 300px;
    height: 300px;
}

/* Floating Animation for Hero Stats */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.hero-stats {
    animation: float 3s ease-in-out infinite;
}

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

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

/* Pulse Animation for CTA Button */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(246, 129, 32, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(246, 129, 32, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(246, 129, 32, 0);
    }
}

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

/* Loading Spinner for Form Submission */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #f68120;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Success Message Animation */
.success-message {
    background-color: #10b981;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile Menu Animation */
.mobile-menu-open {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Background Pattern for Sections */
.pattern-bg {
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(246, 129, 32, 0.03) 10px,
            rgba(246, 129, 32, 0.03) 20px
        );
}

/* Custom Shadow Effects */
.custom-shadow {
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.1);
}

.custom-shadow-lg {
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.1),
        0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, #f68120 0%, #ffa500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Image Overlay for Gallery */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .image-overlay {
    opacity: 1;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
}

/* Custom Card Styles */
.card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

/* Client Logo Cards */
.client-logo-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.client-logo-card:hover {
    transform: translateY(-5px);
    border: 2px solid #f68120;
}

.client-logo-card img {
    max-width: 150px;
    height: auto;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Landscape aspect ratio */
    max-height: 400px;
}

@media (min-width: 768px) {
    .carousel-container {
        max-height: 450px;
    }
}

@media (min-width: 1024px) {
    .carousel-container {
        aspect-ratio: 2 / 1; /* Even more landscape on larger screens */
        max-height: 400px;
    }
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 1s ease-in-out;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-indicator {
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-indicator:hover {
    transform: scale(1.5);
}

@media (max-width: 640px) {
    .carousel-container {
        aspect-ratio: 16 / 10; /* Slightly taller on mobile */
        max-height: 250px;
    }
}

/* Testimonial Carousel (if needed later) */
.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Footer Link Hover */
footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: #f68120;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #f68120;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.back-to-top:hover {
    background-color: #e57110;
    transform: scale(1.1);
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.preloader.hide {
    opacity: 0;
    pointer-events: none;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #f68120;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    animation: pulse 1.5s infinite;
}

/* Accordion Styles for FAQ (if needed) */
.accordion-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 0;
}

.accordion-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.accordion-header:hover {
    color: #f68120;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.open {
    max-height: 500px;
    padding-top: 15px;
}

/* Custom Radio and Checkbox Styles */
input[type="radio"],
input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #f68120;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="checkbox"] {
    border-radius: 4px;
}

input[type="radio"]:checked,
input[type="checkbox"]:checked {
    background-color: #f68120;
}

input[type="radio"]:checked::after,
input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
}

/* Print Styles */
@media print {
    nav,
    footer,
    .back-to-top,
    button {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}