/* Architecture Studio - Forest Green & Amber Theme */

:root {
  --primary-color: #2E7D32;
  --secondary-color: #FF6F00;
  --dark-green: #1B5E20;
  --light-green: #4CAF50;
  --dark-amber: #E65100;
  --light-amber: #FFB74D;
  --white: #FFFFFF;
  --light-gray: #F5F5F5;
  --dark-gray: #424242;
  --text-dark: #212121;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color);
}

.display-1, .display-3, .display-4, .display-5 {
  font-weight: 800;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}

/* Navbar Styling */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-green) 100%) !important;
  padding: 1rem 0;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.navbar-brand {
  color: var(--white) !important;
  font-size: 1.5rem;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
  color: var(--light-amber) !important;
}

.navbar-brand .bi {
  margin-right: 0.5rem;
  color: var(--secondary-color) !important;
  font-size: 1.8rem;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1.2rem !important;
  margin: 0 0.2rem;
  position: relative;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--secondary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--white) !important;
  background: rgba(255, 111, 0, 0.15);
  border-radius: 6px;
}

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

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

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

/* Hero Section */
.position-relative.overflow-hidden {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-green) 100%);
  position: relative;
}

.position-relative.overflow-hidden::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23FF6F00" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,197.3C1248,203,1344,149,1392,122.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  background-position: bottom;
  animation: waveAnimation 20s ease-in-out infinite;
}

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

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

.display-1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  color: var(--white) !important;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease;
}

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

/* Buttons */
.btn {
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

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

.btn-primary {
  background: var(--secondary-color) !important;
  color: var(--white) !important;
  border: 2px solid var(--secondary-color) !important;
  box-shadow: 0 4px 15px rgba(255, 111, 0, 0.3);
}

.btn-primary:hover {
  background: var(--dark-amber) !important;
  border-color: var(--dark-amber) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 111, 0, 0.5) !important;
  color: var(--white) !important;
}

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

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

.btn-light {
  background: var(--white) !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--white) !important;
}

.btn-light:hover {
  background: var(--secondary-color) !important;
  color: var(--white) !important;
  border-color: var(--secondary-color) !important;
  transform: translateY(-3px);
}

.btn-sm {
  padding: 0.4rem 1rem !important;
  font-size: 0.875rem;
}

.filter-btn {
  background: var(--white) !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
  margin: 0.3rem;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary-color) !important;
  color: var(--white) !important;
  transform: scale(1.05);
}

/* Rotating Showcase */
.rotating-showcase {
  position: relative;
  width: 100%;
  height: 600px;
  perspective: 1000px;
}

.rotating-showcase .img-fluid {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
  0%, 100% { transform: translateY(0) rotateY(0deg); }
  50% { transform: translateY(-20px) rotateY(5deg); }
}

/* Cards */
.card {
  border-radius: 15px;
  transition: all 0.3s ease;
  height: 100%;
  overflow: hidden;
  border: none !important;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(46, 125, 50, 0.2) !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;
  background: var(--white);
}

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

.card .h4 {
  color: var(--primary-color) !important;
}

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

.shadow-sm {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.shadow {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
}

/* Sections */
.py-5 {
  padding: 4rem 0;
}

.py-4 {
  padding: 3rem 0;
}

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

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

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

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

/* Portfolio */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  height: 300px;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.9) 0%, rgba(255, 111, 0, 0.9) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 2rem;
  color: var(--white) !important;
}

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

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

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

