/*
 * Fiction Co-Writing Platform - Main CSS
 * Bootstrap 5 based styling with high contrast pastel colors
 * 
 * PRODUCTION READY FEATURES:
 * - 5 Primary colors with light/dark shades
 * - Conservative font sizes and spacing
 * - Full responsive design (mobile-first)
 * - Accessibility features (focus states, high contrast support)
 * - Print optimizations
 * - Form validation with visual feedback
 * - Loading states and error handling
 * - Animation support with reduced-motion respect
 * - Cross-browser compatibility
 * 
 * FILE STRUCTURE:
 * 1. Color Palette & Variables
 * 2. Base Styles & Typography  
 * 3. Header & Navigation
 * 4. Hero Section
 * 5. Section Layouts
 * 6. Component Styles (About, Services, Team, etc.)
 * 7. Contact & Form Styles
 * 8. FAQ & Accordion
 * 9. Gallery & Blog
 * 10. Footer
 * 11. Utility Classes
 * 12. Animations & Effects
 * 13. Error Handling & Loading States
 * 14. Accessibility & Print Styles
 */

/* ========================================
   COLOR PALETTE - 5 PRIMARY COLORS
   ======================================== */
:root {
  /* Primary Colors */
  --color-primary: #6962ea;        /* Soft Blue */
  --color-secondary: #f478a3;      /* Rose Pink */
  --color-accent: #3ac1a8;         /* Turquoise */
  --color-success: #50d3d7;        /* Sky Blue */
  --color-warning: #fcae5f;        /* Orange */
  
  /* Light Shades */
  --color-primary-light: #e3e8ff;
  --color-secondary-light: #e6b9ca;
  --color-accent-light: #d8fef5;
  --color-success-light: #e6f7ff;
  --color-warning-light: #ebdece;
  
  /* Dark Shades */
  --color-primary-dark: #5454b9;
  --color-secondary-dark: #d14286;
  --color-accent-dark: #33b2b3;
  --color-success-dark: #378e94;
  --color-warning-dark: #d5a335;
  
  /* Neutral Colors */
  --color-dark: #394346;
  --color-light: #F8F9FA;
  --color-white: #FFFFFF;
  --color-text: #34393a;
  --color-text-light: #677579;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  --gradient-accent: linear-gradient(135deg, var(--color-accent), var(--color-success));
  --gradient-warm: linear-gradient(135deg, var(--color-warning), var(--color-secondary));
}

/* ========================================
   BASE STYLES
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px; /* Conservative base font size */
  scroll-behavior: smooth;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-light);
  overflow-x: hidden;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
}

h1 { font-size: 2.26rem; }
h2 { font-size: 1.93rem; }
h3 { font-size: 1.59rem; }
h4 { font-size: 1.37rem; }
h5 { font-size: 1.19rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
  font-size: 1rem;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(11px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 1.28rem; /* Conservative size */
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--color-text);
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--color-primary);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
  min-height: 100vh;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  background-color: white;
  padding: 24px;
  border-radius: 36px;
  z-index: 2;
  position: relative;
    padding-top: 100px;
}

.hero-title {
  font-size: 2.61rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.28rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.58rem;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

.hero-image {
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.1);
}

/* ========================================
   SECTION STYLES
   ======================================== */
.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.section-subtitle {
  text-align: center;
  font-size: 1.26rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.section-desc {
  text-align: center;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
  background: var(--color-white);
}

.feature-item {
  text-align: center;
  padding: 2rem;
  border-radius: 10px;
  background: var(--color-light);
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-9px);
}

