@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --bg: #ffffff;
  --surface: #f4f4f4;
  --border: #d0d0d0;
  --accent: #8a6a2a;
  --accent-dim: rgba(138, 106, 42, 0.12);
  --text: #111111;
  --muted: #444444;
  --max-w: 860px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  line-height: 1.7;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 3rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.25s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* ── HERO (Home — aitoff-power image) ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 3rem 4rem;
  position: relative;
  overflow: hidden;
  background-image: url('Pictures/aitoff-power-2881462_1920.jpg');
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(255,255,255,0.94) 0%,
    rgba(255,255,255,0.88) 60%,
    rgba(255,255,255,0.70) 100%);
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(138,106,42,0.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  animation: fadeUp 0.9s ease both;
  position: relative;
  z-index: 2;
}

/* ── VISION (server.jpg) ── */
.vision-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 3rem 4rem;
  position: relative;
  overflow: hidden;
  background-image: url('Pictures/server.jpg');
  background-size: cover;
  background-position: center;
}

.vision-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(255,255,255,0.94) 0%,
    rgba(255,255,255,0.88) 60%,
    rgba(255,255,255,0.70) 100%);
  z-index: 0;
}

.vision-hero::before {
  content: '';
  position: absolute;
  bottom: -100px; left: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(138,106,42,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.vision-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  animation: fadeUp 0.9s ease both;
  position: relative;
  z-index: 2;
}

/* ── ABOUT SiC (SiC4Hstructure.jpg) ── */
.about-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 3rem 4rem;
  position: relative;
  overflow: hidden;
  background-image: url('Pictures/SiC4Hstructure.jpg');
  background-size: cover;
  background-position: center;
}

.about-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(255,255,255,0.94) 0%,
    rgba(255,255,255,0.88) 60%,
    rgba(255,255,255,0.72) 100%);
  z-index: 0;
}

.about-hero::before {
  content: '';
  position: absolute;
  bottom: -100px; left: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(138,106,42,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.about-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  animation: fadeUp 0.9s ease both;
  position: relative;
  z-index: 2;
}

/* ── TEAM PAGE ── */
.team-hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding: 8rem 3rem 5rem;
  background: var(--bg);
}

.team-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  animation: fadeUp 0.9s ease both;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.team-card {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 2rem;
  position: relative;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--accent);
}

.team-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 1.2rem;
  display: block;
  background: #ddd;
}

.team-card .member-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.team-card .member-title {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
}

.team-card .member-bio {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ── SHARED ── */
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 30px; height: 1px;
  background: var(--accent);
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 2vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  color: var(--text);
}

h1 em { font-style: italic; color: var(--accent); }

h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 2vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
  color: var(--text);
}

h2 em { font-style: italic; color: var(--accent); }

h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 1.8vw, 3rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2rem;
}

.divider {
  width: 60px; height: 1px;
  background: var(--accent);
  margin-bottom: 2.5rem;
  opacity: 0.6;
}

.description {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.about-text {
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.9;
  max-width: 680px;
}

.about-text strong { color: var(--text); font-weight: 500; }

/* ── ADDRESS CARD ── */
.address-card {
  display: inline-flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.5rem 2rem;
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  animation: fadeUp 0.9s 0.2s ease both;
}

.address-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
}

.address-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.address-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.address-card address {
  font-style: normal;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
}

.locations {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-left: 1px solid var(--border);
  padding-left: 2rem;
}

.location-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.flag {
  font-size: 1.1rem;
  line-height: 1;
}

.location-text {
  letter-spacing: 0.02em;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 3rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.footer-legal {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  color: #888;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-legal a {
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ── ANIMATION ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  nav { padding: 1.2rem 1.5rem; }
  .hero, .about-hero, .vision-hero, .team-hero { padding: 7rem 1.5rem 3rem; }
  footer { padding: 1.5rem 1.5rem; }
  .nav-links { gap: 1.2rem; }
  .team-grid { grid-template-columns: 1fr; }
}
