@import url(fontawesome-all.min.css);

/* ── VARIABLES ── */
:root {
	--bg:            #252838;
	--bg-alt:        #2c2f45;
	--bg-card:       #2e3248;
	--bg-card-hover: #353854;
	--border:        rgba(255,255,255,0.09);
	--border-mid:    rgba(255,255,255,0.16);
	--text:          #ecedf5;
	--text-muted:    rgba(236,237,245,0.62);
	--text-subtle:   rgba(236,237,245,0.32);
	--accent:        #a0aff5;
	--accent-dim:    rgba(160,175,245,0.13);
	--accent-glow:   rgba(160,175,245,0.3);
	--gold:          #d4b483;
	--gold-dim:      rgba(212,180,131,0.13);
	--font-name:     'Waterfall', cursive;
	--font-body:     'DM Sans', system-ui, sans-serif;
	--font-mono:     'DM Mono', monospace;
	--radius:        10px;
	--radius-lg:     14px;
	--shadow:        0 4px 20px rgba(0,0,0,0.3);
	--transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
	background-color: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-weight: 300;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
body.is-preload * { animation: none !important; transition: none !important; }
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); border: none; }
a:hover { color: #fff; }
strong, b { font-weight: 500; color: #fff; }
em { font-style: italic; color: var(--gold); }
p { margin-bottom: 1.25em; }

/* ── TYPE ── */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-body); font-weight: 600; line-height: 1.25; color: #fff; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1rem; }
h4 { font-size: 0.95rem; font-weight: 500; }

/* ── LAYOUT ── */
#page-wrapper { position: relative; }
.inner { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* ── SECTIONS ── */
.section-block { padding: 6rem 0; background-color: var(--bg); }
.section-block.alt-bg { background-color: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { margin-bottom: 0.5rem; }
.section-subtitle { color: var(--text-muted); font-size: 1rem; margin: 0; }

.section-label {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 0.68rem; font-weight: 500;
	letter-spacing: 0.2em; text-transform: uppercase;
	color: var(--accent); background: var(--accent-dim);
	border: 1px solid rgba(160,175,245,0.22);
	padding: 0.3em 0.85em; border-radius: 2em; margin-bottom: 1rem;
}

/* ── BUTTONS ── */
.btn {
	display: inline-flex; align-items: center; gap: 0.45em;
	font-family: var(--font-body); font-size: 0.88rem; font-weight: 500;
	letter-spacing: 0.04em; padding: 0.8em 1.8em;
	border-radius: var(--radius); border: none; cursor: pointer;
	transition: all var(--transition); text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #1a1d2e !important; }
.btn-primary:hover { background: #bac5f7; transform: translateY(-2px); box-shadow: 0 5px 18px var(--accent-glow); color: #1a1d2e !important; }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--text-muted) !important; border: 1px solid var(--border-mid); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff !important; transform: translateY(-2px); }

/* ── HEADER ── */
#header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
	height: 3.5rem; display: flex; align-items: center;
	padding: 0 2rem; justify-content: space-between;
	transition: background var(--transition), backdrop-filter var(--transition);
}
#header:not(.alt) { background: rgba(37,40,56,0.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
#header h1 { font-family: var(--font-body); font-size: 0.82rem; font-weight: 500; color: var(--text-muted); margin: 0; transition: opacity var(--transition); }
#header.alt h1 { opacity: 0; }
#header nav ul { display: flex; gap: 2rem; list-style: none; }
#header nav ul li a { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.7); transition: color var(--transition); }
#header nav ul li a:hover { color: #fff; }

/* ── BANNER ── */
#banner {
	position: relative; min-height: 100vh;
	display: flex; align-items: center; overflow: hidden;
	background-color: #2e3141;
	background-image: url("../../images/bg.jpg");
	background-size: cover; background-position: center; background-attachment: fixed;
}
#banner::before {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(to bottom, rgba(37,40,56,0.5) 0%, rgba(37,40,56,0.7) 100%);
	backdrop-filter: blur(3px); z-index: 0;
}
#banner::after {
	content: ''; position: absolute; bottom: 0; left: 0; right: 0;
	height: 14rem;
	background: linear-gradient(to bottom, transparent 0%, #252838 100%);
	z-index: 1; pointer-events: none;
}
#banner .inner { position: relative; z-index: 1; padding-top: 4rem; max-width: 900px; margin: 0 auto; padding-left: 3rem; padding-right: 3rem; }

.banner-name {
	font-family: var(--font-name);
	font-size: clamp(4.5rem, 11vw, 8rem);
	font-weight: 100; line-height: 1.0;
	color: rgba(255,255,255,0.92); margin-bottom: 0.5rem;
	text-transform: none !important; -webkit-text-stroke: 0px;
	opacity: 0; animation: fadeSlideUp 1s 0.3s forwards;
}
.banner-name .name-first { color: rgba(255,255,255,0.92); }
.banner-name .name-last  { color: var(--gold); }
.banner-divider {
	width: 100%; max-width: 820px; height: 1px;
	background: linear-gradient(to right, transparent, rgba(212,180,131,0.3) 15%, rgba(212,180,131,0.3) 85%, transparent);
	margin: 0.75rem 0 1.4rem 0;
	opacity: 0; animation: fadeSlideUp 0.9s 0.5s forwards;
}
.banner-sub {
	font-size: 1.15rem; font-weight: 300; color: rgba(255,255,255,0.75);
	margin-bottom: 0.75rem; text-transform: none;
	opacity: 0; animation: fadeSlideUp 0.9s 0.65s forwards;
}
.banner-role {
	font-style: italic; font-weight: 400;
	color: var(--gold); font-family: var(--font-body);
}
.banner-stack-line {
	font-size: 1rem; font-weight: 300; color: rgba(255,255,255,0.6);
	letter-spacing: 0.06em; margin-bottom: 2.5rem; text-transform: none;
	opacity: 0; animation: fadeSlideUp 0.9s 0.8s forwards;
}
.banner-actions {
	display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
	opacity: 0; animation: fadeSlideUp 0.9s 0.95s forwards;
}
@keyframes fadeSlideUp {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: translateY(0); }
}
/* Banner → About fade */
#banner::after {
	content: '';
	position: absolute; bottom: 0; left: 0; right: 0;
	height: 14rem;
	background: linear-gradient(to bottom, transparent 0%, #252838 100%);
	z-index: 1;
	pointer-events: none;
}

.scroll-indicator {
	position: absolute; bottom: 2.5rem; left: 50%;
	transform: translateX(-50%);
	display: flex; flex-direction: column; align-items: center; gap: 5px;
	z-index: 2;
}
.scroll-indicator::before {
	content: 'the story';
	font-family: var(--font-body);
	font-style: italic;
	font-size: 0.9rem;
	letter-spacing: 0.05em;
	color: rgba(212,180,131,0.7);
}
/* The tapered line */
.scroll-indicator span {
	display: block; width: 1.5px; height: 60px;
	background: linear-gradient(to bottom, rgba(212,180,131,0.8) 0%, transparent 100%);
	border-radius: 2px;
	animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
	0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
	25%  { opacity: 1; }
	55%  { transform: scaleY(1); transform-origin: top; }
	56%  { transform: scaleY(1); transform-origin: bottom; }
	100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ── ABOUT ── */
/* About top fade — dissolves banner into section */
#about {
	position: relative;
}
#about::before {
	content: '';
	position: absolute; top: 0; left: 0; right: 0;
	height: 10rem;
	background: linear-gradient(to bottom, #252838 0%, transparent 100%);
	z-index: 0;
	pointer-events: none;
}
#about .inner { position: relative; z-index: 1; }

.about-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 5rem; align-items: center; opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.about-grid.visible { opacity: 1; transform: translateY(0); }
.about-image-wrap { position: relative; }
.about-image-frame { border-radius: var(--radius-lg); overflow: hidden; position: relative; z-index: 1; }
.about-image-frame img { width: 100%; height: auto; filter: grayscale(15%); transition: filter 0.5s ease; }
.about-image-frame:hover img { filter: grayscale(0%); }
.about-image-accent { position: absolute; top: 1.25rem; left: -1.25rem; width: 100%; height: 100%; border: 1.5px solid var(--gold); border-radius: var(--radius-lg); opacity: 0.35; z-index: 0; }
.about-content .section-label { margin-bottom: 0.7rem; }
.about-content h2 { margin-bottom: 1.3rem; }
.about-content p { color: var(--text-muted); font-size: 0.92rem; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid rgba(212,180,131,0.35); }
.stat { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.stat.visible { opacity: 1; transform: translateY(0); }
.stat-number { display: block; font-size: 2rem; font-weight: 300; color: var(--gold); line-height: 1; margin-bottom: 0.3rem; }
.stat-label { font-size: 0.7rem; color: var(--text-muted); display: block; }
.stat-sub { display: block; font-size: 0.65rem; color: var(--text-subtle); font-family: var(--font-mono); margin-top: 0.2rem; }

/* ── SKILLS ── */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.skill-card { background: var(--bg-card); border: 1px solid rgba(212,180,131,0.35); border-radius: var(--radius-lg); padding: 1.6rem; transition: all var(--transition); opacity: 0; transform: translateY(18px); }
.skill-card.visible { opacity: 1; transform: translateY(0); }
.skill-card:hover { background: var(--bg-card-hover); border-color: var(--border-mid); transform: translateY(-3px); box-shadow: var(--shadow); }
.skill-icon { width: 2.5rem; height: 2.5rem; background: var(--accent-dim); border: 1px solid rgba(160,175,245,0.18); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--accent); margin-bottom: 1rem; }
.skill-card h3 { font-size: 0.88rem; font-weight: 600; margin-bottom: 0.5rem; }
.skill-card p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0.9rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.skill-tags span { font-family: var(--font-mono); font-size: 0.62rem; padding: 0.2em 0.55em; border-radius: 0.25em; background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text-muted); }

