/* Global Reset & Base Styles */
:root {
    --bg-color: #0f111a;
    /* Deeper, more modern background */
    --card-bg: rgba(30, 32, 45, 0.7);
    --sidebar-bg: rgba(20, 22, 30, 0.95);
    --text-color: #e2e4e9;
    --text-muted: #8a8d98;
    --accent-color: #00f2ff;
    /* Vibrant Cyan */
    --accent-color-glow: rgba(0, 242, 255, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-main: 'Outfit', sans-serif;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-lg: 16px;
    --radius-md: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Layout Structure */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.nav-open {
    overflow: hidden;
}

/* Header & Nav */
.main-header {
    width: 100%;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.9), transparent);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent-color);
}

/* Mobile Nav Toggle Styling */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    transition: background 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-color);
    transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Active State (X) */
.mobile-nav-toggle.active .hamburger {
    background: transparent;
}

.mobile-nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    /* Ensure no bullets */
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
    /* Ensure list items take full width */
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-transform: capitalize;
    /* Or keep uppercase if preferred */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    padding-left: 1.8rem;
    /* Subtle slide effect */
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.arrow {
    font-size: 0.7em;
    margin-left: 4px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}


/* Full Screen Slider Layout */
.split-layout {
    position: relative;
    height: calc(100vh - 160px);
    /* Adjusting for both header and footer space if needed */
    margin-top: 80px;
    overflow: hidden;
}

/* Left Content (Now Overlays the Background) */
.content-side {
    position: absolute;
    left: 4rem;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    max-width: 550px;
    padding: 3rem;
    background: transparent;
    /* Changed to transparent */
    backdrop-filter: blur(5px);
    /* Significantly reduced blur for maximum clarity */
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Even subtler border */
    border-radius: 24px;
    z-index: 20;
    flex-shrink: 0;
}

.content-wrapper {
    max-width: 500px;
    overflow: visible;
}

.main-title {
    font-size: clamp(3rem, 8vw, 4.5rem);
    line-height: 1;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #000, #333);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

.main-subtitle {
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 3rem;
    line-height: 1.6;
    font-weight: 600;
}

.static-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.slider-nav-static {
    display: flex;
    gap: 1rem;
}


/* Slider Background Side */
.slider-side {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Slide Updates for New Layout */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide img,
.slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1);
}

/* Slide Content Overlay (Minimal info in slider now) */
.slide-content-overlay {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    left: auto;
    z-index: 3;
}

.slide-content-overlay h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    backdrop-filter: blur(5px);
}

/* Overlay UI */
.overlay-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Let clicks pass through to slider controls usually, but we have buttons */
    z-index: 10;
}

.overlay-ui>* {
    pointer-events: auto;
    /* Re-enable clicks for UI elements */
}

/* Controls - Detail Button */
.detail-btn {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.detail-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--accent-color);
    border-color: var(--accent-color);
}

.btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.detail-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Slider Nav */
.nav-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: grid;
    place-items: center;
}

.nav-btn:hover {
    background: white;
    color: black;
    border-color: white;
}

