/* styles.css – Bright Blue Tech
 *
 * This stylesheet defines a bright, tech-style design for your site.
 * It assumes your HTML uses the classes:
 * .page, .container, .site-header, .site-header-inner, .site-title,
 * .site-subtitle, .nav, .hero, .section, .card, .link-list, .chip, etc.
 *
 * You can change colors, spacing, shadows, etc. here to tweak the look.
 */

/* ---------- Reset & Base ---------- */

/* Make box-sizing consistent so padding/borders are counted inside widths */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Base font size (1rem = 16px). You can make the whole site larger/smaller by tweaking this. */
html {
  font-size: 16px;
}

/* When the <html> has dir="rtl", ensure body flows right-to-left and text is center-aligned */
html[dir="rtl"] body {
  direction: rtl;
  text-align: center;
}

/* Global body styles:
 * - Set default font
 * - Use a subtle radial gradient background
 * - Set default text color
 */
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Roboto", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at 0% 0%, #e0f2fe 0, transparent 55%),
    #f3f4f6;
  color: #0f172a;
/*  background-image: url("paper.png"); */
}

body, .site-header, .site-header * {
  font-family: "Assistant", "Alef", "Arimo", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", "Roboto", Arial, sans-serif !important;
}

/* Helper class for English (left-to-right) text inside an RTL page */
.ltr {
  direction: ltr;
  text-align: left;
}

/* Link colors and hover behavior */
a {
  color: #2563eb; /* main link blue */
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: #1d4ed8; /* darker blue on hover */
  opacity: 0.95;
}

p {
  text-align: justify;
  margin-left: 50px;
  margin-right: 50px;
}
/* ---------- Layout ---------- */
.nobreak {
  white-space: nowrap;   /* prevent internal line breaks */
  display: inline-block; /* keeps everything together */
}

.audio-wrapper {
  width: 100%;       /* full width container */
  text-align: center;   /* centers inline/inline-block elements */
  margin: 1rem 0;       /* some spacing above/below */
  filter: invert(15%);
}

.audio-wrapper audio {
  display: inline-block; /* necessary for text-align:center to work */
}

/* .page wraps the whole page and ensures footer stays at the bottom */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* .container centers content and limits max width */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem 1.25rem 1.0rem; /* top, sides, bottom */
}

/* ---------- Header & Navigation ---------- */

/* Sticky header with dark blue gradient background */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(135deg, #4E78DB, #1e293b);
  backdrop-filter: blur(10px); /* slight background blur (glass effect) */
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.6);
}

/* Header content layout: title + nav arranged flexibly */
.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

/* Site title text appearance */
.site-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #e5e7eb;
}

/* Subtitle under the title (smaller and lighter) */
.site-subtitle {
  font-size: 0.9rem;
  color: #9ca3af;
}

/* Navigation container: horizontal list of links */
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Individual nav links styled as pill buttons */
.nav a {
  font-size: 0.85rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid #1d4ed8;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.8);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.15s ease, border-color 0.15s ease,
    transform 0.12s ease, box-shadow 0.12s ease;
}

/* Nav hover: brighter blue and stronger shadow */
.nav a:hover {
  border-color: #60a5fa;
  background: #1d4ed8;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.6);
  transform: translateY(-1px);
}

/* ---------- Footer ---------- */

.site-footer {
  background: linear-gradient(135deg, #4E78DB, #1e293b);
  border-top: 1px solid #e5e7eb;
  padding: 1.2rem 0 0; /* top | sides | bottom */
  margin-top: 3rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem; /* spacing between icons and copyright */
}

/* Social icons row */
.footer-social {
  display: flex;
  align-items: center;
  gap: 0.7rem; /* space between icons */
}

/* Icon circle buttons */
.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease,
              transform 0.15s ease, box-shadow 0.15s ease;
}

/* SVG icons */
.icon-svg {
  width: 20px;
  height: 20px;
  fill: #0f172a; /* uniform dark color */
  pointer-events: none;
}

/* Hover effect */
.social-icon:hover {
  background: #eef6ff;
  border-color: #60a5fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}

/* Allow LinkedIn SVG to keep its official blue color */
.linkedin-svg {
  fill: #0A66C2 !important;
}
.social-icon:hover .linkedin-svg {
  fill: #0A66C2 !important;
}

.footer-copy {
  font-size: 0.85rem;
  color: #aaaaaa;
  text-align: center;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .footer-inner {
    gap: 0.5rem;
  }
}

/* ---------- Main ---------- */

/* Main should expand to fill remaining height (between header and footer) */
main {
  flex: 1;
}

/* ---------- Hero ---------- */

/* The “hero” block at top of page */
.hero {
  margin-top: 2rem;
  padding: 2.1rem 1.75rem;
  border-radius: 1.6rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.18), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.15), transparent 60%),
    #ffffff;
  border: 1px solid #bfdbfe;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.4);
  display: grid;
  gap: 1.1rem;
}

