/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0e162a;
    color: #e0e0e0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-padding-top: 100px;
}
/* Main Styles */
main {
	min-height: 100vh; /* Ensure it covers the full viewport height */
    position: relative; /* Allows proper stacking with z-index */
    z-index: 1; /* Ensure it appears above the particles */
    padding: 25px 0 15px;
}
.particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.language-switcher {
  position: relative;
  z-index: 1000;
}

/*
.language-switcher ul,
.language-switcher li,
.language-switcher a {
  all: unset;
  display: block;
}
*/

.language-button {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  padding: 0.25em;
}

.language-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  list-style: none;
  margin: 0.25em 0 0;
  padding: 0;
  min-width: 150px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: none;
}

.language-menu.show {
  display: block;
}

.language-menu li {
  border-bottom: 1px solid #eee;
}

.language-menu li:last-child {
  border-bottom: none;
}

.language-menu a {
  display: block;
  padding: 0.5em 1em;
  text-decoration: none;
  color: #333;
}

.language-menu a:hover {
  background-color: #f0f0f0;
}

.wrapper {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    color: #df758c;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
    border-bottom: 2px solid #df758c;
    padding-bottom: 10px;
}

p {
    line-height: 1.6;
}

/* Header Styles */
header {
    background-color: #0e162a;
    padding: 10px 0;
    color: #fff;
    min-height: 70px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Default alignment for items */
}
/* Center the logo in the header, Docs Pages */
.header-content.center-logo {
    justify-content: center; /* Center items when .center-logo class is applied */
    max-width: 100%; /* Ensure responsiveness */
    height: auto; 
}
.header-content .logo img {
    max-width: 100%; /* Ensure responsiveness */
    height: auto;    /* Maintain aspect ratio */
}

/* Footer Styles */
.footer {
    background-color: #0e162a; /* Dark background for contrast */
    color: #e0e0e0; /* Light text color */
    padding: 20px 0;
    text-align: center;
    border-top: 2px solid #df758c; /* Accent border color */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer .social-icons {
    margin: 10px 0;
}

.footer .social-icons a {
    color: #fff;
    font-size: 24px;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer .social-icons a:hover {
    color: #df758c;
}


.logo img {
    width: 175px;
    height: 75px;
    object-fit: contain;
}

/* Custom Link Styles */
a.custom-link {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    transition: background-color 0.3s, color 0.3s;
}

a.custom-link:hover {
    color: #df758c;
}
		
/* Navigation Styles */
nav#nav-links {
    position: relative;
}

nav#nav-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
	flex-wrap: wrap;
    justify-content: center;
    flex-direction: row;
}

nav#nav-links ul li {
    margin: 0 10px;
}

nav#nav-links ul li a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    align-items: center;
}

nav#nav-links ul li a i {
    color: #fff;
    margin-left: 5px;
    font-size: 16px;
}

nav#nav-links ul li a:hover {
    color: #df758c;
}

nav#nav-links ul li a:hover i {
    color: #df758c;
}

/* Show/hide navigation menu */
nav#nav-links ul {
    display: flex; /* Ensure menu is visible in default state */
}

nav#nav-links ul.open {
    display: flex;
    flex-direction: column; /* Stack links vertically */
    position: absolute;
    top: 80px; /* Adjust to align with header */
    right: 0;
    background-color: #0e162a;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

nav#nav-links ul.open li {
    margin: 10px 0;
}

/* Return to Top Button Styles */
.return-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #df758c;
    color: #fff;
    padding: 10px 15px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s, box-shadow 0.3s;
    z-index: 1000;
}

.return-to-top:hover {
    background-color: #b94d7f;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.return-to-top i {
    font-size: 16px;
}

/* Main Styles */
main {
    padding: 125px 0 25px;
}