/* Badges */
.badge {
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

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

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

/* Forms */
.form-control,
.form-select {
  border: 2px solid #E0E0E0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.15) !important;
  outline: none;
}

.form-label {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.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 rgba(46, 125, 50, 0.15) !important;
}

.invalid-feedback {
  color: #dc3545 !important;
  font-weight: 600;
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #dc3545 !important;
}

/* Icons */
.bi {
  vertical-align: middle;
}

.bi-building,
.bi-arrow-right,
.bi-award-fill,
.bi-people-fill,
.bi-tree-fill,
.bi-lightning-charge-fill,
.bi-check-circle-fill,
.bi-calendar-check,
.bi-info-circle,
.bi-clock-history,
.bi-cup-hot,
.bi-pin-map-fill,
.bi-clipboard-data,
.bi-shield-check,
.bi-share,
.bi-cookie,
.bi-hand-thumbs-up,
.bi-people,
.bi-globe,
.bi-pencil-square,
.bi-envelope,
.bi-telephone,
.bi-geo-alt,
.bi-chat-dots,
.bi-eye,
.bi-calendar3,
.bi-leaf-fill {
  color: var(--secondary-color);
}

.text-white .bi,
.bg-dark .bi,
.bg-secondary .bi,
.navbar .bi {
  color: var(--light-amber) !important;
}

/* Social Icons */
.bi-facebook,
.bi-twitter,
.bi-linkedin,
.bi-instagram {
  font-size: 1.5rem;
  color: var(--white) !important;
  transition: all 0.3s ease;
}

.bi-facebook:hover { color: #1877F2 !important; transform: scale(1.2); }
.bi-twitter:hover { color: #1DA1F2 !important; transform: scale(1.2); }
.bi-linkedin:hover { color: #0A66C2 !important; transform: scale(1.2); }
.bi-instagram:hover { color: #E4405F !important; transform: scale(1.2); }

/* List Styling */
.list-unstyled {
  padding-left: 0;
  list-style: none;
}

.list-unstyled li {
  padding: 0.5rem 0;
}

.list-unstyled a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

.list-unstyled a:hover {
  color: var(--light-amber) !important;
  padding-left: 10px;
}

/* Calendar */
.availability-calendar {
  background: var(--white);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.availability-calendar .badge {
  margin: 0.2rem;
}

/* Table */
.table {
  border-radius: 10px;
  overflow: hidden;
}

.table-hover tbody tr:hover {
  background-color: rgba(46, 125, 50, 0.05);
  cursor: pointer;
}

.table thead {
  background: var(--primary-color);
  color: var(--white) !important;
}

.table thead th {
  color: var(--white) !important;
  font-weight: 700;
  border: none;
}

/* Accordion */
.accordion-item {
  border: 2px solid #E0E0E0;
  border-radius: 10px !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-button {
  background: var(--light-gray) !important;
  color: var(--primary-color) !important;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1.25rem;
}

.accordion-button:not(.collapsed) {
  background: var(--primary-color) !important;
  color: var(--white) !important;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.15) !important;
}

.accordion-button::after {
  filter: brightness(0) saturate(100%);
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) saturate(100%) invert(1);
}

.accordion-body {
  padding: 1.5rem;
  background: var(--white);
}

/* Modal */
.modal-content {
  border-radius: 20px;
  border: none;
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-green) 100%);
  color: var(--white) !important;
  border: none;
  padding: 1.5rem;
}

.modal-title {
  color: var(--white) !important;
  font-weight: 700;
}

.btn-close,
.btn-close-white {
  filter: brightness(0) saturate(100%) invert(1);
  opacity: 1;
}

.modal-body {
  padding: 2rem;
}

/* Ratio (for responsive video embeds) */
.ratio {
  position: relative;
  width: 100%;
}

.ratio::before {
  display: block;
  padding-top: var(--bs-aspect-ratio);
  content: "";
}

.ratio > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ratio-16x9 {
  --bs-aspect-ratio: 56.25%;
}

/* Utilities */
.rounded {
  border-radius: 15px !important;
}

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

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

.opacity-25 { opacity: 0.25 !important; }
.opacity-50 { opacity: 0.5 !important; }
.opacity-75 { opacity: 0.75 !important; }
.opacity-90 { opacity: 0.9 !important; }

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

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

.border {
  border: 2px solid #E0E0E0 !important;
}

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

.border-top {
  border-top: 2px solid rgba(255, 255, 255, 0.2) !important;
}

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

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

/* Footer */
footer {
  background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-color) 100%);
  color: var(--white) !important;
  padding: 3rem 0 1rem;
}

footer h5 {
  color: var(--light-amber) !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

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

footer a:hover {
  color: var(--light-amber) !important;
}

/* Animations */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

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

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

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

.slide-in-left {
  animation: slideInLeft 0.8s ease;
}

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

.slide-in-right {
  animation: slideInRight 0.8s ease;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(46, 125, 50, 0.98);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0.2rem 0;
  }
  
  .display-1 {
    font-size: 2.5rem;
  }
  
  .display-3 {
    font-size: 2rem;
  }
  
  .display-4 {
    font-size: 1.75rem;
  }
  
  .position-relative.overflow-hidden {
    min-height: auto;
    padding: 4rem 0;
  }
  
  .rotating-showcase {
    height: 400px;
    margin-top: 2rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem;
  }
  
  .portfolio-item {
    height: 250px;
  }
}

@media (max-width: 767.98px) {
  .py-5 {
    padding: 2.5rem 0;
  }
  
  .display-1 {
    font-size: 2rem;
  }
  
  h2, .h2 {
    font-size: 1.5rem;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .d-flex.gap-3 {
    flex-direction: column;
  }
  
  .rotating-showcase {
    height: 300px;
  }
}

@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .display-1 {
    font-size: 1.75rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  .portfolio-item {
    height: 200px;
  }
}

/* Sticky Top */
.sticky-lg-top {
  position: sticky;
  top: 20px;
  z-index: 1020;
}

/* Object Fit */
.object-fit-cover {
  object-fit: cover;
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none;
  }
  
  body {
    color: #000;
  }
  
  a {
    text-decoration: underline;
  }
}

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

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}

/* High Contrast Text */
.bg-dark *,
.bg-secondary *,
.bg-success * {
  color: var(--white) !important;
}

.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6,
.bg-secondary h1,
.bg-secondary h2,
.bg-secondary h3,
.bg-secondary h4,
.bg-secondary h5,
.bg-secondary h6 {
  color: var(--white) !important;
}

/* Ensure button text is always readable */
.btn * {
  color: inherit !important;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinner {
  border: 4px solid rgba(46, 125, 50, 0.1);
  border-left-color: var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

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

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

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