/*----------------------------------------------------------------------Variables----------------------------------------------------------------*/
:root {
    /* Colors */
    --primary-color: #1f4f8e;
    --secondary-color: #05d594;
    --accent-color: #a4d1ed;
    --text-color: #000000;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);

    /* Navigation colors */
    --menu-text-light: #000000; /* Text color on light backgrounds */
    --menu-text-dark: #ffffff;  /* Text color on dark backgrounds */
    --menu-highlight: #3498db;  /* Highlight color (blue) for hover state */

    /* Sizing */
    --header-height: 80px;
    --footer-height: 80px;
    --content-max-width: 1200px;

    /* Transitions */
    --transition-speed: 0.3s;
}

/*----------------------------------------------------------------------General----------------------------------------------------------------*/
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--white);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
}

html {
    width: 100%;
    height: 100%;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    text-align: center;
    margin-bottom: 20px;
    padding: 0 20px;
}

p {
    line-height: 1.6;
    margin: 0 0 20px;
    color: var(--text-color);
    padding: 0 20px;
}

/*----------------------------------------------------------------------Scrollbar----------------------------------------------------------------*/
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background-color: #95ffff;
    border-radius: 20px;
    border: 3px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #1597d3;
}

/* Scroll Offset for Anchor Links */
:target::before {
    content: "";
    display: block;
    height: 150px;
    margin-top: -150px;
    visibility: hidden;
}

/*----------------------------------------------------------------------Container----------------------------------------------------------------*/
.container {
    width: 90%;
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/*----------------------------------------------------------------------Header and Navigation-------------------------------------------------------------------*/
header {
    background: none;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: none;
    backdrop-filter: none; /* Remove blur effect for true transparency */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    height: auto;
    background: none;
    box-shadow: none;
    z-index: 1000;
}

/* Logo */
.logo-container {
    flex: 0 0 auto;
    background: none;
    position: relative;
    z-index: 1001; /* Ensure logo is above other elements */
}

.logo-container img {
    max-height: 130px;
    width: auto;
}

/* Navigation Container */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    margin: 0 30px;
    /* background: none; */ /* Removed default background none */
    padding-top: 10px;
    box-shadow: none;
    z-index: 1000;
}

/* Main Navigation Menu - Basic Styling */
.nav-menu {
    list-style: none;
    padding: 0;
    display: flex;
    margin: 0;
    align-items: center;
    background: none;
}

.nav-menu li {
    margin: 0 14px;
    position: relative;
}

/* Menu items styling */
.nav-menu li a {
    color: var(--menu-text-light);
    text-decoration: none;
    font-size: 1.5em;
    font-weight: 600;
    padding: 8px 2px;
    transition: color var(--transition-speed);
    mix-blend-mode: normal;
}

.dark-background .nav-menu li a {
    color: var(--menu-text-dark);
}

.project-slide .nav-menu li a {
    color: var(--menu-text-dark);
}

/* Hover state for menu items */
.nav-menu li a:hover,
.nav-menu li a:active,
.dark-background .nav-menu li a:hover,
.dark-background .nav-menu li a:active,
.project-slide .nav-menu li a:hover,
.project-slide .nav-menu li a:active {
    color: var(--menu-highlight);
}

/* Dropdown menus */
.dropdown-menu li a,
.dropdown-submenu-menu li a {
    color: var(--text-color);
    font-size: 1.2em;
}

.dropdown-menu li a:hover,
.dropdown-submenu-menu li a:hover {
    color: var(--menu-highlight);
}

/* Dropdown Menus */
.dropdown-menu,
.dropdown-submenu-menu {
    display: none;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 8px var(--shadow-color);
    z-index: 1000;
    padding: 10px 0;
    white-space: nowrap;
    backdrop-filter: blur(3px);
}

.dropdown:hover .dropdown-menu,
.dropdown-submenu:hover .dropdown-submenu-menu {
    display: block;
}

