/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #050811;
    --secondary-color: #12131a;
    --accent-color: #E63946;
    --accent-glow: rgba(230, 57, 70, 0.15);
    --map-glow: rgba(197, 17, 32, 0.5);
    --dark-bg: #0a0b10;
    --light-bg: #0a0b10;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --border-color: #1e293b;
    --navy-color: #E63946;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* Performance optimizations */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* CSS Containment for better performance */
.hero,
.header,
.project,
.contact-card {
    contain: layout style paint;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(10, 11, 16, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    border-bottom: 1px solid rgba(230, 57, 70, 0.2);
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(230, 57, 70, 0.015) 2px,
        rgba(230, 57, 70, 0.015) 4px
    );
    pointer-events: none;
    animation: scanlines 8s linear infinite;
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(230, 57, 70, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(230, 57, 70, 0.05) 0%, transparent 50%),
        linear-gradient(90deg, 
            transparent 0%, 
            rgba(230, 57, 70, 0.02) 25%, 
            transparent 50%, 
            rgba(230, 57, 70, 0.02) 75%, 
            transparent 100%
        );
    pointer-events: none;
    animation: pulse 4s ease-in-out infinite;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.logo h1 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
}

.logo h1::after {
    content: '_';
    animation: cursor-blink 1s step-end infinite;
    color: var(--accent-color);
    margin-left: 4px;
}

@keyframes cursor-blink {
    from, to { opacity: 0 }
    50% { opacity: 1 }
}

.logo h1 span {
    margin: 0 2px;
}

.highlight {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-family: 'JetBrains Mono', monospace;
    text-decoration: none;
    color: #e2e8f0;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 8px rgba(230, 57, 70, 0.5);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 60px;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--secondary-color) 100%);
    color: #e2e8f0;
    position: relative;
    overflow: hidden;
}

#circuit-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-map {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 660px;
    height: auto;
    aspect-ratio: 1280/1423;
    pointer-events: none;
    z-index: 2;
    opacity: 0.18; /* Map stands out as primary visual */
    will-change: transform;
}

.map-bg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* CSS filter turns black silhouette lines into glowing white-cyan tactical borders.
       If your SVG already has white lines, you can remove 'invert(1)' from this filter. */
    filter: invert(1) brightness(2) drop-shadow(0 0 15px var(--map-glow));
}

/* Responsive adjustments for hero map - affects laptops and smaller screens */
@media (max-width: 1600px) {
    .hero-map {
        width: 80%;
        max-width: 550px;
    }
}

@media (max-width: 1366px) {
    .hero-map {
        width: 70%;
        max-width: 450px;
    }
}

@media (max-width: 1280px) {
    .hero-map {
        width: 65%;
        max-width: 420px;
    }
}

@media (max-width: 1024px) {
    .hero-map {
        width: 60%;
        max-width: 380px;
    }
}

@media (max-width: 768px) {
    .hero-map {
        width: 70%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .hero-map {
        width: 70%;
        max-width: none;
    }
}

.map-bg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* CSS filter turns black silhouette lines into glowing white-cyan tactical borders.
       If your SVG already has white lines, you can remove 'invert(1)' from this filter. */
    filter: invert(1) brightness(2) drop-shadow(0 0 15px var(--map-glow));
}

.map-node {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-color), 0 0 16px var(--accent-color);
    animation: node-pulse 2s infinite ease-in-out;
}

.map-node::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    width: 18px;
    height: 18px;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    animation: node-ring 2s infinite ease-out;
    opacity: 0;
}

@keyframes node-pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.4); opacity: 1; }
}

