:root {
    --bg-main: #ffffff;
    --bg-subtle: #fafafa;
    --bg-muted: #f4f4f5;
    --bg-card: #ffffff;

    --border-hairline: #e4e4e7;
    --border-strong: #d4d4d8;
    --border-ink: #09090b;

    --text-main: #09090b;
    --text-secondary: #3f3f46;
    --text-muted: #71717a;
    --text-subtle: #a1a1aa;

    --accent-ink: #09090b;
    --accent-emerald: #10b981;

    --btn-primary-hover: #27272a;
    --navbar-bg: rgba(255, 255, 255, 0.88);
    --navbar-border: rgba(9, 9, 11, 0.1);
    --cert-btn-bg: rgba(255, 255, 255, 0.94);

    --shadow-xs: 0 1px 2px rgba(9, 9, 11, 0.04);
    --shadow-sm: 0 4px 16px -4px rgba(9, 9, 11, 0.06);
    --shadow-md: 0 16px 40px -16px rgba(9, 9, 11, 0.09);
    --shadow-lg: 0 24px 56px -20px rgba(9, 9, 11, 0.14);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

html[data-theme="dark"] {
    --bg-main: #000000;
    --bg-subtle: #0c0c0f;
    --bg-muted: #18181b;
    --bg-card: #09090b;

    --border-hairline: #1f1f23;
    --border-strong: #3f3f46;
    --border-ink: #fafafa;

    --text-main: #fafafa;
    --text-secondary: #d4d4d8;
    --text-muted: #a1a1aa;
    --text-subtle: #71717a;

    --accent-ink: #fafafa;

    --btn-primary-hover: #e4e4e7;
    --navbar-bg: rgba(12, 12, 15, 0.86);
    --navbar-border: rgba(255, 255, 255, 0.12);
    --cert-btn-bg: rgba(18, 18, 22, 0.92);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.55);
    --shadow-sm: 0 4px 16px -4px rgba(0, 0, 0, 0.7);
    --shadow-md: 0 16px 40px -16px rgba(0, 0, 0, 0.8);
    --shadow-lg: 0 24px 56px -20px rgba(0, 0, 0, 0.9);

    color-scheme: dark;
}

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

html {
    scroll-behavior: smooth;
    color-scheme: light;
    background-color: var(--bg-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.4s ease;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
}

::selection {
    background-color: var(--text-main);
    color: var(--bg-main);
}

/* ========================================================================= */
/* Minimal Plain White Intro Screen Loader */
/* ========================================================================= */
#loader {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f4f4f5;
    opacity: 1;
    overflow: hidden;
    pointer-events: all;
}

#loader .loader-grow {
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 0 280px 280px #ffffff;
    transform: scale(0);
    pointer-events: none;
    will-change: transform;
}

html[data-theme="dark"] #loader {
    background-color: #0c0c0f;
}

html[data-theme="dark"] #loader .loader-grow {
    background-color: #000000;
    box-shadow: 0 0 280px 280px #000000;
}

#loader .loader-title {
    position: relative;
    z-index: 2;
    font-family: var(--font-sans);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--text-main);
    display: none;
    will-change: transform, opacity, filter;
    user-select: none;
}

/* ========================================================================= */
/* Header & Top Bar */
/* ========================================================================= */
.header {
    width: min(100% - 2.5rem, 1120px);
    margin: 0 auto;
    padding: 28px 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-hairline);
}

.logo a {
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.logo a:hover {
    opacity: 0.7;
    transform: translateY(-1px);
}

.header-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Animated Sun & Moon Sliding + Fading Theme Switcher */
.theme-toggle {
    position: relative;
    width: 54px;
    height: 28px;
    padding: 3px;
    border-radius: var(--radius-full);
    background: var(--bg-muted);
    border: 1px solid var(--border-strong);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    transition: background-color 0.4s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--text-main);
    box-shadow: var(--shadow-xs);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--text-main);
    outline-offset: 3px;
}

.theme-toggle-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.theme-toggle-thumb {
    position: relative;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--text-main);
    color: var(--bg-main);
    display: grid;
    place-items: center;
    transform: translateX(0);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.4s ease, color 0.4s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .theme-toggle-thumb {
    transform: translateX(26px);
}

