/* =========================================================
   J&D STEELWORKS - BRIGHT PROFESSIONAL DESIGN
   Fresh Green / Clean Grey / Vibrant Yellow
   Competition-grade UI with inviting construction aesthetic
   ========================================================= */

/* ---------- Brighter Theme Variables ---------- */
:root {
  /* Surfaces - Bright & Clean */
  --bg: #f8fafb;
  --cream: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f7f9;
  --surface-elevated: #ffffff;

  /* Text - Clear hierarchy */
  --text: #1a2332;
  --text-secondary: #556b7f;
  --muted: #7a8fa3;
  --text-light: #9eb0c2;

  /* Greys - Light & Professional */
  --grey: #2d3e50;
  --grey-2: #3d4f62;
  --grey-3: #556b7f;
  --grey-4: #7a8fa3;
  --grey-light: #e8ecf0;
  --grey-lighter: #f5f7f9;

  /* Brand - Fresh Green Palette */
  --primary: #2e7d32;
  --primary-hover: #1b5e20;
  --primary-light: #4caf50;
  --primary-lighter: #81c784;
  --primary-subtle: rgba(46, 125, 50, 0.08);
  --primary-bright: #66bb6a;

  /* Accent - Vibrant Yellow */
  --highlight: #ffc107;
  --highlight-hover: #ffa000;
  --highlight-bright: #ffca28;
  --highlight-subtle: rgba(255, 193, 7, 0.12);

  /* Semantic colors - Bright */
  --success: #2e7d32;
  --warning: #ffc107;
  --error: #d32f2f;
  --info: #1976d2;

  /* Borders - Subtle */
  --border: rgba(46, 125, 50, 0.12);
  --border-medium: rgba(46, 125, 50, 0.18);
  --border-strong: rgba(46, 125, 50, 0.25);

  /* Border radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  /* Shadows - Soft & Bright */
  --shadow-xs: 0 1px 3px rgba(46, 125, 50, 0.08);
  --shadow-sm: 0 2px 8px rgba(46, 125, 50, 0.1), 0 1px 3px rgba(46, 125, 50, 0.06);
  --shadow-md: 0 4px 16px rgba(46, 125, 50, 0.12), 0 2px 6px rgba(46, 125, 50, 0.08);
  --shadow-lg: 0 8px 24px rgba(46, 125, 50, 0.14), 0 4px 12px rgba(46, 125, 50, 0.1);
  --shadow-xl: 0 16px 40px rgba(46, 125, 50, 0.16), 0 8px 20px rgba(46, 125, 50, 0.12);
  
  /* Colored shadows */
  --shadow-primary: 0 6px 20px rgba(46, 125, 50, 0.2);
  --shadow-highlight: 0 6px 20px rgba(255, 193, 7, 0.25);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Focus ring */
  --focus: 0 0 0 3px rgba(46, 125, 50, 0.15), 0 0 0 1px var(--primary);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
}

/* ---------- Base Styles ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: var(--highlight-subtle);
  color: var(--text);
}

::-moz-selection {
  background: var(--highlight-subtle);
  color: var(--text);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--grey);
  margin-bottom: 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1em;
  color: var(--text-secondary);
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--radius-xs);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Section Spacing ---------- */
section {
  position: relative;
}

section.py-5 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

section.py-lg-6 {
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
}

@media (max-width: 991px) {
  section.py-5 {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }
  section.py-lg-6 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
}

/* ---------- Utility Classes ---------- */
.bg-cream {
  background: var(--cream);
}

.text-navy {
  color: var(--grey) !important;
}

.text-muted {
  color: var(--muted) !important;
}

.text-light-muted {
  color: var(--text-light) !important;
}

/* ---------- Section Headers ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-sm);
  position: relative;
}

.section-label::before {
  content: "";
  width: 28px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--highlight));
  border-radius: 99px;
}

.section-title {
  font-weight: 900;
  color: var(--grey);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  max-width: 720px;
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 400;
}
/* ---------- NAVBAR - GREEN INDUSTRIAL ---------- */
.navbar {
  background: linear-gradient(
    135deg,
    #1b5e1fa2 0%,
    #145a32c2 50%,
    #0f3d1e 100%
  );
  border-bottom: 1px solid rgba(255, 193, 7, 0.18);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.85rem 0;
}

/* ---------- Brand ---------- */
.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.01em;
  font-size: 1.25rem;
  color: #ffffff;
  transition: transform 0.2s ease, color 0.2s ease;
}

.navbar-brand:hover {
  transform: translateY(-1px);
  color: #fbbf24; /* yellow accent */
}

.navbar .navbar-brand img {
  width: 70px !important;
  height: 70px !important;
  object-fit: cover;
  background: rgb(255, 255, 255);
  
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.2);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: all 0.2s ease;
}

.navbar-brand:hover img {
  border-color: #fbbf24;
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}
/* ---------- Links ---------- */
.navbar .nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.65rem 1.05rem;
  border-radius: 999px;
  transition: all 0.2s ease;
  position: relative;
}

/* Hover background */
.navbar .nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 193, 7, 0.18);
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: 999px;
}

