/* Reset some default browser styles */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* Navigation bar */
.navbar {
    background-color: #1f2933;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 20px;
    font-size: 16px;
}

.navbar a:hover {
    text-decoration: underline;
}

/* Main content area */
.container {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

h1 {
    font-size: 36px;
    margin-bottom: 16px;
}

p {
    font-size: 18px;
    line-height: 1.6;
}

.intro {
    background-color: #ffffff;
    padding: 40px 20px;
    text-align: center;
}

.intro p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 20px;
    line-height: 1.6;
}

/* Carousel container — keeps everything inside the page width */
.carousel {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background-color: #000;
}

/* Slides wrapper: flex row of slide items; no explicit width needed */
.slides {
    display: flex;
    /* animation duration controls how long each full cycle takes */
    animation: slide 6s infinite;
    /* smooth movement */
    transition: transform 0.5s ease;
}

/* Each image becomes a flex item that exactly matches the carousel width */
.slides img {
    flex: 0 0 100%;
    width: 100%;
    height: 400px;          /* adjust as you prefer: 300px, 60vh, etc. */
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Keyframes: hold each slide, then move to next; percentages tuned for 3 slides */
@keyframes slide {
    /* Slide 1 visible */
    0%   { transform: translateX(0%); }
    30%  { transform: translateX(0%); }

    /* Transition to Slide 2 */
    35%  { transform: translateX(-100%); }
    65%  { transform: translateX(-100%); }

    /* Transition to Slide 3 */
    70%  { transform: translateX(-200%); }
    100% { transform: translateX(-200%); }
}

/* Optional: pause animation when user hovers the carousel */
.carousel:hover .slides {
    animation-play-state: paused;
}

/* Contact cards layout */
.card-container {
    display: flex;
    gap: 24px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Individual contact card */
.contact-card {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 8px;
    width: 280px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-card h2 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 22px;
}

.contact-card .position {
    color: #555;
    font-style: italic;
    margin-bottom: 16px;
}

.contact-card p {
    margin: 6px 0;
    font-size: 16px;
}

