/* Forge Steel & Copper Architecture Studio - Custom Styles */

:root {
  --primary-color: #1E3A5F;
  --secondary-color: #C87533;
  --dark-accent: #0F1E2E;
  --light-accent: #E8E8E8;
  --copper-light: #D99A6C;
  --steel-gray: #4A5568;
  --text-dark: #2D3748;
  --text-light: #F7FAFC;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

/* Navigation Styles */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-accent) 100%) !important;
  box-shadow: 0 4px 20px rgba(30, 58, 95, 0.3);
  transition: all 0.4s ease;
  padding: 1rem 0;
  backdrop-filter: blur(10px);
}

.navbar.scrolled {
  background: rgba(30, 58, 95, 0.98) !important;
  padding: 0.5rem 0;
}

.navbar-brand {
  color: #FFFFFF !important;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

.navbar-nav .nav-link {
  color: #FFFFFF !important;
  font-weight: 600;
  margin: 0 0.8rem;
  padding: 0.7rem 1.2rem !important;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #FFFFFF !important;
  background-color: var(--secondary-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200, 117, 51, 0.4);
}

.navbar-toggler {
  border: 2px solid #FFFFFF !important;
  padding: 0.5rem 0.75rem;
}

.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(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

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

.hero-section::before,
.parallax-hero::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="%23C87533" fill-opacity="0.1"%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;
  z-index: 0;
}

.hero-section .container,
.parallax-hero .container {
  position: relative;
  z-index: 2;
}

.hero-section h1,
.parallax-hero h1 {
  color: #FFFFFF !important;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  letter-spacing: -1px;
}

.hero-section .lead {
  color: #FFFFFF !important;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
  max-width: 700px;
  margin: 0 auto;
}

.parallax-container {
  position: relative;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 400px;
}

.parallax-divider {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 80px 0;
  position: relative;
}

/* Buttons */
.btn {
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.4s 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 {
  background: var(--secondary-color) !important;
  color: #FFFFFF !important;
  padding: 1rem 3rem !important;
  font-size: 1.1rem;
  box-shadow: 0 8px 20px rgba(200, 117, 51, 0.4);
}

.btn-lg:hover {
  background: var(--copper-light) !important;
  color: #FFFFFF !important;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 28px rgba(200, 117, 51, 0.5);
}

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

.btn-light:hover {
  background: var(--primary-color) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

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

/* Cards */
.card {
  border: none !important;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  background: #FFFFFF;
  height: 100%;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(30, 58, 95, 0.2) !important;
}

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

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

.card-body {
  padding: 2rem;
}

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

.card-text {
  color: var(--steel-gray);
  font-size: 1rem;
  line-height: 1.7;
}

/* Flip Cards */
.flip-card {
  background-color: transparent;
  width: 100%;
  height: 350px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.flip-card-front {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--steel-gray) 100%);
  color: #FFFFFF !important;
}

.flip-card-back {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--copper-light) 100%);
  color: #FFFFFF !important;
  transform: rotateY(180deg);
}

.flip-card h3,
.flip-card h4,
.flip-card h5 {
  color: #FFFFFF !important;
}

/* Room/Project Cards */
.room-card-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  height: 100%;
}

.room-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(30, 58, 95, 0.95) 100%);
  opacity: 0;
  transition: all 0.5s ease;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  z-index: 2;
}

.room-card-wrapper:hover .room-overlay {
  opacity: 1;
}

.room-overlay h3,
.room-overlay h4,
.room-overlay h5 {
  color: #FFFFFF !important;
}

.room-overlay p {
  color: #FFFFFF !important;
}

/* Contact Card */
.contact-card {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-accent) 100%);
  border-radius: 20px;
  padding: 3rem;
  color: #FFFFFF !important;
  box-shadow: 0 15px 40px rgba(30, 58, 95, 0.3);
}

.contact-card h3,
.contact-card h4,
.contact-card h5 {
  color: #FFFFFF !important;
}

.contact-card p,
.contact-card a {
  color: #FFFFFF !important;
}

.contact-card .bi {
  color: var(--secondary-color) !important;
}

/* Carousel */
.carousel-item {
  height: 600px;
}

.carousel-item img {
  height: 600px;
  object-fit: cover;
}

.carousel-caption {
  background: linear-gradient(180deg, transparent 0%, rgba(30, 58, 95, 0.9) 100%);
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 2rem;
}

.carousel-caption h3,
.carousel-caption h5 {
  color: #FFFFFF !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--secondary-color);
  border-radius: 50%;
  padding: 2rem;
}

/* Accordion */
.accordion-item {
  border: none !important;
  margin-bottom: 1rem;
  border-radius: 15px !important;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.accordion-button {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-accent) 100%) !important;
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1.5rem;
  border: none !important;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--copper-light) 100%) !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
}

