:root {
    --primary-color: #e50600;
    --primary-dark: #b80500;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 15px rgba(0,0,0,0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header & Navigation */
header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 50px;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    color: var(--text-color);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    width: 100%;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

/* Hero Section */
.hero {
    background: url('../img/hero-bg.svg') no-repeat center center/cover;
    background-color: #333;
    background-attachment: fixed; /* Parallax effect */
    height: 600px; /* Taller hero */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(-45deg, rgba(0,0,0,0.85), rgba(50,50,50,0.8), rgba(229,6,0,0.7), rgba(0,0,0,0.9));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    z-index: 0;
}

.hero-overlay::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 1;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
    font-weight: 300;
    letter-spacing: 1px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(229, 6, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1rem;
}

.btn i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(229, 6, 0, 0.5);
    filter: brightness(1.1);
}

.btn:hover i {
    transform: translateX(5px);
}

/* Blueprint Animation in Hero */
.hero-anim-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4; /* Slightly more visible */
    display: flex;
    justify-content: center;
    align-items: center;
}

.blueprint-frame {
    position: absolute;
    top: 15px;
    left: 15px;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    border: 1px solid var(--primary-color);
    opacity: 0.5;
    box-sizing: border-box;
}

.blueprint-frame::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border: 1px solid var(--primary-color);
    opacity: 0.3;
}

.blueprint-house {
    width: 100%;
    height: 100%;
    max-width: 90%;
    max-height: 90%;
    overflow: visible;
    filter: drop-shadow(0 0 15px rgba(0,0,0,0.5));
}

/* Compass Animation */
.compass-group {
    opacity: 0;
    animation: fadeInCompass 2s ease-out 1s forwards;
    transform-origin: 0 0; /* Since it's inside a transform group, origin logic is tricky, usually set in SVG */
}

