/* ==========================================================
   AYAMKTOFFICIAL — Main Stylesheet
   Dark Technology / Minimal / Premium
   ========================================================== */

:root {
    --bg: #0F172A;
    --bg-alt: #131c33;
    --card: #16213c;
    --border: #1f2b47;
    --primary: #2563EB;
    --accent: #06B6D4;
    --text: #F8FAFC;
    --text-muted: #94A3B8;
    --radius: 12px;
    --max-width: 1160px;
    --transition: 0.25s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 { font-family: "Space Grotesk", sans-serif; line-height: 1.2; margin: 0 0 16px; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { color: var(--text-muted); margin: 0 0 16px; }

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-header { max-width: 640px; margin-bottom: 48px; }
.eyebrow {
    display: inline-block;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
}
.brand {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}
.brand span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.main-nav { display: flex; gap: 28px; }
.main-nav a { color: var(--text-muted); font-size: 0.92rem; font-weight: 500; transition: color var(--transition); }
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.btn-nav { padding: 10px 20px; font-size: 0.88rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); display: block; }

/* ---------- Hero ---------- */
.hero {
    padding: 120px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -200px; left: 50%;
    transform: translateX(-50%);
    width: 700px; height: 500px;
    background: radial-gradient(circle, rgba(37,99,235,0.25), transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(148,163,184,0.15) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, black, transparent);
    pointer-events: none;
}
.hero-logo { width: 88px; margin: 0 auto 28px; }
.hero-tag { color: var(--text-muted); font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-sub { max-width: 560px; margin: 0 auto 36px; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); border-color: rgba(6,182,212,0.4); }
.card-icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.card-icon svg { width: 20px; height: 20px; stroke: #fff; }

/* ---------- Work / Portfolio cards ---------- */
.work-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition);
}
.work-card:hover { transform: translateY(-4px); border-color: rgba(6,182,212,0.4); }
.work-thumb {
    aspect-ratio: 16/10;
    position: relative;
    background:
        radial-gradient(circle at 20% 20%, rgba(37,99,235,0.35), transparent 55%),
        radial-gradient(circle at 80% 75%, rgba(6,182,212,0.3), transparent 55%),
        linear-gradient(135deg, var(--bg-alt), var(--card));
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    overflow: hidden;
}
.work-thumb::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148,163,184,0.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148,163,184,0.14) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 40%, transparent 90%);
}
.work-thumb span {
    position: relative;
    z-index: 1;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    color: var(--text);
    padding: 0 20px;
    text-align: center;
}
.work-thumb img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.work-body { padding: 20px; }
.work-meta { display: flex; gap: 10px; font-size: 0.78rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.work-body h3 { margin-bottom: 6px; }

.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

/* ---------- Steps (How it works) ---------- */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(5, 1fr); }
.step-num { color: var(--accent); font-weight: 800; font-size: 1.3rem; margin-bottom: 10px; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }
label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.required { color: var(--accent); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="date"], input[type="file"], select, textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color var(--transition);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }
.form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    max-width: 680px;
    margin: 0 auto;
}
fieldset { border: none; padding: 0; margin: 0 0 28px; }
legend { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 16px; padding: 0; }

.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.92rem;
}
.alert-success { background: rgba(6,182,212,0.12); border: 1px solid rgba(6,182,212,0.35); color: var(--accent); }
.alert-error { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.35); color: #fca5a5; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; padding: 100px 0; }
.final-cta h2 { margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 32px; background: var(--bg-alt); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.footer-tagline { margin: 6px 0 0; font-size: 0.9rem; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text-muted); font-size: 0.88rem; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-muted); font-size: 0.8rem; }

/* ---------- Badges / status ---------- */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(37,99,235,0.15);
    color: #93c5fd;
}