.theme-icon {
    position: absolute;
    font-size: 0.68rem;
    line-height: 1;
    transition: opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Light mode: Sun faded out, Moon faded in */
.icon-sun {
    opacity: 0;
    transform: translateX(-6px) rotate(-45deg) scale(0.6);
}

.icon-moon {
    opacity: 1;
    transform: translateX(0) rotate(0deg) scale(1);
}

/* Dark mode: Moon faded out, Sun faded in */
html[data-theme="dark"] .icon-moon {
    opacity: 0;
    transform: translateX(6px) rotate(45deg) scale(0.6);
}

html[data-theme="dark"] .icon-sun {
    opacity: 1;
    transform: translateX(0) rotate(0deg) scale(1);
}

/* ========================================================================= */
/* Floating Plain White Pill Navigation Bar */
/* ========================================================================= */
.navbar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - 2rem), 410px);
    height: 52px;
    background: var(--navbar-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--navbar-border);
    border-radius: var(--radius-full);
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.navbar ul {
    height: 100%;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 0 10px;
}

.navbar ul li a {
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 7px 14px;
    border-radius: var(--radius-full);
    transition: all 0.22s ease;
}

.navbar ul li a:hover {
    color: var(--bg-main);
    background: var(--text-main);
}

/* ========================================================================= */
/* Hero Section */
/* ========================================================================= */
.hero {
    width: min(100% - 2.5rem, 1120px);
    min-height: calc(100vh - 110px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 56px;
    padding: 40px 0 96px;
    position: relative;
}

.hero .content {
    max-width: 580px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 15px;
    margin-bottom: 26px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
    box-shadow: var(--shadow-xs);
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--accent-emerald);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
    animation: pulse-dot 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.85);
    }
}

.hero .content h1 {
    font-size: clamp(2.8rem, 5.5vw, 4.6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 22px;
    color: var(--text-main);
}

.hero .content h1 span {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.02em;
    font-size: 1.08em;
    color: var(--text-secondary);
}

.hero .content p {
    color: var(--text-muted);
    font-size: clamp(0.98rem, 1.6vw, 1.12rem);
    line-height: 1.75;
    margin-bottom: 34px;
    max-width: 480px;
}

.hero .hero-img {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-img-wrapper {
    position: relative;
    width: min(100%, 390px);
    aspect-ratio: 3 / 4;
    padding: 0;
    background: var(--bg-main);
    border: 1px solid var(--border-hairline);
    border-radius: 32px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: background-color 0.4s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.hero-img-wrapper:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lg);
}

.hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.photo-light {
    opacity: 1;
    z-index: 2;
}

.photo-dark {
    opacity: 0;
    z-index: 1;
}

html[data-theme="dark"] .photo-light {
    opacity: 0;
    z-index: 1;
}

html[data-theme="dark"] .photo-dark {
    opacity: 1;
    z-index: 2;
}

.hero-img-wrapper:hover .hero-photo {
    transform: scale(1.03);
}

/* ========================================================================= */
/* Buttons */
/* ========================================================================= */
.btn-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 26px;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
}

