/* Ember Stone Architecture Studio - Custom Styles */

/* ==================== ROOT VARIABLES ==================== */
:root {
  --primary-color: #FF5722;
  --secondary-color: #37474F;
  --dark-bg: #263238;
  --light-bg: #ECEFF1;
  --text-dark: #212121;
  --text-light: #757575;
  --white: #FFFFFF;
  --ember-glow: rgba(255, 87, 34, 0.2);
  --stone-texture: rgba(55, 71, 79, 0.05);
  --transition-speed: 0.3s;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
}

/* ==================== GLOBAL STYLES ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.display-2, .display-3, .display-4, .display-5 {
  font-weight: 800 !important;
  letter-spacing: -1px !important;
}

a {
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

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

.container, .container-fluid {
  position: relative;
}

/* ==================== NAVBAR STYLES ==================== */
.navbar {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%) !important;
  padding: 1rem 0;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-speed) ease;
  z-index: 1000;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background: var(--secondary-color) !important;
}

.navbar-brand {
  font-size: 1.75rem;
  color: var(--white) !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all var(--transition-speed) ease;
  position: relative;
  padding-left: 45px;
}

.navbar-brand::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, var(--primary-color), #FF8A65);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: all var(--transition-speed) ease;
}

.navbar-brand:hover {
  color: var(--primary-color) !important;
  transform: translateX(5px);
}

.navbar-brand:hover::before {
  transform: translateY(-50%) rotate(180deg);
}

.navbar-toggler {
  border-color: var(--primary-color) !important;
  padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem var(--ember-glow) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23FF5722' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-nav {
  align-items: center;
}

.nav-item {
  margin: 0 0.5rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-speed) ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-speed) ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white) !important;
  background-color: rgba(255, 87, 34, 0.1) !important;
  border-radius: 4px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.geometric-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  background-image: 
    repeating-linear-gradient(45deg, var(--primary-color) 0px, var(--primary-color) 2px, transparent 2px, transparent 10px),
    repeating-linear-gradient(-45deg, var(--primary-color) 0px, var(--primary-color) 2px, transparent 2px, transparent 10px);
  animation: geometricMove 20s linear infinite;
  pointer-events: none;
}

@keyframes geometricMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.hero-section .text-white {
  color: var(--white) !important;
  position: relative;
  z-index: 2;
}

.hero-section .display-2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  margin-bottom: 1.5rem !important;
  animation: fadeInUp 0.8s ease-out;
}

.hero-section .lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.9) !important;
  max-width: 600px;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section .btn {
  animation: fadeInUp 1.2s ease-out 0.4s both;
}

.hero-section .img-fluid {
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: fadeInRight 1s ease-out 0.5s both;
  border: 3px solid rgba(255, 87, 34, 0.3);
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==================== BUTTONS ==================== */
.btn {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: all var(--transition-speed) ease;
  border-width: 2px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left 0.5s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn-lg {
  font-size: 1rem;
  padding: 1rem 2.5rem !important;
}

.btn[style*="background-color: rgb(255, 87, 34)"],
.btn[style*="background-color:#FF5722"] {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
}

.btn[style*="background-color: rgb(255, 87, 34)"]:hover,
.btn[style*="background-color:#FF5722"]:hover {
  background-color: #E64A19 !important;
  border-color: #E64A19 !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.5) !important;
}

.btn-outline-light {
  border-color: var(--white) !important;
  color: var(--white) !important;
  background-color: transparent !important;
}

.btn-outline-light:hover {
  background-color: var(--white) !important;
  border-color: var(--white) !important;
  color: var(--secondary-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3) !important;
}

.btn-outline-dark {
  border-color: var(--secondary-color) !important;
  color: var(--secondary-color) !important;
  background-color: transparent !important;
}

.btn-outline-dark:hover {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(55, 71, 79, 0.3) !important;
}

.btn-outline-secondary {
  border-color: var(--secondary-color) !important;
  color: var(--secondary-color) !important;
  background-color: transparent !important;
}

.btn-outline-secondary:hover,
.btn-outline-secondary.active {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--white) !important;
}

.filter-btn {
  margin: 0.5rem;
  padding: 0.5rem 1.5rem !important;
  transition: all var(--transition-speed) ease;
}

.filter-btn.active {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4);
}

/* ==================== SECTIONS ==================== */
section {
  padding: 80px 0;
  position: relative;
}

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

.pt-5 {
  padding-top: 3rem !important;
}