/* Indicators position update */
.indicators {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    left: auto;
    /* Reset left */
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.indicator {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.indicator.active {
    background: var(--accent-color);
    width: 60px;
}

.main-footer {
    background: rgba(15, 17, 26, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 20;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(20, 20, 20, 0.95);
    /* Slightly darker/more opaque for content connection */
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    /* Reduced padding to fit images better */
    width: 90%;
    max-width: 900px;
    /* Wider to accommodate split view */
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.modal-backdrop.open .modal-content {
    transform: scale(1) translateY(0);
}

.modal-inner-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 1rem;
}

.modal-image-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-main-image {
    width: 100%;
    height: 420px;
    /* Reduced height for desktop */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.modal-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Changed to contain to show full photo without cropping */
    transition: transform 0.6s ease;
}

.modal-main-image:hover img {
    transform: scale(1.05);
}

.modal-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
}

.modal-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.modal-thumbnails::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumb:hover,
.thumb.active {
    opacity: 1;
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    z-index: 5;
    transition: all 0.3s ease;
}

.modal-nav:hover {
    background: var(--accent-color);
    color: black;
}

.modal-nav.prev {
    left: 1rem;
}

.modal-nav.next {
    right: 1rem;
}

.modal-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.close-modal:hover {
    color: white;
}

.modal-header h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.modal-header p {
    color: var(--accent-color);
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.modal-body p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    /* Increased size for readability */
    font-weight: 300;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature {
    text-align: center;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.feature span {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.2rem;
}

.feature p {
    margin: 0;
    font-size: 0.7rem;
    opacity: 0.6;
}

.modal-action-btn {
    width: 100%;
    padding: 1rem;
    background: var(--accent-color);
    border: none;
    color: #000;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: filter 0.3s ease;
}

.modal-action-btn:hover {
    filter: brightness(1.1);
}

/* Responsive */
@media (max-width: 900px) {
    .split-layout {
        flex-direction: column-reverse;
        /* Slideshow on top, text on bottom (or standard column) */
    }

    .content-side {
        width: 90%;
        left: 5%;
        padding: 2rem;
        bottom: 120px;
        /* More space from footer */
        top: auto;
        transform: none;
        max-width: none;
    }

    .slider-side {
        height: 100vh;
        top: 0;
        margin-top: -80px;
        /* Full visual height on mobile */
    }

    .main-footer {
        width: 100%;
        position: fixed;
        padding: 1rem 1.5rem;
        /* Compact on mobile */
    }

    .main-title {
        font-size: 3rem;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        padding: 100px 2rem;
        padding-bottom: 4rem;
        /* Add space at bottom for scrolling */
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        border-left: 1px solid var(--glass-border);
        overflow-y: auto;
        /* Enable scrolling */
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling for iOS */
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }

    .main-nav a {
        font-size: 1.2rem;
        width: 100%;
        display: block;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding-left: 1.5rem;
        display: none;
        /* Hide by default on mobile, show when parent clicked/active? */
        /* For simplicity on mobile, let's keep it visible or toggleable */
    }

    .dropdown.active .dropdown-menu,
    .dropdown:hover .dropdown-menu {
        display: flex;
    }

    .main-header {
        padding: 1.5rem;
        background: rgba(10, 10, 10, 0.8);
        backdrop-filter: blur(10px);
    }

    .slide-content h2 {
        font-size: 2.5rem;
    }

    .detail-btn {
        padding: 0.8rem 1.5rem;
    }

    .modal-content {
        padding: 1.5rem;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-inner-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .modal-image-wrapper {
        min-height: 200px;
    }

    .modal-main-image {
        height: 250px;
    }

    .features-grid {
        gap: 0.5rem;
    }

    .modal-header h3 {
        font-size: 2rem;
    }
}

/* Page Content (About/Generic) */
.page-content {
    flex: 1;
    padding: 120px 3rem 4rem 3rem;
    /* Top padding to clear fixed header */
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    overflow-y: auto;
}

.content-container {
    max-width: 800px;
    width: 100%;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeInUP {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUP 0.6s var(--transition-smooth) both;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(to right, #fff, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.5rem;
}

.divider {
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1), transparent);
    margin: 3rem 0;
}

.developer-profile {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: black;
    flex-shrink: 0;
}

/* Developer Profile Styles */
.developer-profile {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: black;
    flex-shrink: 0;
}

.profile-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

/* Property Details List in Modal */
.property-details-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 1rem;
}

.property-details-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
}

.property-details-list li:last-child {
    border-bottom: none;
}

.property-details-list .label {
    color: var(--accent-color);
    font-weight: 600;
    text-transform: capitalize;
}

.property-details-list .value {
    color: white;
    font-weight: 400;
}

/* Static Footer Overrides */
.static-footer {
    position: static;
    /* Let footer flow naturally on content pages */
    width: 100%;
}

@media (max-width: 768px) {
    .developer-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .page-title {
        font-size: 2.5rem;
    }
}

/* Products Grid */
.content-container.wide {
    max-width: 1200px;
    /* Wider container for grid */
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    /* Responsive columns */
    gap: 1.5rem;
    margin-top: 3rem;
    padding-bottom: 3rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    /* Glass-ish dark card */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Admin Footer Override */
.admin-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 200;
    /* Above sidebar */
    margin-top: 0;
    padding: 1rem 3rem;
    background: #1f2029;
    /* Match sidebar/header theme */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

.admin-footer p {
    margin: 0;
    font-size: 0.85rem;
}

.card-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.card-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Small Detail Button variant */
.detail-btn.small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    align-self: flex-start;
    /* Left align button */
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.detail-btn.small:hover {
    background: var(--accent-color);
    color: black;
}

/* Location Page Connect */
.map-link-container {
    display: block;
    width: 100%;
    margin: 2rem 0;
    text-decoration: none;
}

.table-img-grid {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    max-width: 150px;
    padding: 4px 0;
}

.table-img {
    position: relative;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
}

.table-img:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 242, 255, 0.3);
    z-index: 10;
}

.table-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-color);
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: filter 0.3s ease;
}

