/* Arctic Crystal Blue Architecture Studio Theme */

:root {
  --primary-color: #2C5F7A;
  --secondary-color: #B8D4E3;
  --accent-color: #1A4459;
  --light-bg: #F0F7FB;
  --dark-text: #1a1a1a;
  --light-text: #ffffff;
  --gradient-1: linear-gradient(135deg, #2C5F7A 0%, #1A4459 100%);
  --gradient-2: linear-gradient(135deg, #B8D4E3 0%, #E8F4F8 100%);
  --shadow-sm: 0 2px 8px rgba(44, 95, 122, 0.1);
  --shadow-md: 0 4px 16px rgba(44, 95, 122, 0.15);
  --shadow-lg: 0 8px 32px rgba(44, 95, 122, 0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

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

.display-3 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.display-4 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.display-5 {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
}

.display-6 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--dark-text);
  line-height: 1.8;
}

/* Navbar Styles */
.navbar {
  background: rgba(44, 95, 122, 0.95) !important;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  z-index: 1030;
  box-shadow: var(--shadow-md);
}

.navbar.fixed-top {
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

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

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
  border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--light-text) !important;
  background-color: rgba(184, 212, 227, 0.2) !important;
  transform: translateY(-2px);
}

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

.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.25rem rgba(184, 212, 227, 0.5) !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, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Buttons */
.btn {
  font-weight: 600;
  border-radius: 12px;
  transition: var(--transition);
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
}

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

.btn-primary {
  background: var(--gradient-1) !important;
  border: none !important;
  color: var(--light-text) !important;
  box-shadow: var(--shadow-md);
}

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

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

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

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

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

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

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

/* Hero Section */
.hero-about {
  min-height: 100vh;
  background: var(--gradient-1);
  position: relative;
  overflow: hidden;
}

.hero-about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  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='%23B8D4E3' fill-opacity='0.1'%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 30s linear infinite;
}

@keyframes patternMove {
  from { transform: translate(0, 0); }
  to { transform: translate(60px, 60px); }
}

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

/* Cards */
.card {
  border-radius: 16px;
  transition: var(--transition);
  overflow: hidden;
  background: white;
}

.card.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.card.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg) !important;
}

.card-body {
  padding: 2rem;
}

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

.card-img {
  transition: var(--transition);
}

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

.card-img-overlay {
  background: linear-gradient(0deg, rgba(44, 95, 122, 0.9) 0%, transparent 100%);
  transition: var(--transition);
}

.card:hover .card-img-overlay {
  background: linear-gradient(0deg, rgba(44, 95, 122, 0.95) 0%, rgba(44, 95, 122, 0.3) 100%);
}

.overlay-gradient {
  background: linear-gradient(180deg, transparent 0%, rgba(44, 95, 122, 0.9) 100%);
}

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

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

.portfolio-item .card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Story Section */
.story-section {
  background: linear-gradient(to bottom, var(--light-bg) 0%, white 100%);
  padding: 5rem 0;
}

.story-card {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.story-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

/* Hexagon Grid */
.hexagon-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 3rem 0;
}

.hex-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hexagon {
  width: 180px;
  height: 180px;
  background: var(--gradient-1);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.hexagon:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-lg);
}

.hexagon-overlay {
  position: absolute;
  inset: 4px;
  background: rgba(255, 255, 255, 0.95);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1rem;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
}

.value-item {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 2px solid transparent;
}

.value-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-color);
}

.value-item .bi {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 3rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: var(--gradient-1);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}

.timeline-dot {
  width: 24px;
  height: 24px;
  background: var(--primary-color);
  border: 4px solid var(--secondary-color);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 0 8px rgba(184, 212, 227, 0.2);
  animation: pulse 2s infinite;
}

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

/* Form Styles */
.form-control,
.form-select {
  border: 2px solid var(--secondary-color);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: var(--transition);
  font-size: 1rem;
  background-color: white;
  color: var(--dark-text) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(44, 95, 122, 0.15) !important;
  outline: none;
}

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

