/* ============================================================
   amitwebsite.online — Amit Maurya Portfolio
   Shared Stylesheet
   Preview 9 Approved Design
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=JetBrains+Mono:wght@400;700&display=swap');

/* ============================================================
   CSS Variables
   ============================================================ */
:root {
  --bg-primary:     #070b14;
  --bg-secondary:   #0a1020;
  --bg-surface:     #0d1525;
  --border:         #1a2540;
  --border-mid:     #2a3a50;
  --cyan:           #00d4ff;
  --orange:         #E07B39;
  --green:          #22c55e;
  --text-primary:   #f0f4ff;
  --text-body:      #e8eaf0;
  --text-muted:     #a0aab8;
  --text-faint:     #8090a8;
  --text-dim:       #3a4a60;
  --font-mono:      'JetBrains Mono', 'Courier New', monospace;
  --font-serif:     'Playfair Display', Georgia, serif;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-mono);
  background: var(--bg-primary);
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================================
   Announce Bar
   ============================================================ */
.announce {
  background: var(--bg-surface);
  border-bottom: 1px solid #1a3040;
  padding: 9px 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.announce-dot {
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.announce-orange {
  font-size: 11px;
  color: var(--orange);
  letter-spacing: 1px;
}

.announce-cyan {
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 1px;
}

.announce-sep {
  font-size: 11px;
  color: var(--text-dim);
  margin: 0 4px;
}

.announce-link {
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 1px;
  text-decoration: underline;
  cursor: pointer;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--cyan);
  text-transform: uppercase;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
}

/* Hamburger — mobile only */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text-muted);
  transition: all 0.3s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  gap: 1rem;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.nav-mobile a:hover {
  color: var(--cyan);
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  padding: 4.5rem 2rem;
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 175px;
  gap: 3rem;
  align-items: start;
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
  flex-wrap: nowrap;
}

.avail-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  white-space: nowrap;
}

.avail-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
}

