@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Poppins:wght@300;400;600&display=swap');

:root {
    --background-color: #292929;
    --primary-color: #e6e236;
    --accent-color: #b09a18;
    --light-accent-color: #ffffc8;
    --transparent-dark: rgba(41, 41, 41, 0.8);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--background-color);
    color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

#main-header {
    width: 100%;
    height: 80px;
    background-color: var(--accent-color);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#main-header .header-content {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 60px;
    width: auto;
    transition: all 0.3s ease-in-out;
}

#main-header.scrolled {
    height: 60px;
    background-color: var(--transparent-dark);
}

#main-header.scrolled .logo {
    height: 40px;
}

#main-nav {
    height: 100%;
}

#main-nav ul {
    height: 100%;
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    list-style-type: none;
    height: 100%;
}

#main-nav ul li {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

#main-nav ul li a {
    display: flex;
    align-items: center;
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: var(--light-accent-color);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease-in-out;
    font-size: 16px;
}

#main-nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    z-index: 1;
    margin-top: 80px;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.slide-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 80%;
}

.slide-content h2 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

.slide-content p {
    font-size: 1.2em;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    box-sizing: border-box;
}

.slider-controls button {
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.slider-controls button:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.slider-controls button:focus {
    outline: none;
}

.content-container {
    margin-top: 20px;
}

main {
    flex: 1;
    padding: 20px 0;
}

section {
    margin-bottom: 40px;
    background-color: var(--light-accent-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

h2 {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.service-card, .project-card {
    background-color: var(--accent-color);
    color: var(--light-accent-color);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card:hover, .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

footer {
    background-color: var(--accent-color);
    color: var(--light-accent-color);
    text-align: center;
    padding: 1rem;
    margin-top: auto;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal-content {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: 15px;
    width: 80%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.modal.show {
    opacity: 1;
}

.modal.show .modal-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.close {
    color: var(--primary-color);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover,
.close:focus {
    color: var(--accent-color);
    text-decoration: none;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contact-form label {
    color: var(--accent-color);
    font-weight: bold;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    font-size: 16px;
    background-color: var(--light-accent-color);
    color: var(--background-color);
}

#contact-form button,
#open-contact-form {
    background-color: var(--accent-color);
    color: var(--light-accent-color);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

#contact-form button:hover,
#open-contact-form:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#menu-toggle {
    display: none;
    background-color: transparent;
    border: none;
    color: var(--light-accent-color);
    font-size: 24px;
    cursor: pointer;
    padding: 10px 15px;
    transition: all 0.3s ease-in-out;
}

#menu-toggle:hover {
    color: var(--primary-color);
}

.dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1001;
}

.dark-mode-toggle__checkbox {
    opacity: 0;
    position: absolute;
}

.dark-mode-toggle__label {
    background-color: #111;
    border-radius: 50px;
    cursor: pointer;
    display: inline-block;
    position: relative;
    height: 26px;
    width: 50px;
    transform: scale(1.5);
}

.dark-mode-toggle__label .dark-mode-toggle__slider {
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    height: 22px;
    width: 22px;
    transform: translateX(0px);
    transition: transform 0.2s linear;
}

.dark-mode-toggle__checkbox:checked + .dark-mode-toggle__label .dark-mode-toggle__slider {
    transform: translateX(24px);
}

.dark-mode-toggle__label::after,
.dark-mode-toggle__label::before {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    transition: opacity 0.2s linear;
}

.dark-mode-toggle__label::after {
    content: "☀️";
    right: 5px;
}

.dark-mode-toggle__label::before {
    content: "🌙";
    left: 5px;
    opacity: 0;
}

.dark-mode-toggle__checkbox:checked + .dark-mode-toggle__label::after {
    opacity: 0;
}

.dark-mode-toggle__checkbox:checked + .dark-mode-toggle__label::before {
    opacity: 1;
}

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent-color);
    color: var(--light-accent-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1001;
}

.scroll-to-top.show {
    opacity: 1;
}

@media screen and (max-width: 768px) {
    #main-header {
        height: auto;
    }

    #main-header .header-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    #main-header h1 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    #menu-toggle {
        display: block;
        position: absolute;
        top: 10px;
        right: 10px;
    }

    #main-header.scrolled #menu-toggle {
        top: 5px;
    }

    #main-nav {
        display: none;
        width: 100%;
    }

    #main-nav.show {
        display: block;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 0;
    }

    nav ul li a {
        display: block;
        padding: 10px 20px;
        text-align: left;
        border-radius: 0;
        background-color: transparent;
    }

    nav ul li a:hover,
    #main-header.scrolled nav ul li a:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

    .slider {
        height: 400px;
        margin-top: 60px;
    }

    .slide-content h2 {
        font-size: 1.8em;
    }

    .slide-content p {
        font-size: 1em;
    }

    main {
        padding: 20px 10px;
    }

    section {
        padding: 20px 15px;
        margin-bottom: 30px;
        border-radius: 10px;
    }

    .service-card, .project-card {
        padding: 15px;
    }

    .modal-content {
        width: 95%;
        padding: 15px;
    }

    #contact-form input,
    #contact-form textarea {
        font-size: 14px;
    }
}