.map-wrapper:hover .map-image {
    filter: brightness(0.5);
}

.map-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-wrapper:hover .map-overlay {
    opacity: 1;
}

.map-btn {
    background: var(--accent-color);
    color: black;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
}

.location-details {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.detail-item h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.detail-item p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .location-details {
        flex-direction: column;
        gap: 2rem;
    }

    .map-wrapper {
        height: 250px;
    }
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Admin Form Styles */
.admin-form {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    margin-bottom: 3rem;
    animation: fadeInUP 0.8s var(--transition-smooth) both;
}

.admin-form label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.25));
    border: 1px solid var(--glass-border);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    /* Light-catcher */
    border-radius: var(--radius-md);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px) saturate(180%);
}

.admin-form input::placeholder,
.admin-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
    font-size: 0.9rem;
}

.admin-form input:hover,
.admin-form textarea:hover,
.admin-form select:hover {
    border-color: rgba(0, 242, 255, 0.4);
    background: rgba(0, 0, 0, 0.3);
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.35);
    /* Luminous extreme triple-layer glow */
    box-shadow:
        0 0 0 1px var(--accent-color),
        0 0 20px var(--accent-color-glow),
        0 0 50px rgba(0, 242, 255, 0.12),
        inset 0 3px 6px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px) scale(1.01);
}

.admin-form textarea {
    line-height: 1.8;
    min-height: 140px;
    resize: vertical;
}

/* Custom Scrollbar for Textareas */
.admin-form textarea::-webkit-scrollbar {
    width: 8px;
}

.admin-form textarea::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.admin-form textarea::-webkit-scrollbar-thumb {
    background: rgba(0, 242, 255, 0.2);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.admin-form textarea::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
    background-clip: content-box;
}

.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Custom file upload look */
.admin-form input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
    height: 100%;
    width: 100%;
    z-index: 2;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2.5rem 1.5rem;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    text-align: center;
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.02);
    gap: 0.8rem;
}

.file-upload-wrapper:hover .upload-placeholder {
    border-color: var(--accent-color);
    background: rgba(0, 242, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.1);
}

.upload-icon {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.file-upload-wrapper:hover .upload-icon {
    transform: translateY(-5px) scale(1.1);
}

.upload-text {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.file-name {
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.6;
    word-break: break-all;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--accent-color);
    color: #000;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 1.5rem;
    box-shadow: 0 4px 15px var(--accent-color-glow);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--accent-color-glow);
    filter: brightness(1.1);
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Admin Table Styles */
.table-container {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    overflow-x: auto;
    overflow-y: auto;
    /* max-height: 600px;  Removed to allow full page scrolling */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    animation: fadeInUP 0.8s var(--transition-smooth) both;
    animation-delay: 0.2s;
    /* Custom Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) rgba(255, 255, 255, 0.05);
    /* Better Swipe Feel */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    user-select: none;
    /* Prevent text selection while dragging */
}

.table-container.dragging {
    cursor: grabbing !important;
    scroll-behavior: auto;
    /* Smoother dragging */
}

.table-container.dragging table {
    pointer-events: none;
    /* Prevent button clicks while dragging */
}

.table-container::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.table-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 5px;
}

