/* Reset root margins to remove any top line/gap */
html {
    scroll-padding-top: 5.5rem; /* anchor links clear fixed navbar */
}

html, body {
    margin: 0;
    padding: 0;
}

/* Modern Variables */
:root {
    /* Light Mode Colors */
    --primary-color: #1a237e; /* Deep blue from logo */
    --secondary-color: #0d47a1; /* Lighter blue for accents */
    --accent-color: #2962ff; /* Bright blue for highlights */
    --text-color: #ffffff;
    --light-bg: rgba(255, 255, 255, 0.95);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(26, 35, 126, 0.2);
    --body-bg: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    --navbar-bg: rgba(255, 255, 255, 0.8);
    --hero-overlay: linear-gradient(to top right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    --card-bg: rgba(255, 255, 255, 0.95);
    --form-control-bg: rgba(255, 255, 255, 0.95);
    --form-control-focus-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #1a237e;
    --gallery-overlay: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    
    /* Buttons */
    --btn-primary-bg: var(--primary-color);
    --btn-primary-text: #ffffff;
}

/* Dark Mode Colors */
[data-theme="dark"] {
    --primary-color: #ffffff; /* Primary elements become white */
    --secondary-color: #e0e0e0; /* Light gray for subtle accents */
    --accent-color: #e3f2fd; /* Light blue for highlights */
    --text-color: #ffffff; /* High-contrast text */
    --light-bg: rgba(0, 0, 0, 0.9); /* General surface background */
    --glass-bg: rgba(0, 0, 0, 0.2); /* Glass effect on black */
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --body-bg: linear-gradient(135deg, #000000 0%, #111111 100%);
    --navbar-bg: rgba(0, 0, 0, 0.85);
    --hero-overlay: linear-gradient(to top right, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.6));
    --card-bg: rgba(0, 0, 0, 0.9);
    --form-control-bg: rgba(0, 0, 0, 0.9);
    --form-control-focus-bg: rgba(0, 0, 0, 0.95);
    --footer-bg: #000000; /* Footer surface becomes black */
    --gallery-overlay: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);

    /* Dark mode buttons stay brand blue for better contrast on white cards */
    --btn-primary-bg: #1a237e;
    --btn-primary-text: #ffffff;

    /* Packages section theme */
    --packages-bg-dark: linear-gradient(135deg, #0b1a3a, #0a1f5a);
    --packages-text-lightblue: #a7c0ff; /* Less saturated light blue */
}

/* Light mode: make hero overlay dark blue to match brand */
:root:not([data-theme="dark"]) {
    --hero-overlay: linear-gradient(to top right, rgba(26, 35, 126, 0.85), rgba(13, 71, 161, 0.6));
}

/* Logo swap for dark mode */
.navbar-brand .logo-dark { display: none; }
[data-theme="dark"] .navbar-brand .logo-light { display: none; }
[data-theme="dark"] .navbar-brand .logo-dark { display: inline; }

/* Ensure consistent logo sizing in both themes */
.navbar-brand .logo-light,
.navbar-brand .logo-dark {
    height: 50px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

/* Navbar Dark Mode Toggle Button */
.navbar-dark-mode-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 9999px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-dark-mode-toggle:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .navbar-dark-mode-toggle:hover {
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.08);
}

.navbar-dark-mode-toggle:active {
    transform: translateY(0) scale(0.98);
}

.navbar-dark-mode-toggle i {
    color: var(--primary-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.navbar-dark-mode-toggle .sun-icon { display: none; }
[data-theme="dark"] .navbar-dark-mode-toggle .sun-icon { display: inline; }
[data-theme="dark"] .navbar-dark-mode-toggle .moon-icon { display: none; }

/* Add subtle ring focus for accessibility */
.navbar-dark-mode-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.25);
}

/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--body-bg);
    overflow-x: hidden;
    transition: all 0.3s ease;
}

/* Enhanced Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Organic Shapes */
.organic-shape {
    position: absolute;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0.1;
    z-index: 0;
}

.shape-1 {
    width: 500px;
    height: 500px;
    top: -250px;
    right: -250px;
    animation: float 20s infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    bottom: -200px;
    left: -200px;
    animation: float 25s infinite reverse;
}

/* Modern Navigation */
.navbar {
    background: var(--navbar-bg) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    animation: slideIn 0.5s ease forwards;
    margin-top: 0;
    border-top: none;
}

.navbar-brand img {
    height: 50px;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    color: var(--primary-color) !important;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: translateX(0);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-overlay);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--text-color);
}

.hero-section .lead {
    color: var(--text-color);
}

/* Organic Cards */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    animation: slideIn 0.5s ease forwards;
    opacity: 0;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .card:hover {
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.1);
}

