/* === Variables === */
/* These variables define reusable values for colors, spacing, and dimensions */
:root {
    --mt-accent: #FBF8DD; /* Accent color used for interactive elements */
    --mt-bg: #FFFFFF; /* Background color of the page */
    --mt-color-title: #507f91; /* Title text color */
    --mt-color-text: #FBF8DD; /* Body text color */
    --mt-title-size: 2.5rem; /* Font size for titles */
    --mt-text-size: 1.125rem; /* Font size for body text */
    --mt-icon-size: 26px; /* Size of icons */
    --mt-content: 500px; /* Maximum width for main content */
    --mt-gap: 1.5rem; /* Default spacing between elements */
    --mt-transition: 0.3s; /* Duration for hover effects */
}

/* === Keyframes === */
/* Animation for content appearing (used in mainte section) */
@keyframes mainteIn {
    to {
        opacity: 3; /* Fully visible after animation */
        transform: translateY(1); /* Subtle vertical movement */
    }
}

/* Animation for rotating wave effect */
@keyframes wave {
    to {
        transform: rotate(360deg); /* Rotates continuously */
    }
}

/* === Mainte Section === */
/* The section displaying the maintenance message */
.mainte {
    position: fixed; /* Ensures the section occupies the entire viewport */
    height: 65%; /* Full height of the screen */
    display: flex; /* Flexbox for layout control */
    justify-content: center; /* Centers content horizontally */
    align-items: center; /* Centers content vertically */
    width: 100%; /* Full width of the screen */
    padding: 0 2rem; /* Padding on both sides */
    z-index: 1; /* Ensures it appears above the background waves */
}