.avail-text {
  font-size: 11px;
  color: var(--green);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.role-sep {
  color: var(--cyan);
  font-size: 13px;
  flex-shrink: 0;
}

.role-text {
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.hero h1 span {
  color: var(--cyan);
}

.hero-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.cert-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cert-line {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.cert-pill {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 4px 10px;
  border: 1px solid var(--border);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Photo Frame */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.photo-frame {
  width: 155px;
  height: 205px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

.photo-frame::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: -8px;
  bottom: -8px;
  border: 1px solid var(--cyan);
  z-index: 0;
  pointer-events: none;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  position: relative;
  z-index: 1;
}

.photo-initials {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  z-index: 1;
  position: relative;
  text-align: center;
}

.photo-name {
  font-size: 8px;
  color: var(--text-faint);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 6px;
  z-index: 1;
  position: relative;
  text-align: center;
}

/* ============================================================
   Stats Bar
   ============================================================ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  padding: 1.75rem;
  border-right: 1px solid var(--border);
  text-align: center;
}

.stat:last-child {
  border-right: none;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--cyan);
}

.stat-label {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 3px;
}

/* ============================================================
   Section — Shared
   ============================================================ */
.section {
  padding: 4rem 2rem;
  max-width: 980px;
  margin: 0 auto;
}

.sec-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}

.sec-line {
  width: 22px;
  height: 1px;
  background: var(--cyan);
}

.sec-label {
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.sec-title {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.sec-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

/* ============================================================
   What I Do — Services
   ============================================================ */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.svc {
  background: var(--bg-primary);
  padding: 2rem;
}

.svc-num {
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.svc-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.svc-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   Clients Bar
   ============================================================ */
.clients-bar {
  background: var(--bg-secondary);
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.clients-inner {
  max-width: 980px;
  margin: 0 auto;
}

.clients-lbl {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1.25rem;
}

.clients-row {
  display: flex;
  gap: 1px;
  background: var(--border);
  flex-wrap: wrap;
}

.client {
  background: var(--bg-primary);
  flex: 1;
  min-width: 120px;
  padding: 1.25rem;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============================================================
   AI Lab Teaser — Home Page
   ============================================================ */
.ailab-teaser {
  padding: 4rem 2rem;
  max-width: 980px;
  margin: 0 auto;
}

.lab-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.lab-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.lab-num {
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 1px;
}

.lab-link {
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.lab-link:hover {
  text-decoration: underline;
}

.lab-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.lab-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.arch-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 11px;
  font-family: var(--font-mono);
  line-height: 2.2;
}

.arch-title {
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.arch-line {
  color: var(--cyan);
}

.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 12px;
  color: var(--cyan);
  background: var(--bg-surface);
  padding: 5px 11px;
  border: 1px solid var(--border);
  letter-spacing: 0.5px;
}

.tag-orange {
  font-size: 12px;
  color: var(--orange);
  background: var(--bg-surface);
  padding: 5px 11px;
  border: 1px solid #2a1a0a;
  letter-spacing: 0.5px;
}

.lab-cta {
  text-align: center;
  margin-top: 0;
}

.lab-cta-btn {
  background: transparent;
  color: var(--cyan);
  padding: 12px 32px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid var(--cyan);
  cursor: pointer;
  font-family: var(--font-mono);
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.lab-cta-btn:hover {
  background: var(--cyan);
  color: var(--bg-primary);
}

/* ============================================================
   Work With Me
   ============================================================ */
.work-section {
  background: var(--bg-secondary);
  padding: 4rem 2rem;
  border-top: 1px solid var(--border);
}

.work-inner {
  max-width: 980px;
  margin: 0 auto;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 2rem;
}

.work-card {
  background: var(--bg-primary);
  padding: 2rem;
}

.work-num {
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.work-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.work-subtitle {
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.work-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.work-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  text-decoration: none;
  transition: border-color 0.2s;
}

.work-cta:hover {
  border-bottom-color: var(--cyan);
}

/* ============================================================
   AI Lab Page — Full Cards
   ============================================================ */
.lab-hero {
  padding: 3.5rem 2rem 2rem;
  max-width: 980px;
  margin: 0 auto;
}

.lab-cards-full {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
}

.lab-card-full {
  background: var(--bg-primary);
  padding: 2rem;
}

/* ============================================================
   Contact Page
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

.contact-info-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.contact-info-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0.85rem;
}

.contact-icon {
  color: var(--cyan);
  font-size: 14px;
  margin-top: 2px;
  width: 16px;
  text-align: center;
}

.contact-val {
  font-size: 13px;
  color: #d0d8e8;
}

.response-note {
  background: var(--bg-surface);
  border-left: 2px solid var(--cyan);
  padding: 10px 16px;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.response-text {
  font-size: 12px;
  color: var(--text-muted);
}

.availability {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.availability-label {
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.availability-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Contact Form */
.form-wrapper {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 2rem;
}

.form-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  color: var(--text-body);
  padding: 11px 14px;
  font-size: 13px;
  font-family: var(--font-mono);
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--cyan);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

.form-submit {
  background: var(--cyan);
  color: var(--bg-primary);
  padding: 13px 28px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
  width: 100%;
  transition: opacity 0.2s;
}

.form-submit:hover {
  opacity: 0.9;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: #050810;
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
}

.footer-name {
  font-size: 13px;
  font-weight: 700;
  color: #d0d8e8;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.footer-icons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 0.75rem;
  align-items: center;
}

.footer-icon {
  color: var(--text-faint);
  font-size: 18px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-icon:hover {
  color: var(--cyan);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--cyan);
}

.footer-built {
  font-size: 10px;
  letter-spacing: 1px;
  opacity: 0.9;
}

.footer-built .f-orange { color: var(--orange); }
.footer-built .f-cyan   { color: var(--cyan); }

/* ============================================================
   Responsive — Tablet (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
    gap: 2rem;
  }

  .hero-right {
    order: -1;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .photo-frame {
    width: 120px;
    height: 160px;
    flex-shrink: 0;
  }

  .badge-row {
    flex-wrap: wrap;
  }

  .role-text {
    white-space: normal;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(2) {
    border-right: none;
  }

  .stat:nth-child(3) {
    border-top: 1px solid var(--border);
  }

  .stat:nth-child(4) {
    border-top: 1px solid var(--border);
    border-right: none;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* ============================================================
   Responsive — Mobile (max 480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-right {
    flex-direction: column;
    align-items: center;
  }

  .photo-frame {
    width: 140px;
    height: 185px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .sec-title {
    font-size: 28px;
  }

  .section {
    padding: 2.5rem 1rem;
  }

  .ailab-teaser {
    padding: 2.5rem 1rem;
  }

  .work-section {
    padding: 2.5rem 1rem;
  }

  .clients-row {
    flex-direction: column;
  }

  .client {
    min-width: 100%;
  }

  .announce {
    padding: 9px 1rem;
    text-align: center;
  }

  .nav {
    padding: 0 1rem;
  }

  .lab-cards-full {
    padding: 0 1rem 2rem;
  }
}
