/* Add Google Font imports at the top of the file */
@import url('https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Gentium+Book+Plus:ital,wght@0,400;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@300;400;500;600;700&display=swap');
/* Adding Noto Serif Hebrew for a more Jewish/Hebrew feel */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Hebrew:wght@300;400;500;600;700&display=swap');
/* Add David Libre, a more distinctly Hebrew font */
@import url('https://fonts.googleapis.com/css2?family=David+Libre:wght@400;500;700&display=swap');

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

body {
    font-family: 'Gentium Book Plus', serif;
    line-height: 1.6;
    font-size: 16px;
    text-align: center; /* Center all text by default */
}

/* Updated heading styles with more Hebrew-styled fonts */
h1, h2, h3, h4, h5, h6 {
    font-family: 'David Libre', 'Noto Serif Hebrew', serif;
    font-weight: 500;
    text-align: center; /* Center all headings */
}

header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.main-nav {
    max-width: 1100px; /* Reduced from 1200px to match content width */
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: center; /* Center the nav items */
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    margin-bottom: 0.5rem;
    text-align: center;
    width: 100%; /* Full width to center the logo */
}

.logo h1 {
    font-family: 'David Libre', 'Noto Serif Hebrew', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
    justify-content: center; /* Center the navigation links */
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    font-family: 'Assistant', sans-serif;
    padding: 0.5rem 1.2rem;
    background-color: #f2c4b0;
    border-radius: 20px;
    border: 1px solid #e6b5a1;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 5px 0 #d8a38f, 0 6px 8px rgba(0,0,0,0.25);
    position: relative;
    top: 0;
}

.nav-links a:hover {
    color: #fff;
    background-color: #e8aa8c;
    border-color: #d89b7d;
    box-shadow: 0 5px 0 #c28367, 0 7px 10px rgba(0,0,0,0.3);
}

.nav-links a:active {
    top: 3px;
    box-shadow: 0 2px 0 #c28367, 0 3px 6px rgba(0,0,0,0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        padding: 1rem;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0.5rem 0;
    }

    .nav-links a {
        display: block;
        width: 80%;
        margin: 0 auto;
        padding: 0.6rem 1.4rem;
        box-shadow: 0 4px 0 #d8a38f, 0 5px 7px rgba(0,0,0,0.25);
    }

    .nav-links a:hover {
        box-shadow: 0 4px 0 #c28367, 0 6px 8px rgba(0,0,0,0.3);
    }

    .nav-links a:active {
        top: 2px;
        box-shadow: 0 2px 0 #c28367, 0 3px 5px rgba(0,0,0,0.3);
    }

    .hamburger {
        display: flex;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }
    
    .content-wrapper {
        padding: 1rem;
    }
    
    .content-text {
        padding: 15px; /* Smaller padding on mobile */
        margin: 0 10px; /* Add some margin */
        border-radius: 8px; /* Smaller border radius on mobile */
    }
    
    .video-caption {
        font-size: 0.8rem; /* Smaller font size on mobile */
        margin-top: 4px;
    }
    
    .video-link {
        width: calc(100% - 1rem);
        max-width: 300px;
        margin-bottom: 1.5rem; /* Slightly smaller margin on mobile */
    }
    
    .home-container {
        padding-top: 200px; /* Increased for mobile */
    }
    
    .profile-section {
        margin-top: 10px;
        gap: 2rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 15% auto;
    }
    
    .local-video-container {
        max-width: 100%;
    }
}

/* Add this after the existing CSS */
.hero-image {
    width: 100%;
    height: 100vh;
    margin-top: 80px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    max-height: 800px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 1;
    width: 90%;
    max-width: 800px;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.home-container {
    position: relative;
    min-height: 100vh;
    padding-top: 250px; /* Significantly increased from 200px for more space between header and content */
    padding-bottom: 2rem;
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/meTorah.jpg');
    background-size: contain; /* Changed from cover to contain */
    background-repeat: repeat; /* Allow image to repeat if needed */
    background-position: center;
    opacity: 0.25; /* Increased from 0.15 for better visibility */
    z-index: -1;
}

.content-wrapper {
    display: flex;
    flex-direction: row;
    max-width: 1400px; /* Increased from 1100px for wider content */
    margin: 0 auto;
    padding: 1rem 1rem; /* Reduced horizontal padding */
    gap: 2.5rem;
    align-items: flex-start;
}

.profile-section {
    flex: 0 0 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
    gap: 1.5rem;
}

.content-text {
    flex: 1 1 0;
    margin: 0 auto 0 0; /* Remove right auto margin, keep left flush */
    max-width: 1100px; /* Increased from 700px for a wider frame */
    text-align: center;
}

/* Pixelation/Mosaic Animation for Profile Image */
@keyframes pixelateIn {
    0% {
        filter: blur(30px) brightness(0.9) contrast(1.1);
        opacity: 1;
        transform: scale(0.97);
    }
    15% {
        filter: blur(25px) brightness(0.92) contrast(1.1);
        opacity: 1;
        transform: scale(0.98);
    }
    30% {
        filter: blur(20px) brightness(0.94) contrast(1.08);
        opacity: 1;
        transform: scale(0.99);
    }
    45% {
        filter: blur(15px) brightness(0.96) contrast(1.06);
        opacity: 1;
        transform: scale(0.995);
    }
    60% {
        filter: blur(10px) brightness(0.97) contrast(1.04);
        opacity: 1;
        transform: scale(1);
    }
    75% {
        filter: blur(5px) brightness(0.98) contrast(1.02);
        opacity: 1;
    }
    100% {
        filter: blur(0) brightness(1) contrast(1);
        opacity: 1;
        transform: scale(1);
    }
}

.profile-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    max-width: 300px;
    margin: 40px auto 0; /* Added 40px top margin specifically to profile image */
}

