/* =========================================================
   Daniel Martínez — portfolio
   Modern minimal (light) theme. Plain CSS, no dependencies.
   ========================================================= */

:root {
	--bg: #ffffff;
	--bg-soft: #f6f7fb;
	--bg-card: #ffffff;
	--text: #1a1c23;
	--text-soft: #5b6170;
	--border: #e7e9f0;
	--accent: #4f46e5;
	--accent-soft: #eef0ff;
	--accent-hover: #4338ca;

	--radius: 16px;
	--radius-sm: 10px;
	--shadow-sm: 0 1px 2px rgba(20, 24, 40, .05);
	--shadow-md: 0 10px 30px rgba(20, 24, 40, .08);
	--shadow-lg: 0 24px 60px rgba(20, 24, 40, .12);

	--space: 1rem;
	--maxw: 1080px;

	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
		Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font);
	color: var(--text);
	background: var(--bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }

.container {
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: 1.5rem;
}

.eyebrow,
.section-eyebrow {
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: .78rem;
	font-weight: 700;
	color: var(--accent);
	margin: 0 0 .75rem;
}

.section-title {
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	margin-bottom: 1.5rem;
}

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .8);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--border);
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
}
.brand {
	display: flex;
	align-items: center;
	gap: .65rem;
	color: var(--text);
	font-weight: 700;
}
.brand:hover { color: var(--text); }
.brand-avatar { border-radius: 50%; object-fit: cover; }
.site-nav { display: flex; gap: 1.5rem; }
.site-nav a {
	color: var(--text-soft);
	font-weight: 500;
	font-size: .95rem;
}
.site-nav a:hover { color: var(--accent); }

/* ---------- Intro / hero ---------- */
.intro {
	padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(2rem, 5vw, 3.5rem);
	background:
		radial-gradient(1200px 500px at 50% -10%, var(--accent-soft), transparent 70%);
}
.intro-inner { max-width: 760px; }
.intro h1 {
	font-size: clamp(2rem, 5.5vw, 3.4rem);
	margin-bottom: .75rem;
}
.lead {
	font-size: clamp(1.05rem, 2.2vw, 1.25rem);
	color: var(--text-soft);
	margin-bottom: 2rem;
}
.intro-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: .7rem 1.3rem;
	border-radius: 999px;
	font-weight: 600;
	font-size: .95rem;
	transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn-primary {
	background: var(--accent);
	color: #fff;
	box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.btn-ghost {
	background: #fff;
	color: var(--text);
	border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

/* ---------- Featured app ---------- */
.featured { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.featured-card {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: clamp(1.5rem, 4vw, 2.5rem);
	align-items: center;
	padding: clamp(1.75rem, 4vw, 2.75rem);
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
}
.featured-icon img {
	width: clamp(96px, 16vw, 128px);
	height: clamp(96px, 16vw, 128px);
	border-radius: 24px;
	box-shadow: var(--shadow-md);
}
.featured-body h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .15rem; }
.featured-sub { color: var(--text-soft); font-weight: 500; margin: 0 0 .75rem; }
.featured-body p { color: var(--text-soft); margin: 0 0 1.25rem; }
.tag-row { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.tag {
	background: var(--accent-soft);
	color: var(--accent);
	font-size: .75rem;
	font-weight: 700;
	padding: .2rem .6rem;
	border-radius: 999px;
}

/* ---------- App grid ---------- */
.apps { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 7vw, 5rem); }
.app-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
}
.app-card {
	display: flex;
	flex-direction: column;
	padding: 1.75rem;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.app-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
	border-color: #d9dcec;
}
.app-icon {
	width: 72px;
	height: 72px;
	border-radius: 16px;
	box-shadow: var(--shadow-sm);
	margin-bottom: 1rem;
}
.app-card h3 { font-size: 1.2rem; margin-bottom: .1rem; }
.app-sub { color: var(--accent); font-weight: 600; font-size: .9rem; margin: 0 0 .6rem; }
.app-desc { color: var(--text-soft); font-size: .95rem; margin: 0 0 1rem; flex: 1; }

/* ---------- Website link (subtler than store badges) ---------- */
.site-link {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	font-size: .85rem;
	font-weight: 600;
	color: var(--accent);
	margin: 0 0 1.1rem;
}
.site-link:hover { text-decoration: underline; }
.site-link svg { flex: none; }

/* ---------- Platform badges ---------- */
.badge-row { display: flex; gap: .4rem; margin-bottom: 1.1rem; }
.badge-platform {
	font-size: .72rem;
	font-weight: 600;
	color: var(--text-soft);
	background: var(--bg-soft);
	border: 1px solid var(--border);
	padding: .15rem .55rem;
	border-radius: 999px;
}

/* ---------- Card actions ---------- */
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.link-btn {
	font-size: .88rem;
	font-weight: 600;
	padding: .45rem .9rem;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	color: var(--text);
	background: #fff;
	transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.link-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* Official store badges. Google's PNG ships with built-in padding, so it's
   sized taller and trimmed with negative margins to visually match Apple's. */
.badge-link {
	display: inline-flex;
	align-items: center;
	transition: transform .15s ease, opacity .15s ease;
}
.badge-link:hover { transform: translateY(-1px); opacity: .85; }
.badge-link img { display: block; width: auto; }
.badge-link.ios img { height: 40px; }
.badge-link.android img { height: 58px; margin: -9px -8px; }

/* Larger badge in the featured card */
.featured-badge.ios img { height: 52px; }

/* ---------- About ---------- */
.about { background: var(--bg-soft); border-block: 1px solid var(--border); padding: clamp(3rem, 7vw, 5rem) 0; }
.about-inner {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: clamp(1.5rem, 5vw, 3rem);
	align-items: center;
}
.about-photo img {
	width: clamp(120px, 20vw, 160px);
	height: clamp(120px, 20vw, 160px);
	border-radius: 50%;
	object-fit: cover;
	box-shadow: var(--shadow-md);
}
.about-text p { color: var(--text-soft); margin: 0 0 1.25rem; max-width: 60ch; }
.skill-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	padding: 0;
	margin: 0;
}
.skill-list li {
	background: #fff;
	border: 1px solid var(--border);
	color: var(--text);
	font-size: .85rem;
	font-weight: 500;
	padding: .35rem .8rem;
	border-radius: 999px;
}

/* ---------- Footer ---------- */
.site-footer { background: #14161f; color: #c8ccda; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	justify-content: space-between;
	align-items: center;
}
.footer-contact h2 { color: #fff; font-size: 1.6rem; margin-bottom: .25rem; }
.footer-contact p { color: #9aa0b4; margin: 0 0 .75rem; }
.footer-email {
	color: #fff;
	font-weight: 600;
	font-size: 1.15rem;
	border-bottom: 2px solid var(--accent);
	padding-bottom: 2px;
}
.footer-email:hover { color: #fff; border-color: #fff; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	color: #c8ccda;
	transition: background .15s ease, color .15s ease, transform .15s ease;
}
.footer-social a:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.footer-bottom {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer-bottom p { color: #7b8095; font-size: .85rem; margin: 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
	.site-nav { gap: 1rem; }
	.featured-card { grid-template-columns: 1fr; text-align: left; }
	.about-inner { grid-template-columns: 1fr; text-align: center; }
	.about-photo { margin-inline: auto; }
	.skill-list { justify-content: center; }
	.footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
	.site-nav a:not(:last-child) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
	* { transition: none !important; }
}
