/* Nordic Cosmos Architecture Studio Theme */

/* Root Variables */
:root {
  --primary-color: #2E3440;
  --secondary-color: #88C0D0;
  --accent-light: #D8DEE9;
  --accent-dark: #4C566A;
  --text-light: #ECEFF4;
  --text-dark: #2E3440;
  --aurora-green: #A3BE8C;
  --aurora-purple: #B48EAD;
  --aurora-orange: #D08770;
  --cosmic-gradient: linear-gradient(135deg, #2E3440 0%, #3B4252 50%, #434C5E 100%);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  background-color: #ECEFF4;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Typography */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--accent-dark);
}

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

/* Navbar Styles */
.navbar {
  background: rgba(46, 52, 64, 0.95) !important;
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.sticky-top {
  border-bottom: 1px solid rgba(136, 192, 208, 0.2);
}

.navbar-dark .navbar-brand {
  color: var(--text-light) !important;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

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

.navbar-dark .navbar-nav .nav-link {
  color: var(--accent-light) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--secondary-color) !important;
  background: rgba(136, 192, 208, 0.1);
}

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

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(136, 192, 208, 0.3) !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 {
  background: var(--cosmic-gradient);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.stars-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s infinite;
  opacity: 0;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.constellation-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  z-index: 1;
}

.constellation-dots {
  position: absolute;
  width: 100%;
  height: 100%;
}

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

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

.hero-section .lead {
  color: var(--accent-light) !important;
  animation: fadeInUp 1.2s ease-out;
}

.hero-section .fs-5 {
  color: var(--accent-light) !important;
}

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

/* Buttons */
.btn {
  border-radius: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

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

.btn:hover::before {
  width: 300px;
  height: 300px;
}

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

.btn-sm {
  padding: 0.5rem 1rem !important;
  font-size: 0.875rem;
}

.btn:first-of-type,
.hero-section .btn:first-child {
  background: var(--secondary-color) !important;
  color: var(--text-dark) !important;
  border-color: var(--secondary-color) !important;
}

.btn:first-of-type:hover,
.hero-section .btn:first-child:hover {
  background: #6FA8B8 !important;
  border-color: #6FA8B8 !important;
  color: var(--text-dark) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(136, 192, 208, 0.4);
}

.btn:nth-of-type(2),
.hero-section .btn:nth-child(2) {
  background: transparent !important;
  color: var(--text-light) !important;
  border-color: var(--text-light) !important;
}

.btn:nth-of-type(2):hover,
.hero-section .btn:nth-child(2):hover {
  background: var(--text-light) !important;
  color: var(--text-dark) !important;
  border-color: var(--text-light) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(236, 239, 244, 0.3);
}

.view-project {
  background: var(--secondary-color) !important;
  color: var(--text-dark) !important;
  border-color: var(--secondary-color) !important;
}

.view-project:hover {
  background: #6FA8B8 !important;
  color: var(--text-dark) !important;
  border-color: #6FA8B8 !important;
}

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

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

.pt-5 {
  padding-top: 5rem !important;
}

.pb-4 {
  padding-bottom: 3rem !important;
}

.pb-3 {
  padding-bottom: 2rem !important;
}

/* Parallax Section */
.parallax-section {
  background: var(--cosmic-gradient);
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.parallax-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(163, 190, 140, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(180, 142, 173, 0.1) 0%, transparent 50%);
  z-index: 1;
}

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

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

.parallax-section .text-white-50 {
  color: rgba(236, 239, 244, 0.7) !important;
}

/* Cards and Content Boxes */
.col-md-6, .col-lg-4, .col-lg-6, .col-lg-7, .col-lg-5 {
  margin-bottom: 2rem;
}

.p-4 {
  padding: 2rem !important;
}

.p-3 {
  padding: 1.5rem !important;
}

.p-md-5 {
  padding: 3rem !important;
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(46, 52, 64, 0.175) !important;
}

.rounded {
  border-radius: 0.5rem !important;
}

.rounded-3 {
  border-radius: 0.75rem !important;
}

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

/* Images */
.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  transition: transform 0.3s ease;
}

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

/* Portfolio Styles */
.filter-btn {
  background: transparent !important;
  color: var(--text-dark) !important;
  border: 2px solid var(--accent-dark) !important;
  margin: 0.25rem;
  padding: 0.5rem 1.5rem !important;
}

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

.portfolio-item {
  margin-bottom: 2rem;
  opacity: 1;
  transition: all 0.5s ease;
}

.portfolio-item.hidden {
  opacity: 0;
  transform: scale(0.8);
  position: absolute;
  pointer-events: none;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  height: 350px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(46, 52, 64, 0.3);
}

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

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(46, 52, 64, 0.95) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.portfolio-overlay h4,
.portfolio-overlay .h4 {
  color: var(--text-light) !important;
  margin-bottom: 0.5rem;
}

.portfolio-overlay p {
  color: var(--accent-light) !important;
}

.portfolio-overlay .btn {
  background: var(--secondary-color) !important;
  color: var(--text-dark) !important;
  border: none !important;
}

/* Services Cosmic Grid */
.services-cosmic-grid {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
}

.service-orbit {
  position: absolute;
  width: 200px;
  height: 200px;
  animation: float 6s ease-in-out infinite;
}

.service-orbit-1 {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.service-orbit-2 {
  top: 10%;
  right: 10%;
  animation-delay: 1s;
}

.service-orbit-3 {
  top: 40%;
  left: 5%;
  animation-delay: 2s;
}

.service-orbit-4 {
  top: 40%;
  right: 5%;
  animation-delay: 3s;
}

.service-orbit-5 {
  bottom: 10%;
  left: 15%;
  animation-delay: 4s;
}

.service-orbit-6 {
  bottom: 10%;
  right: 15%;
  animation-delay: 5s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.service-cosmic-card {
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}

.service-cosmic-card:hover {
  transform: scale(1.05);
}

.service-card-front,
.service-card-back {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.6s ease;
}

.service-card-front {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(46, 52, 64, 0.2);
  border: 2px solid var(--secondary-color);
}

.service-card-back {
  background: var(--cosmic-gradient);
  color: var(--text-light) !important;
  transform: rotateY(180deg);
}

.service-cosmic-card.flipped .service-card-front {
  transform: rotateY(180deg);
}

.service-cosmic-card.flipped .service-card-back {
  transform: rotateY(0deg);
}

.service-icon-cosmic {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.service-card-back .service-icon-cosmic {
  color: var(--text-light);
}

.service-expand-hint {
  font-size: 1.5rem;
  color: var(--accent-dark);
  margin-top: 0.5rem;
  animation: bounce 2s infinite;
}

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

/* Process Steps */
.bi-1-circle-fill,
.bi-2-circle-fill,
.bi-3-circle-fill,
.bi-4-circle-fill,
.bi-5-circle-fill {
  font-size: 3rem;
  color: var(--secondary-color);
}

/* Contact Form */
.contact-form {
  background: white;
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(46, 52, 64, 0.1);
}

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

.form-control,
.form-select {
  border: 2px solid var(--accent-light);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  background: #FAFAFA;
}

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

.form-text {
  color: var(--accent-dark);
  font-size: 0.875rem;
}

.form-check-input {
  border: 2px solid var(--accent-dark);
}

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

.form-check-label {
  color: var(--text-dark);
}

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

.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-pin-map-fill {
  color: var(--secondary-color);
  font-size: 1.5rem;
}

.bi-send,
.bi-arrow-right {
  font-size: 1rem;
}

.bi-instagram,
.bi-linkedin,
.bi-facebook {
  font-size: 1.5rem;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.bi-instagram:hover {
  color: #E4405F;
}

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

.bi-facebook:hover {
  color: #1877F2;
}

/* Footer */
footer {
  background: var(--primary-color);
  color: var(--accent-light);
  padding: 3rem 0 1rem;
}

footer .h4,
footer h4 {
  color: var(--text-light) !important;
  margin-bottom: 1.5rem;
}

footer a {
  color: var(--accent-light) !important;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--secondary-color) !important;
}

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

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

/* Breadcrumb */
.breadcrumb {
  background: transparent;
  padding: 1rem 0;
  margin: 0;
}

.breadcrumb-item {
  color: var(--accent-dark);
}

.breadcrumb-item.active {
  color: var(--text-dark);
  font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--accent-dark);
}

/* Modal */
.modal-content {
  border: none;
  border-radius: 1rem;
  background: var(--primary-color);
}

.modal-header {
  border-bottom: 1px solid rgba(136, 192, 208, 0.2);
  padding: 1.5rem;
}

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

.modal-body {
  padding: 2rem;
  color: var(--accent-light);
}

.btn-close,
.btn-close-white {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.btn-close:hover,
.btn-close-white:hover {
  opacity: 1;
}

/* Utility Classes */
.position-relative {
  position: relative !important;
}

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

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

.top-0 {
  top: 0 !important;
}

.start-0 {
  left: 0 !important;
}

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

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

.min-vh-100 {
  min-height: 100vh !important;
}

.overflow-hidden {
  overflow: hidden !important;
}

.d-flex {
  display: flex !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;
}

.align-self-start {
  align-self: flex-start !important;
}

.justify-content-center {
  justify-content: center !important;
}

.justify-content-end {
  justify-content: flex-end !important;
}

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

.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

.ms-auto {
  margin-left: auto !important;
}

.me-2 {
  margin-right: 0.5rem !important;
}

.me-3 {
  margin-right: 1rem !important;
}

.ms-4 {
  margin-left: 1.5rem !important;
}

.mt-1 {
  margin-top: 0.25rem !important;
}

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

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

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

.mt-lg-0 {
  margin-top: 0 !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: 0.25rem !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

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

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

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

.mb-lg-0 {
  margin-bottom: 0 !important;
}

.mb-md-0 {
  margin-bottom: 0 !important;
}

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

.m-3 {
  margin: 1rem !important;
}

.gap-2 {
  gap: 0.5rem !important;
}

.gap-3 {
  gap: 1rem !important;
}

.gap-4 {
  gap: 1.5rem !important;
}

.g-0 {
  --bs-gutter-x: 0 !important;
  --bs-gutter-y: 0 !important;
}

.g-3 {
  --bs-gutter-x: 1rem !important;
  --bs-gutter-y: 1rem !important;
}

.g-4 {
  --bs-gutter-x: 1.5rem !important;
  --bs-gutter-y: 1.5rem !important;
}

.ps-lg-5 {
  padding-left: 3rem !important;
}

.pe-lg-5 {
  padding-right: 3rem !important;
}

.px-5 {
  padding-left: 3rem !important;
  padding-right: 3rem !important;
}

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

.pt-3 {
  padding-top: 1rem !important;
}

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

/* Responsive Typography */
@media (max-width: 991.98px) {
  .display-1 {
    font-size: 3.5rem;
  }
  
  .display-2 {
    font-size: 3rem;
  }
  
  .display-3 {
    font-size: 2.5rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .display-5 {
    font-size: 1.75rem;
  }
  
  .display-6 {
    font-size: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .display-1 {
    font-size: 2.5rem;
  }
  
  .display-2 {
    font-size: 2.25rem;
  }
  
  .display-3 {
    font-size: 2rem;
  }
  
  .display-4 {
    font-size: 1.75rem;
  }
  
  .display-5 {
    font-size: 1.5rem;
  }
  
  .display-6 {
    font-size: 1.25rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .service-orbit {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin: 1rem auto;
  }
  
  .services-cosmic-grid {
    flex-direction: column;
    min-height: auto;
  }
}

/* Large Desktop Responsive */
@media (min-width: 992px) {
  .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-9 {
    flex: 0 0 auto;
    width: 75%;
  }
  
  .col-lg-10 {
    flex: 0 0 auto;
    width: 83.333333%;
  }
  
  .offset-lg-2 {
    margin-left: 16.666667%;
  }
  
  .order-lg-1 {
    order: 1 !important;
  }
  
  .order-lg-2 {
    order: 2 !important;
  }
  
  .mt-lg-0 {
    margin-top: 0 !important;
  }
  
  .mb-lg-0 {
    margin-bottom: 0 !important;
  }
  
  .ps-lg-5 {
    padding-left: 3rem !important;
  }
  
  .pe-lg-5 {
    padding-right: 3rem !important;
  }
}

/* Medium Desktop Responsive */
@media (min-width: 768px) {
  .col-md-4 {
    flex: 0 0 auto;
    width: 33.333333%;
  }
  
  .col-md-6 {
    flex: 0 0 auto;
    width: 50%;
  }
  
  .col-md-8 {
    flex: 0 0 auto;
    width: 66.666667%;
  }
  
  .mb-md-0 {
    margin-bottom: 0 !important;
  }
  
  .p-md-5 {
    padding: 3rem !important;
  }
}

/* Small Devices Responsive */
@media (min-width: 576px) {
  .col-sm-6 {
    flex: 0 0 auto;
    width: 50%;
  }
}

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

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

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

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

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

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