/*
  Professional CV Stylesheet
  Author: Guilherme Farrel (styled by Junie)
  Date: 2025-09-20
*/

:root {
    --bg: #0f172a; /* slate-900 */
    --panel: #111827; /* gray-900 */
    --card: #0b1222; /* darker panel */
    --muted: #94a3b8; /* slate-400 */
    --text: #e5e7eb; /* gray-200 */
    --accent: #22d3ee; /* cyan-400 */
    --accent-2: #60a5fa; /* blue-400 */
    --border: #1f2937; /* gray-800 */
    --shadow: rgba(2, 6, 23, 0.6);
}

* {
    box-sizing: border-box;
}

html, body {
    padding: 0;
    margin: 0;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    line-height: 1.7;
    color: var(--text);
    background: radial-gradient(1200px 800px at 10% -10%, rgba(96, 165, 250, 0.15), transparent 60%),
    radial-gradient(1000px 700px at 110% 20%, rgba(34, 211, 238, 0.12), transparent 60%),
    var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout containers for existing semantic sections */
body > header,
body > article,
body > section,
body > footer {
    width: 90%;
    max-width: 980px;
    margin: 20px auto;
    padding: 20px;
}

/* Header */
header {
    padding: 48px 20px 28px;
    text-align: center;
}

header h1 {
    font-size: clamp(1.4rem, 2.2vw + 1rem, 2.2rem);
    font-weight: 700;
    letter-spacing: 0.2px;
    margin: 0 0 22px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

header figure {
    margin: 10px auto 18px;
}

header figure img {
    display: block;
    width: min(280px, 70vw);
    height: auto;
    border-radius: 16px;
    box-shadow: 0 12px 30px -8px var(--shadow);
    border: 1px solid var(--border);
    margin: 0 auto;
}

figure figcaption {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

/* Quick info list under header */
ul {
    padding-left: 1.2rem;
}

header ul {
    list-style: none;
    padding: 0;
    margin: 16px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px 18px;
    max-width: 820px;
}

header ul li {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* left align content to avoid overlap */
    flex-wrap: wrap; /* allow long text to move to next line */
    gap: 10px 8px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.0));
    border-radius: 12px;
    box-shadow: 0 10px 24px -12px var(--shadow);
    text-align: left; /* ensure multi-line text aligns nicely */
}

/* Render the Material Icons from existing <i> tags */
header ul li i,
section ul li i,
article ul li i {
    font-family: 'Material Icons', serif;
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    width: 22px;
    color: var(--accent);
}

/* Links */
a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s ease, opacity 0.15s ease;
    overflow-wrap: anywhere; /* break long URLs/emails nicely */
    word-break: break-word;
}

a:hover {
    color: var(--accent-2);
}

/* Section cards */
article,
section {
    margin: 22px auto;
    padding: 20px 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.0)), var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 16px 40px -24px var(--shadow);
}

h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 14px;
    padding-left: 12px;
    border-left: 3px solid var(--accent);
}

p {
    margin: 0 0 10px;
    color: #e8eaf0;
}

ol,
ul {
    margin: 0 0 6px 1rem;
}

ol li,
ul li {
    margin: 6px 0;
}

/* Definition list for education */
dl {
    margin: 0;
}

dt {
    font-weight: 600;
}

dd {
    margin: 0 0 4px 0;
    color: var(--muted);
}

/* Footer */
footer {
    text-align: center;
    padding: 24px 20px 36px;
    color: var(--muted);
}

/* Subtle focus styles for accessibility */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Responsive tweaks */
@media (min-width: 900px) {
    header {
        padding-top: 56px;
    }

    article, section {
        padding: 24px 28px;
    }
}

@media (min-width: 1024px) {
    body > header,
    body > article,
    body > section,
    body > footer {
        width: 100%;
    }
}


/* Utility classes to demonstrate class usage */
.card {
    margin: 22px auto;
    padding: 20px 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.0)), var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 16px 40px -24px var(--shadow);
}

.muted {
    color: var(--muted) !important;
}

.icon {
    font-family: 'Material Icons', serif;
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    width: 22px;
    color: var(--accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.0));
    color: var(--text);
    text-decoration: none;
    box-shadow: 0 10px 24px -14px var(--shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.btn:hover {
    color: var(--accent-2);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px -16px var(--shadow);
}