.table-container::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
    border: 3px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 10px var(--accent-color-glow);
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #00d8e4;
    box-shadow: 0 0 15px var(--accent-color-glow);
}

.data-table {
    width: 100%;
    min-width: 1200px;
    /* Increased to ensure horizontal scroll */
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.data-table th {
    position: sticky;
    top: -2rem;
    background: var(--card-bg);
    z-index: 10;
    padding: 1.2rem 1rem;
    text-align: left;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 2px solid var(--glass-border);
}

/* Fix sticky header for modern browsers */
.data-table thead th {
    top: -2rem;
    background: #1a1a1a;
}

.data-table td {
    padding: 1.2rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition-smooth);
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

.data-table tr td:first-child {
    border-radius: 10px 0 0 10px;
}

.data-table tr td:last-child {
    border-radius: 0 10px 10px 0;
}

.action-btns {
    display: flex;
    gap: 0.8rem;
}

.edit-btn,
.delete-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.edit-btn {
    background: rgba(0, 242, 255, 0.1);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.edit-btn:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 15px var(--accent-color-glow);
}

.delete-btn {
    background: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
    border: 1px solid #ff4d4d;
}

.delete-btn:hover {
    background: #ff4d4d;
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.3);
}

/* Contact Page Styles */
.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 1200px;
    padding-bottom: 4rem;
    justify-content: center;
    /* Center items for smaller count rows */
}

/* Remove forced full-width rows */
.whatsapp-card,
.email-card {
    grid-column: auto;
    margin: 0;
    width: auto;
}

@media (max-width: 992px) {
    .contact-card {
        flex: 1 1 calc(50% - 2rem);
        /* 2 per row on tablets */
    }
}

@media (max-width: 600px) {
    .contact-card {
        flex: 1 1 100%;
        /* 1 per row on mobile */
    }
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem 1.5rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    flex: 1 1 calc(33.333% - 2rem);
    /* Force 3 items per row if space allows */
    min-width: 280px;
    max-width: 380px;
    /* Prevent them from getting too wide in 2-item rows */
}

.contact-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.contact-icon-wrapper {
    background: rgba(255, 255, 255, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: all 0.4s ease;
}

.contact-card:hover .contact-icon-wrapper {
    background: var(--accent-color);
    transform: rotate(10deg);
}

.contact-card svg {
    width: 40px;
    height: 40px;
    fill: currentColor;
    color: white;
    /* White icon */
    transition: color 0.4s ease;
}

.contact-card:hover svg {
    color: black;
    /* Dark icon on hover for contrast with accent color */
}

.contact-card h3 {
    font-size: 1.5rem;
    color: white;
    /* White text */
    margin: 0;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.8);
    /* Slightly muted white */
    font-size: 0.9rem;
}

/* Responsive adjustment for very small screens */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* --- ADMIN PANEL STYLES --- */

.admin-page {
    overflow: hidden;
    height: 100vh;
}

/* Login Overlay */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    width: 100%;
    height: 100%;
    /* background: rgba(0, 0, 0, 0.8); Remove solid dark for transparency if desired, or keep logic separate */
    background: rgba(0, 0, 0, 0.6);
    /* Slightly lighter to show background? Or keep standard modal dark */
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.login-overlay.active {
    opacity: 1;
    visibility: visible;
}

.login-box {
    background: rgba(30, 30, 30, 0.95);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.login-box h2 {
    margin-bottom: 2rem;
    color: white;
    font-size: 2rem;
}

.error-msg {
    color: #ff4d4d;
    margin-top: 1rem;
    font-size: 0.9rem;
    display: none;
}

/* Admin Layout */


.admin-background-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Ensure slide active from script.js works here too */
.admin-background-slider .slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease;
    object-fit: cover;
}

.admin-background-slider .slide.active {
    opacity: 1;
}

.admin-background-slider .slide img,
.admin-background-slider .slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
    /* Darken bg images for better text contrast */
}

.admin-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 80px;
}

