/* Modern Reset and Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #f8f9fa;
    overflow-x: hidden;
    padding-bottom: 70px;
}

/* Header */
.main-header {
    background-color: MidnightBlue;
    color: White;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid Gold;
}

/* Header */
.main-footer {
    background-color: MidnightBlue;
    color: White;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: MidnightBlue;
    color: White;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9rem;
    border-top: 3px solid Gold;
    z-index: 1000;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: Gold;
    letter-spacing: -0.5px;
}

/* Buttons */
button {
    cursor: pointer;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

#loginBtn {
    background-color: White;
    color: MidnightBlue;
    margin-left: 0.5rem;
}

#installBtn {
    background-color: Gold;
    color: Black;
}

button:active {
    transform: scale(0.95);
}

/* Hero Section */
.hero {
    background-color: MidnightBlue;
    color: White;
    text-align: center;
    padding: 3rem 1rem;
    border-bottom: 5px solid Gold;
}

.hero h1 {
    margin: 0;
    font-size: 2.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    margin-top: 10px;
    color: Gold;
    font-weight: 500;
}

/* Main Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* Section Styling */
section {
    margin-bottom: 3rem;
}

h2 {
    color: MidnightBlue;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

h2::after {
    content: '';
    flex-grow: 1;
    height: 2px;
    background: Gold;
}

/* Carousel Section */
.carousel-section {
    padding: 2rem 0;
    text-align: center;
}

.carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background-color: #eee;
    display: flex;
    flex-direction: column;
    border: 1px solid MidnightBlue;
}

.slides {
    position: relative;
    height: 350px;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

#imageCarousel .slide {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}

.caption-bar {
    background-color: White;
    color: MidnightBlue;
    padding: 10px;
    text-align: center;
    font-weight: 700;
    border-bottom: 2px solid Gold;
}

.slide picture {
    display: block;
    width: 100%;
    flex: 1;
    overflow: hidden;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

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

/* Cards */
.card {
    background-color: White;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.intro-card {
    border-left: 6px solid Gold;
    font-size: 1.1rem;
}

.testimonial {
    height: 350px;
    width: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border: 2px solid MidnightBlue;
}
.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Cards */
.attribution {
    color: MidnightBlue;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.read-more-btn {
    background-color: Gold;
    color: MidnightBlue;
    margin-top: 10px;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: White;
    width: 100%;
    max-width: 900px;
    height: 80vh;
    border-radius: 16px;
    position: relative;
    padding: 20px;
    border: 4px solid Gold;
    display: flex;
    flex-direction: column;
}

#modalCarousel {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: none;
    width: 100%;
}

#modalCarousel .slides {
    flex: 1;
    height: auto;
    min-height: 0;
    margin-top: 30px;
}

#modalCarousel .testimonial {
    width: 100%;
    height: 100%;
    border: none;
    box-shadow: none;
    overflow-y: auto;
    justify-content: flex-start;
    text-align: left;
}

#modalCarousel .testimonial-text {
    font-size: 1.25rem;
    line-height: 1.8;
    text-align: left;
    color: Black;
    margin-bottom: 1rem;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    background: MidnightBlue;
    color: Gold;
    font-size: 1.5rem;
    padding: 0 10px;
    z-index: 2100;
}

/* Features Grid */
h3 {
    color: MidnightBlue;
    margin-bottom: 0.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Expertise Table */
.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #ddd;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: White;
}

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

th {
    background-color: MidnightBlue;
    color: White;
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background-color: MidnightBlue;
    color: White;
    padding: 2rem;
    margin-top: 40px;
    border-radius: 16px;
    border: 2px solid Gold;
}

.cta-button {
    display: inline-block;
    background-color: Gold;
    color: Black;
    text-decoration: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 12px;
    font-weight: bold;
    margin-top: 15px;
    box-shadow: 0 4px 0 #b8860b;
}

.cta-button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #b8860b;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 0.9rem;
    /*    border-top: 1px solid #ddd;*/
}

/* Carousel Navigation */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: White;
    border-top: 1px solid #eee;
    z-index: 5;
}

.prev,
.next {
    background-color: MidnightBlue;
    color: Gold;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.prev:hover,
.next:hover {
    background-color: #000050;
}

.dots {
    flex: 1;
    text-align: center;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: Gold;
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .container {
        padding: 1rem;
    }
}