/* Main CSS for Micro-SaaS Time-Entry Reminders Template */

/* Color Variables - Pastel High-Contrast Palette */
:root {
  --primary-color: #4b46d9;
  --secondary-color: #8656f7;
  --accent-color: #00bad8;
  --success-color: #13cca9;
  --warning-color: #ff8601;
  
  --primary-light: #d7e2f7;
  --secondary-light: #e6d0f9;
  --accent-light: #d7fcff;
  --success-light: #d2ffe3;
  --warning-light: #fff7b6;
  
  --primary-dark: #3231c4;
  --secondary-dark: #9e54ff;
  --accent-dark: #00689f;
  --success-dark: #01a36c;
  --warning-dark: #c64c00;
  
  --text-primary: #262e43;
  --text-secondary: #8d8f99;
  --text-light: #b0b2b3;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-light: #e1e4ed;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Отключение анимаций на мобильных устройствах с исключениями для Bootstrap */
@media (max-width: 768px) {
  /* Отключаем анимации для всех элементов, КРОМЕ Bootstrap компонентов */
  *:not(.navbar-collapse):not(.collapse):not(.collapsing):not(.navbar-toggler):not(.dropdown-menu):not(.dropdown):not(.modal):not(.modal-backdrop):not(.carousel):not(.carousel-item):not(.fade):not(.show):not(.btn) {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    animation-fill-mode: forwards !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    transition-property: none !important;
    transform: none !important;
  }
  
  /* Отключаем hover эффекты на мобильных, но не для navbar и bootstrap элементов */
  *:not(.navbar-collapse):not(.collapse):not(.collapsing):not(.navbar-toggler):not(.dropdown-menu):not(.dropdown):not(.btn):hover {
    transform: none !important;
    transition: none !important;
  }
  
  /* Обеспечиваем работу Bootstrap navbar collapse - важно! */
  .navbar-collapse {
    transition: height 0.35s ease !important;
  }
  
  .navbar-collapse.collapsing {
    transition: height 0.35s ease !important;
  }
  
  /* Сохраняем работу Bootstrap кнопок */
  .navbar-toggler {
    transition: all 0.15s ease-in-out !important;
  }
  
  /* Отключаем CSS переменные анимаций */
  :root {
    --animation-duration: 0s !important;
    --transition-duration: 0s !important;
  }
}

/* Conservative Typography */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-white);
}

/* Conservative font sizes - avoid large sizes */
.navbar-brand {
  font-size: 1.14rem;
  font-weight: 600;
  color: var(--primary-color);
}

h1 {
  font-size: 2.38rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.94rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.98rem;
}

h3 {
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.64rem;
}

h4 {
  font-size: 1.26rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.66rem;
}

h5 {
  font-size: 1.17rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.57rem;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.72rem;
}

p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Header Styles */
.header {
  background-color: var(--bg-white);
  box-shadow: 0 5px 3px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar-nav .nav-link {
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
  padding-top: 80px;
}

.hero-content {
  position: relative;
  z-index: 2;
    padding-top: 200px;
}

.hero-image {
  position: relative;
  z-index: 1;
}

/* Decorative shapes */
.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  right: 10%;
  width: 200px;
  height: 200px;
  background: var(--secondary-color);
  opacity: 0.1;
  border-radius: 50%;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 20%;
  left: 5%;
  width: 150px;
  height: 150px;
  background: var(--accent-color);
  opacity: 0.1;
  border-radius: 30%;
  z-index: 0;
}

/* Section Spacing */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 1rem;
}

/* About Section */
.about {
  background-color: var(--bg-light);
}

.feature-card {
  background: var(--bg-white);
  border-radius: 13px;
  padding: 2rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2.63rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Services Section */
.services {
  background-color: var(--bg-white);
}

.service-card {
  background: var(--bg-white);
  border: 4px solid var(--border-light);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
}

.service-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 1rem 0;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.service-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.service-features li:last-child {
  border-bottom: none;
}

/* Features Section */
.features {
  background-color: var(--primary-light);
}

/* Price Plan Section */
.priceplan {
  background-color: var(--bg-white);
}

.price-card {
  background: var(--bg-white);
  border: 7px solid var(--border-light);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  height: 100%;
  position: relative;
  transition: all 0.3s ease;
}

.price-card.featured {
  border-color: var(--primary-color);
  box-shadow: 0 14px 30px rgba(98, 91, 235, 0.20);
}

.price-card:hover {
  transform: translateY(-5px);
}

.price-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 1rem 0;
}

