/* Arctic Minimalist Architecture Studio - CSS */

:root {
  --primary: #2C3E50;
  --secondary: #ECF0F1;
  --white: #FFFFFF;
  --dark: #1a252f;
  --light-gray: #F8F9FA;
  --accent: #3498db;
  --text-dark: #2C3E50;
  --text-light: #7f8c8d;
  --shadow: rgba(44, 62, 80, 0.1);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--primary) !important;
  line-height: 1.2;
}

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

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

.lead, .fs-3, .fs-5 {
  color: var(--text-light) !important;
  line-height: 1.6;
}

/* Navigation */
.navbar {
  padding: 1.5rem 0;
  transition: var(--transition);
  background: transparent !important;
  z-index: 1000;
}

.navbar.scrolled {
  background: rgba(44, 62, 80, 0.98) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

.navbar-brand {
  color: var(--white) !important;
  font-weight: 600 !important;
  font-size: 1.5rem !important;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

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

.navbar-nav {
  gap: 1rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500 !important;
  position: relative;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

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

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

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

.navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.2) !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 */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
}

.hero-image {
  object-fit: cover;
  opacity: 0.15;
  filter: grayscale(50%);
  z-index: 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(44, 62, 80, 0.7) 0%, rgba(44, 62, 80, 0.5) 100%);
  z-index: 1;
}

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

.hero-section .display-2 {
  color: var(--white) !important;
  font-weight: 200 !important;
  animation: fadeInUp 1s ease-out;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-section .lead {
  color: var(--secondary) !important;
  animation: fadeInUp 1s ease-out 0.2s backwards;
  font-size: 1.25rem !important;
}

/* Buttons */
.btn {
  font-weight: 500 !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.875rem 2rem !important;
  border-radius: 0 !important;
  transition: var(--transition);
  border-width: 2px !important;
  font-size: 0.875rem;
}

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

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

.btn-outline-light:hover {
  background: var(--white) !important;
  color: var(--primary) !important;
  border-color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.btn-outline-dark:hover {
  background: var(--primary) !important;
  color: var(--white) !important;
  border-color: var(--primary) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--shadow);
}

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

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

/* Cards */
.card {
  border: none !important;
  transition: var(--transition);
  background: var(--white);
  overflow: hidden;
}

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

.card-img-top {
  transition: var(--transition);
  aspect-ratio: 4/3;
  object-fit: cover;
}

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

.card-body {
  padding: 2rem !important;
}

.card-body .h4 {
  margin-bottom: 1rem;
  font-weight: 400 !important;
}

/* Images */
.img-fluid {
  transition: var(--transition);
}

.shadow-lg {
  box-shadow: 0 20px 60px rgba(44, 62, 80, 0.15) !important;
}

.shadow {
  box-shadow: 0 10px 30px rgba(44, 62, 80, 0.1) !important;
}

.shadow-sm {
  box-shadow: 0 5px 15px rgba(44, 62, 80, 0.08) !important;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(44, 62, 80, 0) 0%, rgba(44, 62, 80, 0.95) 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: var(--white) !important;
}

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

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

.portfolio-overlay h3,
.portfolio-overlay .h3 {
  color: var(--white) !important;
  margin-bottom: 0.5rem;
}

.portfolio-overlay p {
  color: var(--secondary) !important;
  margin: 0;
}

/* Filter Buttons */
.filter-btn {
  background: transparent;
  border: 2px solid var(--text-light);
  color: var(--primary) !important;
  padding: 0.5rem 1.5rem;
  margin: 0.25rem;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

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

/* Badge */
.badge {
  padding: 0.5rem 1rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.05em;
  background: var(--secondary) !important;
  color: var(--primary) !important;
  border-radius: 0 !important;
}

/* Forms */
.form-control,
.form-select {
  border: 2px solid #dee2e6 !important;
  border-radius: 0 !important;
  padding: 0.875rem 1rem !important;
  transition: var(--transition);
  font-size: 1rem;
  color: var(--text-dark) !important;
  background: var(--white) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.15) !important;
  background: var(--white) !important;
  color: var(--text-dark) !important;
}

.form-label {
  color: var(--text-dark) !important;
  font-weight: 500 !important;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-check-input {
  border: 2px solid #dee2e6 !important;
  border-radius: 0 !important;
  cursor: pointer;
}

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

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

.invalid-feedback {
  display: none;
  color: #dc3545 !important;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.was-validated .form-control:invalid ~ .invalid-feedback {
  display: block;
}

/* Background Colors */
.bg-light {
  background-color: var(--light-gray) !important;
}

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

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

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

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

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

.bi-check-circle-fill {
  color: var(--accent) !important;
}

/* Rounded Elements */
.rounded {
  border-radius: 0.25rem !important;
}

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

/* Comparison Slider */
.comparison-slider {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--light-gray);
}

.comparison-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

/* Footer */
footer {
  background: var(--primary);
  color: var(--secondary) !important;
  padding: 4rem 0 2rem;
}

footer h5,
footer .h5 {
  color: var(--white) !important;
  margin-bottom: 1.5rem;
  font-weight: 500 !important;
}

footer a {
  color: var(--secondary) !important;
  text-decoration: none;
  transition: var(--transition);
}

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

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

footer .bi {
  font-size: 1.5rem;
  transition: var(--transition);
}

footer .bi:hover {
  transform: translateY(-3px);
  color: var(--white) !important;
}

/* Ratio */
.ratio {
  position: relative;
  width: 100%;
}

.ratio-16x9::before {
  padding-top: 56.25%;
}

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

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

.privacy-content h2,
.privacy-content .h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

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

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

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

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

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

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

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

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

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

/* Scroll Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Hover Effects */
.hover-lift {
  transition: var(--transition);
}

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

/* Section Spacing */
section {
  padding: 5rem 0;
}

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

/* Text Decoration */
.text-decoration-none {
  text-decoration: none !important;
}

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

/* D-Grid */
.d-grid {
  display: grid !important;
}

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

/* Responsive Typography */
@media (max-width: 1199.98px) {
  .display-2 {
    font-size: 3rem !important;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
}

@media (max-width: 991.98px) {
  .display-2 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .navbar-collapse {
    background: rgba(44, 62, 80, 0.98);
    padding: 1.5rem;
    margin-top: 1rem;
    border-radius: 0.25rem;
  }
  
  .navbar-nav {
    gap: 0.5rem;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  section {
    padding: 3rem 0;
  }
}

@media (max-width: 767.98px) {
  .display-2 {
    font-size: 2rem !important;
  }
  
  .display-3 {
    font-size: 1.75rem !important;
  }
  
  .display-4 {
    font-size: 1.5rem !important;
  }
  
  .btn {
    padding: 0.75rem 1.5rem !important;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
  
  section {
    padding: 2.5rem 0;
  }
}

@media (max-width: 575.98px) {
  .display-2 {
    font-size: 1.75rem !important;
  }
  
  .fs-3 {
    font-size: 1.25rem !important;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .portfolio-overlay {
    padding: 1.5rem;
  }
}

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

/* Accessibility */
:focus {
  outline: 2px dashed var(--primary);
  outline-offset: 3px;
}

.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: none;
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .btn-outline-light,
  .btn-outline-dark {
    border-width: 3px !important;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  /* Optional: Add dark mode styles if needed */
}

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

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

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

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

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

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