/* Architectural Studio - Charcoal Amber Theme */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #2E4057;
  --secondary-color: #F4A261;
  --dark-charcoal: #1a2332;
  --light-charcoal: #3d4f66;
  --amber-light: #f7b97f;
  --amber-dark: #e89043;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --text-dark: #212529;
  --text-light: #6c757d;
  --transition-base: all 0.3s ease;
  --shadow-sm: 0 2px 4px rgba(46, 64, 87, 0.1);
  --shadow-md: 0 4px 12px rgba(46, 64, 87, 0.15);
  --shadow-lg: 0 8px 24px rgba(46, 64, 87, 0.2);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark) !important;
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--off-white);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary-color) !important;
}

a {
  text-decoration: none;
  transition: var(--transition-base);
}

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

/* ===== HERO SLIDESHOW ===== */
.hero-slideshow {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-charcoal) 100%);
}

.slideshow-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  background-size: cover;
  background-position: center;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(46, 64, 87, 0.85) 0%, rgba(26, 35, 50, 0.75) 100%);
  z-index: 2;
}

/* ===== NAVBAR ===== */
.navbar {
  padding: 1rem 0;
  transition: var(--transition-base);
  background-color: transparent !important;
  z-index: 1000;
}

.navbar.scrolled {
  background-color: var(--primary-color) !important;
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
}

.navbar-brand {
  color: var(--white) !important;
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em;
  transition: var(--transition-base);
}

.navbar-brand:hover {
  color: var(--secondary-color) !important;
  transform: translateY(-2px);
}

.navbar-toggler {
  border: 2px solid var(--secondary-color) !important;
  padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(244, 162, 97, 0.3) !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='%23F4A261' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-nav {
  gap: 1.5rem;
}

.nav-link {
  color: var(--white) !important;
  font-weight: 600 !important;
  font-size: 1rem;
  position: relative;
  padding: 0.5rem 0 !important;
  transition: var(--transition-base);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--secondary-color) !important;
}

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

/* ===== HERO CONTENT ===== */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 90%;
  max-width: 1200px;
}

.hero-content h1 {
  color: var(--white) !important;
  font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.hero-content .lead {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem) !important;
  margin-bottom: 2.5rem;
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease-out 0.2s both;
}

/* ===== BUTTONS ===== */
.btn {
  border-radius: 50px;
  padding: 0.875rem 2.5rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-base);
  border: 2px solid transparent;
  font-size: 0.95rem !important;
}

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

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

.btn-primary:hover {
  background-color: var(--amber-dark) !important;
  border-color: var(--amber-dark) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(244, 162, 97, 0.4) !important;
}

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

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

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

.btn-outline-secondary:hover {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(244, 162, 97, 0.4) !important;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--white) !important;
  text-align: center;
  cursor: pointer;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* ===== SECTIONS ===== */
section {
  padding: 5rem 0;
}

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

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

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

/* ===== BADGES ===== */
.badge {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 50px;
}

/* ===== SERVICE CARDS ===== */
.service-card {
  background-color: var(--white);
  border-radius: 12px;
  transition: var(--transition-base);
  border: 1px solid rgba(46, 64, 87, 0.1);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg) !important;
  border-color: var(--secondary-color);
}

.service-card .bi {
  color: var(--secondary-color) !important;
  font-size: 2.5rem !important;
  margin-bottom: 1rem;
}

.service-card h4 {
  color: var(--primary-color) !important;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-card p {
  color: var(--text-light) !important;
  line-height: 1.7;
}

/* ===== CARDS ===== */
.card {
  border: none !important;
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-base);
  background-color: var(--white);
}

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

.card-body {
  padding: 2rem;
}

.card-title {
  color: var(--primary-color) !important;
  font-weight: 700;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-light) !important;
  line-height: 1.7;
}

/* ===== IMAGES ===== */
.img-fluid {
  border-radius: 8px;
}

.rounded {
  border-radius: 8px !important;
}

.rounded-3 {
  border-radius: 12px !important;
}

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

