@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    background-image: url("/img/1.png");
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0; 
    
    color: white;
    font-family: 'Montserrat', sans-serif;
    transition: background-image 0.6s ease-in-out, background-color 0.6s ease-in-out, color 0.4s ease;
}

body.dark-mode {
    background-image: url("/img/2.png");
    background-color: #1a1a1a;
    color: #ffffff;
}

.site-main {
    flex: 1 0 auto;
}

nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: white;
    opacity: 0.8;
    transition: 0.3s;
}

nav a.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    opacity: 1;
    letter-spacing: 0.2px;
}

nav a:hover {
    opacity: 1;
}

.nav-theme-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 10px;
    outline: none;
}

.nav-theme-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.nav-theme-btn i {
    font-size: 1.1rem;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section {
    padding: 120px 20px;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(80px);
    transition: 0.8s ease;
}

.section.show {
    opacity: 1;
    transform: translateY(0);
}

.page-copy {
    width: 100%;
    max-width: 800px;
    padding: 40px;
    border-radius: 25px;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.services-container {
    width: 100%;
    max-width: 950px;
    display: flex;
    flex-direction: column;
    gap: 45px;
    padding-top: 50px;
}

.services-box {
    width: 100%;
    padding: 40px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.services-box h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
    letter-spacing: 1px;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.services-grid a {
    color: white;
    text-decoration: none;
}

.service-card {
    flex: 1 1 calc(33.333% - 25px);
    min-width: 280px;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.service-card i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.75;
}

footer {
    flex-shrink: 0;
    text-align: center;
    padding: 40px;
    opacity: 0.6;
}

@media (max-width: 1024px) {
    .services-container {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    nav {
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        padding: 15px 20px;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-left: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 40px;
        gap: 25px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    body.dark-mode nav ul {
        background: rgba(0, 0, 0, 0.4);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    nav:hover ul {
        right: 0;
    }

    nav::after {
        content: "\f0c9";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        transition: opacity 0.2s;
    }

    nav:hover::after {
        opacity: 0;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        font-size: 1.1rem;
        display: block;
        width: 100%;
        padding: 5px 0;
    }

    .nav-theme-btn {
        margin-left: 0;
        margin-top: 10px;
        background: rgba(255, 255, 255, 0.15);
    }

    .section {
        padding: 100px 15px 40px 15px;
    }

    .services-container {
        gap: 30px;
        padding-top: 20px;
    }

    .services-box {
        padding: 30px 20px;
    }

    .services-box h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .service-card {
        flex: 1 1 calc(50% - 25px);
    }
}

@media (max-width: 480px) {
    nav a.nav-brand {
        font-size: 1.2rem;
    }

    .services-box {
        padding: 25px 15px;
        border-radius: 20px;
    }

    .services-box h2 {
        font-size: 1.4rem;
    }

    .service-card {
        flex: 1 1 100%;
        padding: 25px 15px;
    }
}