/* ---------------------------
   GLOBAL RESET & BASE STYLES
--------------------------- */
:root {
    --color-primary: #46b399;
    --color-text: rgba(0, 0, 0, 0.75);
    --color-muted: rgba(0, 0, 0, 0.55);
    --color-light: rgba(0, 0, 0, 0.4);
    --color-bg: #ffffff;
    --color-bg-alt: #fafafa;

    --font-body: "Poppins", Arial, Helvetica, sans-serif;

    --radius: 1.25rem;
    --shadow: 0 0 1.25rem rgba(0, 0, 0, 0.1);

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;

    --text-sm: 0.9rem;
    --text-base: 1rem;
    --text-lg: 1.25rem;
    --text-xl: 1.75rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
}

body {
    min-height: 100svh;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm);
}

/* ---------------------------
   MAIN CONTAINER
--------------------------- */
.container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    background: linear-gradient(
        to bottom,
        var(--color-bg),
        var(--color-bg-alt)
    );
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: var(--space-lg);
    max-width: 75rem;
    width: 100%;
}

/* ---------------------------
   INTRO / INFO SECTION
--------------------------- */
#intro {
    flex: 1 1 35rem;
}

.site-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.logo {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
}

h1 {
    font-size: var(--text-xl);
    color: #111;
    font-weight: 700;
}

.subtitle {
    font-size: var(--text-base);
    color: var(--color-muted);
}

.description {
    margin-bottom: var(--space-md);
    line-height: 1.6;
    font-size: var(--text-base);
}

/* ---------------------------
   TAGS
--------------------------- */
.tags {
    display: flex;
    gap: var(--space-sm);
    list-style: none;
    margin-bottom: var(--space-md);
}

.tag {
    background-color: rgba(70, 179, 153, 0.1);
    color: var(--color-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
}

/* ---------------------------
   PORTFOLIO
--------------------------- */
#portfolio {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: flex-start;
}

#portfolio img {
    width: 100%;
    max-width: 12rem;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    object-fit: cover;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

#portfolio img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

/* ---------------------------
   CONTACT SECTION
--------------------------- */
#contact {
    flex: 1 1 18rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

h2 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.contact-list {
    font-size: var(--text-base);
}

.contact-list dt {
    font-weight: 600;
    color: var(--color-muted);
    margin-top: var(--space-sm);
}

.contact-list dd {
    margin-left: 0;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

#copyright {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--color-light);
    margin-top: var(--space-md);
}

button {
    background: rgb(106, 133, 163);
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    margin-top: 30px;
    font-weight: bold;
    font-size: 1rem;
}

button:hover {
    background: rgb(79, 102, 128);
    cursor: pointer;
}

.social-link {
    text-decoration: underline;
}

/* ---------------------------
   FADE-IN EFFECT
--------------------------- */
body {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

body.loaded {
    opacity: 1;
}

/* ---------------------------
   RESPONSIVE DESIGN
--------------------------- */
@media (max-width: 70rem) {
    .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .site-header {
        flex-direction: column;
    }

    #portfolio {
        justify-content: center;
    }

    #portfolio img {
        max-width: 100%;
    }

    #contact {
        align-items: center;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #121212;
        --color-bg-alt: #1a1a1a;
        --color-text: rgba(255, 255, 255, 0.8);
        --color-muted: rgba(255, 255, 255, 0.6);
        --color-light: rgba(255, 255, 255, 0.5);
        --shadow: 0 0 1rem rgba(0, 0, 0, 0.6);
    }

    body {
        background: var(--color-bg-alt);
        color: var(--color-text);
    }

    .logo {
        filter: brightness(80%);
    }

    .container {
        background: linear-gradient(
            to bottom,
            var(--color-bg),
            var(--color-bg-alt)
        );
        box-shadow: var(--shadow);
    }

    h1,
    h2 {
        color: rgba(255, 255, 255, 0.8);
    }

    a {
        color: var(--color-text);
    }

    a:hover {
        color: var(--color-primary);
    }

    .tag {
        background-color: rgba(70, 179, 153, 0.15);
        color: var(--color-primary);
    }

    button {
        background: rgb(60, 90, 120);
        color: #dddddd;
    }

    button:hover {
        background: rgb(50, 75, 100);
    }

    #portfolio img:hover {
        box-shadow: 0 0 1rem rgba(255, 255, 255, 0.15);
    }

    button:hover {
        background: rgb(79, 102, 128);
        cursor: pointer;
    }

    #copyright {
        color: var(--color-light);
    }
}