.card:hover::before {
    opacity: 1;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0;
}

/* Gallery view page — padding clears fixed .navbar (flow starts at top of viewport) */
.gallery-header {
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    color: #ffffff;
    margin-top: 0;
    padding: clamp(6.75rem, 14vw, 9rem) 0 clamp(2.5rem, 5vw, 3.25rem) 0;
    position: relative;
    z-index: 0;
}

.gallery-page-content .gallery-grid {
    margin-top: 0.5rem;
}

/* Detail grid tiles: full-bleed image, text fades in on hover */
.gallery-item--tile {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--glass-shadow);
    aspect-ratio: 4 / 3;
    cursor: default;
}

/* Detail page: image-only tiles (no caption overlay) */
.gallery-item--photo-only {
    cursor: default;
}

.gallery-item-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item--tile:hover .gallery-item-photo,
.gallery-item--tile:focus-within .gallery-item-photo {
    transform: scale(1.04);
}

.gallery-item--tile .gallery-item-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 0;
    margin: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.42) 48%,
        rgba(0, 0, 0, 0) 76%
    );
    opacity: 0;
    transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: inherit;
    color: #ffffff;
    transform: none;
}

.gallery-item--tile:hover .gallery-item-overlay,
.gallery-item--tile:focus-within .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay-inner {
    padding: 1.35rem 1.5rem 1.2rem;
    width: 100%;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75), 0 1px 4px rgba(0, 0, 0, 0.9);
}

.gallery-item-overlay-inner h5 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.gallery-item-overlay-inner p {
    color: rgba(255, 255, 255, 0.93);
    font-size: 0.95rem;
}

/* Homepage gallery preview cards */
.gallery-card-link {
    display: block;
    color: inherit;
    border-radius: 15px;
}

.gallery-card-link:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

.gallery-card--preview {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.14);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.gallery-card-link:hover .gallery-card--preview,
.gallery-card-link:focus-visible .gallery-card--preview {
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.22);
    transform: translateY(-4px);
}

.gallery-card-media {
    position: absolute;
    inset: 0;
}

.gallery-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-card-placeholder {
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: #64748b;
}

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.45) 52%,
        rgba(0, 0, 0, 0) 74%
    );
    opacity: 0;
    transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-card-link:hover .gallery-card-overlay,
.gallery-card-link:focus-visible .gallery-card-overlay {
    opacity: 1;
}

.gallery-card-link:hover .gallery-card-img,
.gallery-card-link:focus-visible .gallery-card-img {
    transform: scale(1.04);
}

.gallery-card-overlay-inner {
    padding: 1.5rem 1.5rem 1.35rem;
    width: 100%;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75), 0 1px 4px rgba(0, 0, 0, 0.9);
}

.gallery-card-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.5rem;
}

.gallery-card-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 0.75rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-card-meta {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.88);
}

.gallery-card-cta {
    display: inline-flex;
    align-items: center;
    margin-top: 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
}

/* CTA strip on gallery.html */
.gallery-cta {
    border-radius: var(--border-radius-lg);
    padding: 2rem 1.75rem;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.09), rgba(13, 71, 161, 0.07));
    border: 1px solid rgba(26, 35, 126, 0.14);
    color: #0f172a;
}

