/* ============================================
   HERACK Website - Main CSS
   Glassmorphism Design with Full Responsiveness
   ============================================ */

/* ===== CSS RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== CSS VARIABLES ===== */
:root {
    /* Light Theme Colors */
    --primary-color: #2C3E50;
    --secondary-color: #3498DB;
    --accent-color: #E74C3C;

    --bg-primary: #F8F9FA;
    --bg-secondary: #FFFFFF;
    --bg-overlay: rgba(44, 62, 80, 0.65);

    --text-primary: #2C3E50;
    --text-secondary: #7F8C8D;
    --text-light: #FFFFFF;

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: rgba(0, 0, 0, 0.1);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.4s ease;
}

/* ===== UTILITY CLASSES ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
}

.centered {
    text-align: center;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(15px);
    }
}



/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: transparent;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(44, 62, 80, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Scrolled logic moved to base styles for mid-page nav */

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .logo {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
}

.nav-link:hover,
.nav-link.active {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Scrolled Navbar State */
/* Scrolled Navbar State */
/* .scrolled logic removed as base is now solid */



.navbar .nav-link:hover,
.navbar .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
}

/* Logo remains white (removed filter) */
.navbar.scrolled .nav-brand .logo {
    filter: none;
    opacity: 1;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    /* Default light for hero */
    border-radius: 2px;
    transition: all var(--transition-normal);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    padding-bottom: 8vh;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--text-light);
}

.hero-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    text-decoration: none;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid #ffffff;
    border-radius: 13px;
    position: relative;
    display: flex;
    justify-content: center;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #ffffff;
    border-radius: 2px;
    margin-top: 8px;
    animation: scroll-wheel 1.5s ease infinite;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.4);
}

.btn-view {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--text-light);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all var(--transition-normal);
}

.btn-view:hover {
    background: var(--secondary-color);
    color: var(--text-light);
}

/* ===== SECTIONS ===== */
section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