/* ── PROJECTS ── */
.project-platform { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.25rem; margin-bottom: 2.25rem; }
.platform-meta { margin-bottom: 2rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--border); }
.platform-badge { display: inline-block; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; padding: 0.28em 0.75em; border-radius: 2em; background: var(--accent-dim); border: 1px solid rgba(160,175,245,0.22); color: var(--accent); margin-bottom: 0.65rem; }
.badge-dev { background: var(--gold-dim); border-color: rgba(212,180,131,0.22); color: var(--gold); }
.platform-title { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }
.platform-desc { color: var(--text-muted); font-size: 0.85rem; max-width: 640px; margin-bottom: 1.5rem; }
.pipeline { display: flex; align-items: center; flex-wrap: wrap; gap: 0.3rem; }
.pipeline-node { display: flex; align-items: center; gap: 0.45em; font-size: 0.72rem; font-family: var(--font-mono); color: var(--text-muted); background: rgba(255,255,255,0.04); border: 1px solid rgba(212,180,131,0.35); padding: 0.35em 0.85em; border-radius: 0.3em; white-space: nowrap; }
.in-dev .pipeline-node { border-color: var(--border); }
.pipeline-connector { width: 1.25rem; height: 1px; background: var(--border-mid); flex-shrink: 0; }
.project-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.project-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all var(--transition); opacity: 0; transform: translateY(18px); }
.project-card.visible { opacity: 1; transform: translateY(0); }
.project-card:hover:not(.coming-soon) { border-color: var(--border-mid); transform: translateY(-4px); box-shadow: var(--shadow); }
.project-card-image { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.project-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-card-image img { transform: scale(1.04); }
.project-card-overlay { position: absolute; inset: 0; background: rgba(25,28,45,0.88); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--transition); }
.project-card:hover .project-card-overlay { opacity: 1; }
.overlay-link { font-size: 0.78rem; font-weight: 500; color: #fff !important; background: var(--accent); padding: 0.55em 1.3em; border-radius: var(--radius); display: flex; align-items: center; gap: 0.4em; transition: background var(--transition); }
.overlay-link:hover { background: #bac5f7; }
.project-card-body { padding: 1.4rem 1.5rem 1.5rem; }
.project-stage { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.4rem; }
.project-card h4 { font-size: 1.08rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; padding-bottom: 0.75rem; border-bottom: 1px solid rgba(212,180,131,0.35); line-height: 1.3; }
.in-dev .project-card h4 { border-bottom-color: var(--border-mid); }
.project-card p { font-size: 0.86rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; }
.project-tools { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1rem; padding-top: 0.8rem; border-top: 1px solid rgba(212,180,131,0.35); }
.in-dev .project-tools { border-top-color: var(--border); }
.project-tools span { font-family: var(--font-mono); font-size: 0.65rem; padding: 0.25em 0.6em; border-radius: 0.25em; background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text-muted); }
.project-link { display: inline-flex; align-items: center; gap: 0.35em; font-size: 0.73rem; font-weight: 500; color: var(--accent); border: none; transition: color var(--transition); }
.project-link:hover { color: #fff; }
.project-links-row { display: flex; gap: 1.25rem; align-items: center; }
.project-link-accent { color: var(--gold); }
.project-link-accent:hover { color: #fff; }
.in-dev { opacity: 0.65; }
.placeholder-img { aspect-ratio: 16/9; background: rgba(255,255,255,0.03); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: rgba(255,255,255,0.1); }
.coming-label { font-family: var(--font-mono); font-size: 0.58em; font-weight: 400; color: var(--text-muted); letter-spacing: 0.1em; margin-left: 0.5em; vertical-align: middle; }
.coming-soon { pointer-events: none; }

/* Projects → Footer fade */
#projects {
	position: relative;
	z-index: 1;
	padding-bottom: 10rem !important;
}
#projects::after {
	content: '';
	position: absolute; bottom: 0; left: 0; right: 0;
	height: 10rem;
	background: linear-gradient(to bottom, transparent 0%, #1a1c2a 100%);
	z-index: 2;
	pointer-events: none;
}
#projects .inner { position: relative; z-index: 1; }

/* ── FOOTER / CONTACT ── */
#footer {
	position: relative;
	overflow: hidden;
	padding: 5.5rem 0 3rem;
	border-top: none;
	z-index: 2;
	margin-top: -1px;
}
/* Blurred bg image */
#footer::before {
	content: '';
	position: absolute; inset: 0;
	background-image: url("../../images/bg.jpg");
	background-size: cover; background-position: center; background-attachment: fixed;
	filter: blur(4px) brightness(0.28) saturate(0.65);
	transform: scale(1.06);
	z-index: 0;
}
/* Top fade — matches the color projects fades to */
#footer::after {
	content: '';
	position: absolute; top: 0; left: 0; right: 0;
	height: 8rem;
	background: linear-gradient(to bottom, #1a1c2a 0%, transparent 100%);
	z-index: 1;
	pointer-events: none;
}
#footer .inner { position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 5rem; margin-bottom: 3.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--border); }
.footer-intro .section-label { margin-bottom: 0.7rem; }
.footer-intro h2 { margin-bottom: 0.9rem; }
.footer-intro p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1.6rem; max-width: 380px; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.contact-list li a { display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 1.15rem; background: rgba(46,50,72,0.8); backdrop-filter: blur(8px); border: 1px solid var(--border-mid); border-radius: var(--radius); color: var(--text-muted); transition: all var(--transition); text-decoration: none; }
.contact-list li a:hover { background: rgba(53,56,84,0.9); color: #fff; transform: translateX(4px); border-color: rgba(255,255,255,0.2); }
.contact-icon { width: 2.1rem; height: 2.1rem; background: var(--accent-dim); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 0.82rem; flex-shrink: 0; }
.contact-text { font-size: 0.8rem; }
.footer-bottom { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.footer-bottom p { font-size: 0.75rem; color: var(--text-subtle); margin: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) { .skills-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 2.5rem; } .about-image-wrap { max-width: 320px; } .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
@media (max-width: 768px) { .project-cards { grid-template-columns: 1fr; } .skills-grid { grid-template-columns: 1fr; } .project-platform { padding: 1.5rem; } }
@media (max-width: 600px) { .inner { padding: 0 1.25rem; } .banner-name { font-size: clamp(3rem, 14vw, 4.5rem); } .banner-actions { flex-direction: column; align-items: flex-start; } .about-stats { grid-template-columns: 1fr 1fr; } #header nav { display: none; } }