:root{
  --bg:#07131a;
  --card: rgba(12, 22, 30, 0.78);
  --line: rgba(255,255,255,0.10);
  --text:#e9f2f7;
  --muted:#b8c7d1;
  --accent:#f47b20;
  --cyan:#00bcd4;
  --shadow: 0 18px 55px rgba(0,0,0,0.45);
  --radius: 18px;
  --max: 1100px;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);

  /* Rotor background + dark overlay */
  background:
    linear-gradient(180deg, rgba(5,12,16,0.86), rgba(5,12,16,0.92)),
    url("rotor-f5.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

a{ color:inherit; text-decoration:none; }
p{ margin:0 0 12px; color:var(--muted); line-height:1.6; }

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

/* =========================
   Header / Navbar
========================= */
.site-header{
  position: sticky;
  top:0;
  z-index:10;
  background: rgba(5,12,16,0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-flex{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 14px 0;
}

.logo{
  display:flex;
  align-items:center;
  gap:10px;
}

.logo img{
  height:70px;
  width:auto;
  display:block;
}

.nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

.nav a{
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: rgba(233,242,247,0.92);
}

.nav a:hover{
  border-color: var(--line);
  background: rgba(255,255,255,0.04);
}

.nav a.active{
  border-color: rgba(244,123,32,0.35);
  background: rgba(244,123,32,0.10);
}

/* =========================
   Layout / Sections
========================= */
.hero{
  padding: 70px 0 35px;
}

.section{
  padding: 18px 0 50px;
}

.section-title{
  font-size: 36px;
  margin: 0 0 16px;
  letter-spacing: 0.2px;
}

/* 2-col grid used on hero sections */
.grid{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
}

@media (max-width: 900px){
  .grid{ grid-template-columns: 1fr; }
}

/* 3-col grid used across pages */
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 1000px){
  .grid-3{ grid-template-columns: 1fr; }
}

.grid-3-compact{
  margin-top: 18px;
}

/* =========================
   Cards
========================= */
.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  padding: 26px;
}

.card h1{
  margin:0 0 14px;
  font-size: 44px;
  line-height: 1.08;
  color: var(--text);
}

@media (max-width: 600px){
  .card h1{ font-size: 34px; }
}

.card h2{
  margin:0 0 12px;
  font-size: 22px;
  color: var(--text);
}

.card h3{
  margin: 16px 0 10px;
  font-size: 20px;
  color: var(--text);
}

/* =========================
   Buttons + Links
========================= */
.actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin: 16px 0 12px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  cursor: pointer;
}

.btn:hover{ background: rgba(255,255,255,0.09); }

.btn.primary{
  border-color: rgba(0,188,212,0.45);
  background: var(--cyan);
  color: #ffffff;
}

.btn.primary:hover{
  background: #0097a7;
}

.text-link{
  display:inline-block;
  margin-top: 6px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  padding-bottom: 2px;
}

.text-link:hover{
  border-bottom-color: rgba(244,123,32,0.55);
}

/* =========================
   Chips
========================= */
.chips{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 14px;
}

.chip{
  font-size: 13px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: rgba(233,242,247,0.90);
}

/* =========================
   Home Capability Cards (with images)
========================= */
.cap-card{
  padding: 18px;
}

.cap-media{
  width: 100%;
  height: 180px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #ffffff;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  margin-bottom: 14px;
}

.cap-media img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display:block;
}

/* =========================
   Footer
========================= */
.site-footer{
  margin-top: 40px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  background: rgba(5,12,16,0.55);
}

.footer-flex{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.site-footer p{
  margin:0;
  font-size: 13px;
  color: rgba(233,242,247,0.75);
}

/* ===========================
   PROJECTS PAGE
=========================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 1000px) {
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .projects-grid { grid-template-columns: 1fr; }
}

.project-media {
  width: 100%;
  height: 220px;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-media img,
.project-media video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.project-media .collage {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px;
}

.project-media .collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* =========================
   CONTACT FORM (matches your contact.html)
========================= */
.contact-form { margin-top: 18px; }

.form-row{
  margin-bottom: 14px;
}

.form-row.full{ }

.contact-form label{
  display:block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea,
.contact-form select{
  width: 100%;
  background: rgba(10, 18, 26, 0.75);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 14px;
  outline: none;
  transition: 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder{
  color: rgba(233,242,247,0.55);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus{
  border-color: rgba(247,178,32,0.55);
  box-shadow: 0 0 0 3px rgba(247,178,32,0.12);
}

.contact-form textarea{
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
}

.form-actions{ margin-top: 10px; }

.form-status{
  margin-top: 12px;
  font-size: 0.95rem;
}

.status-error{ color: #ff6b6b; }
.status-success{ color: #4ade80; }
.status-loading{ color: #facc15; }

/* =========================
   HOME ONLY: White Boxes + Dark Text
   (Everything inside .home-light becomes readable)
========================= */
.home-light .card{
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 18px 55px rgba(0,0,0,0.18);
  backdrop-filter: none;
  color: #0f172a;
}

.home-light .card h1,
.home-light .card h2,
.home-light .card h3{
  color: #0f172a;
}

.home-light .card p{
  color: rgba(15,23,42,0.78);
}

.home-light .card ul,
.home-light .card li{
  color: rgba(15,23,42,0.90);
}

/* Home-light buttons keep your theme, but readable */
.home-light .btn{
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.10);
  color: #0f172a;
}

.home-light .btn:hover{
  background: rgba(0,0,0,0.08);
}

.home-light .btn.primary{
  background: var(--cyan);
  border-color: rgba(0,188,212,0.40);
  color: #ffffff;
}

.home-light .btn.primary:hover{
  background: #0097a7;
}

/* Links on white cards */
.home-light a.text-link{
  color: #0f172a;
  border-bottom-color: rgba(0,0,0,0.18);
}

.home-light a.text-link:hover{
  border-bottom-color: rgba(244,123,32,0.65);
}