.admin-sidebar {
    width: 250px;
    background: var(--sidebar-bg);
    /* Reverted from rgba */
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    padding: 2rem 1.2rem;
    padding-bottom: 80px;
    /* Space for footer */
    position: fixed;
    top: 80px;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.sidebar-menu li {
    width: 100%;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
    border-left: 3px solid transparent;
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-left-color: var(--accent-color);
}

.nav-link.active {
    background: rgba(0, 242, 255, 0.08);
    box-shadow: inset 0 0 15px rgba(0, 242, 255, 0.05);
}

.admin-main {
    flex: 1;
    margin-left: 250px;
    padding: 3rem 4rem;
    padding-bottom: 5rem;
    /* Space for footer */
    background: var(--bg-color);
    /* Reverted from transparent */
    min-height: calc(100vh - 80px);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Page Sliding Layout */
.sections-container {
    width: 100%;
    flex: 1;
    min-height: 0;
    /* Important for nested scroll */
    overflow: hidden;
    margin-bottom: 2rem;
    /* Spacing before footer */
}

.sections-wrapper {
    display: flex;
    width: 200%;
    /* Two sections: Users and Products */
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}

.admin-section {
    width: 50%;
    /* Each section takes half of the wrapper (full container width) */
    height: 100%;
    overflow-y: auto;
    padding-right: 1rem;
    /* Space for scrollbar */
    padding-bottom: 15rem;
    /* Large padding to clear fixed footer */
    flex-shrink: 0;
}

/* Custom Scrollbar for Sections */
.admin-section::-webkit-scrollbar {
    width: 6px;
}

.admin-section::-webkit-scrollbar-track {
    background: transparent;
}

.admin-section::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.admin-section:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.page-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: -1px;
}

/* Sections */
.admin-section {
    animation: fadeIn 0.5s ease-out;
}

.hidden {
    display: none;
}

/* Responsive Admin */
@media (max-width: 900px) {
    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        position: static;
        height: auto;
        padding: 1rem 0;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .sidebar-menu {
        flex-direction: row;
        gap: 1rem;
        padding: 0 1rem;
    }

    .nav-link {
        padding: 0.8rem 1.5rem;
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
        border-radius: 4px;
    }

    .nav-link:hover,
    .nav-link.active {
        border-left-color: transparent;
        border-bottom-color: var(--accent-color);
    }

    .admin-main {
        margin-left: 0;
        padding: 1.5rem;
    }

    .main-header {
        padding: 1rem 1.5rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo-sub {
        display: none;
    }

    /* Mobile Header/Nav Adjustments */
    .mobile-nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--sidebar-bg);
        backdrop-filter: blur(20px);
        z-index: 1000;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        border-left: 1px solid var(--glass-border);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .main-nav a {
        font-size: 1.2rem;
    }

    body.nav-open {
        overflow: hidden;
    }
}

/* Sliding Sidebar for Forms */
.sliding-sidebar {
    position: fixed;
    top: 0;
    right: -600px;
    /* Hidden by default */
    width: 600px;
    height: 100vh;
    background: #1f2029;
    z-index: 2000;
    /* Above everything */
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.8);
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.sliding-sidebar.active {
    right: 0;
}

.sidebar-content {
    padding: 2.5rem;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 1.5rem;
}

.sidebar-header h2 {
    font-size: 1.8rem;
    color: #fff;
    font-weight: 600;
}

.close-sidebar {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-sidebar:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent-color);
}

.section-actions {
    margin-bottom: 2rem;
    display: flex;
    justify-content: flex-end;
}

.add-btn {
    background: var(--accent-color);
    color: #000;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.add-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.5);
}

/* Adjust form-row for sidebar */
.sliding-sidebar .form-row {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
}

.sliding-sidebar .form-group {
    flex: 1;
    margin-bottom: 1.5rem;
}

.form-section {
    margin-bottom: 3rem;
    padding: 2.2rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-section-title {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 242, 255, 0.1);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sliding-sidebar .submit-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 1.2rem;
    font-size: 1.1rem;
}

/* Column Specific Styling for KPR Table */
.data-table .col-type {
    font-weight: 600;
    color: var(--accent-color);
    font-style: italic;
    font-size: 0.9rem;
}

.data-table .col-dim {
    text-align: center;
    font-size: 0.95rem;
}