.feature-icon {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.feature-name {
  font-size: 1.41rem;
  font-weight: 600;
  margin-bottom: 0.64rem;
  color: var(--color-text);
}

.feature-desc {
  color: var(--color-text-light);
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services-section {
  background: var(--color-primary-light);
}

.service-item {
  background: var(--color-white);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.1);
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1.67rem;
}

.service-name {
  font-size: 1.51rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.service-desc {
  color: var(--color-text-light);
  margin-bottom: 1.73rem;
}

.service-features {
  list-style: none;
  padding: 0;
  margin-bottom: 1.72rem;
}

.service-features li {
  padding: 0.3rem 0;
  color: var(--color-text-light);
}

.service-features li:before {
  content: "“";
  color: var(--color-success);
  margin-right: 0.5rem;
}

.service-price {
  font-size: 1.93rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* ========================================
   TEAM SECTION
   ======================================== */
.team-section {
  background: var(--color-white);
}

.team-member {
  text-align: center;
  padding: 1.5rem;
  background: var(--color-light);
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid var(--color-primary);
}

.team-name {
  font-size: 1.33rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.59rem;
}

.team-role {
  color: var(--color-primary);
  font-weight: 500;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
  background: var(--color-accent-light);
}

.contact-form {
  background: var(--color-white);
  border-radius: 15px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info {
  padding: 2rem;
  background: var(--color-white);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
}

.contact-info p {
  color: var(--color-text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.contact-info i {
  margin-right: 0.75rem;
  color: var(--color-primary);
  width: 20px;
}

.form-group {
  margin-bottom: 1.57rem;
}

.form-label {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.56rem;
}

.form-control {
  border: 7px solid #dadadb;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(113, 112, 232, 0.25);
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--color-dark);
  color: var(--color-light);
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.footer p, .footer li {
  color: #a6a8aa;
  margin-bottom: 0.68rem;
}

.footer a {
  color: #8d9baa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--color-primary);
}

.footer .text-center {
  border-top: 1px solid #3a4048;
  padding-top: 2rem;
  margin-top: 2rem;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-accent { color: var(--color-accent); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }

.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-accent { background-color: var(--color-accent); }
.bg-success { background-color: var(--color-success); }
.bg-warning { background-color: var(--color-warning); }

.bg-gradient-primary { background: var(--gradient-primary); }
.bg-gradient-accent { background: var(--gradient-accent); }
.bg-gradient-warm { background: var(--gradient-warm); }

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.79rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .contact-form {
    padding: 2rem;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   GALLERY SECTION
   ======================================== */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

/* ========================================
   BLOG SECTION
   ======================================== */
.blog-item {
  transition: transform 0.3s ease;
}

.blog-item:hover {
  transform: translateY(-5px);
}

.blog-item .card-img-top {
  height: 200px;
  object-fit: cover;
}

.blog-item .card-body {
  padding: 1.5rem;
}

.blog-item .card-title {
  font-size: 1.29rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.80rem;
}

.blog-item .card-text {
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

/* ========================================
   REVIEWS SECTION
   ======================================== */
.reviews-section .card {
  height: 100%;
  transition: transform 0.3s ease;
}

.reviews-section .card:hover {
  transform: translateY(-5px);
}

.reviews-section .card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.reviews-section .card-text {
  font-style: italic;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.reviews-section .card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0;
}

/* ========================================
   TIMELINE SECTION
   ======================================== */
.timeline-item {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 2rem;
}

.timeline-item:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--color-primary);
  border-radius: 2px;
}

.timeline-item:after {
  content: '';
  position: absolute;
  left: -5px;
  top: 0;
  width: 13px;
  height: 13px;
  background: var(--color-primary);
  border-radius: 50%;
}

/* ========================================
   CAREER SECTION
   ======================================== */
.career-section .card {
  height: 100%;
  transition: transform 0.3s ease;
}

.career-section .card:hover {
  transform: translateY(-5px);
}

.career-section .badge {
  font-size: 0.84rem;
  padding: 0.5rem 1rem;
}

/* ========================================
   BREADCRUMB STYLING
   ======================================== */
.breadcrumb-section {
  background: var(--color-light);
  padding: 1rem 0;
  margin-top: 76px;
}

.breadcrumb-icon {
  width: 24px;
  height: 24px;
  opacity: 0.7;
}

/* ========================================
   NAVBAR SCROLLED STATE
   ======================================== */
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ========================================
   MISCELLANEOUS
   ======================================== */
.img-fluid {
  max-width: 100%;
  height: auto;
}

.rounded {
  border-radius: 10px;
}

.shadow {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card {
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 15px;
  overflow: hidden;
}

.card-body {
  padding: 2rem;
}

.btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

/* ========================================
   ANIMATION CLASSES
   ======================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.fade-in-up {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   ERROR HANDLING & FORM STATES
   ======================================== */
.error-message {
  color: #d83128;
  font-size: 0.98rem;
  margin-top: 0.30rem;
  display: block;
}

.form-control.error {
  border-color: #cc2a35;
  box-shadow: 0 0 0 0.2rem rgba(230, 65, 58, 0.25);
}

.form-control.success {
  border-color: #31ab55;
  box-shadow: 0 0 0 0.2rem rgba(25, 154, 38, 0.25);
}

/* ========================================
   LOADING STATES
   ======================================== */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.btn-loading:after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: button-loading-spinner 1s ease infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes button-loading-spinner {
  from {
    transform: translate(-50%, -50%) rotate(0turn);
  }
  to {
    transform: translate(-50%, -50%) rotate(1turn);
  }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */
.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;
}

/* Focus styles for accessibility */
button:focus,
.btn:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card,
  .service-item,
  .feature-item,
  .team-member {
    border: 2px solid var(--color-text);
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}

/* ========================================
   PRINT OPTIMIZATIONS
   ======================================== */
@media print {
  .navbar,
  .footer,
  .btn,
  .contact-form,
  .lightbox {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }
  
  .section {
    page-break-inside: avoid;
    margin: 1cm 0;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    color: #000;
  }
} 


/* Team Social Links - Rounded Style */
.team-social-links {
    margin-top: 20px;
    padding: 15px 0;
}

.social-icons-grid {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: white;
}

.facebook-link {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
}

.facebook-link:hover {
    background: linear-gradient(135deg, #0d6efd, #1877f2);
}

.linkedin-link {
    background: linear-gradient(135deg, #0a66c2, #2196f3);
}

.linkedin-link:hover {
    background: linear-gradient(135deg, #084a8a, #0a66c2);
}

.x-link {
    background: linear-gradient(135deg, #000000, #333333);
    position: relative;
}

.x-link::after {
    content: '𝕏';
    font-weight: bold;
    font-size: 20px;
}

.x-link:hover {
    background: linear-gradient(135deg, #1a1a1a, #000000);
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 10px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}