.pb-4 {
  padding-bottom: 2rem !important;
}

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

.bg-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2337474F' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

/* ==================== CARDS ==================== */
.card {
  border: none !important;
  border-radius: 8px;
  transition: all var(--transition-speed) ease;
  overflow: hidden;
  background-color: var(--white);
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

.card-img-top {
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img-top {
  transform: scale(1.1);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary-color) !important;
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--text-light) !important;
  font-size: 0.95rem;
  line-height: 1.6;
}

.shadow {
  box-shadow: var(--shadow-md) !important;
}

.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

/* ==================== PORTFOLIO ==================== */
.portfolio-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.portfolio-item {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
  transition: all var(--transition-speed) ease;
}

.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio-item:nth-child(3) { animation-delay: 0.3s; }
.portfolio-item:nth-child(4) { animation-delay: 0.4s; }
.portfolio-item:nth-child(5) { animation-delay: 0.5s; }
.portfolio-item:nth-child(6) { animation-delay: 0.6s; }

.portfolio-item.hidden {
  display: none;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 400px;
  cursor: pointer;
  background-color: var(--secondary-color);
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover img {
  transform: scale(1.15);
  opacity: 0.4;
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
  padding: 2rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-overlay .badge {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.portfolio-overlay .h4 {
  color: var(--white) !important;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.portfolio-overlay .text-white-50 {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.9rem;
}

/* ==================== STAT CARDS ==================== */
.stat-card {
  background: linear-gradient(135deg, var(--primary-color), #FF7043);
  color: var(--white) !important;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.5; }
}

.stat-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 87, 34, 0.4) !important;
}

.stat-card .bi {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.stat-card .counter {
  font-size: 2.5rem;
  font-weight: 800;
  display: block;
  margin: 1rem 0;
  color: var(--white) !important;
}

.stat-card h4 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.9) !important;
}

/* ==================== ICONS ==================== */
.bi {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-clock-fill,
.bi-geo-alt,
.bi-telephone,
.bi-envelope {
  color: var(--primary-color) !important;
  font-size: 1.25rem;
}

.bi-lightning-charge-fill,
.bi-droplet-fill,
.bi-recycle,
.bi-award-fill,
.bi-star-fill,
.bi-check-circle-fill,
.bi-house-heart-fill,
.bi-shield-fill-check,
.bi-tree-fill,
.bi-brightness-high-fill,
.bi-sun-fill,
.bi-layers-fill,
.bi-wind,
.bi-hammer,
.bi-water,
.bi-battery-charging,
.bi-robot,
.bi-building,
.bi-flower1,
.bi-gem {
  color: var(--primary-color);
}

.bi-facebook,
.bi-instagram,
.bi-linkedin,
.bi-twitter {
  font-size: 1.5rem;
  color: var(--white) !important;
  transition: all var(--transition-speed) ease;
}

.bi-facebook:hover,
.bi-instagram:hover,
.bi-linkedin:hover,
.bi-twitter:hover {
  color: var(--primary-color) !important;
  transform: translateY(-3px);
}

/* ==================== FORMS ==================== */
.form-label {
  font-weight: 600;
  color: var(--secondary-color) !important;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-control,
.form-select {
  border: 2px solid #E0E0E0;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all var(--transition-speed) ease;
  background-color: var(--white);
  color: var(--text-dark);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem var(--ember-glow) !important;
  outline: none;
}

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

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

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #E0E0E0;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem var(--ember-glow) !important;
}

.form-check-label {
  color: var(--text-dark);
  cursor: pointer;
  margin-left: 0.5rem;
}

/* ==================== PROGRESS BARS ==================== */
.progress {
  height: 1.5rem;
  border-radius: 8px;
  background-color: #E0E0E0;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary-color), #FF7043) !important;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 1s ease;
  box-shadow: 0 2px 4px rgba(255, 87, 34, 0.3);
}

/* ==================== BADGES ==================== */
.badge {
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 4px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rounded-pill {
  border-radius: 50rem !important;
}

/* ==================== UTILITIES ==================== */
.text-white {
  color: var(--white) !important;
}

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

.text-white-50 {
  color: rgba(255, 255, 255, 0.5) !important;
}

.text-decoration-none {
  text-decoration: none !important;
}

.text-decoration-none:hover {
  text-decoration: none !important;
}

.fw-bold {
  font-weight: 700 !important;
}

.opacity-25 {
  opacity: 0.25 !important;
}

.opacity-10 {
  opacity: 0.1 !important;
}

.position-relative {
  position: relative !important;
}

.position-absolute {
  position: absolute !important;
}

.overflow-hidden {
  overflow: hidden !important;
}

.object-fit-cover {
  object-fit: cover;
}

.rounded {
  border-radius: 0.375rem !important;
}

.rounded-circle {
  border-radius: 50% !important;
}

.ratio {
  position: relative;
  width: 100%;
}

.ratio-16x9 {
  padding-top: 56.25%;
}

.ratio iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

.hover-lift {
  transition: all var(--transition-speed) ease;
}

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

/* ==================== CHART CONTAINER ==================== */
.chart-container {
  position: relative;
  padding: 2rem;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  margin: 2rem 0;
}

/* ==================== ANIMATIONS ==================== */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transition: all 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
}

/* ==================== FOOTER ==================== */
footer {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
  color: var(--white) !important;
  padding: 3rem 0 1rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23FF5722' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.3;
  pointer-events: none;
}

footer h3,
footer h4,
footer .h3,
footer .h4 {
  color: var(--white) !important;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

footer p,
footer a,
footer li {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.95rem;
  line-height: 1.8;
}

footer a:hover {
  color: var(--primary-color) !important;
  padding-left: 5px;
}

footer .list-unstyled li {
  margin-bottom: 0.75rem;
}

footer .small {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6) !important;
}

footer hr {
  border-color: rgba(255, 255, 255, 0.2) !important;
  margin: 2rem 0;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1199.98px) {
  .display-2 { font-size: 3rem; }
  .display-3 { font-size: 2.5rem; }
  .display-4 { font-size: 2rem; }
  .display-5 { font-size: 1.75rem; }
  
  .portfolio-masonry {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(55, 71, 79, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
  }
  
  .navbar-nav {
    align-items: flex-start;
  }
  
  .nav-item {
    margin: 0.25rem 0;
    width: 100%;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
    width: 100%;
  }
  
  .hero-section {
    padding: 100px 0 60px;
    min-height: auto;
  }
  
  section {
    padding: 60px 0;
  }
  
  .display-2 { font-size: 2.5rem; }
  .display-3 { font-size: 2rem; }
  .display-4 { font-size: 1.75rem; }
  .display-5 { font-size: 1.5rem; }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 0.95rem;
  }
  
  .portfolio-masonry {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .portfolio-card {
    height: 300px;
  }
  
  .stat-card {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    text-align: center;
    padding: 80px 0 40px;
  }
  
  .hero-section .lead {
    margin-left: auto;
    margin-right: auto;
  }
  
  .d-flex.gap-3 {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  
  .btn-lg {
    width: 100%;
  }
  
  .display-2 { font-size: 2rem; }
  .display-3 { font-size: 1.75rem; }
  .display-4 { font-size: 1.5rem; }
  .display-5 { font-size: 1.25rem; }
  
  section {
    padding: 40px 0;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .portfolio-masonry {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .portfolio-card {
    height: 250px;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  footer {
    text-align: center;
  }
  
  footer .text-md-end {
    text-align: center !important;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .display-2 { font-size: 1.75rem; }
  .display-3 { font-size: 1.5rem; }
  .display-4 { font-size: 1.35rem; }
  .display-5 { font-size: 1.15rem; }
  
  .btn {
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem !important;
  }
  
  .stat-card .counter {
    font-size: 2rem;
  }
  
  .stat-card .bi {
    font-size: 2.5rem;
  }
  
  .portfolio-card {
    height: 220px;
  }
  
  .portfolio-overlay {
    padding: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
    padding-left: 40px;
  }
  
  .navbar-brand::before {
    width: 30px;
    height: 30px;
  }
}

/* ==================== PRINT STYLES ==================== */
@media print {
  .navbar,
  .btn,
  footer,
  .geometric-overlay {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  .hero-section {
    background: #fff;
    color: #000;
  }
  
  a {
    text-decoration: underline;
  }
}

/* ==================== ACCESSIBILITY ==================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 3px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

/* ==================== CUSTOM SCROLLBAR ==================== */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 6px;
  border: 2px solid var(--light-bg);
}

::-webkit-scrollbar-thumb:hover {
  background: #E64A19;
}

/* ==================== SELECTION ==================== */
::selection {
  background-color: var(--primary-color);
  color: var(--white);
}

::-moz-selection {
  background-color: var(--primary-color);
  color: var(--white);
}