.navbar .nav-link:hover::before,
.navbar .nav-link:focus::before {
  opacity: 1;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #ffffff;
  transform: translateY(-1px);
}

/* Active link */
.navbar .nav-link.active {
  background: rgba(255, 193, 7, 0.25);
  color: #ffffff;
  font-weight: 800;
}

/* ---------- Mobile Toggler ---------- */
.navbar-toggler {
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  transition: all 0.2s ease;
  color: #ffffff;
}

.navbar-toggler:hover {
  border-color: #fbbf24;
  background: rgba(255, 193, 7, 0.15);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.3);
}

/* Ensure horizontal layout on desktop */
@media (min-width: 992px) {
  .navbar-nav {
    flex-direction: row !important;
    align-items: center;
    gap: 0.5rem;
  }
}
/* ---------- HERO SECTION - DARK INDUSTRIAL ---------- */
.hero-section {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  background-color: #111827; /* fallback */
}

.hero-section[style*="background-image"] {
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

/* DARK LEFT GRADIENT FOR TEXT */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(17, 24, 39, 0.85) 0%,
    rgba(17, 24, 39, 0.75) 35%,
    rgba(17, 24, 39, 0.45) 60%,
    rgba(17, 24, 39, 0.15) 80%,
    rgba(17, 24, 39, 0.05) 100%
  );
}

/* Ensure content stays above overlay */
.hero-section .position-relative {
  position: relative;
  z-index: 2;
}

/* TEXT STYLING */
.hero-title {
  color: #ffffff;
  font-weight: 900;
  line-height: 1.05;
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  letter-spacing: -0.03em;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 600px;
}

/* Buttons */
.hero-section .btn-primary {
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
  border: none;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
}

.hero-section .btn-outline-light {
  border-color: rgba(255,255,255,0.4);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
}

.hero-section .btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
}

/* Remove previous floating effects */
.hero-section::before,
.hero-section::after {
  display: none;
}
/* ---------- CARDS - BRIGHT & CLEAN ---------- */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
  transition: all var(--transition-slow);
  overflow: hidden;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-light), var(--highlight));
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.card:hover::before {
  opacity: 1;
}

.card .card-title {
  color: var(--grey);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.card-img-top {
  object-fit: cover;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition-slow);
}

.card:hover .card-img-top {
  transform: scale(1.05);
  filter: brightness(1.05) saturate(1.1);
}

.card-body {
  padding: 1.75rem;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--highlight-subtle);
  color: #e65100;
  border: 1px solid rgba(255, 193, 7, 0.25);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
}

.badge-soft:hover {
  background: rgba(255, 193, 7, 0.2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ---------- BUTTONS - VIBRANT & CLEAR ---------- */
.btn {
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.75rem;
  border: none;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn:hover::before {
  opacity: 1;
}

.btn:focus-visible {
  box-shadow: var(--focus) !important;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(46, 125, 50, 0.3);
  color: #ffffff;
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  box-shadow: none;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--primary-subtle);
  border-color: var(--primary-light);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-outline-dark {
  border: 2px solid var(--grey-3);
  color: var(--grey);
  background: transparent;
  box-shadow: none;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
  background: var(--grey);
  border-color: var(--grey);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-light {
  border: 2px solid var(--grey-light);
  color: var(--grey);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-xs);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  background: #ffffff;
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 800;
}

/* ---------- FORMS ---------- */
.form-control,
.form-select {
  border-radius: var(--radius);
  border: 2px solid var(--border);
  padding: 0.875rem 1.125rem;
  background: var(--surface);
  font-size: 1rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: var(--focus);
  background: #ffffff;
  outline: none;
}

.form-control::placeholder {
  color: var(--text-light);
}

.form-label {
  font-weight: 700;
  color: var(--grey);
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* ---------- ALERTS ---------- */
.alert {
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  font-weight: 500;
}

.alert-success {
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.12), rgba(46, 125, 50, 0.08));
  border-color: rgba(46, 125, 50, 0.25);
  color: #1b5e20;
}

.alert-warning {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.12), rgba(255, 193, 7, 0.08));
  border-color: rgba(255, 193, 7, 0.25);
  color: #e65100;
}

.alert-danger,
.alert-error {
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.12), rgba(211, 47, 47, 0.08));
  border-color: rgba(211, 47, 47, 0.25);
  color: #b71c1c;
}

.alert-info {
  background: linear-gradient(135deg, rgba(25, 118, 210, 0.12), rgba(25, 118, 210, 0.08));
  border-color: rgba(25, 118, 210, 0.25);
  color: #0d47a1;
}
/* =========================================================
   FOOTER - CLEAN GREEN INDUSTRIAL (combined + polished)
   Works with your current footer template
   ========================================================= */

footer.footer-green {
  position: relative;
  background: linear-gradient(135deg, #0c2f17 0%, #124d2b 45%, #1b5e20 100%);
  border-top: 3px solid #fbbf24; /* yellow accent */
  color: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

/* subtle depth */
footer.footer-green::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 450px at 15% 20%, rgba(255,255,255,0.07), transparent 70%),
    radial-gradient(700px 350px at 85% 70%, rgba(251,191,36,0.08), transparent 70%);
  pointer-events: none;
}

