/* AJ Tech Enterprise - Single-page PHP website styles */

:root {
  --navy: #0a1628;
  --navy-light: #111f38;
  --navy-card: #0f1d32;
  --cyan: #00d9ff;
  --purple: #8b5cf6;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.15);
  --gradient: linear-gradient(135deg, var(--cyan), var(--purple));
  --radius: 1rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo img {
  height: 44px;
  width: auto;
  border-radius: 8px;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--cyan);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: var(--gradient);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 217, 255, 0.25);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy-card);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
  }

  nav.open {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .header-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
}

.hero::before {
  width: 400px;
  height: 400px;
  background: var(--purple);
  top: -100px;
  right: -100px;
}

.hero::after {
  width: 350px;
  height: 350px;
  background: var(--cyan);
  bottom: -100px;
  left: -100px;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

h1 .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--navy-card);
  color: var(--text);
  font-weight: 600;
  transition: background 0.2s;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
}

.hero-highlights {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-highlights span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 80px rgba(139, 92, 246, 0.2);
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius);
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  h1 {
    font-size: 2.5rem;
  }

  .hero p,
  .hero-highlights {
    justify-content: center;
  }

  .hero-image {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* Section common */
section {
  padding: 5rem 0;
}

.section-header {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}

h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 217, 255, 0.3);
  box-shadow: 0 12px 32px rgba(0, 217, 255, 0.08);
}

.card-icon {
  display: inline-flex;
  padding: 0.75rem;
  border-radius: 12px;
  background: var(--gradient);
  color: var(--navy);
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* About */
.about-section {
  background: var(--navy-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.code-window {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.9rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.code-dots {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.code-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-dots span:nth-child(1) { background: var(--cyan); }
.code-dots span:nth-child(2) { background: var(--purple); }
.code-dots span:nth-child(3) { background: rgba(255, 255, 255, 0.2); }

.code-window .keyword { color: var(--purple); }
.code-window .string { color: var(--cyan); }
.code-window .number { color: #fbbf24; }

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.about-values li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  list-style: none;
}

.check {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: rgba(0, 217, 255, 0.15);
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-values {
    grid-template-columns: 1fr;
  }
}

/* Stats */
.stats-section {
  background: var(--navy-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-value {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text);
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Projects */
.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.tag {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* CTA */
.cta-section {
  background: var(--gradient);
  text-align: center;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before,
.cta-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  background: white;
}

.cta-section::before {
  width: 350px;
  height: 350px;
  top: -100px;
  left: 20%;
}

.cta-section::after {
  width: 300px;
  height: 300px;
  bottom: -80px;
  right: 20%;
}

.cta-section h2 {
  position: relative;
  color: var(--navy);
  margin-bottom: 1rem;
}

.cta-section p {
  position: relative;
  color: rgba(10, 22, 40, 0.85);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.cta-buttons {
  position: relative;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn-white {
  background: white;
  color: var(--navy);
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
}

.cta-btn-outline {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

/* Contact */
.contact-section {
  background: var(--navy-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.form-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--navy);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.15);
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 12px;
  background: var(--gradient);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s;
}

.submit-btn:hover {
  transform: translateY(-2px);
}

.alert {
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.alert-success {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.alert-error {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.contact-info-card a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--navy-card);
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.contact-info-card a:hover {
  border-color: var(--cyan);
}

.contact-info-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--gradient);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 1.1rem;
}

.contact-info-card .label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.contact-info-card .value {
  font-size: 0.95rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Footer */
footer {
  background: var(--navy-card);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

footer .logo img {
  height: 48px;
  margin-bottom: 1rem;
}

footer p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}

.social-links a:hover {
  color: var(--cyan);
  background: rgba(0, 217, 255, 0.1);
}

footer h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

footer ul {
  list-style: none;
}

footer li {
  margin-bottom: 0.65rem;
}

footer li a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

footer li a:hover {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* === v2 upgrades === */
.logo { display: flex; align-items: center; gap: .6rem; }
.logo img { height: 44px; width: auto; border-radius: 0; }
.logo-text { font-weight: 700; font-size: 1rem; letter-spacing: -.01em; }
@media (max-width: 640px) { .logo-text { display: none; } }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grid-pattern {
  position: absolute; inset: 0; pointer-events: none; opacity: .08;
  background-image:
    linear-gradient(to right, rgba(0,217,255,.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,217,255,.4) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Hero orbiting rings + floating logo */
.hero-image { background: transparent; box-shadow: none; overflow: visible; position: relative; display: flex; align-items: center; justify-content: center; }
.hero-image .ring {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.ring-1 { inset: -3rem; border: 1px solid rgba(0,217,255,.2); animation: spin 30s linear infinite; }
.ring-2 { inset: -6rem; border: 1px solid rgba(139,92,246,.15); animation: spin 60s linear infinite reverse; }
.floating-logo {
  position: relative; z-index: 2; max-width: 460px; width: 100%;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(0,217,255,.35));
}
.hero-image::before {
  content: ""; position: absolute; inset: -3rem; border-radius: 50%;
  background: var(--gradient); opacity: .25; filter: blur(60px);
  animation: pulseSlow 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseSlow {
  0%, 100% { opacity: .25; }
  50% { opacity: .5; }
}

.badge { color: var(--cyan); background: rgba(0,217,255,.06); border-color: rgba(0,217,255,.25); backdrop-filter: blur(6px); }

.hl-icon { color: var(--cyan); font-size: .8rem; }

/* Process section */
.process-section { position: relative; background: var(--navy-light); overflow: hidden; }
.process-card { position: relative; overflow: hidden; }
.process-number {
  position: absolute; top: .75rem; right: 1rem; font-size: 3rem; font-weight: 800;
  color: rgba(0,217,255,.08); line-height: 1;
}
.process-card:hover .process-number { color: rgba(0,217,255,.18); }

.card-icon { font-size: 1.25rem; line-height: 1; padding: .75rem .9rem; }
.section-label.small { font-size: .7rem; margin-bottom: .25rem; }

/* Project cards refined */
.project-card { display: flex; flex-direction: column; cursor: pointer; }
.project-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .75rem; gap: 1rem; }
.project-head .ext {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 999px;
  background: rgba(255,255,255,.06); color: var(--text-muted); flex-shrink: 0;
}
.project-card:hover .ext { color: var(--cyan); background: rgba(0,217,255,.1); }

/* Larger stat values with gradient */
.stat-value { font-size: 3rem; }

/* Mobile hero image order fix */
@media (max-width: 900px) {
  .hero-image { max-width: 340px; margin: 0 auto; order: -1; }
  .ring-1, .ring-2 { display: none; }
}
