:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --accent-color: #8a0000;
    /* Blood red for accents */
    --accent-hover: #b30000;
    --card-bg: #1a1a1a;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    /* Deep rich gradient instead of noise */
    background-image: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url("Images/background.jpg");
    background-repeat: repeat;
    background-size: 50% auto;
    min-height: 100vh;
}

/* Header */
.main-header {
    text-align: center;
    padding: 3rem 1rem;
    background: transparent;
}

.site-title {
    font-family: var(--font-heading);
    font-weight: 700;
    /* Bold for legibility */
    font-size: 3.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.site-subtitle {
    font-family: var(--font-heading);
    color: #888;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Mode Switch */
.mode-switch-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.mode-label {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: bold;
    color: #666;
    transition: color var(--transition-speed);
}

.mode-label.active {
    color: var(--text-color);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
    border: 1px solid #555;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 3px;
    background-color: var(--text-color);
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--accent-color);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Gallery Grid */
.gallery-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    aspect-ratio: 1;
    /* Make them square or adjust as needed */
    background: #222;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(138, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    /* Slight zoom on hover */
}

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

.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 0;
    border: 1px solid #333;
    width: 90%;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    position: relative;
    display: flex;
    flex-wrap: wrap;
    color: var(--text-color);
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.close-modal:hover,
.close-modal:focus {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.modal-image-container {
    flex: 1;
    min-width: 300px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #111;
}

.modal-image-container img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border: 1px solid #333;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.modal-image-container h3 {
    margin-top: 1rem;
    font-family: var(--font-gothic);
    font-size: 1.5rem;
    text-align: center;
}

.modal-form-container {
    flex: 1;
    min-width: 300px;
    padding: 2rem;
    border-left: 1px solid #333;
}

.modal-form-container h3 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.form-intro {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    background-color: #222;
    border: 1px solid #444;
    color: white;
    font-family: var(--font-body);
    border-radius: 4px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    font-family: var(--font-heading);
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 1rem;
}

.btn-submit:hover {
    background-color: var(--accent-hover);
}

#form-status {
    margin-top: 1rem;
    text-align: center;
    font-weight: bold;
    min-height: 1.5em;
}

.status-success {
    color: #4caf50;
}

.status-error {
    color: #f44336;
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 3rem 1rem;
    margin-top: 3rem;
    border-top: 1px solid #222;
    background: #0a0a0a;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--accent-color);
}

.footer-text {
    margin: 1rem 0;
    color: #666;
}

.cta-international {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: bold;
    transition: all 0.3s;
}

.cta-international:hover {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 0 15px rgba(138, 0, 0, 0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
    }

    .modal-form-container {
        border-left: none;
        border-top: 1px solid #333;
    }

    .site-title {
        font-size: 2.2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

/* --- Mockup Carousel Styles --- */
.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    aspect-ratio: 16/9;
    /* Set aspect ratio to avoid layout shifts */
    background: transparent;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure images fit nicely */
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: background 0.3s;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-container {
        margin: 1rem;
        aspect-ratio: 4/3;
        /* Slightly taller on mobile if needed */
    }

    .carousel-btn {
        padding: 0.5rem;
        font-size: 1rem;
        width: 35px;
        height: 35px;
    }
}

.section-title {
    font-family: var(--font-heading);
    color: var(--text-color);
    font-size: 2rem;
    text-align: center;
    margin: 2rem 0 1rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
}

.section-subtitle {
    font-family: var(--font-heading);
    color: var(--text-color);
    font-size: 2rem;
    text-align: center;
    margin: 0rem 0 1rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
}

.section-paragraph {
    font-family: var(--font-heading);
    color: #ffffff;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 2rem;
}

#modal-design-name,
#modal-price {
    font-family: var(--font-heading);
}