.gallery-cta h3 {
    color: #1a237e;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gallery-cta p {
    color: #334155;
    margin-bottom: 1.25rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

@media (prefers-reduced-motion: reduce) {
    .gallery-item--tile .gallery-item-overlay,
    .gallery-card-overlay {
        opacity: 1;
        transition: none;
    }
    .gallery-item--tile .gallery-item-photo,
    .gallery-card-img {
        transform: none !important;
        transition: none;
    }
    .gallery-card--preview,
    .gallery-card-link:hover .gallery-card--preview,
    .gallery-card-link:focus-visible .gallery-card--preview {
        transform: none;
    }
}

/* Modern Form Elements */
.form-control {
    background: var(--form-control-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    color: var(--text-color);
}

.form-control::placeholder {
    color: var(--text-color);
    opacity: 0.7;
}

.form-control:focus {
    background: var(--form-control-focus-bg);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    border-color: var(--accent-color);
    color: var(--text-color);
}

/* Modern Buttons */
.btn {
    padding: 1rem 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(21, 31, 107, 0.2);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .btn {
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    opacity: 1;
}

/* Button colors - ensure contrast in both themes */
.btn-primary {
    background: var(--btn-primary-bg);
    border: none;
    box-shadow: 0 4px 15px rgba(21, 31, 107, 0.2);
    color: var(--btn-primary-text);
}

[data-theme="dark"] .btn-primary {
    /* In dark mode, primary-color is white, so text must be black for contrast */
    color: #000000;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

/* Contact Section */
.contact-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.contact-info h4,
.contact-info h5 {
    color: var(--text-color);
}

.contact-info p {
    color: var(--text-color);
    opacity: 0.9;
}

.social-links {
    position: relative;
    z-index: 1;
}

.social-links a {
    color: var(--primary-color);
    font-size: 2rem;
    margin: 0 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-5px) rotate(10deg);
}

/* Footer */
footer {
    background: var(--footer-bg);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
    color: var(--primary-color);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

footer h5 {
    color: var(--primary-color);
}

footer p {
    color: var(--primary-color);
    opacity: 0.9;
}

/* Section Titles */
.section-title h2 {
    color: var(--primary-color);
}

.section-title p,
.section-title p1 {
    color: var(rgba(255, 255, 255, 0.95));
    opacity: 0.9;
}

/* Breadcrumb */
.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--primary-color);
}

/* Gallery Header */
.gallery-header {
    background: linear-gradient(135deg, var(--footer-bg), var(--secondary-color));
    color: var(--primary-color);
}

.gallery-header h1 {
    color: var(--primary-color);
}

.gallery-header .lead {
    color: var(--primary-color);
    opacity: 0.9;
}

/* Placeholder Images */
.placeholder-image {
    background: linear-gradient(135deg, var(--card-bg), var(--light-bg));
    color: var(--text-color);
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .card {
        margin-bottom: 1.5rem;
    }
    
    .contact-card {
        padding: 2rem;
    }
    
    /* Mobile navbar adjustments */
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
    
    .navbar-dark-mode-toggle {
        margin: 0.5rem auto;
        width: fit-content;
    }
}

/* Loading Animation */
.loading {
    background: var(--light-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Gallery Sets */
.gallery-sets {
    margin-bottom: 3rem;
}

.gallery-set {
    margin-bottom: 2rem;
}

.gallery-set-title {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.gallery-set-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: var(--border-radius-sm);
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    background: var(--light-bg);
    padding: 0.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.language-switcher select {
    border: none;
    background: transparent;
    color: var(--primary-color);
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    outline: none;
}

.language-switcher select:focus {
    outline: none;
}

/* Language Switcher Button */
.language-btn {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
    background: transparent;
    min-width: 60px;
}

.language-btn:hover {
    background: var(--primary-color);
    color: var(--footer-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.2);
}

/* Package Prices */
.package-price {
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    margin: 1rem 0;
}

.package-price .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    line-height: 1;
}

.package-price .price::before {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 0 auto 0.5rem;
    border-radius: var(--border-radius-sm);
}

/* Card Enhancements */
.card {
    position: relative;
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(#871414), var(#2962ff));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::after {
    opacity: 1;
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1rem;
}

.list-unstyled li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    color: var(--text-color);
}

.list-unstyled li i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* Gallery Preview */
.gallery-preview {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: all 0.5s ease;
}

.gallery-preview:hover {
    transform: scale(1.02);
    box-shadow: var(--glass-shadow);
}

.gallery-preview img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-preview:hover img {
    transform: scale(1.1);
}

.gallery-preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gallery-overlay);
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.gallery-preview:hover .gallery-preview-overlay {
    transform: translateY(0);
}

/* Gallery Modal */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .gallery-modal {
    background: rgba(26, 35, 126, 0.9);
}

.gallery-modal.active {
    display: flex;
    opacity: 1;
}

.gallery-modal-content {
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    position: relative;
}

.gallery-modal img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--primary-color);
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-modal-close:hover {
    transform: rotate(90deg);
}

/* Enhanced Button Animations */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

[data-theme="dark"] .btn::after {
    background: rgba(26, 35, 126, 0.2);
}

.btn:hover::after {
    width: 300px;
    height: 300px;
} 

/* Text contrast refinements */
.section-title h2,
.section-title p,
.section-title p1,
.card-title,
.card-text,
.list-unstyled li,
.contact-info h4,
.contact-info h5,
.contact-info p {
    color: var(--primary-color);
}

.section-title p,
.section-title p1,
.card-title,
.card-text,
.list-unstyled li,
.contact-info h4,
.contact-info h5,
.contact-info p {
    color: var(--text-color);
}

/* Legacy gallery preview overlays (non-tile) */
.gallery-preview-overlay {
    color: var(--text-color);
}

/* Gallery contrast fixes and persistent glows */
/* Distinguishable very dark grey background for gallery section on home */
[data-theme="dark"] #gallery {
    background: #0a0a0a !important;
}

/* Homepage preview cards: image-based; glow only */
[data-theme="dark"] #gallery .gallery-card--preview {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 28px rgba(10, 31, 90, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Gallery view page: dark content area */
[data-theme="dark"] .gallery-header + section,
[data-theme="dark"] .gallery-page-content {
    background: #0a0a0a !important;
}

[data-theme="dark"] .gallery-item--tile {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 24px rgba(10, 31, 90, 0.3);
}

[data-theme="dark"] .gallery-item-overlay-inner h5,
[data-theme="dark"] .gallery-item-overlay-inner p {
    color: #ffffff;
}

[data-theme="dark"] .gallery-cta {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.94));
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #e2e8f0;
}