/* Section Styles */
section {
    background-color: rgba(14, 22, 42, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 60px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Content Styles */
.content {
    display: flex;
    align-items: center;
    gap: 30px;
}


/* Enhanced Image Styles */
.enhanced {
    width: 40%;
    max-width: 630px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.enhanced:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

/* Button Container */
.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center; /* Centers the content horizontally */
    margin-top: 20px;
}

/* Content Text Alignment */
.content-left {
    flex-direction: row;
}

.content-left .text-content {
    max-width: 70%;
}

.content-left .text-content h3 {
    color: #df758c;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.content-left .text-content p {
    margin-bottom: 20px;
}

.content-left .text-content .button-container {
    margin-top: 20px;
}

.content-right {
    flex-direction: row-reverse;
}

.content-right .text-content {
    max-width: 70%;
}

.content-right .text-content h3 {
    color: #df758c;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.content-right .text-content p {
    margin-bottom: 20px;
}

.content-right .text-content .button-container {
    margin-top: 20px;
}

/* Centered Content Alignment */
.content-center {
    display: flex;
    justify-content: center; /* Horizontally center */
    align-items: center;     /* Vertically center */
    text-align: left;      /* Center text inside the container */
    flex-direction: column;  /* Stack elements vertically */
}

.content-center .text-content {
    max-width: 100%; /* Adjust as needed */
    margin: 0 auto; /* Center the text-content within the container */
}

.content-center .text-content h3 {
    color: #df758c;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.content-center .text-content p {
    margin-bottom: 20px;
}

.content-center .text-content .button-container {
    margin-top: 20px;
}



/* Social Icons Container */
.social-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.social-icon {
    font-size: 44px;
    color: #fff;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #df758c;
}
/* Custom Button Styles */
.custom-button {
    background-color: #df758c;
    color: #fff;
    border: 2px solid #df758c;
    border-radius: 5px;
    padding: 12px 24px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    margin: 10px;
    text-decoration: none;
}

.custom-button i {
    margin-right: 8px;
}


.custom-button:hover {
    background-color: #b94d7f;
    color: #fff;
    transform: scale(1.1);
}

.custom-button:active {
    background-color: #a43b6d;
    color: #fff;
}

/* Modal Menu Button */
.modal-menu-button {
    display: none; 
    background: transparent;
    border: none;
    font-size: 24px;
    color: #fff; 
    cursor: pointer;
}

.modal-menu {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 90%;
    height: 90%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay */
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .content {
        flex-direction: column;
        gap: 20px;
    }

    .content-left, .content-right {
        flex-direction: column;
    }

    .content img {
        width: 98%;
        height: auto;
        object-fit: contain; /* Ensure images are not distorted */
    }

    .content-left .text-content, .content-right .text-content {
        max-width: 100%;
    }

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

    .social-container {
        flex-direction: column;
        align-items: center;
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 columns for small screens */
        gap: 20px; /* Spacing between icons */
        justify-items: center; /* Center icons in each grid cell horizontally */
        align-items: center; /* Center icons in each grid cell vertically */
    }

    nav#nav-links ul {
        flex-direction: column;
        align-items: center;
        display: none; /* Hide the menu by default */
    }

    .header-content {
        flex-direction: column;
    }

    .header-content nav#nav-links ul {
        margin-top: 10px;
    }

    .modal-menu-button {
        display: block; /* Show on small screens */
    }
	
    .modal-menu {
        display: none; /* Hidden by default */
        position: fixed;
        top: 0;
        left: 0;
        width: 90%;
        height: 90%;
        background: rgba(0, 0, 0, 0.7); /* Dark overlay */
        z-index: 1000;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: opacity 0.3s ease;
    }

    .modal-menu #nav-links {
        background: #0e162a;
        border-radius: 10px;
        padding: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }

    .modal-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .modal-menu ul li a {
        color: #fff;
        text-decoration: none;
        font-size: 1.5rem;
        transition: color 0.3s ease;
    }

    .modal-menu ul li a:hover {
        color: #df758c;
    }

    .close-modal {
        position: absolute;
        top: 20px;
        right: 20px;
        background: #df758c;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        padding: 0;
        color: #fff;
        font-size: 24px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center; /* Center the icon */
        transition: background 0.3s ease;
    }

    .close-modal:hover {
        background: #b94d7f;
    }

    #modal-nav-links ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    #modal-nav-links ul li {
        margin-bottom: 10px;
    }

    #modal-nav-links ul li a {
        color: #fff;
        text-decoration: none;
        display: flex;
        align-items: center;
    }

    #modal-nav-links ul li a i {
        margin-right: 10px;
    }

    #modal-nav-links ul li a:hover {
        color: #df758c;
    }
}