/* keep content above overlay */
footer.footer-green .container,
footer.footer-green .row,
footer.footer-green .col-lg-5,
footer.footer-green .col-lg-4,
footer.footer-green .col-lg-3 {
  position: relative;
  z-index: 1;
}

/* headings */
footer.footer-green h5,
footer.footer-green h6 {
  color: #ffffff;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

/* muted text in footer (supports BOTH text-muted and your text-light-50 class) */
footer.footer-green .text-muted,
footer.footer-green .small.text-muted,
footer.footer-green .text-light-50,
footer.footer-green .small.text-light-50 {
  color: rgba(255, 255, 255, 0.68) !important;
}

/* links */
footer.footer-green a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  display: inline-block;
}

footer.footer-green a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #fbbf24, rgba(251,191,36,0.6));
  transition: width 0.25s ease;
}

footer.footer-green a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

footer.footer-green a:hover::after {
  width: 100%;
}

/* divider */
footer.footer-green hr,
footer.footer-green .footer-divider,
footer.footer-green .border-secondary {
  border-color: rgba(255, 255, 255, 0.15) !important;
  opacity: 1;
}

/* bottom row alignment
   Your template uses: <div class="d-flex flex-wrap justify-content-between ...">
   So we target that safely inside footer.
*/
footer.footer-green .d-flex.flex-wrap.justify-content-between {
  align-items: center;
  gap: 10px 16px;
}

/* If you prefer the bottom section not to push the YG link too far right,
   make it look balanced by limiting spacing on big screens.
*/
@media (min-width: 992px) {
  footer.footer-green .d-flex.flex-wrap.justify-content-between {
    justify-content: flex-start !important;
  }
  footer.footer-green .d-flex.flex-wrap.justify-content-between > div:first-child {
    margin-right: 16px;
  }
}

/* YG Engineering link style (subtle button) */
footer.footer-green .yg-link {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: all 0.2s ease;
}

footer.footer-green .yg-link::after {
  display: none; /* remove underline bar for button-style */
}

footer.footer-green .yg-link:hover {
  color: #0c2f17;
  background: #fbbf24;
  border-color: #fbbf24;
  transform: translateY(-1px);
}

/* On small screens keep it neat */
@media (max-width: 575px) {
  footer.footer-green .d-flex.flex-wrap.justify-content-between {
    justify-content: flex-start !important;
  }
}
/* ---------- PROJECT GALLERY ---------- */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-gallery img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-slow);
  cursor: pointer;
}

.project-gallery img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(1) { transition-delay: 0ms; }
.reveal:nth-child(2) { transition-delay: 100ms; }
.reveal:nth-child(3) { transition-delay: 200ms; }
.reveal:nth-child(4) { transition-delay: 300ms; }
.reveal:nth-child(5) { transition-delay: 400ms; }
.reveal:nth-child(6) { transition-delay: 500ms; }

/* ---------- ACCESSIBILITY ---------- */
:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--radius-sm);
}

.skip-to-content {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  z-index: 9999;
  transition: top var(--transition);
}

.skip-to-content:focus {
  top: 1rem;
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .reveal {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991px) {
  .section-title {
    font-size: 2.25rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .hero-section {
    min-height: 500px;
  }
  
  .navbar .nav-link {
    padding: 0.625rem 1rem;
    margin: 0.25rem 0;
  }
  
  .card-body {
    padding: 1.5rem;
  }
}

@media (max-width: 767px) {
  .section-title {
    font-size: 1.875rem;
  }
  
  .btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
  }
  
  .hero-section {
    min-height: 450px;
  }
  
  section.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

@media (max-width: 575px) {
  .section-title {
    font-size: 1.625rem;
  }
  
  .section-subtitle {
    font-size: 0.9375rem;
  }
  
  .card {
    border-radius: var(--radius);
  }
  
  .card-body {
    padding: 1.25rem;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .project-gallery {
    grid-template-columns: 1fr;
  }
}

/* ---------- PRINT ---------- */
@media print {
  .navbar,
  footer,
  .btn,
  .hero-card {
    display: none !important;
  }
  
  body {
    background: white;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ---------- HIGH CONTRAST ---------- */
@media (prefers-contrast: high) {
  :root {
    --border: rgba(0, 0, 0, 0.3);
    --border-medium: rgba(0, 0, 0, 0.4);
    --border-strong: rgba(0, 0, 0, 0.5);
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}

/* Social links */
.social-links{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social{
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
}

.footer-social:hover{
  background: rgba(251,191,36,0.18);
  color: #fbbf24;
}


/* ============================================
   STOP CARD "TURNING" / 3D ROTATION
   ============================================ */

/* Kill any 3D / rotate effects that may exist elsewhere */
.card,
.card:hover {
  transform: none !important;
}

.card {
  transform-style: flat !important;
  backface-visibility: visible !important;
}

/* Keep your intended hover (lift) without rotation */
.card:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