/* ---------- Admin ---------- */
.admin-body { background: var(--bg-alt); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 240px;
    background: var(--bg);
    border-right: 1px solid var(--border);
    padding: 24px 0;
    flex-shrink: 0;
}
.admin-sidebar .brand { display: block; padding: 0 24px 24px; }
.admin-sidebar nav a {
    display: block;
    padding: 11px 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-left: 3px solid transparent;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active {
    color: var(--text);
    background: rgba(37,99,235,0.08);
    border-left-color: var(--accent);
}
.admin-content { flex: 1; padding: 32px; max-width: calc(100% - 240px); }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.admin-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
th { color: var(--text-muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.table-wrap { overflow-x: auto; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.stat-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat-box .stat-value { font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.stat-box .stat-label { font-size: 0.82rem; color: var(--text-muted); }
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.action-links a { color: var(--accent); font-size: 0.85rem; margin-right: 12px; }
.action-links form { display: inline; }
.action-links button { background: none; border: none; color: #fca5a5; cursor: pointer; font-size: 0.85rem; padding: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .main-nav { position: fixed; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); flex-direction: column; padding: 16px 24px; display: none; }
    .main-nav.open { display: flex; }
    .nav-toggle { display: flex; }
    .btn-nav { display: none; }
    .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .admin-sidebar { position: fixed; left: -240px; top: 0; bottom: 0; z-index: 200; transition: left var(--transition); }
    .admin-sidebar.open { left: 0; }
    .admin-content { max-width: 100%; padding: 20px; }
    .section { padding: 64px 0; }
    .hero { padding: 90px 0 70px; }
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================
   PREMIUM UPGRADE — cursor, glass nav, hero, philosophy, wall
   ========================================================== */

/* ---------- Custom cursor (desktop only) ---------- */
.cursor-dot, .cursor-ring { display: none; }
.has-custom-cursor { cursor: none; }
.has-custom-cursor a, .has-custom-cursor button, .has-custom-cursor .btn { cursor: none; }
.has-custom-cursor .cursor-dot,
.has-custom-cursor .cursor-ring {
    display: block;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    will-change: transform;
}
.has-custom-cursor .cursor-dot {
    width: 6px; height: 6px;
    margin: -3px 0 0 -3px;
    background: var(--accent);
}
.has-custom-cursor .cursor-ring {
    width: 34px; height: 34px;
    margin: -17px 0 0 -17px;
    border: 1px solid rgba(148,163,184,0.5);
    transition: width 0.2s ease, height 0.2s ease, margin 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.has-custom-cursor .cursor-ring.is-active {
    width: 52px; height: 52px;
    margin: -26px 0 0 -26px;
    border-color: var(--accent);
    background: rgba(6,182,212,0.08);
}
.has-custom-cursor .cursor-ring.is-click { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.has-custom-cursor .cursor-ring.is-view {
    display: flex; align-items: center; justify-content: center;
}
.has-custom-cursor .cursor-ring.is-view::after {
    content: "VIEW";
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text);
}
@media (max-width: 900px) {
    .cursor-dot, .cursor-ring { display: none !important; }
    .has-custom-cursor { cursor: auto; }
}

/* ---------- Floating glass navbar on scroll ---------- */
.site-header {
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}
.site-header.is-scrolled {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom-color: rgba(148,163,184,0.14);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.nav-toggle span { transition: transform var(--transition), opacity var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero upgrade ---------- */
.hero { padding: 150px 0 120px; }
.hero-bg-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.7;
    pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 .emphasis {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}
.hero-copy { max-width: 600px; margin: 0 auto 8px; font-size: 1.05rem; }

/* ---------- Brand philosophy ---------- */
.philosophy { padding: 100px 0; text-align: center; }
.philosophy .eyebrow { display: block; }
.philosophy h2 { font-size: clamp(1.8rem, 4.4vw, 3.2rem); max-width: 780px; margin: 0 auto 24px; }
.philosophy p.lead { max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* ---------- What can we build ---------- */
.build-cloud { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.build-pill {
    padding: 12px 22px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: transform var(--transition), border-color var(--transition), color var(--transition), background var(--transition);
}
.build-pill:hover {
    color: var(--text);
    border-color: var(--accent);
    background: rgba(6,182,212,0.08);
    transform: translateY(-3px);
}

/* ---------- Technology wall ---------- */
.tech-wall { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tech-badge {
    padding: 9px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--card);
    transition: border-color var(--transition), color var(--transition);
}
.tech-badge:hover { border-color: var(--accent); color: var(--text); }

/* ---------- Work card hover polish ---------- */
.work-card { position: relative; }
.work-thumb img { transition: transform 0.5s ease; }
.work-card:hover .work-thumb img { transform: scale(1.05); }
.work-body h3 { transition: color var(--transition); }
.work-card:hover .work-body h3 { color: var(--accent); }

@media (max-width: 720px) {
    .hero { padding: 110px 0 80px; }
    .philosophy { padding: 72px 0; }
}
