/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* Import Font Awesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* CSS Variables for colors */
:root {
  --primary-blue: #0066cc;
  --primary-blue-dark: #0052a3;
  --primary-blue-light: #3385d6;
  --primary-orange: #ff6600;
  --primary-orange-dark: #e55a00;
  --primary-orange-light: #ff8533;
  --text-dark: #333333;
  --text-light: #666666;
  --text-lighter: #999999;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Global Styles */
body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

h3 {
  font-size: 1.75rem;
  font-weight: 600;
}

h4 {
  font-size: 1.5rem;
  font-weight: 600;
}

h5 {
  font-size: 1.25rem;
  font-weight: 600;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-blue-dark);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  color: white;
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-blue-dark);
  border-color: var(--primary-blue-dark);
  color: white;
}

.btn-outline-primary {
  color: var(--primary-blue);
  border-color: var(--primary-blue);
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  color: white;
}

.btn-orange {
  background-color: var(--primary-orange);
  border-color: var(--primary-orange);
  color: white;
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-orange:hover {
  background-color: var(--primary-orange-dark);
  border-color: var(--primary-orange-dark);
  color: white;
}

.btn-outline-orange {
  color: var(--primary-orange);
  border-color: var(--primary-orange);
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-outline-orange:hover {
  background-color: var(--primary-orange);
  border-color: var(--primary-orange);
  color: white;
}

/* Navigation */
.navbar {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
}

.navbar-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-blue) !important;
}

.navbar-nav .nav-link {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: var(--text-dark) !important;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-blue) !important;
}

.navbar-nav .nav-link.active {
  color: var(--primary-blue) !important;
  font-weight: 600;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.8) 0%, rgba(0, 82, 163, 0.8) 100%), url('../img/Professional_Email_Service_Hero_20250804122610.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.hero-section h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Feature Section */
.feature-section {
  padding: 4rem 0;
  background-color: var(--bg-light);
}

.feature-box {
  text-align: center;
  padding: 2rem;
  background-color: var(--bg-white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-box i {
  font-size: 3rem;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

.feature-box h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

/* Pricing Section */
.pricing-section {
  padding: 4rem 0;
}

.pricing-card {
  text-align: center;
  padding: 2rem;
  background-color: var(--bg-white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.pricing-card.featured {
  border: 2px solid var(--primary-orange);
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-5px);
}

.pricing-card h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-orange);
  margin-bottom: 1rem;
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-light);
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.pricing-card ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.pricing-card ul li:last-child {
  border-bottom: none;
}

.pricing-card ul li i {
  color: var(--primary-blue);
  margin-right: 0.5rem;
}

/* FAQ Section */
.faq-section {
  padding: 4rem 0;
  background-color: var(--bg-light);
}

.faq-item {
  margin-bottom: 1.5rem;
  background-color: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 1.5rem;
  background-color: var(--bg-white);
  border: none;
  width: 100%;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: var(--bg-light);
}

.faq-question:focus {
  outline: none;
  box-shadow: none;
}

.faq-question i {
  float: right;
  color: var(--primary-blue);
  transition: transform 0.3s ease;
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
}

.faq-question.active i {
  transform: rotate(180deg);
}

/* About Section */
.about-section {
  padding: 4rem 0;
}

.about-content {
  margin-bottom: 2rem;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.team-member img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 3px solid var(--primary-blue);
}

/* Responsywność dla urządzeń mobilnych */
@media (max-width: 768px) {
  .hero {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .feature-box {
    margin-bottom: 20px;
  }
  
  .pricing-card {
    margin-bottom: 30px;
  }
  
  .team-member {
    margin-bottom: 30px;
  }
  
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  .footer {
    padding: 40px 0 20px;
  }
  
  .footer h5 {
    margin-top: 20px;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .team-member img {
    width: 100px;
    height: 100px;
  }
}

/* Animacje i efekty hover */
.feature-box {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.pricing-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.team-member {
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: scale(1.05);
}

.btn-primary, .btn-orange {
  transition: all 0.3s ease;
}

.btn-primary:hover, .btn-orange:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-orange);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

.faq-question {
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: rgba(0, 123, 255, 0.1);
}

/* Animacje przy ładowaniu strony */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-box, .pricing-card, .team-member {
  animation: fadeIn 0.8s ease forwards;
}

.feature-box:nth-child(1) { animation-delay: 0.1s; }
.feature-box:nth-child(2) { animation-delay: 0.2s; }
.feature-box:nth-child(3) { animation-delay: 0.3s; }

.pricing-card:nth-child(1) { animation-delay: 0.1s; }
.pricing-card:nth-child(2) { animation-delay: 0.2s; }
.pricing-card:nth-child(3) { animation-delay: 0.3s; }
.pricing-card:nth-child(4) { animation-delay: 0.4s; }

.team-member:nth-child(1) { animation-delay: 0.1s; }
.team-member:nth-child(2) { animation-delay: 0.2s; }
.team-member:nth-child(3) { animation-delay: 0.3s; }
.team-member:nth-child(4) { animation-delay: 0.4s; }

/* Footer */
.footer {
  background-color: var(--text-dark);
  color: white;
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul li a {
  color: #ccc;
  transition: color 0.3s ease;
}

.footer ul li a:hover {
  color: var(--primary-orange);
}

.footer-bottom {
  border-top: 1px solid #444;
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  color: #ccc;
}

/* Login and Register Forms */
.auth-section {
  padding: 4rem 0;
  background-color: var(--bg-light);
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
}

.auth-form {
  background-color: var(--bg-white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}

.auth-form h2 {
  color: var(--primary-blue);
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.form-control {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.75rem;
  font-family: 'Poppins', sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.auth-links {
  text-align: center;
  margin-top: 1.5rem;
}

.auth-links a {
  color: var(--primary-blue);
  font-weight: 500;
}

.auth-links a:hover {
  color: var(--primary-blue-dark);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
  
  .pricing-card.featured {
    transform: none;
  }
  
  .pricing-card.featured:hover {
    transform: translateY(-5px);
  }
}