.object-fit-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* ===== SHADOWS ===== */
.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

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

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

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

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  background-color: var(--primary-color);
}

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

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(46, 64, 87, 0.95) 0%, rgba(46, 64, 87, 0.3) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: var(--white) !important;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h3,
.portfolio-overlay h4,
.portfolio-overlay h5 {
  color: var(--white) !important;
}

/* ===== TIMELINE ===== */
.timeline-container {
  position: relative;
  padding-left: 3rem;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--secondary-color);
}

.timeline-container .badge {
  position: absolute;
  left: 0;
  transform: translateX(-50%);
  z-index: 2;
}

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

.form-control,
.form-select {
  border: 2px solid rgba(46, 64, 87, 0.2);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  transition: var(--transition-base);
  background-color: var(--white);
  color: var(--text-dark) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(244, 162, 97, 0.25) !important;
  background-color: var(--white);
  color: var(--text-dark) !important;
}

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

.form-check-input {
  border: 2px solid rgba(46, 64, 87, 0.3);
}

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

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(244, 162, 97, 0.25) !important;
}

.form-check-label {
  color: var(--text-dark) !important;
  cursor: pointer;
}

/* ===== BACKGROUND COLORS ===== */
.bg-primary {
  background-color: var(--primary-color) !important;
}

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

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

.bg-dark {
  background-color: var(--dark-charcoal) !important;
}

/* ===== TEXT COLORS ===== */
.text-primary {
  color: var(--primary-color) !important;
}

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

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

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

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

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

/* ===== OPACITY ===== */
.opacity-10 {
  opacity: 0.1 !important;
}

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

.opacity-50 {
  opacity: 0.5 !important;
}

.opacity-75 {
  opacity: 0.75 !important;
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--primary-color);
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 4rem 0 2rem;
}

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

footer p,
footer a,
footer li {
  color: rgba(255, 255, 255, 0.8) !important;
}

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

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

footer .bi {
  color: var(--secondary-color) !important;
  margin-right: 0.5rem;
}

footer .border-top {
  border-color: rgba(255, 255, 255, 0.1) !important;
  margin-top: 3rem;
  padding-top: 2rem;
}

/* ===== UTILITIES ===== */
.z-index-2 {
  z-index: 2;
}

.position-sticky {
  position: sticky !important;
  top: 100px;
}

.sticky-lg-top {
  position: sticky;
  top: 80px;
  z-index: 1020;
}

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

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.fw-semibold {
  font-weight: 600 !important;
}

.vh-100 {
  height: 100vh !important;
}

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

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-out;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--primary-color);
    padding: 1.5rem;
    margin-top: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
  }
  
  .navbar-nav {
    gap: 0.5rem;
  }
  
  .nav-link {
    padding: 0.75rem 0 !important;
  }
  
  .hero-content {
    width: 95%;
  }
  
  .portfolio-masonry {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .display-2 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .display-5 {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 767.98px) {
  .btn {
    padding: 0.75rem 2rem !important;
    font-size: 0.9rem !important;
  }
  
  .btn-lg {
    padding: 0.875rem 2.5rem !important;
    font-size: 0.95rem !important;
  }
  
  .timeline-container {
    padding-left: 2rem;
  }
  
  .portfolio-masonry {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .hero-content h1 {
    font-size: 2rem !important;
  }
  
  .hero-content .lead {
    font-size: 1rem !important;
  }
  
  .scroll-indicator {
    bottom: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.5rem !important;
  }
}

/* ===== BOOTSTRAP OVERRIDES ===== */
.container {
  max-width: 1320px;
}

.row {
  margin-left: -12px;
  margin-right: -12px;
}

.row > * {
  padding-left: 12px;
  padding-right: 12px;
}

.g-3 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

.g-4 {
  --bs-gutter-x: 2rem;
  --bs-gutter-y: 2rem;
}

.g-5 {
  --bs-gutter-x: 3rem;
  --bs-gutter-y: 3rem;
}

.gap-2 {
  gap: 0.5rem !important;
}

.gap-3 {
  gap: 1rem !important;
}

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

::-webkit-scrollbar-track {
  background: var(--off-white);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--amber-dark);
}

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

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