.dropdown-menu li,
.dropdown-submenu-menu li {
    position: relative;
    padding: 8px 20px;
}

.dropdown-submenu-menu {
    margin-top: 10px;
}

.dropdown-submenu:hover .dropdown-submenu-menu {
    display: block;
    left: 100%;
    top: 0;
}

/* Search Bar */
.search-container {
    display: flex;
    align-items: center;
    margin-right: 20px;
    background: none;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 400px;
}

.search-wrapper form {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.search-bar {
    padding: 8px 35px 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 0.8);
    width: 200px;
    font-size: 0.9rem;
    transition: box-shadow var(--transition-speed);
}

.search-bar:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(31, 79, 142, 0.4);
}

button.search-icon {
    background: transparent;
    border: none;
    position: absolute;
    right: 10px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    cursor: pointer;
}

/* Language Selector */
.language-selector {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    background: none;
}

.language-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin: 0 5px;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.language-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.language-option.selected {
    box-shadow: 0 0 8px var(--secondary-color);
    transform: scale(1.1);
}

/* Mobile Menu Toggle */
.menu-toggler {
    display: none;
    width: 50px;
    height: 50px;
    position: fixed;
    right: 30px;
    bottom: 30px;
    cursor: pointer;
    z-index: 1100;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 80%;
    justify-content: center;
    align-items: center;
}

.menu-toggler__line {
    width: 40%;
    height: 5px;
    background: rgba(164, 209, 237, 0.9);
    position: absolute;
    left: 30%;
    right: 30%;
    transition: all 0.25s ease-out;
}

.menu-toggler__line:nth-child(1) {
    top: 16px;
}

.menu-toggler__line:nth-child(2) {
    top: 24px;
}

.menu-toggler__line:nth-child(3) {
    top: 32px;
}

.input-toggler {
    position: absolute;
    left: -100%;
}

.input-toggler:checked ~ .menu-toggler .menu-toggler__line {
    background: var(--secondary-color);
}

.input-toggler:checked ~ .menu-toggler .menu-toggler__line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.input-toggler:checked ~ .menu-toggler .menu-toggler__line:nth-child(2) {
    opacity: 0;
}

.input-toggler:checked ~ .menu-toggler .menu-toggler__line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/*----------------------------------------------------------------------Main Content-------------------------------------------------------------------*/
.main-content {
    padding: 100px 20px 100px 20px;
    box-sizing: border-box;
    z-index: 998;
}

.card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px var(--shadow-color);
    border-radius: 8px;
    margin: 20px 0;
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    padding: 20px;
    box-sizing: border-box;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-header {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 20px;
    font-size: 1.5em;
    text-align: center;
    box-sizing: border-box;
}

.card-body {
    padding: 20px;
    color: var(--text-color);
    box-sizing: border-box;
}

