/* Digital Nomad Coliving Space - Main Styles */

/* ===== CSS VARIABLES ===== */
:root {
  /* Primary Color Palette (5 colors + shades) */
  --primary-blue: #6B9EF7;
  --primary-blue-light: #A5C4F9;
  --primary-blue-dark: #4A7FE7;
  
  --secondary-coral: #FF8A80;
  --secondary-coral-light: #FFB3B3;
  --secondary-coral-dark: #FF5722;
  
  --accent-green: #81C784;
  --accent-green-light: #A8D8AB;
  --accent-green-dark: #66BB6A;
  
  --neutral-purple: #B39DDB;
  --neutral-purple-light: #D1C4E9;
  --neutral-purple-dark: #9575CD;
  
  --support-yellow: #FFD54F;
  --support-yellow-light: #FFE082;
  --support-yellow-dark: #FFB300;
  
  /* Grayscale */
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --medium-gray: #6C757D;
  --dark-gray: #343A40;
  --black: #212529;
  
  /* Typography */
  --font-family-base: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-size-base: 1rem;
  --font-size-sm: 0.875rem;
  --font-size-lg: 1.125rem;
  --line-height-base: 1.6;
  
  /* Spacing */
  --section-padding: 5rem 0;
  --section-padding-sm: 3rem 0;
  
  /* Shadows */
  --shadow-soft: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  --shadow-strong: 0 1rem 2rem rgba(0, 0, 0, 0.15);
  
  /* Border Radius */
  --border-radius-sm: 0.375rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;
}

/* ===== REDUCED MOTION SUPPORT ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== BASE STYLES ===== */
body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--dark-gray);
  background-color: var(--white);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.25rem;
  color: var(--primary-blue-dark);
}

h2 {
  font-size: 1.875rem;
  color: var(--primary-blue);
}

h3 {
  font-size: 1.5rem;
  color: var(--neutral-purple-dark);
}

h4 {
  font-size: 1.25rem;
  color: var(--dark-gray);
}

h5, h6 {
  font-size: 1.125rem;
  color: var(--medium-gray);
}

p {
  font-size: var(--font-size-base);
  margin-bottom: 1rem;
  color: var(--medium-gray);
}

.lead {
  font-size: var(--font-size-lg);
  color: var(--dark-gray);
}

/* ===== HEADER & NAVIGATION ===== */
.navbar-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-blue-dark);
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--dark-gray);
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-blue);
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-blue-light) 0%, var(--neutral-purple-light) 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: var(--accent-green-light);
  border-radius: 50%;
  top: 10%;
  right: 10%;
  opacity: 0.3;
  z-index: 1;
}

.hero-section::after {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  background: var(--support-yellow-light);
  border-radius: 50%;
  bottom: 20%;
  left: 5%;
  opacity: 0.4;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
    padding-top: 100px;
}

/* ===== SECTIONS ===== */
.section {
  padding: var(--section-padding);
}

.section-sm {
  padding: var(--section-padding-sm);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  color: var(--medium-gray);
  text-align: center;
  margin-bottom: 2rem;
}

/* ===== CARDS ===== */
.card {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow-medium);
}

.card-header {
  background: linear-gradient(45deg, var(--primary-blue-light), var(--accent-green-light));
  border-bottom: none;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-blue-dark);
  margin-bottom: 1rem;
}

.card-text {
  color: var(--medium-gray);
  font-size: var(--font-size-sm);
}

/* ===== BUTTONS ===== */
.btn {
  font-weight: 500;
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-blue-dark);
  border-color: var(--primary-blue-dark);
  transform: translateY(-0.125rem);
}

.btn-secondary {
  background-color: var(--secondary-coral);
  border-color: var(--secondary-coral);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--secondary-coral-dark);
  border-color: var(--secondary-coral-dark);
  transform: translateY(-0.125rem);
}

.btn-outline-primary {
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.btn-outline-primary:hover {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  color: var(--white);
}

/* ===== SERVICE ITEMS ===== */
.service-item {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  height: 100%;
}

.service-item:hover {
  transform: translateY(-0.5rem);
  box-shadow: var(--shadow-medium);
}

.service-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  margin-bottom: 1.5rem;
}

.service-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-green-dark);
  margin-top: 1rem;
}

/* ===== TEAM MEMBERS ===== */
.team-member {
  text-align: center;
  padding: 1.5rem 1rem;
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 4px solid var(--accent-green-light);
}

.team-member-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-blue-dark);
  margin-bottom: 0.5rem;
}

.team-member-role {
  color: var(--medium-gray);
  font-size: var(--font-size-sm);
}

/* ===== FEATURES ===== */
.feature-item {
  text-align: center;
  padding: 2rem 1rem;
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
  transition: color 0.3s ease;
}

/* Color variety for feature icons */
.feature-item:nth-child(4n+1) .feature-icon {
  color: var(--primary-blue);
}

.feature-item:nth-child(4n+2) .feature-icon {
  color: var(--secondary-coral);
}

.feature-item:nth-child(4n+3) .feature-icon {
  color: var(--accent-green);
}

.feature-item:nth-child(4n+4) .feature-icon {
  color: var(--neutral-purple);
}

.feature-item:hover .feature-icon {
  color: var(--support-yellow-dark);
}

/* ===== CONTACT FORM ===== */
.contact-form {
  background: var(--light-gray);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft);
}

.form-control {
  border: 2px solid transparent;
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1rem;
  background-color: var(--white);
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.2rem rgba(107, 158, 247, 0.25);
}

.form-label {
  font-weight: 500;
  color: var(--dark-gray);
  margin-bottom: 0.5rem;
}

