/* CSS Variables based on MechSpeak branding */
:root {
  --bg-dark: #1e2d35; /* Dark slate grey from logo background */
  --bg-darker: #152026; /* Deep charcoal for sections */
  --accent-orange: #f39c12; /* Warm bronze / orange accent from the 3D block */
  --accent-hover: #d68910; /* Darker orange for hover states */
  --text-light: #ffffff; /* Pure white text */
  --text-muted: #b0bec5; /* Muted grey text */
  --card-bg: #263842; /* Slightly lighter slate for cards */
  --font-stack: "Ubuntu", sans-serif;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-stack);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
}

/* Layout Utilities */
.container {
  width: 90%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Nav */
.site-header {
  background-color: var(--bg-darker);
  border-bottom: 2px solid rgba(243, 156, 18, 0.2);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-orange);
}

.nav-cta-btn {
  padding: 8px 18px;
  border-radius: 4px;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--bg-darker), var(--bg-darker)) padding-box,
    linear-gradient(135deg, #ffae00, #ff00ff, #5100ff) border-box;
  color: #ffae00 !important;
}

.nav-cta-btn:hover {
  background:
    rgba(255, 174, 0, 0.1) padding-box,
    linear-gradient(135deg, #ffae00, #ff00ff, #5100ff) border-box;
  color: #ffffff !important;
}

/* Hero Section */
.hero-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-light);
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}

.primary-btn {
  background-color: var(--accent-orange);
  color: var(--bg-darker);
  font-weight: 700;
}

.primary-btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.hero-img {
  width: 100%;
  max-width: 500px;
  display: block;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* Section Headings */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-light);
}

.section-title p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Services / Skills Section */
.services-section {
  padding: 80px 0;
  background-color: var(--bg-darker);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--card-bg);
  padding: 40px 30px;
  border-radius: 8px;
  border-top: 4px solid var(--accent-orange);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--text-light);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Reviews Section */
.reviews-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.review-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 8px;
  border-left: 4px solid var(--accent-orange);
}

.review-text {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.reviewer-name {
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Contact CTA Section */
.contact-section {
  padding: 80px 0;
  background-color: var(--bg-darker);
  text-align: center;
}

.contact-container h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.contact-container p {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.email-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}

/* Footer */
.site-footer {
  background-color: #0f171c;
  padding: 20px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content h1 {
    font-size: 2.3rem;
  }
  .hero-img {
    margin: 0 auto;
  }
  .nav-links {
    display: none; /* Can add a mobile hamburger menu toggle later if needed */
  }
}
