/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 2rem;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 600;
}

/* Main content */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.gallery-container {
    display: flex;
    align-items: center;
    max-width: 800px;
    width: 100%;
    position: relative;
}

.card-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.card {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.card.active {
    display: flex;
    opacity: 1;
}

.card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Ensure card-content remains consistent */
.card-content {
    padding: 1.5rem;
    text-align: left;
}

.card-content p {
    margin-bottom: 1rem;
    color: #7f8c8d;
    line-height: 1.8;
}

.card-content h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #34495e;
}


/* Navigation arrows */
.nav-arrow {
    background-color: #34495e;
    color: #ecf0f1;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.3s;
}

.nav-arrow:hover {
    background-color: #2c3e50;
}

.nav-arrow.left {
    left: -70px;
}

.nav-arrow.right {
    right: -70px;
}

.nav-arrow i {
    font-size: 1.5rem;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 1rem;
    position: sticky;
    bottom: 0;
    width: 100%;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-arrow.left {
        left: 10px;
    }

    .nav-arrow.right {
        right: 10px;
    }

    .card img {
        height: 300px;
    }

    header h1 {
        font-size: 2rem;
    }
}

/* Social links list */
.social-links {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.social-links li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.social-links li i {
    color: #34495e;
    font-size: 1.2rem;
}

.social-links li a {
    color: #7f8c8d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links li a:hover {
    color: #3498db;
}

/* Ensure card-content text is centered */
.card-content p {
    text-align: center;
}

/* Inline social link in paragraph */
.inline-social-link {
    color: #34495e; /* Match card title color */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.inline-social-link i {
    color: #34495e;
    font-size: 1.1rem;
}

.inline-social-link:hover {
    color: #3498db;
}

.inline-social-link:hover i {
    color: #3498db;
}

/* Image container for rotation */
.image-container {
    width: 100%;
    height: 400px; /* Match existing card image height */
    overflow: hidden;
    position: relative;
}

.rotating-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.5s ease-in-out; /* Fade transition */
}

.rotating-image.fade {
    opacity: 0; /* For fade-out during transition */
}

/* Ensure responsive height matches existing media query */
@media (max-width: 768px) {
    .image-container {
        height: 300px; /* Match existing card image height for mobile */
    }
}

/* Form section */
#contact-form-section {
    margin-top: 1rem;
}

#contact-form-section h3 {
    font-size: 1.5rem;
    color: #34495e;
    margin-bottom: 0.5rem;
}

#contact-form-section hr {
    border: 0;
    border-top: 1px solid #7f8c8d;
    margin: 0.5rem 0 1rem;
}

/* Form group */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #34495e;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group label i {
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #7f8c8d;
    border-radius: 5px;
    background-color: #f5f5f5;
    color: #333;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Submit button */
#contactForm button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: #34495e;
    color: #ecf0f1;
    border: none;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contactForm button i {
    font-size: 1rem;
}

#contactForm button:hover {
    background-color: #2c3e50;
}

/* Confidentiality note */
.confidentiality-note {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 1rem;
    font-style: italic;
}

/* Thank-you section */
#thank-you-section {
    margin-top: 1rem;
}

#thank-you-section h3 {
    font-size: 1.5rem;
    color: #34495e;
    margin-bottom: 0.5rem;
}

#thank-you-section hr {
    border: 0;
    border-top: 1px solid #7f8c8d;
    margin: 0.5rem 0 1rem;
}

#thank-you-section p {
    color: #7f8c8d;
    line-height: 1.8;
}

/* Hidden class */
.hidden {
    display: none;
}

