/* Skeleton Loading Animation */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.show {
    opacity: 1;
    transform: translateY(0);
}

.animate-delay-1 {
    transition-delay: 0.2s;
}

/* Plot Grid */
.plot-grid {
    display: grid;
    gap: 1.5rem;
    position: relative;
    padding: 1rem;
}

.plot-item {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.plot-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

/* Plot Details Container */
.plot-details-container {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.6s ease-out;
}

.plot-details-container.show {
    opacity: 1;
    transform: translateX(0);
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Responsive Grid */
@media (max-width: 640px) {
    .hero-section {
        min-height: 350px;
    }
    
    .plot-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .plot-seat .plot-number {
        font-size: 0.7rem;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .hero-section {
        min-height: 400px;
    }
    
    .plot-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .plot-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 1025px) {
    .plot-grid {
        grid-template-columns: repeat(10, 1fr);
        gap: 1.5rem;
    }
}

/* Modal Animations */
.modal-enter {
    opacity: 0;
    transform: scale(0.9);
}

.modal-enter-active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 300ms, transform 300ms;
}

.modal-exit {
    opacity: 1;
    transform: scale(1);
}

.modal-exit-active {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 300ms, transform 300ms;
}

/* Filter Buttons */
.filter-button {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.filter-button:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}

.filter-button.active {
    background: linear-gradient(to right, #3b82f6, #10b981);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* Form Elements */
.form-input:focus {
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
}

/* Toast Message - Futuristic */
.toast-message {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* Plot Features */
.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: rgba(var(--primary-rgb), 0.05);
}

.feature-icon {
    color: var(--primary-color);
}

/* Aspect Ratio Utilities */
.aspect-w-1 {
    position: relative;
    padding-bottom: 100%;
}

.aspect-w-4 {
    position: relative;
    padding-bottom: 75%;
}

.aspect-w-16 {
    position: relative;
    padding-bottom: 56.25%;
}

[class^="aspect-"] > * {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Development Stages */
.development-stage {
    opacity: 0.5;
    transition: all 0.3s ease;
}

.development-stage.active {
    opacity: 1;
}

.development-stage.active .w-12 {
    animation: pulse 2s infinite;
}

/* 3D Animation Section */
#plot3DAnimation {
    background: linear-gradient(to bottom, #1a1a2e, #16213e);
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(var(--primary-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0);
    }
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4);
}

.btn-outline {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: white;
    transition: all 0.3s ease;
    z-index: -1;
}

.btn-outline:hover::before {
    width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .development-stage {
        text-align: center;
    }
    
    .development-stage .flex {
        justify-content: center;
    }
}

/* Animation Delays */
.animate-delay-1 {
    animation-delay: 0.2s;
}

.animate-delay-2 {
    animation-delay: 0.4s;
}

/* Canvas Performance Optimization */
canvas {
    will-change: transform;
}

/* Plot Booking Styles */
.plot-booking-container {
    position: relative;
    
    background: linear-gradient(to bottom, #0f172a, #1e293b);
    border-radius: 1rem;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
    overflow: hidden;
    margin-top: 1rem;
}

.plot-booking-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #3b82f6, #10b981);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.7);
}

.plot-booking-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 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='%233b82f6' fill-opacity='0.05'%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");
    opacity: 0.5;
    pointer-events: none;
}

/* Plot Seat Styles */
.plot-seat {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    perspective: 1000px;
}

.plot-seat::before {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateZ(-10px);
    background: rgba(15, 23, 42, 0.8);
    border-radius: 0.5rem;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.plot-seat .plot-3d {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transform: rotateX(60deg) rotateZ(-45deg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.plot-seat .plot-top {
    position: absolute;
    inset: 10%;
    transform: translateZ(5px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: rgba(15, 23, 42, 0.8);
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.2) 1px, transparent 1px);
    background-size: 10px 10px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.plot-seat .plot-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(15px);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.7);
    z-index: 10;
}

.plot-seat.available .plot-top {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.plot-seat.available::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid rgba(16, 185, 129, 0.5);
    border-radius: 0.5rem;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
    animation: pulse-green 2s infinite;
    pointer-events: none;
}

.plot-seat.booked .plot-top {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.plot-seat.booked::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid rgba(239, 68, 68, 0.5);
    border-radius: 0.5rem;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
    animation: pulse-red 2s infinite;
    pointer-events: none;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.plot-seat:hover {
    z-index: 20;
}

.plot-seat:hover .plot-3d {
    transform: rotateX(55deg) rotateZ(-45deg) translateZ(10px);
}

/* Tooltip Styles */
.plot-tooltip {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 30;
    width: max-content;
}

.plot-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(15, 23, 42, 0.9);
}

.plot-seat:hover .plot-tooltip {
    opacity: 1;
    visibility: visible;
    top: -70px;
}

.tooltip-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

.bg-green-500 {
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

.bg-red-500 {
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
}

.tooltip-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.05em;
}

/* Selected Plot Styles */
.selected-plot-container {
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    padding-top: 2rem;
    margin-top: 2rem;
    animation: fadeIn 0.5s ease;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7), rgba(30, 41, 59, 0.7));
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.plot-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.plot-image-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.5));
    z-index: 1;
    pointer-events: none;
}

.plot-details h3 {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    letter-spacing: 0.05em;
}

.plot-details .bg-gray-50 {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.75rem;
    backdrop-filter: blur(5px);
}

.plot-details .text-gray-500 {
    color: rgba(255, 255, 255, 0.6);
}

.plot-details .font-bold {
    color: #fff;
    font-family: 'Orbitron', sans-serif;
}

.plot-details .text-primary {
    color: #3b82f6;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.plot-details h4 {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    letter-spacing: 0.05em;
}

.plot-details .feature-item {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.5rem;
    color: #fff;
}

.plot-details .text-green-500 {
    color: #10b981;
    text-shadow: 0 0 5px rgba(16, 185, 129, 0.5);
}

#enquiry-button {
    background: linear-gradient(to right, #3b82f6, #10b981);
    border: none;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

#enquiry-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #10b981, #3b82f6);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#enquiry-button:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

#enquiry-button:hover::before {
    opacity: 1;
}

/* Hero Section - Futuristic */
.hero-section {
    background: linear-gradient(to bottom, #0f172a, #1e293b);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 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='%233b82f6' fill-opacity='0.05'%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");
    opacity: 0.5;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0));
    z-index: 1;
}

.hero-section h1 {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    letter-spacing: 0.05em;
}

.hero-section p {
    color: rgba(255, 255, 255, 0.7);
}

.gradient-text {
    background: linear-gradient(to right, #3b82f6, #10b981);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    text-shadow: none;
}

/* Animated Bounce */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Enquiry Modal - Futuristic */
.enquiry-modal {
    backdrop-filter: blur(10px);
}

.modal-content {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 1rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content h2 {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    letter-spacing: 0.05em;
}

.modal-content label {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
}

.modal-content input, 
.modal-content select, 
.modal-content textarea {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #fff;
    transition: all 0.3s ease;
}

.modal-content input:focus, 
.modal-content select:focus, 
.modal-content textarea:focus {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.modal-content button[type="submit"] {
    background: linear-gradient(to right, #3b82f6, #10b981);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.modal-content button[type="submit"]:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

/* Shadow Glow Effects */
.shadow-glow-green {
    box-shadow: 0 0 10px #10b981, 0 0 20px rgba(16, 185, 129, 0.5);
}

.shadow-glow-red {
    box-shadow: 0 0 10px #ef4444, 0 0 20px rgba(239, 68, 68, 0.5);
}

/* Futuristic Plot Styles */

/* Global Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}
