/* Obsidian Ember Architecture Studio - Custom Styles */

:root {
  --primary-color: #2C3E50;
  --secondary-color: #E74C3C;
  --dark-bg: #1a252f;
  --light-text: #ecf0f1;
  --ember-glow: rgba(231, 76, 60, 0.3);
  --obsidian-dark: #0f1419;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Navigation Styles */
.navbar {
  background: linear-gradient(180deg, rgba(44, 62, 80, 0.95) 0%, rgba(44, 62, 80, 0.85) 100%) !important;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(231, 76, 60, 0.2);
}

.navbar.scrolled {
  background: linear-gradient(180deg, rgba(26, 37, 47, 0.98) 0%, rgba(44, 62, 80, 0.98) 100%) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.navbar-brand {
  color: #ffffff !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-shadow: 0 0 10px var(--ember-glow);
}

.navbar-brand:hover {
  color: var(--secondary-color) !important;
  text-shadow: 0 0 20px var(--secondary-color);
  transform: scale(1.05);
}

.navbar-toggler {
  border: 2px solid var(--secondary-color) !important;
  background-color: rgba(231, 76, 60, 0.2) !important;
  transition: all 0.3s ease;
}

.navbar-toggler:hover {
  background-color: var(--secondary-color) !important;
  box-shadow: 0 0 15px var(--ember-glow);
}

.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;
}

.nav-link {
  color: #ecf0f1 !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary-color), #ff6b5a);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary-color) !important;
  text-shadow: 0 0 10px var(--ember-glow);
}

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

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

.position-relative.overflow-hidden::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, var(--ember-glow) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(231, 76, 60, 0.15) 0%, transparent 50%);
  animation: pulseGlow 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

.position-absolute.start-0.h-100 {
  opacity: 0.15;
  filter: grayscale(20%) contrast(120%);
  mix-blend-mode: overlay;
}

.display-1 {
  font-weight: 800 !important;
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 30px var(--ember-glow);
  letter-spacing: -1px;
  animation: fadeInUp 1s ease-out;
}

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

.lead {
  color: #ecf0f1 !important;
  font-size: 1.25rem !important;
  font-weight: 300 !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out 0.3s both;
}

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

