/* General Styles */
html {
    scroll-padding-top: 100px; /* Add padding for fixed header */
    scroll-behavior: smooth; /* Smooth scrolling */
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #101010;
    overflow-x: hidden;
}

/* Header Styles */
header {
    background: rgba(139, 69, 19, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #5686e6;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(101, 67, 33, 0.2);
    border-bottom: 1px solid rgba(165, 112, 42, 0.2);
    height: 60px;
    transition: all 0.3s ease-in-out;
}

/* Header scroll effect */
header.scrolled {
    background: rgba(139, 69, 19, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(101, 67, 33, 0.3);
}

/* Menu Button */
.menu-btn {
    display: none; /* Hidden by default, shown in media query */
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 102;
    position: relative;
}

.menu-btn__burger {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 5px;
    transition: all .3s ease-in-out;
    position: relative;
}

.menu-btn__burger::before,
.menu-btn__burger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 5px;
    transition: all .3s ease-in-out;
}

.menu-btn__burger::before {
    transform: translateY(-8px);
}

.menu-btn__burger::after {
    transform: translateY(8px);
}

/* Menu Button Animation */
.menu-btn.active .menu-btn__burger {
    background: transparent;
}

.menu-btn.active .menu-btn__burger::before {
    transform: rotate(45deg) translate(0, 0);
}

.menu-btn.active .menu-btn__burger::after {
    transform: rotate(-45deg) translate(0, 0);
}

/* Logo Section */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.logo-text {
    font-size: 1.2em;
    font-weight: bold;
    white-space: nowrap;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Navigation */
nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #ffd700;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 4px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

nav ul li a:hover {
    color: #ffffff;
    background: rgba(165, 112, 42, 0.2);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    width: 280px;
    background: #1a1a1a;
    padding: 60px 20px 20px;
    transition: all 0.3s ease-in-out;
    z-index: 101;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
}

.close-sidebar {
    color: #fff;
    font-size: 30px;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    z-index: 102;
}

.sidebar nav {
    display: block;
}

.sidebar nav ul {
    flex-direction: column;
    gap: 10px;
}

.sidebar nav ul li {
    margin: 0;
}

.sidebar nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    display: block;
    padding: 12px 15px;
    border-radius: 5px;
    transition: all 0.3s;
}

.sidebar nav ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #5686e6;
}

/* Overlay Background */
.overlay-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 100;
}

.overlay-bg.active {
    opacity: 1;
    visibility: visible;
}

/* Section Styles */
section {
    padding-top: 80px;
    margin-top: -80px;
    margin-bottom: 40px;
    border-radius: 0;
    overflow: hidden;
}

section:first-of-type {
    margin-top: 0;
}

/* Main Content Adjustment */
main {
    width: 90%;
    max-width: 1200px;
    margin: 80px auto 20px;
    background: #fff;
    padding: 20px;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    z-index: 1;
}

/* Update section headings */
section h2 {
    margin-bottom: 30px;
    padding-top: 20px;
}

/* Profile Section */
.profile {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.profile img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto;
}

.description {
    flex: 1;
    min-width: 280px;
}

/* About Us Section */
.about-us {
    text-align: center;
}

/* Reverse Flex Styles */
.reverse {
    flex-direction: row-reverse;
}

/* Headings */
h2 {
    color: #564343;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

h3 {
    color: #555;
}

/* Expertise Section */
#expertise {
    text-align: center;
    padding: 20px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
}

.expertise-item {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 200px;
}

.expertise-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(139, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 18px;
    font-weight: bold;
    border-radius: 0 0 5px 5px;
}

/* Contact Form */
form {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 20px;
    background: #fff;
    border-radius: 0;
}

form label {
    margin: 10px 0 5px;
    color: #333;
    font-weight: bold;
}

form input,
form textarea {
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

form textarea {
    min-height: 120px;
    resize: vertical;
}

form button {
    padding: 12px 24px;
    background: #8B4513;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    align-self: flex-end;
    transition: background 0.3s ease;
}

form button:hover {
    background: #A0522D;
}

/* Contact Section */
#contact {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    margin: 0;
    background: #fff;
    border-radius: 0;
}

#contact h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #8B4513;
    color: #8B4513;
}

/* Success Message */
.success-message {
    background: #4CAF50;
    color: white;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    text-align: center;
    display: none;
}

/* Footer */
.footer {
    display: flex; /* Use flexbox layout */
    justify-content: space-between; /* Space between elements */
    align-items: center; /* Align items vertically */
    padding: 10px 20px; /* Add some padding */
    background-color: #f4f4f7; /* Light background for the footer */
    color: white; /* Change text color to white */
}

.footer-content, .footer-dev {
    flex: 1; /* Allow both sections to grow equally */
    color: white; /* Change text color to white */
}

.footer-dev {
    text-align: right; /* Align the lower text to the right */
    color: white; /* Ensure text in this section is white */
}

/* Disclaimer Section */
#disclaimer {
    background-color: rgba(255, 255, 255, 0.8);
    color: #000;
    padding: 20px;
    border-radius: 8px;
    margin: 20px auto;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

#disclaimer h2 {
    color: #000;
}

#disclaimer button {
    background-color: #333;
    color: #fff;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

#disclaimer button:hover {
    background-color: #555;
}

/* Disclaimer Container as a Modal */
.disclaimer-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none; /* Hidden by default */
}

.disclaimer-container h2 {
    text-align: center;
}

.disclaimer-container p {
    text-align: justify;
}

/* Responsive Media Queries */
@media screen and (max-width: 768px) {
    .menu-btn {
        display: flex; /* Show menu button on mobile */
    }

    header {
        padding: 10px 15px;
    }

    header nav {
        display: none; /* Hide main navigation on mobile */
    }

    .logo-container {
        margin: 0;
        flex-grow: 1;
        justify-content: center;
    }

    .logo-text {
        font-size: 1em;
    }

    main {
        width: 95%;
        padding: 15px;
        margin-top: 70px; /* Adjusted for smaller header */
    }
}

@media screen and (max-width: 480px) {
    .logo {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        font-size: 0.9em;
    }

    .sidebar {
        width: 250px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    margin: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

@media screen and (max-width: 380px) {
    .modal-content {
        padding: 15px;
        margin: 10px;
    }

    .close-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}
