/* Chris Moran - Data Analyst Portfolio Styles */

/* CSS Custom Properties (Variables) for consistent theming */
:root {
  --primary-bg: #F8F4E3;
  --secondary-bg: #D1E7DD;
  --accent-color: #C85A17;
  --text-color: #333;
  --footer-bg: #D1E7DD;
  --footer-link: #C85A17;
}

/* Global Styles */
body {
  font-family: 'Raleway', sans-serif;
  background-color: var(--primary-bg);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Prevent horizontal scrolling on mobile */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

/* Navigation */
.navbar {
  background-color: var(--primary-bg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero {
  background-color: var(--secondary-bg);
  background-image: url('site_images/walnut.jpg');
  background-blend-mode: soft-light;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  color: var(--text-color);
  padding: 25px 0 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Mobile-specific fixes */
@media (max-width: 768px) {
  .hero {
    background-size: contain;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
  }

  .hero .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .hero p {
    font-size: 1rem;
  }

  /* Make project cards narrower on mobile */
  .project-card {
    margin-left: 2rem;
    margin-right: 2rem;
    max-width: calc(100% - 4rem);
  }
}

/* Hero Divider (Asymmetrical Curve) */
.hero-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.hero-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 100px;
}

.hero-divider .shape-fill {
  fill: var(--primary-bg);
}

/* Projects Section */
.projects {
  padding: 1px 0;
}

/* Base Project Card Styles */
.project-card {
  background-color: var(--primary-bg);
  border-radius: 8px;
  border: 2px solid hsl(139, 24%, 87%);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 10px;
  margin-bottom: 30px;
  transition: transform 0.3s;

  /* Flexbox for consistent alignment */
  display: flex;
  flex-direction: column;
}

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

.project-card h3 {
  color: var(--accent-color);
  font-weight: 700;
  padding: 0 0 10px 0;
  margin: 0 0 15px 0;
  border-bottom: 3px solid var(--secondary-bg);
}

.project-card p {
  color: var(--text-color);
  margin-bottom: 15px;
}

/* Card Variant: Texture Overlay */
.card-texture-overlay {
  background-color: #DEB887;
  color: var(--text-color);
  border: 3px solid var(--secondary-bg);
  box-shadow: 0 10px 20px rgba(222,184,135,0.8);
}

.card-texture-overlay h3 {
  background-color: transparent;
  margin: -30px -30px 20px -30px;
  padding: 20px 30px;
  position: relative;
}

.card-texture-overlay h3::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background-color: var(--secondary-bg);
}

.card-texture-overlay h3::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background-color: var(--accent-color);
}

.card-texture-overlay p {
  color: var(--text-color);
}

/* Button Styles */
.btn-primary {
  background-color: var(--secondary-bg);
  background-image: url('site_images/walnut.jpg');
  background-blend-mode: soft-light;
  background-size: contain;
  background-position: center;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  padding: 10px 20px;
  border-radius: 5px;
  transition: all 0.3s ease;
  margin-top: auto;
}

.btn-primary:hover {
  background-color: var(--secondary-bg);
  border-color: var(--accent-color);
  color: #333;
  transform: scale(1.05);
}

/* Footer */
.footer {
  background-color: var(--footer-bg);
  background-image: url('site_images/walnut.jpg');
  background-blend-mode: soft-light;
  background-size: contain;
  background-position: center;
  color: #333;
  padding: 40px 0;
  text-align: center;
}

.footer a {
  color: var(--footer-link);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Hero Container Z-Index */
.hero .position-relative {
  z-index: 2;
}

/* Accent Headings */
.accent-heading {
  color: var(--accent-color);
}