/*----------------------------------------------------------------------Footer----------------------------------------------------------------*/
footer {
    background-color: var(--white);
    color: var(--white);
    text-align: center;
    padding: 40px 20px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

footer p {
    margin: 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.footer-contact {
    color: var(--white);
}

.footer-logo img {
    max-height: 50px;
}

/*----------------------------------------------------------------------Loader---------------------------------------------------------------------*/
.loader {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.loader video {
    width: 320px;
    height: 320px;
    pointer-events: none !important;
    object-fit: contain;
    opacity: 1 !important;
    border: none;
    background: transparent;
    -webkit-user-select: none !important;
    user-select: none !important;
}

/* Apply similar styles to the new image loader */
.loader img#loader-img {
    width: 320px;
    height: 320px;
    object-fit: contain;
    opacity: 1 !important;
    border: none;
    background: transparent;
    -webkit-user-select: none !important;
    user-select: none !important;
    pointer-events: none !important; /* Added from original video style */
}

.loader img {
    width: 100px; /* Adjust size as needed */
    height: auto;
}

.loader video::-webkit-media-controls,
.loader video::-webkit-media-controls-panel,
.loader video::-webkit-media-controls-play-button,
.loader video::-webkit-media-controls-start-playback-button,
.loader video::-webkit-media-controls-overlay-play-button,
.loader video::-webkit-media-controls-enclosure,
.loader video::-webkit-media-controls-container,
.loader video::-webkit-media-controls-timeline {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* Hide all video controls */
.loader video::-webkit-media-controls {
    display: none !important;
}
.loader video::-moz-media-controls {
    display: none !important;
}
.loader video::media-controls { /* Standard */
    display: none !important;
}

/* Specific rule for WebKit (already present but kept for clarity) */
*::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
}

/*----------------------------------------------------------------------Animations---------------------------------------------------------------------*/
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade {
    from { opacity: .4 }
    to { opacity: 1 }
}

/*----------------------------------------------------------------------Responsive---------------------------------------------------------------------*/
@media (max-width: 992px) {
    .nav-container {
        margin: 0 10px;
    }

    .search-container {
        margin-right: 10px;
    }
}

@media (max-width: 768px) {
    .menu-toggler {
        display: flex;
    }

    .nav-container {
        display: none;
        flex-direction: column;
        position: fixed !important;
        top: var(--header-height) !important;
        left: 0;
        width: 100%;
        background-color: rgba(164, 209, 237, 0.95);
        backdrop-filter: blur(5px);
        padding: 0 !important; /* No padding */
        margin: 0;
        z-index: 1060;
        height: calc(100vh - var(--header-height));
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
        justify-content: flex-start !important; /* Force items to start from top */
    }

    .search-container {
        width: 100%;
        margin-bottom: 25px;
        order: 1;
        display: flex;
        justify-content: center; /* Center the search box */
        margin-bottom: 15px !important; /* Maintain spacing after search */
        margin-top: 10px !important; /* Add space at top */
    }

    .search-wrapper {
        width: 80%; /* Limit width for better appearance */
        max-width: 300px;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        order: 2;
        align-items: stretch; /* Changed from flex-start to stretch */
        list-style: none; /* Ensure no list bullets */
        padding: 0; /* Remove default list padding */
        margin: 0; /* Remove default list margin */
        margin-top: 0 !important; /* Remove any top margin */
    }

    .nav-menu li {
        margin: 8px 0;
        width: 100%;
        text-align: left; /* Ensure text alignment */
        /* padding-left: 15px; */ /* Removed left padding */
    }

    .dropdown-menu,
    .dropdown-submenu-menu {
        position: static;
        width: 100%;
        text-align: left; /* Left align dropdown items */
    }

    /* Style mobile menu links */
    .nav-menu li a {
        color: var(--primary-color);
        font-size: 1.8em;
        display: block;
        padding: 15px 0; /* Keep vertical padding */
        /* padding-left: 10px; */ /* Removed left padding */
        text-align: left;
    }

    /* Adjust dropdown padding for better hierarchy - Use margin instead of padding for indentation */
    .dropdown-menu li {
        /* padding-left: 20px; */ /* Removed left padding */
        margin-left: 10px; /* Use margin for indentation */
    }

    .dropdown-submenu-menu li {
        /* padding-left: 15px; */ /* Removed left padding */
        margin-left: 20px; /* Use margin for indentation */
    }

    .input-toggler:checked ~ .nav-container {
        display: flex;
    }

    .search-container {
        width: 100%;
        margin-bottom: 15px;
        order: 1;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        order: 2;
    }

    .nav-menu li {
        margin: 10px 0;
        width: 100%;
    }

    .dropdown-menu,
    .dropdown-submenu-menu {
        position: static;
        width: 100%;
        text-align: center; /* Center mobile menu items */
    }

    /* Style mobile menu links */
    .nav-menu li a {
        color: var(--primary-color); /* Use primary color text on light blue background */
        font-size: 1.8em; /* Slightly larger font for mobile */
        display: block; /* Make links take full width */
        padding: 15px 0; /* Increase padding */
    }

    .nav-menu li a:hover,
    .nav-menu li a:active {
        color: var(--secondary-color); /* Highlight color on hover/active */
    }

    /* Adjust dropdowns for mobile */
    .dropdown-menu,
    .dropdown-submenu-menu {
        position: static;
        width: 100%;
        background-color: transparent; /* Remove background */
        box-shadow: none;
        backdrop-filter: none;
        padding: 0;
        margin-top: 10px;
    }

    .dropdown-menu li,
    .dropdown-submenu-menu li {
        padding: 10px 0;
    }

    .dropdown-menu li a,
    .dropdown-submenu-menu li a {
        color: var(--primary-color); /* Darker color for dropdown items */
        font-size: 1.5em;
    }

    .dropdown-menu li a:hover,
    .dropdown-submenu-menu li a:hover {
        color: var(--secondary-color);
    }

    .dropdown-submenu:hover .dropdown-submenu-menu {
        left: 0;
    }

    /* Ensure logo is visible and sized appropriately */
    .logo-container img {
        max-height: 80px; /* Adjust logo size for mobile */
    }

    /* Adjust header container padding */
    .header-container {
        padding: 10px 15px;
    }

    .search-container {
        width: 100%; /* Use full width of container */
        display: flex;
        justify-content: center; /* Center the search box */
        margin: 15px 0; /* Add vertical margin */
    }

    .search-wrapper {
        width: 90%; /* Increase width from 80% to 90% */
        max-width: 350px; /* Increase max-width from 300px to 350px */
    }

    .search-bar {
        width: 100%; /* Ensure search bar fills the wrapper */
    }

    .nav-container .search-container {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 20px auto; /* Changed to auto for better horizontal centering */
        padding: 0;
        box-sizing: border-box;
    }

    .nav-container .search-container .search-wrapper {
        width: 90%;
        max-width: 450px; /* Increased maximum width */
        margin: 0 auto; /* Center the wrapper */
    }
    
    .nav-container .search-container .search-wrapper .search-bar {
        width: 100%;
        font-size: 1rem; /* Slightly larger font for better readability */
    }

    /* Mobile Nav Container */
    .nav-container {
        display: none;
        flex-direction: column;
        position: fixed !important;
        top: var(--header-height) !important;
        left: 0;
        width: 100%;
        background-color: rgba(164, 209, 237, 0.95);
        backdrop-filter: blur(5px);
        padding: 0 !important; /* No padding */
        margin: 0;
        z-index: 1060;
        height: calc(100vh - var(--header-height));
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    /* Search container positioning */
    .nav-container .search-container {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 !important; /* No margin */
        padding: 8px 0; /* Just a little padding */
        box-sizing: border-box;
        order: 1;
    }

    /* Nav menu positioning - directly below search container */
    .nav-menu {
        flex-direction: column;
        width: 100%;
        order: 2;
        align-items: stretch;
        list-style: none;
        padding: 0;
        margin: 0 !important;
    }

    /* Adjust spacing between nav menu items */
    .nav-menu > li {
        margin: 0 !important;
        width: 100%;
        text-align: left;
        padding-left: 20px;
    }

    /* Style mobile menu links - adjust padding */
    .nav-menu li a {
        color: var(--primary-color);
        font-size: 1.8em;
        display: block;
        padding: 8px 0; /* Reduced from 15px to 8px */
        text-align: left;
    }

    /* Dropdown items - maintain left padding */
    .dropdown-menu li {
        margin-left: 20px; /* Increased indentation */
        padding-left: 0; /* Reset padding to avoid double indentation */
    }

    .dropdown-submenu-menu li {
        margin-left: 30px; /* Increased indentation */
        padding-left: 0; /* Reset padding to avoid double indentation */
    }

    /* Mobile Nav Container - using a single rule set for nav-container */
    .nav-container {
        display: none;
        flex-direction: column;
        position: fixed !important;
        top: var(--header-height) !important;
        left: 0;
        width: 100%;
        background-color: rgba(164, 209, 237, 0.95);
        backdrop-filter: blur(5px);
        padding: 0 !important; /* No padding */
        margin: 0;
        z-index: 1060;
        height: calc(100vh - var(--header-height));
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    /* Search container positioning - fixed at top with minimal spacing */
    .nav-container .search-container {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 !important; /* No margin */
        padding: 8px 0; /* Just a little padding */
        box-sizing: border-box;
        order: 1;
    }

    .nav-container .search-container .search-wrapper {
        width: 95%; /* Increased width */
        max-width: 450px;
        margin: 0 auto;
    }
    
    .nav-container .search-container .search-wrapper .search-bar {
        width: 100%;
        font-size: 1rem;
    }

    /* Nav menu positioned directly below search */
    .nav-menu {
        flex-direction: column;
        width: 100%;
        order: 2;
        align-items: stretch; /* Default, but explicit */
        list-style: none;
        padding: 0;
        margin: 0 !important;
    }

    /* Reduced spacing between menu items */
    .nav-menu > li {
        margin: 0 !important;
        width: 100%;
        text-align: left;
        padding-left: 20px; /* Left padding for indentation */
        border-bottom: 1px solid rgba(31, 79, 142, 0.1); /* Optional: separator */
    }
    .nav-menu > li:last-child {
        border-bottom: none; /* Optional: remove border from last item */
    }


    /* Menu link styling */
    .nav-menu li a {
        color: var(--primary-color);
        font-size: 1.8em;
        display: block;
        padding: 8px 0; /* Adjusted padding */
        text-align: left;
        text-decoration: none; /* Ensure no underline */
        transition: background-color 0.2s ease; /* Add hover effect */
    }
    .nav-menu li a:hover {
        background-color: rgba(255, 255, 255, 0.2); /* Subtle hover */
        color: var(--secondary-color); /* Keep hover color consistent */
    }


    /* Adjust dropdowns for mobile - Styling Update */
    .dropdown-menu,
    .dropdown-submenu-menu {
        position: static; /* Flow within the parent li */
        display: none; /* Initially hidden, shown by JS 'active' class or default rule below */
        background-color: rgba(255, 255, 255, 0.9); /* White background */
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); /* Softer inner shadow */
        border-radius: 4px;
        margin: 5px 0; /* Only vertical margin */
        /* Remove left margin, padding will handle spacing */
        padding: 5px 0; /* Only vertical padding on the container */
        width: 90%; /* Take full width of parent li (respecting parent padding) */
        max-width: 90%; /* Ensure it doesn't exceed parent */
        box-sizing: border-box;
    }

    /* Default Expansion for Projects Dropdown on Mobile */
    /* Selects the direct child ul.dropdown-menu of the li.dropdown which is a direct child of .nav-menu */
    .input-toggler:checked ~ .nav-container .nav-menu > li.dropdown > ul.dropdown-menu {
        display: block; /* Show the main projects dropdown by default when menu is open */
    }
    /* Keep sub-submenus hidden by default unless toggled by JS */
     .input-toggler:checked ~ .nav-container .nav-menu > li.dropdown > ul.dropdown-menu .dropdown-submenu-menu {
        display: none;
    }
     .input-toggler:checked ~ .nav-container .nav-menu > li.dropdown > ul.dropdown-menu .dropdown-submenu.active > .dropdown-submenu-menu {
        display: block; /* Show active sub-submenu */
    }


    .dropdown-menu li,
    .dropdown-submenu-menu li {
        padding: 0;
        margin: 0;
        border: none;
        list-style: none;
    }

    .dropdown-menu li a,
    .dropdown-submenu-menu li a {
        color: var(--primary-color);
        font-size: 1.4em;
        padding: 8px 15px; /* Consistent vertical and horizontal padding */
        display: block;
        white-space: normal;
        line-height: 1.3;
        text-decoration: none;
        transition: background-color 0.2s ease, color 0.2s ease;
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
    }

    /* Adjust sub-submenu link padding for indentation */
    .dropdown-submenu-menu {
         margin: 5px 0; /* Add vertical margin back */
         /* No left margin needed, padding handles it */
    }
    .dropdown-submenu-menu li a {
         font-size: 1.3em;
         padding-left: 30px; /* Increase left padding for deeper indentation */
    }


    .dropdown-menu li a:hover,
    .dropdown-submenu-menu li a:hover {
        color: var(--secondary-color);
        background-color: rgba(31, 79, 142, 0.1);
    }

    /* Make dropdowns visible when parent is active (JS adds 'active' class) */
    /* This rule is still needed for JS-driven toggling of submenus */
    .dropdown.active > .dropdown-menu, /* Needed if we remove default display rule */
    .dropdown-submenu.active > .dropdown-submenu-menu {
        display: block;
    }

    /* Remove the duplicate/conflicting width rules from previous attempt */
    /* .dropdown-menu, .dropdown-submenu-menu { width: 90%; ... } */
    /* .dropdown-submenu-menu { margin-left: 10px; ... } */

    /* Add these styles to center the about page content on mobile */
    .about-wrapper {
        max-width: 100%;
        padding-top: calc(var(--header-height) + 20px);
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    #about {
        max-width: 100%;
        padding: 15px 0;
    }

    #about h1 {
        font-size: 2em;
        margin-bottom: 20px;
        padding: 0 10px;
        width: 100%;
    }

    #about p {
        width: 100%;
        text-align: center;
        padding: 0 5px;
        margin-bottom: 15px;
    }
}

/* Add solid background to header/navigation on desktop for all pages except projects page */
@media (min-width: 769px) {
    /* Solid header background for all pages */
    body:not(.projects-page) header,
    body:not(.projects-page) .header-container {
        background-color: rgba(255, 255, 255, 0.95) !important; 
        backdrop-filter: blur(5px) !important;
    }
    
    /* Ensure content doesn't overlap with the header */
    body:not(.projects-page) main {
        padding-top: var(--header-height);
    }
}

@media (max-width: 480px) {
    /* Further adjustments for very small screens */
    h1 { font-size: 1.8em; }
    h2 { font-size: 1.5em; }
    p { font-size: 0.9em; padding: 0 10px; }

    .container {
        width: 95%;
        padding: 0 10px;
    }

    .logo-container img {
        max-height: 60px; /* Smaller logo for smallest screens */
    }

    .menu-toggler {
        width: 45px;
        height: 45px;
        right: 15px;
        bottom: 15px;
    }

     .menu-toggler__line {
        height: 4px;
    }

    .menu-toggler__line:nth-child(1) {
        top: 13px;
    }

    .menu-toggler__line:nth-child(2) {
        top: 20px;
    }

    .menu-toggler__line:nth-child(3) {
        top: 27px;
    }

    .input-toggler:checked ~ .menu-toggler .menu-toggler__line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .input-toggler:checked ~ .menu-toggler .menu-toggler__line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .search-bar {
        width: 150px; /* Adjust search bar size */
        font-size: 0.8rem;
    }

    .nav-menu li a {
        font-size: 1.6em; /* Adjust font size */
    }

    .dropdown-menu li a,
    .dropdown-submenu-menu li a {
        font-size: 1.3em;
    }

    .contact-container {
        flex-direction: column;
    }

    .footer-container {
        flex-direction: column;
        gap: 15px;
    }

    .about-wrapper {
        padding-top: calc(var(--header-height) + 10px);
    }

    #about h1 {
        font-size: 1.7em;
    }
}

/* Add this to about.css */
.about-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: calc(var(--header-height) + 20px);
    width: 100%;
    box-sizing: border-box;
}

#about {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

#about h1 {
    margin-top: 0;
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 30px;
}

#about p {
    text-align: center;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
}
