/* ==========
    Base Styles & Design Tokens
==========
    These variables control the entire look of the site.
    You can safely edit colors here without breaking the layout.
*/
:root {
    --color-bg: #fdf6ec;
    --color-text: #3f3a36;
    --color-accent: #4edfd1;
    --font-heading: "Space Grotesk", sans-serif;
    --font-body: "Inter", sans-serif;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

/* Page wrapper */
.page {
    max-width: 900px;
    padding: 2rem 1.5rem;
    margin: 0 auto;
}

/* Headings */
h1, h2 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

/* Navigation */
.site-nav {
    padding: 1rem 0;
    background-color: var(--color-bg);
}

.site-nav .nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.site-nav .nav-list a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.2s ease, border-bottom 0.2s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

.site-nav .nav-list a:hover, .site-nav .nav-list a:focus {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.site-nav .nav-list a.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* Hero */
.hero {
    margin-bottom: 4rem;
}

.tagline {
    font-size: 1.125rem;
    max-width: 500px;
}

/* Sections */
.section {
    margin-bottom: 3.5rem;
}

/* Links */
.link-list {
    list-style: none;
    padding: 0;
}

.link-list li {
    margin-bottom: 0.75rem;
}

.link-list a {
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 2px;
}

.link-list a:hover {
    background-color: var(--color-accent);
}

/* ==========
    Buttons
==========
    Reusable button style.
    Safe to copy and reuse anywhere in the template.
*/
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px; /* controls visual consistency */
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.5rem 1rem;
    margin-bottom: 0.75rem;
    background-color: var(--color-accent);
    color: var(--color-text);
    text-decoration: none;
    border-radius: 999px; /* rounded, playful */
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.portfolio-button  {
    display: flex;
    justify-content: center;
}

.button:focus-visible {
    outline: 3px solid rgba(78, 223, 209, 0.6);
    outline-offset: 2px;
}

/* ==========
    Cards
==========
    Cards are optional content containers.
    They are great for:
    - links
    - mini projects
    - fun personal content
*/

.card-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.card {
    min-height: 400px;
    padding: 1.5rem;
    background-color: #ffffff;
    border-radius: 16px;
    border: 2px solid var(--color-accent);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.card h3 {
    font-size: 1.1rem;
    font-family: var(--font-heading);
    margin: 0;
}

.card p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.85;
}

.card .button {
    margin-top: 0.75rem;
    align-self: flex-start;
}

.card img {
    width: 100%;
    max-height: 200px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    height: auto;
    display: block;
}

/* ==========
    Section Dividers
==========
    Soft visual separation between sections.
    Optional and safe to remove.
*/

.divider {
    width: clamp(48px, 10vw, 72px);
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 999px;
    margin: 0 auto;
}

/* Divider Groups */
.divider-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2.5rem 0;
}

/* ==========
    Profile image
==========
    Optional to have on your website.
*/
.profile-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 24px;
    display: block;
    margin: 0 auto 1rem;
}

footer {
    padding: 2rem;
    text-align: center;
    background-color: var(--lavender-light);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Cards stack on mobile, sit side-by-side on larger screens */
@media (min-width: 600px) {
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .page {
        padding: 2rem 1rem;
    }
}

/* Responsive Layout */
@media (max-width: 480px) {
    .site-nav .nav-list {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

}
