/* =========================
   THEME VARIABLES
========================= */
:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    --subtext: #475569;
    --accent: #3b82f6;
    --border: #e2e8f0;
    --shadow: rgba(0,0,0,0.08);
}

/* Auto dark mode (Chrome / system) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0B1120;
        --surface: #111827;
        --text: #F8FAFC;
        --subtext: #94A3B8;
        --accent: #60A5FA;
        --border: #1E293B;
        --shadow: rgba(0,0,0,0.35);
    }
}

/* Manual override */
body.dark-mode {
    --bg: #0B1120;
    --surface: #111827;
    --text: #F8FAFC;
    --subtext: #94A3B8;
    --accent: #60A5FA;
    --border: #1E293B;
    --shadow: rgba(0,0,0,0.35);
}

body.light-mode {
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    --subtext: #475569;
    --accent: #3b82f6;
    --border: #e2e8f0;
    --shadow: rgba(0,0,0,0.5);
}

/* =========================
   GLOBAL
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Stack Sans Text', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

/* =========================
   HERO
========================= */
.hero {
    text-align: center;
    padding: 80px 20px 40px;
}

.profile-pic {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--border);
    box-shadow: 0 10px 30px var(--shadow);
}

h1 {
    font-size: 3rem;
    margin-top: 20px;
}

.subtitle {
    color: var(--subtext);
    font-size: 1.2rem;
    margin-top: 8px;
}

.divider {
    width: 120px;
    height: 2px;
    background: var(--accent);
    margin: 25px auto;
}

/* =========================
   SOCIALS
========================= */
.socials a {
    color: var(--text);
    font-size: 1.8rem;
    margin: 0 15px;
    transition: 0.3s;
}

.socials a:hover {
    color: var(--accent);
    transform: scale(1.1);
}

/* =========================
   CONTENT
========================= */
main {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

section {
    margin: 10px 0;
    text-align: center;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.about {
	margin-top: 20px;
}

.about p {
    max-width: 700px;
    margin: auto;
    color: var(--subtext);
    font-size: 1.1rem;
}

.about a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}

.about a:hover {
    border-bottom: 1px solid var(--accent);
}

/* =========================
   SKILLS
========================= */
.skill-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.skill-icons i {
    font-size: 4rem;
    transition: transform 0.3s, color 0.3s;
}

.skill-icons i:hover {
    transform: scale(1.15);
    color: var(--accent);
}

/* =========================
   FOOTER
========================= */
footer {
    text-align: center;
    padding: 20px;
    color: var(--subtext);
    border-top: 1px solid var(--border);
    margin-top: 50px;
}

/* =========================
   THEME BUTTON
========================= */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 4px 12px var(--shadow);
    cursor: pointer;
    font-size: 1.4rem;
    transition: 0.3s;
}

.theme-toggle:hover {
    transform: scale(1.1);
    color: var(--accent);
}

/* =========================
   MOBILE
========================= */
@media(max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .profile-pic {
        width: 140px;
        height: 140px;
    }

    .subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    .skill-icons i {
        font-size: 3rem;
    }
}