/* Import Fira Sans from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;500;700&display=swap');

/* Global Styles */
html, body {
    font-family: 'Fira Sans', sans-serif;
    background-color: #010203; /* Fallback color in case the image doesn't load */
    background-size: cover; /* Cover the entire element, maintain aspect ratio */
    background-position: center; /* Center the image within the element */
    background-repeat: no-repeat; /* Prevent the image from repeating */
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box; /* Include padding and borders in width calculation */
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Page Container Styles */
.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure container is at least the height of the viewport */
    width: 100%; /* Ensure the container spans the full width */
    box-sizing: border-box; /* Include padding and borders in width calculation */
}

/* Apply the animation to sticky-note elements */
.sticky-note {
    opacity: 0;
    transform: translateY(20px); /* Start slightly below */
    transition: opacity 0.8s ease, transform 0.8s ease; /* Smooth transition */
}
.sticky-note.visible {
    opacity: 1;
    transform: translateY(0); /* Slide to original position */
}


/* Navigation Styles */
nav {
    background-color: #010203;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    width: 100%; /* Ensure navbar spans the full width */
    box-sizing: border-box; /* Include padding in width calculation */
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 100;
    padding: 14px 20px;
    display: inline-block;
    letter-spacing: 3px;
}

nav .nav-right a:hover,
nav .nav-left a:hover {
    background-color: #ddd;
    color: black;
}

nav .nav-left,
nav .nav-right{
    font-style: italic;
    font-size: smaller;
}



/* Main Content Styles */
main {
    flex: 1; /* Allow the main content to grow and take up available space */
    padding: 80px 20px 20px; /* Adjust padding-top based on the height of the navbar */
    width: 100%; /* Ensure main content spans the full width */
    box-sizing: border-box; /* Include padding in width calculation */
}

/* Intro Section Styles */
#intro {
    margin-top: 20px;
    background-color: transparent; /* Transparent white background */
    padding: 20px; /* Add padding as needed */
    color: white; /* Text color for contrast */
    text-align: center; /* Center text alignment */
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack elements vertically */
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    margin: 20px; /* Margin around the section to ensure spacing on all sides */
    width: calc(100% - 40px); /* Adjust width to account for margin */
    box-sizing: border-box; /* Include padding and borders in width calculation */
}

#intro h2,
#intro p {
    margin: 0; /* Remove default margins */
}

#intro h2 {
    font-size: 2.5em; /* Adjust font size as needed */
    font-weight: 700; /* Adjust font weight as needed */
    margin: 10px 0; /* Space between heading elements */
}

#intro p {
    font-size: 1em; /* Adjust font size as needed */
    margin: 10px 0; /* Space around paragraph */
}

/* Responsive Adjustments for Intro Section */
@media (max-width: 768px) {
    #intro {
        margin: 10px; /* Reduced margin for smaller screens */
        width: calc(100% - 20px); /* Adjust width for smaller screens */
    }

    #intro h2 {
        font-size: 2em; /* Adjust font size for smaller screens */
    }

    #intro p {
        font-size: 0.9em; /* Adjust font size for smaller screens */
    }
}

/* Background Section Styles */
#background {
    display: flex; /* Use flexbox for layout */
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    padding: 20px; /* Padding around the section */
    margin: 10px; /* Margin around the section to ensure spacing on all sides */
    text-align: center; /* Center text alignment */
    background-color: transparent;
    width: calc(100% - 40px); /* Adjust width to account for margin */
    box-sizing: border-box; /* Include padding in width calculation */
    color: white;
}

#background p {
    font-size: 0.8em; /* Adjust font size as needed */
    margin: 0; /* Remove default margins */
    line-height: 1.6; /* Improve readability */
}

.column {
    flex: 1; /* Allow columns to grow equally */
    padding: 10px; /* Padding inside columns */
    max-width: 100%; /* Ensure columns don’t exceed container width */
    box-sizing: border-box; /* Include padding in width calculation */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #background {
        flex-direction: column; /* Stack columns vertically on smaller screens */
        align-items: center; /* Center align items */
        margin: 10px; /* Reduced margin for smaller screens */
        width: calc(100% - 20px); /* Adjust width for smaller screens */
    }

    .column {
        width: 100%; /* Full width for each column on smaller screens */
        padding: 10px 0; /* Padding adjustment for vertical stack */
    }
}

