remove: ai integration, add: local ai

This commit is contained in:
ssbg04 committed 2026-06-05 23:58:12 +08:00
1 parent 0c0977a220
commit 1ec1be4dcc
17 files changed
+1832 -2163

No files matched your search

+110
View File
@@ -0,0 +1,110 @@
/* =====================================================
BASE — Reset, html/body, scrollbar, mesh background
===================================================== */
/* Prevent horizontal scroll on all viewports */
html,
body {
overflow-x: hidden;
max-width: 100%;
}
/* --- Reset --- */
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
scroll-behavior: smooth;
font-size: 16px;
}
/* Custom Scrollbar */
html::-webkit-scrollbar { width: 6px; }
html::-webkit-scrollbar-track { background: var(--bg); }
html::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
html::-webkit-scrollbar-thumb:hover { background: var(--accent-2); }
body {
font-family: 'Inter', sans-serif;
line-height: 1.6;
background: var(--bg);
color: var(--text-main);
overflow-x: hidden;
}
/* Hidden dark-mode toggle checkbox */
.toggle-checkbox {
display: none;
}
/* --- Animated Mesh Background (disabled for professional look) --- */
.mesh-bg {
display: none;
}
.orb {
position: absolute;
border-radius: 50%;
filter: blur(100px);
opacity: 0.15;
animation: float-orb 20s ease-in-out infinite;
}
.orb-1 {
width: 600px;
height: 600px;
background: radial-gradient(circle, #7c3aed, transparent 70%);
top: -200px;
left: -200px;
animation-duration: 25s;
animation-delay: 0s;
}
.orb-2 {
width: 500px;
height: 500px;
background: radial-gradient(circle, #6366f1, transparent 70%);
top: 30%;
right: -150px;
animation-duration: 20s;
animation-delay: -8s;
opacity: 0.12;
}
.orb-3 {
width: 400px;
height: 400px;
background: radial-gradient(circle, #06b6d4, transparent 70%);
bottom: 10%;
left: 20%;
animation-duration: 30s;
animation-delay: -15s;
opacity: 0.08;
}
/* Light mode: softer orbs */
.toggle-checkbox:not(:checked)~.mesh-bg .orb {
opacity: 0.07;
}
/* --- Keyframes --- */
@keyframes float-orb {
0%, 100% { transform: translate(0, 0) scale(1); }
33% { transform: translate(40px, -60px) scale(1.08); }
66% { transform: translate(-30px, 40px) scale(0.95); }
}
@keyframes pulse-dot {
0%, 100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.6; transform: scale(0.8); }
}
@keyframes bounce {
0%, 80%, 100% { transform: scale(0); }
40% { transform: scale(1.0); }
}
+263
View File
@@ -0,0 +1,263 @@
/* =====================================================
PROJECT CARDS
===================================================== */
.project-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
gap: 24px;
}
a.project-card {
text-decoration: none;
color: inherit;
display: block;
background: var(--card-bg);
border: 1px solid var(--border);
border-radius: 16px;
overflow: hidden;
transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
backdrop-filter: blur(10px);
}
a.project-card:hover {
transform: translateY(-6px);
border-color: var(--border-hover);
box-shadow: var(--shadow-glow);
}
.card-img {
position: relative;
height: 200px;
overflow: hidden;
}
.card-img img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s var(--ease);
}
a.project-card:hover .card-img img {
transform: scale(1.05);
}
.card-img-overlay {
position: absolute;
inset: 0;
background: linear-gradient(to bottom, transparent 40%, rgba(9, 13, 22, 0.8));
transition: opacity 0.3s;
}
.card-content {
padding: 24px;
}
.card-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 10px;
gap: 10px;
}
.card-header h3 {
font-family: 'Outfit', sans-serif;
font-size: 1.15rem;
font-weight: 700;
color: var(--text-main);
line-height: 1.3;
}
.arrow-icon {
font-size: 1.1rem;
opacity: 0;
transform: translate(-6px, 6px);
transition: all 0.3s var(--ease);
color: var(--accent-2);
flex-shrink: 0;
}
a.project-card:hover .arrow-icon {
opacity: 1;
transform: translate(0, 0);
}
.card-content p {
color: var(--text-muted);
font-size: 0.88rem;
margin-bottom: 18px;
line-height: 1.7;
}
.stack-badges {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.stack-badge {
padding: 4px 10px;
border-radius: 50px;
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.04em;
background: rgba(59, 130, 246, 0.12);
border: 1px solid rgba(59, 130, 246, 0.25);
color: var(--accent-2);
}
/* =====================================================
CERTIFICATIONS
===================================================== */
.cert-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
gap: 20px;
}
.cert-card {
background: var(--card-bg);
border: 1px solid var(--border);
border-radius: 16px;
padding: 28px;
display: flex;
align-items: center;
gap: 20px;
transition: all 0.3s var(--ease);
backdrop-filter: blur(10px);
cursor: default;
}
.cert-card:hover {
border-color: var(--border-hover);
transform: translateY(-3px);
box-shadow: var(--shadow-glow);
}
.cert-icon {
font-size: 2rem;
width: 56px;
height: 56px;
display: flex;
align-items: center;
justify-content: center;
background: rgba(37, 99, 235, 0.1);
border: 1px solid rgba(37, 99, 235, 0.2);
border-radius: 14px;
flex-shrink: 0;
transition: background 0.3s;
}
.cert-card:hover .cert-icon {
background: rgba(37, 99, 235, 0.18);
}
.cert-info h3 {
font-family: 'Outfit', sans-serif;
font-size: 1rem;
font-weight: 700;
margin-bottom: 4px;
color: var(--text-main);
}
.issuer {
color: var(--accent-2);
font-size: 0.82rem;
font-weight: 600;
}
.date {
display: block;
font-size: 0.75rem;
color: var(--text-subtle);
margin-top: 4px;
}
/* =====================================================
BLOG CARDS
===================================================== */
.blog-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
gap: 24px;
}
.blog-card {
background: var(--card-bg);
border: 1px solid var(--border);
padding: 32px;
border-radius: 16px;
display: flex;
flex-direction: column;
transition: all 0.3s var(--ease);
backdrop-filter: blur(10px);
}
.blog-card:hover {
transform: translateY(-5px);
border-color: var(--border-hover);
box-shadow: var(--shadow-glow);
}
.blog-meta {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.75rem;
color: var(--text-subtle);
margin-bottom: 16px;
text-transform: uppercase;
letter-spacing: 0.08em;
font-weight: 600;
}
.blog-tag {
color: var(--accent-2);
background: rgba(59, 130, 246, 0.12);
border: 1px solid rgba(59, 130, 246, 0.25);
padding: 3px 10px;
border-radius: 50px;
}
.blog-title {
font-family: 'Outfit', sans-serif;
font-size: 1.15rem;
font-weight: 700;
margin-bottom: 12px;
line-height: 1.4;
color: var(--text-main);
}
.blog-excerpt {
color: var(--text-muted);
font-size: 0.9rem;
margin-bottom: 24px;
flex-grow: 1;
line-height: 1.7;
}
.read-more {
text-decoration: none;
color: var(--accent-2);
font-weight: 600;
font-size: 0.85rem;
display: inline-flex;
align-items: center;
gap: 6px;
transition: gap 0.2s var(--ease), opacity 0.2s;
}
.read-more:hover {
gap: 10px;
opacity: 0.8;
}
/* =====================================================
VIEW ALL BUTTON
===================================================== */
.view-all-container {
display: flex;
justify-content: center;
margin-top: 50px;
}
+291
View File
@@ -0,0 +1,291 @@
/* =====================================================
PORTFOLIO AI CHATBOT
===================================================== */
#portfolio-chatbot-widget {
position: fixed;
bottom: 24px;
right: 24px;
z-index: 9999;
font-family: 'Inter', sans-serif;
}
#chatbot-toggle-btn {
position: relative;
width: 56px;
height: 56px;
border-radius: 50%;
background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
color: #fff;
border: none;
cursor: pointer;
box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
#chatbot-toggle-btn:hover {
transform: scale(1.08) translateY(-2px);
box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
}
#chatbot-toggle-btn svg {
width: 24px;
height: 24px;
}
.pulse-notification-dot {
position: absolute;
top: 2px;
right: 2px;
width: 12px;
height: 12px;
background: #22c55e;
border: 2px solid var(--bg);
border-radius: 50%;
animation: pulse-dot 2s ease-in-out infinite;
}
#chatbot-window {
position: fixed;
bottom: 96px;
right: 24px;
width: 360px;
height: min(500px, 80vh);
display: flex;
flex-direction: column;
background: var(--glass-bg);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid var(--border);
border-radius: 16px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
overflow: hidden;
transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
transform: translateY(10px);
opacity: 0;
pointer-events: none;
}
#chatbot-window.active {
transform: translateY(0);
opacity: 1;
pointer-events: auto;
}
#chatbot-window.hidden {
display: none !important;
}
#chatbot-header {
padding: 14px 18px;
background: rgba(30, 41, 59, 0.3);
border-bottom: 1px solid var(--border);
display: flex;
justify-content: space-between;
align-items: center;
}
.header-avatar-info {
display: flex;
align-items: center;
gap: 10px;
}
.avatar-container {
position: relative;
width: 36px;
height: 36px;
}
.chat-avatar {
width: 100%;
height: 100%;
border-radius: 50%;
object-fit: cover;
border: 1.5px solid var(--accent);
}
.status-indicator {
position: absolute;
bottom: 0;
right: 0;
width: 10px;
height: 10px;
border-radius: 50%;
border: 1.5px solid var(--bg);
}
.status-indicator.online {
background: #22c55e;
}
.header-text-info h4 {
font-family: 'Outfit', sans-serif;
font-size: 0.95rem;
font-weight: 700;
color: var(--text-main);
line-height: 1.2;
}
.status-text {
font-size: 0.72rem;
color: var(--text-muted);
}
#chatbot-close-btn {
background: transparent;
border: none;
color: var(--text-muted);
cursor: pointer;
padding: 4px;
display: flex;
align-items: center;
justify-content: center;
transition: color 0.2s;
border-radius: 6px;
}
#chatbot-close-btn:hover {
color: var(--text-main);
background: var(--card-bg);
}
#chatbot-messages {
flex-grow: 1;
overflow-y: auto;
padding: 16px;
display: flex;
flex-direction: column;
gap: 12px;
background: rgba(0, 0, 0, 0.05);
}
/* Custom Scrollbar for Chat */
#chatbot-messages::-webkit-scrollbar { width: 4px; }
#chatbot-messages::-webkit-scrollbar-track { background: transparent; }
#chatbot-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.chat-message {
display: flex;
width: 100%;
}
.chat-message.user-msg {
justify-content: flex-end;
}
.chat-message.bot-msg {
justify-content: flex-start;
}
.msg-bubble {
max-width: 80%;
padding: 10px 14px;
border-radius: 14px;
font-size: 0.88rem;
line-height: 1.5;
word-break: break-word;
}
.user-msg .msg-bubble {
background: var(--accent);
color: #fff;
border-bottom-right-radius: 2px;
box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}
.bot-msg .msg-bubble {
background: var(--card-bg);
color: var(--text-main);
border: 1px solid var(--border);
border-bottom-left-radius: 2px;
}
.bot-msg.error-msg .msg-bubble {
border-color: rgba(239, 68, 68, 0.3);
background: rgba(239, 68, 68, 0.05);
color: #ef4444;
}
/* Form & Input */
#chatbot-input-form {
padding: 12px 16px;
background: var(--glass-bg);
border-top: 1px solid var(--border);
display: flex;
gap: 8px;
align-items: center;
}
#chatbot-input-field {
flex-grow: 1;
background: var(--card-bg);
border: 1px solid var(--border);
color: var(--text-main);
padding: 10px 14px;
border-radius: 10px;
font-size: 0.88rem;
outline: none;
transition: border-color 0.2s;
}
#chatbot-input-field:focus {
border-color: var(--border-hover);
}
#chatbot-send-btn {
background: var(--accent);
color: #fff;
border: none;
width: 38px;
height: 38px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: background 0.2s, transform 0.2s;
flex-shrink: 0;
}
#chatbot-send-btn:hover {
background: var(--accent-2);
transform: scale(1.05);
}
#chatbot-send-btn svg {
width: 16px;
height: 16px;
}
/* Typing Indicator Animation */
.typing-bubble {
display: flex;
align-items: center;
gap: 4px;
padding: 12px 16px !important;
}
.dot-bounce {
width: 6px;
height: 6px;
background: var(--text-muted);
border-radius: 50%;
display: inline-block;
animation: bounce 1.4s infinite ease-in-out both;
}
.dot-bounce:nth-child(1) { animation-delay: -0.32s; }
.dot-bounce:nth-child(2) { animation-delay: -0.16s; }
/* Markdown spacing inside bubbles */
.msg-bubble ul {
padding-left: 20px;
margin: 6px 0;
}
.msg-bubble li {
margin-bottom: 4px;
}
+89
View File
@@ -0,0 +1,89 @@
/* =====================================================
CONTACT SECTION
===================================================== */
.contact-container {
max-width: 620px;
margin: 0 auto;
text-align: center;
}
.contact-container>p {
color: var(--text-muted);
margin-bottom: 40px;
font-size: 1.05rem;
line-height: 1.8;
}
.social-links {
display: flex;
justify-content: center;
gap: 14px;
margin-bottom: 50px;
}
.social-btn {
display: flex;
align-items: center;
justify-content: center;
width: 50px;
height: 50px;
border-radius: 13px;
background: var(--card-bg);
border: 1px solid var(--border);
color: var(--text-muted);
transition: all 0.25s var(--ease);
text-decoration: none;
}
.social-btn svg {
width: 20px;
height: 20px;
}
.social-btn:hover {
border-color: var(--border-hover);
color: var(--accent-2);
transform: translateY(-3px);
background: rgba(37, 99, 235, 0.08);
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}
.email-form {
display: flex;
flex-direction: column;
gap: 14px;
text-align: left;
}
input,
textarea {
width: 100%;
padding: 14px 18px;
background: var(--card-bg);
border: 1px solid var(--border);
color: var(--text-main);
border-radius: 12px;
font-family: inherit;
font-size: 0.95rem;
transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
backdrop-filter: blur(10px);
outline: none;
}
input::placeholder,
textarea::placeholder {
color: var(--text-subtle);
}
input:focus,
textarea:focus {
border-color: var(--border-hover);
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
background: rgba(37, 99, 235, 0.03);
}
/* reCAPTCHA centering */
.g-recaptcha {
display: flex;
justify-content: center;
}
+227
View File
@@ -0,0 +1,227 @@
/* =====================================================
HERO SECTION
===================================================== */
.hero {
display: flex;
align-items: center;
justify-content: space-between;
gap: 60px;
padding: clamp(60px, 10vw, 120px) 5% clamp(50px, 8vw, 100px);
max-width: 1100px;
margin: 0 auto;
width: 100%;
box-sizing: border-box;
}
.hero-text {
flex: 1;
}
.hero-badge {
display: inline-flex;
align-items: center;
gap: 8px;
background: rgba(37, 99, 235, 0.1);
border: 1px solid rgba(37, 99, 235, 0.25);
border-radius: 50px;
padding: 6px 16px;
font-size: 0.8rem;
font-weight: 600;
color: var(--accent-2);
letter-spacing: 0.05em;
text-transform: uppercase;
margin-bottom: 20px;
}
.hero-badge .dot {
width: 7px;
height: 7px;
background: #22c55e;
border-radius: 50%;
animation: pulse-dot 2s ease-in-out infinite;
}
h1 {
font-family: 'Outfit', sans-serif;
font-size: clamp(2.8rem, 5.5vw, 4rem);
font-weight: 900;
line-height: 1.05;
letter-spacing: -2px;
margin-bottom: 20px;
color: var(--text-main);
}
.highlight {
background: linear-gradient(135deg, var(--grad-1) 0%, var(--grad-2) 50%, var(--grad-3) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.subtitle {
color: var(--text-muted);
font-size: clamp(0.95rem, 2vw, 1.1rem);
margin-bottom: 30px;
max-width: 500px;
line-height: 1.7;
}
.hero-btns {
display: flex;
gap: 14px;
flex-wrap: wrap;
}
/* --- Hero Profile Image --- */
.hero-img-container {
position: relative;
width: 280px;
height: 280px;
flex-shrink: 0;
}
.img-ring {
position: absolute;
inset: -8px;
border-radius: 24px;
border: 2px solid var(--accent);
background: transparent;
z-index: 0;
opacity: 0.4;
}
.profile-pic {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 20px;
border: 2px solid var(--border);
z-index: 2;
transition: opacity 0.4s var(--ease);
opacity: 0;
}
/* Dark mode image states */
.img-night-normal { opacity: 1; z-index: 3; cursor: default; }
.hero-img-container:hover .img-night-hover { opacity: 1; z-index: 4; cursor: default; }
.hero-img-container:hover .img-night-normal { opacity: 0; }
/* Light mode image states */
body:has(#dark-mode-toggle:not(:checked)) .img-night-normal,
body:has(#dark-mode-toggle:not(:checked)) .img-night-hover { opacity: 0 !important; }
body:has(#dark-mode-toggle:not(:checked)) .img-day-normal { opacity: 1; z-index: 3; cursor: default; }
body:has(#dark-mode-toggle:not(:checked)) .hero-img-container:hover .img-day-hover { opacity: 1; z-index: 4; cursor: default; }
body:has(#dark-mode-toggle:not(:checked)) .hero-img-container:hover .img-day-normal { opacity: 0; }
.glow-effect {
position: absolute;
inset: 0;
background: var(--accent);
border-radius: 20px;
opacity: 0.12;
z-index: 1;
filter: blur(30px);
transform: translate(10px, 10px);
transition: opacity 0.4s;
}
.hero-img-container:hover .glow-effect {
opacity: 0.2;
}
/* =====================================================
ABOUT SECTION & TECH STACK
===================================================== */
.about-content {
display: grid;
grid-template-columns: 3fr 2fr;
gap: 60px;
align-items: start;
}
.about-text p {
color: var(--text-muted);
margin-bottom: 18px;
font-size: 1.05rem;
line-height: 1.8;
}
.about-text p strong {
color: var(--text-main);
font-weight: 600;
}
.tech-stack h3 {
font-family: 'Outfit', sans-serif;
font-size: 1rem;
font-weight: 700;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.1em;
margin-bottom: 16px;
}
.tags {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.tags span {
background: var(--card-bg);
border: 1px solid var(--border);
padding: 7px 16px;
border-radius: 50px;
font-size: 0.82rem;
font-weight: 600;
color: var(--text-muted);
letter-spacing: 0.02em;
transition: all 0.2s var(--ease);
backdrop-filter: blur(10px);
}
.tags span:hover {
border-color: var(--border-hover);
color: var(--accent-2);
background: rgba(37, 99, 235, 0.08);
transform: translateY(-1px);
}
/* =====================================================
STATS ROW
===================================================== */
.stats-row {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
margin-top: 50px;
padding-top: 50px;
border-top: 1px solid var(--border);
}
.stat-item {
text-align: center;
}
.stat-number {
font-family: 'Outfit', sans-serif;
font-size: 2.2rem;
font-weight: 900;
background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
line-height: 1;
margin-bottom: 6px;
}
.stat-label {
font-size: 0.8rem;
color: var(--text-muted);
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.08em;
}
+83
View File
@@ -0,0 +1,83 @@
/* =====================================================
LAYOUT — Site wrapper, sections, labels, dividers, page hero
===================================================== */
.site-wrapper {
position: relative;
z-index: 1;
min-height: 100vh;
width: 100%;
display: flex;
flex-direction: column;
padding-top: 73px; /* offset for fixed floating nav */
transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
/* --- Section Commons --- */
.section-pad {
padding: clamp(60px, 8vw, 100px) 5%;
max-width: 1100px;
margin: 0 auto;
width: 100%;
box-sizing: border-box;
}
.section-header {
margin-bottom: 60px;
}
.section-label {
display: inline-block;
font-size: 0.75rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.15em;
color: var(--accent-2);
margin-bottom: 12px;
}
.section-title {
font-family: 'Outfit', sans-serif;
font-size: clamp(1.8rem, 3vw, 2.5rem);
font-weight: 800;
letter-spacing: -1px;
background: linear-gradient(135deg, var(--text-main) 60%, var(--text-muted));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
/* --- Divider --- */
.section-divider {
height: 1px;
background: linear-gradient(to right, transparent, var(--border), transparent);
margin: 0 5%;
}
/* --- Page Hero (sub-pages: blog, projects, certifications) --- */
.page-hero {
padding: clamp(50px, 8vw, 80px) 5% clamp(40px, 6vw, 60px);
max-width: 1100px;
margin: 0 auto;
width: 100%;
box-sizing: border-box;
}
.page-hero h1 {
font-size: clamp(1.8rem, 5vw, 3rem);
margin-bottom: 14px;
}
.page-hero .subtitle {
max-width: 500px;
}
/* --- Footer --- */
footer {
padding: 50px 5%;
text-align: center;
color: var(--text-subtle);
font-size: 0.85rem;
border-top: 1px solid var(--border);
margin-top: auto;
}
+123
View File
@@ -0,0 +1,123 @@
/* =====================================================
NAVIGATION
===================================================== */
nav {
position: fixed;
top: 0;
z-index: 1000;
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 5%;
width: 100%;
background: var(--glass-bg);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border-bottom: 1px solid var(--border);
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.logo {
display: inline-flex;
align-items: baseline;
}
.logo-link,
.logo-dot-link {
font-family: 'Outfit', sans-serif;
font-weight: 900;
font-size: 1.6rem;
letter-spacing: -2px;
background: linear-gradient(135deg, var(--grad-1), var(--grad-2), var(--grad-3));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
text-decoration: none;
display: inline-block;
}
.logo-dot-link {
cursor: default;
}
.nav-links {
display: flex;
align-items: center;
gap: 8px;
}
.nav-links a {
color: var(--text-muted);
text-decoration: none;
font-size: 0.9rem;
font-weight: 500;
padding: 7px 14px;
border-radius: 8px;
transition: color 0.2s var(--ease), background 0.2s var(--ease);
letter-spacing: 0.02em;
}
.nav-links a:hover {
color: var(--text-main);
background: var(--card-bg);
}
.nav-links a.active-nav {
color: var(--accent);
background: rgba(37, 99, 235, 0.1);
}
/* Theme Toggle */
.mode-btn {
cursor: pointer;
margin-left: 8px;
width: 38px;
height: 38px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 10px;
background: var(--card-bg);
border: 1px solid var(--border);
font-size: 1.1rem;
transition: background 0.2s, border-color 0.2s, transform 0.2s;
user-select: none;
}
.mode-btn:hover {
border-color: var(--border-hover);
transform: scale(1.05);
}
body:has(#dark-mode-toggle:checked) .icon-sun { display: none; }
body:has(#dark-mode-toggle:checked) .icon-moon { display: flex; }
body:has(#dark-mode-toggle:not(:checked)) .icon-moon { display: none; }
body:has(#dark-mode-toggle:not(:checked)) .icon-sun { display: flex; }
/* Hamburger (Mobile) */
.hamburger {
display: none;
cursor: pointer;
flex-direction: column;
gap: 5px;
padding: 4px;
}
.bar {
display: block;
width: 24px;
height: 2px;
background: var(--text-main);
border-radius: 2px;
transition: all 0.3s var(--ease);
}
.hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Elements hidden on desktop by default */
.nav-close-btn { display: none; }
.nav-overlay { display: none; }
.mode-btn-panel { display: none; }
+242
View File
@@ -0,0 +1,242 @@
/* =====================================================
RESPONSIVE — TABLET (≤ 900px)
===================================================== */
@media (max-width: 900px) {
.hero {
gap: 40px;
}
.hero-img-container {
width: 220px;
height: 220px;
}
.about-content {
grid-template-columns: 1fr;
gap: 40px;
}
.stats-row {
grid-template-columns: repeat(3, 1fr);
}
}
/* =====================================================
RESPONSIVE — MOBILE (≤ 768px)
===================================================== */
@media (max-width: 768px) {
/* Hamburger visible */
.hamburger {
display: flex;
}
/* Nav desktop links hidden by default on mobile */
.nav-links {
position: fixed;
top: 0;
right: -280px; /* slide from right */
left: auto;
width: 280px;
height: 100vh;
flex-direction: column;
align-items: flex-start;
justify-content: flex-start;
text-align: left;
padding: 80px 28px 40px;
gap: 4px;
background: var(--glass-bg);
backdrop-filter: blur(28px);
-webkit-backdrop-filter: blur(28px);
border-left: 1px solid var(--border);
transition: right 0.35s var(--ease);
z-index: 1001;
box-shadow: -4px 0 40px rgba(0, 0, 0, 0.3);
pointer-events: none; /* prevent clicks when off-screen */
}
/* Slide in from right */
.nav-links.active {
right: 0;
pointer-events: auto; /* re-enable clicks when open */
}
.nav-links a {
font-size: 1.1rem;
font-weight: 600;
display: block;
padding: 12px 16px;
width: 100%;
border-radius: 12px;
}
/* Nav close button */
.nav-close-btn {
display: flex;
position: absolute;
top: 22px;
right: 20px;
background: var(--card-bg);
border: 1px solid var(--border);
color: var(--text-main);
width: 36px;
height: 36px;
border-radius: 9px;
align-items: center;
justify-content: center;
font-size: 1.1rem;
cursor: pointer;
transition: background 0.2s, border-color 0.2s, transform 0.2s;
z-index: 1002;
}
.nav-close-btn:hover {
background: rgba(37, 99, 235, 0.1);
border-color: var(--border-hover);
transform: rotate(90deg);
}
/* Nav overlay backdrop */
.nav-overlay {
display: block;
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.45);
z-index: 1000;
opacity: 0;
pointer-events: none;
transition: opacity 0.35s var(--ease);
}
.nav-overlay.active {
opacity: 1;
pointer-events: auto;
}
/* Theme toggle — inside the slide panel on mobile */
.mode-btn-panel {
display: flex;
margin-top: 24px;
margin-left: 0;
align-self: flex-start;
}
/* Hide the nav-bar toggle on mobile (it's now inside the panel) */
.mode-btn-nav {
display: none;
}
/* Hero */
.hero {
flex-direction: column-reverse;
text-align: center;
gap: 30px;
}
.hero-btns {
justify-content: center;
flex-wrap: wrap;
}
.subtitle {
margin: 0 auto 24px;
}
.hero-badge {
margin: 0 auto 16px;
}
.hero-img-container {
width: 180px;
height: 180px;
}
/* Stats */
.stats-row {
grid-template-columns: repeat(3, 1fr);
gap: 8px;
}
.stat-number {
font-size: 1.6rem;
}
.stat-label {
font-size: 0.7rem;
}
/* Certs */
.cert-card {
flex-direction: column;
text-align: center;
}
/* Project grid single column on very narrow */
.project-grid,
.blog-grid {
grid-template-columns: 1fr;
}
/* Back to top smaller — centered */
#back-to-top {
bottom: 16px;
left: 50%;
right: auto;
width: 42px;
height: 42px;
}
/* Section divider */
.section-divider {
margin: 0 4%;
}
}
/* =====================================================
RESPONSIVE — SMALL MOBILE (≤ 480px)
===================================================== */
@media (max-width: 480px) {
h1 {
letter-spacing: -1px;
}
.stats-row {
grid-template-columns: repeat(3, 1fr);
}
.cert-grid {
grid-template-columns: 1fr;
}
.btn {
padding: 11px 18px;
font-size: 0.9rem;
}
.hero-img-container {
width: 150px;
height: 150px;
}
.social-links {
gap: 10px;
}
.social-btn {
width: 44px;
height: 44px;
}
/* Chatbot */
#portfolio-chatbot-widget {
bottom: 16px;
right: 16px;
}
#chatbot-window {
width: calc(100vw - 32px);
right: 16px;
bottom: 80px;
height: 60vh;
}
}
+99
View File
@@ -0,0 +1,99 @@
/* =====================================================
UTILITIES
===================================================== */
/* --- Back to Top Button --- */
#back-to-top {
position: fixed;
bottom: 30px;
left: 50%;
transform: translateX(-50%) translateY(20px);
width: 48px;
height: 48px;
background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
color: white;
border-radius: 13px;
display: flex;
justify-content: center;
align-items: center;
text-decoration: none;
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
z-index: 998;
opacity: 0;
visibility: hidden;
transition: all 0.3s var(--ease);
}
#back-to-top.show {
opacity: 1;
visibility: visible;
transform: translateX(-50%) translateY(0);
}
#back-to-top:hover {
transform: translateX(-50%) translateY(-4px);
box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}
/* --- Scroll Reveal Animations --- */
.reveal {
opacity: 0;
transform: translateY(40px);
transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.active {
opacity: 1;
transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
/* --- Buttons --- */
.btn {
display: inline-flex;
align-items: center;
gap: 8px;
text-decoration: none;
padding: 13px 26px;
border-radius: 10px;
font-weight: 600;
font-size: 0.95rem;
transition: all 0.25s var(--ease);
border: none;
cursor: pointer;
font-family: inherit;
letter-spacing: 0.01em;
}
.btn.primary {
background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
color: #fff;
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.btn.primary:hover {
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}
.btn.secondary {
background: var(--card-bg);
color: var(--text-main);
border: 1px solid var(--border);
backdrop-filter: blur(10px);
}
.btn.secondary:hover {
transform: translateY(-2px);
border-color: var(--border-hover);
background: rgba(37, 99, 235, 0.08);
}
.btn.full-width {
width: 100%;
justify-content: center;
}
+58
View File
@@ -0,0 +1,58 @@
/* =====================================================
VARIABLES & THEME TOKENS
===================================================== */
/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');
/* --- CSS Variables (Dark Mode Default) --- */
:root {
/* Backgrounds */
--bg: #090d16;
--bg-secondary: #0f172a;
--card-bg: rgba(30, 41, 59, 0.4);
--card-border: rgba(148, 163, 184, 0.1);
--glass-bg: rgba(9, 13, 22, 0.8);
/* Text */
--text-main: #f8fafc;
--text-muted: #94a3b8;
--text-subtle: #64748b;
/* Accents */
--accent: #2563eb;
--accent-2: #3b82f6;
--accent-glow: rgba(37, 99, 235, 0.15);
--grad-1: #3b82f6;
--grad-2: #2563eb;
--grad-3: #1d4ed8;
/* Borders */
--border: rgba(148, 163, 184, 0.12);
--border-hover: rgba(37, 99, 235, 0.45);
/* Shadows */
--shadow-card: 0 4px 20px rgba(0, 0, 0, 0.25);
--shadow-glow: 0 4px 20px rgba(37, 99, 235, 0.08);
/* Transitions */
--ease: cubic-bezier(0.4, 0, 0.2, 1);
}
/* --- Light Mode Overrides --- */
body:has(#dark-mode-toggle:not(:checked)) {
--bg: #f8fafc;
--bg-secondary: #f1f5f9;
--card-bg: #ffffff;
--card-border: rgba(148, 163, 184, 0.15);
--glass-bg: rgba(248, 250, 252, 0.85);
--text-main: #0f172a;
--text-muted: #475569;
--text-subtle: #94a3b8;
--accent: #2563eb;
--accent-glow: rgba(37, 99, 235, 0.1);
--border: rgba(148, 163, 184, 0.12);
--border-hover: rgba(37, 99, 235, 0.4);
--shadow-card: 0 4px 12px rgba(15, 23, 42, 0.05);
--shadow-glow: 0 4px 12px rgba(37, 99, 235, 0.05);
}
+12 -1723
View File
File diff suppressed because it is too large. Load diff