@import "./styles.css";

/* ── Dark theme (default) ── */
:root {
    --bg-main:    #0f0f0f;
    --bg-alt:     #161616;
    --bg-nav:     #0a0a0a;
    --bg-footer:  #0a0a0a;
    --text-body:  #c8c8c8;
    --text-muted: #888888;
    --text-head:  #ffffff;
    --accent:     #6ab0f5;
    --accent-dim: #4a8fd4;
    --border:     rgba(255, 255, 255, 0.08);
}

/* ── Light theme ── */
[data-theme="light"] {
    --bg-main:    #ffffff;
    --bg-alt:     #f5f5f5;
    --bg-nav:     #ffffff;
    --bg-footer:  #eeeeee;
    --text-body:  #444444;
    --text-muted: #888888;
    --text-head:  #1a1a1a;
    --accent:     #3948d2;
    --accent-dim: #2233b0;
    --border:     rgba(0, 0, 0, 0.10);
}

/* ── Base ── */
body {
    background-color: var(--bg-main);
    color: var(--text-body);
}

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

/* ── Navbar ── */
.header {
    background-color: var(--bg-nav) !important;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.3s;
}

.header .navbar-brand,
.header .nav-link {
    color: var(--text-body) !important;
}

.header .nav-link:hover,
.header .nav-link.active {
    color: var(--accent) !important;
}

/* ── Theme toggle button ── */
.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    padding: 0.25rem 0.4rem;
    margin-left: 0.5rem;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    line-height: 1;
}

.theme-toggle-btn:hover {
    color: var(--accent);
    transform: rotate(20deg);
}

/* ── Hero section ── */
.hero-section {
    padding: 7rem 0 5rem 0;
    background-color: var(--bg-main);
    transition: background-color 0.3s;
}

.hero-name {
    font-family: "Newsreader", serif;
    font-size: 3.2rem;
    font-weight: 600;
    color: var(--text-head);
    margin-bottom: 1.5rem;
}

/* ── Profile photo ── */
.profile-photo {
    width: 100%;
    max-width: 260px;
    border-radius: 10px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.4);
}

/* ── Social icons ── */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.4rem;
}

.social-icons a {
    font-size: 1.9rem;
    color: var(--text-muted);
    transition: color 0.2s, transform 0.2s;
    text-decoration: none;
}

.social-icons a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* ── Content sections ── */
.section-main {
    background-color: var(--bg-main);
    padding: 3rem 0;
    transition: background-color 0.3s;
}

.section-alt {
    background-color: var(--bg-alt);
    padding: 3rem 0;
    transition: background-color 0.3s;
}

section header h2 {
    font-family: "Kanit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    color: var(--accent);
    font-size: 2.3rem;
    line-height: 4rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

section .main-body {
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 2.4rem;
    color: var(--text-body);
}

section .main-body h4 {
    color: var(--text-head);
    font-size: 1.2rem;
    margin-top: 1.8rem;
    margin-bottom: 0.4rem;
}

section .main-body strong {
    color: var(--text-head);
    font-weight: 600;
}

/* ── Footer ── */
.bg-bottom {
    background-color: var(--bg-footer);
    border-top: 1px solid var(--border);
    transition: background-color 0.3s;
}

.bg-bottom .text-white-50 {
    color: var(--text-muted) !important;
}

.bg-bottom a {
    color: var(--text-muted);
}
.bg-bottom a:hover {
    color: var(--accent);
}

/* ── Responsive ── */
@media screen and (max-width: 767px) {
    .hero-name {
        font-size: 2.4rem;
    }
    .profile-photo {
        max-width: 200px;
    }
}
