/* =========================================================================
   ATC Modern UI Stylesheet
   ========================================================================= */

:root {
  /* Brand Colors */
  --brand-primary: #7FB141;
  --brand-primary-hover: #729E3A;
  --brand-secondary: #2C3E50;
  
  /* Backgrounds */
  --bg-light: #F8F9FA;
  --bg-white: #FFFFFF;
  --bg-dark: #1A1A1A;
  
  /* Text */
  --text-dark: #212529;
  --text-muted: #6C757D;
  --text-light: #F8F9FA;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 24px rgba(0,0,0,0.12);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-medium: 0.3s ease-in-out;
}

/* Base resets & typography */
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--brand-secondary);
}

/* Custom Serif integration where needed */
.serif-text {
  font-family: var(--font-serif);
}

/* =========================================================================
   Navbar (Sticky & Glassmorphism)
   ========================================================================= */
#mainNav {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 1rem 2rem;
  transition: all var(--transition-medium);
}

#mainNav .navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--brand-secondary) !important;
  display: flex;
  align-items: center;
  gap: 15px;
}

#mainNav .nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-dark) !important;
  padding: 0.5rem 1rem;
  transition: color var(--transition-fast);
}

#mainNav .nav-link:hover, #mainNav .nav-link.active {
  color: var(--brand-primary) !important;
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 50px; /* Pill shape for modern look */
  padding: 0.6rem 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background-color: var(--brand-primary) !important;
  color: var(--bg-white);
}

.btn-primary:hover {
  background-color: var(--brand-primary-hover) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* =========================================================================
   Cards & Grids
   ========================================================================= */
.card {
  border: none;
  border-radius: 16px;
  background: var(--bg-white);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-medium);
  overflow: hidden;
  margin-bottom: 2rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card-img-top, .card img {
  border-radius: 16px 16px 0 0;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover img {
  transform: scale(1.05);
}

/* =========================================================================
   Sections & Spacing
   ========================================================================= */
section {
  padding: 5rem 0;
  background-color: var(--bg-white);
}

section.bg-light {
  background-color: var(--bg-light) !important;
}

.section-heading {
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

.section-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--brand-primary);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* =========================================================================
   Hero / Masthead customization
   ========================================================================= */
header.masthead {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  min-height: 80vh !important;
}

/* Dark Overlay for better contrast */
header.masthead::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, rgba(30,30,30,0.8) 0%, rgba(10,10,10,0.4) 100%);
  z-index: 1;
}

header.masthead .container-fluid,
header.masthead .container {
  position: relative;
  z-index: 2;
}

header.masthead h1 {
  color: white;
  font-size: 3.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  margin-bottom: 1.5rem;
}

header.masthead p.lead {
  font-size: 1.25rem;
  font-weight: 300;
  max-width: 800px;
  margin: 0 auto 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* =========================================================================
   Portfolio / Gallery (Popup Gallery override)
   ========================================================================= */
.portfolio-box {
  position: relative;
  display: block;
  max-width: 650px;
  margin: 0 auto 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-medium);
}

.portfolio-box:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.portfolio-box img {
  width: 100%;
  transition: transform 0.5s ease;
}

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

.portfolio-box-caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  opacity: 0;
  background: rgba(44, 62, 80, 0.85); /* brand-secondary with opacity */
  transition: all var(--transition-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.portfolio-box:hover .portfolio-box-caption {
  opacity: 1;
}

.portfolio-box-caption-content .project-category {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.portfolio-box-caption-content .project-name {
  font-size: 1.1rem;
  color: white;
  font-weight: 300;
}

/* =========================================================================
   Utility Classes & Specific Overrides
   ========================================================================= */
header.masthead {
  padding-top: 10rem;
  padding-bottom: calc(10rem - 56px);
  background-image: url("../img/header.jpg");
  background-position: center;
  background-attachment: fixed;
  background-size: cover;
}

.zoom-effect {
    overflow: hidden;
    display: block;
    border-radius: 8px;
}

.zoom-effect-img {
    transition: transform 0.3s ease;
}

.zoom-effect:hover .zoom-effect-img {
    transform: scale(1.05);
}

.info-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

/* Auto-hero fallback for pages with empty masthead */
header.masthead.auto-hero {
  min-height: 40vh !important;
  padding-top: 6rem !important;
  padding-bottom: 3rem !important;
  background-image: url("../img/Sunset FeaturedIMG.jpg") !important;
  background-position: center center !important;
  background-size: cover !important;
  background-attachment: scroll !important;
}