.profile-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: all 0.5s ease;
}

.pixelated-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 30px 30px;
    background-image: 
        linear-gradient(to right, rgba(0,0,0,0.12) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0,0,0,0.12) 1px, transparent 1px);
    z-index: 2;
    pointer-events: none;
    animation: fadeOutGrid 3s ease-out forwards;
}

.pixelated-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 20px 20px;
    background-image: 
        linear-gradient(45deg, rgba(0,0,0,0.08) 1px, transparent 1px),
        linear-gradient(135deg, rgba(0,0,0,0.08) 1px, transparent 1px);
    z-index: 1;
    animation: fadeOutDiagonalGrid 3.5s ease-out forwards;
}

@keyframes fadeOutGrid {
    0% {
        opacity: 1;
        background-size: 50px 50px;
    }
    15% {
        background-size: 40px 40px;
        opacity: 1;
    }
    30% {
        background-size: 30px 30px;
        opacity: 1;
    }
    45% {
        background-size: 20px 20px;
        opacity: 0.9;
    }
    60% {
        background-size: 15px 15px;
        opacity: 0.8;
    }
    75% {
        background-size: 10px 10px;
        opacity: 0.7;
    }
    90% {
        background-size: 5px 5px;
        opacity: 0.4;
    }
    100% {
        background-size: 2px 2px;
        opacity: 0;
    }
}

@keyframes fadeOutDiagonalGrid {
    0% {
        opacity: 1;
        background-size: 45px 45px;
    }
    20% {
        background-size: 35px 35px;
        opacity: 0.9;
    }
    40% {
        background-size: 25px 25px;
        opacity: 0.8;
    }
    60% {
        background-size: 15px 15px;
        opacity: 0.6;
    }
    80% {
        background-size: 8px 8px;
        opacity: 0.4;
    }
    100% {
        background-size: 3px 3px;
        opacity: 0;
    }
}

