/* Arctic Steel & Ice - Architecture Studio Theme */

/* Root Variables */
:root {
  --primary-color: #2C5F73;
  --secondary-color: #A8DADC;
  --accent-ice: #E8F4F8;
  --steel-dark: #1A3A47;
  --text-dark: #1E2A38;
  --text-light: #F8FBFC;
  --shadow-ice: rgba(168, 218, 220, 0.3);
  --shadow-steel: rgba(44, 95, 115, 0.4);
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

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

.hero-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="ice" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M50 0 L60 30 L50 50 L40 30 Z M0 50 L30 60 L50 50 L30 40 Z" fill="rgba(168,218,220,0.1)" /></pattern></defs><rect width="100" height="100" fill="url(%23ice)" /></svg>') repeat;
  opacity: 0.3;
  animation: iceShimmer 20s ease-in-out infinite;
}

@keyframes iceShimmer {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.5; }
}

/* Navigation */
.navbar {
  background: rgba(26, 58, 71, 0.95) !important;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  z-index: 1000;
}

.sticky-top.navbar,
.position-sticky.navbar {
  box-shadow: 0 4px 20px var(--shadow-steel);
}

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

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

.nav-link {
  color: rgba(248, 251, 252, 0.85) !important;
  font-weight: 600 !important;
  padding: 0.5rem 1rem !important;
  transition: var(--transition-smooth);
  position: relative;
}

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

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

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

.navbar-toggler {
  border: 2px solid var(--secondary-color) !important;
  background-color: rgba(168, 218, 220, 0.2) !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(168, 218, 220, 0.4) !important;
}

/* Buttons */
.btn {
  font-weight: 600 !important;
  letter-spacing: 0.03em;
  transition: var(--transition-smooth) !important;
  border-radius: 8px !important;
  padding: 0.75rem 2rem !important;
  border: none !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-primary {
  background: var(--primary-color) !important;
  color: var(--text-light) !important;
  box-shadow: 0 4px 15px var(--shadow-steel);
}

.btn-primary:hover {
  background: var(--steel-dark) !important;
  color: var(--text-light) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px var(--shadow-steel);
}

.btn-secondary {
  background: var(--secondary-color) !important;
  color: var(--steel-dark) !important;
  box-shadow: 0 4px 15px var(--shadow-ice);
}

.btn-secondary:hover {
  background: #8FCFD1 !important;
  color: var(--steel-dark) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px var(--shadow-ice);
}

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

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

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

/* Cards */
.card {
  border: none !important;
  border-radius: 12px !important;
  overflow: hidden;
  transition: var(--transition-smooth);
  background: white !important;
  height: 100%;
}

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

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

.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.portfolio-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 95, 115, 0.9), rgba(168, 218, 220, 0.8));
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 2;
}

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

.portfolio-item img {
  transition: var(--transition-smooth);
}

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

/* Images */
.img-fluid {
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.shadow-lg {
  box-shadow: 0 10px 40px var(--shadow-steel) !important;
}

.shadow-sm {
  box-shadow: 0 2px 10px var(--shadow-ice) !important;
}

.shadow {
  box-shadow: 0 5px 20px var(--shadow-steel) !important;
}

.object-fit-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Sections */
section {
  position: relative;
  padding: 5rem 0;
}

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

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

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

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

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

.text-muted {
  color: rgba(30, 42, 56, 0.6) !important;
}

/* Forms */
.form-control,
.form-select {
  border: 2px solid rgba(44, 95, 115, 0.2) !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  transition: var(--transition-smooth);
  color: var(--text-dark) !important;
  background-color: white !important;
}

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

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

.form-check-input {
  border: 2px solid var(--primary-color) !important;
  cursor: pointer;
}

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

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

/* Badges */
.badge {
  background: var(--secondary-color) !important;
  color: var(--steel-dark) !important;
  font-weight: 600 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 6px !important;
}

/* Icons */
.bi,
.fas {
  transition: var(--transition-smooth);
}

.fa-3x {
  font-size: 3rem !important;
  color: var(--primary-color) !important;
}

.fs-1 {
  font-size: calc(1.375rem + 1.5vw) !important;
  color: var(--primary-color) !important;
}

/* Filter Buttons */
.filter-btn {
  background: transparent !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  padding: 0.5rem 1.5rem !important;
  margin: 0.25rem !important;
}

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

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

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

.opacity-25 {
  opacity: 0.25 !important;
}

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

.opacity-90 {
  opacity: 0.9 !important;
}

/* Links */
a {
  color: var(--primary-color) !important;
  text-decoration: none !important;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--steel-dark) !important;
}

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

/* Social Icons */
.bi-facebook,
.bi-instagram,
.bi-linkedin {
  font-size: 1.5rem;
  color: var(--text-light) !important;
  transition: var(--transition-smooth);
}

.bi-facebook:hover {
  color: #4267B2 !important;
}

.bi-instagram:hover {
  color: #E1306C !important;
}

.bi-linkedin:hover {
  color: #0077B5 !important;
}

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

footer h6,
footer .h6 {
  color: var(--secondary-color) !important;
  font-weight: 700 !important;
  margin-bottom: 1.5rem !important;
}

footer a {
  color: rgba(248, 251, 252, 0.8) !important;
}

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

footer .list-unstyled li {
  margin-bottom: 0.75rem;
  transition: var(--transition-smooth);
}

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

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

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

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

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

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

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

.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loading State */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  border: 3px solid var(--secondary-color);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(26, 58, 71, 0.98);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .display-1 { font-size: 3rem !important; }
  .display-2 { 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; }
}

@media (max-width: 767px) {
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 1rem !important;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
  
  .py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  
  .display-1 { font-size: 2.5rem !important; }
  .display-2 { font-size: 2rem !important; }
  .display-3 { font-size: 1.75rem !important; }
}

@media (max-width: 575px) {
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .gap-3 {
    gap: 0.5rem !important;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: 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: 3px solid var(--secondary-color) !important;
  outline-offset: 3px !important;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #1A3A47;
    --secondary-color: #8FCFD1;
  }
}

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