[data-theme="dark"] .gallery-cta h3 {
    color: #f8fafc;
}

[data-theme="dark"] .gallery-cta p {
    color: #cbd5e1;
}

/* Breadcrumb and headings maintain strong contrast on gallery page */
[data-theme="dark"] .breadcrumb-item a,
[data-theme="dark"] .breadcrumb-item.active,
[data-theme="dark"] .gallery-header h1,
[data-theme="dark"] .gallery-header .lead {
    color: #ffffff !important;
}

/* Packages Section */
/* Default (light) uses inline gradient from HTML; override in dark */
[data-theme="dark"] #packages {
    background: var(--packages-bg-dark) !important;
}

[data-theme="dark"] #packages .card-title,
[data-theme="dark"] #packages .price {
    color: var(--packages-text-lightblue);
} 

/* Make packages glow visible without hover (dark mode) and override inline rules */
[data-theme="dark"] .glass-pane {
    background: rgba(0, 0, 0, 0.35) !important;
    box-shadow: 0 12px 40px rgba(10, 31, 90, 0.55), 0 0 60px rgba(10, 31, 90, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* Keep persistent glow on package cards in dark mode */
[data-theme="dark"] #packages .card {
    background: #0b0d10 !important; /* very dark card surface */
    color: #e8edf7 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px rgba(10, 31, 90, 0.45), 0 0 30px rgba(10, 31, 90, 0.35) !important;
}

[data-theme="dark"] #packages .card-title,
[data-theme="dark"] #packages .price {
    color: var(--packages-text-lightblue) !important;
}

[data-theme="dark"] #packages .card-text {
    color: #cfd6e8 !important;
}

/* Make 'Na Kontaktoni' buttons white for better contrast in dark mode */
[data-theme="dark"] .btn-primary {
    background: #ffffff !important;
    color: #0a1f5a !important;
}

[data-theme="dark"] .btn-primary:hover {
    background: #f2f4f8 !important;
    color: #091a3f !important;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.18);
} 

/* Dark mode: force section subtitle text to white */
[data-theme="dark"] .section-title p,
[data-theme="dark"] .section-title p1 {
    color: #ffffff;
} 

/* Dark mode: dark blue buttons in packages section */
[data-theme="dark"] #packages .btn-primary {
    background: #1a237e !important; /* deep dark blue */
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 6px 18px rgba(26, 35, 126, 0.35) !important;
}

[data-theme="dark"] #packages .btn-primary:hover {
    background: #0d47a1 !important; /* slightly lighter blue on hover */
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(13, 71, 161, 0.4) !important;
} 

/* Remove card top bar effect globally */
.card::before,
.card::after {
    display: none !important;
}

/* Smooth transitions for glass pane to match card breathing effect */
.glass-pane {
	transition: box-shadow 900ms cubic-bezier(0.22, 1, 0.36, 1), background-color 900ms cubic-bezier(0.22, 1, 0.36, 1);
	will-change: box-shadow, background-color;
}

/* Breathing hover: package cards only (gallery previews use their own hover motion) */
#packages .card {
	transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 900ms cubic-bezier(0.22, 1, 0.36, 1);
	transform-origin: center;
	will-change: transform, box-shadow;
	backface-visibility: hidden;
}

#packages .card:hover {
	transform: scale(1.02) !important;
}

/* Unify button hover to match light-mode packages cards across sections */
#packages .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 31, 107, 0.3) !important;
} 

/* Light mode: improve contact section text contrast */
:root:not([data-theme="dark"]) .contact-info h4,
:root:not([data-theme="dark"]) .contact-info h5 {
	color: var(--primary-color);
}

:root:not([data-theme="dark"]) .contact-info p {
	color: #334155; /* dark slate for readability */
	opacity: 1;
}

:root:not([data-theme="dark"]) .form-control {
	color: #0f172a; /* very dark text inside inputs */
}

:root:not([data-theme="dark"]) .form-control::placeholder {
	color: #475569; /* medium slate placeholders */
	opacity: 1;
} 

/* Light mode: make footer text white for legibility */
:root:not([data-theme="dark"]) footer,
:root:not([data-theme="dark"]) footer h5,
:root:not([data-theme="dark"]) footer p,
:root:not([data-theme="dark"]) footer a {
	color: #ffffff !important;
} 