@keyframes node-ring {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

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

@keyframes scanlines {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(4px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Performance optimizations */
.hero::before,
.hero::after,
.header::before,
.header::after {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.project,
.contact-card,
.btn {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-content h2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 2rem;
    max-width: 800px;
    line-height: 1.4;
    letter-spacing: -0.5px;
    color: #e2e8f0;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-wrap: balance;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-content h2.is-fading {
    opacity: 0;
    transform: translateY(8px);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    font-family: 'JetBrains Mono', monospace;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #0a0b10;
    border-color: var(--accent-color);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(230, 57, 70, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background-color: #E63946;
    border-color: #E63946;
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.6);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border-color: rgba(230, 57, 70, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(230, 57, 70, 0.1);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover::before {
    width: 100%;
}

.btn-secondary:hover {
    color: #0a0b10;
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.4);
}

.btn-secondary:active {
    transform: translateY(-1px);
}

.hero-scroll {
    margin-top: 3rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hero-scroll:hover {
    transform: scale(1.1);
}

.hero-scroll i {
    font-size: 2rem;
    color: rgba(230, 57, 70, 0.4);
    transition: color 0.3s ease;
}

.hero-scroll:hover i {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(230, 57, 70, 0.5);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Projects Section */
.projects {
    padding: 80px 0;
    background-color: var(--dark-bg);
}

.section-title {
    font-family: 'JetBrains Mono', monospace;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 1rem;
    display: inline-block;
    text-shadow: 0 0 10px rgba(230, 57, 70, 0.2);
}

.project {
    background: rgba(22, 24, 33, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin: 3rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
}

.project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #00ff66);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project:hover::before {
    transform: scaleX(1);
}

.project:hover {
    transform: translateY(-8px);
    border-color: rgba(230, 57, 70, 0.4);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.1), var(--shadow-lg);
}

.project.featured {
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.15), var(--shadow-lg);
}

.project-image {
    height: 300px;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.project-image img:hover {
    transform: scale(1.03);
}

.image-placeholder {
    text-align: center;
    color: white;
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.image-placeholder p {
    font-size: 1.1rem;
    opacity: 0.8;
}

.project-content {
    padding: 2rem;
}

.project-badge {
    display: inline-block;
    background: rgba(230, 57, 70, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(230, 57, 70, 0.3);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hobby-badge {
    background: rgba(100, 149, 237, 0.1);
    color: #6495ED;
    border: 1px solid rgba(100, 149, 237, 0.3);
}

.project-content h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.tech-specs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tech-item {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.tech-item:hover {
    border-color: var(--accent-color);
    background: rgba(230, 57, 70, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.15);
}

.tech-item:hover::before {
    width: 100%;
}

.project-features {
    margin-bottom: 2rem;
}

.project-features ul {
    list-style: none;
}

.project-features li {
    font-family: 'Space Grotesk', sans-serif;
    padding: 12px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.project-features li:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

.project-features i {
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.project-features li:hover i {
    transform: scale(1.2);
    text-shadow: 0 0 8px var(--accent-color);
}

.project-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-actions .btn-secondary {
    border-color: rgba(230, 57, 70, 0.3);
    color: var(--text-primary);
}

.project-actions .btn-secondary:hover {
    background: var(--accent-color);
    color: #0a0b10;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.3);
}

/* Demo Section */
.demo-section {
    margin-top: 4rem;
    text-align: center;
}

.demo-section h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.video-placeholder {
    background: var(--dark-bg);
    border-radius: 12px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.video-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--dark-bg);
    border-radius: 12px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
}

.video-wrapper video {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.video-content {
    text-align: center;
    color: white;
}

.video-content i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.video-content p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.video-hint {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--dark-bg);
}

.contact-links {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.contact-card-centered {
    max-width: 400px;
    width: 100%;
}

.contact-card {
    background: rgba(22, 24, 33, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.05), rgba(230, 57, 70, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.1), var(--shadow);
    border-color: var(--accent-color);
}

.contact-card i {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.contact-card:hover i {
    transform: scale(1.15) rotate(5deg);
    text-shadow: 0 0 15px var(--accent-color);
}

.contact-card h3,
.contact-card p {
    position: relative;
    z-index: 1;
}

.contact-card h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: #e2e8f0;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(230, 57, 70, 0.2);
}

.footer p {
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0.5rem 0;
}

.footer-performance {
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 11, 16, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        width: 100%;
        text-align: center;
        padding: 2rem 0;
        box-shadow: var(--shadow);
        transition: right 0.3s ease;
        border-bottom: 1px solid rgba(230, 57, 70, 0.2);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-content h2 {
        font-size: 1.8rem;
        min-height: 160px;
    }

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

    .project-image {
        height: 200px;
    }

    .project-content h3 {
        font-size: 1.5rem;
    }

    .video-placeholder {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.5rem;
        min-height: 200px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .project-actions {
        flex-direction: column;
    }

    .project-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

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

/* Disabled Button */
.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

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

.modal-content {
    background: rgba(10, 11, 16, 0.95);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 10px 40px rgba(230, 57, 70, 0.3);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(230, 57, 70, 0.3);
    padding-bottom: 1rem;
}

.modal-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(230, 57, 70, 0.2);
    color: var(--accent-color);
}

.modal-body {
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-body h3 {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

/* Lightbox for image preview */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    padding: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(230, 57, 70, 0.3);
    color: var(--accent-color);
}
