3545 lines
150 KiB
HTML
3545 lines
150 KiB
HTML
<!doctype html>
|
||
<html lang="en">
|
||
<head>
|
||
<!-- Playables SDK -->
|
||
<script>
|
||
// Playables SDK v1.0.0
|
||
// Game lifecycle bridge: rAF-based game-ready detection + event communication
|
||
(function () {
|
||
"use strict";
|
||
|
||
// Idempotency: skip if already initialized (e.g., server-side injection
|
||
// followed by client-side inject-javascript via the Bloks webview component).
|
||
if (window.playablesSDK) return;
|
||
|
||
var HANDLER_NAME = "playablesGameEventHandler";
|
||
var ANDROID_BRIDGE_NAME = "_MetaPlayablesBridge";
|
||
var RAF_FRAME_THRESHOLD = 3;
|
||
|
||
var gameReadySent = false;
|
||
var firstInteractionSent = false;
|
||
var errorSent = false;
|
||
var frameCount = 0;
|
||
var originalRAF = window.requestAnimationFrame;
|
||
|
||
// --- Transport Layer ---
|
||
|
||
function hasIOSBridge() {
|
||
return !!(
|
||
window.webkit &&
|
||
window.webkit.messageHandlers &&
|
||
window.webkit.messageHandlers[HANDLER_NAME]
|
||
);
|
||
}
|
||
|
||
function hasAndroidBridge() {
|
||
return !!(
|
||
window[ANDROID_BRIDGE_NAME] &&
|
||
typeof window[ANDROID_BRIDGE_NAME].postEvent === "function"
|
||
);
|
||
}
|
||
|
||
function isInIframe() {
|
||
return !!(window.parent && window.parent !== window);
|
||
}
|
||
|
||
function sendEvent(eventName, payload) {
|
||
var message = {
|
||
type: eventName,
|
||
payload: payload || {},
|
||
timestamp: Date.now(),
|
||
};
|
||
|
||
if (hasIOSBridge()) {
|
||
try {
|
||
window.webkit.messageHandlers[HANDLER_NAME].postMessage(message);
|
||
} catch (e) {
|
||
/* ignore */
|
||
}
|
||
return;
|
||
}
|
||
|
||
if (hasAndroidBridge()) {
|
||
try {
|
||
var p = payload || {};
|
||
p.__secureToken = window.__fbAndroidBridgeAuthToken || "";
|
||
p.timestamp = message.timestamp;
|
||
window[ANDROID_BRIDGE_NAME].postEvent(
|
||
eventName,
|
||
JSON.stringify(p),
|
||
);
|
||
} catch (e) {
|
||
/* ignore */
|
||
}
|
||
return;
|
||
}
|
||
|
||
if (isInIframe()) {
|
||
try {
|
||
window.parent.postMessage(message, "*");
|
||
} catch (e) {
|
||
/* ignore */
|
||
}
|
||
return;
|
||
}
|
||
}
|
||
|
||
// --- rAF Game-Ready Detection ---
|
||
|
||
function onFrame() {
|
||
if (gameReadySent) return;
|
||
|
||
frameCount++;
|
||
if (frameCount >= RAF_FRAME_THRESHOLD) {
|
||
gameReadySent = true;
|
||
sendEvent("game_ready", {
|
||
frame_count: frameCount,
|
||
detected_at: Date.now(),
|
||
});
|
||
return;
|
||
}
|
||
|
||
originalRAF.call(window, onFrame);
|
||
}
|
||
|
||
if (originalRAF) {
|
||
window.requestAnimationFrame = function (callback) {
|
||
if (!gameReadySent) {
|
||
return originalRAF.call(window, function (timestamp) {
|
||
frameCount++;
|
||
if (frameCount >= RAF_FRAME_THRESHOLD && !gameReadySent) {
|
||
gameReadySent = true;
|
||
sendEvent("game_ready", {
|
||
frame_count: frameCount,
|
||
detected_at: Date.now(),
|
||
});
|
||
}
|
||
callback(timestamp);
|
||
});
|
||
}
|
||
return originalRAF.call(window, callback);
|
||
};
|
||
}
|
||
|
||
// --- First User Interaction Detection ---
|
||
|
||
function setupFirstInteractionDetection() {
|
||
var events = ["touchstart", "mousedown", "keydown"];
|
||
|
||
function onFirstInteraction() {
|
||
if (firstInteractionSent) return;
|
||
firstInteractionSent = true;
|
||
sendEvent("user_interaction_start", null);
|
||
|
||
for (var i = 0; i < events.length; i++) {
|
||
document.removeEventListener(events[i], onFirstInteraction, true);
|
||
}
|
||
}
|
||
|
||
for (var i = 0; i < events.length; i++) {
|
||
document.addEventListener(events[i], onFirstInteraction, true);
|
||
}
|
||
}
|
||
|
||
if (document.readyState === "loading") {
|
||
document.addEventListener(
|
||
"DOMContentLoaded",
|
||
setupFirstInteractionDetection,
|
||
);
|
||
} else {
|
||
setupFirstInteractionDetection();
|
||
}
|
||
|
||
// --- Auto Error Capture ---
|
||
|
||
window.addEventListener("error", function (event) {
|
||
if (errorSent) return;
|
||
errorSent = true;
|
||
sendEvent("error", {
|
||
message: event.message || "Unknown error",
|
||
source: event.filename || "",
|
||
lineno: event.lineno || 0,
|
||
colno: event.colno || 0,
|
||
auto_captured: true,
|
||
});
|
||
});
|
||
|
||
window.addEventListener("unhandledrejection", function (event) {
|
||
if (errorSent) return;
|
||
errorSent = true;
|
||
var reason = event.reason;
|
||
sendEvent("error", {
|
||
message: reason instanceof Error ? reason.message : String(reason),
|
||
type: "unhandled_promise_rejection",
|
||
auto_captured: true,
|
||
});
|
||
});
|
||
|
||
// --- Public API ---
|
||
|
||
window.playablesSDK = {
|
||
complete: function (score) {
|
||
sendEvent("game_ended", {
|
||
score: score,
|
||
completed: true,
|
||
});
|
||
},
|
||
|
||
error: function (message) {
|
||
if (errorSent) return;
|
||
errorSent = true;
|
||
sendEvent("error", {
|
||
message: message || "Unknown error",
|
||
auto_captured: false,
|
||
});
|
||
},
|
||
|
||
sendEvent: function (eventName, payload) {
|
||
if (!eventName || typeof eventName !== "string") return;
|
||
sendEvent(eventName, payload);
|
||
},
|
||
};
|
||
|
||
// Kick off rAF detection in case no game code calls rAF immediately
|
||
if (originalRAF) {
|
||
originalRAF.call(window, onFrame);
|
||
}
|
||
})();
|
||
</script>
|
||
<!-- PLAYABLE_TOUCH_PATCH_V1 -->
|
||
<script>
|
||
(function () {
|
||
if (window.__playableTouchPatchInstalled) return;
|
||
window.__playableTouchPatchInstalled = true;
|
||
var origAdd = EventTarget.prototype.addEventListener;
|
||
var blockedTypes = { touchstart: 1, touchmove: 1, wheel: 1 };
|
||
EventTarget.prototype.addEventListener = function (
|
||
type,
|
||
listener,
|
||
options,
|
||
) {
|
||
if (blockedTypes[type]) {
|
||
if (options === undefined || options === null) {
|
||
options = { passive: true };
|
||
} else if (typeof options === "boolean") {
|
||
options = { capture: options, passive: true };
|
||
} else {
|
||
options = Object.assign({}, options, { passive: true });
|
||
}
|
||
}
|
||
return origAdd.call(this, type, listener, options);
|
||
};
|
||
})();
|
||
</script>
|
||
<script>
|
||
window.Intl = window.Intl || {};
|
||
Intl.t = function (s) {
|
||
return (Intl._locale && Intl._locale[s]) || s;
|
||
};
|
||
</script>
|
||
<meta charset="UTF-8" />
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||
<meta name="google-site-verification" content="dLRj4am2SRFjY-jRE1ltjJbK9Em2niGsUGA6Fbuf8rI" />
|
||
<title>Aira Group of Technology | Sovereign AI, Systems & Software Engineering</title>
|
||
<link rel="icon" type="image/png" href="assets/logo.png" />
|
||
<script src="https://cdn.tailwindcss.com"></script>
|
||
<link
|
||
rel="stylesheet"
|
||
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"
|
||
/>
|
||
<!-- Google Identity Services (GSI) -->
|
||
<script src="https://accounts.google.com/gsi/client" async defer></script>
|
||
<link
|
||
href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap"
|
||
rel="stylesheet"
|
||
/>
|
||
<style>
|
||
:root {
|
||
--navy: #0a2342;
|
||
--navy-light: #13315c;
|
||
--navy-accent: #1d4ed8;
|
||
--white: #ffffff;
|
||
--gray: #64748b;
|
||
--light-gray: #f8fafc;
|
||
}
|
||
|
||
* {
|
||
scroll-behavior: smooth;
|
||
}
|
||
|
||
body {
|
||
font-family: "Inter", sans-serif;
|
||
color: #1e293b;
|
||
}
|
||
|
||
.font-display {
|
||
font-family: "Playfair Display", serif;
|
||
}
|
||
|
||
.gradient-text {
|
||
background: linear-gradient(135deg, #1d4ed8 0%, #0a2342 100%);
|
||
-webkit-background-clip: text;
|
||
-webkit-text-fill-color: transparent;
|
||
background-clip: text;
|
||
}
|
||
|
||
.hero-bg {
|
||
background:
|
||
linear-gradient(
|
||
135deg,
|
||
rgba(10, 35, 66, 0.95) 0%,
|
||
rgba(19, 49, 92, 0.92) 100%
|
||
),
|
||
url("https://images.unsplash.com/photo-1677442136019-21780ecad995?q=80&w=2940")
|
||
center/cover;
|
||
}
|
||
|
||
.card-hover {
|
||
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
||
}
|
||
|
||
.card-hover:hover {
|
||
transform: translateY(-12px);
|
||
box-shadow: 0 25px 50px rgba(10, 35, 66, 0.15);
|
||
}
|
||
|
||
.btn-primary {
|
||
background: linear-gradient(135deg, #1d4ed8 0%, #0a2342 100%);
|
||
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
||
box-shadow: 0 4px 14px rgba(29, 78, 216, 0.25);
|
||
position: relative;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.btn-primary::before {
|
||
content: "";
|
||
position: absolute;
|
||
top: 0;
|
||
left: -100%;
|
||
width: 100%;
|
||
height: 100%;
|
||
background: linear-gradient(
|
||
90deg,
|
||
transparent,
|
||
rgba(255, 255, 255, 0.2),
|
||
transparent
|
||
);
|
||
transition: left 0.5s;
|
||
}
|
||
|
||
.btn-primary:hover::before {
|
||
left: 100%;
|
||
}
|
||
|
||
.btn-primary:hover {
|
||
transform: translateY(-3px) scale(1.02);
|
||
box-shadow: 0 12px 30px rgba(29, 78, 216, 0.4);
|
||
}
|
||
|
||
.btn-secondary {
|
||
transition: all 0.3s ease;
|
||
}
|
||
|
||
.btn-secondary:hover {
|
||
transform: translateY(-2px);
|
||
box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
|
||
}
|
||
|
||
.nav-link {
|
||
position: relative;
|
||
transition: color 0.3s ease;
|
||
}
|
||
|
||
.nav-link::after {
|
||
content: "";
|
||
position: absolute;
|
||
width: 0;
|
||
height: 2px;
|
||
bottom: -4px;
|
||
left: 0;
|
||
background: #1d4ed8;
|
||
transition: width 0.3s ease;
|
||
}
|
||
|
||
.nav-link:hover::after {
|
||
width: 100%;
|
||
}
|
||
|
||
.mobile-menu {
|
||
max-height: 0;
|
||
overflow: hidden;
|
||
transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
||
}
|
||
|
||
.mobile-menu.active {
|
||
max-height: 500px;
|
||
}
|
||
|
||
.glow-effect {
|
||
box-shadow: 0 0 40px rgba(29, 78, 216, 0.3);
|
||
animation: pulse-glow 3s ease-in-out infinite;
|
||
}
|
||
|
||
@keyframes pulse-glow {
|
||
0%,
|
||
100% {
|
||
box-shadow: 0 0 40px rgba(29, 78, 216, 0.3);
|
||
}
|
||
50% {
|
||
box-shadow: 0 0 60px rgba(29, 78, 216, 0.5);
|
||
}
|
||
}
|
||
|
||
.animate-fade-in {
|
||
opacity: 0;
|
||
transform: translateY(30px);
|
||
transition:
|
||
opacity 0.8s ease,
|
||
transform 0.8s ease;
|
||
}
|
||
|
||
.animate-fade-in.visible {
|
||
opacity: 1;
|
||
transform: translateY(0);
|
||
}
|
||
|
||
.animate-scale {
|
||
opacity: 0;
|
||
transform: scale(0.9);
|
||
transition:
|
||
opacity 0.6s ease,
|
||
transform 0.6s ease;
|
||
}
|
||
|
||
.animate-scale.visible {
|
||
opacity: 1;
|
||
transform: scale(1);
|
||
}
|
||
|
||
.service-icon {
|
||
transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
||
}
|
||
|
||
.card-hover:hover .service-icon {
|
||
transform: rotateY(360deg) scale(1.1);
|
||
}
|
||
|
||
.float-animation {
|
||
animation: float 6s ease-in-out infinite;
|
||
}
|
||
|
||
@keyframes float {
|
||
0%,
|
||
100% {
|
||
transform: translateY(0px);
|
||
}
|
||
50% {
|
||
transform: translateY(-20px);
|
||
}
|
||
}
|
||
|
||
.logo-item {
|
||
filter: grayscale(100%);
|
||
opacity: 0.6;
|
||
transition: all 0.3s ease;
|
||
}
|
||
|
||
.logo-item:hover {
|
||
filter: grayscale(0%);
|
||
opacity: 1;
|
||
transform: scale(1.05);
|
||
}
|
||
|
||
/* Technology Stack Section */
|
||
.tech-stack {
|
||
max-width: 1200px;
|
||
margin: 40px auto;
|
||
text-align: center;
|
||
background-color: #0a0e1a;
|
||
color: #ffffff;
|
||
padding: 40px 20px;
|
||
border-radius: 24px;
|
||
border: 1px solid #1e293b;
|
||
}
|
||
|
||
.tech-badge {
|
||
display: inline-block;
|
||
background: #1e293b;
|
||
color: #94a3b8;
|
||
padding: 8px 20px;
|
||
border-radius: 20px;
|
||
font-size: 14px;
|
||
margin-bottom: 24px;
|
||
border: 1px solid #334155;
|
||
}
|
||
|
||
.tech-stack h2 {
|
||
font-size: 48px;
|
||
font-weight: 700;
|
||
margin-bottom: 16px;
|
||
line-height: 1.2;
|
||
color: #ffffff;
|
||
}
|
||
|
||
.tech-stack h2 .highlight {
|
||
background: linear-gradient(135deg, #3b82f6, #06b6d4);
|
||
-webkit-background-clip: text;
|
||
-webkit-text-fill-color: transparent;
|
||
background-clip: text;
|
||
}
|
||
|
||
.tech-stack .subtitle {
|
||
color: #94a3b8;
|
||
font-size: 16px;
|
||
max-width: 600px;
|
||
margin: 0 auto 48px;
|
||
line-height: 1.6;
|
||
}
|
||
|
||
.tech-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
|
||
gap: 20px;
|
||
margin-top: 40px;
|
||
}
|
||
|
||
.tech-card {
|
||
background: #1e293b;
|
||
border: 1px solid #334155;
|
||
border-radius: 16px;
|
||
padding: 32px 20px;
|
||
transition: all 0.3s ease;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.tech-card:hover {
|
||
transform: translateY(-4px);
|
||
border-color: #3b82f6;
|
||
box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
|
||
}
|
||
|
||
.tech-icon {
|
||
font-size: 48px;
|
||
margin-bottom: 16px;
|
||
}
|
||
|
||
.tech-card h3 {
|
||
font-size: 16px;
|
||
font-weight: 600;
|
||
color: #ffffff;
|
||
}
|
||
|
||
/* Icon Colors */
|
||
.react {
|
||
color: #61dafb;
|
||
}
|
||
.nodejs {
|
||
color: #68a063;
|
||
}
|
||
.python {
|
||
color: #ffde57;
|
||
}
|
||
.aws {
|
||
color: #ff9900;
|
||
}
|
||
.docker {
|
||
color: #2496ed;
|
||
}
|
||
.mongodb {
|
||
color: #47a248;
|
||
}
|
||
.vue {
|
||
color: #42b883;
|
||
}
|
||
.angular {
|
||
color: #dd0031;
|
||
}
|
||
|
||
@media (max-width: 768px) {
|
||
.tech-stack h2 {
|
||
font-size: 32px;
|
||
}
|
||
.tech-grid {
|
||
grid-template-columns: repeat(2, 1fr);
|
||
gap: 16px;
|
||
}
|
||
.tech-card {
|
||
padding: 24px 16px;
|
||
}
|
||
}
|
||
|
||
/* Smooth Scroll and Section Offset for Fixed Header */
|
||
html {
|
||
scroll-behavior: smooth !important;
|
||
}
|
||
section, footer {
|
||
scroll-margin-top: 85px !important;
|
||
}
|
||
|
||
</style>
|
||
</head>
|
||
<body class="bg-white antialiased">
|
||
<!-- Navigation -->
|
||
<nav
|
||
class="fixed w-full bg-white/95 backdrop-blur-md z-50 shadow-sm transition-shadow duration-300"
|
||
>
|
||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||
<div class="flex justify-between items-center h-20">
|
||
<a href="#home" class="flex items-center space-x-3 group">
|
||
<img
|
||
src="assets/logo.png"
|
||
alt="Aira Group Official Logo"
|
||
class="w-10 h-10 rounded-xl shadow-md object-contain transition-transform duration-300 group-hover:scale-105"
|
||
/>
|
||
<span class="text-2xl font-bold text-[#0a2342] tracking-tight"
|
||
>Aira<span class="font-light text-blue-600">Group</span></span
|
||
>
|
||
</a>
|
||
|
||
<div class="hidden md:flex items-center space-x-8">
|
||
<a
|
||
href="#home"
|
||
class="nav-link text-slate-700 hover:text-blue-700 font-medium"
|
||
>Home</a
|
||
>
|
||
<a
|
||
href="#services"
|
||
class="nav-link text-slate-700 hover:text-blue-700 font-medium"
|
||
>Solutions</a
|
||
>
|
||
<a
|
||
href="#about"
|
||
class="nav-link text-slate-700 hover:text-blue-700 font-medium"
|
||
>About</a
|
||
>
|
||
<a
|
||
href="#trusted"
|
||
class="nav-link text-slate-700 hover:text-blue-700 font-medium"
|
||
>Feedback</a
|
||
>
|
||
<a
|
||
href="#careers"
|
||
class="nav-link text-slate-700 hover:text-blue-700 font-medium"
|
||
>Careers</a
|
||
>
|
||
<a
|
||
href="#faq"
|
||
class="nav-link text-slate-700 hover:text-blue-700 font-medium"
|
||
>FAQ</a
|
||
>
|
||
<button
|
||
onclick="openFounderDesk()"
|
||
class="btn-primary text-white px-5 py-2.5 rounded-lg font-semibold flex items-center gap-2 cursor-pointer shadow-md hover:shadow-blue-500/30"
|
||
>
|
||
<i class="fas fa-comment-dots text-sm"></i> Chat with Founder
|
||
</button>
|
||
</div>
|
||
|
||
<button
|
||
id="mobile-menu-btn"
|
||
class="md:hidden text-[#0a2342] text-2xl transition-transform hover:scale-110"
|
||
>
|
||
<i class="fas fa-bars"></i>
|
||
</button>
|
||
</div>
|
||
|
||
<div id="mobile-menu" class="mobile-menu md:hidden">
|
||
<div class="py-4 space-y-3">
|
||
<a
|
||
href="#home"
|
||
class="block text-slate-700 hover:text-blue-700 font-medium py-2 transition"
|
||
>Home</a
|
||
>
|
||
<a
|
||
href="#services"
|
||
class="block text-slate-700 hover:text-blue-700 font-medium py-2 transition"
|
||
>Solutions</a
|
||
>
|
||
<a
|
||
href="#about"
|
||
class="block text-slate-700 hover:text-blue-700 font-medium py-2 transition"
|
||
>About</a
|
||
>
|
||
<a
|
||
href="#trusted"
|
||
class="block text-slate-700 hover:text-blue-700 font-medium py-2 transition"
|
||
>Feedback</a
|
||
>
|
||
<a
|
||
href="#careers"
|
||
class="block text-slate-700 hover:text-blue-700 font-medium py-2 transition"
|
||
>Careers</a
|
||
>
|
||
<a
|
||
href="#faq"
|
||
class="block text-slate-700 hover:text-blue-700 font-medium py-2 transition"
|
||
>FAQ</a
|
||
>
|
||
<button
|
||
onclick="openFounderDesk(); document.getElementById('mobile-menu').classList.remove('active');"
|
||
class="w-full btn-primary text-white text-center px-6 py-2.5 rounded-lg font-semibold mt-4 flex items-center justify-center gap-2 cursor-pointer shadow-md"
|
||
>
|
||
<i class="fas fa-comment-dots text-sm"></i> Chat with Founder
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</nav>
|
||
|
||
<!-- Hero Section -->
|
||
<section id="home" class="hero-bg min-h-screen flex items-center pt-20">
|
||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-20 w-full">
|
||
<div class="grid lg:grid-cols-2 gap-12 items-center">
|
||
<div class="text-white animate-fade-in visible">
|
||
<div
|
||
class="inline-block px-4 py-1.5 bg-white/10 backdrop-blur-sm rounded-full text-sm font-medium mb-6 border border-white/20 hover:bg-white/20 transition-all duration-300"
|
||
>
|
||
<i class="fas fa-microchip mr-2 text-cyan-400"></i>Sovereign AI • Deep-Tech Systems • Cloud Architecture
|
||
</div>
|
||
<h1
|
||
class="font-display text-5xl md:text-6xl lg:text-7xl font-bold leading-tight mb-6"
|
||
>
|
||
Engineering Sovereign Intelligence, Scalable Cloud & Native Systems
|
||
</h1>
|
||
<p class="text-xl text-slate-200 mb-8 leading-relaxed">
|
||
Aira Group of Technology is an independent, deep-tech engineering powerhouse. From Sovereign AI platforms and bare-metal OS kernels to high-performance Flutter mobile apps and enterprise web solutions — we architect, engineer, and ship products built to lead the future.
|
||
</p>
|
||
<div class="flex flex-col sm:flex-row gap-4">
|
||
<button
|
||
onclick="openFounderDesk()"
|
||
class="btn-primary text-white px-8 py-4 rounded-lg font-semibold text-center text-lg flex items-center justify-center gap-2 cursor-pointer shadow-xl hover:shadow-blue-600/40"
|
||
>
|
||
<i class="fas fa-comment-dots"></i> Chat with Founder
|
||
</button>
|
||
<a
|
||
href="#services"
|
||
class="btn-secondary bg-white/10 backdrop-blur-sm border-2 border-white/30 text-white px-8 py-4 rounded-lg font-semibold text-center text-lg hover:bg-white/20"
|
||
>
|
||
View All Services
|
||
</a>
|
||
</div>
|
||
<div class="mt-12 flex items-center gap-8 flex-wrap">
|
||
<div class="hover:scale-110 transition-transform duration-300">
|
||
<div class="text-4xl font-bold text-cyan-400">100%</div>
|
||
<div class="text-slate-300 text-sm">Sovereign Architecture</div>
|
||
</div>
|
||
<div class="w-px h-12 bg-white/20"></div>
|
||
<div class="hover:scale-110 transition-transform duration-300">
|
||
<div class="text-4xl font-bold text-emerald-400">5+</div>
|
||
<div class="text-slate-300 text-sm">Flagship Systems</div>
|
||
</div>
|
||
<div class="w-px h-12 bg-white/20"></div>
|
||
<div class="hover:scale-110 transition-transform duration-300">
|
||
<div class="text-4xl font-bold text-blue-400">< 4m</div>
|
||
<div class="text-slate-300 text-sm">Automated Cloud CI/CD</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="hidden lg:block relative float-animation">
|
||
<div
|
||
class="absolute inset-0 bg-blue-600 rounded-3xl blur-3xl opacity-20"
|
||
></div>
|
||
<img
|
||
src="https://images.unsplash.com/photo-1555066931-4365d14bab8c?q=80&w=2940"
|
||
alt="Software development and AI"
|
||
class="relative rounded-3xl shadow-2xl border-4 border-white/10 glow-effect"
|
||
/>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- Services Section -->
|
||
<section id="services" class="py-24 bg-slate-50">
|
||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||
<div class="text-center max-w-3xl mx-auto mb-16 animate-fade-in">
|
||
<span class="text-blue-600 font-semibold text-sm uppercase tracking-wider">Our Sovereign Stack & Services</span>
|
||
<h2 class="font-display text-4xl md:text-5xl font-bold text-[#0a2342] mt-3 mb-4">
|
||
Deep-Tech Systems, AI & Native Software
|
||
</h2>
|
||
<p class="text-lg text-slate-600">
|
||
From sovereign intelligence and private telecommunication cores to high-converting web platforms and mobile apps — explore our live releases and open-source architectures.
|
||
</p>
|
||
</div>
|
||
|
||
<div class="grid md:grid-cols-2 lg:grid-cols-3 gap-8">
|
||
<!-- Card 1: Aira AI Platform -->
|
||
<div class="card-hover bg-white rounded-2xl p-8 shadow-lg border-2 border-blue-500/20 relative overflow-hidden animate-scale flex flex-col justify-between">
|
||
<div>
|
||
<div class="flex items-center justify-between mb-4">
|
||
<div class="w-14 h-14 rounded-xl bg-gradient-to-br from-blue-600 to-[#0a2342] flex items-center justify-center service-icon">
|
||
<i class="fas fa-brain text-white text-2xl"></i>
|
||
</div>
|
||
<span class="bg-blue-600 text-white text-[11px] font-bold px-3 py-1 rounded-full uppercase tracking-wider">
|
||
Flagship AI
|
||
</span>
|
||
</div>
|
||
<h3 class="text-2xl font-bold text-[#0a2342] mb-3">Aira AI Sovereign Platform</h3>
|
||
<p class="text-slate-600 mb-5 leading-relaxed text-sm">
|
||
Sovereign multimodal intelligence engine featuring Malayalam & English reasoning, low-latency live voice interaction, and native cross-platform deployment.
|
||
</p>
|
||
<ul class="space-y-2.5 mb-6 text-sm">
|
||
<li class="flex items-center text-slate-700">
|
||
<i class="fas fa-check-circle text-blue-600 mr-2.5"></i>
|
||
<span>Multimodal Voice & Vision Intelligence</span>
|
||
</li>
|
||
<li class="flex items-center text-slate-700">
|
||
<i class="fas fa-check-circle text-blue-600 mr-2.5"></i>
|
||
<span>Live Production WebChat & Mobile App</span>
|
||
</li>
|
||
<li class="flex items-center text-slate-700">
|
||
<i class="fas fa-check-circle text-blue-600 mr-2.5"></i>
|
||
<span>Zero Corporate Dependency</span>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
<div class="pt-4 border-t border-slate-100 flex flex-wrap items-center gap-2">
|
||
<a href="https://airaai-gamma.vercel.app" target="_blank" class="text-xs font-bold text-white bg-blue-600 hover:bg-blue-700 px-3 py-1.5 rounded-lg flex items-center gap-1 shadow-sm transition">
|
||
Live WebChat <i class="fas fa-arrow-up-right-from-square text-[10px]"></i>
|
||
</a>
|
||
<a href="https://github.com/adameehanairagroup/Aira-Mobile-App/releases/tag/v1.0.1" target="_blank" class="text-xs font-bold text-emerald-700 bg-emerald-100 hover:bg-emerald-200 px-3 py-1.5 rounded-lg flex items-center gap-1 transition">
|
||
APK v1.0.1 <i class="fas fa-download text-[10px]"></i>
|
||
</a>
|
||
<a href="https://github.com/adameehanairagroup/Aira-AI-Chat" target="_blank" class="text-xs font-bold text-slate-700 bg-slate-100 hover:bg-slate-200 px-3 py-1.5 rounded-lg flex items-center gap-1 transition">
|
||
<i class="fab fa-github"></i> Source
|
||
</a>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Card 2: Native Flutter Mobile Apps -->
|
||
<div class="card-hover bg-white rounded-2xl p-8 shadow-lg border border-slate-100 animate-scale flex flex-col justify-between" style="transition-delay: 0.1s">
|
||
<div>
|
||
<div class="w-14 h-14 rounded-xl bg-gradient-to-br from-indigo-600 to-[#0a2342] flex items-center justify-center mb-6 service-icon">
|
||
<i class="fas fa-mobile-screen-button text-white text-2xl"></i>
|
||
</div>
|
||
<h3 class="text-2xl font-bold text-[#0a2342] mb-3">Native Mobile Development</h3>
|
||
<p class="text-slate-600 mb-5 leading-relaxed text-sm">
|
||
Lightning-fast cross-platform Android & iOS apps engineered with Flutter, featuring automated Cloud CI/CD release pipelines and offline-first native architectures.
|
||
</p>
|
||
<ul class="space-y-2.5 mb-6 text-sm">
|
||
<li class="flex items-center text-slate-700">
|
||
<i class="fas fa-check-circle text-indigo-600 mr-2.5"></i>
|
||
<span>Turnkey Android & iOS Mobile Apps</span>
|
||
</li>
|
||
<li class="flex items-center text-slate-700">
|
||
<i class="fas fa-check-circle text-indigo-600 mr-2.5"></i>
|
||
<span>Sub-4-Minute Cloud Compilation</span>
|
||
</li>
|
||
<li class="flex items-center text-slate-700">
|
||
<i class="fas fa-check-circle text-indigo-600 mr-2.5"></i>
|
||
<span>Custom Client Portals & Booking</span>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
<div class="pt-4 border-t border-slate-100 flex flex-wrap items-center justify-between gap-2">
|
||
<a href="https://github.com/adameehanairagroup/Aira-Mobile-App" target="_blank" class="text-xs font-bold text-indigo-700 bg-indigo-50 hover:bg-indigo-100 px-3 py-1.5 rounded-lg inline-flex items-center gap-1.5 transition">
|
||
<i class="fab fa-github text-sm"></i> Mobile App Source Code
|
||
</a>
|
||
<a href="#contact" class="text-indigo-600 font-semibold hover:text-indigo-800 text-xs inline-flex items-center group">
|
||
Order App <i class="fas fa-arrow-right ml-1 text-[10px] group-hover:translate-x-1 transition-transform"></i>
|
||
</a>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Card 3: Next.js Business Web Platforms -->
|
||
<div class="card-hover bg-white rounded-2xl p-8 shadow-lg border border-slate-100 animate-scale flex flex-col justify-between" style="transition-delay: 0.2s">
|
||
<div>
|
||
<div class="w-14 h-14 rounded-xl bg-gradient-to-br from-cyan-600 to-[#0a2342] flex items-center justify-center mb-6 service-icon">
|
||
<i class="fas fa-globe text-white text-2xl"></i>
|
||
</div>
|
||
<h3 class="text-2xl font-bold text-[#0a2342] mb-3">Modern Web Platforms</h3>
|
||
<p class="text-slate-600 mb-5 leading-relaxed text-sm">
|
||
High-converting web applications, student portals, and corporate platforms built with Next.js, React, Tailwind CSS, and global edge deployments.
|
||
</p>
|
||
<ul class="space-y-2.5 mb-6 text-sm">
|
||
<li class="flex items-center text-slate-700">
|
||
<i class="fas fa-check-circle text-cyan-600 mr-2.5"></i>
|
||
<span>Coaching, Institute & Academy Portals</span>
|
||
</li>
|
||
<li class="flex items-center text-slate-700">
|
||
<i class="fas fa-check-circle text-cyan-600 mr-2.5"></i>
|
||
<span>Automated WhatsApp Lead Flow</span>
|
||
</li>
|
||
<li class="flex items-center text-slate-700">
|
||
<i class="fas fa-check-circle text-cyan-600 mr-2.5"></i>
|
||
<span>100/100 Lighthouse Performance</span>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
<div class="pt-4 border-t border-slate-100 flex flex-wrap items-center justify-between gap-2">
|
||
<a href="https://github.com/adameehanairagroup/Aira-Company-Website" target="_blank" class="text-xs font-bold text-cyan-700 bg-cyan-50 hover:bg-cyan-100 px-3 py-1.5 rounded-lg inline-flex items-center gap-1.5 transition">
|
||
<i class="fab fa-github text-sm"></i> Portal Source Code
|
||
</a>
|
||
<a href="#contact" class="text-cyan-600 font-semibold hover:text-cyan-800 text-xs inline-flex items-center group">
|
||
Launch Site <i class="fas fa-arrow-right ml-1 text-[10px] group-hover:translate-x-1 transition-transform"></i>
|
||
</a>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Card 4: Aira-Telecom Offline Cellular -->
|
||
<div class="card-hover bg-white rounded-2xl p-8 shadow-lg border-2 border-emerald-500/20 animate-scale flex flex-col justify-between">
|
||
<div>
|
||
<div class="flex items-center justify-between mb-4">
|
||
<div class="w-14 h-14 rounded-xl bg-gradient-to-br from-emerald-600 to-[#0a2342] flex items-center justify-center service-icon">
|
||
<i class="fas fa-tower-broadcast text-white text-2xl"></i>
|
||
</div>
|
||
<span class="bg-emerald-600 text-white text-[11px] font-bold px-3 py-1 rounded-full uppercase tracking-wider">
|
||
Deep Telecom
|
||
</span>
|
||
</div>
|
||
<h3 class="text-2xl font-bold text-[#0a2342] mb-3">Aira-Telecom: Offline Cellular</h3>
|
||
<p class="text-slate-600 mb-5 leading-relaxed text-sm">
|
||
Private 4G/GSM cellular core and base station engineering using SDR hardware, enabling voice calls and emergency messaging during total blackout disasters without telecom towers or internet.
|
||
</p>
|
||
<ul class="space-y-2.5 mb-6 text-sm">
|
||
<li class="flex items-center text-slate-700">
|
||
<i class="fas fa-check-circle text-emerald-600 mr-2.5"></i>
|
||
<span>Zero-Internet Cellular Base Station</span>
|
||
</li>
|
||
<li class="flex items-center text-slate-700">
|
||
<i class="fas fa-check-circle text-emerald-600 mr-2.5"></i>
|
||
<span>Disaster Management & Remote Mesh</span>
|
||
</li>
|
||
<li class="flex items-center text-slate-700">
|
||
<i class="fas fa-check-circle text-emerald-600 mr-2.5"></i>
|
||
<span>Open5GS + SDR Software Radio</span>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
<div class="pt-4 border-t border-slate-100 flex flex-wrap items-center gap-2">
|
||
<a href="https://github.com/adameehanairagroup/Aira-Telecom" target="_blank" class="w-full text-center text-xs font-bold text-white bg-emerald-600 hover:bg-emerald-700 px-4 py-2.5 rounded-lg flex items-center justify-center gap-2 shadow-sm transition">
|
||
<i class="fab fa-github text-sm"></i> View Aira-Telecom Source Code <i class="fas fa-arrow-up-right-from-square text-[10px]"></i>
|
||
</a>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Card 5: Airlys OS Kernel -->
|
||
<div class="card-hover bg-white rounded-2xl p-8 shadow-lg border-2 border-purple-500/20 animate-scale flex flex-col justify-between" style="transition-delay: 0.1s">
|
||
<div>
|
||
<div class="flex items-center justify-between mb-4">
|
||
<div class="w-14 h-14 rounded-xl bg-gradient-to-br from-purple-600 to-[#0a2342] flex items-center justify-center service-icon">
|
||
<i class="fas fa-terminal text-white text-2xl"></i>
|
||
</div>
|
||
<span class="bg-purple-600 text-white text-[11px] font-bold px-3 py-1 rounded-full uppercase tracking-wider">
|
||
OS Systems
|
||
</span>
|
||
</div>
|
||
<h3 class="text-2xl font-bold text-[#0a2342] mb-3">Airlys OS Kernel Engineering</h3>
|
||
<p class="text-slate-600 mb-5 leading-relaxed text-sm">
|
||
64-bit sovereign monolithic operating system kernel engineered from scratch from first principles, booted directly on bare-metal laptop hardware with native memory management.
|
||
</p>
|
||
<ul class="space-y-2.5 mb-6 text-sm">
|
||
<li class="flex items-center text-slate-700">
|
||
<i class="fas fa-check-circle text-purple-600 mr-2.5"></i>
|
||
<span>Custom Bootloader & x86_64 Kernel</span>
|
||
</li>
|
||
<li class="flex items-center text-slate-700">
|
||
<i class="fas fa-check-circle text-purple-600 mr-2.5"></i>
|
||
<span>Direct Framebuffer & Driver Control</span>
|
||
</li>
|
||
<li class="flex items-center text-slate-700">
|
||
<i class="fas fa-check-circle text-purple-600 mr-2.5"></i>
|
||
<span>Pure Sovereign Systems Architecture</span>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
<div class="pt-4 border-t border-slate-100 flex flex-wrap items-center gap-2">
|
||
<a href="https://github.com/adameehanairagroup/AirlysOS" target="_blank" class="w-full text-center text-xs font-bold text-white bg-purple-600 hover:bg-purple-700 px-4 py-2.5 rounded-lg flex items-center justify-center gap-2 shadow-sm transition">
|
||
<i class="fab fa-github text-sm"></i> View Airlys OS Source Code <i class="fas fa-arrow-up-right-from-square text-[10px]"></i>
|
||
</a>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Card 6: AiraLang Language & AI Bots -->
|
||
<div class="card-hover bg-white rounded-2xl p-8 shadow-lg border-2 border-amber-500/20 animate-scale flex flex-col justify-between" style="transition-delay: 0.2s">
|
||
<div>
|
||
<div class="flex items-center justify-between mb-4">
|
||
<div class="w-14 h-14 rounded-xl bg-gradient-to-br from-amber-600 to-[#0a2342] flex items-center justify-center service-icon">
|
||
<i class="fas fa-code text-white text-2xl"></i>
|
||
</div>
|
||
<span class="bg-amber-600 text-white text-[11px] font-bold px-3 py-1 rounded-full uppercase tracking-wider">
|
||
AI-Native Lang
|
||
</span>
|
||
</div>
|
||
<h3 class="text-2xl font-bold text-[#0a2342] mb-3">AiraLang & AI Automation</h3>
|
||
<p class="text-slate-600 mb-5 leading-relaxed text-sm">
|
||
The world's first AI-Native programming language featuring in-compiler directives and self-healing syntax, alongside enterprise 24/7 lead capture chatbots.
|
||
</p>
|
||
<ul class="space-y-2.5 mb-6 text-sm">
|
||
<li class="flex items-center text-slate-700">
|
||
<i class="fas fa-check-circle text-amber-600 mr-2.5"></i>
|
||
<span>AiraLang Compiler & Toolchain</span>
|
||
</li>
|
||
<li class="flex items-center text-slate-700">
|
||
<i class="fas fa-check-circle text-amber-600 mr-2.5"></i>
|
||
<span>24/7 Instant Lead Generation Bots</span>
|
||
</li>
|
||
<li class="flex items-center text-slate-700">
|
||
<i class="fas fa-check-circle text-amber-600 mr-2.5"></i>
|
||
<span>Custom WhatsApp & CRM Automation</span>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
<div class="pt-4 border-t border-slate-100 flex flex-wrap items-center gap-2">
|
||
<a href="https://github.com/adameehanairagroup/Airalang" target="_blank" class="w-full text-center text-xs font-bold text-amber-800 bg-amber-100 hover:bg-amber-200 px-4 py-2.5 rounded-lg flex items-center justify-center gap-2 shadow-sm transition">
|
||
<i class="fab fa-github text-sm"></i> View AiraLang Source Code <i class="fas fa-arrow-up-right-from-square text-[10px]"></i>
|
||
</a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- About Section -->
|
||
<!-- About & Leadership Section -->
|
||
<section id="about" class="py-24 bg-white relative overflow-hidden">
|
||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||
<div class="grid lg:grid-cols-2 gap-12 items-center">
|
||
<div class="relative animate-fade-in space-y-6">
|
||
<div class="absolute -top-6 -left-6 w-72 h-72 bg-blue-100 rounded-full blur-3xl opacity-50"></div>
|
||
|
||
<!-- Card 1: Founder & CEO -->
|
||
<div class="relative bg-gradient-to-br from-[#0a2342] to-[#13315c] rounded-3xl p-6 sm:p-8 shadow-2xl text-white border border-blue-500/20">
|
||
<div class="flex items-center gap-4 mb-4">
|
||
<img src="assets/founder.png" alt="Er. Adam Eehan - Founder & CEO" class="w-16 h-16 sm:w-20 sm:h-20 rounded-full shadow-2xl border-2 border-cyan-400/80 ring-4 ring-cyan-500/20 object-cover flex-shrink-0" />
|
||
<div>
|
||
<h3 class="text-xl font-bold">Er. Adam Eehan</h3>
|
||
<p class="text-blue-300 text-xs font-semibold uppercase tracking-wider">Founder, CEO & Chief Systems Architect</p>
|
||
<div class="mt-1 flex flex-wrap items-center gap-1.5">
|
||
<span class="inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-[10px] font-bold bg-blue-500/20 text-cyan-300 border border-cyan-400/30">
|
||
<i class="fab fa-google text-blue-400"></i> Google Student Ambassador '26
|
||
</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<p class="text-slate-200 text-xs sm:text-sm leading-relaxed mb-4 italic">
|
||
"True engineering excellence cannot be borrowed or franchised from corporate giants. We build from first principles — operating systems, cellular cores, and sovereign artificial intelligence designed to serve with uncompromising technical integrity."
|
||
</p>
|
||
<div class="pt-3 border-t border-white/10 flex flex-wrap items-center justify-between gap-2 text-xs text-slate-300">
|
||
<div class="flex items-center gap-2">
|
||
<i class="fas fa-microchip text-cyan-400"></i>
|
||
<span>Sovereign AI Architect</span>
|
||
</div>
|
||
<div class="flex items-center gap-2">
|
||
<i class="fas fa-terminal text-emerald-400"></i>
|
||
<span>Bare-Metal Systems</span>
|
||
</div>
|
||
<div class="w-full pt-2 mt-1 flex items-center justify-between text-[11px] text-slate-400 border-t border-white/5">
|
||
<span class="flex items-center gap-1.5 text-blue-300 font-medium">
|
||
<i class="fab fa-google text-blue-400"></i> Gemini Ecosystem Ambassador
|
||
</span>
|
||
<a href="https://www.linkedin.com/in/adam-eehan-1058133b7?utm_source=share_via&utm_content=profile&utm_medium=member_android" target="_blank" rel="noopener" class="text-cyan-400 hover:text-cyan-300 flex items-center gap-1 font-semibold">
|
||
LinkedIn Profile <i class="fas fa-arrow-up-right-from-square text-[9px]"></i>
|
||
</a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Card 2: Co-Founder -->
|
||
<div class="relative bg-gradient-to-br from-[#0b192c] to-[#1e3e62] rounded-3xl p-6 sm:p-8 shadow-2xl text-white border border-cyan-500/20">
|
||
<div class="flex items-center gap-4 mb-4">
|
||
<img src="assets/cofounder.jpg" alt="Anandhakrishnan H - Co-Founder & Executive Director" class="w-16 h-16 sm:w-20 sm:h-20 rounded-full shadow-2xl border-2 border-cyan-400/80 ring-4 ring-cyan-500/20 object-cover flex-shrink-0" />
|
||
<div>
|
||
<h3 class="text-xl font-bold">Anandhakrishnan H</h3>
|
||
<p class="text-cyan-300 text-xs font-semibold uppercase tracking-wider">Co-Founder & Executive Director</p>
|
||
<p class="text-xs text-slate-400">Aira Group of Technology</p>
|
||
</div>
|
||
</div>
|
||
<p class="text-slate-200 text-xs sm:text-sm leading-relaxed mb-4 italic">
|
||
"Scaling sovereign deep-tech requires unifying foundational engineering with disciplined operational strategy. Together, we engineer high-impact solutions built to endure."
|
||
</p>
|
||
<div class="grid grid-cols-2 gap-3 pt-3 border-t border-white/10 text-xs text-slate-300">
|
||
<div class="flex items-center gap-2">
|
||
<i class="fas fa-network-wired text-cyan-400"></i>
|
||
<span>Systems Co-Direction</span>
|
||
</div>
|
||
<div class="flex items-center gap-2">
|
||
<i class="fas fa-chart-line text-emerald-400"></i>
|
||
<span>Strategic Operations</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="animate-fade-in" style="transition-delay: 0.2s">
|
||
<span class="text-blue-600 font-semibold text-sm uppercase tracking-wider">Leadership & Vision</span>
|
||
<h2 class="font-display text-4xl md:text-5xl font-bold text-[#0a2342] mt-3 mb-6">
|
||
Architected by Vision. Built from First Principles.
|
||
</h2>
|
||
<p class="text-lg text-slate-600 mb-6 leading-relaxed">
|
||
<strong>Aira Group of Technology</strong> is an independent sovereign deep-tech engineering powerhouse founded by <strong>Er. Adam Eehan</strong> (Google Student Ambassador 2026) and co-founded by <strong>Anandhakrishnan H</strong> in Trivandrum, Kerala. We stand completely independent of corporate influence, building software and hardware solutions from the silicon to the cloud.
|
||
</p>
|
||
<p class="text-lg text-slate-600 mb-8 leading-relaxed">
|
||
From our flagship <strong>Aira AI</strong> platform and <strong>Aira-Telecom</strong> offline cellular base stations to <strong>Airlys OS</strong> and high-performance client web & mobile applications, we don't just assemble templates — we engineer resilient digital infrastructure.
|
||
</p>
|
||
|
||
<div class="grid grid-cols-2 gap-6 mb-8">
|
||
<div class="flex items-start gap-3 group">
|
||
<div class="w-12 h-12 rounded-lg bg-blue-50 flex items-center justify-center flex-shrink-0 group-hover:bg-blue-100 transition-colors duration-300">
|
||
<i class="fas fa-shield-halved text-blue-600 text-xl"></i>
|
||
</div>
|
||
<div>
|
||
<div class="font-bold text-[#0a2342] mb-1">100% Sovereign</div>
|
||
<div class="text-sm text-slate-600">Zero corporate lock-in</div>
|
||
</div>
|
||
</div>
|
||
<div class="flex items-start gap-3 group">
|
||
<div class="w-12 h-12 rounded-lg bg-blue-50 flex items-center justify-center flex-shrink-0 group-hover:bg-blue-100 transition-colors duration-300">
|
||
<i class="fas fa-bolt text-blue-600 text-xl"></i>
|
||
</div>
|
||
<div>
|
||
<div class="font-bold text-[#0a2342] mb-1">Rapid Delivery</div>
|
||
<div class="text-sm text-slate-600">Days, not months</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="flex flex-wrap gap-4">
|
||
<a href="#contact" class="btn-primary inline-block text-white px-8 py-4 rounded-lg font-semibold shadow-lg shadow-blue-600/30">
|
||
Partner With Our Founder
|
||
</a>
|
||
<a href="https://wa.me/918921584368?text=Hello%20Er.%20Adam%20Eehan,%20I%20would%20like%20to%20discuss%20a%20project%20with%20Aira%20Group." target="_blank" class="bg-emerald-600 hover:bg-emerald-700 text-white px-6 py-4 rounded-lg font-semibold inline-flex items-center gap-2 shadow-lg shadow-emerald-600/30 transition-all duration-300">
|
||
<i class="fab fa-whatsapp text-lg"></i>
|
||
<span>Direct WhatsApp Inquiry</span>
|
||
</a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- Verified Reviews & Community Feedback Section -->
|
||
<section id="trusted" class="py-24 bg-slate-50 relative overflow-hidden">
|
||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||
<!-- Section Header -->
|
||
<div class="text-center max-w-3xl mx-auto mb-16 animate-fade-in">
|
||
<span class="text-blue-600 font-semibold text-sm uppercase tracking-wider">
|
||
Verified Reviews & Community Feedback
|
||
</span>
|
||
<h2 class="font-display text-4xl md:text-5xl font-bold text-[#0a2342] mt-3 mb-4">
|
||
Direct Feedback from Clients & Builders
|
||
</h2>
|
||
<p class="text-lg text-slate-600">
|
||
Real feedback authenticated directly via Google. No dummy reviews or fake corporate logos — verified by genuine developers, students, and clients who build with Aira Group.
|
||
</p>
|
||
</div>
|
||
|
||
<!-- Google Feedback Box (Client Verified Submission Card) -->
|
||
<div class="max-w-3xl mx-auto bg-white rounded-3xl p-8 md:p-10 shadow-xl border border-slate-200/80 mb-20 animate-scale relative">
|
||
<!-- State 1: When user is logged out -->
|
||
<div id="google-feedback-loggedout" class="text-center py-6">
|
||
<div class="w-16 h-16 mx-auto mb-4 rounded-2xl bg-blue-50 border border-blue-100 flex items-center justify-center shadow-inner">
|
||
<svg class="w-8 h-8" viewBox="0 0 24 24">
|
||
<path fill="#4285F4" d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"/>
|
||
<path fill="#34A853" d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"/>
|
||
<path fill="#FBBC05" d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.06H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.94l2.85-2.22.81-.63z"/>
|
||
<path fill="#EA4335" d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.06l3.66 2.84c.87-2.6 3.3-4.52 6.16-4.52z"/>
|
||
</svg>
|
||
</div>
|
||
<h3 class="text-2xl font-bold text-[#0a2342] mb-2">Leave a Verified Review</h3>
|
||
<p class="text-slate-600 text-sm max-w-md mx-auto mb-6 leading-relaxed">
|
||
Sign in with your official Google account to share your feedback. Your verified Google photo and Gmail will automatically link to your review.
|
||
</p>
|
||
|
||
<!-- Real Official Google Sign In Container -->
|
||
<div class="flex flex-col items-center justify-center my-4">
|
||
<div id="gsi-btn-container" class="min-h-[50px] flex justify-center items-center"></div>
|
||
|
||
<!-- Direct Token Client Fallback for Mobile/FedCM/White-screen bypass -->
|
||
<button
|
||
type="button"
|
||
onclick="triggerGoogleOAuth()"
|
||
class="mt-3 text-xs text-blue-600 hover:text-blue-800 font-medium inline-flex items-center gap-1.5 transition-colors px-3 py-1.5 rounded-lg hover:bg-blue-50"
|
||
title="Direct Google Account Selector"
|
||
>
|
||
<i class="fab fa-google text-[11px]"></i>
|
||
<span>Direct Google Account Sign-In</span>
|
||
</button>
|
||
</div>
|
||
|
||
<div class="mt-4 flex items-center justify-center gap-2 text-xs text-slate-400">
|
||
<i class="fas fa-shield-halved text-[10px] text-blue-500"></i>
|
||
<span>Official Google OAuth 2.0 • 100% Cryptographically Verified</span>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- State 2: When user is logged in via Google -->
|
||
<div id="google-feedback-loggedin" class="hidden">
|
||
<!-- Verified Identity Banner (Placed ABOVE feedback as requested) -->
|
||
<div class="flex flex-col sm:flex-row sm:items-center justify-between gap-4 p-4 md:p-5 bg-gradient-to-r from-blue-50/80 via-slate-50 to-indigo-50/80 rounded-2xl border border-blue-100 shadow-sm mb-6">
|
||
<div class="flex items-center gap-4">
|
||
<img
|
||
id="v-user-photo"
|
||
src=""
|
||
alt="Google Profile"
|
||
class="w-14 h-14 rounded-full border-2 border-blue-500 shadow-sm object-cover bg-white"
|
||
/>
|
||
<div>
|
||
<div class="flex items-center gap-2 flex-wrap">
|
||
<h4 id="v-user-name" class="font-bold text-[#0a2342] text-lg">User Name</h4>
|
||
<span class="inline-flex items-center gap-1 text-[11px] font-semibold bg-emerald-100 text-emerald-800 px-2.5 py-0.5 rounded-full border border-emerald-200">
|
||
<i class="fas fa-check-circle text-emerald-600 text-[10px]"></i> Google Verified
|
||
</span>
|
||
</div>
|
||
<div class="flex items-center gap-1.5 text-xs text-blue-700 font-medium mt-1">
|
||
<svg class="w-3.5 h-3.5" viewBox="0 0 24 24">
|
||
<path fill="#4285F4" d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"/>
|
||
<path fill="#34A853" d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"/>
|
||
<path fill="#FBBC05" d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.06H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.94l2.85-2.22.81-.63z"/>
|
||
<path fill="#EA4335" d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.06l3.66 2.84c.87-2.6 3.3-4.52 6.16-4.52z"/>
|
||
</svg>
|
||
<span id="v-user-email" class="bg-blue-100/60 px-2 py-0.5 rounded-md font-mono text-[11px]">email@gmail.com</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<button
|
||
onclick="googleLogout()"
|
||
class="text-xs text-slate-500 hover:text-red-600 font-semibold transition self-start sm:self-center flex items-center gap-1.5 px-3 py-1.5 rounded-lg hover:bg-red-50"
|
||
>
|
||
<i class="fas fa-sign-out-alt"></i> Sign Out
|
||
</button>
|
||
</div>
|
||
|
||
<!-- Feedback Submission Form (NO GMAIL INPUT ASKED!) -->
|
||
<form id="verified-feedback-form" onsubmit="handleFeedbackSubmit(event)" class="space-y-4">
|
||
<!-- Star Rating Selection -->
|
||
<div class="flex items-center gap-3">
|
||
<span class="text-sm font-semibold text-[#0a2342]">Your Rating:</span>
|
||
<div id="star-picker" class="flex items-center gap-1 text-2xl text-amber-400 cursor-pointer">
|
||
<i class="fas fa-star" data-rating="1" onclick="setFeedbackRating(1)"></i>
|
||
<i class="fas fa-star" data-rating="2" onclick="setFeedbackRating(2)"></i>
|
||
<i class="fas fa-star" data-rating="3" onclick="setFeedbackRating(3)"></i>
|
||
<i class="fas fa-star" data-rating="4" onclick="setFeedbackRating(4)"></i>
|
||
<i class="fas fa-star" data-rating="5" onclick="setFeedbackRating(5)"></i>
|
||
</div>
|
||
<span id="rating-label" class="text-xs font-semibold text-slate-500 ml-1">5.0 / 5.0 (Excellent)</span>
|
||
</div>
|
||
|
||
<!-- Role / Project Tag Picker -->
|
||
<div>
|
||
<label class="block text-xs font-semibold text-slate-600 uppercase tracking-wider mb-2">Category / Association</label>
|
||
<div class="flex flex-wrap gap-2" id="tag-picker">
|
||
<button type="button" onclick="selectFeedbackTag(this, 'Client / Business Partner')" class="tag-opt active px-3 py-1.5 rounded-lg text-xs font-semibold bg-blue-600 text-white transition">Client / Business Partner</button>
|
||
<button type="button" onclick="selectFeedbackTag(this, 'Open Source Collaborator')" class="tag-opt px-3 py-1.5 rounded-lg text-xs font-semibold bg-slate-100 text-slate-700 hover:bg-slate-200 transition">Open Source Collaborator</button>
|
||
<button type="button" onclick="selectFeedbackTag(this, 'Student / Developer')" class="tag-opt px-3 py-1.5 rounded-lg text-xs font-semibold bg-slate-100 text-slate-700 hover:bg-slate-200 transition">Student / Developer</button>
|
||
<button type="button" onclick="selectFeedbackTag(this, 'Tech Enthusiast')" class="tag-opt px-3 py-1.5 rounded-lg text-xs font-semibold bg-slate-100 text-slate-700 hover:bg-slate-200 transition">Tech Enthusiast</button>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Feedback Textarea -->
|
||
<div>
|
||
<label for="feedbackContent" class="block text-sm font-semibold text-[#0a2342] mb-1.5">
|
||
Your Feedback / Experience <span class="text-red-500">*</span>
|
||
</label>
|
||
<textarea
|
||
id="feedbackContent"
|
||
rows="3"
|
||
required
|
||
placeholder="Share your experience working with Aira Group, reviewing our code, or testing our systems..."
|
||
class="w-full px-4 py-3 rounded-xl border border-slate-300 focus:border-blue-600 focus:ring-2 focus:ring-blue-100 outline-none transition-all duration-300 resize-none text-slate-800 text-sm"
|
||
></textarea>
|
||
</div>
|
||
|
||
<div class="flex items-center justify-between pt-2">
|
||
<span class="text-xs text-slate-400">
|
||
<i class="fas fa-shield-halved mr-1 text-blue-500"></i> Your review will be published instantly with your Google verified badge.
|
||
</span>
|
||
<button
|
||
type="submit"
|
||
id="submit-feedback-btn"
|
||
class="btn-primary text-white px-6 py-3 rounded-xl font-semibold text-sm flex items-center gap-2 shadow-lg shadow-blue-600/30 hover:shadow-xl transition"
|
||
>
|
||
<i class="fas fa-paper-plane text-xs"></i> Post Verified Review
|
||
</button>
|
||
</div>
|
||
</form>
|
||
|
||
<div id="feedback-success-banner" class="hidden mt-4 p-4 bg-emerald-50 border border-emerald-200 rounded-xl text-emerald-800 text-sm font-medium text-center animate-fade-in">
|
||
<i class="fas fa-check-circle mr-1.5 text-emerald-600"></i> Thank you! Your verified review has been posted successfully.
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Verified Reviews Display Grid -->
|
||
<div id="verified-reviews-grid" class="grid md:grid-cols-2 lg:grid-cols-3 gap-8">
|
||
<!-- Populated dynamically via JS -->
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- Careers & Collaborations Section -->
|
||
<section id="careers" class="py-24 bg-slate-50">
|
||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||
<div class="text-center max-w-3xl mx-auto mb-16 animate-fade-in">
|
||
<span class="text-blue-600 font-semibold text-sm uppercase tracking-wider">Join Aira Group</span>
|
||
<h2 class="font-display text-4xl md:text-5xl font-bold text-[#0a2342] mt-3 mb-4">
|
||
Build Sovereign Tech With Us
|
||
</h2>
|
||
<p class="text-lg text-slate-600">
|
||
We are looking for passionate builders, polytechnic & engineering students, and developers to join our sovereign engineering journey. Work directly alongside Founders Er. Adam Eehan and Anandhakrishnan H.
|
||
</p>
|
||
</div>
|
||
|
||
<div class="grid md:grid-cols-2 lg:grid-cols-3 gap-8">
|
||
<!-- Job 1 -->
|
||
<div class="bg-white p-8 rounded-2xl border border-slate-100 shadow-md hover:shadow-lg transition-all duration-300 flex flex-col justify-between">
|
||
<div>
|
||
<span class="px-3 py-1 bg-purple-50 text-purple-700 rounded-full text-xs font-semibold uppercase tracking-wider">
|
||
Open Source / Systems
|
||
</span>
|
||
<h3 class="text-2xl font-bold text-[#0a2342] mt-4 mb-2">
|
||
Systems & Kernel Contributor
|
||
</h3>
|
||
<p class="text-slate-600 mb-6 text-sm leading-relaxed">
|
||
Contribute to low-level systems including Airlys OS (x86_64 monolithic kernel), AiraLang compiler toolchains, and SDR cellular radio drivers. C, Assembly & Rust builders welcome.
|
||
</p>
|
||
</div>
|
||
<button
|
||
onclick="applyForJob('Systems & Kernel Contributor')"
|
||
class="text-blue-600 font-semibold hover:text-blue-800 inline-flex items-center group mt-auto self-start text-sm"
|
||
>
|
||
Collaborate With Us
|
||
<i class="fas fa-arrow-right ml-2 text-xs group-hover:translate-x-1 transition-transform"></i>
|
||
</button>
|
||
</div>
|
||
|
||
<!-- Job 2 -->
|
||
<div class="bg-white p-8 rounded-2xl border border-slate-100 shadow-md hover:shadow-lg transition-all duration-300 flex flex-col justify-between">
|
||
<div>
|
||
<span class="px-3 py-1 bg-blue-50 text-blue-600 rounded-full text-xs font-semibold uppercase tracking-wider">
|
||
Remote / Contract
|
||
</span>
|
||
<h3 class="text-2xl font-bold text-[#0a2342] mt-4 mb-2">
|
||
Frontend & Flutter App Engineer
|
||
</h3>
|
||
<p class="text-slate-600 mb-6 text-sm leading-relaxed">
|
||
Build responsive client web platforms with Next.js & Tailwind CSS, and publish native cross-platform mobile applications on iOS & Android using Flutter.
|
||
</p>
|
||
</div>
|
||
<button
|
||
onclick="applyForJob('Frontend & Flutter App Engineer')"
|
||
class="text-blue-600 font-semibold hover:text-blue-800 inline-flex items-center group mt-auto self-start text-sm"
|
||
>
|
||
Apply for Role
|
||
<i class="fas fa-arrow-right ml-2 text-xs group-hover:translate-x-1 transition-transform"></i>
|
||
</button>
|
||
</div>
|
||
|
||
<!-- Job 3 -->
|
||
<div class="bg-white p-8 rounded-2xl border border-slate-100 shadow-md hover:shadow-lg transition-all duration-300 flex flex-col justify-between">
|
||
<div>
|
||
<span class="px-3 py-1 bg-emerald-50 text-emerald-700 rounded-full text-xs font-semibold uppercase tracking-wider">
|
||
Campus Fellowship
|
||
</span>
|
||
<h3 class="text-2xl font-bold text-[#0a2342] mt-4 mb-2">
|
||
Campus Tech Evangelist
|
||
</h3>
|
||
<p class="text-slate-600 mb-6 text-sm leading-relaxed">
|
||
Represent Aira Group of Technology in Polytechnic & Engineering colleges across Kerala. Organize tech meetups, hackathons, and demo sovereign AI systems on campus.
|
||
</p>
|
||
</div>
|
||
<button
|
||
onclick="applyForJob('Campus Tech Evangelist')"
|
||
class="text-blue-600 font-semibold hover:text-blue-800 inline-flex items-center group mt-auto self-start text-sm"
|
||
>
|
||
Join Fellowship
|
||
<i class="fas fa-arrow-right ml-2 text-xs group-hover:translate-x-1 transition-transform"></i>
|
||
</button>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="mt-12 max-w-2xl mx-auto bg-white p-8 rounded-2xl border border-slate-100 shadow-md text-center">
|
||
<h3 class="text-2xl font-bold text-[#0a2342] mb-2">
|
||
Spontaneous Engineering Query
|
||
</h3>
|
||
<p class="text-slate-600 mb-6 text-sm">
|
||
Have a unique deep-tech skill or want to collaborate on research with Aira Group? Send your GitHub, portfolio, or resume directly to Founder Er. Adam Eehan.
|
||
</p>
|
||
<button
|
||
onclick="applyForJob('Spontaneous Engineering Query')"
|
||
class="btn-primary text-white px-8 py-3 rounded-lg font-semibold inline-block text-sm"
|
||
>
|
||
Submit Resume / Query
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- Contact Section -->
|
||
<section id="contact" class="py-24 bg-white">
|
||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||
<div class="grid lg:grid-cols-2 gap-16">
|
||
<div class="animate-fade-in">
|
||
<span
|
||
class="text-blue-600 font-semibold text-sm uppercase tracking-wider"
|
||
>Start Your Project</span
|
||
>
|
||
<h2
|
||
class="font-display text-4xl md:text-5xl font-bold text-[#0a2342] mt-3 mb-6"
|
||
>
|
||
Let's Build Your Next Digital Product
|
||
</h2>
|
||
<p class="text-lg text-slate-600 mb-8 leading-relaxed">
|
||
Ready to start your software or AI project? Schedule a
|
||
complimentary 30-minute discovery call. We'll analyze your
|
||
requirements and outline a technical roadmap.
|
||
</p>
|
||
|
||
<!-- Font Awesome Icons -->
|
||
<link
|
||
rel="stylesheet"
|
||
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
|
||
/>
|
||
<section class="tech-stack">
|
||
<div class="tech-badge">Technology Stack</div>
|
||
|
||
<h2>
|
||
Powered by <span class="highlight">Modern<br />Tech</span>
|
||
</h2>
|
||
|
||
<p class="subtitle">
|
||
We leverage cutting-edge technologies to build robust, scalable
|
||
solutions
|
||
</p>
|
||
|
||
<div class="tech-grid">
|
||
<div class="tech-card">
|
||
<div class="tech-icon react">
|
||
<i class="fab fa-react"></i>
|
||
</div>
|
||
<h3>React</h3>
|
||
</div>
|
||
|
||
<div class="tech-card">
|
||
<div class="tech-icon nodejs">
|
||
<i class="fab fa-node-js"></i>
|
||
</div>
|
||
<h3>Node.js</h3>
|
||
</div>
|
||
|
||
<div class="tech-card">
|
||
<div class="tech-icon python">
|
||
<i class="fab fa-python"></i>
|
||
</div>
|
||
<h3>Python</h3>
|
||
</div>
|
||
|
||
<div class="tech-card">
|
||
<div class="tech-icon aws">
|
||
<i class="fab fa-aws"></i>
|
||
</div>
|
||
<h3>AWS</h3>
|
||
</div>
|
||
|
||
<div class="tech-card">
|
||
<div class="tech-icon docker">
|
||
<i class="fab fa-docker"></i>
|
||
</div>
|
||
<h3>Docker</h3>
|
||
</div>
|
||
|
||
<div class="tech-card">
|
||
<div class="tech-icon mongodb">
|
||
<i class="fas fa-database"></i>
|
||
</div>
|
||
<h3>MongoDB</h3>
|
||
</div>
|
||
|
||
<div class="tech-card">
|
||
<div class="tech-icon vue">
|
||
<i class="fab fa-vuejs"></i>
|
||
</div>
|
||
<h3>Vue.js</h3>
|
||
</div>
|
||
|
||
<div class="tech-card">
|
||
<div class="tech-icon angular">
|
||
<i class="fab fa-angular"></i>
|
||
</div>
|
||
<h3>Angular</h3>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<div class="space-y-6">
|
||
<div class="flex items-start gap-4 group">
|
||
<div
|
||
class="w-12 h-12 rounded-lg bg-blue-50 flex items-center justify-center flex-shrink-0 group-hover:bg-blue-100 transition-colors duration-300"
|
||
>
|
||
<i class="fas fa-map-marker-alt text-blue-600"></i>
|
||
</div>
|
||
<div>
|
||
<div class="font-bold text-[#0a2342] mb-1">Headquarters</div>
|
||
<div class="text-slate-600">
|
||
Technopark, Thiruvananthapuram<br />Kerala, India
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="flex items-start gap-4 group">
|
||
<div
|
||
class="w-12 h-12 rounded-lg bg-blue-50 flex items-center justify-center flex-shrink-0 group-hover:bg-blue-100 transition-colors duration-300"
|
||
>
|
||
<i class="fas fa-phone text-blue-600"></i>
|
||
</div>
|
||
<div>
|
||
<div class="font-bold text-[#0a2342] mb-1">Phone</div>
|
||
<div class="text-slate-600">+91 8921 584 368</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="flex items-start gap-4 group">
|
||
<div
|
||
class="w-12 h-12 rounded-lg bg-blue-50 flex items-center justify-center flex-shrink-0 group-hover:bg-blue-100 transition-colors duration-300"
|
||
>
|
||
<i class="fas fa-envelope text-blue-600"></i>
|
||
</div>
|
||
<div>
|
||
<div class="font-bold text-[#0a2342] mb-1">Email</div>
|
||
<div class="text-slate-600">adameehan34@gmail.com</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div
|
||
class="bg-slate-50 rounded-2xl p-8 border border-slate-100 animate-fade-in"
|
||
style="transition-delay: 0.2s"
|
||
>
|
||
<form id="contact-form" class="space-y-6">
|
||
<div class="grid sm:grid-cols-2 gap-6">
|
||
<div>
|
||
<label
|
||
for="firstName"
|
||
class="block text-sm font-semibold text-[#0a2342] mb-2"
|
||
>First Name *</label
|
||
>
|
||
<input
|
||
type="text"
|
||
id="firstName"
|
||
required
|
||
class="w-full px-4 py-3 rounded-lg border border-slate-300 focus:border-blue-600 focus:ring-2 focus:ring-blue-100 outline-none transition-all duration-300"
|
||
/>
|
||
</div>
|
||
<div>
|
||
<label
|
||
for="lastName"
|
||
class="block text-sm font-semibold text-[#0a2342] mb-2"
|
||
>Last Name *</label
|
||
>
|
||
<input
|
||
type="text"
|
||
id="lastName"
|
||
required
|
||
class="w-full px-4 py-3 rounded-lg border border-slate-300 focus:border-blue-600 focus:ring-2 focus:ring-blue-100 outline-none transition-all duration-300"
|
||
/>
|
||
</div>
|
||
</div>
|
||
|
||
<div>
|
||
<label
|
||
for="email"
|
||
class="block text-sm font-semibold text-[#0a2342] mb-2"
|
||
>Email Address *</label
|
||
>
|
||
<input
|
||
type="email"
|
||
id="email"
|
||
required
|
||
class="w-full px-4 py-3 rounded-lg border border-slate-300 focus:border-blue-600 focus:ring-2 focus:ring-blue-100 outline-none transition-all duration-300"
|
||
/>
|
||
</div>
|
||
|
||
<div>
|
||
<label
|
||
for="company"
|
||
class="block text-sm font-semibold text-[#0a2342] mb-2"
|
||
>Company</label
|
||
>
|
||
<input
|
||
type="text"
|
||
id="company"
|
||
class="w-full px-4 py-3 rounded-lg border border-slate-300 focus:border-blue-600 focus:ring-2 focus:ring-blue-100 outline-none transition-all duration-300"
|
||
/>
|
||
</div>
|
||
|
||
<div>
|
||
<label
|
||
for="service"
|
||
class="block text-sm font-semibold text-[#0a2342] mb-2"
|
||
>Service Interest *</label
|
||
>
|
||
<select
|
||
id="service"
|
||
required
|
||
class="w-full px-4 py-3 rounded-lg border border-slate-300 focus:border-blue-600 focus:ring-2 focus:ring-blue-100 outline-none transition-all duration-300 bg-white"
|
||
>
|
||
<option value="">Select a service</option>
|
||
<option value="web">Web Development</option>
|
||
<option value="mobile">Mobile App Development</option>
|
||
<option value="ai">AI & Machine Learning</option>
|
||
<option value="custom">Custom Software Development</option>
|
||
<option value="consulting">Tech Consulting & Strategy</option>
|
||
<option value="mvp">MVP & Startup Solutions</option>
|
||
<option value="other">Other / Not Sure</option>
|
||
</select>
|
||
</div>
|
||
|
||
<div>
|
||
<label
|
||
for="message"
|
||
class="block text-sm font-semibold text-[#0a2342] mb-2"
|
||
>Tell us about your project *</label
|
||
>
|
||
<textarea
|
||
id="message"
|
||
rows="4"
|
||
required
|
||
class="w-full px-4 py-3 rounded-lg border border-slate-300 focus:border-blue-600 focus:ring-2 focus:ring-blue-100 outline-none transition-all duration-300 resize-none"
|
||
></textarea>
|
||
</div>
|
||
|
||
<button
|
||
type="submit"
|
||
class="btn-primary w-full text-white px-8 py-4 rounded-lg font-semibold text-lg"
|
||
>
|
||
Request Consultation
|
||
</button>
|
||
|
||
<p class="text-sm text-slate-500 text-center">
|
||
We'll respond within 24 hours. Your data is encrypted and
|
||
confidential.
|
||
</p>
|
||
</form>
|
||
<div
|
||
id="form-success"
|
||
class="hidden mt-6 p-4 bg-green-50 border border-green-200 rounded-lg text-green-800 text-center animate-fade-in"
|
||
>
|
||
<i class="fas fa-check-circle mr-2"></i>Thank you! Our team will
|
||
be in touch soon.
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- FAQ Section -->
|
||
<section id="faq" class="py-24 bg-slate-50">
|
||
<div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8">
|
||
<div class="text-center mb-16 animate-fade-in">
|
||
<span
|
||
class="text-blue-600 font-semibold text-sm uppercase tracking-wider"
|
||
>FAQ</span
|
||
>
|
||
<h2 class="font-display text-4xl font-bold text-[#0a2342] mt-3 mb-4">
|
||
Frequently Asked Questions
|
||
</h2>
|
||
<p class="text-lg text-slate-600">
|
||
Got questions? We've got answers. If you can't find what you're
|
||
looking for, feel free to reach out to us.
|
||
</p>
|
||
</div>
|
||
|
||
<div class="space-y-4">
|
||
<!-- FAQ 1 -->
|
||
<div
|
||
class="border border-slate-200 rounded-2xl overflow-hidden transition-all duration-300 bg-white"
|
||
>
|
||
<button
|
||
onclick="toggleFaq(1)"
|
||
class="w-full flex justify-between items-center p-6 text-left font-semibold text-lg text-[#0a2342] bg-slate-50 hover:bg-slate-100/50 transition-colors duration-300"
|
||
>
|
||
<span>What technologies does Aira Group specialize in?</span>
|
||
<i
|
||
id="faq-icon-1"
|
||
class="fas fa-chevron-down text-slate-500 transition-transform duration-300"
|
||
></i>
|
||
</button>
|
||
<div
|
||
id="faq-answer-1"
|
||
class="max-h-0 overflow-hidden transition-all duration-300 ease-in-out"
|
||
>
|
||
<div
|
||
class="p-6 text-slate-600 border-t border-slate-100 leading-relaxed"
|
||
>
|
||
We specialize in full-stack web development (React, Next.js,
|
||
Node.js), native & cross-platform mobile apps (Flutter, React
|
||
Native), and AI/Machine Learning integrations (custom LLMs,
|
||
predictive modeling, MLOps).
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- FAQ 2 -->
|
||
<div
|
||
class="border border-slate-200 rounded-2xl overflow-hidden transition-all duration-300 bg-white"
|
||
>
|
||
<button
|
||
onclick="toggleFaq(2)"
|
||
class="w-full flex justify-between items-center p-6 text-left font-semibold text-lg text-[#0a2342] bg-slate-50 hover:bg-slate-100/50 transition-colors duration-300"
|
||
>
|
||
<span>How long does it take to build an MVP?</span>
|
||
<i
|
||
id="faq-icon-2"
|
||
class="fas fa-chevron-down text-slate-500 transition-transform duration-300"
|
||
></i>
|
||
</button>
|
||
<div
|
||
id="faq-answer-2"
|
||
class="max-h-0 overflow-hidden transition-all duration-300 ease-in-out"
|
||
>
|
||
<div
|
||
class="p-6 text-slate-600 border-t border-slate-100 leading-relaxed"
|
||
>
|
||
Typically, we build and deliver high-quality Minimum Viable
|
||
Products (MVPs) in 4 to 8 weeks, depending on the complexity of
|
||
the features.
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- FAQ 3 -->
|
||
<div
|
||
class="border border-slate-200 rounded-2xl overflow-hidden transition-all duration-300 bg-white"
|
||
>
|
||
<button
|
||
onclick="toggleFaq(3)"
|
||
class="w-full flex justify-between items-center p-6 text-left font-semibold text-lg text-[#0a2342] bg-slate-50 hover:bg-slate-100/50 transition-colors duration-300"
|
||
>
|
||
<span>Do I get full ownership of the source code?</span>
|
||
<i
|
||
id="faq-icon-3"
|
||
class="fas fa-chevron-down text-slate-500 transition-transform duration-300"
|
||
></i>
|
||
</button>
|
||
<div
|
||
id="faq-answer-3"
|
||
class="max-h-0 overflow-hidden transition-all duration-300 ease-in-out"
|
||
>
|
||
<div
|
||
class="p-6 text-slate-600 border-t border-slate-100 leading-relaxed"
|
||
>
|
||
Yes, absolutely! Once the project is completed and fully paid,
|
||
you receive 100% intellectual property ownership and source code
|
||
access.
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- FAQ 4 -->
|
||
<div
|
||
class="border border-slate-200 rounded-2xl overflow-hidden transition-all duration-300 bg-white"
|
||
>
|
||
<button
|
||
onclick="toggleFaq(4)"
|
||
class="w-full flex justify-between items-center p-6 text-left font-semibold text-lg text-[#0a2342] bg-slate-50 hover:bg-slate-100/50 transition-colors duration-300"
|
||
>
|
||
<span>How do we communicate during project development?</span>
|
||
<i
|
||
id="faq-icon-4"
|
||
class="fas fa-chevron-down text-slate-500 transition-transform duration-300"
|
||
></i>
|
||
</button>
|
||
<div
|
||
id="faq-answer-4"
|
||
class="max-h-0 overflow-hidden transition-all duration-300 ease-in-out"
|
||
>
|
||
<div
|
||
class="p-6 text-slate-600 border-t border-slate-100 leading-relaxed"
|
||
>
|
||
We maintain full transparency. We set up shared Slack channels,
|
||
weekly demo calls, and regular updates on project management
|
||
tools like Trello or Jira.
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- FAQ 5 -->
|
||
<div
|
||
class="border border-slate-200 rounded-2xl overflow-hidden transition-all duration-300 bg-white"
|
||
>
|
||
<button
|
||
onclick="toggleFaq(5)"
|
||
class="w-full flex justify-between items-center p-6 text-left font-semibold text-lg text-[#0a2342] bg-slate-50 hover:bg-slate-100/50 transition-colors duration-300"
|
||
>
|
||
<span>What is your pricing model?</span>
|
||
<i
|
||
id="faq-icon-5"
|
||
class="fas fa-chevron-down text-slate-500 transition-transform duration-300"
|
||
></i>
|
||
</button>
|
||
<div
|
||
id="faq-answer-5"
|
||
class="max-h-0 overflow-hidden transition-all duration-300 ease-in-out"
|
||
>
|
||
<div
|
||
class="p-6 text-slate-600 border-t border-slate-100 leading-relaxed"
|
||
>
|
||
We offer flexible pricing models: Fixed Price for well-defined
|
||
projects, and Time & Material (hourly or monthly rate) for agile
|
||
product development.
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- Sovereign Engineering Newsletter & Subscriber Section -->
|
||
<section id="newsletter" class="py-20 bg-slate-100 border-t border-slate-200/80">
|
||
<div class="max-w-5xl mx-auto px-4 sm:px-6 lg:px-8">
|
||
<div class="bg-[#0a2342] rounded-3xl p-8 sm:p-14 text-white shadow-xl relative overflow-hidden">
|
||
<!-- Background Subtle Gradient Accents -->
|
||
<div class="absolute -top-24 -right-24 w-96 h-96 bg-blue-600/20 rounded-full blur-3xl pointer-events-none"></div>
|
||
<div class="absolute -bottom-24 -left-24 w-96 h-96 bg-cyan-500/10 rounded-full blur-3xl pointer-events-none"></div>
|
||
|
||
<div class="relative z-10 max-w-3xl mx-auto text-center">
|
||
<div class="inline-flex items-center gap-2 px-3.5 py-1.5 rounded-full bg-blue-900/60 border border-blue-400/30 text-blue-200 text-xs font-semibold uppercase tracking-wider mb-5">
|
||
<i class="fas fa-paper-plane text-cyan-400"></i>
|
||
Sovereign Engineering Dispatches
|
||
</div>
|
||
<h2 class="font-display text-3xl sm:text-4xl font-bold tracking-tight mb-4">
|
||
Sovereign Engineering. Zero Dependency.
|
||
</h2>
|
||
<p class="text-slate-300 text-base leading-relaxed mb-8 max-w-2xl mx-auto font-light">
|
||
Subscribe to receive verified release updates, technical architectural deep-dives on bare-metal kernels, private mesh cellular networks, and sovereign AI platforms directly from Founder Er. Adam Eehan.
|
||
</p>
|
||
|
||
<!-- Subscriber Form with iPhone Slide-to-Subscribe -->
|
||
<form id="subscribe-form" class="max-w-xl mx-auto text-left" onsubmit="return false;">
|
||
<div class="flex flex-col sm:flex-row gap-3 mb-3">
|
||
<div class="w-full sm:w-1/2">
|
||
<input
|
||
type="text"
|
||
id="sub-name"
|
||
placeholder="Your Full Name"
|
||
class="w-full px-4 py-3.5 rounded-xl bg-white/10 border border-white/20 text-white placeholder-slate-400 text-sm focus:outline-none focus:ring-2 focus:ring-blue-400 focus:bg-white/15 transition-all"
|
||
/>
|
||
<p id="sub-name-err" class="hidden text-xs text-rose-300 font-medium mt-1.5 flex items-center gap-1">
|
||
<i class="fas fa-circle-exclamation"></i> Please enter your name
|
||
</p>
|
||
</div>
|
||
<div class="w-full sm:w-1/2">
|
||
<input
|
||
type="email"
|
||
id="sub-email"
|
||
placeholder="developer@company.com"
|
||
class="w-full px-4 py-3.5 rounded-xl bg-white/10 border border-white/20 text-white placeholder-slate-400 text-sm focus:outline-none focus:ring-2 focus:ring-blue-400 focus:bg-white/15 transition-all"
|
||
/>
|
||
<p id="sub-email-err" class="hidden text-xs text-rose-300 font-medium mt-1.5 flex items-center gap-1">
|
||
<i class="fas fa-circle-exclamation"></i> Please enter a valid email
|
||
</p>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- SLIDE TO SUBSCRIBE WIDGET -->
|
||
<div id="sub-slider" class="relative h-14 bg-white/10 border border-white/20 rounded-full overflow-hidden select-none touch-none cursor-pointer mt-3">
|
||
<div id="sub-fill" class="absolute left-0 top-0 h-full w-0 bg-gradient-to-r from-blue-600 to-cyan-500 rounded-full"></div>
|
||
<div id="sub-slider-text" class="absolute inset-0 flex items-center justify-center text-xs font-bold tracking-widest text-slate-300 pointer-events-none uppercase transition-opacity">
|
||
Slide to Subscribe <span class="ml-2">→</span>
|
||
</div>
|
||
<div id="sub-thumb" class="absolute left-1 top-1 w-12 h-12 bg-white text-blue-900 rounded-full shadow-lg flex items-center justify-center font-bold text-sm cursor-grab active:cursor-grabbing z-10 transition-transform">
|
||
<i class="fas fa-arrow-right text-xs"></i>
|
||
</div>
|
||
</div>
|
||
|
||
<p class="text-[11px] text-slate-400 text-center mt-2.5 select-none">
|
||
Drag the button to the right to verify and subscribe
|
||
</p>
|
||
</form>
|
||
|
||
<!-- Response Alert Box -->
|
||
<div id="sub-alert" class="mt-5 hidden max-w-xl mx-auto p-4 rounded-xl text-sm text-left"></div>
|
||
|
||
<p class="text-xs text-slate-400 mt-5 flex items-center justify-center gap-1.5 flex-wrap">
|
||
<svg class="w-3.5 h-3.5 inline-block text-cyan-400 -mt-0.5" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
||
<path stroke-linecap="round" stroke-linejoin="round" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"></path>
|
||
</svg>
|
||
<span>We respect your privacy. Zero spam. 1-click unsubscribe anytime. Read our <a href="/privacy" class="text-blue-400 underline hover:text-white">Privacy Policy</a>.</span>
|
||
</p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- Footer -->
|
||
<footer class="bg-[#0a2342] text-slate-300 py-16">
|
||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||
<div class="grid md:grid-cols-4 gap-12 mb-12">
|
||
<div class="md:col-span-2">
|
||
<div class="flex items-center space-x-3 mb-4">
|
||
<img src="assets/logo.png" alt="Aira Logo" class="w-10 h-10 rounded-xl object-contain bg-white p-0.5 shadow-md" />
|
||
<span class="text-2xl font-bold text-white tracking-tight"
|
||
>Aira<span class="text-blue-400 font-semibold">Group</span></span
|
||
>
|
||
</div>
|
||
<p class="text-slate-300 leading-relaxed mb-3">
|
||
Independent sovereign deep-tech engineering powerhouse. Architecting AI platforms, bare-metal operating systems, private cellular cores, and native business applications.
|
||
</p>
|
||
<div class="flex items-center gap-2 text-sm text-cyan-400 font-semibold mb-6">
|
||
<i class="fas fa-location-dot"></i>
|
||
<span>Technopark, Thiruvananthapuram, Kerala, India</span>
|
||
</div>
|
||
<div class="flex items-center gap-3">
|
||
<a
|
||
href="https://www.linkedin.com/company/aira-group-of-technology"
|
||
target="_blank"
|
||
rel="noopener"
|
||
title="Aira Group of Technology - Official LinkedIn Company Page"
|
||
class="w-10 h-10 rounded-lg bg-[#0077b5]/30 border border-[#0077b5]/50 hover:bg-[#0077b5] text-cyan-300 hover:text-white flex items-center justify-center transition-all duration-300 hover:scale-110 shadow-sm"
|
||
>
|
||
<i class="fab fa-linkedin-in text-lg"></i>
|
||
</a>
|
||
<a
|
||
href="https://www.linkedin.com/in/adam-eehan-1058133b7?utm_source=share_via&utm_content=profile&utm_medium=member_android"
|
||
target="_blank"
|
||
rel="noopener"
|
||
title="Er. Adam Eehan (Founder & CEO) on LinkedIn"
|
||
class="w-10 h-10 rounded-lg bg-white/10 hover:bg-white/20 flex items-center justify-center transition-all duration-300 hover:scale-110"
|
||
>
|
||
<i class="fas fa-user-tie"></i>
|
||
</a>
|
||
<a
|
||
href="https://github.com/airagroupoftechnology"
|
||
target="_blank"
|
||
rel="noopener"
|
||
title="Aira Group of Technology on GitHub"
|
||
class="w-10 h-10 rounded-lg bg-white/10 hover:bg-white/20 flex items-center justify-center transition-all duration-300 hover:scale-110"
|
||
>
|
||
<i class="fab fa-github text-lg"></i>
|
||
</a>
|
||
</div>
|
||
</div>
|
||
|
||
<div>
|
||
<h4 class="text-white font-semibold mb-4">Solutions</h4>
|
||
<ul class="space-y-3">
|
||
<li>
|
||
<a
|
||
href="#services"
|
||
class="hover:text-white transition-colors duration-300 hover:translate-x-1 inline-block"
|
||
>Web Development</a
|
||
>
|
||
</li>
|
||
<li>
|
||
<a
|
||
href="#services"
|
||
class="hover:text-white transition-colors duration-300 hover:translate-x-1 inline-block"
|
||
>Mobile Apps</a
|
||
>
|
||
</li>
|
||
<li>
|
||
<a
|
||
href="#services"
|
||
class="hover:text-white transition-colors duration-300 hover:translate-x-1 inline-block"
|
||
>AI & Machine Learning</a
|
||
>
|
||
</li>
|
||
<li>
|
||
<a
|
||
href="#services"
|
||
class="hover:text-white transition-colors duration-300 hover:translate-x-1 inline-block"
|
||
>Custom Software</a
|
||
>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
|
||
<div>
|
||
<h4 class="text-white font-semibold mb-4">Company</h4>
|
||
<ul class="space-y-3">
|
||
<li>
|
||
<a
|
||
href="#about"
|
||
class="hover:text-white transition-colors duration-300 hover:translate-x-1 inline-block"
|
||
>About Aira</a
|
||
>
|
||
</li>
|
||
<li>
|
||
<a
|
||
href="https://www.linkedin.com/company/aira-group-of-technology"
|
||
target="_blank"
|
||
rel="noopener"
|
||
class="text-slate-300 hover:text-cyan-400 transition-colors duration-300 hover:translate-x-1 inline-flex items-center gap-1.5"
|
||
><i class="fab fa-linkedin text-blue-400"></i> LinkedIn Page</a
|
||
>
|
||
</li>
|
||
<li>
|
||
<a
|
||
href="#trusted"
|
||
class="hover:text-white transition-colors duration-300 hover:translate-x-1 inline-block"
|
||
>Verified Feedback</a
|
||
>
|
||
</li>
|
||
<li>
|
||
<a
|
||
href="#contact"
|
||
class="hover:text-white transition-colors duration-300 hover:translate-x-1 inline-block"
|
||
>Contact</a
|
||
>
|
||
</li>
|
||
<li>
|
||
<a
|
||
href="#careers"
|
||
class="hover:text-white transition-colors duration-300 hover:translate-x-1 inline-block"
|
||
>Careers</a
|
||
>
|
||
</li>
|
||
<li>
|
||
<a
|
||
href="#faq"
|
||
class="hover:text-white transition-colors duration-300 hover:translate-x-1 inline-block"
|
||
>FAQ</a
|
||
>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
|
||
<div
|
||
class="pt-8 border-t border-white/10 flex flex-col md:flex-row justify-between items-center gap-6"
|
||
>
|
||
<p class="text-sm text-slate-400 text-center md:text-left">
|
||
© 2024–2026 Aira Group of Technology • Trivandrum, Kerala. All rights reserved.
|
||
</p>
|
||
|
||
<div class="flex items-center justify-center">
|
||
<a href="https://websitelaunches.com/site/airaaigroup.in" target="_blank" rel="noopener" class="inline-block transition-transform duration-300 hover:scale-105 shadow-md rounded-lg overflow-hidden">
|
||
<img
|
||
src="https://websitelaunches.com/badge/airaaigroup.in.svg"
|
||
alt="Established online - Public launch record"
|
||
width="255"
|
||
height="55"
|
||
/>
|
||
</a>
|
||
</div>
|
||
|
||
<div class="flex gap-6 text-sm">
|
||
<a href="#newsletter" class="hover:text-white transition-colors duration-300"
|
||
>Newsletter</a
|
||
>
|
||
<a href="/privacy" class="hover:text-white transition-colors duration-300"
|
||
>Privacy Policy</a
|
||
>
|
||
<a href="/terms" class="hover:text-white transition-colors duration-300"
|
||
>Terms of Service</a
|
||
>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</footer>
|
||
|
||
<script>
|
||
// Mobile menu toggle
|
||
const mobileMenuBtn = document.getElementById("mobile-menu-btn");
|
||
const mobileMenu = document.getElementById("mobile-menu");
|
||
|
||
mobileMenuBtn.addEventListener("click", () => {
|
||
mobileMenu.classList.toggle("active");
|
||
const icon = mobileMenuBtn.querySelector("i");
|
||
icon.classList.toggle("fa-bars");
|
||
icon.classList.toggle("fa-times");
|
||
});
|
||
|
||
// Close mobile menu on link click
|
||
document.querySelectorAll("#mobile-menu a").forEach((link) => {
|
||
link.addEventListener("click", () => {
|
||
mobileMenu.classList.remove("active");
|
||
mobileMenuBtn.querySelector("i").classList.add("fa-bars");
|
||
mobileMenuBtn.querySelector("i").classList.remove("fa-times");
|
||
});
|
||
});
|
||
|
||
// Ultra-reliable smooth scroll for all anchor links & buttons
|
||
document.querySelectorAll('a[href^="#"]').forEach((anchor) => {
|
||
anchor.addEventListener("click", function (e) {
|
||
const href = this.getAttribute("href");
|
||
if (href && href.startsWith("#") && href.length > 1) {
|
||
const target = document.querySelector(href);
|
||
if (target) {
|
||
e.preventDefault();
|
||
const navHeight = 80;
|
||
const elementPosition = target.getBoundingClientRect().top;
|
||
const offsetPosition = elementPosition + window.pageYOffset - navHeight;
|
||
|
||
window.scrollTo({
|
||
top: offsetPosition,
|
||
behavior: "smooth"
|
||
});
|
||
|
||
// Close mobile menu if open
|
||
const mobileMenu = document.getElementById("mobile-menu");
|
||
const mobileMenuBtn = document.getElementById("mobile-menu-btn");
|
||
if (mobileMenu && mobileMenu.classList.contains("active")) {
|
||
mobileMenu.classList.remove("active");
|
||
if (mobileMenuBtn) {
|
||
const icon = mobileMenuBtn.querySelector("i");
|
||
if (icon) {
|
||
icon.classList.add("fa-bars");
|
||
icon.classList.remove("fa-times");
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
});
|
||
});
|
||
|
||
// Form submission
|
||
const contactForm = document.getElementById("contact-form");
|
||
const formSuccess = document.getElementById("form-success");
|
||
|
||
contactForm.addEventListener("submit", async (e) => {
|
||
e.preventDefault();
|
||
|
||
// Button loading effect
|
||
const submitBtn = contactForm.querySelector('button[type="submit"]');
|
||
const originalBtnText = submitBtn.innerText;
|
||
submitBtn.innerText = "Sending Message... 🚀";
|
||
submitBtn.disabled = true;
|
||
|
||
// Collect data from the form
|
||
const formData = {
|
||
Name:
|
||
document.getElementById("firstName").value +
|
||
" " +
|
||
document.getElementById("lastName").value,
|
||
Email: document.getElementById("email").value,
|
||
Company: document.getElementById("company").value,
|
||
Service: document.getElementById("service").value,
|
||
Message: document.getElementById("message").value,
|
||
_subject: "🚀 New Contact Form Submission - Aira Group!", // Email subject line
|
||
};
|
||
|
||
// TODO: Replace with YOUR actual Gmail address!
|
||
const adminEmail = "adameehan34@gmail.com";
|
||
|
||
try {
|
||
// Send email using FormSubmit API
|
||
await fetch(`https://formsubmit.co/ajax/${adminEmail}`, {
|
||
method: "POST",
|
||
headers: {
|
||
"Content-Type": "application/json",
|
||
Accept: "application/json",
|
||
},
|
||
body: JSON.stringify(formData),
|
||
});
|
||
|
||
formSuccess.classList.remove("hidden");
|
||
contactForm.reset();
|
||
setTimeout(() => formSuccess.classList.add("hidden"), 5000);
|
||
} catch (error) {
|
||
alert("Sorry, something went wrong. Please try again.");
|
||
} finally {
|
||
submitBtn.innerText = originalBtnText;
|
||
submitBtn.disabled = false;
|
||
}
|
||
});
|
||
|
||
// Navbar shadow on scroll
|
||
window.addEventListener("scroll", () => {
|
||
const nav = document.querySelector("nav");
|
||
if (window.scrollY > 10) {
|
||
nav.classList.add("shadow-md");
|
||
} else {
|
||
nav.classList.remove("shadow-md");
|
||
}
|
||
});
|
||
|
||
// Fade-in animation on scroll
|
||
const observerOptions = {
|
||
threshold: 0.1,
|
||
rootMargin: "0px 0px -50px 0px",
|
||
};
|
||
|
||
const observer = new IntersectionObserver((entries) => {
|
||
entries.forEach((entry) => {
|
||
if (entry.isIntersecting) {
|
||
entry.target.classList.add("visible");
|
||
}
|
||
});
|
||
}, observerOptions);
|
||
|
||
document
|
||
.querySelectorAll(".animate-fade-in, .animate-scale")
|
||
.forEach((el) => {
|
||
observer.observe(el);
|
||
});
|
||
|
||
// Open Careers Modal
|
||
function applyForJob(jobTitle) {
|
||
const modal = document.getElementById("careers-modal");
|
||
const modalTitle = document.getElementById("modal-job-title");
|
||
const hiddenInput = document.getElementById("applied-job-title");
|
||
const subjectInput = document.getElementById("careers-email-subject");
|
||
const nextInput = document.getElementById("careers-next-url");
|
||
|
||
if (modal && modalTitle && hiddenInput) {
|
||
modalTitle.innerText = jobTitle;
|
||
hiddenInput.value = jobTitle;
|
||
if (subjectInput) {
|
||
subjectInput.value = `💼 Job Application: ${jobTitle} - Aira Group!`;
|
||
}
|
||
if (nextInput) {
|
||
nextInput.value = window.location.href;
|
||
}
|
||
modal.classList.remove("hidden");
|
||
}
|
||
}
|
||
|
||
// Close Careers Modal
|
||
function closeCareersModal() {
|
||
const modal = document.getElementById("careers-modal");
|
||
if (modal) {
|
||
modal.classList.add("hidden");
|
||
}
|
||
}
|
||
|
||
// Handle Careers Form Submit
|
||
const careersApplyForm = document.getElementById("careers-apply-form");
|
||
if (careersApplyForm) {
|
||
careersApplyForm.addEventListener("submit", () => {
|
||
const submitBtn = careersApplyForm.querySelector(
|
||
'button[type="submit"]',
|
||
);
|
||
if (submitBtn) {
|
||
submitBtn.innerText = "Submitting Application... 🚀";
|
||
}
|
||
});
|
||
}
|
||
|
||
// Dynamic toggle for FAQs
|
||
function toggleFaq(index) {
|
||
const answer = document.getElementById(`faq-answer-${index}`);
|
||
const icon = document.getElementById(`faq-icon-${index}`);
|
||
|
||
if (answer && icon) {
|
||
if (answer.style.maxHeight && answer.style.maxHeight !== "0px") {
|
||
answer.style.maxHeight = "0px";
|
||
icon.style.transform = "rotate(0deg)";
|
||
} else {
|
||
// Close all other FAQs first (for clean behavior)
|
||
for (let i = 1; i <= 5; i++) {
|
||
const otherAnswer = document.getElementById(`faq-answer-${i}`);
|
||
const otherIcon = document.getElementById(`faq-icon-${i}`);
|
||
if (otherAnswer && otherIcon && i !== index) {
|
||
otherAnswer.style.maxHeight = "0px";
|
||
otherIcon.style.transform = "rotate(0deg)";
|
||
}
|
||
}
|
||
|
||
answer.style.maxHeight = answer.scrollHeight + "px";
|
||
icon.style.transform = "rotate(180deg)";
|
||
}
|
||
}
|
||
}
|
||
</script>
|
||
|
||
<script>
|
||
(function () {
|
||
document.addEventListener("click", function (e) {
|
||
var a = e.target.closest("[data-product-id]");
|
||
if (!a) return;
|
||
e.preventDefault();
|
||
var pid = a.getAttribute("data-product-id");
|
||
if (pid)
|
||
parent.postMessage(
|
||
{ type: "ecto-artifact-link-click", productId: pid },
|
||
"*",
|
||
);
|
||
});
|
||
})();
|
||
</script>
|
||
|
||
<!-- Direct Desk: Chat with Founder (Er. Adam Eehan) -->
|
||
<div
|
||
id="founder-desk-widget"
|
||
class="fixed bottom-6 right-6 z-50 flex flex-col items-end"
|
||
>
|
||
<!-- Chat Window -->
|
||
<div
|
||
id="founder-desk-window"
|
||
class="hidden w-[92vw] max-w-[390px] h-[550px] max-h-[85vh] bg-white rounded-2xl shadow-2xl border border-slate-200 overflow-hidden mb-4 transition-all duration-300 origin-bottom-right flex-col"
|
||
>
|
||
<!-- Header -->
|
||
<div
|
||
class="bg-gradient-to-r from-[#0a2342] via-[#0f2d52] to-[#13315c] text-white p-3.5 sm:p-4 flex justify-between items-center shadow-md relative z-10 shrink-0"
|
||
>
|
||
<div class="flex items-center gap-3">
|
||
<div class="relative shrink-0">
|
||
<img
|
||
src="assets/founder.png"
|
||
alt="Er. Adam Eehan"
|
||
class="w-11 h-11 rounded-full object-cover border-2 border-cyan-400/80 shadow-md ring-2 ring-cyan-500/20"
|
||
/>
|
||
<span
|
||
class="absolute bottom-0 right-0 w-3 h-3 bg-emerald-400 border-2 border-[#0a2342] rounded-full"
|
||
title="Online on WhatsApp"
|
||
></span>
|
||
</div>
|
||
<div>
|
||
<div class="flex items-center gap-1.5">
|
||
<h3 class="font-bold text-sm text-white">Er. Adam Eehan</h3>
|
||
<svg class="w-3.5 h-3.5 text-cyan-400 shrink-0" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M6.267 3.455a3.066 3.066 0 001.745-.723 3.066 3.066 0 013.976 0 3.066 3.066 0 001.745.723 3.066 3.066 0 012.812 2.812c.051.643.304 1.254.723 1.745a3.066 3.066 0 010 3.976 3.066 3.066 0 00-.723 1.745 3.066 3.066 0 01-2.812 2.812 3.066 3.066 0 00-1.745.723 3.066 3.066 0 01-3.976 0 3.066 3.066 0 00-1.745-.723 3.066 3.066 0 01-2.812-2.812 3.066 3.066 0 00-.723-1.745 3.066 3.066 0 010-3.976 3.066 3.066 0 00.723-1.745 3.066 3.066 0 012.812-2.812zm7.44 5.252a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd"></path></svg>
|
||
</div>
|
||
<p class="text-[11px] text-blue-200 font-medium">Founder & CEO • Direct Line</p>
|
||
<div class="flex items-center gap-1.5 mt-0.5">
|
||
<span class="w-1.5 h-1.5 rounded-full bg-emerald-400"></span>
|
||
<span class="text-[10px] text-emerald-300 font-mono tracking-tight">WhatsApp Linked • Aira 3 Ultra Ready</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<button
|
||
onclick="toggleFounderDesk()"
|
||
class="text-white/70 hover:text-white transition-colors w-8 h-8 flex items-center justify-center rounded-full hover:bg-white/10 cursor-pointer"
|
||
aria-label="Close Direct Desk"
|
||
>
|
||
<i class="fas fa-times"></i>
|
||
</button>
|
||
</div>
|
||
|
||
<!-- Google Auth Protection Gate (Strict Anti-Bot Shield) -->
|
||
<div id="desk-auth-gate" class="p-6 text-center flex-1 flex flex-col items-center justify-center bg-slate-50">
|
||
<div class="w-14 h-14 rounded-2xl bg-blue-100/90 border border-blue-200 text-blue-600 flex items-center justify-center mb-3 shadow-inner">
|
||
<svg class="w-7 h-7" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24">
|
||
<path stroke-linecap="round" stroke-linejoin="round" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" />
|
||
</svg>
|
||
</div>
|
||
<h4 class="font-bold text-slate-800 text-base mb-1">Founder Direct Desk</h4>
|
||
<p class="text-xs text-slate-500 mb-5 leading-relaxed max-w-xs">
|
||
To eliminate spam and bots, please sign in with Google to connect directly with Er. Adam Eehan's WhatsApp.
|
||
</p>
|
||
<div id="desk-google-signin-btn" class="flex justify-center min-h-[44px]"></div>
|
||
<div class="mt-4 text-[10px] text-slate-400 flex items-center gap-1">
|
||
<i class="fas fa-shield-alt text-emerald-500"></i>
|
||
<span>Verified Human Access • Direct WhatsApp Relay</span>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Active Chat Interface (Visible once authenticated) -->
|
||
<div id="desk-chat-interface" class="hidden flex-1 flex-col h-full bg-slate-50 min-h-0">
|
||
<!-- Auth User Status Ribbon -->
|
||
<div class="px-3 py-1.5 bg-blue-50/90 border-b border-blue-100 flex items-center justify-between text-[11px] text-blue-900 shrink-0">
|
||
<div class="flex items-center gap-1.5 truncate">
|
||
<img id="desk-user-avatar" src="assets/logo.png" class="w-4 h-4 rounded-full" alt="Avatar" />
|
||
<span class="truncate">Verified: <strong id="desk-user-name">Guest</strong></span>
|
||
</div>
|
||
<button onclick="deskSignOut()" class="text-blue-600 hover:text-blue-800 hover:underline shrink-0 text-[10px] ml-2 cursor-pointer">Sign out</button>
|
||
</div>
|
||
|
||
<!-- Chat Stream -->
|
||
<div id="desk-messages" class="flex-1 min-h-0 p-3 sm:p-4 overflow-y-auto space-y-3.5">
|
||
<!-- Welcome greeting from Er. Adam Eehan -->
|
||
<div class="flex items-start gap-2.5">
|
||
<img src="assets/founder.png" class="w-8 h-8 rounded-full object-cover border border-cyan-400/80 shadow-sm shrink-0" alt="Adam" />
|
||
<div class="bg-white p-3.5 rounded-2xl rounded-tl-sm shadow-sm text-xs sm:text-sm text-slate-700 max-w-[85%] border border-slate-200/80 leading-relaxed">
|
||
<div class="text-[10px] font-bold text-blue-700 uppercase tracking-wider mb-1 flex items-center gap-1">
|
||
<span>Er. Adam Eehan</span>
|
||
<span class="bg-blue-100 text-blue-700 text-[9px] px-1.5 py-0.2 rounded-full">Founder & CEO</span>
|
||
</div>
|
||
Hello! Welcome to my Direct Desk. Any message you send here is delivered directly to my personal WhatsApp. Feel free to discuss projects, tech collaborations, or questions. If I am away or occupied, our sovereign Aira 3 Ultra co-pilot will assist you immediately!
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Input Bar -->
|
||
<div class="p-3 bg-white border-t border-slate-200 shrink-0">
|
||
<div class="relative flex items-center">
|
||
<input
|
||
type="text"
|
||
id="desk-input"
|
||
placeholder="Message Er. Adam Eehan..."
|
||
class="w-full pl-4 pr-12 py-2.5 bg-slate-50 rounded-full border border-slate-200 focus:border-blue-500 focus:ring-2 focus:ring-blue-100 outline-none text-xs sm:text-sm transition-all"
|
||
onkeypress="handleDeskEnter(event)"
|
||
autocomplete="off"
|
||
/>
|
||
<button
|
||
onclick="sendDeskMessage()"
|
||
id="desk-send-btn"
|
||
class="absolute right-1.5 w-8 h-8 bg-blue-600 hover:bg-blue-700 text-white rounded-full flex items-center justify-center transition-colors shadow-md cursor-pointer"
|
||
title="Send Message"
|
||
>
|
||
<i class="fas fa-paper-plane text-xs"></i>
|
||
</button>
|
||
</div>
|
||
<div class="text-center mt-1.5">
|
||
<span class="text-[10px] text-slate-400 flex items-center justify-center gap-1 font-medium">
|
||
<i class="fab fa-whatsapp text-emerald-500"></i> Direct WhatsApp Relay • Aira 3 Ultra Co-Pilot
|
||
</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Trigger Button -->
|
||
<button
|
||
id="founder-desk-toggle-btn"
|
||
onclick="toggleFounderDesk()"
|
||
class="bg-gradient-to-r from-[#0a2342] via-[#0f2d52] to-[#13315c] text-white p-2.5 sm:px-4 sm:py-3 rounded-full shadow-2xl hover:shadow-blue-500/30 hover:scale-105 transition-all duration-300 flex items-center gap-2.5 border-2 border-cyan-400/60 cursor-pointer group"
|
||
title="Direct Desk: Chat with Founder"
|
||
>
|
||
<div class="relative shrink-0">
|
||
<img src="assets/founder.png" alt="Er. Adam Eehan" class="w-9 h-9 rounded-full object-cover ring-2 ring-cyan-400/70" />
|
||
<span class="absolute bottom-0 right-0 w-2.5 h-2.5 bg-emerald-400 border-2 border-[#0a2342] rounded-full"></span>
|
||
</div>
|
||
<div class="text-left hidden sm:block">
|
||
<div class="text-xs font-bold text-white tracking-wide flex items-center gap-1">
|
||
<span>Chat with Founder</span>
|
||
<span class="w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"></span>
|
||
</div>
|
||
<div class="text-[10px] text-cyan-300">Er. Adam Eehan • WhatsApp Live</div>
|
||
</div>
|
||
</button>
|
||
</div>
|
||
|
||
<!-- Careers Application Modal -->
|
||
<div
|
||
id="careers-modal"
|
||
class="fixed inset-0 z-50 flex items-center justify-center hidden bg-black/60 backdrop-blur-sm p-4 transition-all duration-300"
|
||
>
|
||
<div
|
||
class="bg-white rounded-2xl w-full max-w-lg shadow-2xl overflow-hidden"
|
||
>
|
||
<!-- Header -->
|
||
<div
|
||
class="bg-gradient-to-r from-blue-600 to-[#0a2342] text-white px-6 py-4 flex justify-between items-center"
|
||
>
|
||
<div>
|
||
<h3 class="font-bold text-lg">Apply for Position</h3>
|
||
<p id="modal-job-title" class="text-xs text-blue-200 font-medium">
|
||
Job Title
|
||
</p>
|
||
</div>
|
||
<button
|
||
onclick="closeCareersModal()"
|
||
class="text-white/80 hover:text-white transition-colors w-8 h-8 flex items-center justify-center rounded-full hover:bg-white/10"
|
||
>
|
||
<i class="fas fa-times"></i>
|
||
</button>
|
||
</div>
|
||
|
||
<!-- Form -->
|
||
<form
|
||
id="careers-apply-form"
|
||
action="https://formsubmit.co/adameehan34@gmail.com"
|
||
method="POST"
|
||
enctype="multipart/form-data"
|
||
class="p-6 space-y-4"
|
||
>
|
||
<input type="hidden" id="applied-job-title" name="Job Title" />
|
||
<input type="hidden" name="_next" id="careers-next-url" value="" />
|
||
<input
|
||
type="hidden"
|
||
name="_subject"
|
||
id="careers-email-subject"
|
||
value="💼 Job Application - Aira Group!"
|
||
/>
|
||
|
||
<div>
|
||
<label
|
||
for="applicantName"
|
||
class="block text-sm font-semibold text-[#0a2342] mb-1"
|
||
>Full Name *</label
|
||
>
|
||
<input
|
||
type="text"
|
||
id="applicantName"
|
||
name="Name"
|
||
required
|
||
class="w-full px-4 py-2.5 rounded-lg border border-slate-300 focus:border-blue-600 focus:ring-2 focus:ring-blue-100 outline-none transition-all duration-300"
|
||
/>
|
||
</div>
|
||
|
||
<div>
|
||
<label
|
||
for="applicantEmail"
|
||
class="block text-sm font-semibold text-[#0a2342] mb-1"
|
||
>Email Address *</label
|
||
>
|
||
<input
|
||
type="email"
|
||
id="applicantEmail"
|
||
name="Email"
|
||
required
|
||
class="w-full px-4 py-2.5 rounded-lg border border-slate-300 focus:border-blue-600 focus:ring-2 focus:ring-blue-100 outline-none transition-all duration-300"
|
||
/>
|
||
</div>
|
||
|
||
<div>
|
||
<label
|
||
for="applicantPhone"
|
||
class="block text-sm font-semibold text-[#0a2342] mb-1"
|
||
>Phone Number *</label
|
||
>
|
||
<input
|
||
type="tel"
|
||
id="applicantPhone"
|
||
name="Phone"
|
||
required
|
||
class="w-full px-4 py-2.5 rounded-lg border border-slate-300 focus:border-blue-600 focus:ring-2 focus:ring-blue-100 outline-none transition-all duration-300"
|
||
/>
|
||
</div>
|
||
|
||
<div>
|
||
<label
|
||
for="applicantPortfolio"
|
||
class="block text-sm font-semibold text-[#0a2342] mb-1"
|
||
>GitHub / Portfolio Link *</label
|
||
>
|
||
<input
|
||
type="url"
|
||
id="applicantPortfolio"
|
||
name="Portfolio"
|
||
required
|
||
placeholder="https://..."
|
||
class="w-full px-4 py-2.5 rounded-lg border border-slate-300 focus:border-blue-600 focus:ring-2 focus:ring-blue-100 outline-none transition-all duration-300"
|
||
/>
|
||
</div>
|
||
|
||
<div>
|
||
<label
|
||
for="applicantResume"
|
||
class="block text-sm font-semibold text-[#0a2342] mb-1"
|
||
>Upload Resume (PDF, DOC, DOCX) *</label
|
||
>
|
||
<input
|
||
type="file"
|
||
id="applicantResume"
|
||
name="attachment"
|
||
required
|
||
accept=".pdf,.doc,.docx"
|
||
class="w-full px-4 py-2.5 rounded-lg border border-slate-300 focus:border-blue-600 focus:ring-2 focus:ring-blue-100 outline-none transition-all duration-300 bg-white file:mr-4 file:py-1.5 file:px-3 file:rounded-full file:border-0 file:text-xs file:font-semibold file:bg-blue-50 file:text-blue-700 hover:file:bg-blue-100"
|
||
/>
|
||
</div>
|
||
|
||
<div>
|
||
<label
|
||
for="applicantMessage"
|
||
class="block text-sm font-semibold text-[#0a2342] mb-1"
|
||
>Why do you want to join us? *</label
|
||
>
|
||
<textarea
|
||
id="applicantMessage"
|
||
name="Message"
|
||
rows="3"
|
||
required
|
||
class="w-full px-4 py-2.5 rounded-lg border border-slate-300 focus:border-blue-600 focus:ring-2 focus:ring-blue-100 outline-none transition-all duration-300 resize-none"
|
||
></textarea>
|
||
</div>
|
||
|
||
<button
|
||
type="submit"
|
||
class="btn-primary w-full text-white px-6 py-3 rounded-lg font-semibold text-base mt-2"
|
||
>
|
||
Submit Application
|
||
</button>
|
||
</form>
|
||
<div
|
||
id="apply-form-success"
|
||
class="hidden p-6 bg-green-50 border-t border-green-100 text-green-800 text-center font-medium"
|
||
>
|
||
<i class="fas fa-check-circle mr-2"></i>Application submitted
|
||
successfully!
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Direct Desk Engine (Connected to Founder WhatsApp & Aira 3 Ultra) -->
|
||
<script>
|
||
let deskUser = null;
|
||
let deskPollingInterval = null;
|
||
let lastDeskPollTimestamp = Date.now();
|
||
let deskMessagesHistory = [];
|
||
|
||
// Google Identity Services Client ID
|
||
const DESK_GOOGLE_CLIENT_ID = "267802159841-leun1b8b85ongsoc5pkjhufe4s5jbjj8.apps.googleusercontent.com";
|
||
|
||
// JWT Decode helper
|
||
function parseJwtPayload(token) {
|
||
try {
|
||
const base64Url = token.split('.')[1];
|
||
const base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/');
|
||
const jsonPayload = decodeURIComponent(
|
||
atob(base64)
|
||
.split('')
|
||
.map(c => '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2))
|
||
.join('')
|
||
);
|
||
return JSON.parse(jsonPayload);
|
||
} catch (e) {
|
||
return null;
|
||
}
|
||
}
|
||
|
||
// Initialize Desk State on load
|
||
function initFounderDeskAuth() {
|
||
const stored = localStorage.getItem("aira_founder_desk_user") || localStorage.getItem("aira_google_user");
|
||
if (stored) {
|
||
try {
|
||
deskUser = JSON.parse(stored);
|
||
showDeskChatView();
|
||
return;
|
||
} catch (e) {}
|
||
}
|
||
showDeskAuthGate();
|
||
}
|
||
|
||
function showDeskAuthGate() {
|
||
const gate = document.getElementById("desk-auth-gate");
|
||
const chat = document.getElementById("desk-chat-interface");
|
||
if (gate) gate.classList.remove("hidden");
|
||
if (chat) chat.classList.add("hidden");
|
||
|
||
renderDeskGoogleBtn();
|
||
}
|
||
|
||
function showDeskChatView() {
|
||
const gate = document.getElementById("desk-auth-gate");
|
||
const chat = document.getElementById("desk-chat-interface");
|
||
if (gate) gate.classList.add("hidden");
|
||
if (chat) {
|
||
chat.classList.remove("hidden");
|
||
chat.classList.add("flex");
|
||
}
|
||
|
||
if (deskUser) {
|
||
const nameEl = document.getElementById("desk-user-name");
|
||
const avatarEl = document.getElementById("desk-user-avatar");
|
||
if (nameEl) nameEl.textContent = deskUser.name || deskUser.email || "Verified Visitor";
|
||
if (avatarEl && deskUser.picture) avatarEl.src = deskUser.picture;
|
||
|
||
loadDeskLocalMessages();
|
||
startDeskPolling();
|
||
}
|
||
}
|
||
|
||
function renderDeskGoogleBtn() {
|
||
const container = document.getElementById("desk-google-signin-btn");
|
||
if (!container) return;
|
||
|
||
if (typeof google !== "undefined" && google.accounts && google.accounts.id) {
|
||
try {
|
||
google.accounts.id.initialize({
|
||
client_id: DESK_GOOGLE_CLIENT_ID,
|
||
callback: handleDeskGoogleCallback,
|
||
auto_select: false
|
||
});
|
||
google.accounts.id.renderButton(container, {
|
||
theme: "filled_blue",
|
||
size: "large",
|
||
text: "signin_with",
|
||
shape: "pill",
|
||
width: 250
|
||
});
|
||
} catch (err) {
|
||
console.error("GIS render error:", err);
|
||
}
|
||
} else {
|
||
setTimeout(renderDeskGoogleBtn, 300);
|
||
}
|
||
}
|
||
|
||
function handleDeskGoogleCallback(response) {
|
||
if (!response || !response.credential) return;
|
||
const payload = parseJwtPayload(response.credential);
|
||
if (payload) {
|
||
deskUser = {
|
||
name: payload.name || payload.email.split('@')[0],
|
||
email: payload.email,
|
||
picture: payload.picture || "assets/logo.png",
|
||
sub: payload.sub || payload.email
|
||
};
|
||
localStorage.setItem("aira_founder_desk_user", JSON.stringify(deskUser));
|
||
localStorage.setItem("aira_google_user", JSON.stringify(deskUser));
|
||
showDeskChatView();
|
||
}
|
||
}
|
||
|
||
window.deskSignOut = function() {
|
||
localStorage.removeItem("aira_founder_desk_user");
|
||
deskUser = null;
|
||
if (deskPollingInterval) clearInterval(deskPollingInterval);
|
||
showDeskAuthGate();
|
||
};
|
||
|
||
window.openFounderDesk = function() {
|
||
const win = document.getElementById("founder-desk-window");
|
||
if (!win) return;
|
||
win.classList.remove("hidden");
|
||
win.classList.add("flex");
|
||
initFounderDeskAuth();
|
||
setTimeout(() => {
|
||
const inp = document.getElementById("desk-input");
|
||
if (inp && !win.classList.contains("hidden") && deskUser) inp.focus();
|
||
}, 150);
|
||
};
|
||
|
||
window.toggleFounderDesk = function() {
|
||
const win = document.getElementById("founder-desk-window");
|
||
if (!win) return;
|
||
const isHidden = win.classList.contains("hidden");
|
||
if (isHidden) {
|
||
openFounderDesk();
|
||
} else {
|
||
win.classList.add("hidden");
|
||
win.classList.remove("flex");
|
||
if (deskPollingInterval) clearInterval(deskPollingInterval);
|
||
}
|
||
};
|
||
|
||
function loadDeskLocalMessages() {
|
||
if (!deskUser) return;
|
||
const key = `aira_desk_msgs_${deskUser.sub || deskUser.email}`;
|
||
const stored = localStorage.getItem(key);
|
||
if (stored) {
|
||
try {
|
||
deskMessagesHistory = JSON.parse(stored);
|
||
renderAllDeskMessages();
|
||
} catch (e) {}
|
||
}
|
||
}
|
||
|
||
function saveDeskLocalMessages() {
|
||
if (!deskUser) return;
|
||
const key = `aira_desk_msgs_${deskUser.sub || deskUser.email}`;
|
||
localStorage.setItem(key, JSON.stringify(deskMessagesHistory.slice(-50)));
|
||
}
|
||
|
||
function renderAllDeskMessages() {
|
||
const container = document.getElementById("desk-messages");
|
||
if (!container) return;
|
||
const welcome = container.firstElementChild;
|
||
container.innerHTML = "";
|
||
if (welcome) container.appendChild(welcome);
|
||
|
||
deskMessagesHistory.forEach(m => appendDeskMessageUI(m, false));
|
||
container.scrollTop = container.scrollHeight;
|
||
}
|
||
|
||
function appendDeskMessageUI(msgObj, shouldScroll = true) {
|
||
const container = document.getElementById("desk-messages");
|
||
if (!container) return;
|
||
|
||
const isUser = msgObj.sender === "user";
|
||
const isFounder = msgObj.sender === "founder";
|
||
|
||
const msgDiv = document.createElement("div");
|
||
msgDiv.className = isUser
|
||
? "flex items-start gap-2.5 flex-row-reverse"
|
||
: "flex items-start gap-2.5";
|
||
|
||
let avatarHtml = "";
|
||
let bubbleClass = "";
|
||
let headerBadge = "";
|
||
|
||
if (isUser) {
|
||
avatarHtml = `<img src="${deskUser?.picture || 'assets/logo.png'}" class="w-7 h-7 rounded-full object-cover shrink-0 shadow-sm" alt="You" />`;
|
||
bubbleClass = "bg-gradient-to-r from-blue-600 to-blue-700 text-white p-3 rounded-2xl rounded-tr-sm shadow-sm text-xs sm:text-sm max-w-[85%] leading-relaxed";
|
||
} else if (isFounder) {
|
||
avatarHtml = `<img src="assets/founder.png" class="w-8 h-8 rounded-full object-cover border-2 border-emerald-400 shadow-md ring-2 ring-emerald-500/20 shrink-0" alt="Adam Eehan" />`;
|
||
bubbleClass = "bg-[#0a2342] text-white p-3.5 rounded-2xl rounded-tl-sm shadow-md text-xs sm:text-sm max-w-[85%] border border-emerald-400/30 leading-relaxed";
|
||
headerBadge = `<div class="text-[10px] font-bold text-emerald-400 uppercase tracking-wider mb-1 flex items-center gap-1.5"><span class="w-1.5 h-1.5 rounded-full bg-emerald-400 animate-ping"></span><span>Er. Adam Eehan (Founder & CEO)</span><span class="bg-emerald-500/20 text-emerald-300 text-[9px] px-1.5 py-0.5 rounded-full border border-emerald-500/30">Verified WhatsApp</span></div>`;
|
||
} else {
|
||
avatarHtml = `<div class="w-8 h-8 rounded-full bg-gradient-to-br from-indigo-600 via-purple-600 to-[#0a2342] text-white flex items-center justify-center text-xs font-bold shrink-0 shadow-sm border border-cyan-400/40">AI</div>`;
|
||
bubbleClass = "bg-white p-3.5 rounded-2xl rounded-tl-sm shadow-sm text-xs sm:text-sm text-slate-700 max-w-[85%] border border-slate-200 leading-relaxed";
|
||
headerBadge = `<div class="text-[10px] font-bold text-purple-700 uppercase tracking-wider mb-1 flex items-center gap-1.5"><span>Aira 3 Ultra</span><span class="bg-purple-100 text-purple-700 text-[9px] px-1.5 py-0.5 rounded-full">Executive Co-Pilot</span></div>`;
|
||
}
|
||
|
||
const safeText = (msgObj.text || "")
|
||
.replace(/&/g, "&")
|
||
.replace(/</g, "<")
|
||
.replace(/>/g, ">")
|
||
.replace(/\*\*(.*?)\*\*/g, "<strong>$1</strong>")
|
||
.replace(/\n/g, "<br>");
|
||
|
||
msgDiv.innerHTML = `${avatarHtml}<div class="${bubbleClass}">${headerBadge}${safeText}</div>`;
|
||
container.appendChild(msgDiv);
|
||
if (shouldScroll) container.scrollTop = container.scrollHeight;
|
||
return msgDiv;
|
||
}
|
||
|
||
window.handleDeskEnter = function(e) {
|
||
if (e.key === "Enter") sendDeskMessage();
|
||
};
|
||
|
||
window.sendDeskMessage = async function() {
|
||
const inp = document.getElementById("desk-input");
|
||
if (!inp) return;
|
||
const text = inp.value.trim();
|
||
if (!text) return;
|
||
if (!deskUser) {
|
||
openFounderDesk();
|
||
return;
|
||
}
|
||
|
||
inp.value = "";
|
||
|
||
const userMsg = {
|
||
id: `usr_${Date.now()}`,
|
||
sender: "user",
|
||
senderName: deskUser.name,
|
||
text: text,
|
||
timestamp: Date.now()
|
||
};
|
||
|
||
deskMessagesHistory.push(userMsg);
|
||
appendDeskMessageUI(userMsg, true);
|
||
saveDeskLocalMessages();
|
||
|
||
const typingEl = appendDeskMessageUI({
|
||
sender: "aira_ultra",
|
||
text: "Relaying message directly to Er. Adam Eehan's WhatsApp..."
|
||
}, true);
|
||
|
||
try {
|
||
const res = await fetch("/api/desk", {
|
||
method: "POST",
|
||
headers: { "Content-Type": "application/json" },
|
||
body: JSON.stringify({
|
||
userId: deskUser.sub || deskUser.email,
|
||
userName: deskUser.name,
|
||
userEmail: deskUser.email,
|
||
userAvatar: deskUser.picture,
|
||
message: text
|
||
})
|
||
});
|
||
|
||
if (typingEl && typingEl.parentNode) {
|
||
typingEl.parentNode.removeChild(typingEl);
|
||
}
|
||
|
||
if (res.ok) {
|
||
const data = await res.json();
|
||
if (data.aiReply) {
|
||
deskMessagesHistory.push(data.aiReply);
|
||
appendDeskMessageUI(data.aiReply, true);
|
||
saveDeskLocalMessages();
|
||
}
|
||
}
|
||
} catch (err) {
|
||
console.error("Desk send error:", err);
|
||
if (typingEl && typingEl.parentNode) {
|
||
typingEl.parentNode.removeChild(typingEl);
|
||
}
|
||
appendDeskMessageUI({
|
||
sender: "aira_ultra",
|
||
text: "Message received. If Founder is occupied, our Aira 3 Ultra Co-Pilot is standing by!"
|
||
}, true);
|
||
}
|
||
|
||
lastDeskPollTimestamp = Date.now();
|
||
};
|
||
|
||
function startDeskPolling() {
|
||
if (deskPollingInterval) clearInterval(deskPollingInterval);
|
||
deskPollingInterval = setInterval(async () => {
|
||
if (!deskUser) return;
|
||
const win = document.getElementById("founder-desk-window");
|
||
if (!win || win.classList.contains("hidden")) return;
|
||
|
||
try {
|
||
const uid = encodeURIComponent(deskUser.sub || deskUser.email);
|
||
const res = await fetch(`/api/desk?userId=${uid}&after=${lastDeskPollTimestamp}`);
|
||
if (res.ok) {
|
||
const data = await res.json();
|
||
if (data && Array.isArray(data.messages) && data.messages.length > 0) {
|
||
data.messages.forEach(m => {
|
||
const exists = deskMessagesHistory.some(existing => existing.id === m.id || (existing.timestamp === m.timestamp && existing.text === m.text));
|
||
if (!exists) {
|
||
deskMessagesHistory.push(m);
|
||
appendDeskMessageUI(m, true);
|
||
}
|
||
if (m.timestamp > lastDeskPollTimestamp) {
|
||
lastDeskPollTimestamp = m.timestamp;
|
||
}
|
||
});
|
||
saveDeskLocalMessages();
|
||
}
|
||
}
|
||
} catch (e) {}
|
||
}, 2500);
|
||
}
|
||
|
||
document.addEventListener("DOMContentLoaded", () => {
|
||
initFounderDeskAuth();
|
||
});
|
||
</script>
|
||
|
||
<!-- Google Auth & Verified Reviews System Script -->
|
||
<script>
|
||
// Sovereign Google OAuth & JSONBin.io Database Integration
|
||
const GOOGLE_CLIENT_ID = "267802159841-leun1b8b85ongsoc5pkjhufe4s5jbjj8.apps.googleusercontent.com";
|
||
|
||
// JSONBin Database Config (Boss will provide Bin ID & Access Key)
|
||
const JSONBIN_CONFIG = {
|
||
binId: "6ae98e5dffd5d16053a19fc4",
|
||
apiKey: "$2a$10$0IoWYIJUtPPsZ9Y9fED.megYee63XlKIFxzn.cGXYPVu.TMqC.SKi",
|
||
accessKey: "$2a$10$jf/M7s48/qgR31ZlqFqg8.vGifgPuuFNzEfGzl2NTGjXo7pv2RHEC"
|
||
};
|
||
|
||
let currentUser = null;
|
||
let currentRating = 5;
|
||
let currentTag = "Client / Business Partner";
|
||
let liveReviews = [];
|
||
|
||
// Initialize on load
|
||
function initReviewsSystem() {
|
||
// 1. Check logged-in user
|
||
const savedUser = localStorage.getItem("aira_google_user");
|
||
if (savedUser) {
|
||
try {
|
||
currentUser = JSON.parse(savedUser);
|
||
} catch(e) {
|
||
localStorage.removeItem("aira_google_user");
|
||
}
|
||
}
|
||
renderUserAuthUI();
|
||
|
||
// 2. Initialize Google Identity Services (GSI)
|
||
initGoogleIdentity();
|
||
|
||
// 3. Fetch reviews from JSONBin or LocalStorage (Zero fake reviews)
|
||
loadReviews();
|
||
}
|
||
|
||
let tokenClient = null;
|
||
|
||
// Handle real Google JWT Credential Response
|
||
window.handleGoogleCredentialResponse = function(response) {
|
||
console.log("Google Credential Response received:", response);
|
||
try {
|
||
if (!response || !response.credential) {
|
||
console.error("No credential in response", response);
|
||
return;
|
||
}
|
||
// Decode standard JWT
|
||
const base64Url = response.credential.split('.')[1];
|
||
const base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/');
|
||
const jsonPayload = decodeURIComponent(atob(base64).split('').map(function(c) {
|
||
return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
|
||
}).join(''));
|
||
const payload = JSON.parse(jsonPayload);
|
||
|
||
currentUser = {
|
||
name: payload.name || "Google User",
|
||
email: payload.email,
|
||
picture: payload.picture || `https://api.dicebear.com/7.x/initials/svg?seed=${encodeURIComponent(payload.name || "User")}`
|
||
};
|
||
|
||
localStorage.setItem("aira_google_user", JSON.stringify(currentUser));
|
||
renderUserAuthUI();
|
||
} catch(err) {
|
||
console.error("Failed to decode Google token:", err);
|
||
alert("Google sign-in completed, but failed to parse profile. Please try again.");
|
||
}
|
||
};
|
||
|
||
// Initialize Google Identity Services & OAuth 2.0 Token Client
|
||
function initGoogleIdentity() {
|
||
if (window.google && google.accounts) {
|
||
try {
|
||
// 1. Initialize Google Identity Services Credential API
|
||
if (google.accounts.id) {
|
||
google.accounts.id.initialize({
|
||
client_id: GOOGLE_CLIENT_ID,
|
||
callback: window.handleGoogleCredentialResponse,
|
||
auto_select: false,
|
||
cancel_on_tap_outside: true,
|
||
itp_support: true
|
||
});
|
||
|
||
const btnContainer = document.getElementById("gsi-btn-container");
|
||
if (btnContainer) {
|
||
btnContainer.innerHTML = "";
|
||
google.accounts.id.renderButton(btnContainer, {
|
||
theme: "outline",
|
||
size: "large",
|
||
type: "standard",
|
||
shape: "pill",
|
||
text: "signin_with",
|
||
logo_alignment: "left",
|
||
width: 280
|
||
});
|
||
}
|
||
}
|
||
|
||
// 2. Initialize OAuth 2.0 Token Client (Direct Account Picker - bypasses FedCM/white-screen)
|
||
if (google.accounts.oauth2) {
|
||
tokenClient = google.accounts.oauth2.initTokenClient({
|
||
client_id: GOOGLE_CLIENT_ID,
|
||
scope: 'email profile openid',
|
||
callback: async (tokenResponse) => {
|
||
if (tokenResponse && tokenResponse.access_token) {
|
||
try {
|
||
const res = await fetch("https://www.googleapis.com/oauth2/v3/userinfo", {
|
||
headers: { Authorization: `Bearer ${tokenResponse.access_token}` }
|
||
});
|
||
if (res.ok) {
|
||
const profile = await res.json();
|
||
currentUser = {
|
||
name: profile.name || "Google User",
|
||
email: profile.email,
|
||
picture: profile.picture || `https://api.dicebear.com/7.x/initials/svg?seed=${encodeURIComponent(profile.name || "User")}`
|
||
};
|
||
localStorage.setItem("aira_google_user", JSON.stringify(currentUser));
|
||
renderUserAuthUI();
|
||
}
|
||
} catch(err) {
|
||
console.error("UserInfo fetch error:", err);
|
||
}
|
||
}
|
||
}
|
||
});
|
||
}
|
||
} catch(e) {
|
||
console.log("GSI init note:", e);
|
||
}
|
||
} else {
|
||
setTimeout(initGoogleIdentity, 300);
|
||
}
|
||
}
|
||
|
||
window.triggerGoogleOAuth = function() {
|
||
if (tokenClient) {
|
||
tokenClient.requestAccessToken({ prompt: 'select_account' });
|
||
} else if (window.google && google.accounts && google.accounts.id) {
|
||
google.accounts.id.prompt();
|
||
} else {
|
||
alert("Google Services loading... please wait a moment and try again.");
|
||
}
|
||
};
|
||
|
||
function renderUserAuthUI() {
|
||
const loggedOutBox = document.getElementById("google-feedback-loggedout");
|
||
const loggedInBox = document.getElementById("google-feedback-loggedin");
|
||
|
||
if (!currentUser) {
|
||
if (loggedOutBox) loggedOutBox.classList.remove("hidden");
|
||
if (loggedInBox) loggedInBox.classList.add("hidden");
|
||
} else {
|
||
if (loggedOutBox) loggedOutBox.classList.add("hidden");
|
||
if (loggedInBox) loggedInBox.classList.remove("hidden");
|
||
|
||
const photoEl = document.getElementById("v-user-photo");
|
||
const nameEl = document.getElementById("v-user-name");
|
||
const emailEl = document.getElementById("v-user-email");
|
||
|
||
if (photoEl) photoEl.src = currentUser.picture;
|
||
if (nameEl) nameEl.textContent = currentUser.name;
|
||
if (emailEl) emailEl.textContent = currentUser.email;
|
||
}
|
||
}
|
||
|
||
function scrollToGoogleAuth() {
|
||
const el = document.getElementById("google-feedback-loggedout");
|
||
if (el) {
|
||
el.scrollIntoView({ behavior: "smooth", block: "center" });
|
||
}
|
||
if (window.google && google.accounts && google.accounts.id) {
|
||
google.accounts.id.prompt();
|
||
}
|
||
}
|
||
|
||
function googleLogout() {
|
||
currentUser = null;
|
||
localStorage.removeItem("aira_google_user");
|
||
if (window.google && google.accounts && google.accounts.id) {
|
||
google.accounts.id.disableAutoSelect();
|
||
}
|
||
renderUserAuthUI();
|
||
}
|
||
|
||
function setFeedbackRating(stars) {
|
||
currentRating = stars;
|
||
const starIcons = document.querySelectorAll("#star-picker i");
|
||
starIcons.forEach((star, index) => {
|
||
if (index < stars) {
|
||
star.className = "fas fa-star text-amber-400";
|
||
} else {
|
||
star.className = "far fa-star text-slate-300";
|
||
}
|
||
});
|
||
|
||
const ratingLabel = document.getElementById("rating-label");
|
||
const labels = {
|
||
1: "1.0 / 5.0 (Poor)",
|
||
2: "2.0 / 5.0 (Fair)",
|
||
3: "3.0 / 5.0 (Good)",
|
||
4: "4.0 / 5.0 (Very Good)",
|
||
5: "5.0 / 5.0 (Excellent)"
|
||
};
|
||
if (ratingLabel) ratingLabel.textContent = labels[stars] || `${stars}.0 / 5.0`;
|
||
}
|
||
|
||
function selectFeedbackTag(btn, tag) {
|
||
currentTag = tag;
|
||
document.querySelectorAll("#tag-picker .tag-opt").forEach(b => {
|
||
b.className = "tag-opt px-3 py-1.5 rounded-lg text-xs font-semibold bg-slate-100 text-slate-700 hover:bg-slate-200 transition";
|
||
});
|
||
btn.className = "tag-opt active px-3 py-1.5 rounded-lg text-xs font-semibold bg-blue-600 text-white transition";
|
||
}
|
||
|
||
// Fetch Reviews: JSONBin.io with LocalStorage fallback (Zero Fake Reviews)
|
||
async function loadReviews() {
|
||
const container = document.getElementById("verified-reviews-grid");
|
||
if (!container) return;
|
||
|
||
// 1. Try to load from JSONBin if binId is configured
|
||
if (JSONBIN_CONFIG.binId && JSONBIN_CONFIG.binId.length > 5) {
|
||
try {
|
||
const headers = { "Content-Type": "application/json" };
|
||
if (JSONBIN_CONFIG.apiKey) {
|
||
headers["X-Master-Key"] = JSONBIN_CONFIG.apiKey;
|
||
}
|
||
const res = await fetch(`https://api.jsonbin.io/v3/b/${JSONBIN_CONFIG.binId}/latest`, { headers });
|
||
if (res.ok) {
|
||
const data = await res.json();
|
||
if (data && data.record && Array.isArray(data.record.feedbacks)) {
|
||
liveReviews = data.record.feedbacks;
|
||
localStorage.setItem("aira_verified_reviews", JSON.stringify(liveReviews));
|
||
renderReviewsList();
|
||
return;
|
||
}
|
||
}
|
||
} catch(err) {
|
||
console.log("JSONBin fetch fallback to local:", err);
|
||
}
|
||
}
|
||
|
||
// 2. Fallback to LocalStorage
|
||
const local = localStorage.getItem("aira_verified_reviews");
|
||
if (local) {
|
||
try {
|
||
liveReviews = JSON.parse(local);
|
||
} catch(e) {
|
||
liveReviews = [];
|
||
}
|
||
} else {
|
||
liveReviews = []; // Zero fake reviews!
|
||
}
|
||
|
||
renderReviewsList();
|
||
}
|
||
|
||
// Submit Verified Review
|
||
async function handleFeedbackSubmit(e) {
|
||
e.preventDefault();
|
||
if (!currentUser) {
|
||
startGoogleAuth();
|
||
return;
|
||
}
|
||
|
||
const feedbackTextEl = document.getElementById("feedbackContent");
|
||
const text = feedbackTextEl.value.trim();
|
||
if (!text) return;
|
||
|
||
const submitBtn = document.getElementById("submit-feedback-btn");
|
||
const originalBtnHtml = submitBtn.innerHTML;
|
||
submitBtn.disabled = true;
|
||
submitBtn.innerHTML = `<i class="fas fa-spinner fa-spin text-xs"></i> Posting...`;
|
||
|
||
const newReview = {
|
||
id: "rev_" + Date.now(),
|
||
name: currentUser.name,
|
||
email: currentUser.email,
|
||
photo: currentUser.picture,
|
||
rating: currentRating,
|
||
tag: currentTag,
|
||
text: text,
|
||
date: new Date().toLocaleDateString("en-US", { month: "short", day: "numeric", year: "numeric" })
|
||
};
|
||
|
||
// 1. Save to JSONBin with latest sync
|
||
const authKey = JSONBIN_CONFIG.apiKey || JSONBIN_CONFIG.accessKey;
|
||
if (JSONBIN_CONFIG.binId && authKey) {
|
||
try {
|
||
let latestFeedbacks = [];
|
||
try {
|
||
const fetchRes = await fetch(`https://api.jsonbin.io/v3/b/${JSONBIN_CONFIG.binId}/latest`, {
|
||
headers: { "X-Master-Key": authKey }
|
||
});
|
||
if (fetchRes.ok) {
|
||
const data = await fetchRes.json();
|
||
if (data && data.record && Array.isArray(data.record.feedbacks)) {
|
||
latestFeedbacks = data.record.feedbacks;
|
||
}
|
||
}
|
||
} catch(fetchErr) {
|
||
latestFeedbacks = [...liveReviews];
|
||
}
|
||
|
||
latestFeedbacks.unshift(newReview);
|
||
liveReviews = latestFeedbacks;
|
||
|
||
await fetch(`https://api.jsonbin.io/v3/b/${JSONBIN_CONFIG.binId}`, {
|
||
method: "PUT",
|
||
headers: {
|
||
"Content-Type": "application/json",
|
||
"X-Master-Key": authKey
|
||
},
|
||
body: JSON.stringify({ feedbacks: liveReviews })
|
||
});
|
||
} catch(err) {
|
||
console.error("JSONBin save error:", err);
|
||
if (!liveReviews.find(r => r.id === newReview.id)) {
|
||
liveReviews.unshift(newReview);
|
||
}
|
||
}
|
||
} else {
|
||
liveReviews.unshift(newReview);
|
||
}
|
||
|
||
localStorage.setItem("aira_verified_reviews", JSON.stringify(liveReviews));
|
||
renderReviewsList();
|
||
|
||
// 2. Email alert to Er. Adam Eehan via FormSubmit
|
||
try {
|
||
fetch("https://formsubmit.co/ajax/adameehan34@gmail.com", {
|
||
method: "POST",
|
||
headers: { "Content-Type": "application/json", "Accept": "application/json" },
|
||
body: JSON.stringify({
|
||
_subject: `🌟 New Real Feedback from ${currentUser.name} (${currentRating} Stars)`,
|
||
Name: currentUser.name,
|
||
Gmail: currentUser.email,
|
||
Rating: `${currentRating} / 5 Stars`,
|
||
Category: currentTag,
|
||
Feedback: text
|
||
})
|
||
}).catch(() => {});
|
||
} catch(err) {}
|
||
|
||
submitBtn.disabled = false;
|
||
submitBtn.innerHTML = originalBtnHtml;
|
||
feedbackTextEl.value = "";
|
||
|
||
const successBanner = document.getElementById("feedback-success-banner");
|
||
if (successBanner) {
|
||
successBanner.classList.remove("hidden");
|
||
setTimeout(() => successBanner.classList.add("hidden"), 6000);
|
||
}
|
||
}
|
||
|
||
// Render Verified Reviews List (Displays Empty State if no reviews exist!)
|
||
function renderReviewsList() {
|
||
const container = document.getElementById("verified-reviews-grid");
|
||
if (!container) return;
|
||
|
||
container.innerHTML = "";
|
||
|
||
// EMPTY STATE: If no feedback exists, show authentic empty state!
|
||
if (!liveReviews || liveReviews.length === 0) {
|
||
container.innerHTML = `
|
||
<div class="col-span-full py-16 px-6 text-center bg-white rounded-3xl border border-dashed border-slate-300 shadow-sm max-w-xl mx-auto animate-fade-in">
|
||
<div class="w-16 h-16 mx-auto mb-4 rounded-2xl bg-blue-50 border border-blue-100 flex items-center justify-center text-blue-600 text-2xl shadow-inner">
|
||
<i class="far fa-comments"></i>
|
||
</div>
|
||
<h4 class="font-bold text-slate-800 text-lg mb-1">No Feedback Yet</h4>
|
||
<p class="text-slate-500 text-sm max-w-sm mx-auto mb-6 leading-relaxed">
|
||
Be the first client, collaborator, or builder to sign in with Google and share your experience with Aira Group!
|
||
</p>
|
||
<button onclick="scrollToGoogleAuth()" class="btn-primary text-white text-xs font-semibold px-6 py-3 rounded-xl shadow-md inline-flex items-center gap-2 hover:scale-105 transition-all">
|
||
<i class="fab fa-google"></i> Leave the First Verified Review
|
||
</button>
|
||
</div>
|
||
`;
|
||
return;
|
||
}
|
||
|
||
// Render real reviews
|
||
liveReviews.forEach(r => {
|
||
let starsHtml = "";
|
||
for (let i = 1; i <= 5; i++) {
|
||
starsHtml += i <= r.rating
|
||
? '<i class="fas fa-star text-amber-400 text-xs"></i>'
|
||
: '<i class="far fa-star text-slate-300 text-xs"></i>';
|
||
}
|
||
|
||
const card = document.createElement("div");
|
||
card.className = "bg-white p-7 rounded-2xl border border-slate-200/80 shadow-md hover:shadow-xl transition-all duration-300 flex flex-col justify-between card-hover";
|
||
card.innerHTML = `
|
||
<div>
|
||
<div class="flex items-start justify-between gap-3 mb-4">
|
||
<div class="flex items-center gap-3">
|
||
<img src="${r.photo}" alt="${r.name}" class="w-12 h-12 rounded-full border-2 border-blue-500/80 shadow-sm object-cover bg-white flex-shrink-0" onerror="this.src='https://api.dicebear.com/7.x/initials/svg?seed=${encodeURIComponent(r.name)}'" />
|
||
<div>
|
||
<div class="flex items-center gap-1.5 flex-wrap">
|
||
<span class="font-bold text-[#0a2342] text-sm">${r.name}</span>
|
||
<span class="inline-flex items-center gap-1 text-[10px] font-semibold bg-emerald-50 text-emerald-700 px-2 py-0.5 rounded-full border border-emerald-200">
|
||
<i class="fas fa-check-circle text-emerald-600 text-[9px]"></i> Verified
|
||
</span>
|
||
</div>
|
||
<div class="text-[11px] text-slate-500 flex items-center gap-1 mt-0.5 font-mono">
|
||
<i class="fab fa-google text-slate-400 text-[10px]"></i>
|
||
<span class="truncate max-w-[170px]">${r.email}</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<span class="text-[11px] font-semibold text-blue-600 bg-blue-50 border border-blue-100 px-2 py-0.5 rounded-md flex-shrink-0">${r.tag || "Feedback"}</span>
|
||
</div>
|
||
|
||
<div class="flex items-center gap-1 mb-3">
|
||
${starsHtml}
|
||
<span class="text-xs font-semibold text-slate-600 ml-1.5">${r.rating}.0</span>
|
||
</div>
|
||
|
||
<p class="text-slate-600 text-sm leading-relaxed mb-4 italic">
|
||
"${r.text}"
|
||
</p>
|
||
</div>
|
||
|
||
<div class="pt-3 border-t border-slate-100 flex items-center justify-between text-xs text-slate-400">
|
||
<span class="flex items-center gap-1"><i class="fas fa-calendar-check text-[10px] text-blue-400"></i> Google Verified Review</span>
|
||
<span>${r.date || "Recent"}</span>
|
||
</div>
|
||
`;
|
||
container.appendChild(card);
|
||
});
|
||
}
|
||
|
||
// Initialize on DOM ready
|
||
if (document.readyState === "loading") {
|
||
document.addEventListener("DOMContentLoaded", initReviewsSystem);
|
||
} else {
|
||
initReviewsSystem();
|
||
}
|
||
</script>
|
||
|
||
|
||
<style>
|
||
@keyframes subShake {
|
||
0%, 100% { transform: translateX(0); }
|
||
25% { transform: translateX(-6px); }
|
||
75% { transform: translateX(6px); }
|
||
}
|
||
.sub-input-error {
|
||
border-color: #f87171 !important;
|
||
box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.3) !important;
|
||
animation: subShake 0.4s ease-in-out;
|
||
}
|
||
</style>
|
||
<script>
|
||
(function() {
|
||
const slider = document.getElementById('sub-slider');
|
||
const thumb = document.getElementById('sub-thumb');
|
||
const fill = document.getElementById('sub-fill');
|
||
const txt = document.getElementById('sub-slider-text');
|
||
const nameInput = document.getElementById('sub-name');
|
||
const emailInput = document.getElementById('sub-email');
|
||
const nameErr = document.getElementById('sub-name-err');
|
||
const emailErr = document.getElementById('sub-email-err');
|
||
const alertBox = document.getElementById('sub-alert');
|
||
|
||
if (!slider || !thumb || !fill) return;
|
||
|
||
let isDragging = false;
|
||
let startX = 0;
|
||
let startLeft = 4;
|
||
let isSubmitting = false;
|
||
|
||
const getMaxX = () => slider.offsetWidth - 52;
|
||
|
||
function isFormFilled() {
|
||
const nameVal = nameInput.value.trim();
|
||
const emailVal = emailInput.value.trim();
|
||
return nameVal.length > 0 && emailVal.length > 0 && emailVal.includes('@') && emailVal.includes('.');
|
||
}
|
||
|
||
function validateInputs() {
|
||
const nameVal = nameInput.value.trim();
|
||
const emailVal = emailInput.value.trim();
|
||
let isValid = true;
|
||
|
||
nameErr.classList.add('hidden');
|
||
emailErr.classList.add('hidden');
|
||
nameInput.classList.remove('sub-input-error');
|
||
emailInput.classList.remove('sub-input-error');
|
||
alertBox.className = 'mt-5 hidden max-w-xl mx-auto p-4 rounded-xl text-sm text-left';
|
||
|
||
if (!nameVal) {
|
||
nameErr.classList.remove('hidden');
|
||
nameInput.classList.add('sub-input-error');
|
||
isValid = false;
|
||
}
|
||
|
||
if (!emailVal || !emailVal.includes('@') || !emailVal.includes('.')) {
|
||
emailErr.classList.remove('hidden');
|
||
emailInput.classList.add('sub-input-error');
|
||
isValid = false;
|
||
}
|
||
|
||
if (!isValid) {
|
||
if (!nameVal) nameInput.focus();
|
||
else if (!emailVal) emailInput.focus();
|
||
}
|
||
|
||
return isValid;
|
||
}
|
||
|
||
// Live input validation listeners to clear errors on typing
|
||
nameInput.addEventListener('input', () => {
|
||
if (nameInput.value.trim()) {
|
||
nameErr.classList.add('hidden');
|
||
nameInput.classList.remove('sub-input-error');
|
||
}
|
||
});
|
||
emailInput.addEventListener('input', () => {
|
||
if (emailInput.value.trim().includes('@')) {
|
||
emailErr.classList.add('hidden');
|
||
emailInput.classList.remove('sub-input-error');
|
||
}
|
||
});
|
||
|
||
function handleStart(clientX, e) {
|
||
if (isSubmitting) return;
|
||
|
||
// STRICT LOCK: Do not allow dragging if name or email is empty/invalid!
|
||
if (!isFormFilled()) {
|
||
isDragging = false;
|
||
validateInputs();
|
||
if (e && e.cancelable) e.preventDefault();
|
||
return false;
|
||
}
|
||
|
||
isDragging = true;
|
||
startX = clientX;
|
||
startLeft = parseInt(thumb.style.left || '4', 10);
|
||
}
|
||
|
||
function handleMove(clientX) {
|
||
if (!isDragging || isSubmitting) return;
|
||
if (!isFormFilled()) {
|
||
isDragging = false;
|
||
resetSlider();
|
||
validateInputs();
|
||
return;
|
||
}
|
||
|
||
const maxX = getMaxX();
|
||
let newLeft = startLeft + (clientX - startX);
|
||
newLeft = Math.max(4, Math.min(maxX, newLeft));
|
||
|
||
thumb.style.left = newLeft + 'px';
|
||
fill.style.width = (newLeft + 24) + 'px';
|
||
|
||
const progress = newLeft / maxX;
|
||
txt.style.opacity = Math.max(0, 1 - progress * 1.5);
|
||
}
|
||
|
||
async function handleRelease() {
|
||
if (!isDragging || isSubmitting) return;
|
||
isDragging = false;
|
||
|
||
const currentLeft = parseInt(thumb.style.left || '4', 10);
|
||
const maxX = getMaxX();
|
||
|
||
// Must drag past 85% AND must have valid inputs
|
||
if (currentLeft / maxX >= 0.85) {
|
||
if (!validateInputs()) {
|
||
resetSlider();
|
||
return;
|
||
}
|
||
|
||
// Execute Live Subscription
|
||
await executeSubscription();
|
||
} else {
|
||
resetSlider();
|
||
}
|
||
}
|
||
|
||
async function executeSubscription() {
|
||
isSubmitting = true;
|
||
const maxX = getMaxX();
|
||
|
||
const payload = {
|
||
name: nameInput.value.trim(),
|
||
email: emailInput.value.trim()
|
||
};
|
||
|
||
// Hard guard: Never execute if fields are missing
|
||
if (!payload.name || !payload.email || !payload.email.includes('@')) {
|
||
isSubmitting = false;
|
||
resetSlider();
|
||
validateInputs();
|
||
return;
|
||
}
|
||
|
||
// Clear any previous alerts
|
||
alertBox.className = 'mt-5 hidden max-w-xl mx-auto p-4 rounded-xl text-sm text-left';
|
||
|
||
thumb.style.left = maxX + 'px';
|
||
fill.style.width = '100%';
|
||
thumb.innerHTML = '<i class="fas fa-spinner fa-spin text-sm text-blue-900"></i>';
|
||
txt.innerHTML = 'DISPATCHING...';
|
||
txt.style.opacity = '1';
|
||
txt.style.color = '#ffffff';
|
||
|
||
nameInput.disabled = true;
|
||
emailInput.disabled = true;
|
||
|
||
try {
|
||
const res = await fetch('/api/subscribe', {
|
||
method: 'POST',
|
||
headers: { 'Content-Type': 'application/json' },
|
||
body: JSON.stringify(payload)
|
||
});
|
||
|
||
const data = await res.json();
|
||
|
||
if (res.ok && data.success) {
|
||
thumb.innerHTML = '<i class="fas fa-check text-sm text-emerald-600"></i>';
|
||
fill.style.background = '#10b981';
|
||
txt.innerHTML = 'SUBSCRIBED • VERIFY INBOX';
|
||
txt.style.color = '#ffffff';
|
||
|
||
alertBox.className = 'mt-5 max-w-xl mx-auto p-4 rounded-xl text-sm bg-emerald-900/60 border border-emerald-400/40 text-emerald-200 text-left';
|
||
alertBox.innerHTML = '<i class="fas fa-circle-check text-emerald-400 mr-2"></i><strong>Success!</strong> ' + (data.message || 'Check your inbox to confirm your subscription.');
|
||
} else {
|
||
throw new Error(data.error || 'Subscription failed. Please try again.');
|
||
}
|
||
} catch (err) {
|
||
alertBox.className = 'mt-5 max-w-xl mx-auto p-4 rounded-xl text-sm bg-rose-900/60 border border-rose-400/40 text-rose-200 text-left';
|
||
alertBox.innerHTML = '<i class="fas fa-circle-exclamation text-rose-400 mr-2"></i>' + (err.message || 'Network error. Please try again.');
|
||
resetSlider();
|
||
nameInput.disabled = false;
|
||
emailInput.disabled = false;
|
||
} finally {
|
||
isSubmitting = false;
|
||
}
|
||
}
|
||
|
||
function resetSlider() {
|
||
thumb.style.transition = 'left 0.3s cubic-bezier(0.4, 0, 0.2, 1)';
|
||
fill.style.transition = 'width 0.3s cubic-bezier(0.4, 0, 0.2, 1)';
|
||
|
||
thumb.style.left = '4px';
|
||
fill.style.width = '0px';
|
||
fill.style.background = 'linear-gradient(90deg, #2563eb, #06b6d4)';
|
||
txt.style.opacity = '1';
|
||
txt.style.color = '#cbd5e1';
|
||
txt.innerHTML = 'Slide to Subscribe <span class="ml-2">→</span>';
|
||
thumb.innerHTML = '<i class="fas fa-arrow-right text-xs text-blue-900"></i>';
|
||
|
||
setTimeout(() => {
|
||
thumb.style.transition = '';
|
||
fill.style.transition = '';
|
||
}, 300);
|
||
}
|
||
|
||
// Mouse Listeners with strict drag check
|
||
thumb.addEventListener('mousedown', (e) => handleStart(e.clientX, e));
|
||
slider.addEventListener('click', (e) => {
|
||
if (!isFormFilled()) validateInputs();
|
||
});
|
||
document.addEventListener('mousemove', (e) => handleMove(e.clientX));
|
||
document.addEventListener('mouseup', handleRelease);
|
||
|
||
// Touch Listeners with strict drag check
|
||
thumb.addEventListener('touchstart', (e) => handleStart(e.touches[0].clientX, e), { passive: false });
|
||
document.addEventListener('touchmove', (e) => handleMove(e.touches[0].clientX), { passive: true });
|
||
document.addEventListener('touchend', handleRelease);
|
||
})();
|
||
</script>
|
||
</body>
|
||
</html>
|