/* Team Section */
.team {
  background-color: var(--bg-light);
}

.team-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 4px solid var(--primary-light);
}

.team-role {
  color: var(--text-secondary);
  font-size: 1.03rem;
}

/* Reviews Section */
.reviews {
  background-color: var(--bg-white);
}

.review-card {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  position: relative;
}

.review-text {
  font-style: italic;
  margin-bottom: 1.68rem;
  color: var(--text-secondary);
}

.review-author {
  font-weight: 600;
  color: var(--text-primary);
}

/* Case Studies Section */
.casestudy {
  background-color: var(--secondary-light);
}

.case-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Process Section */
.process {
  background-color: var(--bg-white);
}

.process-step {
  text-align: center;
  padding: 2rem;
  position: relative;
}

.process-number {
  background: var(--primary-color);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.59rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

/* Timeline Section */
.timeline {
  background-color: var(--accent-light);
}

.timeline-item {
  padding: 1.5rem;
  background: var(--bg-white);
  border-radius: 12px;
  margin-bottom: 1.58rem;
  border-left: 4px solid var(--primary-color);
}

/* Career Section */
.career {
  background-color: var(--bg-white);
}

.career-card {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  transition: transform 0.3s ease;
}

.career-card:hover {
  transform: translateY(-5px);
}

/* Core Info Section */
.coreinfo {
  background-color: var(--success-light);
}

.info-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.info-icon {
  font-size: 2.54rem;
  color: var(--success-color);
  margin-bottom: 1rem;
}

/* Contact Section */
.contact {
  background-color: var(--bg-white);
}

.contact-form {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 2rem;
}

.form-control {
  border: 2px solid var(--border-light);
  border-radius: 8px;
  padding: 0.75rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(85, 76, 226, 0.25);
}

.contact-info {
  background: var(--primary-light);
  border-radius: 12px;
  padding: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.73rem;
}

.contact-info-icon {
  background: var(--primary-color);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.33rem;
}

/* Blog Section */
.blog {
  background-color: var(--bg-light);
}

.blog-card {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: transform 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-content {
  padding: 1.5rem;
}

.blog-title {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 1rem;
}

.blog-title:hover {
  color: var(--primary-color);
}

.blog-excerpt {
  color: var(--text-secondary);
  font-size: 0.94rem;
  margin-bottom: 1rem;
}

.blog-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.blog-link:hover {
  text-decoration: underline;
}

/* FAQ Section */
.faq {
  background-color: var(--bg-white);
}

.faq-card {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.62rem;
  border-left: 4px solid var(--primary-color);
}

.faq-question {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.faq-answer {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Gallery Section */
.gallery {
  background-color: var(--bg-light);
}

.gallery-item {
  margin-bottom: 1.59rem;
}

.gallery-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.gallery-image:hover {
  transform: scale(1.05);
}

/* Footer */
.footer {
  background-color: var(--text-primary);
  color: var(--bg-light);
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--bg-white);
  margin-bottom: 1rem;
}

.footer p {
  color: var(--text-light);
  margin-bottom: 0.60rem;
}

.footer a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 2rem;
  text-align: center;
}

/* Buttons */
.btn {
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Breadcrumbs */
.breadcrumb {
  background-color: var(--bg-light);
  padding: 1rem 0;
}

.breadcrumb-item img {
  width: 24px;
  height: 24px;
  object-fit: cover;
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.shadow-soft {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.shadow-hover:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Space page specific */
#space {
  min-height: 60vh;
  background-color: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
} 


/* Team Social Links - Square Style */
.team-social-links {
    margin-top: 18px;
    padding: 12px 0;
}

.social-icons-grid {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 17px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    position: relative;
}

.social-link:hover {
    transform: translateY(-2px) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    color: white;
}

.facebook-link {
    background: #1877f2;
    border: 2px solid #1877f2;
}

.facebook-link:hover {
    background: #166fe5;
    border-color: #166fe5;
}

.linkedin-link {
    background: #0a66c2;
    border: 2px solid #0a66c2;
}

.linkedin-link:hover {
    background: #0959aa;
    border-color: #0959aa;
}

.x-link {
    background: #000000;
    border: 2px solid #000000;
    position: relative;
}

.x-link::after {
    content: '✕';
    font-weight: bold;
    font-size: 18px;
}

.x-link:hover {
    background: #333333;
    border-color: #333333;
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 8px;
    }
    
    .social-link {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
}
