/* =========================
COLOR SYSTEM & VARIABLES
========================= */
:root {
  --primary-orange: #f97316;
  --deep-orange: #ea580c;
  --primary-blue: #0ea5e9;
  --deep-blue: #0284c7;
  --bg-white: #ffffff;
  --bg-light-blue: #f0f9ff;
  --bg-light-orange: #fff7ed;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --text-white: #ffffff;
}

/* =========================
   RESET & BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.6;
}

/* =========================
   NAVIGATION
========================= */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 10%;
  background: var(--bg-white);
  border-bottom: 4px solid var(--primary-orange);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo span {
  font-weight: bold;
  font-size: 1.3rem;
  color: var(--primary-orange);
}

.nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  margin-left: 20px;
  transition: 0.3s;
}

.nav a:hover {
  color: var(--primary-blue);
}

/* =========================
   HERO SECTIONS
========================= */
.hero {
  padding: 100px 10%;
  background-color: var(--primary-orange);
  color: var(--text-white);
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.underline-text {
  text-decoration: underline;
  text-decoration-color: var(--primary-blue);
}

/* =========================
   VERTICAL GRID & CARDS
========================= */
.container, .portfolio {
  padding: 80px 10%;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.portfolio-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  margin-top: 40px;
}

.card, .portfolio-card {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid #eee;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: 0.3s;
  width: 100%;
  max-width: 700px; 
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card:hover, .portfolio-card:hover {
  border-color: var(--primary-orange);
  transform: translateY(-8px);
}

.card img, .portfolio-card img {
  width: 100%;
  max-width: 320px; 
  height: auto;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.card h3, .portfolio-card h3 {
  color: var(--primary-orange);
  margin-bottom: 0.8rem;
  font-size: 1.8rem;
}

.blue-title { color: var(--primary-blue) !important; }

.card p, .portfolio-card p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* =========================
   STACKED CONTENT BLOCKS (About/Inventory)
========================= */
.about-block, .about-block.reverse {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
  padding: 40px 0;
}

.block-text {
  max-width: 650px;
}

.profile-img, .sheet-img {
  width: 100%;
  max-width: 280px; 
  border-radius: 20px;
  border: 6px solid var(--bg-light-blue);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.logic-list {
  list-style: none;
  display: inline-block;
  text-align: left;
  margin: 1.5rem 0;
}

.logic-list li {
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
}

.logic-list li::before {
  content: "✔";
  color: var(--primary-orange);
  margin-right: 10px;
}

/* =========================
   CONTACT PAGE & FORM
========================= */
.contact-wrapper {
  display: flex;
  flex-direction: column; /* Force vertical stacking */
  gap: 50px;
  align-items: center;
  text-align: center;
}

.contact-info {
  width: 100%;
  max-width: 600px;
}

.info-item {
  margin-top: 2rem;
}

.info-item strong {
  display: block;
  color: var(--primary-blue);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-form-container {
  width: 100%;
  max-width: 600px;
  background: var(--bg-white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.05);
  border: 1px solid #eee;
  text-align: left; /* Keep labels readable */
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.form-group input, 
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #f1f5f9;
  border-radius: 10px;
  font-size: 1rem;
  transition: 0.3s;
  outline: none;
  background-color: #f8fafc;
}

.form-group input:focus, 
.form-group textarea:focus {
  border-color: var(--primary-blue);
  background: var(--bg-light-blue);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

/* =========================
   CENTERED CTA SECTIONS
========================= */
.contact-section, .contact, .blue-bg + .container {
  padding: 80px 10%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blue-bg { background-color: var(--bg-light-blue); }

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--primary-blue);
  color: var(--text-white);
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.btn:hover {
  background: var(--deep-blue);
  transform: scale(1.05);
}

.btn-orange { background: var(--primary-orange); }

.btn-full {
  width: 100%;
  text-align: center;
}

/* =========================
   FOOTER
========================= */
footer {
  padding: 3rem;
  background: var(--text-dark);
  color: var(--text-white);
  text-align: center;
}

/* =========================
   RESPONSIVENESS
========================= */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .nav { flex-direction: column; gap: 1rem; }
  .nav a { margin: 0 10px; }
  .container { padding: 40px 5%; }
}