/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Aleo:wght@400;700&family=Geologica:wght@400;700&display=swap');

/* General Styles */
body {
    font-family: 'Aleo', serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(to bottom, #f7faff, #ffecec);
    color: #333333;
}

/* Header */
header {
    width: 100%;
    height: 320px;
    max-height: 320px;
    overflow: hidden;
    position: relative;
}

header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

header h1 {
    font-size: 40px;
    margin: 0;
}

header p {
    margin: 5px 0 0;
    font-size: 20px;
}

/* Main Buttons */
.button-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10% 0;
}

.box {
    position: relative;
    width: 300px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ff8a80;
    transition: transform 0.2s, background-color 0.2s;
    cursor: pointer;
    padding: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.box:hover {
    transform: scale(1.05);
    background-color: #ff5252;
}

.box span {
    z-index: 1;
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* ✅ Ensure the main content area is properly positioned */
.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 100vh;
    padding-bottom: 60px;
}

/* ✅ Prevent navigation bar jumping */
.dynamic-content {
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
    display: flex !important;
    flex-direction: column;
    min-height: 400px;
    position: relative;
}

/* ✅ Adjust Einstein Page Banner */
.dynamic-content .banner,
.einstein-page .banner {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px; /* ✅ Rounded corners */
    overflow: hidden; /* Prevents border-radius from being ignored */
}

.dynamic-content .banner img,
.einstein-page .banner img {
    width: 100%;
    max-height: 400px; /* Adjust as needed */
    object-fit: cover;
    border-radius: 12px; /* ✅ Rounded corners */
}

/* Ensure Einstein Content is Visible */
.dynamic-content .content {
    display: flex !important;
    flex-direction: column;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    min-height: 400px;
}

/* Fix Section Headings */
.dynamic-content h2 {
    border-bottom: 2px solid #ff5252;
    padding-bottom: 5px;
}

/* Fix Google Maps Embed */
.dynamic-content iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* Improve Text Formatting */
.dynamic-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* About Page Styling */
.dynamic-content .content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
}

.dynamic-content h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #ff5252;
}

.dynamic-content .founder {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0px 2px 4px rgba(0,0,0,0.1);
}

.dynamic-content .founder img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    border: 3px solid #ff5252;
}

.dynamic-content .founder-info {
    flex: 1;
}

.dynamic-content .founder-info h2 {
    margin: 0;
    color: #ff5252;
}

.dynamic-content .founder-info p {
    font-size: 18px;
    line-height: 1.6;
    margin-top: 10px;
}

/* Navigation Bar - Static Below the Banner */
nav {
    font-family: 'Geologica', sans-serif;
    background-color: #ffffff;
    border-bottom: 1px solid #eeeeee;
    text-align: center;
    padding: 10px;

    /* ✅ Remove fixed position to make it naturally flow below the banner */
    position: relative;
    width: 100%;
    z-index: 1000;
}


nav a {
    font-family: 'Geologica', sans-serif;
    margin: 0 15px;
    text-decoration: none;
    color: #ff5252;
    font-size: 16px;
    font-weight: bold;
    transition: color 0.2s;
}

nav a:hover {
    color: #ff1744;
}

/* Footer */
footer {
    font-family: 'Aleo', serif;
    background-color: #ffffff;
    color: #333333;
    width: 100%;
    text-align: center;
    padding: 10px;
    border-top: 1px solid #eeeeee;
    
    /* ✅ Push the footer below the nav */
    margin-bottom: 50px; /* Adjust this if needed */
    position: relative;
}

/* Back Button */
.go-back-btn {
    background-color: #ff5252;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
    margin-top: 20px;
}

.go-back-btn:hover {
    background-color: #ff1744;
}

/* Contact Page Styles */
.contact-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact-box {
    width: 45%;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 2px 4px rgba(0,0,0,0.1);
}

.contact-box h2 {
    margin-top: 0;
}

.message-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 20px;
}

.message-box textarea {
    width: calc(100% - 20px);
    height: 120px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    resize: none;
}

.message-box button {
    margin-top: 10px;
    padding: 10px 20px;
    border: none;
    background-color: #ff5252;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.message-box button:hover {
    background-color: #ff1744;
}


