/* =========================================
   GLOBAL THEME
========================================= */

:root {
  --bg: #0b1220;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #4fd1ff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

/* =========================================
   HEADER
========================================= */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 18, 32, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.brand {
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}
.brand span {
  color: #38bdf8;
}

.site-nav a {
  margin-left: 24px;
  color: #cbd5e1;
  transition: 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
}

#nav-toggle {
  display: none;
}

/* =========================================
   HERO TITLE
========================================= */

.hero {
  text-align: center;
  padding: 55px 20px 10px;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0;
}

.hero p {
  margin: 6px 0 0;
  color: var(--muted);
}

/* =========================================
   FULL-WIDTH HERO SLIDER (FINAL WORKING VERSION)
========================================= */

.hero-slider {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw); /* Break out of centered layout */
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  height: 58vh;
  max-height: 520px;
  min-height: 260px;
  background: #000000;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

/* Navigation arrows */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-nav.hero-nav-prev {
  left: 16px;
}

.hero-nav.hero-nav-next {
  right: 16px;
}

.hero-nav:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dots button.active {
  width: 22px;
  background: var(--accent);
}

/* Mobile fix */
@media (max-width: 768px) {
  .hero-slider {
    height: 38vh;
    max-height: 350px;
    min-height: 200px;
  }

  .hero-slide {
    background-size: cover !important;
  }
}

/* =========================================
   ARTICLE LISTING
========================================= */

.articles {
  max-width: 1100px;
  margin: 40px auto 60px;
  padding: 0 20px;
  display: grid;
  gap: 24px;
}

.article-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.article-card img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  object-fit: contain;
  background: var(--bg);
  padding: 6px;
}

.article-card h2 a {
  color: var(--accent);
}

.article-card .meta {
  color: var(--muted);
  font-size: 14px;
}

/* =========================================
   ABOUT PAGE
========================================= */

.about-card,
.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
}
/* large photo on About page */
.about-photo {
  display: block;
  width: 100%;
  max-width: 980px;        /* keeps it same width as text/cards */
  max-height: 360px;       /* limit height so it’s not gigantic */
  object-fit: cover;       /* crops nicely instead of stretching */
  border-radius: 16px;
  margin: 24px auto;       /* centers it and adds breathing room */
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
/* =========================================
   CONTACT PAGE
========================================= */

.contact-layout {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
}

.contact-form button {
  background: var(--accent);
  color: #000;
  padding: 10px 18px;
  border-radius: 100px;
  border: none;
}

/* =========================================
   FOOTER
========================================= */

.site-footer {
  text-align: center;
  padding: 24px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
/* =========================================
   FIXED AVATAR IMAGE ON ABOUT PAGE
   ========================================= */
.avatar {
  width: 170px;              /* increased size */
  height: 170px;             /* increased size */
  border-radius: 50%;        /* perfect circle */
  object-fit: cover;
  border: 4px solid #facc15; /* yellow-500 border */
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
/* Extra left margin for About page – desktop only */
@media (min-width: 900px) {
  .container {
    padding-left: 60px;   /* Increase from default 32px → 60px */
    padding-right: 40px;  /* Keep right side balanced */
  }
}