.btn-primary,
.btn-github-action {
    background-color: var(--text-main);
    color: var(--bg-main);
    border: 1px solid var(--text-main);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-github-action:hover {
    background-color: var(--btn-primary-hover);
    border-color: var(--btn-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.github-btn,
.btn-outline,
.btn-docs-action {
    background-color: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-xs);
}

.github-btn:hover,
.btn-outline:hover,
.btn-docs-action:hover {
    background-color: var(--bg-muted);
    border-color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.github-btn i,
.btn-github-action i {
    font-size: 1.15rem;
}

.btn-outline i {
    font-size: 0.85rem;
    transition: transform 0.25s ease;
}

.btn-outline:hover i {
    transform: translateX(4px);
}

/* ========================================================================= */
/* Section Wrappers & Editorial Headings */
/* ========================================================================= */
.wrapper {
    width: min(100% - 2.5rem, 1120px);
    margin: 0 auto;
    padding: 96px 0;
    border-top: 1px solid var(--border-hairline);
    scroll-margin-top: 24px;
}

.section-index {
    display: block;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--text-subtle);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.wrapper h2 {
    font-size: clamp(2rem, 3.6vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    text-align: center;
    margin-bottom: 44px;
    color: var(--text-main);
}

/* ========================================================================= */
/* About Section */
/* ========================================================================= */
.about {
    text-align: center;
}

.about p {
    max-width: 720px;
    margin: 0 auto 20px;
    color: var(--text-muted);
    font-size: clamp(0.98rem, 1.5vw, 1.1rem);
    line-height: 1.85;
}

.about p span {
    color: var(--text-main);
    font-weight: 700;
}

.about .btn {
    margin-top: 18px;
}

/* ========================================================================= */
/* Featured Projects Section (3-Card Layout + 16:10 Real Interface Previews) */
/* ========================================================================= */
.projects-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    align-items: stretch;
}

.project-card {
    width: calc(50% - 14px);
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    box-shadow: var(--shadow-md);
    transition: background-color 0.4s ease, border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
}

.project-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Light/Dark Architectural Browser Mockup */
.project-mockup {
    width: 100%;
}

.mockup-window {
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.4s ease, border-color 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-card:hover .mockup-window {
    transform: scale(1.012);
}

.mockup-header {
    background: var(--bg-subtle);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-hairline);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.mockup-dots {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.mockup-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.mockup-dots .dot.red,
.mockup-dots .dot.yellow,
.mockup-dots .dot.green {
    background: var(--bg-muted);
    border: 1px solid var(--border-strong);
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.project-card:hover .mockup-dots .dot.red { background: #ff5f56; border-color: #e0443e; }
.project-card:hover .mockup-dots .dot.yellow { background: #ffbd2e; border-color: #dea123; }
.project-card:hover .mockup-dots .dot.green { background: #27c93f; border-color: #1aab29; }

.mockup-url-bar {
    flex: 1;
    min-width: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 0.68rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.mockup-url-bar i {
    font-size: 0.6rem;
    color: var(--accent-emerald);
    flex-shrink: 0;
}

.mockup-url-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: opacity 0.25s ease;
}

.mockup-screen-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.screen-dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: none;
    border-radius: var(--radius-full);
    background: var(--border-strong);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.screen-dot:hover {
    background: var(--text-muted);
}

.screen-dot.is-active {
    width: 16px;
    background: var(--text-main);
}

/* 16:10 Real Interface Crossfade Viewport */
.mockup-viewport {
    position: relative;
    aspect-ratio: 16 / 10;
    height: auto;
    background: var(--bg-subtle);
    overflow: hidden;
}

.mockup-screen {
    position: absolute;
    inset: 0;
    padding: 0;
    opacity: 0;
    transform: scale(1.018);
    pointer-events: none;
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.mockup-screen.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    z-index: 2;
}

.mockup-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* Project Details */
.project-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-badge-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--text-main);
    color: var(--bg-main);
    transition: background-color 0.4s ease, color 0.4s ease;
}

.repo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-secondary);
    background: var(--bg-subtle);
    border: 1px solid var(--border-hairline);
    text-decoration: none;
    transition: all 0.22s ease;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.repo-badge:hover {
    color: var(--text-main);
    border-color: var(--text-main);
    background: var(--bg-card);
}

.project-title {
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.project-subtitle {
    font-size: 0.86rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: -6px;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.65;
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
    padding-top: 4px;
}

.tech-tag {
    padding: 4px 10px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    background: var(--bg-subtle);
    border: 1px solid var(--border-hairline);
    color: var(--text-secondary);
    transition: all 0.22s ease;
}

.tech-tag:hover {
    border-color: var(--text-main);
    color: var(--text-main);
    background: var(--bg-card);
}

.project-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.btn-github-action,
.btn-docs-action {
    font-size: 0.84rem;
    padding: 10px 18px;
}

/* ========================================================================= */
/* Experience / Certificates & Toolkit Section (Proficiency Removed) */
/* ========================================================================= */
.experience-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto;
}

.certificate-card,
.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.certificate-card:hover,
.tool-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lg);
}

/* Certificate Gallery Showcase */
.certificate-card {
    position: relative;
    width: 100%;
    min-height: 460px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-subtle);
    z-index: 1;
}

.certificate-card .certificates {
    position: absolute;
    top: 0;
    left: 0;
    height: calc(100% - 56px);
    display: flex;
    align-items: center;
    gap: 56px;
    transition: left 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: left;
}

.certificate-card .certificates .item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-card .certificates img {
    width: min(470px, 78vw);
    max-height: 350px;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-hairline);
    user-select: none;
    -webkit-user-drag: none;
}

/* Certificate Navigation Buttons */
.certificate-buttons {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    width: 100%;
    padding: 0 22px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 15;
}

.certificate-buttons button {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    font-size: 1rem;
    background-color: var(--cert-btn-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-main);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.certificate-buttons button:hover {
    background-color: var(--text-main);
    color: var(--bg-main);
    border-color: var(--text-main);
    transform: scale(1.08);
}

.certificate-buttons button:active {
    transform: scale(0.95);
}

/* Dots Indicator */
.dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 15;
}

.dots li {
    width: 8px;
    height: 8px;
    background-color: var(--border-strong);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.35s ease;
}

.dots li:hover {
    background-color: var(--text-muted);
}

.dots li.active {
    width: 28px;
    background-color: var(--text-main);
}

/* Daily Toolkit Card */
.tool-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 26px 32px;
    flex-wrap: wrap;
}

.tool-card-header {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tool-card-label {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.tool-card-sub {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.tool-items-grid {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.tool-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: var(--radius-full);
    background: var(--bg-subtle);
    border: 1px solid var(--border-hairline);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: default;
}

.tool-item:hover {
    transform: translateY(-2px);
    background: var(--bg-card);
    border-color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.tool-item img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    transition: filter 0.35s ease;
}

html[data-theme="dark"] .tool-item img[src*="capcut.svg"] {
    filter: invert(1);
}

.tool-item span {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.tool-item:hover span {
    color: var(--text-main);
}

/* ========================================================================= */
/* Footer Section */
/* ========================================================================= */
.footer {
    width: min(100% - 2.5rem, 1120px);
    margin: 0 auto;
    padding: 56px 0 120px;
    border-top: 1px solid var(--border-hairline);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
}

.footer .links ul,
.footer .social-links ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer .links ul li a {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
    padding: 4px 6px;
}

.footer .links ul li a:hover {
    color: var(--text-main);
}

.footer .social-links ul li a {
    font-size: 1.55rem;
    color: var(--text-muted);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer .social-links ul li a:hover {
    transform: translateY(-3px);
}

.footer .social-links ul li a.fb:hover { color: #1877f2; }
.footer .social-links ul li a.ig:hover { color: #e4405f; }
.footer .social-links ul li a.dc:hover { color: #5865f2; }
.footer .social-links ul li a.git:hover { color: var(--text-main); }

.footer .copyright p {
    font-family: var(--font-mono);
    color: var(--text-subtle);
    font-size: 0.78rem;
    text-align: center;
}

/* ========================================================================= */
/* Responsive Media Queries */
/* ========================================================================= */
@media screen and (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: auto;
        padding: 36px 0 80px;
        gap: 40px;
    }

    .hero .content {
        max-width: 100%;
        align-items: center;
    }

    .hero .content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero .btn-container {
        justify-content: center;
    }

    .hero .hero-img {
        order: -1;
    }

    .hero-img-wrapper {
        width: min(100%, 310px);
    }

    .project-card {
        width: 100%;
        padding: 24px 20px;
    }

    .tool-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }
}

@media screen and (max-width: 640px) {
    .header {
        padding: 20px 0 16px;
    }

    .header-meta {
        font-size: 0.68rem;
        gap: 10px;
    }

    .wrapper {
        padding: 68px 0;
    }

    .hero-img-wrapper {
        width: min(100%, 260px);
        border-radius: 24px;
    }

    .btn-container {
        width: 100%;
        justify-content: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .project-actions .btn {
        width: auto;
        flex: 1 1 140px;
        max-width: none;
    }

    .certificate-card {
        min-height: 350px;
    }

    .certificate-card .certificates img {
        width: min(300px, 82vw);
        max-height: 240px;
    }

    .certificate-buttons {
        padding: 0 12px;
    }

    .certificate-buttons button {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .tool-items-grid {
        width: 100%;
    }

    .tool-item {
        padding: 8px 14px;
    }

    .navbar {
        bottom: 14px;
        width: calc(100% - 1.5rem);
        height: 48px;
    }

    .navbar ul {
        padding: 0 6px;
    }

    .navbar ul li a {
        font-size: 0.78rem;
        padding: 6px 10px;
    }

    .footer {
        padding: 44px 0 100px;
    }
}
