/* Reset & Base */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Funnel Display", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 1rem;
    overflow-x: hidden;
    overflow-y: auto;
    transition: background-color 0.3s ease, color 0.3s ease;
}

b {
    font-weight: 600;
}

/* CSS Variables */
:root {
    --bg-color: #F2F4FF;
    --text-color: #000;
    --link-color: #000;
    --link-hover: #3B3B98;
    --underline-color: #3B3B98;
}

/* Dark Theme Overrides */
body.dark-mode {
    --bg-color: #0F1117;
    --text-color: #EAEAEA;
    --link-color: #E0E0E0;
    --link-hover: #6C8CFF;
    --underline-color: #6C8CFF;
}

/* Layout */
.wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    min-height: 100vh;
    width: 100%;
    padding: 2rem;
    box-sizing: border-box;
}

/* Headings */
h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-color);
}

h2 {
    font-size: 1.2rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
}

/* Welcome Text */
.welcome_text {
    text-align: left;
    width: 100%;
    max-width: 800px;
    line-height: 1.9rem;
    margin-bottom: 5rem;
    font-size: 1rem;
    color: var(--text-color);
}

/* Contact Title */
.contact_title {
    text-align: center;
    padding-bottom: 3rem;
    color: var(--text-color);
}

/* Contact Links (default for desktop) */
.contact_links {
    display: flex;
    column-gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.contact_links li {
    list-style: none;
}

.contact_links li a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.6rem 1.4rem;
    border: 2px solid var(--link-color);
    border-radius: 10px;
    background-color: transparent;
    color: var(--link-color);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.contact_links li a i {
    font-size: 1.2rem;
}

.contact_links li a:hover {
    background-color: #f1f1f1;
}

.dark-mode .contact_links li a:hover {
    color: #0f1117;
}

/* Toggle Theme Button */
#theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--bg-color);
    border: 1px solid var(--link-color);
    color: var(--text-color);
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    opacity: 0.7;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0 auto 1.5rem;
}

#theme-toggle:hover {
    opacity: 1;
    background-color: var(--underline-color);
    color: #fff;
    border-color: var(--underline-color);
}

.theme-icon {
    font-size: 1rem;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.theme-icon.animate {
    transform: rotate(180deg) scale(1.3);
    opacity: 0.6;
}

.theme-label {
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

/* Responsive: Mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 1.6rem;
        margin-top: 2rem;
    }

    h2 {
        font-size: 1rem;
    }

    .welcome_text {
        font-size: 0.95rem;
        line-height: 1.6rem;
        margin-bottom: 3rem;
        text-align: justify;
        padding: 0 0.5rem;
    }

    .wrapper {
        padding: 1rem;
    }

    #theme-toggle {
        font-size: 0.8rem;
        opacity: 0.4;
        padding: 0.3rem 0.8rem;
        background: none;
        border: none;
        color: var(--text-color);
        margin: 0 auto 1.2rem;
        position: static;
    }

    #theme-toggle:hover {
        opacity: 0.8;
        background: none;
        color: var(--text-color);
        border: none;
    }

    .theme-label {
        font-size: 0.8rem;
    }

    .theme-icon {
        font-size: 0.9rem;
    }

    /* Contact buttons fixed bar style */
    .contact_links {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: stretch;
        padding: 0;
        margin: 0;
        background-color: var(--link-color);
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .contact_links li {
        flex: 1 1 50%;
        margin: 0;
        padding: 0;
        display: flex;
    }

    .contact_links li a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 1rem 0;
        font-size: 1rem;
        font-weight: 600;
        text-align: center;
        text-decoration: none;
        background-color: var(--link-color);
        color: #fff;
        border: none;
        border-radius: 0;
        transition: background-color 0.3s ease;
    }

    .contact_links .linkedin a:hover{
        background-color: #0a66c2;
    }

    .contact_links .telegram a:hover {
        background-color: #0088cc;
    }

    .dark-mode .contact_links .linkedin a:hover,
    .dark-mode .contact_links .telegram a:hover{
        color: #ffffff;
    }

    .dark-mode .contact_links{
        background: #1e212e;
    }

    .dark-mode .contact_links li a{
        background: #1e212e;
    }

}

/* Responsive: Desktop */
@media (min-width: 769px) {
    #theme-toggle {
        position: fixed;
        top: 1rem;
        right: 1rem;
        margin: 0;
        opacity: 0.6;
        background: var(--bg-color);
        border: 1px solid var(--link-color);
        padding: 0.4rem 1rem;
    }

    #theme-toggle:hover {
        opacity: 1;
        background-color: var(--underline-color);
        color: #fff;
        border-color: var(--underline-color);
    }
}