/* Dynamic Grid Section */
#dynamic-grid {
    width: calc(100% - 40px); /* Adjust width to account for margin */
    margin: 20px; /* Margin around the section to ensure spacing on all sides */
    padding: 20px; /* Padding inside the section */
    background-color: white;
    box-sizing: border-box; /* Include padding in width calculation */
}

.row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    justify-content: center; /* Center align items in the row */
}

.column {
    display: flex;
    flex-direction: column;
}

.image-column {
    flex: 1;
}

.text-column {
    flex: 2;
    padding-left: 20px; /* Adds space between the image and text */
}

.text-column h2 {
    margin-bottom: 30px; /* Adjust the value to control the space */
}

/* Justify and indent text in the text-column p */
.text-column p {
    text-align: justify; /* Justify the text */
    text-indent: 20px; /* Indent the first line */
    margin: 0; /* Remove default margins */
    line-height: 1.6; /* Improve readability */
}

.row img {
    max-width: 100%;
    height: auto;
}

.row4 {
    flex-direction: column;
    align-items: center;
}

.row4 h3 {
    margin: 40px 0 20px; /* Add margin above and below the h3 for spacing */
}

.gallery-images {
    display: flex;
    gap: 20px; /* Space between the images */
    justify-content: center; /* Center the images horizontally */
    width: 100%;
}

.gallery-images .image {
    width: 23%; /* Adjust to fit images in one row */
    height: auto;
}

/* Increase the text size of h2 in the dynamic grid */
#dynamic-grid h2 {
    font-size: 2.5em; /* Adjust font size as needed */
    margin: 0 0 10px; /* Space below the h2 for spacing */
}

/* Specific styles for links in the .row3 section */
.row3 a {
    color: blue; /* Color for default, hover, and active states */
    text-decoration: none; /* Remove underline */
}

.row3 a:hover,
.row3 a:active {
    color: blue; /* Ensure link remains blue when hovered or clicked */
}

.row3 a:visited {
    color: blue; /* Ensure link remains blue after being visited */
}


/* Optional: for better responsiveness */
@media (max-width: 768px) {
    #dynamic-grid {
        margin: 10px; /* Reduced margin for smaller screens */
        width: calc(100% - 20px); /* Adjust width for smaller screens */
    }

    .row {
        flex-direction: column;
        align-items: center; /* Center items in the column layout */
    }
    
    .text-column {
        padding-left: 0; /* Remove padding in smaller screens */
        text-align: center; /* Center text in text columns */
    }

    .row4 {
        flex-direction: column;
        align-items: center;
    }

    .gallery-images {
        flex-direction: column;
        align-items: center; /* Center align gallery images */
    }

    .gallery-images .image {
        width: 100%; /* Full width for images in a column layout */
        margin-bottom: 10px; /* Space between images in column layout */
    }

    /* Adjust h2 size for smaller screens */
    #dynamic-grid h2 {
        font-size: 1.5em; /* Adjust font size for smaller screens */
    }

    /* Specific adjustments for .row2 */
    .row2 {
        flex-direction: column; /* Column layout */
        align-items: center; /* Center content horizontally */
    }

    .row2 .image-column {
        order: -1; /* Ensure image comes first */
    }

    .row2 .text-column {
        order: 0; /* Ensure text comes after the image */
    }
}

/* Underconstruction */
.underconstruction {
    margin-top:50px;
    text-align: center; /* Center content */
    padding: 20px; /* Add some padding */
}

.underconstruction img {
    width: 30%; /* Image takes up 30% of the container width */
    max-width: 100%; /* Ensure it doesn't overflow on small screens */
    height: auto; /* Maintain aspect ratio */
}

.underconstruction h1 {
    font-size: 24px; /* Adjust heading size */
    margin-top: 15px; /* Space above the heading */
}