.accordion-button:focus {
  box-shadow: none !important;
  border: none !important;
}

.accordion-button::after {
  filter: brightness(0) invert(1);
}

.accordion-body {
  background: #FFFFFF;
  padding: 2rem;
  color: var(--text-dark);
}

/* Forms */
.form-control,
.form-select {
  border: 2px solid var(--light-accent);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  transition: all 0.3s ease;
  background: #FFFFFF;
  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(200, 117, 51, 0.25) !important;
  background: #FFFFFF;
  color: var(--text-dark) !important;
}

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

.input-group {
  border-radius: 12px;
  overflow: hidden;
}

/* Masonry Grid */
.masonry-grid {
  column-count: 3;
  column-gap: 1.5rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

@media (max-width: 992px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 576px) {
  .masonry-grid {
    column-count: 1;
  }
}

/* Icons */
.bi {
  font-size: 2.5rem;
  color: var(--secondary-color);
  transition: all 0.3s ease;
}

.card:hover .bi {
  transform: scale(1.2) rotate(5deg);
  color: var(--primary-color);
}

/* Badges */
.badge {
  background: var(--secondary-color) !important;
  color: #FFFFFF !important;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Blockquote */
blockquote {
  border-left: 5px solid var(--secondary-color);
  padding: 2rem;
  background: #F7FAFC;
  border-radius: 0 15px 15px 0;
  font-style: italic;
  color: var(--text-dark);
  margin: 2rem 0;
}

/* Shadows */
.shadow {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

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

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

/* Background Colors */
.bg-light {
  background-color: #F7FAFC !important;
}

/* Text Colors */
.text-white {
  color: #FFFFFF !important;
}

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

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

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

/* Links */
a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--copper-light);
  text-decoration: underline;
}

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

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

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-accent) 100%);
  color: #FFFFFF !important;
  padding: 4rem 0 2rem;
}

footer h5 {
  color: #FFFFFF !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

footer a {
  color: #FFFFFF !important;
  transition: all 0.3s ease;
}

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

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

footer .bi {
  color: #FFFFFF;
  font-size: 1.5rem;
  margin: 0 0.5rem;
}

footer .bi:hover {
  color: var(--secondary-color) !important;
  transform: scale(1.2);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

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

.animate-slide-up {
  animation: slideUp 1s ease-out 0.3s forwards;
  opacity: 0;
}

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

/* Utility Classes */
.position-sticky {
  position: sticky !important;
  top: 100px;
}

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

.fixed-top {
  position: fixed !important;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}

.display-1 {
  font-size: clamp(3rem, 8vw, 6rem) !important;
  font-weight: 900 !important;
}

.display-3 {
  font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
  font-weight: 800 !important;
}

.display-4 {
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
  font-weight: 700 !important;
}

.display-5 {
  font-size: clamp(1.5rem, 4vw, 3rem) !important;
  font-weight: 700 !important;
}

/* Responsive Design */
@media (max-width: 992px) {
  .navbar-collapse {
    background: rgba(30, 58, 95, 0.98);
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0.5rem 0;
  }
  
  .hero-section,
  .parallax-hero {
    min-height: 80vh;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  .carousel-item,
  .carousel-item img {
    height: 400px;
  }
  
  .flip-card {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .hero-section,
  .parallax-hero {
    min-height: 70vh;
    padding: 2rem 0;
  }
  
  .btn-lg {
    padding: 0.8rem 2rem !important;
    font-size: 1rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .contact-card {
    padding: 2rem;
  }
  
  .parallax-container {
    background-attachment: scroll;
  }
}

@media (max-width: 576px) {
  .hero-section h1,
  .parallax-hero h1 {
    font-size: 2rem !important;
  }
  
  .hero-section .lead {
    font-size: 1rem !important;
  }
  
  .navbar-brand {
    font-size: 1.3rem;
  }
  
  .card-img-top {
    height: 180px;
  }
  
  .carousel-item,
  .carousel-item img {
    height: 300px;
  }
  
  .flip-card {
    height: 250px;
  }
  
  .bi {
    font-size: 2rem;
  }
  
  .accordion-button {
    font-size: 1rem;
    padding: 1rem;
  }
  
  .accordion-body {
    padding: 1.5rem;
  }
}

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

/* Selection Color */
::selection {
  background: var(--secondary-color);
  color: #FFFFFF;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #FFFFFF;
  animation: spin 1s ease-in-out infinite;
}

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

/* Hover Effects */
.hover-lift {
  transition: transform 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
}

/* Image Filters */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.img-fluid {
  transition: all 0.4s ease;
}

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

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

/* Spacing Utilities */
.py-5 {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

.my-5 {
  margin-top: 4rem !important;
  margin-bottom: 4rem !important;
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none;
  }
}