/* ABOUT — EXPERT WEB TOOLS */

@font-face { font-family: 'Inter'; src: url('/fonts/inter-v20-latin-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Orbitron'; src: url('/fonts/orbitron-v35-latin-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg-main:          #0a0a0f;
  --primary-accent:   #3b82f6;
  --secondary-accent: #8b5cf6;
  --text-main:        #ffffff;
  --text-muted:       #94a3b8;
  --card-bg:          rgba(25, 25, 35, 0.6);
  --card-border:      rgba(255, 255, 255, 0.08);
  --font-heading:     'Orbitron', sans-serif;
  --font-body:        'Inter', sans-serif;
}

/* Light Theme Variables */
html.light-theme {
  --bg-main:          #f8fafc;
  --primary-accent:   #2563eb;
  --secondary-accent: #7c3aed;
  --text-main:        #0f172a;
  --text-muted:       #475569;
  --card-bg:          #ffffff;
  --card-border:      #e2e8f0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { 
    width: 100%; 
    max-width: 100%;
    transition: background-color 0.2s ease; 
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background Glow */
.background-glow {
  position: fixed; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(59,130,246,0.06) 0%, rgba(10,10,15,0) 50%);
  z-index: -1; pointer-events: none;
}
html.light-theme .background-glow {
  background: radial-gradient(circle at center, rgba(59,130,246,0.03) 0%, rgba(255,255,255,0) 50%);
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

/* Header & Theme Toggle */
.tool-header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 5%; max-width: 1400px; margin: 0 auto; width: 100%; gap: 10px; }
.back-btn { color: var(--text-muted); text-decoration: none; display: flex; align-items: center; gap: 8px; font-size: 0.95rem; transition: color 0.3s; flex-shrink: 0; }
.back-btn:hover { color: var(--primary-accent); }
.back-btn:focus-visible { outline: 2px solid var(--primary-accent); border-radius: 4px; }

.logo { font-family: var(--font-heading); font-size: 1.2rem; color: var(--text-main); margin: 0 auto; }
.logo span { color: var(--primary-accent); }

/* Theme Toggle Button Standardized */
.theme-toggle-btn {
    background: transparent; border: none; cursor: pointer; color: var(--text-muted); 
    font-size: 1.25rem; display: flex; align-items: center; justify-content: center;
    padding: 6px; border-radius: 50%; transition: color 0.2s;
    width: 44px; height: 44px; flex-shrink: 0;
}
.theme-toggle-btn:hover { color: var(--primary-accent); }
.theme-toggle-btn:focus-visible { outline: 2px solid var(--primary-accent); border-radius: 4px; }
.theme-toggle-btn i { pointer-events: none; }

/* Main Content */
.main-content { flex-grow: 1; padding: 2rem 5% 4rem; max-width: 960px; margin: 0 auto; width: 100%; min-width: 0; }

/* Page Intro */
.page-intro { text-align: center; margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--card-border); }
.page-intro h1 {
  font-family: var(--font-heading); font-size: 1.9rem; line-height: 1.3; margin-bottom: 0.5rem;
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
html.light-theme .page-intro h1 {
  background: linear-gradient(to right, #0f172a, #475569);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.page-intro p { color: var(--text-muted); font-size: 1rem; margin-top: 0.5rem; }

/* Section Headings */
.section-heading { font-family: var(--font-heading); font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1.5rem; }
.section-sub { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; margin-top: -0.75rem; line-height: 1.7; }

/* Hero Card */
.about-hero-card {
  background: var(--card-bg);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}
.about-hero-text h2 { font-family: var(--font-heading); font-size: 1.2rem; color: var(--text-main); margin-bottom: 0.75rem; }
.about-hero-text p { color: var(--text-muted); font-size: 0.97rem; line-height: 1.75; margin-bottom: 0.6rem; }
.about-hero-text p:last-child { margin-bottom: 0; }

.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--card-border); }
.stat-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; min-width: 0; }
.stat-number { font-family: var(--font-heading); font-size: 1.6rem; color: var(--primary-accent); line-height: 1; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* Principles */
.principles-section { margin-bottom: 2.5rem; }
.principles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; min-width: 0; }
.principle-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.4rem;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s;
  min-width: 0;
}
.principle-card:hover { border-color: var(--primary-accent); }
.principle-card i { font-size: 1.3rem; color: var(--primary-accent); margin-bottom: 0.75rem; display: block; }
.principle-card h3 { font-family: var(--font-heading); font-size: 0.95rem; color: var(--text-main); margin-bottom: 0.5rem; }
.principle-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* Tech Stack */
.tech-section { margin-bottom: 2.5rem; }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; min-width: 0; }
.tech-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.tech-item i { color: var(--primary-accent); font-size: 1rem; width: 18px; text-align: center; flex-shrink: 0; }
html.light-theme .tech-item { color: var(--text-main); }

