:root {
    --primary-color: #7b0000;
    --primary-hover: #5a0000;
    --bg-color: #fcf4e8;
    --text-color: #333;
    --white: #ffffff;
    --accent-border: #e0d5c1;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Georgia', serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* -------------------------------------- */
/* Header & Navigation                    */
/* -------------------------------------- */
header {
    background-color: var(--white);
    border-bottom: 3px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.header-container {
    max-width: 100%;
    height: 100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

/* Adjusted logo size for the new horizontal layout */
.logo {
    max-width: 280px;
    height: auto;
    display: block;
}

nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

.cta-btn {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.cta-btn:hover {
    background-color: var(--primary-hover);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8em;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

/* -------------------------------------- */
/* Typography & Globals                   */
/* -------------------------------------- */
h1, h2, h3, h4 {
    color: var(--primary-color);
    margin-top: 0;
}
h2 {
    font-size: 2.2em;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}
h2::after {
    content: '';
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

section {
    padding: 90px 20px;
    max-width:  ;
    margin: 0 auto;
}

/* -------------------------------------- */
/* Scroll Animation Classes               */
/* -------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------------------- */
/* Hero Section with Video Carousel      */
/* -------------------------------------- */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    top: 0;
    left: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 20px;
    max-width: 800px;
}

.hero h1 {
    font-size: 4.5em;
    margin-bottom: 5px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    color: var(--white);
}

.hero h3 {
    font-style: italic;
    font-weight: normal;
    font-size: 1.6em;
    color: #fff;
    margin-bottom: 30px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}

.hero p {
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.hero .cta-btn {
    font-size: 1.1em;
    padding: 15px 35px;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.carousel-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 15px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--primary-color);
}

.testimonial-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}
.testimonial-slide {
    display: none;
    width: 100%;
    padding: 20px 0;
    transition: opacity 0.6s ease;
}
.testimonial-slide.active {
    display: block;
}
.testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(123, 0, 0, 0.15);
    border-radius: 18px;
    padding: 45px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    line-height: 1.8;
}
.testimonial-card p {
    margin: 0 0 24px;
}
.testimonial-heading {
    font-size: 1.65em;
    line-height: 1.2;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 18px;
}
.testimonial-heading span {
    display: block;
    font-size: 0.95em;
    font-weight: normal;
    color: #5a1b1b;
    margin-top: 12px;
}
.testimonial-quote {
    font-size: 1em;
    color: #4b2e2e;
}
.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}
.testimonial-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(123, 0, 0, 0.18);
    border: 2px solid rgba(123, 0, 0, 0.35);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.testimonial-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.05);
}

/* -------------------------------------- */
/* Cards & Grids                          */
/* -------------------------------------- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.profile-card, .alliance-card {
    background: var(--white);
    padding: 40px 30px;
    border: 1px solid var(--accent-border);
    border-top: 4px solid var(--primary-color);
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.profile-card:hover, .alliance-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.profile-image {
    width: 62%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* -------------------------------------- */
/* Portfolio Cards                        */
/* -------------------------------------- */
.portfolio-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}
.portfolio-card:hover {
    transform: translateY(-5px);
}
.portfolio-img {
    height:250px;
    background-color: #ddd;
    background-size: cover;
}
.portfolio-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.portfolio-content h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
}
.stats {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    border-top: 1px solid var(--accent-border);
    padding-top: 20px;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9em;
    text-align: center;
}
.stats span {
    display: block;
    font-size: 1.4em;
    color: var(--text-color);
}

/* -------------------------------------- */
/* Contact Form Section                   */
/* -------------------------------------- */
.contact-section {
    background-color: var(--white);
    padding: 60px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 20px;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}
.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* -------------------------------------- */
/* Footer                                 */
/* -------------------------------------- */
footer {
    background-color: var(--primary-color);
    color: #fcf4e8;
    padding: 60px 20px 20px;
    text-align: center;
}
.footer-grid {
    max-width: 1000px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: left;
}
.footer-grid h4 {
    color: var(--white);
    margin-bottom: 20px;
}
.copyright {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    font-size: 0.9em;
}

/* -------------------------------------- */
/* Responsive                             */
/* -------------------------------------- */
@media (max-width: 850px) {
    .header-container { max-width: 100%; height: 100px; }
    .mobile-menu-btn { display: block; }
    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        border-bottom: 3px solid var(--primary-color);
        padding: 20px;
        gap: 20px;
    }
    nav.active { display: flex; }
    .hero h1 { font-size: 2.8em; }
    .hero h3 { font-size: 1.3em; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .contact-section { padding: 30px 20px; }
    .stats { flex-direction: row; justify-content: space-between; gap: 10px; }
    .stats > div { flex: 1 1 auto; min-width: 80px; }
    .carousel-dot { width: 10px; height: 10px; }
    .carousel-controls { bottom: 20px; }
}