.underconstruction p {
    font-size: 16px; /* Adjust paragraph size */
    margin-top: 10px; /* Space above the paragraph */
}

@media (max-width: 768px) { 
    .underconstruction img {
        width: 50%; 
    }
}

/*Sticky Notes*/
.sn-container {
    display: flex; /* Create a flexible layout */
    justify-content: space-around; /* Space between items */
    width: calc(100% - 40px); /* Adjust width to account for margin */
    margin: 20px; /* Margin around the section */
    padding: 20px; /* Padding inside the section */
    background-color: white;
    box-sizing: border-box; /* Include padding in width calculation */
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
}


.sticky-note {
    background-color: #ffeb3b; /* Sticky note color */
    padding: 15px; /* Padding inside the note */
    margin: 25px; /* Space around each note */
    border-radius: 5px; /* Rounded corners */
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2); /* Shadow for depth */
    position: relative; /* For positioning the curl effect */
    transition: transform 0.3s; /* Smooth transition for hover effect */
    flex: 1 0 20%; /* Adjust for more items per row */
    max-width: 30%; /* Max width for larger screens */
}

.sticky-note:hover {
    transform: translateY(-5px); /* Lift effect on hover */
}

h3 {
    margin: 0 0 10px 0; /* Space below header */
}

p {
    margin: 0; /* Remove default margin */
}

/* Optional: Curl effect */
.sticky-note::before {
    content: '';
    position: absolute;
    top: -10px; /* Position above the note */
    left: 10px; /* Offset from the left */
    width: 20px; /* Width of the curl */
    height: 20px; /* Height of the curl */
    background-color: #ffeb3b; /* Same color as the note */
    border-radius: 0 0 5px 0; /* Rounded corners */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); /* Shadow for the curl */
    transform: rotate(45deg); /* Rotate to create curl effect */
}

/*animation for sections*/
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Media query for smaller devices */
@media (max-width: 768px) {
    .sn-container {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center items */
        padding: 20px; /* Ensure padding is retained */
        margin: 10px; /* Reduced margin for smaller screens */
        width: calc(100% - 20px); /* Adjust width for smaller screens */
    }

    .sticky-note {
        max-width: 90%; /* Max width for smaller screens */
        width: 80%; /* Full width for smaller screens */
        margin: 10px 0; /* Space only above and below */
    }
}


/* Footer Styles */
footer {
    background-color: transparent; 
    color: white; /* White text color */
    padding: 10px 20px; /* Padding around content */
    width: calc(100% - 40px); /* Adjust width to account for margin */
    margin: 20px; /* Margin around the footer */
    box-shadow: none; /* Remove box shadow */
    display: flex; /* Flexbox for layout */
    justify-content: space-between; /* Space between items */
    align-items: center; /* Center items vertically */
    flex-wrap: wrap; /* Wrap items on smaller screens */
    box-sizing: border-box; /* Include padding in width calculation */
}

/* Ensure no overflow from footer */
footer * {
    box-sizing: border-box; /* Include padding in width calculation */
}

.footer-left {
    flex: 1; /* Allows the text container to take available space */
}

.footer-social {
    display: flex; /* Flexbox for layout */
    align-items: center; /* Center icons vertically */
}

.footer-social a {
    color: white; /* White icon color */
    font-size: 24px; /* Icon size */
    margin: 0 10px; /* Spacing between icons */
    text-decoration: none; /* No underline */
}


.footer-social i {
    transition: color 0.3s ease; /* Smooth color transition */
}

/* Responsive Adjustments for Footer */
@media (max-width: 768px) {
    footer {
        flex-direction: column; /* Stack items vertically on smaller screens */
        align-items: center; /* Center items horizontally */
        text-align: center; /* Center text */
        margin: 10px; /* Reduced margin for smaller screens */
        width: calc(100% - 20px); /* Adjust width for smaller screens */
    }

    .footer-left {
        margin-bottom: 10px; /* Add space below text on smaller screens */
    }

    .footer-social {
        justify-content: center; /* Center icons horizontally */
    }
}