/* Small label above hero title */
.hero-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #6b7280;
}

/* Hero title with gradient text applied to the entire heading */
.hero-title {
  font-size: clamp(2rem, 3vw, 2.6rem); /* responsive font size */
  margin: 0.3rem 0 0.6rem;
  line-height: 1.15;
  background: linear-gradient(120deg, #0f172a, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Paragraph(s) under the hero title */
.hero-subtitle {
  font-size: 0.98rem;
  color: #1f2933;
  max-width: 40rem;
  line-height: 1.7;
}

/* Container for hero buttons/links */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* ---------- Buttons ---------- */

/* Base button style used for both primary and ghost buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease,
    transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
  white-space: nowrap; /* prevent text from wrapping inside button */
}

/* Main call-to-action button */
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border-color: #1d4ed8;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.65);
  opacity: 0.97;
}

/* Secondary button: white background, blue border on hover */
.btn-ghost {
  background: #ffffff;
  color: #1f2937;
  border-color: #d1d5db;
}

.btn-ghost:hover {
  background: #eff6ff;
  border-color: #60a5fa;
}

/* ---------- Sections ---------- */

/* Each .section wraps a logical part of the page (e.g., Patents, Photos) */
.section {
  margin-top: 2.75rem;
}

/* Section titles: bold with an underline bar (see ::after) */
.section-title {
  font-size: 1.25rem;
  margin: 0 0 0.6rem;
  font-weight: 700;
  color: #0f172a;
  position: relative;
  padding-bottom: 0.35rem;
}

/* Solid blue bar under section titles.
 * If you don't like this effect, you can remove this whole block.
 */
.section-title::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 3.1rem;
  height: 3px;
  background: #2563eb;
  border-radius: 999px;
}

/* Optional smaller text under the section title */
.section-subtitle {
  font-size: 0.9rem;
  color: #4b5563;
  margin-top: 0.15rem;
}

/* ---------- Cards & Grids ---------- */

/* Grid layout for pairs of cards */
.card-grid {
  display: grid;
  gap: 1.1rem;
}

/* On wider screens, lay out cards in two columns */
@media (min-width: 880px) {
  .card-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }
}

/* Card container used for different content blocks (patents, photos, etc.) */
.card {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  padding: 1rem 1.15rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease, background 0.15s ease;
}

/* Slim blue accent line on the left side (in RTL mode this is visually at the "right" edge of the content)
 * To remove this accent, delete this block.
 */
.card::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 3px;
  background: linear-gradient(180deg, #2563eb, #38bdf8);
  opacity: 0.9;
  pointer-events: none;
}

/* Card hover effect: slightly lift and brighten */
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.5);
  border-color: #bfdbfe;
  background: #f9fafb;
}

/* Title inside card (e.g., specific patent or project name) */
.card-title {
  font-size: 1rem;
  margin: 0 0 0.35rem;
  font-weight: 600;
}

/* Links inside card titles */
.card-title a {
  color: #0f172a;
}

.card-title a:hover {
  text-decoration: underline;
}

/* Main text body inside cards */
.card-body {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.7;
}

/* ---------- Links list ---------- */

/* List used for collections of links (e.g., patents, posts) */
.link-list {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
}

/* Space between list items */
.link-list li + li {
  margin-top: 0.3rem;
}

/* Style individual list links */
.link-list a {
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Small arrow icon before links */
.link-list a::before {
  content: "◄";
  font-size: 0.7rem;
  opacity: 0.6;
}

/* ---------- Chips ---------- */

/* Chip / tag used next to titles (e.g., “Team Voting”) */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  margin-inline-start: 0.35rem;
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* ---------- Team Voting text helpers ---------- */

/* Slightly larger paragraph style for important explanatory text */
.lead {
  font-size: 0.97rem;
  line-height: 1.8;
  color: #1f2937;
  margin-bottom: 0.9rem;
}

/* For ordered/numbered text blocks (if you use them) */
.numbered {
  padding-inline-start: 1.1rem;
  margin: 0.25rem 0 0.75rem;
}

/* ---------- Mobile tweaks ---------- */

/* Adjust layout/spacing on small screens */
@media (max-width: 640px) {
  /* Header aligns content more naturally on mobile */
  .site-header-inner {
    align-items: flex-start;
  }

  /* Hero padding reduced for small screens */
  .hero {
    padding: 1.7rem 1.3rem;
    margin-top: 1.4rem;
  }

  /* Hero buttons align to the start on mobile */
  .hero-actions {
    justify-content: flex-start;
  }

  /* Center footer text on small devices */
  .site-footer .container {
    text-align: center;
  }
}