/* Main text in About section matches mission/vision paragraphs */
.about-text p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-text strong {
    color: var(--secondary-color);
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.value-item h4 {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
}

.value-item p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== CORE VALUES SECTION ===== */
.core-values-section {
    background: linear-gradient(135deg, #080a0c 0%, #000000 100%);
    color: var(--text-light);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.core-values-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(52, 152, 219, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(52, 152, 219, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.core-values-section .section-title {
    color: var(--text-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 60px;
}

.value-card {
    padding: var(--spacing-lg);
    text-align: center;
    transition: all var(--transition-normal);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.value-card:last-child {
    border-right: none;
}

.value-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.02);
}

.value-icon {
    font-size: 2.2rem;
    margin-bottom: var(--spacing-md);
    color: var(--secondary-color);
    opacity: 0.8;
}

.value-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
    letter-spacing: 2px;
}

.value-card p {
    font-size: 0.85rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    max-width: 250px;
    margin: 0 auto;
}

/* Responsiveness for flat design */
@media (max-width: 992px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .value-card:nth-child(2n) {
        border-right: none;
    }

    .value-card {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 576px) {
    .values-grid {
        grid-template-columns: 1fr;
    }

    .value-card {
        border-right: none;
    }
}

/* ===== SERVICES SECTION (Robust Layout) ===== */
.services-section {
    background: var(--bg-primary);
    padding: 150px 0;
    margin-top: 0;
    overflow: visible;
    /* Crucial for sticky */
    position: relative;
    z-index: 20;
}

.services-wrapper {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 80px;
    align-items: start;
}

.services-info {
    position: relative;
    height: 100%;
}

.sticky-content {
    position: sticky;
    top: 160px;
    z-index: 5;
}

.sticky-content .section-title {
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 25px;
    font-size: 2.2rem;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.sticky-content .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.service-card-horizontal {
    background: #ffffff;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.04);
    display: flex;
    gap: 40px;
    align-items: flex-start;
    transition: all var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.service-card-horizontal:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.service-card-horizontal .card-icon {
    width: 70px;
    height: 70px;
    background: #eef6ff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.service-card-horizontal .card-content {
    flex: 1;
}

.service-card-horizontal h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.service-card-horizontal p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.service-list-compact {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.service-list-compact li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.service-list-compact li::before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.project-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.coming-soon-placeholder {
    width: 100%;
    height: 100%;
    background: #eef1f4;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.coming-soon-placeholder span {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-secondary);
    opacity: 0.6;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    padding: var(--spacing-md);
}

.project-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--primary-color);
}

.project-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.project-info i {
    margin-right: 5px;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: var(--primary-color);
    color: var(--text-light);
    padding: var(--spacing-xl) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-light);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: start;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-light);
}

.contact-item p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

/* ===== CONTACT FORM ===== */
.contact-form {
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.15);
}

.form-message {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    display: none;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid #2ECC71;
    color: #2ECC71;
    display: block;
}

.form-message.error {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #E74C3C;
    color: #E74C3C;
    display: block;
}

/* ===== FOOTER ===== */
.footer {
    background: #1a252f;
    color: var(--text-light);
    padding: var(--spacing-md) 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-content p {
    font-size: 0.75rem;
    opacity: 0.85;
}

.footer-credit {
    font-size: 0.6rem !important;
    /* Much smaller as requested */
    opacity: 0.6;
    margin-top: 2px;
}

.footer-credit a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 400;
    /* Lighter weight */
    transition: color var(--transition-fast);
}

.footer-credit a:hover {
    color: var(--text-light);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets */
@media (max-width: 992px) {

    .about-grid,
    .contact-grid,
    .services-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .sticky-content {
        position: static;
        padding-right: 0;
        margin-bottom: var(--spacing-md);
        text-align: center;
    }

    .desktop-only {
        display: none;
    }

    .values-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {

    /* Prevent horizontal overflow globally */
    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        flex-direction: column;
        background: #1a2533 !important;
        /* Solid deep professional blue */
        width: 100%;
        height: 100vh;
        padding: 0;
        display: flex;
        justify-content: center;
        /* Center items vertically */
        align-items: center;
        /* Center items horizontally */
        transition: left 0.3s ease-in-out;
        z-index: 1000;
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        color: #FFFFFF !important;
        font-size: 1.5rem;
        font-weight: 500;
        text-decoration: none;
        padding: 10px 0;
        width: 100%;
        text-align: center;
        transition: color 0.2s ease;
    }

    .nav-link:active {
        color: var(--secondary-color) !important;
        background: rgba(255, 255, 255, 0.05);
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
        /* Above the fixed menu */
    }

    .nav-toggle.active span {
        background: #FFFFFF !important;
        /* Force white X icon */
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .theme-toggle {
        top: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    /* Hero adjustments */
    .hero-title {
        font-size: 1.8rem;
        /* Reduced from 2rem/4rem */
        padding: 0 var(--spacing-sm);
        /* Prevent edge touching */
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 var(--spacing-sm);
    }

    /* Services adjustments */
    .service-card-horizontal {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .service-card-horizontal .card-icon {
        margin-bottom: var(--spacing-sm);
    }

    .service-list-compact li {
        text-align: left;
        display: block;
        /* Stack items for better readability */
        margin-bottom: 5px;
    }

    section {
        padding: var(--spacing-lg) 0;
    }

    .container {
        padding: 0 var(--spacing-md);
        /* Ensure safe padding */
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 1.5rem;
        /* Further reduction for small screens */
    }

    .btn {
        padding: 0.85rem 2rem;
        font-size: 0.85rem;
        width: 100%;
        /* Full width button on mobile */
        max-width: 300px;
    }

    .project-image {
        height: 200px;
    }

    .values-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        /* Stack values and projects on small mobile */
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* ===== LOADING STATES ===== */
.loading {
    pointer-events: none;
    opacity: 0.6;
    cursor: wait;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    overflow: hidden;
    z-index: 2001;
    transform: scale(0.95);
    transition: transform var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 2002;
    transition: color var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--accent-color);
}

.lightbox-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

@media (min-width: 768px) {
    .lightbox-body {
        flex-direction: row;
        height: 600px;
        /* Fixed height for desktop */
    }

    .lightbox-gallery {
        width: 60%;
        background: #000;
    }

    .lightbox-details {
        width: 40%;
    }
}

/* Lightbox Gallery */
.lightbox-gallery {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #000;
}

.gallery-main {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

@media (min-width: 768px) {
    .gallery-main {
        height: 100%;
        flex: 1;
    }
}

.gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 10px 15px;
    cursor: pointer;
    transition: background var(--transition-fast);
    border-radius: 5px;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.4);
}

.gallery-nav.prev {
    left: 10px;
}

.gallery-nav.next {
    right: 10px;
}

/* Thumbnails */
.gallery-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.9);
    overflow-x: auto;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 10;
}

.gallery-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.gallery-thumbnail:hover {
    opacity: 1;
}

.gallery-thumbnail.active {
    opacity: 1;
    border-color: var(--accent-color);
    transform: scale(1.1);
}

/* Lightbox Details */
.lightbox-details {
    padding: var(--spacing-lg);
    background: #fff;
    overflow-y: auto;
}

.lightbox-details h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.lightbox-location {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.lightbox-description {
    color: var(--text-secondary);
    line-height: 1.8;
}

.lightbox-description p {
    margin-bottom: 1rem;
}