/* Font definitions */
@font-face {
    font-family: 'Akwe Pro';
    src: url('../fonts/AkwePro-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Akwe Pro';
    src: url('../fonts/AkwePro-Bold.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Common base styles */
body {
    font-family: 'Akwe Pro', sans-serif;
    font-weight: 200;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

/* Background container */
.background-container {
    background-image: url('../images/services-background.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh; /* Ensure full viewport height */
    width: 100%; /* Full width */
    position: relative; /* Add positioning context */
    overflow: hidden; /* Prevent any potential overflow */
    margin: 0;
    padding: 40px 0;
}

/* Add media query for mobile devices */
@media (max-width: 768px) {
    .background-container {
        background-attachment: scroll; /* Change from fixed to scroll on mobile */
        background-position: center top; /* Position from top */
        min-height: 100%;
    }
}

/* Ensure the body and html are set up correctly */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
}

/* Common headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Akwe Pro', sans-serif;
    font-weight: 500;
}

/* Common utility classes */
.medium-text {
    font-weight: 500;
}

/* Scrollbar styles */
html {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Consistent Navbar Styles */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 60px;
    box-sizing: border-box;
}

/* Make navbar visible by default for service and blog pages */
.blog-page .nav-header,
.service-page .nav-header {
    opacity: 1 !important;
    visibility: visible !important;
}

.nav-logo {
    width: 100px;
    height: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #f4b8d9;
}

.nav-links a.active {
    color: #f4b8d9;
}

/* Mobile menu button */
.menu-button {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.dropdown-trigger::after {
    content: '▼';
    font-size: 0.7em;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-trigger::after {
    transform: rotate(180deg);
}

.dropdown:hover .dropdown-trigger {
    color: #f4b8d9;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(0, 0, 0, 0.9);
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
    padding: 10px 0;
    margin-top: 5px;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.95em;
    text-align: left;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f4b8d9;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .nav-header {
        padding: 8px 20px;
        height: 50px;
    }
    
    .nav-logo {
        width: 80px;
    }

    .menu-button {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        flex-direction: column;
        top: 50px;
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 0.9);
        padding: 20px 0;
        gap: 15px;
        height: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease, visibility 0.5s ease;
        visibility: hidden;
        z-index: 999;
    }
    
    .nav-links.active {
        max-height: 100vh;
        visibility: visible;
        overflow-y: auto;
        padding-bottom: 50px;
    }
    
    .dropdown {
        width: 100%;
        text-align: center;
    }
    
    .dropdown-content {
        position: static;
        width: 100%;
        max-height: 0;
        padding: 0;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.5);
        overflow: hidden;
        transition: max-height 0.5s ease;
        transform: none;
        margin-top: 0;
    }
    
    .dropdown.active .dropdown-content {
        max-height: 400px;
        opacity: 1;
        visibility: visible;
    }
}