.form-check-input {
  border: 2px solid var(--secondary-color);
  width: 1.25rem;
  height: 1.25rem;
}

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

.form-check-label {
  color: var(--dark-text);
  margin-left: 0.5rem;
}

/* Badges */
.badge {
  background-color: var(--primary-color) !important;
  color: var(--light-text) !important;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
}

/* Icons */
.bi {
  color: var(--primary-color);
}

.bi-gem,
.bi-gem-fill {
  color: var(--secondary-color) !important;
}

/* Nav Tabs */
.nav-tabs {
  border-bottom: 2px solid var(--secondary-color);
}

.nav-tabs .nav-link {
  border: none;
  color: var(--primary-color) !important;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 10px 10px 0 0;
  transition: var(--transition);
}

.nav-tabs .nav-link:hover {
  background-color: rgba(184, 212, 227, 0.2);
  border: none;
}

.nav-tabs .nav-link.active {
  background-color: var(--primary-color) !important;
  color: var(--light-text) !important;
  border: none;
}

.tab-content {
  padding: 2rem;
  background: white;
  border-radius: 0 0 16px 16px;
  box-shadow: var(--shadow-sm);
}

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

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

/* Filter Buttons */
.filter-btn {
  background: white;
  color: var(--primary-color) !important;
  border: 2px solid var(--secondary-color) !important;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color) !important;
  color: var(--light-text) !important;
  border-color: var(--primary-color) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

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

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

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

/* Shadows */
.shadow {
  box-shadow: var(--shadow-md) !important;
}

.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

/* Opacity */
.opacity-75 {
  opacity: 0.75 !important;
}

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

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

/* Rounded */
.rounded {
  border-radius: 12px !important;
}

/* Image Utilities */
.img-fluid {
  max-width: 100%;
  height: auto;
}

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

/* Position Utilities */
.position-relative {
  position: relative !important;
}

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

.sticky-top {
  position: sticky !important;
  top: 80px !important;
  z-index: 1020;
}

.sticky-lg-top {
  position: sticky !important;
  top: 100px !important;
}

/* Height Utilities */
.min-vh-40 {
  min-height: 40vh;
}

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

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

a:hover {
  color: var(--accent-color);
}

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

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

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

.list-unstyled a {
  color: var(--dark-text);
  transition: var(--transition);
}

.list-unstyled a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

/* Footer Styles */
footer {
  background: var(--gradient-1);
  color: var(--light-text);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  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='%23B8D4E3' 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.5;
}

footer h6,
footer h5,
footer h4 {
  color: var(--light-text) !important;
}

footer p,
footer a,
footer li {
  color: rgba(255, 255, 255, 0.85) !important;
}

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

/* Dividers */
hr {
  border-color: var(--secondary-color);
  opacity: 0.3;
}

/* Animations */
@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

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

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

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

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

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

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

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(44, 95, 122, 0.98);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
    box-shadow: var(--shadow-lg);
  }
  
  .nav-link {
    margin: 0.5rem 0;
  }
  
  .display-3 {
    font-size: 2.5rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .hero-about {
    min-height: auto;
    padding: 100px 0 50px;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-dot {
    left: 20px;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .hexagon {
    width: 150px;
    height: 150px;
  }
  
  .sticky-top,
  .sticky-lg-top {
    position: relative !important;
    top: 0 !important;
  }
}

@media (max-width: 767.98px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .story-card {
    padding: 2rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .hexagon {
    width: 120px;
    height: 120px;
  }
  
  .value-item {
    padding: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .display-3 {
    font-size: 2rem;
  }
  
  .display-4 {
    font-size: 1.75rem;
  }
  
  .display-5 {
    font-size: 1.5rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .filter-btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }
}

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

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

/* Focus Styles */
*:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Glass Morphism Effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Gradient Text */
.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}