.data-table .col-syarat {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    vertical-align: top;
    min-width: 200px;
    max-width: 400px;
    white-space: normal;
}


.data-table .unit {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-left: 2px;
}

.data-table .col-price {
    font-weight: 700;
    color: #00f2ff;
    text-align: right;
    min-width: 140px;
}

.data-table .col-tenor {
    font-size: 0.9rem;
    color: #e2e4e9;
    text-align: right;
    min-width: 110px;
}

.data-table .currency {
    color: rgba(0, 242, 255, 0.5);
    font-size: 0.8rem;
    margin-right: 2px;
}

.data-table .col-actions {
    text-align: right;
    min-width: 140px;
}

/* Hyper-Premium Polish */
.data-table tbody tr {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.data-table tbody tr:hover {
    background: rgba(0, 242, 255, 0.05);
    transform: translateX(5px);
    box-shadow: inset 4px 0 0 var(--accent-color);
}

.form-group:focus-within label {
    color: var(--accent-color);
    transform: translateY(-2px);
    text-shadow: 0 0 12px var(--accent-color-glow);
}

.form-section {
    animation: fadeInSlideRight 0.5s ease backwards;
}

.form-section:nth-child(1) {
    animation-delay: 0.1s;
}

.form-section:nth-child(2) {
    animation-delay: 0.2s;
}

.form-section:nth-child(3) {
    animation-delay: 0.3s;
}

.form-section:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInSlideRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- IMAGE LIGHTBOX GALLERY --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: none;
    /* Changed back to none/flex */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-overlay.active .lightbox-container {
    transform: scale(1);
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 10px 50px rgba(0, 242, 255, 0.2);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    transition: var(--transition-smooth);
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    transform: translateY(-50%);
    z-index: 3010;
}

.lightbox-nav:hover {
    background: var(--accent-color);
    color: black;
    box-shadow: 0 0 20px var(--accent-color-glow);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
    /* Moved inside */
}

.lightbox-next {
    right: 20px;
    /* Moved inside */
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    /* Moved inside image area footer */
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

@media (max-width: 1024px) {
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .lightbox-prev {
        left: -60px;
    }

    .lightbox-next {
        right: -60px;
    }
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: -60px;
        right: 10px;
    }
}

/* Enhancing triggers for clickability */
.lightbox-trigger {
    cursor: pointer;
}

.table-img {
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.table-img:hover {
    transform: scale(1.08);
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 15px var(--accent-color-glow);
}

/* Modal Navigation Buttons */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    color: var(--accent-color);
}

.modal-nav.prev {
    left: 1rem;
}

.modal-nav.next {
    right: 1rem;
}

/* Premium Table Styling for Requirements */
.requirements-table-wrapper {
    margin-top: 2rem;
    overflow-x: auto;
    border-radius: var(--radius-lg);
    background: rgba(30, 32, 45, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
    color: white;
    font-size: 1rem;
}

.premium-table th {
    background: rgba(0, 242, 255, 0.1);
    color: var(--accent-color);
    text-align: left;
    padding: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--accent-color);
    white-space: nowrap;
}

.premium-table td {
    padding: 1.5rem;
    line-height: 1.8;
    vertical-align: top;
    border-bottom: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.85);
    transition: background 0.3s ease;
}

.premium-table tr:last-child td {
    border-bottom: none;
}

.premium-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
    color: white;
}

/* Custom Scrollbar for Table */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

@media (max-width: 768px) {

    .premium-table th,
    .premium-table td {
        padding: 1rem;
        font-size: 0.9rem;
    }
}



/* Legality Section */
.legality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    /* Limit overall section width */
    margin-left: auto;
    margin-right: auto;
}

.legality-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1rem;
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-width: 220px;
    /* Limit card width */
    margin: 0 auto;
}

.legality-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(0, 242, 255, 0.15);
}

.legality-img {
    width: 100%;
    aspect-ratio: 1/1.3;
    object-fit: cover;
    border-radius: var(--radius-md);
    filter: grayscale(0.4);
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.05);
}

.legality-card:hover .legality-img {
    filter: grayscale(0);
    transform: scale(1.02);
}

.legality-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
    letter-spacing: 0.5px;
}