/* Arctic Frost Architecture Studio CSS */

/* ========================================
   ROOT VARIABLES & RESET
   ======================================== */
:root {
  --primary-color: #2E3440;
  --secondary-color: #88C0D0;
  --accent-color: #5E81AC;
  --light-bg: #ECEFF4;
  --dark-bg: #2E3440;
  --text-dark: #2E3440;
  --text-light: #ECEFF4;
  --frost-white: #FFFFFF;
  --ice-blue: #D8DEE9;
  --shadow-color: rgba(46, 52, 64, 0.1);
  --transition-speed: 0.3s;
}

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

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

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6,
.display-2, .display-3, .display-4, .display-5 {
  font-weight: 700 !important;
  color: var(--primary-color) !important;
  letter-spacing: -0.5px;
}

.display-2 {
  font-size: 4.5rem !important;
  line-height: 1.1 !important;
}

.display-3 {
  font-size: 3.5rem !important;
}

.display-4 {
  font-size: 2.8rem !important;
}

.display-5 {
  font-size: 2.2rem !important;
}

.lead {
  font-size: 1.25rem !important;
  color: var(--text-dark) !important;
  opacity: 0.8;
}

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

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

/* ========================================
   NAVBAR STYLES
   ======================================== */
.navbar {
  background: rgba(46, 52, 64, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px var(--shadow-color);
  transition: all var(--transition-speed) ease;
  z-index: 1000;
}

.navbar.scrolled {
  background: var(--primary-color) !important;
  box-shadow: 0 4px 30px rgba(46, 52, 64, 0.2);
}

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

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

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

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

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

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

.navbar-toggler {
  border-color: var(--secondary-color) !important;
  padding: 0.5rem !important;
}

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

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, #3B4252 50%, #4C566A 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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='%2388C0D0' 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: patternMove 60s linear infinite;
}

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

.hero-section .display-2,
.hero-section .lead {
  color: var(--frost-white) !important;
  text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

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

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  border-radius: 50px !important;
  font-weight: 600 !important;
  padding: 0.75rem 2rem !important;
  transition: all var(--transition-speed) ease !important;
  border: 2px solid transparent !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  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: 1rem 3rem !important;
  font-size: 1.1rem !important;
}

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

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #6FB0C3 !important;
  border-color: #6FB0C3 !important;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(136, 192, 208, 0.4) !important;
}

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

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(136, 192, 208, 0.4) !important;
}

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

.btn-light:hover,
.btn-light:focus,
.btn-light:active {
  background-color: var(--ice-blue) !important;
  border-color: var(--ice-blue) !important;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(236, 239, 244, 0.4) !important;
}

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

.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-outline-light:active {
  background-color: var(--frost-white) !important;
  border-color: var(--frost-white) !important;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3) !important;
}

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

.btn-dark:hover,
.btn-dark:focus,
.btn-dark:active {
  background-color: #3B4252 !important;
  border-color: #3B4252 !important;
  color: var(--frost-white) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(46, 52, 64, 0.4) !important;
}

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

.btn-outline-dark:hover,
.btn-outline-dark:focus,
.btn-outline-dark:active {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--frost-white) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(46, 52, 64, 0.4) !important;
}

.btn-group .filter-btn {
  background-color: var(--frost-white) !important;
  border-color: var(--ice-blue) !important;
  color: var(--primary-color) !important;
  border-radius: 25px !important;
  margin: 0 0.25rem !important;
}

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

/* ========================================
   CARDS
   ======================================== */
.card {
  border: none !important;
  border-radius: 15px !important;
  transition: all var(--transition-speed) ease !important;
  overflow: hidden;
  background: var(--frost-white) !important;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(46, 52, 64, 0.15) !important;
}

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

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

.card-text {
  color: var(--text-dark) !important;
  line-height: 1.8;
}

.card-header {
  background-color: var(--light-bg) !important;
  border-bottom: 2px solid var(--secondary-color) !important;
  padding: 1.25rem !important;
  font-weight: 600 !important;
}

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

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

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

/* ========================================
   PORTFOLIO STYLES
   ======================================== */