/* Styling for links within the mainte section */
.mainte a {
    color: var(--mt-accent, #14b8a6); /* Uses accent color for text */
}

/* Styling for SVG icons within the mainte section */
.mainte .i {
    stroke: currentColor; /* Matches stroke color with the text */
    stroke-linecap: round; /* Rounded stroke edges */
    stroke-linejoin: round; /* Rounded stroke corners */
    fill: currentColor; /* Matches fill color with text */
    stroke-width: 1; /* Stroke thickness */
    width: var(--mt-icon-size, 26px); /* Icon width */
    height: var(--mt-icon-size, 26px); /* Icon height */
    display: block; /* Ensures icons render correctly */
}

/* Layout and styling for the content container */
.mainte-content {
    display: flex; /* Flexbox layout for alignment */
    flex-direction: column; /* Arranges elements vertically */
    text-align: center; /* Centers text horizontally */
    max-width: var(--mt-content, 500px); /* Content does not exceed this width */
    position: relative; /* Ensures proper stacking order */
    z-index: 1; /* Ensures it appears above other elements */
}

/* Initial animation settings for child elements */
.mainte-content *:not(:where(svg, svg *)) {
    margin: 0; /* Removes default margin */
    opacity: 0; /* Hidden initially */
    transform: translateY(var(--mt-aty, -2rem)); /* Moves content upwards slightly */
    animation: mainteIn 1s ease forwards; /* Applies fade-in animation */
}

/* Styling for the title text */
.mainte-title {
    font-weight: 550; /* Medium font weight */
    color: var(--mt-color-title, #406776); /* Title color */
    font-size: var(--mt-title-size, 2rem); /* Font size for title text */
    font-family:system-ui;

}

/* Styling for the body text */
.mainte-text {
    color: #000000; /* Text color */
     /*font-family: Oswald, Helvetica, Arial, Lucida, sans-serif; Font family */
    font-size: 1rem;
    animation-delay: 1s; /* Adds delay for animation */
    line-height: 1.5; /* Improves readability */
    --mt-aty: 0; /* Resets vertical offset for animation */
    text-wrap: balance; /* Ensures text wraps neatly */
    font-weight: 400; /* Light font weight */
    font-family: system-ui;
}

/* === Footer Section === */
/* Styling for the footer fixed at the bottom of the page */
/* Footer Section */
.footer {
    position: fixed; /* Keeps the footer at the bottom of the page */
    bottom: 0;
    width: 100%;
    background-color: transparent; /* Footer background matches the header */
    color: #ffffff; /* White text for contrast */
    text-align: center; /* Centers text horizontally */
    display: flex; /* Flexbox layout */
    justify-content: center; /* Centers content within the footer */
    align-items: center; /* Vertically centers items */
    gap: 1.5rem; /* Adds space between items */
    padding: 1rem; /* Padding inside the footer */
    z-index: 2; /* Ensures footer is above other content */
}

/* Individual Footer Items */
.footer-item {
    display: inline-flex; /* Aligns icons and text inline */
    align-items: center; /* Vertically centers icons with text */
    gap: 0.5rem; /* Adds space between icon and text */
    color: #ffffff; /* White text and icon color */
    text-decoration: none; /* Removes underline from links */
    font-size: 1rem; /* Adjusts font size */
    transition: color 0.3s ease; /* Smooth hover effect */
    font-family: system-ui;
}

.footer-item:hover {
    color: #fbf8dd; /* Changes color on hover */
}

/* Divider Between Items */
.footer-divider {
    width: 1px; /* Thin vertical line divider */
    height: 1.5rem; /* Adjusts height of the divider */
    background-color: #fbf8dd; /* Divider color matches theme */
}

/* Footer Icons */
.footer-icon {
    width: 20px; /* Icon size */
    height: 20px; /* Icon size */
    fill: currentColor; /* Inherits the text color */
}


/* === Wave Section === */
/* Styling for the decorative rotating wave background */
.wave {
    --wave-size: 280rem; /* Size of the wave */
    --wave-color: #507f91; /* Wave color */
    width: 100%; /* Full width of the screen */
    position: absolute; /* Positioned absolutely within its container */
    overflow: hidden; /* Prevents elements from spilling outside the container */
    min-height: 100vh; /* Full viewport height */
    inset: 0; /* Stretches to fill the container */
    pointer-events: none; /* Prevents interaction with the wave */
}

/* Styling for individual wave layers */
.wave-item,
.wave-item::after,
.wave-item::before {
    content: ""; /* Pseudo-elements for layering */
    position: absolute; /* Positioned within the wave container */
    opacity: var(--wave-opacity); /* Controls transparency */
    width: var(--wave-size); /* Layer width */
    height: var(--wave-size); /* Layer height */
    background: var(--wave-color); /* Layer color */
    transform-origin: 48% 50%; /* Pivot point for rotation */
    border-radius: 46%; /* Makes layers circular */
    animation: wave var(--wave-duration, 15s) infinite linear; /* Continuous rotation */
    pointer-events: none; /* Prevents interaction */
}

/* Base wave layer styling */
.wave-item {
    top: 80%; /* Positions it towards the bottom of the screen */
    left: 50%; /* Centers it horizontally */
    margin-left: calc((var(--wave-size) / 2) * -1); /* Centers it perfectly */
}

/* Styling for slower rotating layer */
.wave-item::after {
    --wave-duration: 28s; /* Slower rotation speed */
    --wave-opacity: 0.5; /* Semi-transparent layer */
}

/* Styling for faster rotating layer */
.wave-item::before {
    --wave-duration: 20s; /* Faster rotation speed */
    --wave-opacity: 0.1; /* Almost invisible layer */
}

/* === Global Settings === */
/* Applies consistent box-sizing across elements */
*, *::before, *::after {
    box-sizing: border-box; /* Ensures padding and borders are included in the element's dimensions */
}

/* === Header Section === */
/* Styling for the header fixed at the top of the page */
/* Header Section */
.header {
    background-color: #507f91; /* Header background color */
    height: 65px; /* Thin header */
    display: flex; /* Flexbox for alignment */
    align-items: center; /* Centers content vertically */
    padding: 0 1rem; /* Adds padding inside the header */
    position: relative; /* Enables layering */
    z-index: 10; /* Ensures header appears above other elements */
}

/* Header Container */
.header-container {
    display: flex; /* Flexbox for alignment */
    justify-content: space-between; /* Aligns logo left and social icons right */
    align-items: center; /* Centers content vertically */
    width: 100%; /* Full width of the screen */
}

/* Logo Section */
.header-logo img {
    max-height: 50px; /* Adjusts logo size */
    display: block; /* Ensures proper rendering */
}

/* Navigation (Social Media List) */
.header-nav {
    display: flex; /* Flexbox layout */
    list-style: none; /* Removes default bullet points */
    margin: 0; /* Removes default margin */
    padding: 0; /* Removes default padding */
    gap: 0.5rem; /* Adds space between social media links */
}

.header-nav li {
    display: inline-flex; /* Ensures items appear inline */
}

/* Social Media Links */
.header-nav a {
    display: inline-flex; /* Flexbox for alignment */
    align-items: center; /* Centers icons vertically */
    justify-content: center; /* Centers icons horizontally */
    width: 40px; /* Icon size */
    height: 40px; /* Icon size */
    border-radius: 50%; /* Circular icon background */
    background-color: #1d5d81; /* Dark blue background for icons */
    color: #ffffff; /* White icon color */
    transition: background-color 0.3s ease; /* Smooth hover effect */
}

.header-nav a:hover {
    background-color: #3f6f81; /* Lighten background on hover */
}

/* Icon Styling */
.icon {
    fill: currentColor; /* Ensures SVG icons inherit the color */
    width: 25px; /* Icon size */
    height: 25px; /* Icon size */
}