:root {
    --primary-color: #7A0042; /* Tyrian Purple */
    --secondary-color: #FF6B35; /* Vibrant Orange */
    --tertiary-green: #2ECC71;
    --tertiary-blue: #3498DB;
    --background-color: #000000;
    --text-color: #FFFFFF;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: sans-serif;
    margin: 0;
}

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

a:hover {
    text-decoration: underline;
}

header {
    padding: 1rem;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    animation: gradient-animation 10s ease infinite;
    background-size: 200% 200%;
}

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

footer {
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* Client Showcase */
.client-showcase {
    text-align: center;
    padding: 2rem;
}

.carousel {
    position: relative;
    height: 100px;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
}

/* Service Highlights */
.service-highlights {
    text-align: center;
    padding: 2rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.card {
    background-color: #111;
    border: 1px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.card h3 {
    color: var(--secondary-color);
    margin-top: 0;
}

/* Accordion */
.accordion {
    max-width: 800px;
    margin: 2rem auto;
}

.accordion-item {
    border-bottom: 1px solid var(--primary-color);
}

.accordion-header {
    background-color: transparent;
    color: var(--text-color);
    cursor: pointer;
    padding: 1.5rem;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #111;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
}

.accordion-content p {
    margin: 1.5rem 0;
}

/* Portfolio */
.filter-buttons {
    text-align: center;
    margin-bottom: 2rem;
}

.filter-btn {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
}

.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

.favorite-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #111;
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid var(--primary-color);
    width: 80%;
    max-width: 900px;
    position: relative;
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover, .close-btn:focus {
    color: white;
}

/* Before/After Slider */
.before-after-slider {
    position: relative;
    width: 100%;
    height: auto;
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-overlay {
    width: 50%;
    overflow: hidden;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background-color: var(--secondary-color);
    cursor: ew-resize;
    transform: translateX(-50%);
}

/* Quote Generator */
.quote-generator {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #111;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
}

#quote-form div {
    margin-bottom: 1rem;
}

#quote-form label {
    display: block;
    margin-bottom: 0.5rem;
}

#quote-form select, #quote-form input {
    width: 100%;
    padding: 0.5rem;
    background-color: #222;
    border: 1px solid var(--primary-color);
    color: var(--text-color);
}

.quote-result {
    margin-top: 2rem;
    text-align: center;
}

.quote-result h3 {
    margin-bottom: 0.5rem;
}

#estimated-cost {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
}