/* Newsletter Form */
.newsletter-form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 20px auto;
    text-align: center;
}

.newsletter-form input {
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.newsletter-form button {
    padding: 10px;
    border: none;
    background-color: #ff5252;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

.newsletter-form button:hover {
    background-color: #ff1744;
}

.centered-text {
    text-align: center;
    display: block;
    margin: 10px auto;
}

.hidden {
    display: none !important;
}

/* Social Media Icons */
.social-icons {
	position: absolute !important;
    bottom: 15px !important;
    right: 20px !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 15px !important;
    z-index: 10 !important;
}

/* Fix icon size and prevent stretching */
.social-icons a {
	display: inline-block;
	width: 40px;
	height: 40px;
}

.social-icons img {
	width: 100%;
	height: auto;
	border-radius: 50%; /* Optional for a circular effect */
	transition: transform 0.2s ease-in-out;
}

.social-icons img:hover {
	transform: scale(1.1);
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    /* Adjust Header */
    header {
        height: auto;
        max-height: 200px;
		padding-bottom: 0;
    }
	
	header img {
			width: 100%;
			height: auto; /* Maintains aspect ratio */
			max-height: 400px; /* Prevents excessive height */
			object-fit: cover; /* Ensures a clean fit */
	}
		
    header h1 {
        font-size: 28px;
        text-align: center;
    }

    header p {
        font-size: 16px;
        text-align: center;
    }

    /* Make Navigation Wrap into Multiple Rows */
    nav {
        display: flex;
        flex-wrap: wrap;  /* ✅ Allows multiple rows */
        justify-content: center;  /* ✅ Centers items */
        padding: 5px;
        gap: 2px; /* ✅ Adds spacing between items */
    }

    nav a {
        display: block;
        padding: 4px 8px;
        font-size: 16px;
        text-align: center;
        flex: 1 1 auto;  /* ✅ Allows items to resize but not too small */
        min-width: 60px;  /* ✅ Prevents items from shrinking too much */
    }

    /* Stack Boxes Vertically */
    .button-container {
        flex-direction: column;
        align-items: center;
        padding: 5%;
    }

    .box {
        width: 90%; /* Make buttons full width */
        height: auto;
        padding: 15px;
        font-size: 18px;
    }

    /* Adjust Dynamic Content */
    .dynamic-content {
        width: 95%;
        max-width: 100%;
        padding: 15px;
    }

    /* Fix Text Size */
    .dynamic-content h1, .dynamic-content h2 {
        font-size: 24px;
        text-align: center;
    }

    .dynamic-content p {
        font-size: 16px;
        line-height: 1.5;
    }

    /* Make Forms More User-Friendly */
    .newsletter-form input, .newsletter-form button {
        width: 100%;
        font-size: 16px;
    }

    /* Adjust Footer */
    footer {
        font-size: 14px;
        text-align: center;
        padding: 10px;
    }

    /* Adjust Google Maps Embed */
    iframe {
        height: 300px;
    }
	
    /* Ensure Contact Boxes Stack Like Big Buttons */
    .contact-container {
        flex-direction: column;  /* ✅ Stack elements vertically */
        align-items: center;  /* ✅ Center the elements */		
    }

    .contact-box {
        width: 90%;  /* ✅ Full-width like buttons */
        max-width: 400px;  /* ✅ Prevents being too wide */
        text-align: center;  /* ✅ Aligns text */
        padding: 15px;
    }
	
	.founder {
        flex-direction: column; /* Stack image below text */
        align-items: center; /* Center content */
        text-align: center;
    }

    .founder img {
        width: 150px; /* Adjust size as needed */
        height: auto;
        margin: 10px 0; /* Add spacing */
        order: 1; /* Ensures the image appears below the text */
    }

    .founder-info {
        order: 2; /* Ensures the text appears first */
    }
	
	.social-icons {
        bottom: 5px;  /* Adjust positioning for smaller screens */
        right: 5px;
        gap: 5px;
    }

    .social-icons img {
        width: 30px;  /* Slightly smaller icons for mobile */
    }	
}
