

:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --header-bg: rgba(30, 30, 30, 0.8);
    --border-color: #2c2c2c;
    --card-bg: rgba(30, 30, 30, 0.8);
    --text-muted: #8e8e93;
    --accent-color: #007AFF;
    --icon-filter: invert(1);
}

[data-theme="light"] {
    --bg-color: #f2f2f7;
    --text-color: #000000;
    --header-bg: rgba(255, 255, 255, 0.8);
    --border-color: #e5e5ea;
    --card-bg: rgba(255, 255, 255, 0.8);
    --text-muted: #8e8e93;
    --accent-color: #007AFF;
    --icon-filter: invert(0);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 0.5px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

    .header .logo {
        font-size: 20px;
        font-weight: 600;
        color: var(--text-color);
        display: flex;
        flex-direction: column;
        align-items: center;
    }

        .header .logo span {
            font-size: 14px;
            font-weight: normal;
            margin-top: 2px;
            color: var(--text-muted);
        }

    .header .tabs {
        display: flex;
        gap: 1rem;
        align-items: center;
        flex-wrap: wrap;
    }

        .header .tabs a {
            text-decoration: none;
            font-size: 17px;
            color: var(--accent-color);
            padding: 8px 16px;
            border-radius: 8px;
            transition: all 0.2s;
            font-weight: 500;
        }

            .header .tabs a:hover {
                background-color: rgba(0, 122, 255, 0.1);
            }

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

    .theme-toggle:hover {
        background-color: rgba(142, 142, 147, 0.1);
    }

    .theme-toggle img {
        width: 22px;
        height: 22px;
        filter: var(--icon-filter);
    }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

.title {
    text-align: center;
    font-size: 34px;
    font-weight: 700;
    margin: 32px 0;
    color: var(--text-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 20px;
    margin: 0 auto;
}

.service-card {
    border-radius: 14px;
    overflow: hidden;
    text-align: center;
    background-color: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

    .service-card:hover {
        transform: translateY(-4px);
    }

    .service-card h3 {
        font-size: 20px;
        font-weight: 600;
        margin-bottom: 16px;
        color: var(--text-color);
    }

    .service-card p {
        font-size: 17px;
        color: var(--text-muted);
        margin-bottom: 24px;
        flex: 1;
        line-height: 1.4;
    }

    .service-card a {
        display: inline-block;
        padding: 12px 24px;
        background-color: var(--accent-color);
        color: #fff;
        text-decoration: none;
        border-radius: 12px;
        font-size: 17px;
        font-weight: 500;
        transition: all 0.2s;
        margin-top: auto;
    }

        .service-card a:hover {
            background-color: #0051D5;
            transform: scale(0.98);
        }

.footer {
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 24px 0;
    margin-top: 32px;
    border-top: 0.5px solid var(--border-color);
}

    .footer .container-lg {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .footer .row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 16px;
    }

    .footer .list-inline {
        list-style: none;
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }

    .footer .text-muted {
        color: var(--text-muted);
        text-decoration: none;
        font-size: 14px;
        transition: color 0.2s;
    }

        .footer .text-muted:hover {
            color: var(--accent-color);
        }

@media (max-width: 768px) {

    .header {
        flex-direction: column;
        text-align: center;
        position: relative;
    }

    .footer .row {
        flex-direction: column;
        text-align: center;
    }

    .footer .list-inline {
        justify-content: center;
    }
}

nav {
    background-color: var(--header-bg);
    padding: max(1rem, env(safe-area-inset-top)) 1rem 1rem;
    position: relative;
    width: 100%;
    height: auto;
    min-height: 44px;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 0.5px solid var(--border-color);
    box-sizing: border-box;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    gap: 16px;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    text-decoration: none;
    color: var(--accent-color);
    font-size: 17px;
    font-weight: 400;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

nav ul li a:active {
    opacity: 0.7;
}
@media (max-width: 768px){
    nav ul {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 8px 0;
    }

    nav ul li a {
        font-size: 15px;
        padding: 6px 12px;
    }
    #theme-toggle{
        right: 30px;
        transform: translateY(-158%);
    }

}
@media (max-width: 768px) {
    #theme-toggle{
        right: 30px;
        transform: translateY(-158%);
    }
}
#theme-toggle {
    position: absolute;
    right: 20px; /* Aligns to the right corner */
    top: 50%;
    transform: translateY(-50%);
}
