@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom Scrollbar Modern */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f5f7f9;
}
::-webkit-scrollbar-thumb {
  background: #d9dde0;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #006a2d; /* primary green */
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
}

body { font-family: 'Plus Jakarta Sans', sans-serif; min-height: max(884px, 100dvh); }
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24 !important;
}

/* Dropdown */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    z-index: 50;
}
.dropdown-trigger:hover .dropdown-menu {
    display: block;
}
.dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    color: #2c2f31;
    font-size: 0.875rem;
}
.dropdown-item:hover {
    background-color: #f5f7f9;
    color: #006a2d;
}
.mobile-submenu {
    display: none;
}
.mobile-submenu.open {
    display: block;
}
.submenu-toggle-icon {
    transition: transform 0.3s ease;
}
.submenu-toggle-icon.rotate-180 {
    transform: rotate(180deg);
}
/* Lightbox Premium */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.4s;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img-container {
    max-width: 90%;
    max-height: 85%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-overlay.active .lightbox-img-container {
    transform: scale(1);
}

.lightbox-img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 85vh;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1010;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1010;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    width: 65px;
    height: 65px;
}

.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }

@media (max-width: 768px) {
    .lightbox-nav {
        width: 50px;
        height: 50px;
        bottom: 2rem;
        top: auto;
        transform: none;
    }
    .lightbox-prev { left: calc(50% - 60px); }
    .lightbox-next { right: calc(50% - 60px); }
    .lightbox-close { top: 1rem; right: 1rem; }
}
