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

body.dark-theme {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #222 0, #050505 45%, #000 100%);
    color: #f5f5f5;
    min-height: 100vh;
}

/* Utility classes */
.accent {
    color: #4fc3f7;
}

.subtitle {
    opacity: 0.85;
}

/* ========== HEADER & NAVBAR ========== */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 5vw;
    background: rgba(0, 0, 0, 0.85);
    border-bottom: 1px solid #222;
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    text-decoration: none;
    color: #e0e0e0;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 0.2rem;
    transition: color 0.2s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4fc3f7, #80cbc4);
    transition: width 0.25s ease;
}

.main-nav a:hover {
    color: #ffffff;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* ========== HOME / HERO SECTION ========== */

.hero {
    padding: 3rem 5vw 2rem;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
    gap: 2.5rem;
    align-items: center;
}

.tag {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.17em;
    color: #b0bec5;
    margin-bottom: 0.75rem;
}

.hero-text h1 {
    font-size: clamp(2.3rem, 4vw, 3.2rem);
    margin-bottom: 0.75rem;
}

.hero-text .subtitle {
    max-width: 32rem;
    margin-bottom: 1.5rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.8rem;
    border-radius: 999px;
    border: 1px solid #4fc3f7;
    text-decoration: none;
    font-size: 0.95rem;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease,
        color 0.15s ease;
}

.btn.primary {
    background: linear-gradient(135deg, #4fc3f7, #80cbc4);
    color: #000;
    border: none;
}

.btn.outline {
    background: transparent;
    color: #4fc3f7;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

/* Hero card (right side) */
.hero-card {
    background: radial-gradient(circle at top left, #263238, #0b1013);
    border-radius: 1.5rem;
    padding: 2rem 1.75rem 1.75rem;
    text-align: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(79, 195, 247, 0.25);
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    object-fit: cover;
    border: 3px solid #4fc3f7;
    margin-bottom: 1rem;
    background: #111;
}

.profile-photo.large {
    width: 150px;
    height: 150px;
}

.hero-card .name {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

.hero-card .role {
    font-size: 0.9rem;
    color: #b0bec5;
    margin-bottom: 0.3rem;
}

.hero-card .location {
    font-size: 0.85rem;
    color: #90a4ae;
}

/* ========== COMMON PAGE LAYOUT ========== */

.page {
    padding: 3rem 5vw 2rem;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.4rem;
}

/* ========== RESUME PAGE LAYOUT ========== */

.resume-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr);
    gap: 2.5rem;
}

/* Sidebar */

.resume-sidebar {
    background: rgba(8, 13, 17, 0.95);
    border-radius: 1.2rem;
    padding: 1.5rem 1.4rem;
    border: 1px solid rgba(144, 164, 174, 0.4);
    text-align: center;
}

.resume-sidebar .name {
    margin-top: 0.75rem;
    font-size: 1.3rem;
}

.resume-sidebar .role {
    color: #b0bec5;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.info-block {
    margin-top: 1.4rem;
    text-align: left;
}

.info-block h3 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #90caf9;
    margin-bottom: 0.4rem;
}

.info-list {
    list-style: none;
    font-size: 0.9rem;
    color: #cfd8dc;
}

.info-list li + li {
    margin-top: 0.25rem;
}

/* Resume main content */

.resume-main {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.resume-section {
    background: rgba(10, 15, 20, 0.95);
    border-radius: 1rem;
    padding: 1.4rem 1.5rem 1.3rem;
    border: 1px solid rgba(55, 71, 79, 0.9);
}

.resume-section h2 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #4fc3f7;
}

.resume-section .item + .item {
    margin-top: 0.75rem;
}

.resume-section .meta {
    font-size: 0.85rem;
    color: #b0bec5;
}

.signature {
    margin-top: 0.9rem;
}

/* ========== BIO-DATA PAGE LAYOUT ========== */

.biodata-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.biodata-card {
    background: rgba(10, 15, 20, 0.95);
    border-radius: 1.2rem;
    padding: 1.7rem 1.5rem;
    border: 1px solid rgba(55, 71, 79, 0.9);
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr);
    gap: 2rem;
    align-items: flex-start;
}

.biodata-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.biodata-table th,
.biodata-table td {
    border-bottom: 1px solid rgba(55, 71, 79, 0.9);
    padding: 0.5rem 0.75rem;
    text-align: left;
    vertical-align: top;
}

.biodata-table th {
    width: 35%;
    color: #90caf9;
}

.biodata-declaration {
    background: rgba(8, 13, 17, 0.95);
    border-radius: 1rem;
    padding: 1.4rem 1.5rem;
    border: 1px solid rgba(55, 71, 79, 0.9);
}

.biodata-declaration h2 {
    color: #4fc3f7;
    margin-bottom: 0.6rem;
}

/* ========== SCROLL TO TOP BUTTON ========== */

.scroll-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    background: #4fc3f7;
    color: #000;
    font-size: 1.2rem;
    cursor: pointer;
    display: none; /* controlled by JS */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.9);
}

/* ========== FOOTER ========== */

.site-footer {
    padding: 1rem 5vw 1.3rem;
    text-align: center;
    font-size: 0.85rem;
    color: #90a4ae;
    border-top: 1px solid #222;
    margin-top: 2rem;
}

/* ========== RESPONSIVE DESIGN ========== */

@media (max-width: 900px) {
    .hero-content,
    .resume-layout,
    .biodata-card {
        grid-template-columns: 1fr;
    }

    .hero-card {
        order: -1;
    }

    .resume-sidebar {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.7rem;
    }

    .main-nav ul {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .hero {
        padding-top: 2.2rem;
    }
}
