diff --git a/assets/css/custom.css b/assets/css/custom.css
new file mode 100644
index 0000000..5c7a430
--- /dev/null
+++ b/assets/css/custom.css
@@ -0,0 +1,190 @@
+/* CrownEd Custom Styles */
+@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Poppins:wght@400;600&display=swap');
+
+:root {
+ --background-color: #121212;
+ --surface-color: #1E1E1E;
+ --primary-color: #FFD700;
+ --text-color: #FFFFFF;
+ --text-muted-color: #E0E0E0;
+ --border-radius: 8px;
+ --spacing-unit: 8px;
+}
+
+body {
+ background-color: var(--background-color);
+ color: var(--text-color);
+ font-family: 'Poppins', sans-serif;
+ margin: 0;
+ line-height: 1.6;
+}
+
+.container {
+ width: 90%;
+ max-width: 1100px;
+ margin: 0 auto;
+ padding: calc(var(--spacing-unit) * 4) 0;
+}
+
+h1, h2, h3, h4, h5, h6 {
+ font-family: 'Playfair Display', serif;
+ color: var(--primary-color);
+ margin-top: 0;
+}
+
+h1 { font-size: 3.5rem; }
+h2 { font-size: 2.5rem; }
+h3 { font-size: 1.75rem; }
+
+a {
+ color: var(--primary-color);
+ text-decoration: none;
+}
+
+.btn {
+ display: inline-block;
+ padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 4);
+ background-color: var(--primary-color);
+ color: var(--background-color);
+ border: none;
+ border-radius: 9999px;
+ font-weight: 600;
+ cursor: pointer;
+ transition: all 0.3s ease;
+ text-transform: uppercase;
+ letter-spacing: 1px;
+}
+
+.btn:hover {
+ transform: translateY(-3px);
+ box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
+}
+
+header {
+ padding: calc(var(--spacing-unit) * 2) 0;
+ border-bottom: 1px solid var(--surface-color);
+}
+
+header .container {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+
+.logo {
+ font-family: 'Playfair Display', serif;
+ font-size: 1.8rem;
+ font-weight: 700;
+ color: var(--primary-color);
+}
+
+nav ul {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+ display: flex;
+}
+
+nav ul li {
+ margin-left: calc(var(--spacing-unit) * 4);
+}
+
+nav a {
+ color: var(--text-color);
+ font-weight: 600;
+ transition: color 0.3s ease;
+}
+
+nav a:hover {
+ color: var(--primary-color);
+}
+
+.hero {
+ text-align: center;
+ padding: calc(var(--spacing-unit) * 10) 0;
+}
+
+.hero h1 {
+ margin-bottom: calc(var(--spacing-unit) * 2);
+}
+
+.hero p {
+ font-size: 1.2rem;
+ color: var(--text-muted-color);
+ max-width: 600px;
+ margin: 0 auto calc(var(--spacing-unit) * 4) auto;
+}
+
+.section {
+ padding: calc(var(--spacing-unit) * 8) 0;
+ text-align: center;
+}
+
+.section-title {
+ margin-bottom: calc(var(--spacing-unit) * 6);
+}
+
+.card {
+ background-color: var(--surface-color);
+ border: 1px solid var(--primary-color);
+ border-radius: var(--border-radius);
+ padding: calc(var(--spacing-unit) * 4);
+ margin-bottom: calc(var(--spacing-unit) * 4);
+ text-align: left;
+}
+
+.form-group {
+ margin-bottom: calc(var(--spacing-unit) * 2);
+}
+
+.form-control {
+ width: 100%;
+ padding: calc(var(--spacing-unit) * 1.5);
+ background-color: var(--surface-color);
+ border: 1px solid var(--primary-color);
+ border-radius: var(--border-radius);
+ color: var(--text-color);
+ font-family: 'Poppins', sans-serif;
+}
+
+.form-control:focus {
+ outline: none;
+ box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
+}
+
+textarea.form-control {
+ resize: vertical;
+ min-height: 150px;
+}
+
+footer {
+ text-align: center;
+ padding: calc(var(--spacing-unit) * 4) 0;
+ margin-top: calc(var(--spacing-unit) * 8);
+ border-top: 1px solid var(--surface-color);
+ color: var(--text-muted-color);
+}
+
+footer a {
+ margin: 0 calc(var(--spacing-unit) * 2);
+}
+
+#notification {
+ position: fixed;
+ bottom: 20px;
+ left: 50%;
+ transform: translateX(-50%);
+ padding: 15px 30px;
+ border-radius: 5px;
+ color: #fff;
+ display: none;
+ z-index: 1000;
+}
+
+#notification.success {
+ background-color: #28a745;
+}
+
+#notification.error {
+ background-color: #dc3545;
+}
\ No newline at end of file
diff --git a/assets/js/main.js b/assets/js/main.js
new file mode 100644
index 0000000..88aa2e5
--- /dev/null
+++ b/assets/js/main.js
@@ -0,0 +1,26 @@
+// CrownEd Custom Scripts
+document.addEventListener('DOMContentLoaded', function() {
+ const notification = document.getElementById('notification');
+
+ if (notification) {
+ // Show the notification if it exists
+ if (notification.textContent.trim().length > 0) {
+ notification.style.display = 'block';
+ setTimeout(() => {
+ notification.style.display = 'none';
+ }, 5000); // Hide after 5 seconds
+ }
+ }
+
+ // Smooth scrolling for anchor links
+ document.querySelectorAll('a[href^="#"]').forEach(anchor => {
+ anchor.addEventListener('click', function (e) {
+ if (this.getAttribute('href').length > 1) {
+ e.preventDefault();
+ document.querySelector(this.getAttribute('href')).scrollIntoView({
+ behavior: 'smooth'
+ });
+ }
+ });
+ });
+});
\ No newline at end of file
diff --git a/index.php b/index.php
index 7205f3d..3bc9878 100644
--- a/index.php
+++ b/index.php
@@ -1,150 +1,134 @@
'error', 'message' => 'Please fill all fields correctly.'];
+ } else {
+ // IMPORTANT: Ask the user for the recipient email address.
+ // For now, we use the default from .env or MailService config.
+ $to = null;
+ $subject = 'New Contact Form Submission from ' . $name;
+
+ $res = MailService::sendContactMessage($name, $email, $message, $to, $subject);
+
+ if (!empty($res['success'])) {
+ $notification = ['status' => 'success', 'message' => 'Thank you! Your message has been sent.'];
+ } else {
+ // Do not expose detailed error messages to the user.
+ error_log('MailService Error: ' . $res['error']);
+ $notification = ['status' => 'error', 'message' => 'Sorry, there was an error sending your message. Please try again later.'];
+ }
+ }
+}
?>
-
+
-
-
- New Style
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+ CrownEd - Luxury Education Platform
+
+
-
-
-
Analyzing your requirements and generating your website…
-
- Loading…
-
-
= ($_SERVER['HTTP_HOST'] ?? '') === 'appwizzy.com' ? 'AppWizzy' : 'Flatlogic' ?> AI is collecting your requirements and applying the first changes.
-
This page will update automatically as the plan is implemented.
-
Runtime: PHP = htmlspecialchars($phpVersion) ?> — UTC = htmlspecialchars($now) ?>
-
-
-
- Page updated: = htmlspecialchars($now) ?> (UTC)
-
+
+
+
+
+
+
+
Unlock Your Academic Potential
+
Experience a new era of learning with AI-powered tools, extensive resources, and a community dedicated to excellence.
+
Get Started Now
+
+
+
+
+
+
Platform Features
+
+
Past Papers Archive
+
Access a vast and organized library of past examination papers. Search, filter, and download resources to prepare effectively.
+
+
+
AI Study Helper
+
Our intelligent assistant helps you tackle difficult questions, understand complex topics, and get personalized study recommendations.
+
+
+
Community & Collaboration
+
Connect with peers and educators. Share knowledge, form study groups, and grow together in a supportive environment.
+
+
+
+
+
+
+
About CrownEd
+
CrownEd was founded on the principle that every student deserves access to the best educational tools. We blend traditional resources with cutting-edge technology to create a learning experience that is not only effective but also inspiring. Our mission is to empower the next generation of leaders, thinkers, and innovators.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+