/* Founder */
.founder-section { margin-bottom: 2.5rem; }
.founder-card-about {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.75rem;
  backdrop-filter: blur(10px);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  min-width: 0;
}
.founder-avatar {
  width: 60px; height: 60px; min-width: 60px;
  background: rgba(139,92,246,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--secondary-accent);
}
.founder-body h3 { font-family: var(--font-heading); font-size: 1.05rem; color: var(--text-main); margin-bottom: 0.2rem; }
.founder-role { font-size: 0.85rem; color: var(--secondary-accent); margin-bottom: 0.75rem; display: block; }
.founder-body p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; }
.founder-body a { color: var(--primary-accent); text-decoration: none; }
.founder-body a:hover { color: #93c5fd; }
html.light-theme .founder-body a:hover { color: #1d4ed8; }

.founder-links-about { display: flex; gap: 1.5rem; margin-top: 1rem; flex-wrap: wrap; }
.founder-links-about a { display: flex; align-items: center; gap: 7px; color: var(--text-muted); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.founder-links-about a:hover { color: var(--primary-accent); }
.founder-links-about a:focus-visible { outline: 2px solid var(--primary-accent); border-radius: 2px; }

/* Links Section */
.links-section { margin-bottom: 1rem; }
.about-links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; min-width: 0; }
.about-link-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px; padding: 14px 16px;
  text-decoration: none; transition: transform 0.3s ease, border-color 0.2s, box-shadow 0.3s ease;
  min-width: 0; word-wrap: break-word;
}
/* UX Polish: Added tactile hover lift */
.about-link-card:hover { 
    transform: translateY(-3px);
    border-color: var(--primary-accent); 
    background: rgba(59,130,246,0.05); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.about-link-card:focus-visible { outline: 2px solid var(--primary-accent); }
.about-link-card i { font-size: 1.1rem; color: var(--primary-accent); width: 20px; text-align: center; flex-shrink: 0; }
.about-link-card strong { display: block; color: var(--text-main); font-size: 0.92rem; margin-bottom: 2px; }
.about-link-card span { display: block; color: var(--text-muted); font-size: 0.82rem; }
html.light-theme .about-link-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.05); }

/* Back to Top */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; background: var(--primary-accent); color: #fff;
  border: none; border-radius: 50%; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1rem;
  box-shadow: 0 4px 15px rgba(59,130,246,0.4); transition: opacity 0.3s, transform 0.3s, background 0.2s;
  opacity: 0; pointer-events: none; z-index: 100;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: #2563eb; transform: translateY(-2px); }
.back-to-top:focus-visible { outline: 2px solid var(--text-main); outline-offset: 2px; }

/* Footer */
footer { text-align: center; padding: 2.5rem 0; color: var(--text-muted); font-size: 0.9rem; border-top: 1px solid var(--card-border); margin-top: 1rem; }
footer a { color: var(--text-main); text-decoration: none; }
footer a:hover { color: var(--primary-accent); }

/* Responsive */
@media (max-width: 640px) {
  .tool-header { padding: 1rem 4%; flex-direction: column; align-items: flex-start; gap: 10px; }
  .header-right { width: 100%; display: flex; justify-content: space-between; flex-direction: row-reverse; }
  .logo { margin-left: 0; }
  
  .main-content { padding: 1.5rem 4% 3rem; }
  .page-intro h1 { font-size: 1.4rem; }
  
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .principles-grid { grid-template-columns: 1fr; }
  .about-links-grid { grid-template-columns: 1fr; }
  .founder-card-about { flex-direction: column; gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) { 
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } 
  .about-link-card:hover { transform: none; box-shadow: none; }
  .back-to-top:hover { transform: none; }
}