/* Tailwind-based Custom Styles - RL AUTO TRANSPORT */

:root {
    --primary-color: #1976D2;
    --secondary-color: #FFC107;
    --accent-color: #FFFFFF;
    --dark-bg: #1a1a2e;
    --lighter-bg: #16213e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Navigation */
.burger-icon {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.burger-icon span {
    width: 26px;
    height: 3px;
    background-color: #1976D2;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.burger-icon.open span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 9px);
    width: 30px;
}

.burger-icon.open span:nth-child(2) {
    opacity: 0;
}

.burger-icon.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -8px);
    width: 30px;
}

/* Mobile Menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    z-index: 1001 !important;
    position: relative;
}

.mobile-menu.open {
    max-height: 500px;
}

.mobile-menu-item {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(25, 118, 210, 0.1);
    transition: background-color 0.2s ease;
}

.mobile-menu-item:hover {
    background-color: rgba(255, 193, 7, 0.1);
}

/* Gallery Grid Modern */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    padding: 0;
}

@media (max-width: 1024px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .gallery-container {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 12px;
        padding: 12px 0;
        margin: 0 -8px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .gallery-container::-webkit-scrollbar {
        display: none;
    }
}

.gallery-item {
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, filter 0.3s ease;
    position: relative;
    border: none;
    height: 280px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(255, 193, 7, 0.35);
    filter: brightness(1.08);
}

@media (max-width: 768px) {
    .gallery-item {
        flex-shrink: 0;
        width: 70%;
        max-width: 100%;
        scroll-snap-align: start;
        height: 220px;
    }
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.4);
    border-color: rgba(255, 193, 7, 0.8);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: #FFC107;
    font-size: 2rem;
}

/* Gallery Grid for Galerie Page */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
    width: 100%;
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.gallery-grid .gallery-item {
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid .gallery-item:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 12px 32px rgba(255, 193, 7, 0.3);
}

@media (max-width: 768px) {
    .gallery-grid .gallery-item {
        height: 200px;
    }
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-grid .gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay i {
    color: #FFC107;
    font-size: 2.5rem;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #FFC107;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    color: #FFFFFF;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #FFC107;
    font-size: 2rem;
    cursor: pointer;
    padding: 20px;
    transition: color 0.3s ease;
    user-select: none;
}

.lightbox-nav:hover {
    color: #FFFFFF;
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

@media (max-width: 768px) {
    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
    }
}

/* Map Container */
#map {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    border: 2px solid rgba(25, 118, 210, 0.4);
    position: relative;
    z-index: 1;
}

.map-wrapper {
    position: relative;
    z-index: 1;
    padding-top: 16px;
}

@media (max-width: 768px) {
    #map {
        height: 300px;
    }
}

/* Navigation fixes */
nav {
    z-index: 1001 !important;
    position: relative;
}

/* Prevent scrolling overlap */
main, section {
    position: relative;
    z-index: 1;
}

/* Utility Classes */
.gradient-cyan {
    background: linear-gradient(90deg, #1976D2 0%, #1976D2 50%, #FFC107 100%);
}

.gradient-text-cyan {
    background: linear-gradient(90deg, #1976D2 0%, #1976D2 60%, #FFC107 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-cyan {
    border-color: rgba(25, 118, 210, 0.3);
}

.hover-cyan:hover {
    color: #FFC107;
    transition: color 0.3s ease;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 193, 7, 0.6);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-item {
        max-width: 100%;
    }

    .text-responsive {
        font-size: 14px;
    }

    .text-responsive-lg {
        font-size: 18px;
    }
}

/* Performance Optimization */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Icon Animations */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

/* Smooth scrolling for all browsers */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: #1976D2;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FFC107;
}