.portfolio-item {
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.portfolio-item.show {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px !important;
  height: 350px;
  cursor: pointer;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(46, 52, 64, 0.95) 0%, rgba(46, 52, 64, 0.7) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: var(--frost-white) !important;
}

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

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

.portfolio-overlay h4,
.portfolio-overlay p,
.portfolio-overlay .badge {
  color: var(--frost-white) !important;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay h4,
.portfolio-card:hover .portfolio-overlay p,
.portfolio-card:hover .portfolio-overlay .badge {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-card:hover .portfolio-overlay h4 {
  transition-delay: 0.1s;
}

.portfolio-card:hover .portfolio-overlay p {
  transition-delay: 0.2s;
}

.portfolio-card:hover .portfolio-overlay .badge {
  transition-delay: 0.3s;
}

/* ========================================
   BADGE STYLES
   ======================================== */
.badge {
  background-color: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
}

/* ========================================
   FORM STYLES
   ======================================== */
.form-label {
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  margin-bottom: 0.5rem !important;
}

.form-control,
.form-select {
  border: 2px solid var(--ice-blue) !important;
  border-radius: 10px !important;
  padding: 0.75rem 1rem !important;
  transition: all var(--transition-speed) ease !important;
  background-color: var(--frost-white) !important;
  color: var(--primary-color) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(136, 192, 208, 0.25) !important;
  background-color: var(--frost-white) !important;
}

.form-control::placeholder {
  color: #A0A8B5 !important;
}

.form-check-input {
  border: 2px solid var(--ice-blue) !important;
  width: 1.5em !important;
  height: 1.5em !important;
}

.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.25rem rgba(136, 192, 208, 0.25) !important;
}

.form-check-label {
  color: var(--primary-color) !important;
  margin-left: 0.5rem;
}

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

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

/* ========================================
   ICONS
   ======================================== */
.bi {
  color: var(--secondary-color) !important;
  font-size: 1.5rem;
}

.bi-facebook,
.bi-instagram,
.bi-linkedin,
.bi-pinterest {
  font-size: 1.5rem;
  transition: all var(--transition-speed) ease;
}

.bi-facebook:hover { color: #1877F2 !important; }
.bi-instagram:hover { color: #E4405F !important; }
.bi-linkedin:hover { color: #0A66C2 !important; }
.bi-pinterest:hover { color: #E60023 !important; }

/* ========================================
   SECTIONS
   ======================================== */
section {
  padding: 100px 0;
  position: relative;
}

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

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

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

.bg-dark h1, .bg-dark h2, .bg-dark h3,
.bg-dark h4, .bg-dark h5, .bg-dark h6,
.bg-dark .display-2, .bg-dark .display-3,
.bg-dark .display-4, .bg-dark .display-5 {
  color: var(--frost-white) !important;
}

.bg-dark p, .bg-dark .lead {
  color: var(--ice-blue) !important;
}

/* ========================================
   IMAGE STYLES
   ======================================== */
.img-fluid {
  border-radius: 15px;
  transition: transform 0.4s ease;
}

.img-fluid:hover {
  transform: scale(1.02);
}

.object-fit-cover {
  object-fit: cover !important;
}

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

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

/* ========================================
   RATIO & MEDIA
   ======================================== */
.ratio {
  position: relative;
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
}

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

/* ========================================
   ACCORDION
   ======================================== */
.accordion-item {
  border: none !important;
  margin-bottom: 1rem;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: 0 2px 10px var(--shadow-color);
}

.accordion-header {
  margin-bottom: 0;
}

.accordion-button {
  background-color: var(--frost-white) !important;
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  padding: 1.25rem 1.5rem !important;
  border: none !important;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background-color: var(--secondary-color) !important;
  color: var(--frost-white) !important;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(136, 192, 208, 0.25) !important;
}

.accordion-button::after {
  filter: brightness(0) saturate(100%) invert(20%) sepia(12%) saturate(1070%) hue-rotate(185deg) brightness(95%) contrast(89%);
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) saturate(100%) invert(100%);
}

.accordion-body {
  background-color: var(--frost-white) !important;
  color: var(--text-dark) !important;
  padding: 1.5rem !important;
}

.accordion-collapse {
  border: none !important;
}

/* ========================================
   ALERT
   ======================================== */
.alert {
  border-radius: 10px !important;
  border: none !important;
  padding: 1.25rem !important;
  background-color: var(--secondary-color) !important;
  color: var(--primary-color) !important;
}

/* ========================================
   BORDERS
   ======================================== */
.border-bottom {
  border-bottom: 1px solid var(--ice-blue) !important;
}

.border-start {
  border-left: 4px solid var(--secondary-color) !important;
}

.border-4 {
  border-width: 4px !important;
}

/* ========================================
   SPACING UTILITIES
   ======================================== */
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.py-4 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
.py-3 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-2 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }
.px-4 { padding-left: 2.5rem !important; padding-right: 2.5rem !important; }
.px-3 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.p-5 { padding: 3rem !important; }
.p-4 { padding: 2.5rem !important; }
.p-3 { padding: 1.5rem !important; }

.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
.my-4 { margin-top: 2.5rem !important; margin-bottom: 2.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mt-4 { margin-top: 2.5rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mb-4 { margin-bottom: 2.5rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.ms-auto { margin-left: auto !important; }
.ms-4 { margin-left: 2.5rem !important; }
.me-2 { margin-right: 1rem !important; }
.me-3 { margin-right: 1.5rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.m-3 { margin: 1.5rem !important; }

.pt-5 { padding-top: 3rem !important; }
.pb-5 { padding-bottom: 3rem !important; }
.pb-4 { padding-bottom: 2.5rem !important; }
.pb-3 { padding-bottom: 1.5rem !important; }
.ps-4 { padding-left: 2.5rem !important; }

/* ========================================
   LIST STYLES
   ======================================== */
.list-unstyled {
  list-style: none !important;
  padding-left: 0 !important;
}

.list-unstyled li {
  padding: 0.5rem 0;
}

/* ========================================
   LINK STYLES
   ======================================== */
a {
  color: var(--secondary-color) !important;
  text-decoration: none !important;
  transition: all var(--transition-speed) ease;
}

a:hover {
  color: var(--accent-color) !important;
  text-decoration: underline !important;
}

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

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

/* ========================================
   UTILITIES
   ======================================== */
.overflow-hidden {
  overflow: hidden !important;
}

.position-relative {
  position: relative !important;
}

.position-absolute {
  position: absolute !important;
}

.sticky-lg-top {
  position: sticky !important;
  top: 0 !important;
  z-index: 100;
}

.top-0 { top: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.start-0 { left: 0 !important; }
.end-0 { right: 0 !important; }
.start-50 { left: 50% !important; }
.top-50 { top: 50% !important; }

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

.translate-middle-x {
  transform: translateX(-50%) !important;
}

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

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

.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !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-end { justify-content: flex-end !important; }

.gap-3 { gap: 1.5rem !important; }
.g-0 { gap: 0 !important; }
.g-2 > * { padding: 0.5rem !important; }
.g-3 > * { padding: 1rem !important; }
.g-4 > * { padding: 1.5rem !important; }
.g-5 > * { padding: 2rem !important; }

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

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

.fs-1 { font-size: 2.5rem !important; }
.fs-3 { font-size: 1.75rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }

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

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

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

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

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

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

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

.animate-slide-bottom {
  animation: slideInFromBottom 0.8s ease-out;
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

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

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .sticky-lg-top {
    position: sticky !important;
    top: 80px !important;
  }
  
  .order-lg-1 { order: 1 !important; }
  .order-lg-2 { order: 2 !important; }
  
  .col-lg-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-lg-3 { flex: 0 0 auto; width: 25%; }
  .col-lg-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-lg-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-lg-6 { flex: 0 0 auto; width: 50%; }
  .col-lg-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-lg-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-lg-10 { flex: 0 0 auto; width: 83.333333%; }
  
  .offset-lg-1 { margin-left: 8.333333%; }
  .offset-lg-2 { margin-left: 16.666667%; }
  
  .text-lg-start { text-align: left !important; }
  .text-lg-end { text-align: right !important; }
  
  .ps-lg-5 { padding-left: 3rem !important; }
  .pe-lg-4 { padding-right: 2.5rem !important; }
  
  .mb-lg-0 { margin-bottom: 0 !important; }
  .mt-lg-0 { margin-top: 0 !important; }
  
  .flex-lg-row-reverse { flex-direction: row-reverse !important; }
  
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }
  
  .navbar-expand-lg .navbar-toggler {
    display: none;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .col-md-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-md-6 { flex: 0 0 auto; width: 50%; }
  
  .text-md-start { text-align: left !important; }
  .text-md-end { text-align: right !important; }
  
  .mb-md-0 { margin-bottom: 0 !important; }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 991px) {
  .display-2 { 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: 60px 0; }
  
  .hero-section { min-height: 80vh; }
  
  .btn-lg { padding: 0.875rem 2rem !important; }
  
  .navbar-collapse {
    background: var(--primary-color);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
  .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; }
  
  .btn { padding: 0.625rem 1.5rem !important; }
  .btn-lg { padding: 0.75rem 1.75rem !important; }
  
  .px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
  .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  
  .col-12 { flex: 0 0 auto; width: 100%; }
  .col-6 { flex: 0 0 auto; width: 50%; }
  .col-4 { flex: 0 0 auto; width: 33.333333%; }
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
  width: 12px;
}

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

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

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

/* ========================================
   LOADING ANIMATION
   ======================================== */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid var(--ice-blue);
  border-top: 5px solid var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 5px 20px rgba(136, 192, 208, 0.4);
  transition: all var(--transition-speed) ease;
}

#backToTop:hover {
  background: var(--accent-color) !important;
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(136, 192, 208, 0.5);
}

#backToTop.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

/* ========================================
   ARCTIC FROST THEME SPECIFIC
   ======================================== */
.frost-effect {
  position: relative;
  overflow: hidden;
}

.frost-effect::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(136, 192, 208, 0.1) 0%, transparent 70%);
  animation: frostMove 20s linear infinite;
}

@keyframes frostMove {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.ice-shine {
  position: relative;
  overflow: hidden;
}

.ice-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .navbar,
  .btn,
  #backToTop,
  .loading {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .card {
    break-inside: avoid;
  }
}