/* Ensure consistent width and padding for containers */
.content, .text-content {
    width: 100%; /* or a fixed width if necessary */
    padding: 20px; /* Ensure consistent padding */
    box-sizing: border-box; /* Include padding in width calculation */
}

/* Styling for documentation lists */
.doc-list {
    list-style: none; /* Remove default list styling */
    padding-left: 0;
    margin: 0;
}

.doc-list li {
    position: relative; /* Ensure bullets are aligned correctly */
    padding-left: 20px; /* Space for bullets and alignment */
    margin-bottom: 10px;
    text-align: left; /* Ensure text aligns to the left */
}

/* Adjust the bullet position and line height */
.doc-list li::before {
    content: "•";
    font-size: 1.5rem;
    color: #df758c;
    position: absolute;
    left: 0; /* Adjust bullet position if needed */
    top: 50%;
    transform: translateY(-50%);
    line-height: 1.6; /* Match the line-height with the surrounding text */
}

/* Styling for code blocks */
.code-block-container {
    position: relative;
    display: block; /* Ensure it’s a block-level element */
    margin: 0 auto; /* Center the code block */
    padding: 0; /* Remove extra padding */
    overflow: hidden; /* Ensure code box does not push out */
    max-width: 100%; /* Ensure it doesn't exceed the container width */
    box-sizing: border-box; /* Include padding in the width calculation */
}

/* Adjust the width of the code block */
.code-block-container code {
    font-size: 0.85em;
    display: block;
    background-color: #1e2a47;
    border-radius: 5px;
    padding: 10px; /* Adjust padding for consistency */
    overflow-x: auto; /* Ensure horizontal scrolling if needed */
    color: #dcdcdc;
    line-height: 1.6; /* Match the line-height with the surrounding text */
    margin: 0;
    box-sizing: border-box; /* Ensure padding and border are included in the width and height */
    white-space: pre; /* Ensure code formatting is preserved */
    max-width: 100%; /* Adjust this value as needed */
}

/* Styling for copy button */
.copy-button {
    position: absolute; /* Position button inside the code block */
    right: 10px;
    top: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #dcdcdc;
    z-index: 1; /* Ensure the button is above the text */
}

/* Styling for copy message */
.copy-message {
    display: none;
    position: absolute;
    right: 50px;
    top: 10px;
    background: #4caf50;
    color: #fff;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
}