/* ===== FAQ SECTION ===== */
.faq-item {
  margin-bottom: 1.5rem;
}

.faq-question {
  background: var(--primary-blue-light);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
  font-weight: 600;
  margin-bottom: 0;
}

.faq-answer {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
  border: 1px solid var(--primary-blue-light);
  border-top: none;
  color: var(--medium-gray);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark-gray);
  color: var(--light-gray);
  padding: 3rem 0 2rem;
}

.footer h5 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer a {
  color: var(--light-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--primary-blue-light);
}

.footer-bottom {
  border-top: 1px solid var(--medium-gray);
  padding-top: 2rem;
  margin-top: 2rem;
  text-align: center;
}

/* ===== BREADCRUMBS ===== */
.breadcrumb {
  background: transparent;
  padding: 1rem 0;
}

.breadcrumb img {
  height: 24px;
  width: auto;
}

/* ===== GALLERY ===== */
.gallery-item {
  margin-bottom: 1.5rem;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

/* ===== PRICE PLAN ===== */
.price-item {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 2rem;
  text-align: center;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.price-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-green));
}

.price-item:nth-child(2)::before {
  background: linear-gradient(90deg, var(--secondary-coral), var(--support-yellow));
}

.price-item:nth-child(3)::before {
  background: linear-gradient(90deg, var(--neutral-purple), var(--primary-blue-light));
}

.price-item:hover {
  transform: translateY(-0.5rem);
  box-shadow: var(--shadow-medium);
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-green-dark);
  margin: 1rem 0;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.price-features li {
  padding: 0.5rem 0;
  color: var(--medium-gray);
  border-bottom: 1px solid var(--light-gray);
}

.price-features li:last-child {
  border-bottom: none;
}

/* ===== NAVBAR SCROLL BEHAVIOR ===== */
.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand {
  color: var(--primary-blue-dark);
}

.navbar.scrolled .nav-link {
  color: var(--dark-gray);
}

/* ===== IMAGE LOADING STATES ===== */
img.loading {
  opacity: 0.6;
  background-color: var(--light-gray);
  background-image: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  background-size: 200px 100%;
  background-repeat: no-repeat;
  animation: loading-shimmer 1.5s infinite;
}

img.loaded {
  opacity: 1;
  transition: opacity 0.3s ease;
}

img.error {
  opacity: 0.7;
  background-color: var(--light-gray);
  border: 2px dashed var(--medium-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--medium-gray);
  font-size: 0.875rem;
}

@keyframes loading-shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

/* ===== FORM VALIDATION IMPROVEMENTS ===== */
.form-control.is-invalid {
  border-color: var(--secondary-coral-dark);
  background-image: none;
}

.form-control.is-valid {
  border-color: var(--accent-green-dark);
  background-image: none;
}

.invalid-feedback {
  color: var(--secondary-coral-dark);
  font-size: var(--font-size-sm);
  margin-top: 0.25rem;
}

.valid-feedback {
  color: var(--accent-green-dark);
  font-size: var(--font-size-sm);
  margin-top: 0.25rem;
}

/* ===== UTILITY CLASSES ===== */
.text-primary-custom {
  color: var(--primary-blue);
}

.text-secondary-custom {
  color: var(--secondary-coral);
}

.text-accent-custom {
  color: var(--accent-green);
}

.text-neutral-custom {
  color: var(--neutral-purple);
}

.text-support-custom {
  color: var(--support-yellow-dark);
}

.bg-light-custom {
  background-color: var(--light-gray);
}

.bg-neutral-custom {
  background-color: var(--neutral-purple-light);
}

.bg-support-custom {
  background-color: var(--support-yellow-light);
}

.border-radius-custom {
  border-radius: var(--border-radius-lg);
}

.shadow-custom {
  box-shadow: var(--shadow-soft);
}

/* ===== SCREEN READER ONLY CLASS ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== IMPROVED ACCESSIBILITY ===== */
/* Better focus states for all interactive elements */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
[tabindex]:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(107, 158, 247, 0.2);
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-blue-dark);
  color: var(--white);
  padding: 8px;
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  z-index: 9999;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 6px;
}

/* High contrast mode improvements */
@media (prefers-contrast: high) {
  .btn {
    border-width: 2px;
    font-weight: 600;
  }
  
  .card {
    border: 2px solid var(--dark-gray);
  }
  
  .feature-icon {
    filter: contrast(1.5);
  }
}

/* Print-friendly styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .hero-section::before,
  .hero-section::after {
    display: none !important;
  }
  
  .hero-section {
    background: white !important;
    color: black !important;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
  
  .section {
    page-break-inside: avoid;
  }
} 


/* Team Social Links - Elegant Style */
.team-social-links {
    margin-top: 24px;
    padding: 18px 0;
}

.social-icons-grid {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 17px;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    color: white;
}

.facebook-link {
    background: rgba(24, 119, 242, 0.9);
}

.facebook-link:hover {
    background: rgba(24, 119, 242, 1);
    box-shadow: 0 8px 30px rgba(24, 119, 242, 0.4);
}

.linkedin-link {
    background: rgba(10, 102, 194, 0.9);
}

.linkedin-link:hover {
    background: rgba(10, 102, 194, 1);
    box-shadow: 0 8px 30px rgba(10, 102, 194, 0.4);
}

.x-link {
    background: rgba(0, 0, 0, 0.9);
    position: relative;
}

.x-link::after {
    content: '𝕏';
    font-weight: bold;
    font-size: 19px;
    z-index: 2;
    position: relative;
}

.x-link:hover {
    background: rgba(0, 0, 0, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 12px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
}
