/*
    Modern CSS Reset & General Styles
    This ensures a consistent look across all browsers.
*/
:root {
    --primary-color: #004d40; /* Dark Teal */
    --secondary-color: #e0f2f1; /* Light Teal */
    --accent-color: #6d4c41; /* Brown */
    --text-color: #333;
    --light-text-color: #f4f4f4;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

h1, h2, h3 {
    font-family: var(--font-serif);
    color: var(--primary-color);
    font-weight: 700;
}

/* Header & Navigation */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    background-color: var(--light-text-color);
    border-bottom: 2px solid var(--secondary-color);
}

.header__title {
    font-size: 1.5rem;
    margin: 0;
}

/* Language Switcher Flag Icon */
.language-switcher .lang-link {
    display: inline-flex; /* Allows icon and text to sit next to each other */
    align-items: center; /* Vertically aligns icon and text */
    font-weight: bold;
    color: var(--accent-color);
}

.language-switcher .flag-icon {
    width: 24px; /* Adjust size as needed */
    height: 16px; /* Maintain aspect ratio or adjust */
    margin-right: 8px; /* Space between flag and text */
    border: 1px solid #ccc; /* Optional: adds a subtle border to the flag */
    vertical-align: middle;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 5%;
    background-color: var(--secondary-color);
}

@media (min-width: 768px) {
    .hero {
        flex-direction: row;
        text-align: left;
    }
    .hero__text {
        flex: 1;
        padding-right: 2rem;
    }
    .hero__image-container {
        flex: 1;
        display: flex;
        justify-content: flex-end;
    }
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-buttons {
    margin-top: 1.5rem;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin: 0.5rem;
    border-radius: 5px;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--accent-color);
}

.hero__image-container {
    width: 100%;
    max-width: 300px; /* Adjust this value as needed */
    margin: 0 auto;
}

.hero__image {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16; 
    object-fit: cover;
    border-radius: 10px; /* or 50% if you want a circular image */
}


.placeholder-image {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--secondary-color);
    text-align: center;
}

/* Sections */
.section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section__title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Credentials List */
#credentials ul {
    list-style-type: none;
    text-align: center;
}

#credentials li {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.gallery-item {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* Contact Section */
.contact-section {
    padding-bottom: 6rem; /* Extra space to make the footer not feel squished */
}

.contact-info {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.map-container, .social-media {
    margin-top: 1em;
    text-align: center;
}

.map-container iframe {
    width: 100%;
    border-radius: 8px;
}

/* New CSS to fix the Instagram icon size and alignment */
.social-media a {
    display: inline-flex; /* Use flex to align the icon and text vertically */
    align-items: center; /* Center the items vertically */
    text-decoration: none; /* Removes the underline from the link */
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-right: 8px;
    vertical-align: middle;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 5%;
    background-color: var(--primary-color);
    color: var(--light-text-color);
}


/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding: 20px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.modal-close {
    position: fixed;
    right: 35px;
    top: 15px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Make gallery images clickable */
.gallery-item img {
    cursor: pointer;
}


.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.form-container {
    background: var(--secondary-color);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.form-container iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 4px;
}


/* YouTube Section Styling */
.youtube-section {
    background-color: #f9f9f9; /* Light background for the section */
    padding: 60px 20px;
    text-align: center;
}

.youtube-profile-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px;
    margin: 0 auto 50px auto;
    max-width: 800px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.youtube-profile-card .youtube-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.youtube-profile-card h3 {
    font-family: 'Playfair Display', serif;
    color: #333;
    font-size: 2.2em;
    margin-bottom: 10px;
}

.youtube-profile-card p {
    font-family: 'Roboto', sans-serif;
    color: #555;
    font-size: 1.1em;
    line-height: 1.6;
    max-width: 600px;
}

.youtube-button {
    display: inline-block;
    background-color: #FF0000; /* YouTube Red */
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.2);
}

.youtube-button:hover {
    background-color: #CC0000;
    transform: translateY(-3px);
}

.video-gallery {
    margin-top: 50px;
}

.video-gallery h3 {
    font-family: 'Playfair Display', serif;
    color: #333;
    font-size: 2.2em;
    margin-bottom: 30px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.video-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px; /* Space for the description */
}

.video-item:hover {
    transform: translateY(-8px);
}

.video-item iframe {
    width: 100%;
    height: 200px; /* Adjust height as needed for aspect ratio */
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.video-item p {
    font-family: 'Roboto', sans-serif;
    color: #666;
    font-size: 0.95em;
    margin-top: 15px;
    padding: 0 15px;
    text-align: center;
    flex-grow: 1; /* Allows text to take up available space */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .youtube-profile-card {
        padding: 30px 20px;
        margin-bottom: 40px;
    }

    .youtube-profile-card h3 {
        font-size: 1.8em;
    }

    .youtube-profile-card p {
        font-size: 1em;
    }

    .youtube-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .video-gallery h3 {
        font-size: 1.8em;
    }

    .video-grid {
        grid-template-columns: 1fr; /* Stack videos on small screens */
    }

    .video-item iframe {
        height: 250px; /* Adjust for better viewing on small screens */
    }
}