/* Show copy message on button click */
.copy-button.clicked .copy-message {
    display: block;
    animation: fadeOut 2s forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Ensure consistent styling for all list items */
.doc-list li strong {
    margin-right: 5px;
}

.doc-list li a {
    color: #df758c;
    text-decoration: none;
}

.doc-list li a:hover {
    text-decoration: underline;
}

/* General styles for the Emissions table */
.data-table {
    width: 100%; /* Default full width */
    border-collapse: separate; /* Change to separate to allow border radius */
    border-spacing: 0; /* Remove default spacing between cells */
    margin: 20px 0;
    font-size: 0.9em;
    font-family: 'Roboto', sans-serif;
    text-align: left;
    background-color: #1e2a47; /* Dark background for the table */
    color: #f8b4b4; /* Text color */
    border-radius: 10px; /* Rounded corners for the table */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Subtle shadow */
}

/* Ensure wrapper handles overflow */
.table-wrapper {
    overflow-x: auto; /* Enable horizontal scrolling */
}

/* Responsive styles for smaller screens */
@media (max-width: 600px) {
    .data-table {
        font-size: 0.8em; /* Adjust font size for smaller screens */
    }
    .data-table th, .data-table td {
        padding: 8px 5px; /* Adjust padding for smaller screens */
        white-space: nowrap; /* Prevent text wrapping */
    }
}

/* General cell styles */
.data-table th, .data-table td {
    padding: 12px 15px;
    border: 1px solid #444; /* Lighter border color */
}

/* Rounded corners for the first and last cells */
.data-table th:first-child {
    border-top-left-radius: 10px; /* Top left corner */
}
.data-table th:last-child {
    border-top-right-radius: 10px; /* Top right corner */
}
.data-table td:first-child {
    border-bottom-left-radius: 10px; /* Bottom left corner */
}
.data-table td:last-child {
    border-bottom-right-radius: 10px; /* Bottom right corner */
}

.data-table th {
    background: linear-gradient(135deg, #2c3e50, #1e2a47); /* Gradient header background */
    color: #fff; /* White text color for headers */
    text-transform: uppercase; /* Uppercase headers */
    font-weight: 600; /* Slightly bolder font weight */
}

.data-table tbody tr:nth-child(even) {
    background-color: #0e162a; /* Slightly lighter dark background for even rows */
}

.data-table tbody tr:nth-child(odd) {
    background-color: #1e2a47; /* Dark background for odd rows */
}

.data-table tbody tr:hover {
    background-color: #34495e; /* Highlight color on row hover */
    transition: background-color 0.3s ease; /* Smooth transition */
}



/* General rule for wrapping long URLs or text */
.custom-link {
    word-wrap: break-word; /* Ensures URLs break properly */
    overflow-wrap: break-word; /* Ensures wrapping if necessary */
    word-break: break-all; /* Breaks long words or URLs at any character */
}

/* Mobile-specific styles to ensure better responsiveness */
@media (max-width: 768px) {
    .custom-link {
        word-wrap: break-word; /* Ensures URLs break properly */
        overflow-wrap: break-word; /* Ensures wrapping if necessary */
        word-break: break-all; /* Breaks long words or URLs at any character */
    }
}
/* Wagpaper Team Cards */
.team-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    margin-top: 20px;
}

.team-card {
    background-color: rgba(32, 64, 101, 0.3); /* Semi-transparent background */
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 280px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.team-card h3 {
    margin-bottom: 10px;
    font-size: 1.5em;
    color: #78abc5; /* Your site's primary color */
}

.team-card p {
    margin-bottom: 5px;
    font-size: 1em;
}

.team-card a {
    color: #58a159; /* Your site's secondary color */
    text-decoration: none;
}

.team-card a:hover {
    text-decoration: underline;
}

/* General styling for the Dev progress section */
.progress-section {
    margin-top: 20px;
    display: flex; /* Use Flexbox */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
}

/* Project styling */
.project {
    margin-bottom: 15px;
    text-align: left; /* Keep text left-aligned */
    width: 100%; /* Ensure it takes the full width to align correctly */
    max-width: 600px; /* Optional: Limit max width for better readability */
}

/* Styling for the phases */
.phases {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Phase styling */
.phase {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px; /* Base font size */
    background-color: #f0f0f0; /* Light gray background for non-current phases */
    color: #333; /* Darker text color for better readability */
}

/* Styling for the current active phase */
.current {
    background-color: #df758c; /* Highlight color for current phase */
    color: white;
    font-weight: bold;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
    .project {
        max-width: 100%; /* Remove max-width to allow full width */
        font-size: 11px; /* Reduce font size for better fitting */
        padding: 0 10px; /* Add padding for spacing */
    }

    .phase {
        font-size: 11px; /* Adjust font size for phases */
        padding: 4px 8px; /* Reduce padding for smaller screens */
    }
}

.big-waglayla-icon {
  position: relative;
  transform: rotateX(0deg); /* Initial rotation */
  animation-name: rotate-icon;
  animation-duration: 12s; /* Speed of the rotation */
  animation-iteration-count: infinite; /* Repeat indefinitely */
  animation-direction: alternate; /* Alternate direction on each iteration */
}
/* The animation code */
@keyframes rotate-icon {
  from {
    transform: rotate(20deg)
  }

  to {
    transform: rotate(-20deg)
  }
}