@keyframes fadeInCompass {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Guide Lines */
.guide-lines line, .guide-lines circle {
    stroke: rgba(229, 6, 0, 0.8);
    stroke-width: 0.5;
    fill: none;
    stroke-dasharray: 5, 5;
    opacity: 0;
    animation: fadeInOutGuide 10s linear infinite;
}

.dimension-line {
    stroke: rgba(229, 6, 0, 0.6);
    stroke-width: 0.5;
    fill: none;
    opacity: 0;
    animation: fadeInDimensions 10s linear infinite;
}

/* Window Lights */
.window-light {
    fill: #ffd900; /* Warm light color */
    opacity: 0;
    animation: lightOn 10s ease-in-out infinite;
}

/* Smoke Particles */
.smoke-particle {
    fill: rgba(255, 255, 255, 0.5);
    opacity: 0;
}
.smoke-particle.p1 { animation: smokeRise 4s 7s infinite; }
.smoke-particle.p2 { animation: smokeRise 4s 7.5s infinite; }
.smoke-particle.p3 { animation: smokeRise 4s 8s infinite; }

/* Draw Paths */
.draw-path {
    stroke: var(--primary-color);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: transparent;
    stroke-dasharray: 5000;
    stroke-dashoffset: 5000;
    animation: drawAndFill 10s ease-in-out infinite;
}

.draw-path.roof {
    animation: drawAndFillRoof 10s ease-in-out infinite;
}

.draw-path.chimney, .draw-path.window, .draw-path.door, .draw-path.nature {
    animation-delay: 0.5s;
}

/* Keyframes */
@keyframes fadeInOutGuide {
    0% { opacity: 0; }
    10% { opacity: 1; }
    80% { opacity: 1; }
    90% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes drawAndFill {
    0% { stroke-dashoffset: 5000; fill: transparent; stroke: var(--primary-color); opacity: 0; }
    5% { opacity: 1; }
    30% { stroke-dashoffset: 0; fill: transparent; stroke: var(--primary-color); }
    40% { fill: rgba(229, 6, 0, 0.1); stroke: var(--primary-color); }
    85% { fill: rgba(229, 6, 0, 0.1); stroke: var(--primary-color); opacity: 1; }
    95% { opacity: 0; }
    100% { opacity: 0; stroke-dashoffset: 0; }
}

@keyframes drawAndFillRoof {
    0% { stroke-dashoffset: 600; fill: transparent; stroke: var(--primary-color); opacity: 0; }
    5% { opacity: 1; }
    30% { stroke-dashoffset: 0; fill: transparent; stroke: var(--primary-color); }
    40% { fill: rgba(229, 6, 0, 0.2); stroke: var(--primary-color); }
    85% { fill: rgba(229, 6, 0, 0.2); stroke: var(--primary-color); opacity: 1; }
    95% { opacity: 0; }
    100% { opacity: 0; stroke-dashoffset: 0; }
}

@keyframes fadeInDimensions {
    0%, 35% { opacity: 0; }
    45% { opacity: 1; }
    85% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes lightOn {
    0%, 60% { opacity: 0; }
    70% { opacity: 0.8; filter: drop-shadow(0 0 5px #ffd900); }
    90% { opacity: 0.8; }
    100% { opacity: 0; }
}

@keyframes smokeRise {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    30% { opacity: 0.6; }
    100% { transform: translateY(-25px) scale(2); opacity: 0; }
}

/* New Complex Animation Elements */

/* 1. Grid Animation */
.bg-grid {
    opacity: 0;
    animation: fadeInGrid 10s linear infinite;
}

@keyframes fadeInGrid {
    0% { opacity: 0; }
    5% { opacity: 0.3; }
    85% { opacity: 0.3; }
    95% { opacity: 0; }
    100% { opacity: 0; }
}

/* 2. Scaffolding Animation */
.scaffolding-group line {
    stroke: rgba(229, 6, 0, 0.5);
    stroke-width: 1;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawScaffolding 10s ease-in-out infinite;
}

@keyframes drawScaffolding {
    0% { stroke-dashoffset: 100; opacity: 0; }
    10% { opacity: 1; }
    25% { stroke-dashoffset: 0; opacity: 1; }
    40% { opacity: 1; }
    45% { opacity: 0; } /* Disappear when walls are done */
    100% { opacity: 0; }
}

/* 3. Technical Text Animation */
.tech-text {
    font-family: 'Courier New', monospace;
    /* font-size handled by SVG attributes */
    fill: rgba(229, 6, 0, 0.9);
    opacity: 0;
    animation: textAppear 10s linear infinite;
}
.tech-text.title { font-size: 8px; font-weight: bold; letter-spacing: 0.5px; }

@keyframes textAppear {
    0%, 45% { opacity: 0; }
    50% { opacity: 1; }
    85% { opacity: 1; }
    95% { opacity: 0; }
    100% { opacity: 0; }
}


/* Service Icons Construction Animations */
.service-card:hover .fa-paint-roller {
    animation: rollerMove 1s ease-in-out infinite alternate;
}

.service-card:hover .fa-tools {
    animation: toolsFix 0.8s ease-in-out infinite alternate;
}

.service-card:hover .fa-building, 
.service-card:hover .fa-home {
    animation: buildingBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes rollerMove {
    0% { transform: translateY(0) rotate(0); }
    100% { transform: translateY(-10px) rotate(-5deg); }
}

@keyframes toolsFix {
    0% { transform: rotate(0); }
    100% { transform: rotate(15deg) scale(1.1); }
}

@keyframes buildingBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.1) translateY(-5px); }
    100% { transform: scale(1); }
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--text-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* About Section */
.about-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.detail-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--text-color);
}

.service-card ul {
    list-style-type: disc;
    padding-left: 20px;
}

.service-card li {
    margin-bottom: 8px;
    color: var(--text-light);
}

/* Jobs */
.job-list {
    display: grid;
    gap: 30px;
}

.job-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.job-date {
    font-size: 0.9rem;
    color: #999;
}

.job-card h3 {
    font-size: 1.5rem;
    margin: 0;
}

.job-body p {
    color: var(--text-light);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-info {
    padding: 20px;
}

.gallery-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info-box {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-info-box i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-info-box p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 5px 0;
}

/* Footer */
footer {
    background-color: #222;
    color: #eee;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-column ul li {
    margin-bottom: 10px;
    color: #ccc;
    display: flex;
    align-items: center;
}

.footer-column ul li a {
    color: #eee;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.footer-column ul li i {
    width: 25px;
    color: var(--primary-color);
    margin-right: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: #888;
}

/* Login */
.login-container {
    max-width: 400px;
    margin: 80px auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.login-container h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box; /* Fix for padding increasing width */
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(229, 6, 0, 0.1);
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--radius);
}

.alert-danger {
    background-color: #fee;
    color: #c00;
    border: 1px solid #fcc;
}

.alert-success {
    background-color: #efe;
    color: #0c0;
    border: 1px solid #cfc;
}

/* Admin Styles */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f4f4f4;
    font-weight: 600;
}

tr:hover {
    background-color: #f9f9f9;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px; /* header height */
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(10px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.hero .hero-content.reveal {
    transition-delay: 1.5s;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Staggered Delays for Grids */
.services-grid .service-card.reveal:nth-child(1), .stats-grid .stat-item.reveal:nth-child(1) { transition-delay: 0.1s; }
.services-grid .service-card.reveal:nth-child(2), .stats-grid .stat-item.reveal:nth-child(2) { transition-delay: 0.2s; }
.services-grid .service-card.reveal:nth-child(3), .stats-grid .stat-item.reveal:nth-child(3) { transition-delay: 0.3s; }
.services-grid .service-card.reveal:nth-child(4), .stats-grid .stat-item.reveal:nth-child(4) { transition-delay: 0.4s; }

/* Global Selection & Scrollbar */
::selection {
    background: var(--primary-color);
    color: var(--white);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 5px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Service Card Icons */
.service-card .icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: rgba(229, 6, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card .icon-wrapper i {
    font-size: 32px;
    color: var(--primary-color);
}

.service-card:hover .icon-wrapper {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.service-card:hover .icon-wrapper i {
    color: var(--white);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
}

.stat-item p {
    font-size: 1.1rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: #444;
    padding: 30px;
    border-radius: var(--radius);
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.testimonial-card .quote-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonial-card .client-info h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.testimonial-card .client-info span {
    font-size: 0.9rem;
    color: #999;
}

/* Contact Form */
.contact-form-container {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    box-sizing: border-box; 
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(229, 6, 0, 0.1);
}

.contact-form textarea.form-control {
    resize: vertical;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

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

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 1.2rem;
    padding: 0 20px;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
