Compare commits

..

4 Commits

Author SHA1 Message Date
Flatlogic Bot
60bff82013 Revert to version 7c5fffb 2026-03-04 19:26:49 +00:00
Flatlogic Bot
240b90ecfe Revert to version 0e6648b 2026-03-04 19:25:30 +00:00
Flatlogic Bot
7c5fffbd84 2 2026-03-04 19:15:54 +00:00
Flatlogic Bot
0e6648b699 1 2026-03-04 19:13:58 +00:00
3 changed files with 387 additions and 518 deletions

View File

@ -1,403 +1,137 @@
:root {
--bg: #f5f7fa;
--surface: #ffffff;
--text: #1a1a2e;
--muted: #6a6a8a;
--border: #e0e6ed;
--primary: #4a90e2; /* Blue */
--secondary: #8e44ad; /* Purple */
--accent: #4a90e2;
--radius-sm: 6px;
--radius-md: 10px;
--shadow-sm: 0 10px 30px rgba(74, 144, 226, 0.1);
}
body {
background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
background-size: 400% 400%;
animation: gradient 15s ease infinite;
color: #212529;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
font-size: 14px;
margin: 0;
min-height: 100vh;
font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
color: var(--text);
background: var(--bg);
}
.main-wrapper {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
width: 100%;
padding: 20px;
box-sizing: border-box;
position: relative;
z-index: 1;
.bg-surface {
background: var(--bg);
}
@keyframes gradient {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
.navbar {
background: var(--surface);
}
.chat-container {
width: 100%;
max-width: 600px;
background: rgba(255, 255, 255, 0.85);
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 20px;
display: flex;
flex-direction: column;
height: 85vh;
box-shadow: 0 20px 40px rgba(0,0,0,0.2);
backdrop-filter: blur(15px);
-webkit-backdrop-filter: blur(15px);
overflow: hidden;
.navbar .nav-link {
font-weight: 500;
color: var(--text);
}
.chat-header {
padding: 1.5rem;
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
background: rgba(255, 255, 255, 0.5);
font-weight: 700;
font-size: 1.1rem;
display: flex;
justify-content: space-between;
align-items: center;
.navbar .nav-link:hover,
.navbar .nav-link:focus {
color: var(--primary);
}
.chat-messages {
flex: 1;
overflow-y: auto;
padding: 1.5rem;
display: flex;
flex-direction: column;
gap: 1.25rem;
.hero-section {
background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(142, 68, 173, 0.05));
}
/* Custom Scrollbar */
::-webkit-scrollbar {
width: 6px;
.hero-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-md);
box-shadow: var(--shadow-sm);
}
::-webkit-scrollbar-track {
background: transparent;
.section-spacing {
padding: 4.5rem 0;
background: var(--surface);
}
::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.3);
border-radius: 10px;
.section-spacing:nth-of-type(even) {
background: var(--bg);
}
::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.5);
.card {
border-radius: var(--radius-md);
border: 1px solid var(--border);
}
.message {
max-width: 85%;
padding: 0.85rem 1.1rem;
border-radius: 16px;
line-height: 1.5;
font-size: 0.95rem;
box-shadow: 0 4px 15px rgba(0,0,0,0.05);
animation: fadeIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
.info-card {
border-radius: var(--radius-sm);
border: 1px solid var(--border);
background: var(--surface);
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px) scale(0.95); }
to { opacity: 1; transform: translateY(0) scale(1); }
.badge {
border-radius: 999px;
font-weight: 500;
color: var(--primary);
background: rgba(74, 144, 226, 0.1);
}
.message.visitor {
align-self: flex-end;
background: linear-gradient(135deg, #212529 0%, #343a40 100%);
color: #fff;
border-bottom-right-radius: 4px;
}
.message.bot {
align-self: flex-start;
background: #ffffff;
color: #212529;
border-bottom-left-radius: 4px;
}
.chat-input-area {
padding: 1.25rem;
background: rgba(255, 255, 255, 0.5);
border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.chat-input-area form {
display: flex;
gap: 0.75rem;
}
.chat-input-area input {
flex: 1;
border: 1px solid rgba(0, 0, 0, 0.1);
border-radius: 12px;
padding: 0.75rem 1rem;
outline: none;
background: rgba(255, 255, 255, 0.9);
transition: all 0.3s ease;
}
.chat-input-area input:focus {
border-color: #23a6d5;
box-shadow: 0 0 0 3px rgba(35, 166, 213, 0.2);
}
.chat-input-area button {
background: #212529;
color: #fff;
border: none;
padding: 0.75rem 1.5rem;
border-radius: 12px;
cursor: pointer;
.btn {
border-radius: var(--radius-sm);
font-weight: 600;
transition: all 0.3s ease;
}
.chat-input-area button:hover {
background: #000;
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
/* Background Animations */
.bg-animations {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0;
overflow: hidden;
pointer-events: none;
}
.blob {
position: absolute;
width: 500px;
height: 500px;
background: rgba(255, 255, 255, 0.2);
border-radius: 50%;
filter: blur(80px);
animation: move 20s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}
.blob-1 {
top: -10%;
left: -10%;
background: rgba(238, 119, 82, 0.4);
}
.blob-2 {
bottom: -10%;
right: -10%;
background: rgba(35, 166, 213, 0.4);
animation-delay: -7s;
width: 600px;
height: 600px;
}
.blob-3 {
top: 40%;
left: 30%;
background: rgba(231, 60, 126, 0.3);
animation-delay: -14s;
width: 450px;
height: 450px;
}
@keyframes move {
0% { transform: translate(0, 0) rotate(0deg) scale(1); }
33% { transform: translate(150px, 100px) rotate(120deg) scale(1.1); }
66% { transform: translate(-50px, 200px) rotate(240deg) scale(0.9); }
100% { transform: translate(0, 0) rotate(360deg) scale(1); }
}
.header-link {
font-size: 14px;
.btn-primary-custom {
background: var(--primary);
border-color: var(--primary);
color: #fff;
text-decoration: none;
background: rgba(0, 0, 0, 0.2);
padding: 0.5rem 1rem;
border-radius: 8px;
transition: all 0.3s ease;
}
.header-link:hover {
background: rgba(0, 0, 0, 0.4);
text-decoration: none;
.btn-primary-custom:hover {
background: var(--secondary);
border-color: var(--secondary);
}
/* Admin Styles */
.admin-container {
max-width: 900px;
margin: 3rem auto;
padding: 2.5rem;
background: rgba(255, 255, 255, 0.85);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border-radius: 24px;
box-shadow: 0 20px 50px rgba(0,0,0,0.15);
border: 1px solid rgba(255, 255, 255, 0.4);
position: relative;
z-index: 1;
.btn-outline-primary-custom {
border-color: var(--primary);
color: var(--primary);
}
.admin-container h1 {
margin-top: 0;
color: #212529;
font-weight: 800;
}
.table {
width: 100%;
border-collapse: separate;
border-spacing: 0 8px;
margin-top: 1.5rem;
}
.table th {
background: transparent;
border: none;
padding: 1rem;
color: #6c757d;
font-weight: 600;
text-transform: uppercase;
font-size: 0.75rem;
letter-spacing: 1px;
}
.table td {
background: #fff;
padding: 1rem;
border: none;
}
.table tr td:first-child { border-radius: 12px 0 0 12px; }
.table tr td:last-child { border-radius: 0 12px 12px 0; }
.form-group {
margin-bottom: 1.25rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 600;
font-size: 0.9rem;
.btn-outline-primary-custom:hover {
background: var(--primary);
color: #fff;
}
.form-control {
width: 100%;
padding: 0.75rem 1rem;
border: 1px solid rgba(0, 0, 0, 0.1);
border-radius: 12px;
background: #fff;
transition: all 0.3s ease;
box-sizing: border-box;
border-radius: var(--radius-sm);
border-color: var(--border);
}
.form-control:focus {
outline: none;
border-color: #23a6d5;
box-shadow: 0 0 0 3px rgba(35, 166, 213, 0.1);
box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
border-color: var(--primary);
}
.header-container {
display: flex;
justify-content: space-between;
.icon-pill {
display: inline-flex;
width: 24px;
height: 24px;
border-radius: 999px;
align-items: center;
justify-content: center;
background: var(--primary);
color: #fff;
font-size: 0.75rem;
}
.header-links {
display: flex;
gap: 1rem;
.toast {
border-radius: var(--radius-sm);
}
.admin-card {
background: rgba(255, 255, 255, 0.6);
padding: 2rem;
border-radius: 20px;
border: 1px solid rgba(255, 255, 255, 0.5);
margin-bottom: 2.5rem;
box-shadow: 0 10px 30px rgba(0,0,0,0.05);
@media (max-width: 767px) {
.section-spacing {
padding: 3.5rem 0;
}
.admin-card h3 {
margin-top: 0;
margin-bottom: 1.5rem;
font-weight: 700;
.hero-section .display-5 {
font-size: 2.2rem;
}
.btn-delete {
background: #dc3545;
color: white;
border: none;
padding: 0.25rem 0.5rem;
border-radius: 4px;
cursor: pointer;
}
.btn-add {
background: #212529;
color: white;
border: none;
padding: 0.5rem 1rem;
border-radius: 4px;
cursor: pointer;
margin-top: 1rem;
}
.btn-save {
background: #0088cc;
color: white;
border: none;
padding: 0.8rem 1.5rem;
border-radius: 12px;
cursor: pointer;
font-weight: 600;
width: 100%;
transition: all 0.3s ease;
}
.webhook-url {
font-size: 0.85em;
color: #555;
margin-top: 0.5rem;
}
.history-table-container {
overflow-x: auto;
background: rgba(255, 255, 255, 0.4);
padding: 1rem;
border-radius: 12px;
border: 1px solid rgba(255, 255, 255, 0.3);
}
.history-table {
width: 100%;
}
.history-table-time {
width: 15%;
white-space: nowrap;
font-size: 0.85em;
color: #555;
}
.history-table-user {
width: 35%;
background: rgba(255, 255, 255, 0.3);
border-radius: 8px;
padding: 8px;
}
.history-table-ai {
width: 50%;
background: rgba(255, 255, 255, 0.5);
border-radius: 8px;
padding: 8px;
}
.no-messages {
text-align: center;
color: #777;
}

View File

@ -1,39 +1,7 @@
document.addEventListener('DOMContentLoaded', () => {
const chatForm = document.getElementById('chat-form');
const chatInput = document.getElementById('chat-input');
const chatMessages = document.getElementById('chat-messages');
const appendMessage = (text, sender) => {
const msgDiv = document.createElement('div');
msgDiv.classList.add('message', sender);
msgDiv.textContent = text;
chatMessages.appendChild(msgDiv);
chatMessages.scrollTop = chatMessages.scrollHeight;
};
chatForm.addEventListener('submit', async (e) => {
e.preventDefault();
const message = chatInput.value.trim();
if (!message) return;
appendMessage(message, 'visitor');
chatInput.value = '';
try {
const response = await fetch('api/chat.php', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ message })
});
const data = await response.json();
// Artificial delay for realism
setTimeout(() => {
appendMessage(data.reply, 'bot');
}, 500);
} catch (error) {
console.error('Error:', error);
appendMessage("Sorry, something went wrong. Please try again.", 'bot');
(() => {
const toastEl = document.getElementById('statusToast');
if (toastEl && toastEl.dataset.show === 'true') {
const toast = new bootstrap.Toast(toastEl, { delay: 4000 });
toast.show();
}
});
});
})();

407
index.php
View File

@ -4,147 +4,314 @@ declare(strict_types=1);
@error_reporting(E_ALL);
@date_default_timezone_set('UTC');
$phpVersion = PHP_VERSION;
$now = date('Y-m-d H:i:s');
$projectName = $_SERVER['PROJECT_NAME'] ?? 'Personal Portfolio';
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? '';
$projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? '';
$successMessage = '';
$errorMessage = '';
$formErrors = [];
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$name = trim($_POST['name'] ?? '');
$email = trim($_POST['email'] ?? '');
$message = trim($_POST['message'] ?? '');
if ($name === '') {
$formErrors['name'] = 'Please enter your name.';
}
if ($email === '' || !filter_var($email, FILTER_VALIDATE_EMAIL)) {
$formErrors['email'] = 'Please enter a valid email address.';
}
if ($message === '' || mb_strlen($message) < 10) {
$formErrors['message'] = 'Please share at least 10 characters about your request.';
}
if (!$formErrors) {
require_once __DIR__ . '/mail/MailService.php';
$result = MailService::sendContactMessage($name, $email, $message, null, 'Portfolio contact request');
if (!empty($result['success'])) {
$successMessage = 'Thanks for reaching out! Your message was sent successfully.';
$_POST = [];
} else {
$errorMessage = 'Sorry, we could not send your message right now. Please try again later.';
}
} else {
$errorMessage = 'Please fix the highlighted fields and try again.';
}
}
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>New Style</title>
<?php
// Read project preview data from environment
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? '';
$projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? '';
?>
<title><?= htmlspecialchars($projectName) ?></title>
<?php if ($projectDescription): ?>
<!-- Meta description -->
<meta name="description" content='<?= htmlspecialchars($projectDescription) ?>' />
<!-- Open Graph meta tags -->
<meta name="description" content="<?= htmlspecialchars($projectDescription) ?>" />
<meta property="og:description" content="<?= htmlspecialchars($projectDescription) ?>" />
<!-- Twitter meta tags -->
<meta property="twitter:description" content="<?= htmlspecialchars($projectDescription) ?>" />
<?php endif; ?>
<?php if ($projectImageUrl): ?>
<!-- Open Graph image -->
<meta property="og:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
<!-- Twitter image -->
<meta property="twitter:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
<?php endif; ?>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">
<style>
:root {
--bg-color-start: #6a11cb;
--bg-color-end: #2575fc;
--text-color: #ffffff;
--card-bg-color: rgba(255, 255, 255, 0.01);
--card-border-color: rgba(255, 255, 255, 0.1);
}
body {
margin: 0;
font-family: 'Inter', sans-serif;
background: linear-gradient(45deg, var(--bg-color-start), var(--bg-color-end));
color: var(--text-color);
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
text-align: center;
overflow: hidden;
position: relative;
}
body::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M-10 10L110 10M10 -10L10 110" stroke-width="1" stroke="rgba(255,255,255,0.05)"/></svg>');
animation: bg-pan 20s linear infinite;
z-index: -1;
}
@keyframes bg-pan {
0% { background-position: 0% 0%; }
100% { background-position: 100% 100%; }
}
main {
padding: 2rem;
}
.card {
background: var(--card-bg-color);
border: 1px solid var(--card-border-color);
border-radius: 16px;
padding: 2rem;
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}
.loader {
margin: 1.25rem auto 1.25rem;
width: 48px;
height: 48px;
border: 3px solid rgba(255, 255, 255, 0.25);
border-top-color: #fff;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.hint {
opacity: 0.9;
}
.sr-only {
position: absolute;
width: 1px; height: 1px;
padding: 0; margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap; border: 0;
}
h1 {
font-size: 3rem;
font-weight: 700;
margin: 0 0 1rem;
letter-spacing: -1px;
}
p {
margin: 0.5rem 0;
font-size: 1.1rem;
}
code {
background: rgba(0,0,0,0.2);
padding: 2px 6px;
border-radius: 4px;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
footer {
position: absolute;
bottom: 1rem;
font-size: 0.8rem;
opacity: 0.7;
}
</style>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="assets/css/custom.css?v=<?= htmlspecialchars((string) time()) ?>">
</head>
<body>
<main>
<div class="card">
<h1>Analyzing your requirements and generating your website…</h1>
<div class="loader" role="status" aria-live="polite" aria-label="Applying initial changes">
<span class="sr-only">Loading…</span>
<body class="bg-surface">
<header class="sticky-top border-bottom bg-white">
<nav class="navbar navbar-expand-lg navbar-light py-3">
<div class="container">
<a class="navbar-brand fw-semibold" href="#top"><?= htmlspecialchars($projectName) ?></a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#portfolioNav" aria-controls="portfolioNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="portfolioNav">
<ul class="navbar-nav ms-auto mb-2 mb-lg-0 gap-lg-3">
<li class="nav-item"><a class="nav-link" href="#portfolio">Portfolio</a></li>
<li class="nav-item"><a class="nav-link" href="#about">About</a></li>
<li class="nav-item"><a class="nav-link" href="#testimonials">Testimonials</a></li>
<li class="nav-item"><a class="nav-link btn btn-primary-custom text-white px-3" href="#contact">Email me</a></li>
</ul>
</div>
<p class="hint"><?= ($_SERVER['HTTP_HOST'] ?? '') === 'appwizzy.com' ? 'AppWizzy' : 'Flatlogic' ?> AI is collecting your requirements and applying the first changes.</p>
<p class="hint">This page will update automatically as the plan is implemented.</p>
<p>Runtime: PHP <code><?= htmlspecialchars($phpVersion) ?></code> — UTC <code><?= htmlspecialchars($now) ?></code></p>
</div>
</nav>
</header>
<main id="top">
<section class="hero-section py-5">
<div class="container">
<div class="row align-items-center g-4">
<div class="col-lg-6">
<p class="text-uppercase text-muted small mb-2">Product Designer Frontend Developer</p>
<h1 class="display-5 fw-semibold">I design calm, conversion-ready experiences for modern brands.</h1>
<p class="lead text-muted mt-3">Specialized in web product design, UI systems, and responsive build-outs that ship fast and feel premium.</p>
<div class="d-flex flex-column flex-sm-row gap-3 mt-4">
<a class="btn btn-primary-custom btn-lg px-4" href="#contact">Email me</a>
<a class="btn btn-outline-primary-custom btn-lg px-4" href="#portfolio">View work</a>
</div>
<div class="d-flex gap-4 mt-4 text-muted small">
<div>
<div class="fw-semibold text-primary">8+</div>
<div>Years shipping</div>
</div>
<div>
<div class="fw-semibold text-primary">40+</div>
<div>Projects delivered</div>
</div>
<div>
<div class="fw-semibold text-primary">12</div>
<div>Teams supported</div>
</div>
</div>
</div>
<div class="col-lg-6">
<div class="hero-card p-4 p-lg-5">
<p class="text-uppercase small text-muted mb-2">Currently</p>
<h2 class="h4 fw-semibold mb-3">Building thoughtful digital products for SaaS &amp; wellness brands.</h2>
<ul class="list-unstyled mb-4">
<li class="d-flex align-items-start gap-2 mb-2">
<span class="icon-pill"></span>
<span>End-to-end UX: discovery design build.</span>
</li>
<li class="d-flex align-items-start gap-2 mb-2">
<span class="icon-pill"></span>
<span>Clean systems: design tokens + component libraries.</span>
</li>
<li class="d-flex align-items-start gap-2">
<span class="icon-pill"></span>
<span>Weekly async updates and clear handoff docs.</span>
</li>
</ul>
<a class="text-decoration-none fw-semibold text-primary" href="#contact">Lets talk about your next launch </a>
</div>
</div>
</div>
</div>
</section>
<section id="portfolio" class="section-spacing border-top">
<div class="container">
<div class="d-flex flex-column flex-md-row justify-content-between align-items-md-end gap-3 mb-4">
<div>
<p class="text-uppercase text-muted small mb-2">Selected work</p>
<h2 class="h3 fw-semibold mb-0">Portfolio highlights</h2>
</div>
<p class="text-muted mb-0">Focused on measurable outcomes, from onboarding conversion to retention.</p>
</div>
<div class="row g-4">
<?php
$projects = [
['title' => 'Aurora Health Platform', 'desc' => 'Patient onboarding redesign and responsive build.', 'tags' => ['UX Strategy', 'UI System', 'Frontend']],
['title' => 'Northwind Commerce', 'desc' => 'B2B ordering portal with pricing insights dashboard.', 'tags' => ['Product Design', 'Data Viz']],
['title' => 'Cascade Studio', 'desc' => 'Brand refresh + marketing site launch in 4 weeks.', 'tags' => ['Web Design', 'Launch']],
['title' => 'Relay Analytics', 'desc' => 'Retention dashboards and stakeholder reporting hub.', 'tags' => ['Dashboard', 'Research']],
];
foreach ($projects as $project): ?>
<div class="col-md-6">
<div class="card h-100 border-0 shadow-sm">
<div class="card-body p-4">
<h3 class="h5 fw-semibold"><?= htmlspecialchars($project['title']) ?></h3>
<p class="text-muted"><?= htmlspecialchars($project['desc']) ?></p>
<div class="d-flex flex-wrap gap-2">
<?php foreach ($project['tags'] as $tag): ?>
<span class="badge"><?= htmlspecialchars($tag) ?></span>
<?php endforeach; ?>
</div>
</div>
<div class="card-footer bg-white border-0 px-4 pb-4">
<a class="text-decoration-none fw-semibold text-primary" href="#contact">Request details </a>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
</div>
</section>
<section id="about" class="section-spacing border-top">
<div class="container">
<div class="row g-4 align-items-center">
<div class="col-lg-5">
<p class="text-uppercase text-muted small mb-2">About</p>
<h2 class="h3 fw-semibold">Design partner for teams that value clarity.</h2>
</div>
<div class="col-lg-7">
<p class="text-muted">I help teams translate complex ideas into calm, high-converting experiences. My workflow blends product strategy, UX research, and front-end build so every launch feels cohesive.</p>
<div class="row g-3 mt-3">
<div class="col-sm-6">
<div class="info-card p-3">
<p class="fw-semibold mb-1">Core services</p>
<ul class="text-muted small mb-0">
<li>Product discovery &amp; UX audits</li>
<li>Design systems &amp; component libraries</li>
<li>Responsive build (HTML/CSS/JS)</li>
</ul>
</div>
</div>
<div class="col-sm-6">
<div class="info-card p-3">
<p class="fw-semibold mb-1">Typical engagement</p>
<ul class="text-muted small mb-0">
<li>26 week sprints</li>
<li>Async-first collaboration</li>
<li>Clear handoffs + launch support</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section id="testimonials" class="section-spacing border-top">
<div class="container">
<div class="d-flex flex-column flex-md-row justify-content-between align-items-md-end gap-3 mb-4">
<div>
<p class="text-uppercase text-muted small mb-2">Testimonials</p>
<h2 class="h3 fw-semibold mb-0">Clients value the calm process.</h2>
</div>
<p class="text-muted mb-0">Short, actionable updates keep projects moving.</p>
</div>
<div class="row g-4">
<?php
$testimonials = [
['quote' => 'Their design system made every team faster. The handoff was flawless.', 'name' => 'Marina Lopez', 'role' => 'VP Product, Axon Labs'],
['quote' => 'We doubled onboarding completion in three weeks with the new flow.', 'name' => 'Jamie Chen', 'role' => 'Head of Growth, Meridian'],
['quote' => 'Clear communication, fast iteration, and a polished final build.', 'name' => 'Alex Reed', 'role' => 'Founder, Northwind'],
];
foreach ($testimonials as $item): ?>
<div class="col-md-4">
<div class="card h-100 border-0 shadow-sm">
<div class="card-body p-4">
<p class="text-muted"><?= htmlspecialchars($item['quote']) ?>”</p>
<p class="fw-semibold mb-0 text-primary"><?= htmlspecialchars($item['name']) ?></p>
<p class="text-muted small mb-0"><?= htmlspecialchars($item['role']) ?></p>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
</div>
</section>
<section id="contact" class="section-spacing border-top">
<div class="container">
<div class="row g-4 align-items-start">
<div class="col-lg-5">
<p class="text-uppercase text-muted small mb-2">Contact</p>
<h2 class="h3 fw-semibold">Lets build your next launch.</h2>
<p class="text-muted">Share a few details and Ill reply within 12 business days. For urgent requests, mention your timeline.</p>
<div class="alert alert-light border small mt-4" role="alert">
This form uses your SMTP settings. If email is not configured yet, please add MAIL_/SMTP_ values in <code>.env</code>.
</div>
</div>
<div class="col-lg-7">
<?php if ($successMessage): ?>
<div class="alert alert-success" role="alert"><?= htmlspecialchars($successMessage) ?></div>
<?php elseif ($errorMessage): ?>
<div class="alert alert-danger" role="alert"><?= htmlspecialchars($errorMessage) ?></div>
<?php endif; ?>
<form class="card border-0 shadow-sm p-4" method="post" action="#contact" novalidate>
<div class="row g-3">
<div class="col-md-6">
<label class="form-label" for="name">Name</label>
<input class="form-control <?= isset($formErrors['name']) ? 'is-invalid' : '' ?>" type="text" id="name" name="name" value="<?= htmlspecialchars($_POST['name'] ?? '') ?>" required>
<?php if (isset($formErrors['name'])): ?>
<div class="invalid-feedback"><?= htmlspecialchars($formErrors['name']) ?></div>
<?php endif; ?>
</div>
<div class="col-md-6">
<label class="form-label" for="email">Email</label>
<input class="form-control <?= isset($formErrors['email']) ? 'is-invalid' : '' ?>" type="email" id="email" name="email" value="<?= htmlspecialchars($_POST['email'] ?? '') ?>" required>
<?php if (isset($formErrors['email'])): ?>
<div class="invalid-feedback"><?= htmlspecialchars($formErrors['email']) ?></div>
<?php endif; ?>
</div>
<div class="col-12">
<label class="form-label" for="message">Project details</label>
<textarea class="form-control <?= isset($formErrors['message']) ? 'is-invalid' : '' ?>" id="message" name="message" rows="5" required><?= htmlspecialchars($_POST['message'] ?? '') ?></textarea>
<?php if (isset($formErrors['message'])): ?>
<div class="invalid-feedback"><?= htmlspecialchars($formErrors['message']) ?></div>
<?php endif; ?>
</div>
<div class="col-12 d-flex flex-column flex-sm-row gap-3 align-items-sm-center">
<button class="btn btn-primary-custom px-4" type="submit">Email me</button>
<p class="text-muted small mb-0">By submitting, you agree to be contacted about your request.</p>
</div>
</div>
</form>
</div>
</div>
</div>
</section>
</main>
<footer>
Page updated: <?= htmlspecialchars($now) ?> (UTC)
<footer class="border-top py-4">
<div class="container d-flex flex-column flex-md-row justify-content-between align-items-md-center gap-2">
<p class="text-muted small mb-0">Available for select freelance projects in 2026.</p>
<p class="text-muted small mb-0">Last updated <?= htmlspecialchars($now) ?> UTC</p>
</div>
</footer>
<div class="toast-container position-fixed bottom-0 end-0 p-3">
<div id="statusToast" class="toast align-items-center text-bg-dark border-0" role="alert" aria-live="assertive" aria-atomic="true" data-show="<?= $successMessage ? 'true' : 'false' ?>">
<div class="d-flex">
<div class="toast-body">
<?= $successMessage ? htmlspecialchars($successMessage) : 'Thanks for reaching out!' ?>
</div>
<button type="button" class="btn-close btn-close-white me-2 m-auto" data-bs-dismiss="toast" aria-label="Close"></button>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
<script src="assets/js/main.js?v=<?= htmlspecialchars((string) time()) ?>"></script>
</body>
</html>