/* ACHIVR Educational Technologies OÜ - Custom Styles */

/* ===== CSS Variables ===== */
:root {
  --primary-color: #2c5aa0;
  --secondary-color: #28a745;
  --accent-color: #ffc107;
  --danger-color: #dc3545;
  --dark-color: #343a40;
  --light-color: #f8f9fa;
  --white: #ffffff;
  --text-dark: #333333;
  --text-muted: #6c757d;
  --border-color: #dee2e6;
  --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  --border-radius: 0.375rem;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.display-4 {
  font-weight: 700;
  line-height: 1.1;
}

.lead {
  font-size: 1.1rem;
  font-weight: 300;
  opacity: 0.9;
}

/* ===== Buttons ===== */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #1e3d6f;
  border-color: #1e3d6f;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-success {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-success:hover {
  background-color: #1e7e34;
  border-color: #1e7e34;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-warning {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--dark-color);
}

.btn-warning:hover {
  background-color: #e0a800;
  border-color: #e0a800;
  color: var(--dark-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.btn-outline-light {
  border-color: var(--white);
  color: var(--white);
}

.btn-outline-light:hover {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--primary-color);
}

/* ===== Navigation ===== */
.navbar {
  padding: 1rem 0;
  box-shadow: var(--shadow);
  z-index: 1000;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white) !important;
}

.navbar-nav .nav-link {
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
  border-radius: var(--border-radius);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white) !important;
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ===== Hero Section ===== */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1e3d6f 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,100 1000,0 1000,100"/></svg>') no-repeat center center;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

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

.hero-section h1 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.hero-section p {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-section .btn {
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* ===== Page Header ===== */
.page-header {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, #1e3d6f 100%);
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.05)"><polygon points="0,100 1000,0 1000,100"/></svg>') no-repeat center center;
  background-size: cover;
}

.breadcrumb-dark .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.breadcrumb-dark .breadcrumb-item a:hover {
  color: var(--white);
}

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

.breadcrumb-dark .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.6);
}

/* ===== Cards ===== */
.feature-card,
.service-card,
.testimonial-card,
.mvv-card,
.pricing-card,
.resource-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.feature-card:hover,
.service-card:hover,
.testimonial-card:hover,
.mvv-card:hover,
.pricing-card:hover,
.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon,
.service-icon {
  margin-bottom: 1rem;
}

.service-card {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition);
}

.service-card:hover::before {
  left: 100%;
}

/* ===== Testimonials ===== */
.testimonial-card {
  background: var(--white);
  border-left: 4px solid var(--accent-color);
}

.stars {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.testimonial-author {
  margin-top: 1rem;
  font-style: italic;
}

/* ===== Statistics ===== */
.stat-item {
  padding: 2rem 1rem;
  text-align: center;
}

.stat-item h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.stat-item p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 1.1rem;
}

.stat-box {
  background: var(--light-color);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

/* ===== Pricing ===== */
.pricing-card {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.pricing-badge {
  position: absolute;
  top: 1rem;
  right: -2rem;
  background: var(--accent-color);
  color: var(--dark-color);
  padding: 0.5rem 3rem;
  font-size: 0.875rem;
  font-weight: 600;
  transform: rotate(45deg);
}

.pricing-header {
  margin-bottom: 2rem;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 1rem 0;
}

.pricing-price .currency {
  font-size: 1.5rem;
  vertical-align: top;
}

.pricing-price .period {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ===== Process Steps ===== */
.process-step {
  margin-bottom: 2rem;
}

.process-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.step-number {
  font-size: 2rem;
  font-weight: 700;
}

/* ===== Forms ===== */
.form-control {
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

.form-select {
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  transition: var(--transition);
}

.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

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

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

.invalid-feedback {
  color: var(--danger-color);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

/* ===== Contact Info ===== */
.contact-info {
  background: var(--light-color);
  border-radius: var(--border-radius);
  padding: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.25rem;
  box-shadow: var(--shadow);
}

.contact-details h6 {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.contact-social .social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--secondary-color);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===== Advantages ===== */
.advantage-item {
  margin-bottom: 2rem;
}

.advantage-icon {
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Cookie Consent ===== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark-color);
  color: var(--white);
  padding: 1rem 0;
  z-index: 1000;
  transform: translateY(100%);
  transition: var(--transition);
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-consent a {
  color: var(--accent-color);
  text-decoration: none;
}

.cookie-consent a:hover {
  text-decoration: underline;
}

/* ===== Footer ===== */
footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

footer h5,
footer h6 {
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: 600;
}

footer .social-links a {
  color: #b8c5d1;
  font-size: 1.25rem;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

footer .social-links a:hover {
  color: var(--white);
  background: var(--primary-color);
  transform: translateY(-2px);
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

footer a {
  color: #b8c5d1;
  text-decoration: none;
  transition: var(--transition);
}

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

footer .text-muted {
  color: #8892a0 !important;
}

footer .border-top {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ===== Legal Content ===== */
.legal-content {
  font-size: 1rem;
  line-height: 1.8;
}

.legal-content h2 {
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content h4 {
  color: var(--text-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content ul {
  margin-bottom: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.company-info,
.contact-info {
  background: var(--light-color);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

/* ===== Thank You Page ===== */
.thank-you-content {
  max-width: 800px;
  margin: 0 auto;
}

.thank-you-icon {
  animation: bounceIn 1s ease-out;
}

.next-steps {
  text-align: left;
}

.step-icon {
  width: 30px;
  text-align: center;
}

.action-buttons {
  margin-top: 2rem;
}

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

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .hero-section {
    text-align: center;
    padding: 4rem 0;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .page-header {
    padding: 6rem 0 3rem;
    text-align: center;
  }
  
  .page-header .breadcrumb {
    justify-content: center;
  }
  
  .feature-card,
  .service-card,
  .testimonial-card,
  .mvv-card,
  .pricing-card {
    margin-bottom: 2rem;
  }
  
  .pricing-card.featured {
    transform: none;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-icon {
    margin: 0 auto 1rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    margin: 0.25rem 0;
  }
  
  .cookie-consent .text-end {
    text-align: center !important;
    margin-top: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .hero-section .d-flex {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-section .btn {
    width: 100%;
  }
  
  .action-buttons .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .pricing-price {
    font-size: 2rem;
  }
  
  .stat-item h3 {
    font-size: 2rem;
  }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000080;
    --secondary-color: #008000;
    --text-dark: #000000;
    --border-color: #000000;
  }
}

/* ===== Print Styles ===== */
@media print {
  .navbar,
  .cookie-consent,
  .btn,
  footer {
    display: none !important;
  }
  
  .hero-section,
  .page-header {
    background: none !important;
    color: black !important;
  }
  
  .hero-section *,
  .page-header * {
    color: black !important;
  }
  
  .container {
    max-width: none !important;
  }
}

/* ===== Utility Classes ===== */
.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1e3d6f 100%);
}

.border-primary {
  border-color: var(--primary-color) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.hover-shadow {
  transition: var(--transition);
}

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

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}
