/* Jade Forest Architecture Studio - Custom Styles */

/* Import Bootstrap Icons */
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css');

/* Root Variables */
:root {
  --primary-color: #2E7D32;
  --secondary-color: #FFC107;
  --primary-dark: #1B5E20;
  --primary-light: #4CAF50;
  --secondary-dark: #FFA000;
  --text-dark: #1a1a1a;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --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: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

/* Navbar Styles */
.navbar {
  padding: 1rem 0;
  transition: all var(--transition-speed) ease;
  z-index: 1000;
}

.navbar.sticky-top {
  backdrop-filter: blur(10px);
}

.navbar-light.bg-white.sticky-top {
  background-color: rgba(255, 255, 255, 0.98) !important;
}

.navbar-brand {
  font-size: 1.5rem;
  color: var(--primary-color) !important;
  font-weight: 700;
  transition: all var(--transition-speed) ease;
  letter-spacing: 0.5px;
}

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

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

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

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  transition: all var(--transition-speed) ease;
  position: relative;
}

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

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

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

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 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='%23ffffff' fill-opacity='0.05'%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.3;
  animation: bgMove 30s linear infinite;
}

@keyframes bgMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.hero-section .text-white {
  color: var(--text-light) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.hero-section .display-1 {
  animation: fadeInUp 1s ease-out;
  font-size: clamp(2.5rem, 8vw, 5rem);
}

.hero-section .lead {
  animation: fadeInUp 1s ease-out 0.3s backwards;
  color: rgba(255, 255, 255, 0.95) !important;
}

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

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

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: 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-primary,
.btn-success {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--text-dark) !important;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-primary:hover,
.btn-success:hover {
  background-color: var(--secondary-dark) !important;
  border-color: var(--secondary-dark) !important;
  color: var(--text-dark) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4) !important;
}

.btn-outline-primary,
.btn-outline-success {
  border-color: var(--text-light) !important;
  color: var(--text-light) !important;
  border-width: 2px;
  background-color: transparent !important;
}

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

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

.btn-outline-secondary:hover {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.3) !important;
}

.btn-outline-light {
  border-color: var(--text-light) !important;
  color: var(--text-light) !important;
  border-width: 2px;
}

.btn-outline-light:hover {
  background-color: var(--text-light) !important;
  color: var(--primary-color) !important;
}

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

.btn-sm {
  padding: 0.5rem 1.5rem !important;
  font-size: 0.875rem;
}

/* Cards */
.card {
  border: none !important;
  border-radius: 15px;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

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

.card-body {
  padding: 2rem;
}

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

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

.card.border-0 {
  background-color: #ffffff;
}

/* Metric Cards */
.metric-card {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: var(--text-light) !important;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-speed) ease;
}

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

.metric-card .display-4,
.metric-card .display-3 {
  color: var(--text-light) !important;
  font-weight: 700;
}

/* 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: 15px;
  cursor: pointer;
  height: 350px;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.95), rgba(76, 175, 80, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  transition: all 0.5s ease;
  padding: 2rem;
  color: var(--text-light) !important;
}

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

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

.portfolio-overlay h3,
.portfolio-overlay p {
  color: var(--text-light) !important;
  text-align: center;
}

/* Parallax Section */
.parallax-section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  min-height: 400px;
}

.parallax-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(46, 125, 50, 0.85);
}

/* Forms */
.form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: all var(--transition-speed) ease;
  font-size: 1rem;
}

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

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

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

.form-check-label {
  margin-left: 0.5rem;
  font-weight: 500;
}

/* Progress Bars */
.progress {
  height: 10px;
  border-radius: 10px;
  background-color: #e0e0e0;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
  transition: width 1s ease;
}

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

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

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

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

.bg-dark {
  background-color: #1a1a1a !important;
}

/* Text Colors */
.text-primary {
  color: var(--primary-color) !important;
}

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

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

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

.text-muted {
  color: #6c757d !important;
}

.text-light {
  color: #f8f9fa !important;
}

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

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

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

/* Images */
.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

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

.fs-2 { font-size: 2rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }

/* Utility Classes */
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-sticky { position: sticky !important; }

.top-50 { top: 50% !important; }
.start-50 { left: 50% !important; }
.translate-middle { transform: translate(-50%, -50%) !important; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-block { display: inline-block !important; }

.flex-wrap { flex-wrap: wrap !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }

.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }

.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }

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

.ms-auto { margin-left: auto !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-4 { margin-left: 1.5rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.me-1 { margin-right: 0.25rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }

.p-0 { padding: 0 !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }
.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.pt-5 { padding-top: 3rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }

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

.list-unstyled { list-style: none !important; padding-left: 0 !important; }

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

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

.border { border: 1px solid #dee2e6 !important; }
.border-0 { border: 0 !important; }
.border-secondary { border-color: #6c757d !important; }

.bg-opacity-25 { background-color: rgba(0, 0, 0, 0.25) !important; }

.small { font-size: 0.875rem !important; }

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

/* Privacy Content */
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
}

.privacy-content h4 {
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.privacy-content p {
  line-height: 1.8;
  color: var(--text-dark);
}

/* Footer */
footer {
  background-color: #1a1a1a;
  color: var(--text-light);
}

footer a {
  color: var(--text-light) !important;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

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

footer .bi {
  transition: all var(--transition-speed) ease;
}

footer a:hover .bi {
  transform: scale(1.2);
}

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

@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);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .d-lg-block { display: none !important; }
  
  .navbar-collapse {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    box-shadow: var(--shadow-md);
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .hero-section {
    min-height: 80vh;
    padding-top: 80px;
  }
  
  .display-1 {
    font-size: 3rem !important;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .display-5 {
    font-size: 1.75rem !important;
  }
  
  .display-6 {
    font-size: 1.5rem !important;
  }
  
  .px-lg-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .portfolio-masonry {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .portfolio-item {
    height: 300px;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 0.95rem;
  }
  
  .parallax-section {
    background-attachment: scroll;
    min-height: 300px;
  }
  
  .mt-lg-0 {
    margin-top: 1rem !important;
  }
  
  .mb-lg-0 {
    margin-bottom: 1rem !important;
  }
  
  .offset-lg-1,
  .offset-lg-2,
  .offset-lg-3,
  .offset-lg-5 {
    margin-left: 0 !important;
  }
  
  .order-lg-1 { order: 1 !important; }
  .order-lg-2 { order: 2 !important; }
}

@media (max-width: 767.98px) {
  .col-md-6,
  .col-md-4,
  .col-md-10,
  .col-md-12 {
    max-width: 100%;
    flex: 0 0 100%;
  }
  
  .offset-md-1 {
    margin-left: 0 !important;
  }
  
  .text-md-start,
  .text-md-end {
    text-align: center !important;
  }
  
  .mb-md-0 {
    margin-bottom: 1rem !important;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .metric-card {
    padding: 1.5rem;
  }
  
  .portfolio-masonry {
    grid-template-columns: 1fr;
  }
  
  .g-4 {
    gap: 1rem !important;
  }
  
  .g-5 {
    gap: 1.5rem !important;
  }
}

@media (max-width: 575.98px) {
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .display-1 {
    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;
  }
  
  .display-6 {
    font-size: 1.25rem !important;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem;
  }
  
  .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  .card {
    page-break-inside: avoid;
  }
}

/* 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 Styles */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

button:focus,
.btn:focus {
  outline: 2px solid var(--secondary-color);
}

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

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

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

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

/* Loading Spinner */
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--bg-light);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}