/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== ROOT COLORS ===== */
:root {
  --navy: #0a192f;
  --navy-light: #112240;
  --gold: #ffd700;
  --text: #e6f1ff;
  --muted: #9aa4c3;
}

/* ===== BODY ===== */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.9;
}

/* ===== NAV ===== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 8%;
  background: #050c18;
  border-bottom: 2px solid var(--gold);
}

nav .logo {
  font-weight: bold;
  color: var(--gold);
  letter-spacing: 2px;
}

nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 25px;
  font-weight: 500;
}

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

/* ===== MAIN SECTION ===== */
.section {
  max-width: 1400px;
  margin: auto;
  padding: 120px 8%;
}

/* ===== CARDS ===== */
.card {
  background: var(--navy-light);
  padding: 80px;
  margin-bottom: 80px;
  border-left: 8px solid var(--gold);
}

/* ===== HEADINGS ===== */
h1 {
  color: var(--gold);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 30px;
}

h2 {
  color: var(--gold);
  margin-bottom: 25px;
  font-size: 2rem;
}

h3 {
  color: var(--gold);
  margin: 40px 0 20px;
}

/* ===== TEXT ===== */
p {
  color: var(--muted);
  margin-bottom: 22px;
  font-size: 1.05rem;
}

/* ===== FOOTER ===== */
footer {
  background: #050c18;
  padding: 60px 8%;
  text-align: center;
  border-top: 2px solid var(--gold);
}

footer p,
footer a {
  color: var(--muted);
  text-decoration: none;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .section {
    padding: 80px 6%;
  }

  .card {
    padding: 40px;
  }

  nav {
    flex-direction: column;
    gap: 15px;
  }
}

/* =========================================
   FORCE RESET – ABOUT PAGE HEADER
   ========================================= */

body.about-page header,
body.about-page header * {
  writing-mode: horizontal-tb !important;
  transform: none !important;
  rotate: 0deg !important;
  text-orientation: mixed !important;
}

body.about-page .about-header {
  display: block !important;
  position: relative !important;
  min-height: 60vh;
  padding: 160px 8% 100px;
}

body.about-page .about-header-inner {
  max-width: 1100px;
}

body.about-page .about-header h1 {
  display: block !important;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.1;
  margin-bottom: 30px;
}

body.about-page .about-header p {
  font-size: 1.1rem;
  max-width: 850px;
}


/* ===== NAV ===== */
.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 6%;
  background: #0b0f1a;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.main-nav a.active {
  color: #f5c400;
}

/* ===== PORTFOLIO ===== */
.portfolio-wrapper {
  padding: 80px 6%;
  background: #0b0f1a;
  color: #fff;
  min-height: 100vh;
}

.portfolio-wrapper h1 {
  font-size: 42px;
  color: #f5c400;
  margin-bottom: 15px;
}

.portfolio-intro {
  max-width: 800px;
  line-height: 1.6;
  margin-bottom: 50px;
  color: #cfd3ff;
}

/* 🔥 THIS FIXES EVERYTHING */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 25px;
}

.portfolio-item {
  width: 100%;
  height: 200px; /* FIXED HEIGHT */
  overflow: hidden;
  border-radius: 12px;
  background: #111;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 🔥 ABSOLUTE FIX */
  transition: transform 0.4s ease;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 30px;
  text-align: center;
  background: #060914;
  color: #aaa;
}