/* Add frames for text sections */
.content-text {
    flex: 1;
    margin: 0 auto; /* Center content text */
    max-width: 800px; /* More narrow content area */
    border: 1px solid #e8aa8c; /* Light frame color */
    border-radius: 12px;
    padding: 25px;
    background-color: transparent; /* Remove the white background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Brighten the font */
.content-text p {
    margin-bottom: 1.2rem;
    font-size: 1.35rem; /* Even bigger */
    color: #222;
    text-align: center;
    font-weight: 400;
}

.content-text h1, 
.content-text h2, 
.content-text h3 {
    text-align: center; /* Ensure all headings are centered */
    color: #1a2e50; /* Darker, richer blue */
    font-family: 'David Libre', 'Noto Serif Hebrew', serif;
}

.content-text h1 {
    font-size: 2rem; /* Reduced from 2.5rem */
    margin-bottom: 1rem;
}

.content-text h2 {
    position: relative;
    display: inline-block;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 10px;
    font-size: 2.2rem; /* Even bigger section headings */
}

.content-text h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(to right, transparent, #e8aa8c, transparent);
}

.content-text h3 {
    font-family: 'David Libre', 'Noto Serif Hebrew', serif;
    font-size: 1.7rem; /* Even bigger for Jewish Weddings, Bar & Bat Mitzvahs, etc. */
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.service-list {
    list-style-type: none;
    margin: 0.5rem 0 1.5rem;
    padding-left: 0; /* Remove default padding */
    max-width: 700px; /* Narrower list */
    margin: 0.5rem auto 1.5rem; /* Center the list */
}

.service-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    text-align: center; /* Center list items */
}

.service-list li:before {
    content: "•"; /* Add bullet point symbol */
    color: #e8aa8c; /* Salmon color consistent with design */
    position: absolute;
    left: 0;
    width: 100%;
    text-align: center;
    margin-left: -15px; /* Adjust position for centered look */
}

/* Update these styles */
.video-section {
    margin-top: 1rem; /* Reduced from 2rem for less space after the image */
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.video-section h3 {
    font-family: 'David Libre', 'Noto Serif Hebrew', serif;
    font-weight: 500;
    color: #1a365d;
    font-size: 1.3rem;
    margin-bottom: 0.8rem; /* Reduced from 1rem */
    text-align: center;
}

.video-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    margin-top: 1rem;
}

.video-link {
    width: 100%;
    max-width: 340px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-link img {
    width: 100%;
    border-radius: 4px;
    transition: transform 0.2s;
    aspect-ratio: 16 / 9; /* Maintain YouTube's aspect ratio */
    object-fit: cover; /* Ensure images fill the space consistently */
}

.video-link:hover img {
    transform: scale(1.05);
}

.video-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M8 5v14l11-7z"/></svg>');
    background-size: contain;
    opacity: 0.8;
    pointer-events: none;
}

.video-caption {
    font-size: 0.85rem;
    color: #333;
    text-align: center;
    margin-top: 6px;
    font-weight: 400;
    line-height: 1.4;
    max-width: 100%;
    font-family: 'Assistant', sans-serif;
}

/* Add these styles */
.title-section {
    margin-bottom: 1.5rem;
    text-align: center; /* Ensure title section is centered */
}

.title-section h1 {
    font-size: 2.2rem; /* Reduced from original size */
    font-weight: 500;
    letter-spacing: 0.02em; /* Slightly increased letter spacing */
}

.title-section h2 {
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap; /* Keeps "& Temples" on same line */
    letter-spacing: 0.01em; /* Slightly increased letter spacing */
}

.profile-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-section {
    text-align: center;
    margin-top: 1.5rem;
}

.contact-section img {
    max-width: 200px;
    margin: 0 auto 1rem;
    display: block;
}

.contact-section p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-section strong a {
    color: #1a365d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-section strong a:hover {
    color: #3498db;
}

/* Contact page styles */
.contact-page {
    padding-top: 250px; /* Increased to match home-container and ensure visibility */
    max-width: 800px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 40px;
}

.contact-message {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #1a365d;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: 'Assistant', sans-serif;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form button {
    background-color: #1a365d;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #2c4c7c;
}

/* Add this to your existing styles */
.bar-mitzvah-bg {
    background-image: url('images/MeTorahYury.jpg') !important;
    opacity: 0.25;
}

.special-features-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.special-features-list li {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.special-features-list li strong {
    color: #1a365d;
}

/* Adjust the content text styling for this page */
.content-text h2 {
    margin-top: 2.5rem;
    color: #1a365d;
}

.content-text p {
    margin-bottom: 1.5rem;
}

/* Update image section styles */
.image-section {
    margin-top: 2rem;
}

.image-section h3 {
    color: #1a365d;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    text-align: left;
}

.additional-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.additional-images img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.additional-images img:hover {
    transform: scale(1.02);
}

/* Add the wedding background */
.wedding-bg {
    background-image: url('images/wedding.png') !important;
    opacity: 0.25;
}

/* Style adjustments for wedding page */
.content-text h3 {
    color: #1a365d;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.content-text ul {
    list-style-type: none;
    margin-bottom: 1.5rem;
    padding-left: 0; /* Remove default padding */
    max-width: 700px; /* Narrower list */
    margin: 0 auto 1.5rem; /* Center the list */
}

.content-text ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    text-align: center; /* Center list items */
}

.content-text ul li:before {
    content: "•"; /* Add bullet point symbol */
    color: #e8aa8c; /* Salmon color consistent with design */
    position: absolute;
    left: 0;
    width: 100%;
    text-align: center;
    margin-left: -15px; /* Adjust position for centered look */
}

.content-text a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-text a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Ensure content starts below fixed header */
.home-container {
    padding-top: 80px; /* Adjust this value based on your header height */
}

/* Add the funeral background */
.funeral-bg {
    background-image: url('images/funeral1.jpg') !important;
    opacity: 0.25;
}

/* Specific styles for funeral page */
.funeral-content h1,
.funeral-content h2 {
    color: #1a365d;
}

.funeral-content ul {
    margin-bottom: 2rem;
}

.funeral-content ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Ensure proper spacing for lists */
.content-text ul {
    padding-left: 1.5rem;
    margin: 0.5rem 0 1.5rem 0;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 90px 20px 30px; /* Further reduced from 150px to 90px for less space */
}

.intro-text {
    text-align: center;
    font-style: italic;
    color: #1a365d;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    font-family: 'Gentium Book Plus', serif;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    position: relative;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    grid-column: span 5;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.left-align {
    grid-column: 2 / span 5;
}

.right-align {
    grid-column: 7 / span 5;
}

.center-align {
    grid-column: 4 / span 6;
}

.testimonial-card p {
    font-family: 'Gentium Book Plus', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
    color: #2c3e50;
    font-style: italic;
}

.testimonial-card .author {
    display: block;
    text-align: right;
    color: #1a365d;
    font-weight: 500;
    font-family: 'Assistant', sans-serif;
}

/* Add some visual interest with subtle animations */
.testimonial-card:nth-child(odd) {
    animation: fadeInLeft 0.8s ease-out;
}

.testimonial-card:nth-child(even) {
    animation: fadeInRight 0.8s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .testimonial-card {
        grid-column: 2 / span 10 !important;
    }
    
    .content-wrapper {
        gap: 2rem;
    }
    
    .profile-section {
        margin-top: 10px;
        gap: 2rem;
    }
    
    .testimonials-container {
        padding-top: 80px; /* Further reduced from 120px for mobile */
    }
}

.testimonials-container h1 {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 2rem;
    color: #1a365d;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
}

.contact-page h1 {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 2rem;
    color: #1a365d;
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Add a reviews background */
.reviews-bg {
    background-image: url('images/meTorah.jpg') !important;
    opacity: 0.2;
}

/* Refined spacing for consistency */
.content-text p:last-of-type {
    margin-bottom: 0.5rem;
}

/* Add styles for section links */
.section-link {
    color: inherit; /* Keep the original heading color */
    text-decoration: none; /* No underline */
    transition: color 0.3s ease;
    font-family: 'David Libre', 'Noto Serif Hebrew', serif;
    letter-spacing: 0.01em;
}

.section-link:hover {
    color: #3498db; /* Subtle color change on hover */
    text-decoration: none; /* Ensure no underline on hover */
}

/* Audio Player Styles */
.audio-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.audio-button {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.audio-button:hover {
    background-color: #2980b9;
    transform: scale(1.1);
}

.play-icon, .pause-icon {
    font-size: 18px;
}

.mosaic-blocks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    grid-template-rows: repeat(25, 1fr);
    animation: fadeOutBlocks 3.2s forwards;
}

.mosaic-blocks::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 3;
    backdrop-filter: blur(5px);
    animation: reduceBlur 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeOutBlocks {
    0%, 10% {
        opacity: 1;
    }
    80%, 100% {
        opacity: 0;
    }
}

@keyframes reduceBlur {
    0% {
        backdrop-filter: blur(12px);
    }
    30% {
        backdrop-filter: blur(8px);
    }
    60% {
        backdrop-filter: blur(4px);
    }
    80% {
        backdrop-filter: blur(2px);
    }
    100% {
        backdrop-filter: blur(0px);
    }
}

.mosaic-cell {
    opacity: 0.6;
    transform: scale(1);
    transition: transform 0.3s;
}

@keyframes fadeOut {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }
    80% {
        opacity: 0.1;
        transform: scale(0.95);
    }
    100% {
        opacity: 0;
        transform: scale(0.9);
    }
}

/* Local Video Player Styling */
.local-video-container {
    margin: 1.5rem auto;
    max-width: 600px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.local-video {
    width: 100%;
    display: block;
    border-radius: 8px;
}

/* Updated Video Modal Styling */
.video-modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
}

.modal-content {
    position: relative;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 800px;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

#local-video {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.local-video-thumbnail {
    position: relative;
}

.local-video-thumbnail::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M8 5v14l11-7z"/></svg>');
    background-size: contain;
    opacity: 0.8;
    pointer-events: none;
}

.local-video-thumbnail img {
    object-position: center; /* Center the thumbnail image */
    border: 1px solid rgba(0,0,0,0.1); /* Subtle border like YouTube thumbnails */
}

@media (max-width: 768px) {
    .home-container {
        padding-top: 200px; /* Increased for mobile */
    }
    
    .profile-section {
        margin-top: 10px;
        gap: 2rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 15% auto;
    }
}

.contact-info {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #1a365d;
}

.contact-info a {
    color: #1a365d;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.contact-info a:hover {
    color: #e8aa8c;
    text-decoration: underline;
}

.front-image {
    margin-top: 80px !important; /* Use !important to ensure this overrides other styles */
}

@media (max-width: 768px) {
    .front-image {
        margin-top: 60px !important; /* Slightly less space on mobile but still significant */
    }
}

@media (max-width: 900px) {
    .content-wrapper {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    .profile-section {
        flex: none;
        width: 100%;
        margin: 0 auto;
    }
    .content-text {
        max-width: 100%;
    }
}

@media (max-width: 1200px) {
    .content-text {
        max-width: 98vw;
    }
} 