/* Buttons */
.btn {
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50px !important;
  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: 0.8rem 2.5rem !important;
  font-size: 1rem !important;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-outline-light {
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  background: transparent !important;
}

.btn-outline-light:hover {
  color: var(--primary-color) !important;
  background: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

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

.btn-light:hover {
  color: #ffffff !important;
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 20px var(--ember-glow);
  transform: translateY(-2px);
}

/* Primary Button Variant */
.btn-primary {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--secondary-color), #c0392b) !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #c0392b, var(--secondary-color)) !important;
  box-shadow: 0 6px 25px rgba(231, 76, 60, 0.5);
  transform: translateY(-3px);
}

/* Images */
.img-fluid {
  border-radius: 8px;
  transition: all 0.4s ease;
}

.img-fluid:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

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

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

/* Content Sections */
.container,
.container-fluid {
  position: relative;
}

section {
  padding: 5rem 0;
  position: relative;
}

section:nth-child(even) {
  background: linear-gradient(180deg, var(--primary-color), var(--dark-bg));
}

section:nth-child(odd) {
  background: linear-gradient(180deg, var(--dark-bg), var(--primary-color));
}

/* Typography */
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-weight: 700 !important;
  color: #ffffff !important;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.h1, .h2, .h3, .h4, .h5, .h6,
h1, h2, h3, h4, h5, h6 {
  color: #ffffff !important;
  font-weight: 600 !important;
  margin-bottom: 1rem;
}

p {
  color: var(--light-text) !important;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.text-muted {
  color: rgba(236, 240, 241, 0.7) !important;
}

.text-white {
  color: #ffffff !important;
}

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

.fs-5 {
  font-size: 1.15rem !important;
}

.fs-6 {
  font-size: 1rem !important;
}

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

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

.fst-italic {
  font-style: italic !important;
}

.lh-lg {
  line-height: 2 !important;
}

/* Cards */
.card {
  background: rgba(44, 62, 80, 0.6) !important;
  border: 1px solid rgba(231, 76, 60, 0.3) !important;
  border-radius: 12px !important;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 30px var(--ember-glow) !important;
  border-color: var(--secondary-color) !important;
}

.card-body {
  padding: 2rem;
  color: var(--light-text) !important;
}

.border-0 {
  border: none !important;
}

/* Portfolio Items */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(26, 37, 47, 0.95) 100%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

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

/* Forms */
.form-control,
.form-select {
  background-color: rgba(44, 62, 80, 0.5) !important;
  border: 2px solid rgba(231, 76, 60, 0.3) !important;
  color: #ffffff !important;
  padding: 0.75rem 1rem;
  border-radius: 8px !important;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  background-color: rgba(44, 62, 80, 0.8) !important;
  border-color: var(--secondary-color) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 0.2rem var(--ember-glow) !important;
  outline: none;
}

.form-control::placeholder {
  color: rgba(236, 240, 241, 0.5) !important;
}

.form-control-lg,
.form-select-lg {
  padding: 1rem 1.25rem !important;
  font-size: 1.1rem !important;
}

.form-label {
  color: #ffffff !important;
  font-weight: 500 !important;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-check-input {
  background-color: rgba(44, 62, 80, 0.5) !important;
  border: 2px solid rgba(231, 76, 60, 0.3) !important;
  cursor: pointer;
}

.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.2rem var(--ember-glow) !important;
}

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

/* Badges */
.badge {
  background: linear-gradient(135deg, var(--secondary-color), #c0392b) !important;
  color: #ffffff !important;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
}

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

.list-unstyled li {
  padding: 0.5rem 0;
  color: var(--light-text) !important;
}

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

a:hover {
  color: #ff6b5a !important;
  text-shadow: 0 0 10px var(--ember-glow);
}

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

/* Borders */
.border-bottom {
  border-bottom: 1px solid rgba(231, 76, 60, 0.3) !important;
}

.border-top {
  border-top: 1px solid rgba(231, 76, 60, 0.3) !important;
}

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

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

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

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

.mb-5 {
  margin-bottom: 3rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.mt-5 {
  margin-top: 3rem !important;
}

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

.bi::before {
  line-height: 1;
}

/* Contact Info Icons */
.bi-telephone-fill,
.bi-envelope-fill,
.bi-geo-alt-fill,
.bi-info-circle,
.bi-send-fill,
.bi-lightning-fill,
.bi-clock-history,
.bi-chat-dots,
.bi-people {
  color: var(--secondary-color) !important;
  font-size: 1.5rem;
}

/* Shadow Effects */
.shadow {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Opacity */
.opacity-25 {
  opacity: 0.25 !important;
}

/* Position Utilities */
.position-sticky {
  position: sticky !important;
  top: 100px;
}

.pointer-events-none {
  pointer-events: none !important;
}

/* Z-Index */
.z-2 {
  z-index: 2 !important;
}

.z-3 {
  z-index: 3 !important;
}

/* Privacy Policy Specific Styles */
.privacy-hero {
  background: linear-gradient(135deg, var(--obsidian-dark) 0%, var(--primary-color) 100%);
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
}

.privacy-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, var(--ember-glow) 0%, transparent 70%);
  opacity: 0.3;
}

.privacy-content {
  background: rgba(44, 62, 80, 0.5);
  border-radius: 12px;
  padding: 3rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(231, 76, 60, 0.2);
}

.intro-block,
.policy-section,
.closing-block {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(231, 76, 60, 0.2);
}

.intro-block:last-child,
.policy-section:last-child,
.closing-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

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

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

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

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

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

.loading {
  animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(26, 37, 47, 0.98);
    padding: 1.5rem;
    margin-top: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(231, 76, 60, 0.3);
  }
  
  .navbar-nav {
    gap: 0.5rem !important;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
    border-radius: 6px;
  }
  
  .nav-link:hover {
    background: rgba(231, 76, 60, 0.1);
  }
  
  .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;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .privacy-content {
    padding: 2rem 1.5rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .btn-lg {
    padding: 0.7rem 2rem !important;
    font-size: 0.9rem !important;
  }
  
  .position-relative.overflow-hidden {
    min-height: 80vh;
  }
  
  section {
    padding: 2rem 0;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.25rem !important;
  }
  
  .display-1 {
    font-size: 2rem !important;
  }
  
  .lead {
    font-size: 1rem !important;
  }
  
  .privacy-content {
    padding: 1.5rem 1rem;
  }
  
  .card-body {
    padding: 1rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }
}

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

:focus-visible {
  outline: 2px solid var(--secondary-color) !important;
  outline-offset: 2px;
}

/* Smooth Transitions */
* {
  transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
  transition-duration: 0.3s;
  transition-timing-function: ease;
}

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

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

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

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

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

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